From 75fbdb653ae2237e4d00e41f6ec0919cb6e85132 Mon Sep 17 00:00:00 2001 From: Donald Zou Date: Sun, 24 Mar 2024 22:55:19 -0400 Subject: [PATCH] Update build --- src/static/app/dist/assets/index.css | 2 +- src/static/app/dist/assets/index.js | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/static/app/dist/assets/index.css b/src/static/app/dist/assets/index.css index 6cd9cf7..e242792 100644 --- a/src/static/app/dist/assets/index.css +++ b/src/static/app/dist/assets/index.css @@ -6,4 +6,4 @@ * Bootstrap Icons v1.11.2 (https://icons.getbootstrap.com/) * Copyright 2019-2023 The Bootstrap Authors * Licensed under MIT (https://github.com/twbs/icons/blob/main/LICENSE) -*/@font-face{font-display:block;font-family:bootstrap-icons;src:url(/static/app/dist/assets/bootstrap-icons.woff2?7141511ac37f13e1a387fb9fc6646256) format("woff2"),url(/static/app/dist/assets/bootstrap-icons.woff?7141511ac37f13e1a387fb9fc6646256) format("woff")}.bi:before,[class^=bi-]:before,[class*=" bi-"]:before{display:inline-block;font-family:bootstrap-icons!important;font-style:normal;font-weight:400!important;font-variant:normal;text-transform:none;line-height:1;vertical-align:-.125em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.bi-123:before{content:""}.bi-alarm-fill:before{content:""}.bi-alarm:before{content:""}.bi-align-bottom:before{content:""}.bi-align-center:before{content:""}.bi-align-end:before{content:""}.bi-align-middle:before{content:""}.bi-align-start:before{content:""}.bi-align-top:before{content:""}.bi-alt:before{content:""}.bi-app-indicator:before{content:""}.bi-app:before{content:""}.bi-archive-fill:before{content:""}.bi-archive:before{content:""}.bi-arrow-90deg-down:before{content:""}.bi-arrow-90deg-left:before{content:""}.bi-arrow-90deg-right:before{content:""}.bi-arrow-90deg-up:before{content:""}.bi-arrow-bar-down:before{content:""}.bi-arrow-bar-left:before{content:""}.bi-arrow-bar-right:before{content:""}.bi-arrow-bar-up:before{content:""}.bi-arrow-clockwise:before{content:""}.bi-arrow-counterclockwise:before{content:""}.bi-arrow-down-circle-fill:before{content:""}.bi-arrow-down-circle:before{content:""}.bi-arrow-down-left-circle-fill:before{content:""}.bi-arrow-down-left-circle:before{content:""}.bi-arrow-down-left-square-fill:before{content:""}.bi-arrow-down-left-square:before{content:""}.bi-arrow-down-left:before{content:""}.bi-arrow-down-right-circle-fill:before{content:""}.bi-arrow-down-right-circle:before{content:""}.bi-arrow-down-right-square-fill:before{content:""}.bi-arrow-down-right-square:before{content:""}.bi-arrow-down-right:before{content:""}.bi-arrow-down-short:before{content:""}.bi-arrow-down-square-fill:before{content:""}.bi-arrow-down-square:before{content:""}.bi-arrow-down-up:before{content:""}.bi-arrow-down:before{content:""}.bi-arrow-left-circle-fill:before{content:""}.bi-arrow-left-circle:before{content:""}.bi-arrow-left-right:before{content:""}.bi-arrow-left-short:before{content:""}.bi-arrow-left-square-fill:before{content:""}.bi-arrow-left-square:before{content:""}.bi-arrow-left:before{content:""}.bi-arrow-repeat:before{content:""}.bi-arrow-return-left:before{content:""}.bi-arrow-return-right:before{content:""}.bi-arrow-right-circle-fill:before{content:""}.bi-arrow-right-circle:before{content:""}.bi-arrow-right-short:before{content:""}.bi-arrow-right-square-fill:before{content:""}.bi-arrow-right-square:before{content:""}.bi-arrow-right:before{content:""}.bi-arrow-up-circle-fill:before{content:""}.bi-arrow-up-circle:before{content:""}.bi-arrow-up-left-circle-fill:before{content:""}.bi-arrow-up-left-circle:before{content:""}.bi-arrow-up-left-square-fill:before{content:""}.bi-arrow-up-left-square:before{content:""}.bi-arrow-up-left:before{content:""}.bi-arrow-up-right-circle-fill:before{content:""}.bi-arrow-up-right-circle:before{content:""}.bi-arrow-up-right-square-fill:before{content:""}.bi-arrow-up-right-square:before{content:""}.bi-arrow-up-right:before{content:""}.bi-arrow-up-short:before{content:""}.bi-arrow-up-square-fill:before{content:""}.bi-arrow-up-square:before{content:""}.bi-arrow-up:before{content:""}.bi-arrows-angle-contract:before{content:""}.bi-arrows-angle-expand:before{content:""}.bi-arrows-collapse:before{content:""}.bi-arrows-expand:before{content:""}.bi-arrows-fullscreen:before{content:""}.bi-arrows-move:before{content:""}.bi-aspect-ratio-fill:before{content:""}.bi-aspect-ratio:before{content:""}.bi-asterisk:before{content:""}.bi-at:before{content:""}.bi-award-fill:before{content:""}.bi-award:before{content:""}.bi-back:before{content:""}.bi-backspace-fill:before{content:""}.bi-backspace-reverse-fill:before{content:""}.bi-backspace-reverse:before{content:""}.bi-backspace:before{content:""}.bi-badge-3d-fill:before{content:""}.bi-badge-3d:before{content:""}.bi-badge-4k-fill:before{content:""}.bi-badge-4k:before{content:""}.bi-badge-8k-fill:before{content:""}.bi-badge-8k:before{content:""}.bi-badge-ad-fill:before{content:""}.bi-badge-ad:before{content:""}.bi-badge-ar-fill:before{content:""}.bi-badge-ar:before{content:""}.bi-badge-cc-fill:before{content:""}.bi-badge-cc:before{content:""}.bi-badge-hd-fill:before{content:""}.bi-badge-hd:before{content:""}.bi-badge-tm-fill:before{content:""}.bi-badge-tm:before{content:""}.bi-badge-vo-fill:before{content:""}.bi-badge-vo:before{content:""}.bi-badge-vr-fill:before{content:""}.bi-badge-vr:before{content:""}.bi-badge-wc-fill:before{content:""}.bi-badge-wc:before{content:""}.bi-bag-check-fill:before{content:""}.bi-bag-check:before{content:""}.bi-bag-dash-fill:before{content:""}.bi-bag-dash:before{content:""}.bi-bag-fill:before{content:""}.bi-bag-plus-fill:before{content:""}.bi-bag-plus:before{content:""}.bi-bag-x-fill:before{content:""}.bi-bag-x:before{content:""}.bi-bag:before{content:""}.bi-bar-chart-fill:before{content:""}.bi-bar-chart-line-fill:before{content:""}.bi-bar-chart-line:before{content:""}.bi-bar-chart-steps:before{content:""}.bi-bar-chart:before{content:""}.bi-basket-fill:before{content:""}.bi-basket:before{content:""}.bi-basket2-fill:before{content:""}.bi-basket2:before{content:""}.bi-basket3-fill:before{content:""}.bi-basket3:before{content:""}.bi-battery-charging:before{content:""}.bi-battery-full:before{content:""}.bi-battery-half:before{content:""}.bi-battery:before{content:""}.bi-bell-fill:before{content:""}.bi-bell:before{content:""}.bi-bezier:before{content:""}.bi-bezier2:before{content:""}.bi-bicycle:before{content:""}.bi-binoculars-fill:before{content:""}.bi-binoculars:before{content:""}.bi-blockquote-left:before{content:""}.bi-blockquote-right:before{content:""}.bi-book-fill:before{content:""}.bi-book-half:before{content:""}.bi-book:before{content:""}.bi-bookmark-check-fill:before{content:""}.bi-bookmark-check:before{content:""}.bi-bookmark-dash-fill:before{content:""}.bi-bookmark-dash:before{content:""}.bi-bookmark-fill:before{content:""}.bi-bookmark-heart-fill:before{content:""}.bi-bookmark-heart:before{content:""}.bi-bookmark-plus-fill:before{content:""}.bi-bookmark-plus:before{content:""}.bi-bookmark-star-fill:before{content:""}.bi-bookmark-star:before{content:""}.bi-bookmark-x-fill:before{content:""}.bi-bookmark-x:before{content:""}.bi-bookmark:before{content:""}.bi-bookmarks-fill:before{content:""}.bi-bookmarks:before{content:""}.bi-bookshelf:before{content:""}.bi-bootstrap-fill:before{content:""}.bi-bootstrap-reboot:before{content:""}.bi-bootstrap:before{content:""}.bi-border-all:before{content:""}.bi-border-bottom:before{content:""}.bi-border-center:before{content:""}.bi-border-inner:before{content:""}.bi-border-left:before{content:""}.bi-border-middle:before{content:""}.bi-border-outer:before{content:""}.bi-border-right:before{content:""}.bi-border-style:before{content:""}.bi-border-top:before{content:""}.bi-border-width:before{content:""}.bi-border:before{content:""}.bi-bounding-box-circles:before{content:""}.bi-bounding-box:before{content:""}.bi-box-arrow-down-left:before{content:""}.bi-box-arrow-down-right:before{content:""}.bi-box-arrow-down:before{content:""}.bi-box-arrow-in-down-left:before{content:""}.bi-box-arrow-in-down-right:before{content:""}.bi-box-arrow-in-down:before{content:""}.bi-box-arrow-in-left:before{content:""}.bi-box-arrow-in-right:before{content:""}.bi-box-arrow-in-up-left:before{content:""}.bi-box-arrow-in-up-right:before{content:""}.bi-box-arrow-in-up:before{content:""}.bi-box-arrow-left:before{content:""}.bi-box-arrow-right:before{content:""}.bi-box-arrow-up-left:before{content:""}.bi-box-arrow-up-right:before{content:""}.bi-box-arrow-up:before{content:""}.bi-box-seam:before{content:""}.bi-box:before{content:""}.bi-braces:before{content:""}.bi-bricks:before{content:""}.bi-briefcase-fill:before{content:""}.bi-briefcase:before{content:""}.bi-brightness-alt-high-fill:before{content:""}.bi-brightness-alt-high:before{content:""}.bi-brightness-alt-low-fill:before{content:""}.bi-brightness-alt-low:before{content:""}.bi-brightness-high-fill:before{content:""}.bi-brightness-high:before{content:""}.bi-brightness-low-fill:before{content:""}.bi-brightness-low:before{content:""}.bi-broadcast-pin:before{content:""}.bi-broadcast:before{content:""}.bi-brush-fill:before{content:""}.bi-brush:before{content:""}.bi-bucket-fill:before{content:""}.bi-bucket:before{content:""}.bi-bug-fill:before{content:""}.bi-bug:before{content:""}.bi-building:before{content:""}.bi-bullseye:before{content:""}.bi-calculator-fill:before{content:""}.bi-calculator:before{content:""}.bi-calendar-check-fill:before{content:""}.bi-calendar-check:before{content:""}.bi-calendar-date-fill:before{content:""}.bi-calendar-date:before{content:""}.bi-calendar-day-fill:before{content:""}.bi-calendar-day:before{content:""}.bi-calendar-event-fill:before{content:""}.bi-calendar-event:before{content:""}.bi-calendar-fill:before{content:""}.bi-calendar-minus-fill:before{content:""}.bi-calendar-minus:before{content:""}.bi-calendar-month-fill:before{content:""}.bi-calendar-month:before{content:""}.bi-calendar-plus-fill:before{content:""}.bi-calendar-plus:before{content:""}.bi-calendar-range-fill:before{content:""}.bi-calendar-range:before{content:""}.bi-calendar-week-fill:before{content:""}.bi-calendar-week:before{content:""}.bi-calendar-x-fill:before{content:""}.bi-calendar-x:before{content:""}.bi-calendar:before{content:""}.bi-calendar2-check-fill:before{content:""}.bi-calendar2-check:before{content:""}.bi-calendar2-date-fill:before{content:""}.bi-calendar2-date:before{content:""}.bi-calendar2-day-fill:before{content:""}.bi-calendar2-day:before{content:""}.bi-calendar2-event-fill:before{content:""}.bi-calendar2-event:before{content:""}.bi-calendar2-fill:before{content:""}.bi-calendar2-minus-fill:before{content:""}.bi-calendar2-minus:before{content:""}.bi-calendar2-month-fill:before{content:""}.bi-calendar2-month:before{content:""}.bi-calendar2-plus-fill:before{content:""}.bi-calendar2-plus:before{content:""}.bi-calendar2-range-fill:before{content:""}.bi-calendar2-range:before{content:""}.bi-calendar2-week-fill:before{content:""}.bi-calendar2-week:before{content:""}.bi-calendar2-x-fill:before{content:""}.bi-calendar2-x:before{content:""}.bi-calendar2:before{content:""}.bi-calendar3-event-fill:before{content:""}.bi-calendar3-event:before{content:""}.bi-calendar3-fill:before{content:""}.bi-calendar3-range-fill:before{content:""}.bi-calendar3-range:before{content:""}.bi-calendar3-week-fill:before{content:""}.bi-calendar3-week:before{content:""}.bi-calendar3:before{content:""}.bi-calendar4-event:before{content:""}.bi-calendar4-range:before{content:""}.bi-calendar4-week:before{content:""}.bi-calendar4:before{content:""}.bi-camera-fill:before{content:""}.bi-camera-reels-fill:before{content:""}.bi-camera-reels:before{content:""}.bi-camera-video-fill:before{content:""}.bi-camera-video-off-fill:before{content:""}.bi-camera-video-off:before{content:""}.bi-camera-video:before{content:""}.bi-camera:before{content:""}.bi-camera2:before{content:""}.bi-capslock-fill:before{content:""}.bi-capslock:before{content:""}.bi-card-checklist:before{content:""}.bi-card-heading:before{content:""}.bi-card-image:before{content:""}.bi-card-list:before{content:""}.bi-card-text:before{content:""}.bi-caret-down-fill:before{content:""}.bi-caret-down-square-fill:before{content:""}.bi-caret-down-square:before{content:""}.bi-caret-down:before{content:""}.bi-caret-left-fill:before{content:""}.bi-caret-left-square-fill:before{content:""}.bi-caret-left-square:before{content:""}.bi-caret-left:before{content:""}.bi-caret-right-fill:before{content:""}.bi-caret-right-square-fill:before{content:""}.bi-caret-right-square:before{content:""}.bi-caret-right:before{content:""}.bi-caret-up-fill:before{content:""}.bi-caret-up-square-fill:before{content:""}.bi-caret-up-square:before{content:""}.bi-caret-up:before{content:""}.bi-cart-check-fill:before{content:""}.bi-cart-check:before{content:""}.bi-cart-dash-fill:before{content:""}.bi-cart-dash:before{content:""}.bi-cart-fill:before{content:""}.bi-cart-plus-fill:before{content:""}.bi-cart-plus:before{content:""}.bi-cart-x-fill:before{content:""}.bi-cart-x:before{content:""}.bi-cart:before{content:""}.bi-cart2:before{content:""}.bi-cart3:before{content:""}.bi-cart4:before{content:""}.bi-cash-stack:before{content:""}.bi-cash:before{content:""}.bi-cast:before{content:""}.bi-chat-dots-fill:before{content:""}.bi-chat-dots:before{content:""}.bi-chat-fill:before{content:""}.bi-chat-left-dots-fill:before{content:""}.bi-chat-left-dots:before{content:""}.bi-chat-left-fill:before{content:""}.bi-chat-left-quote-fill:before{content:""}.bi-chat-left-quote:before{content:""}.bi-chat-left-text-fill:before{content:""}.bi-chat-left-text:before{content:""}.bi-chat-left:before{content:""}.bi-chat-quote-fill:before{content:""}.bi-chat-quote:before{content:""}.bi-chat-right-dots-fill:before{content:""}.bi-chat-right-dots:before{content:""}.bi-chat-right-fill:before{content:""}.bi-chat-right-quote-fill:before{content:""}.bi-chat-right-quote:before{content:""}.bi-chat-right-text-fill:before{content:""}.bi-chat-right-text:before{content:""}.bi-chat-right:before{content:""}.bi-chat-square-dots-fill:before{content:""}.bi-chat-square-dots:before{content:""}.bi-chat-square-fill:before{content:""}.bi-chat-square-quote-fill:before{content:""}.bi-chat-square-quote:before{content:""}.bi-chat-square-text-fill:before{content:""}.bi-chat-square-text:before{content:""}.bi-chat-square:before{content:""}.bi-chat-text-fill:before{content:""}.bi-chat-text:before{content:""}.bi-chat:before{content:""}.bi-check-all:before{content:""}.bi-check-circle-fill:before{content:""}.bi-check-circle:before{content:""}.bi-check-square-fill:before{content:""}.bi-check-square:before{content:""}.bi-check:before{content:""}.bi-check2-all:before{content:""}.bi-check2-circle:before{content:""}.bi-check2-square:before{content:""}.bi-check2:before{content:""}.bi-chevron-bar-contract:before{content:""}.bi-chevron-bar-down:before{content:""}.bi-chevron-bar-expand:before{content:""}.bi-chevron-bar-left:before{content:""}.bi-chevron-bar-right:before{content:""}.bi-chevron-bar-up:before{content:""}.bi-chevron-compact-down:before{content:""}.bi-chevron-compact-left:before{content:""}.bi-chevron-compact-right:before{content:""}.bi-chevron-compact-up:before{content:""}.bi-chevron-contract:before{content:""}.bi-chevron-double-down:before{content:""}.bi-chevron-double-left:before{content:""}.bi-chevron-double-right:before{content:""}.bi-chevron-double-up:before{content:""}.bi-chevron-down:before{content:""}.bi-chevron-expand:before{content:""}.bi-chevron-left:before{content:""}.bi-chevron-right:before{content:""}.bi-chevron-up:before{content:""}.bi-circle-fill:before{content:""}.bi-circle-half:before{content:""}.bi-circle-square:before{content:""}.bi-circle:before{content:""}.bi-clipboard-check:before{content:""}.bi-clipboard-data:before{content:""}.bi-clipboard-minus:before{content:""}.bi-clipboard-plus:before{content:""}.bi-clipboard-x:before{content:""}.bi-clipboard:before{content:""}.bi-clock-fill:before{content:""}.bi-clock-history:before{content:""}.bi-clock:before{content:""}.bi-cloud-arrow-down-fill:before{content:""}.bi-cloud-arrow-down:before{content:""}.bi-cloud-arrow-up-fill:before{content:""}.bi-cloud-arrow-up:before{content:""}.bi-cloud-check-fill:before{content:""}.bi-cloud-check:before{content:""}.bi-cloud-download-fill:before{content:""}.bi-cloud-download:before{content:""}.bi-cloud-drizzle-fill:before{content:""}.bi-cloud-drizzle:before{content:""}.bi-cloud-fill:before{content:""}.bi-cloud-fog-fill:before{content:""}.bi-cloud-fog:before{content:""}.bi-cloud-fog2-fill:before{content:""}.bi-cloud-fog2:before{content:""}.bi-cloud-hail-fill:before{content:""}.bi-cloud-hail:before{content:""}.bi-cloud-haze-fill:before{content:""}.bi-cloud-haze:before{content:""}.bi-cloud-haze2-fill:before{content:""}.bi-cloud-lightning-fill:before{content:""}.bi-cloud-lightning-rain-fill:before{content:""}.bi-cloud-lightning-rain:before{content:""}.bi-cloud-lightning:before{content:""}.bi-cloud-minus-fill:before{content:""}.bi-cloud-minus:before{content:""}.bi-cloud-moon-fill:before{content:""}.bi-cloud-moon:before{content:""}.bi-cloud-plus-fill:before{content:""}.bi-cloud-plus:before{content:""}.bi-cloud-rain-fill:before{content:""}.bi-cloud-rain-heavy-fill:before{content:""}.bi-cloud-rain-heavy:before{content:""}.bi-cloud-rain:before{content:""}.bi-cloud-slash-fill:before{content:""}.bi-cloud-slash:before{content:""}.bi-cloud-sleet-fill:before{content:""}.bi-cloud-sleet:before{content:""}.bi-cloud-snow-fill:before{content:""}.bi-cloud-snow:before{content:""}.bi-cloud-sun-fill:before{content:""}.bi-cloud-sun:before{content:""}.bi-cloud-upload-fill:before{content:""}.bi-cloud-upload:before{content:""}.bi-cloud:before{content:""}.bi-clouds-fill:before{content:""}.bi-clouds:before{content:""}.bi-cloudy-fill:before{content:""}.bi-cloudy:before{content:""}.bi-code-slash:before{content:""}.bi-code-square:before{content:""}.bi-code:before{content:""}.bi-collection-fill:before{content:""}.bi-collection-play-fill:before{content:""}.bi-collection-play:before{content:""}.bi-collection:before{content:""}.bi-columns-gap:before{content:""}.bi-columns:before{content:""}.bi-command:before{content:""}.bi-compass-fill:before{content:""}.bi-compass:before{content:""}.bi-cone-striped:before{content:""}.bi-cone:before{content:""}.bi-controller:before{content:""}.bi-cpu-fill:before{content:""}.bi-cpu:before{content:""}.bi-credit-card-2-back-fill:before{content:""}.bi-credit-card-2-back:before{content:""}.bi-credit-card-2-front-fill:before{content:""}.bi-credit-card-2-front:before{content:""}.bi-credit-card-fill:before{content:""}.bi-credit-card:before{content:""}.bi-crop:before{content:""}.bi-cup-fill:before{content:""}.bi-cup-straw:before{content:""}.bi-cup:before{content:""}.bi-cursor-fill:before{content:""}.bi-cursor-text:before{content:""}.bi-cursor:before{content:""}.bi-dash-circle-dotted:before{content:""}.bi-dash-circle-fill:before{content:""}.bi-dash-circle:before{content:""}.bi-dash-square-dotted:before{content:""}.bi-dash-square-fill:before{content:""}.bi-dash-square:before{content:""}.bi-dash:before{content:""}.bi-diagram-2-fill:before{content:""}.bi-diagram-2:before{content:""}.bi-diagram-3-fill:before{content:""}.bi-diagram-3:before{content:""}.bi-diamond-fill:before{content:""}.bi-diamond-half:before{content:""}.bi-diamond:before{content:""}.bi-dice-1-fill:before{content:""}.bi-dice-1:before{content:""}.bi-dice-2-fill:before{content:""}.bi-dice-2:before{content:""}.bi-dice-3-fill:before{content:""}.bi-dice-3:before{content:""}.bi-dice-4-fill:before{content:""}.bi-dice-4:before{content:""}.bi-dice-5-fill:before{content:""}.bi-dice-5:before{content:""}.bi-dice-6-fill:before{content:""}.bi-dice-6:before{content:""}.bi-disc-fill:before{content:""}.bi-disc:before{content:""}.bi-discord:before{content:""}.bi-display-fill:before{content:""}.bi-display:before{content:""}.bi-distribute-horizontal:before{content:""}.bi-distribute-vertical:before{content:""}.bi-door-closed-fill:before{content:""}.bi-door-closed:before{content:""}.bi-door-open-fill:before{content:""}.bi-door-open:before{content:""}.bi-dot:before{content:""}.bi-download:before{content:""}.bi-droplet-fill:before{content:""}.bi-droplet-half:before{content:""}.bi-droplet:before{content:""}.bi-earbuds:before{content:""}.bi-easel-fill:before{content:""}.bi-easel:before{content:""}.bi-egg-fill:before{content:""}.bi-egg-fried:before{content:""}.bi-egg:before{content:""}.bi-eject-fill:before{content:""}.bi-eject:before{content:""}.bi-emoji-angry-fill:before{content:""}.bi-emoji-angry:before{content:""}.bi-emoji-dizzy-fill:before{content:""}.bi-emoji-dizzy:before{content:""}.bi-emoji-expressionless-fill:before{content:""}.bi-emoji-expressionless:before{content:""}.bi-emoji-frown-fill:before{content:""}.bi-emoji-frown:before{content:""}.bi-emoji-heart-eyes-fill:before{content:""}.bi-emoji-heart-eyes:before{content:""}.bi-emoji-laughing-fill:before{content:""}.bi-emoji-laughing:before{content:""}.bi-emoji-neutral-fill:before{content:""}.bi-emoji-neutral:before{content:""}.bi-emoji-smile-fill:before{content:""}.bi-emoji-smile-upside-down-fill:before{content:""}.bi-emoji-smile-upside-down:before{content:""}.bi-emoji-smile:before{content:""}.bi-emoji-sunglasses-fill:before{content:""}.bi-emoji-sunglasses:before{content:""}.bi-emoji-wink-fill:before{content:""}.bi-emoji-wink:before{content:""}.bi-envelope-fill:before{content:""}.bi-envelope-open-fill:before{content:""}.bi-envelope-open:before{content:""}.bi-envelope:before{content:""}.bi-eraser-fill:before{content:""}.bi-eraser:before{content:""}.bi-exclamation-circle-fill:before{content:""}.bi-exclamation-circle:before{content:""}.bi-exclamation-diamond-fill:before{content:""}.bi-exclamation-diamond:before{content:""}.bi-exclamation-octagon-fill:before{content:""}.bi-exclamation-octagon:before{content:""}.bi-exclamation-square-fill:before{content:""}.bi-exclamation-square:before{content:""}.bi-exclamation-triangle-fill:before{content:""}.bi-exclamation-triangle:before{content:""}.bi-exclamation:before{content:""}.bi-exclude:before{content:""}.bi-eye-fill:before{content:""}.bi-eye-slash-fill:before{content:""}.bi-eye-slash:before{content:""}.bi-eye:before{content:""}.bi-eyedropper:before{content:""}.bi-eyeglasses:before{content:""}.bi-facebook:before{content:""}.bi-file-arrow-down-fill:before{content:""}.bi-file-arrow-down:before{content:""}.bi-file-arrow-up-fill:before{content:""}.bi-file-arrow-up:before{content:""}.bi-file-bar-graph-fill:before{content:""}.bi-file-bar-graph:before{content:""}.bi-file-binary-fill:before{content:""}.bi-file-binary:before{content:""}.bi-file-break-fill:before{content:""}.bi-file-break:before{content:""}.bi-file-check-fill:before{content:""}.bi-file-check:before{content:""}.bi-file-code-fill:before{content:""}.bi-file-code:before{content:""}.bi-file-diff-fill:before{content:""}.bi-file-diff:before{content:""}.bi-file-earmark-arrow-down-fill:before{content:""}.bi-file-earmark-arrow-down:before{content:""}.bi-file-earmark-arrow-up-fill:before{content:""}.bi-file-earmark-arrow-up:before{content:""}.bi-file-earmark-bar-graph-fill:before{content:""}.bi-file-earmark-bar-graph:before{content:""}.bi-file-earmark-binary-fill:before{content:""}.bi-file-earmark-binary:before{content:""}.bi-file-earmark-break-fill:before{content:""}.bi-file-earmark-break:before{content:""}.bi-file-earmark-check-fill:before{content:""}.bi-file-earmark-check:before{content:""}.bi-file-earmark-code-fill:before{content:""}.bi-file-earmark-code:before{content:""}.bi-file-earmark-diff-fill:before{content:""}.bi-file-earmark-diff:before{content:""}.bi-file-earmark-easel-fill:before{content:""}.bi-file-earmark-easel:before{content:""}.bi-file-earmark-excel-fill:before{content:""}.bi-file-earmark-excel:before{content:""}.bi-file-earmark-fill:before{content:""}.bi-file-earmark-font-fill:before{content:""}.bi-file-earmark-font:before{content:""}.bi-file-earmark-image-fill:before{content:""}.bi-file-earmark-image:before{content:""}.bi-file-earmark-lock-fill:before{content:""}.bi-file-earmark-lock:before{content:""}.bi-file-earmark-lock2-fill:before{content:""}.bi-file-earmark-lock2:before{content:""}.bi-file-earmark-medical-fill:before{content:""}.bi-file-earmark-medical:before{content:""}.bi-file-earmark-minus-fill:before{content:""}.bi-file-earmark-minus:before{content:""}.bi-file-earmark-music-fill:before{content:""}.bi-file-earmark-music:before{content:""}.bi-file-earmark-person-fill:before{content:""}.bi-file-earmark-person:before{content:""}.bi-file-earmark-play-fill:before{content:""}.bi-file-earmark-play:before{content:""}.bi-file-earmark-plus-fill:before{content:""}.bi-file-earmark-plus:before{content:""}.bi-file-earmark-post-fill:before{content:""}.bi-file-earmark-post:before{content:""}.bi-file-earmark-ppt-fill:before{content:""}.bi-file-earmark-ppt:before{content:""}.bi-file-earmark-richtext-fill:before{content:""}.bi-file-earmark-richtext:before{content:""}.bi-file-earmark-ruled-fill:before{content:""}.bi-file-earmark-ruled:before{content:""}.bi-file-earmark-slides-fill:before{content:""}.bi-file-earmark-slides:before{content:""}.bi-file-earmark-spreadsheet-fill:before{content:""}.bi-file-earmark-spreadsheet:before{content:""}.bi-file-earmark-text-fill:before{content:""}.bi-file-earmark-text:before{content:""}.bi-file-earmark-word-fill:before{content:""}.bi-file-earmark-word:before{content:""}.bi-file-earmark-x-fill:before{content:""}.bi-file-earmark-x:before{content:""}.bi-file-earmark-zip-fill:before{content:""}.bi-file-earmark-zip:before{content:""}.bi-file-earmark:before{content:""}.bi-file-easel-fill:before{content:""}.bi-file-easel:before{content:""}.bi-file-excel-fill:before{content:""}.bi-file-excel:before{content:""}.bi-file-fill:before{content:""}.bi-file-font-fill:before{content:""}.bi-file-font:before{content:""}.bi-file-image-fill:before{content:""}.bi-file-image:before{content:""}.bi-file-lock-fill:before{content:""}.bi-file-lock:before{content:""}.bi-file-lock2-fill:before{content:""}.bi-file-lock2:before{content:""}.bi-file-medical-fill:before{content:""}.bi-file-medical:before{content:""}.bi-file-minus-fill:before{content:""}.bi-file-minus:before{content:""}.bi-file-music-fill:before{content:""}.bi-file-music:before{content:""}.bi-file-person-fill:before{content:""}.bi-file-person:before{content:""}.bi-file-play-fill:before{content:""}.bi-file-play:before{content:""}.bi-file-plus-fill:before{content:""}.bi-file-plus:before{content:""}.bi-file-post-fill:before{content:""}.bi-file-post:before{content:""}.bi-file-ppt-fill:before{content:""}.bi-file-ppt:before{content:""}.bi-file-richtext-fill:before{content:""}.bi-file-richtext:before{content:""}.bi-file-ruled-fill:before{content:""}.bi-file-ruled:before{content:""}.bi-file-slides-fill:before{content:""}.bi-file-slides:before{content:""}.bi-file-spreadsheet-fill:before{content:""}.bi-file-spreadsheet:before{content:""}.bi-file-text-fill:before{content:""}.bi-file-text:before{content:""}.bi-file-word-fill:before{content:""}.bi-file-word:before{content:""}.bi-file-x-fill:before{content:""}.bi-file-x:before{content:""}.bi-file-zip-fill:before{content:""}.bi-file-zip:before{content:""}.bi-file:before{content:""}.bi-files-alt:before{content:""}.bi-files:before{content:""}.bi-film:before{content:""}.bi-filter-circle-fill:before{content:""}.bi-filter-circle:before{content:""}.bi-filter-left:before{content:""}.bi-filter-right:before{content:""}.bi-filter-square-fill:before{content:""}.bi-filter-square:before{content:""}.bi-filter:before{content:""}.bi-flag-fill:before{content:""}.bi-flag:before{content:""}.bi-flower1:before{content:""}.bi-flower2:before{content:""}.bi-flower3:before{content:""}.bi-folder-check:before{content:""}.bi-folder-fill:before{content:""}.bi-folder-minus:before{content:""}.bi-folder-plus:before{content:""}.bi-folder-symlink-fill:before{content:""}.bi-folder-symlink:before{content:""}.bi-folder-x:before{content:""}.bi-folder:before{content:""}.bi-folder2-open:before{content:""}.bi-folder2:before{content:""}.bi-fonts:before{content:""}.bi-forward-fill:before{content:""}.bi-forward:before{content:""}.bi-front:before{content:""}.bi-fullscreen-exit:before{content:""}.bi-fullscreen:before{content:""}.bi-funnel-fill:before{content:""}.bi-funnel:before{content:""}.bi-gear-fill:before{content:""}.bi-gear-wide-connected:before{content:""}.bi-gear-wide:before{content:""}.bi-gear:before{content:""}.bi-gem:before{content:""}.bi-geo-alt-fill:before{content:""}.bi-geo-alt:before{content:""}.bi-geo-fill:before{content:""}.bi-geo:before{content:""}.bi-gift-fill:before{content:""}.bi-gift:before{content:""}.bi-github:before{content:""}.bi-globe:before{content:""}.bi-globe2:before{content:""}.bi-google:before{content:""}.bi-graph-down:before{content:""}.bi-graph-up:before{content:""}.bi-grid-1x2-fill:before{content:""}.bi-grid-1x2:before{content:""}.bi-grid-3x2-gap-fill:before{content:""}.bi-grid-3x2-gap:before{content:""}.bi-grid-3x2:before{content:""}.bi-grid-3x3-gap-fill:before{content:""}.bi-grid-3x3-gap:before{content:""}.bi-grid-3x3:before{content:""}.bi-grid-fill:before{content:""}.bi-grid:before{content:""}.bi-grip-horizontal:before{content:""}.bi-grip-vertical:before{content:""}.bi-hammer:before{content:""}.bi-hand-index-fill:before{content:""}.bi-hand-index-thumb-fill:before{content:""}.bi-hand-index-thumb:before{content:""}.bi-hand-index:before{content:""}.bi-hand-thumbs-down-fill:before{content:""}.bi-hand-thumbs-down:before{content:""}.bi-hand-thumbs-up-fill:before{content:""}.bi-hand-thumbs-up:before{content:""}.bi-handbag-fill:before{content:""}.bi-handbag:before{content:""}.bi-hash:before{content:""}.bi-hdd-fill:before{content:""}.bi-hdd-network-fill:before{content:""}.bi-hdd-network:before{content:""}.bi-hdd-rack-fill:before{content:""}.bi-hdd-rack:before{content:""}.bi-hdd-stack-fill:before{content:""}.bi-hdd-stack:before{content:""}.bi-hdd:before{content:""}.bi-headphones:before{content:""}.bi-headset:before{content:""}.bi-heart-fill:before{content:""}.bi-heart-half:before{content:""}.bi-heart:before{content:""}.bi-heptagon-fill:before{content:""}.bi-heptagon-half:before{content:""}.bi-heptagon:before{content:""}.bi-hexagon-fill:before{content:""}.bi-hexagon-half:before{content:""}.bi-hexagon:before{content:""}.bi-hourglass-bottom:before{content:""}.bi-hourglass-split:before{content:""}.bi-hourglass-top:before{content:""}.bi-hourglass:before{content:""}.bi-house-door-fill:before{content:""}.bi-house-door:before{content:""}.bi-house-fill:before{content:""}.bi-house:before{content:""}.bi-hr:before{content:""}.bi-hurricane:before{content:""}.bi-image-alt:before{content:""}.bi-image-fill:before{content:""}.bi-image:before{content:""}.bi-images:before{content:""}.bi-inbox-fill:before{content:""}.bi-inbox:before{content:""}.bi-inboxes-fill:before{content:""}.bi-inboxes:before{content:""}.bi-info-circle-fill:before{content:""}.bi-info-circle:before{content:""}.bi-info-square-fill:before{content:""}.bi-info-square:before{content:""}.bi-info:before{content:""}.bi-input-cursor-text:before{content:""}.bi-input-cursor:before{content:""}.bi-instagram:before{content:""}.bi-intersect:before{content:""}.bi-journal-album:before{content:""}.bi-journal-arrow-down:before{content:""}.bi-journal-arrow-up:before{content:""}.bi-journal-bookmark-fill:before{content:""}.bi-journal-bookmark:before{content:""}.bi-journal-check:before{content:""}.bi-journal-code:before{content:""}.bi-journal-medical:before{content:""}.bi-journal-minus:before{content:""}.bi-journal-plus:before{content:""}.bi-journal-richtext:before{content:""}.bi-journal-text:before{content:""}.bi-journal-x:before{content:""}.bi-journal:before{content:""}.bi-journals:before{content:""}.bi-joystick:before{content:""}.bi-justify-left:before{content:""}.bi-justify-right:before{content:""}.bi-justify:before{content:""}.bi-kanban-fill:before{content:""}.bi-kanban:before{content:""}.bi-key-fill:before{content:""}.bi-key:before{content:""}.bi-keyboard-fill:before{content:""}.bi-keyboard:before{content:""}.bi-ladder:before{content:""}.bi-lamp-fill:before{content:""}.bi-lamp:before{content:""}.bi-laptop-fill:before{content:""}.bi-laptop:before{content:""}.bi-layer-backward:before{content:""}.bi-layer-forward:before{content:""}.bi-layers-fill:before{content:""}.bi-layers-half:before{content:""}.bi-layers:before{content:""}.bi-layout-sidebar-inset-reverse:before{content:""}.bi-layout-sidebar-inset:before{content:""}.bi-layout-sidebar-reverse:before{content:""}.bi-layout-sidebar:before{content:""}.bi-layout-split:before{content:""}.bi-layout-text-sidebar-reverse:before{content:""}.bi-layout-text-sidebar:before{content:""}.bi-layout-text-window-reverse:before{content:""}.bi-layout-text-window:before{content:""}.bi-layout-three-columns:before{content:""}.bi-layout-wtf:before{content:""}.bi-life-preserver:before{content:""}.bi-lightbulb-fill:before{content:""}.bi-lightbulb-off-fill:before{content:""}.bi-lightbulb-off:before{content:""}.bi-lightbulb:before{content:""}.bi-lightning-charge-fill:before{content:""}.bi-lightning-charge:before{content:""}.bi-lightning-fill:before{content:""}.bi-lightning:before{content:""}.bi-link-45deg:before{content:""}.bi-link:before{content:""}.bi-linkedin:before{content:""}.bi-list-check:before{content:""}.bi-list-nested:before{content:""}.bi-list-ol:before{content:""}.bi-list-stars:before{content:""}.bi-list-task:before{content:""}.bi-list-ul:before{content:""}.bi-list:before{content:""}.bi-lock-fill:before{content:""}.bi-lock:before{content:""}.bi-mailbox:before{content:""}.bi-mailbox2:before{content:""}.bi-map-fill:before{content:""}.bi-map:before{content:""}.bi-markdown-fill:before{content:""}.bi-markdown:before{content:""}.bi-mask:before{content:""}.bi-megaphone-fill:before{content:""}.bi-megaphone:before{content:""}.bi-menu-app-fill:before{content:""}.bi-menu-app:before{content:""}.bi-menu-button-fill:before{content:""}.bi-menu-button-wide-fill:before{content:""}.bi-menu-button-wide:before{content:""}.bi-menu-button:before{content:""}.bi-menu-down:before{content:""}.bi-menu-up:before{content:""}.bi-mic-fill:before{content:""}.bi-mic-mute-fill:before{content:""}.bi-mic-mute:before{content:""}.bi-mic:before{content:""}.bi-minecart-loaded:before{content:""}.bi-minecart:before{content:""}.bi-moisture:before{content:""}.bi-moon-fill:before{content:""}.bi-moon-stars-fill:before{content:""}.bi-moon-stars:before{content:""}.bi-moon:before{content:""}.bi-mouse-fill:before{content:""}.bi-mouse:before{content:""}.bi-mouse2-fill:before{content:""}.bi-mouse2:before{content:""}.bi-mouse3-fill:before{content:""}.bi-mouse3:before{content:""}.bi-music-note-beamed:before{content:""}.bi-music-note-list:before{content:""}.bi-music-note:before{content:""}.bi-music-player-fill:before{content:""}.bi-music-player:before{content:""}.bi-newspaper:before{content:""}.bi-node-minus-fill:before{content:""}.bi-node-minus:before{content:""}.bi-node-plus-fill:before{content:""}.bi-node-plus:before{content:""}.bi-nut-fill:before{content:""}.bi-nut:before{content:""}.bi-octagon-fill:before{content:""}.bi-octagon-half:before{content:""}.bi-octagon:before{content:""}.bi-option:before{content:""}.bi-outlet:before{content:""}.bi-paint-bucket:before{content:""}.bi-palette-fill:before{content:""}.bi-palette:before{content:""}.bi-palette2:before{content:""}.bi-paperclip:before{content:""}.bi-paragraph:before{content:""}.bi-patch-check-fill:before{content:""}.bi-patch-check:before{content:""}.bi-patch-exclamation-fill:before{content:""}.bi-patch-exclamation:before{content:""}.bi-patch-minus-fill:before{content:""}.bi-patch-minus:before{content:""}.bi-patch-plus-fill:before{content:""}.bi-patch-plus:before{content:""}.bi-patch-question-fill:before{content:""}.bi-patch-question:before{content:""}.bi-pause-btn-fill:before{content:""}.bi-pause-btn:before{content:""}.bi-pause-circle-fill:before{content:""}.bi-pause-circle:before{content:""}.bi-pause-fill:before{content:""}.bi-pause:before{content:""}.bi-peace-fill:before{content:""}.bi-peace:before{content:""}.bi-pen-fill:before{content:""}.bi-pen:before{content:""}.bi-pencil-fill:before{content:""}.bi-pencil-square:before{content:""}.bi-pencil:before{content:""}.bi-pentagon-fill:before{content:""}.bi-pentagon-half:before{content:""}.bi-pentagon:before{content:""}.bi-people-fill:before{content:""}.bi-people:before{content:""}.bi-percent:before{content:""}.bi-person-badge-fill:before{content:""}.bi-person-badge:before{content:""}.bi-person-bounding-box:before{content:""}.bi-person-check-fill:before{content:""}.bi-person-check:before{content:""}.bi-person-circle:before{content:""}.bi-person-dash-fill:before{content:""}.bi-person-dash:before{content:""}.bi-person-fill:before{content:""}.bi-person-lines-fill:before{content:""}.bi-person-plus-fill:before{content:""}.bi-person-plus:before{content:""}.bi-person-square:before{content:""}.bi-person-x-fill:before{content:""}.bi-person-x:before{content:""}.bi-person:before{content:""}.bi-phone-fill:before{content:""}.bi-phone-landscape-fill:before{content:""}.bi-phone-landscape:before{content:""}.bi-phone-vibrate-fill:before{content:""}.bi-phone-vibrate:before{content:""}.bi-phone:before{content:""}.bi-pie-chart-fill:before{content:""}.bi-pie-chart:before{content:""}.bi-pin-angle-fill:before{content:""}.bi-pin-angle:before{content:""}.bi-pin-fill:before{content:""}.bi-pin:before{content:""}.bi-pip-fill:before{content:""}.bi-pip:before{content:""}.bi-play-btn-fill:before{content:""}.bi-play-btn:before{content:""}.bi-play-circle-fill:before{content:""}.bi-play-circle:before{content:""}.bi-play-fill:before{content:""}.bi-play:before{content:""}.bi-plug-fill:before{content:""}.bi-plug:before{content:""}.bi-plus-circle-dotted:before{content:""}.bi-plus-circle-fill:before{content:""}.bi-plus-circle:before{content:""}.bi-plus-square-dotted:before{content:""}.bi-plus-square-fill:before{content:""}.bi-plus-square:before{content:""}.bi-plus:before{content:""}.bi-power:before{content:""}.bi-printer-fill:before{content:""}.bi-printer:before{content:""}.bi-puzzle-fill:before{content:""}.bi-puzzle:before{content:""}.bi-question-circle-fill:before{content:""}.bi-question-circle:before{content:""}.bi-question-diamond-fill:before{content:""}.bi-question-diamond:before{content:""}.bi-question-octagon-fill:before{content:""}.bi-question-octagon:before{content:""}.bi-question-square-fill:before{content:""}.bi-question-square:before{content:""}.bi-question:before{content:""}.bi-rainbow:before{content:""}.bi-receipt-cutoff:before{content:""}.bi-receipt:before{content:""}.bi-reception-0:before{content:""}.bi-reception-1:before{content:""}.bi-reception-2:before{content:""}.bi-reception-3:before{content:""}.bi-reception-4:before{content:""}.bi-record-btn-fill:before{content:""}.bi-record-btn:before{content:""}.bi-record-circle-fill:before{content:""}.bi-record-circle:before{content:""}.bi-record-fill:before{content:""}.bi-record:before{content:""}.bi-record2-fill:before{content:""}.bi-record2:before{content:""}.bi-reply-all-fill:before{content:""}.bi-reply-all:before{content:""}.bi-reply-fill:before{content:""}.bi-reply:before{content:""}.bi-rss-fill:before{content:""}.bi-rss:before{content:""}.bi-rulers:before{content:""}.bi-save-fill:before{content:""}.bi-save:before{content:""}.bi-save2-fill:before{content:""}.bi-save2:before{content:""}.bi-scissors:before{content:""}.bi-screwdriver:before{content:""}.bi-search:before{content:""}.bi-segmented-nav:before{content:""}.bi-server:before{content:""}.bi-share-fill:before{content:""}.bi-share:before{content:""}.bi-shield-check:before{content:""}.bi-shield-exclamation:before{content:""}.bi-shield-fill-check:before{content:""}.bi-shield-fill-exclamation:before{content:""}.bi-shield-fill-minus:before{content:""}.bi-shield-fill-plus:before{content:""}.bi-shield-fill-x:before{content:""}.bi-shield-fill:before{content:""}.bi-shield-lock-fill:before{content:""}.bi-shield-lock:before{content:""}.bi-shield-minus:before{content:""}.bi-shield-plus:before{content:""}.bi-shield-shaded:before{content:""}.bi-shield-slash-fill:before{content:""}.bi-shield-slash:before{content:""}.bi-shield-x:before{content:""}.bi-shield:before{content:""}.bi-shift-fill:before{content:""}.bi-shift:before{content:""}.bi-shop-window:before{content:""}.bi-shop:before{content:""}.bi-shuffle:before{content:""}.bi-signpost-2-fill:before{content:""}.bi-signpost-2:before{content:""}.bi-signpost-fill:before{content:""}.bi-signpost-split-fill:before{content:""}.bi-signpost-split:before{content:""}.bi-signpost:before{content:""}.bi-sim-fill:before{content:""}.bi-sim:before{content:""}.bi-skip-backward-btn-fill:before{content:""}.bi-skip-backward-btn:before{content:""}.bi-skip-backward-circle-fill:before{content:""}.bi-skip-backward-circle:before{content:""}.bi-skip-backward-fill:before{content:""}.bi-skip-backward:before{content:""}.bi-skip-end-btn-fill:before{content:""}.bi-skip-end-btn:before{content:""}.bi-skip-end-circle-fill:before{content:""}.bi-skip-end-circle:before{content:""}.bi-skip-end-fill:before{content:""}.bi-skip-end:before{content:""}.bi-skip-forward-btn-fill:before{content:""}.bi-skip-forward-btn:before{content:""}.bi-skip-forward-circle-fill:before{content:""}.bi-skip-forward-circle:before{content:""}.bi-skip-forward-fill:before{content:""}.bi-skip-forward:before{content:""}.bi-skip-start-btn-fill:before{content:""}.bi-skip-start-btn:before{content:""}.bi-skip-start-circle-fill:before{content:""}.bi-skip-start-circle:before{content:""}.bi-skip-start-fill:before{content:""}.bi-skip-start:before{content:""}.bi-slack:before{content:""}.bi-slash-circle-fill:before{content:""}.bi-slash-circle:before{content:""}.bi-slash-square-fill:before{content:""}.bi-slash-square:before{content:""}.bi-slash:before{content:""}.bi-sliders:before{content:""}.bi-smartwatch:before{content:""}.bi-snow:before{content:""}.bi-snow2:before{content:""}.bi-snow3:before{content:""}.bi-sort-alpha-down-alt:before{content:""}.bi-sort-alpha-down:before{content:""}.bi-sort-alpha-up-alt:before{content:""}.bi-sort-alpha-up:before{content:""}.bi-sort-down-alt:before{content:""}.bi-sort-down:before{content:""}.bi-sort-numeric-down-alt:before{content:""}.bi-sort-numeric-down:before{content:""}.bi-sort-numeric-up-alt:before{content:""}.bi-sort-numeric-up:before{content:""}.bi-sort-up-alt:before{content:""}.bi-sort-up:before{content:""}.bi-soundwave:before{content:""}.bi-speaker-fill:before{content:""}.bi-speaker:before{content:""}.bi-speedometer:before{content:""}.bi-speedometer2:before{content:""}.bi-spellcheck:before{content:""}.bi-square-fill:before{content:""}.bi-square-half:before{content:""}.bi-square:before{content:""}.bi-stack:before{content:""}.bi-star-fill:before{content:""}.bi-star-half:before{content:""}.bi-star:before{content:""}.bi-stars:before{content:""}.bi-stickies-fill:before{content:""}.bi-stickies:before{content:""}.bi-sticky-fill:before{content:""}.bi-sticky:before{content:""}.bi-stop-btn-fill:before{content:""}.bi-stop-btn:before{content:""}.bi-stop-circle-fill:before{content:""}.bi-stop-circle:before{content:""}.bi-stop-fill:before{content:""}.bi-stop:before{content:""}.bi-stoplights-fill:before{content:""}.bi-stoplights:before{content:""}.bi-stopwatch-fill:before{content:""}.bi-stopwatch:before{content:""}.bi-subtract:before{content:""}.bi-suit-club-fill:before{content:""}.bi-suit-club:before{content:""}.bi-suit-diamond-fill:before{content:""}.bi-suit-diamond:before{content:""}.bi-suit-heart-fill:before{content:""}.bi-suit-heart:before{content:""}.bi-suit-spade-fill:before{content:""}.bi-suit-spade:before{content:""}.bi-sun-fill:before{content:""}.bi-sun:before{content:""}.bi-sunglasses:before{content:""}.bi-sunrise-fill:before{content:""}.bi-sunrise:before{content:""}.bi-sunset-fill:before{content:""}.bi-sunset:before{content:""}.bi-symmetry-horizontal:before{content:""}.bi-symmetry-vertical:before{content:""}.bi-table:before{content:""}.bi-tablet-fill:before{content:""}.bi-tablet-landscape-fill:before{content:""}.bi-tablet-landscape:before{content:""}.bi-tablet:before{content:""}.bi-tag-fill:before{content:""}.bi-tag:before{content:""}.bi-tags-fill:before{content:""}.bi-tags:before{content:""}.bi-telegram:before{content:""}.bi-telephone-fill:before{content:""}.bi-telephone-forward-fill:before{content:""}.bi-telephone-forward:before{content:""}.bi-telephone-inbound-fill:before{content:""}.bi-telephone-inbound:before{content:""}.bi-telephone-minus-fill:before{content:""}.bi-telephone-minus:before{content:""}.bi-telephone-outbound-fill:before{content:""}.bi-telephone-outbound:before{content:""}.bi-telephone-plus-fill:before{content:""}.bi-telephone-plus:before{content:""}.bi-telephone-x-fill:before{content:""}.bi-telephone-x:before{content:""}.bi-telephone:before{content:""}.bi-terminal-fill:before{content:""}.bi-terminal:before{content:""}.bi-text-center:before{content:""}.bi-text-indent-left:before{content:""}.bi-text-indent-right:before{content:""}.bi-text-left:before{content:""}.bi-text-paragraph:before{content:""}.bi-text-right:before{content:""}.bi-textarea-resize:before{content:""}.bi-textarea-t:before{content:""}.bi-textarea:before{content:""}.bi-thermometer-half:before{content:""}.bi-thermometer-high:before{content:""}.bi-thermometer-low:before{content:""}.bi-thermometer-snow:before{content:""}.bi-thermometer-sun:before{content:""}.bi-thermometer:before{content:""}.bi-three-dots-vertical:before{content:""}.bi-three-dots:before{content:""}.bi-toggle-off:before{content:""}.bi-toggle-on:before{content:""}.bi-toggle2-off:before{content:""}.bi-toggle2-on:before{content:""}.bi-toggles:before{content:""}.bi-toggles2:before{content:""}.bi-tools:before{content:""}.bi-tornado:before{content:""}.bi-trash-fill:before{content:""}.bi-trash:before{content:""}.bi-trash2-fill:before{content:""}.bi-trash2:before{content:""}.bi-tree-fill:before{content:""}.bi-tree:before{content:""}.bi-triangle-fill:before{content:""}.bi-triangle-half:before{content:""}.bi-triangle:before{content:""}.bi-trophy-fill:before{content:""}.bi-trophy:before{content:""}.bi-tropical-storm:before{content:""}.bi-truck-flatbed:before{content:""}.bi-truck:before{content:""}.bi-tsunami:before{content:""}.bi-tv-fill:before{content:""}.bi-tv:before{content:""}.bi-twitch:before{content:""}.bi-twitter:before{content:""}.bi-type-bold:before{content:""}.bi-type-h1:before{content:""}.bi-type-h2:before{content:""}.bi-type-h3:before{content:""}.bi-type-italic:before{content:""}.bi-type-strikethrough:before{content:""}.bi-type-underline:before{content:""}.bi-type:before{content:""}.bi-ui-checks-grid:before{content:""}.bi-ui-checks:before{content:""}.bi-ui-radios-grid:before{content:""}.bi-ui-radios:before{content:""}.bi-umbrella-fill:before{content:""}.bi-umbrella:before{content:""}.bi-union:before{content:""}.bi-unlock-fill:before{content:""}.bi-unlock:before{content:""}.bi-upc-scan:before{content:""}.bi-upc:before{content:""}.bi-upload:before{content:""}.bi-vector-pen:before{content:""}.bi-view-list:before{content:""}.bi-view-stacked:before{content:""}.bi-vinyl-fill:before{content:""}.bi-vinyl:before{content:""}.bi-voicemail:before{content:""}.bi-volume-down-fill:before{content:""}.bi-volume-down:before{content:""}.bi-volume-mute-fill:before{content:""}.bi-volume-mute:before{content:""}.bi-volume-off-fill:before{content:""}.bi-volume-off:before{content:""}.bi-volume-up-fill:before{content:""}.bi-volume-up:before{content:""}.bi-vr:before{content:""}.bi-wallet-fill:before{content:""}.bi-wallet:before{content:""}.bi-wallet2:before{content:""}.bi-watch:before{content:""}.bi-water:before{content:""}.bi-whatsapp:before{content:""}.bi-wifi-1:before{content:""}.bi-wifi-2:before{content:""}.bi-wifi-off:before{content:""}.bi-wifi:before{content:""}.bi-wind:before{content:""}.bi-window-dock:before{content:""}.bi-window-sidebar:before{content:""}.bi-window:before{content:""}.bi-wrench:before{content:""}.bi-x-circle-fill:before{content:""}.bi-x-circle:before{content:""}.bi-x-diamond-fill:before{content:""}.bi-x-diamond:before{content:""}.bi-x-octagon-fill:before{content:""}.bi-x-octagon:before{content:""}.bi-x-square-fill:before{content:""}.bi-x-square:before{content:""}.bi-x:before{content:""}.bi-youtube:before{content:""}.bi-zoom-in:before{content:""}.bi-zoom-out:before{content:""}.bi-bank:before{content:""}.bi-bank2:before{content:""}.bi-bell-slash-fill:before{content:""}.bi-bell-slash:before{content:""}.bi-cash-coin:before{content:""}.bi-check-lg:before{content:""}.bi-coin:before{content:""}.bi-currency-bitcoin:before{content:""}.bi-currency-dollar:before{content:""}.bi-currency-euro:before{content:""}.bi-currency-exchange:before{content:""}.bi-currency-pound:before{content:""}.bi-currency-yen:before{content:""}.bi-dash-lg:before{content:""}.bi-exclamation-lg:before{content:""}.bi-file-earmark-pdf-fill:before{content:""}.bi-file-earmark-pdf:before{content:""}.bi-file-pdf-fill:before{content:""}.bi-file-pdf:before{content:""}.bi-gender-ambiguous:before{content:""}.bi-gender-female:before{content:""}.bi-gender-male:before{content:""}.bi-gender-trans:before{content:""}.bi-headset-vr:before{content:""}.bi-info-lg:before{content:""}.bi-mastodon:before{content:""}.bi-messenger:before{content:""}.bi-piggy-bank-fill:before{content:""}.bi-piggy-bank:before{content:""}.bi-pin-map-fill:before{content:""}.bi-pin-map:before{content:""}.bi-plus-lg:before{content:""}.bi-question-lg:before{content:""}.bi-recycle:before{content:""}.bi-reddit:before{content:""}.bi-safe-fill:before{content:""}.bi-safe2-fill:before{content:""}.bi-safe2:before{content:""}.bi-sd-card-fill:before{content:""}.bi-sd-card:before{content:""}.bi-skype:before{content:""}.bi-slash-lg:before{content:""}.bi-translate:before{content:""}.bi-x-lg:before{content:""}.bi-safe:before{content:""}.bi-apple:before{content:""}.bi-microsoft:before{content:""}.bi-windows:before{content:""}.bi-behance:before{content:""}.bi-dribbble:before{content:""}.bi-line:before{content:""}.bi-medium:before{content:""}.bi-paypal:before{content:""}.bi-pinterest:before{content:""}.bi-signal:before{content:""}.bi-snapchat:before{content:""}.bi-spotify:before{content:""}.bi-stack-overflow:before{content:""}.bi-strava:before{content:""}.bi-wordpress:before{content:""}.bi-vimeo:before{content:""}.bi-activity:before{content:""}.bi-easel2-fill:before{content:""}.bi-easel2:before{content:""}.bi-easel3-fill:before{content:""}.bi-easel3:before{content:""}.bi-fan:before{content:""}.bi-fingerprint:before{content:""}.bi-graph-down-arrow:before{content:""}.bi-graph-up-arrow:before{content:""}.bi-hypnotize:before{content:""}.bi-magic:before{content:""}.bi-person-rolodex:before{content:""}.bi-person-video:before{content:""}.bi-person-video2:before{content:""}.bi-person-video3:before{content:""}.bi-person-workspace:before{content:""}.bi-radioactive:before{content:""}.bi-webcam-fill:before{content:""}.bi-webcam:before{content:""}.bi-yin-yang:before{content:""}.bi-bandaid-fill:before{content:""}.bi-bandaid:before{content:""}.bi-bluetooth:before{content:""}.bi-body-text:before{content:""}.bi-boombox:before{content:""}.bi-boxes:before{content:""}.bi-dpad-fill:before{content:""}.bi-dpad:before{content:""}.bi-ear-fill:before{content:""}.bi-ear:before{content:""}.bi-envelope-check-fill:before{content:""}.bi-envelope-check:before{content:""}.bi-envelope-dash-fill:before{content:""}.bi-envelope-dash:before{content:""}.bi-envelope-exclamation-fill:before{content:""}.bi-envelope-exclamation:before{content:""}.bi-envelope-plus-fill:before{content:""}.bi-envelope-plus:before{content:""}.bi-envelope-slash-fill:before{content:""}.bi-envelope-slash:before{content:""}.bi-envelope-x-fill:before{content:""}.bi-envelope-x:before{content:""}.bi-explicit-fill:before{content:""}.bi-explicit:before{content:""}.bi-git:before{content:""}.bi-infinity:before{content:""}.bi-list-columns-reverse:before{content:""}.bi-list-columns:before{content:""}.bi-meta:before{content:""}.bi-nintendo-switch:before{content:""}.bi-pc-display-horizontal:before{content:""}.bi-pc-display:before{content:""}.bi-pc-horizontal:before{content:""}.bi-pc:before{content:""}.bi-playstation:before{content:""}.bi-plus-slash-minus:before{content:""}.bi-projector-fill:before{content:""}.bi-projector:before{content:""}.bi-qr-code-scan:before{content:""}.bi-qr-code:before{content:""}.bi-quora:before{content:""}.bi-quote:before{content:""}.bi-robot:before{content:""}.bi-send-check-fill:before{content:""}.bi-send-check:before{content:""}.bi-send-dash-fill:before{content:""}.bi-send-dash:before{content:""}.bi-send-exclamation-fill:before{content:""}.bi-send-exclamation:before{content:""}.bi-send-fill:before{content:""}.bi-send-plus-fill:before{content:""}.bi-send-plus:before{content:""}.bi-send-slash-fill:before{content:""}.bi-send-slash:before{content:""}.bi-send-x-fill:before{content:""}.bi-send-x:before{content:""}.bi-send:before{content:""}.bi-steam:before{content:""}.bi-terminal-dash:before{content:""}.bi-terminal-plus:before{content:""}.bi-terminal-split:before{content:""}.bi-ticket-detailed-fill:before{content:""}.bi-ticket-detailed:before{content:""}.bi-ticket-fill:before{content:""}.bi-ticket-perforated-fill:before{content:""}.bi-ticket-perforated:before{content:""}.bi-ticket:before{content:""}.bi-tiktok:before{content:""}.bi-window-dash:before{content:""}.bi-window-desktop:before{content:""}.bi-window-fullscreen:before{content:""}.bi-window-plus:before{content:""}.bi-window-split:before{content:""}.bi-window-stack:before{content:""}.bi-window-x:before{content:""}.bi-xbox:before{content:""}.bi-ethernet:before{content:""}.bi-hdmi-fill:before{content:""}.bi-hdmi:before{content:""}.bi-usb-c-fill:before{content:""}.bi-usb-c:before{content:""}.bi-usb-fill:before{content:""}.bi-usb-plug-fill:before{content:""}.bi-usb-plug:before{content:""}.bi-usb-symbol:before{content:""}.bi-usb:before{content:""}.bi-boombox-fill:before{content:""}.bi-displayport:before{content:""}.bi-gpu-card:before{content:""}.bi-memory:before{content:""}.bi-modem-fill:before{content:""}.bi-modem:before{content:""}.bi-motherboard-fill:before{content:""}.bi-motherboard:before{content:""}.bi-optical-audio-fill:before{content:""}.bi-optical-audio:before{content:""}.bi-pci-card:before{content:""}.bi-router-fill:before{content:""}.bi-router:before{content:""}.bi-thunderbolt-fill:before{content:""}.bi-thunderbolt:before{content:""}.bi-usb-drive-fill:before{content:""}.bi-usb-drive:before{content:""}.bi-usb-micro-fill:before{content:""}.bi-usb-micro:before{content:""}.bi-usb-mini-fill:before{content:""}.bi-usb-mini:before{content:""}.bi-cloud-haze2:before{content:""}.bi-device-hdd-fill:before{content:""}.bi-device-hdd:before{content:""}.bi-device-ssd-fill:before{content:""}.bi-device-ssd:before{content:""}.bi-displayport-fill:before{content:""}.bi-mortarboard-fill:before{content:""}.bi-mortarboard:before{content:""}.bi-terminal-x:before{content:""}.bi-arrow-through-heart-fill:before{content:""}.bi-arrow-through-heart:before{content:""}.bi-badge-sd-fill:before{content:""}.bi-badge-sd:before{content:""}.bi-bag-heart-fill:before{content:""}.bi-bag-heart:before{content:""}.bi-balloon-fill:before{content:""}.bi-balloon-heart-fill:before{content:""}.bi-balloon-heart:before{content:""}.bi-balloon:before{content:""}.bi-box2-fill:before{content:""}.bi-box2-heart-fill:before{content:""}.bi-box2-heart:before{content:""}.bi-box2:before{content:""}.bi-braces-asterisk:before{content:""}.bi-calendar-heart-fill:before{content:""}.bi-calendar-heart:before{content:""}.bi-calendar2-heart-fill:before{content:""}.bi-calendar2-heart:before{content:""}.bi-chat-heart-fill:before{content:""}.bi-chat-heart:before{content:""}.bi-chat-left-heart-fill:before{content:""}.bi-chat-left-heart:before{content:""}.bi-chat-right-heart-fill:before{content:""}.bi-chat-right-heart:before{content:""}.bi-chat-square-heart-fill:before{content:""}.bi-chat-square-heart:before{content:""}.bi-clipboard-check-fill:before{content:""}.bi-clipboard-data-fill:before{content:""}.bi-clipboard-fill:before{content:""}.bi-clipboard-heart-fill:before{content:""}.bi-clipboard-heart:before{content:""}.bi-clipboard-minus-fill:before{content:""}.bi-clipboard-plus-fill:before{content:""}.bi-clipboard-pulse:before{content:""}.bi-clipboard-x-fill:before{content:""}.bi-clipboard2-check-fill:before{content:""}.bi-clipboard2-check:before{content:""}.bi-clipboard2-data-fill:before{content:""}.bi-clipboard2-data:before{content:""}.bi-clipboard2-fill:before{content:""}.bi-clipboard2-heart-fill:before{content:""}.bi-clipboard2-heart:before{content:""}.bi-clipboard2-minus-fill:before{content:""}.bi-clipboard2-minus:before{content:""}.bi-clipboard2-plus-fill:before{content:""}.bi-clipboard2-plus:before{content:""}.bi-clipboard2-pulse-fill:before{content:""}.bi-clipboard2-pulse:before{content:""}.bi-clipboard2-x-fill:before{content:""}.bi-clipboard2-x:before{content:""}.bi-clipboard2:before{content:""}.bi-emoji-kiss-fill:before{content:""}.bi-emoji-kiss:before{content:""}.bi-envelope-heart-fill:before{content:""}.bi-envelope-heart:before{content:""}.bi-envelope-open-heart-fill:before{content:""}.bi-envelope-open-heart:before{content:""}.bi-envelope-paper-fill:before{content:""}.bi-envelope-paper-heart-fill:before{content:""}.bi-envelope-paper-heart:before{content:""}.bi-envelope-paper:before{content:""}.bi-filetype-aac:before{content:""}.bi-filetype-ai:before{content:""}.bi-filetype-bmp:before{content:""}.bi-filetype-cs:before{content:""}.bi-filetype-css:before{content:""}.bi-filetype-csv:before{content:""}.bi-filetype-doc:before{content:""}.bi-filetype-docx:before{content:""}.bi-filetype-exe:before{content:""}.bi-filetype-gif:before{content:""}.bi-filetype-heic:before{content:""}.bi-filetype-html:before{content:""}.bi-filetype-java:before{content:""}.bi-filetype-jpg:before{content:""}.bi-filetype-js:before{content:""}.bi-filetype-jsx:before{content:""}.bi-filetype-key:before{content:""}.bi-filetype-m4p:before{content:""}.bi-filetype-md:before{content:""}.bi-filetype-mdx:before{content:""}.bi-filetype-mov:before{content:""}.bi-filetype-mp3:before{content:""}.bi-filetype-mp4:before{content:""}.bi-filetype-otf:before{content:""}.bi-filetype-pdf:before{content:""}.bi-filetype-php:before{content:""}.bi-filetype-png:before{content:""}.bi-filetype-ppt:before{content:""}.bi-filetype-psd:before{content:""}.bi-filetype-py:before{content:""}.bi-filetype-raw:before{content:""}.bi-filetype-rb:before{content:""}.bi-filetype-sass:before{content:""}.bi-filetype-scss:before{content:""}.bi-filetype-sh:before{content:""}.bi-filetype-svg:before{content:""}.bi-filetype-tiff:before{content:""}.bi-filetype-tsx:before{content:""}.bi-filetype-ttf:before{content:""}.bi-filetype-txt:before{content:""}.bi-filetype-wav:before{content:""}.bi-filetype-woff:before{content:""}.bi-filetype-xls:before{content:""}.bi-filetype-xml:before{content:""}.bi-filetype-yml:before{content:""}.bi-heart-arrow:before{content:""}.bi-heart-pulse-fill:before{content:""}.bi-heart-pulse:before{content:""}.bi-heartbreak-fill:before{content:""}.bi-heartbreak:before{content:""}.bi-hearts:before{content:""}.bi-hospital-fill:before{content:""}.bi-hospital:before{content:""}.bi-house-heart-fill:before{content:""}.bi-house-heart:before{content:""}.bi-incognito:before{content:""}.bi-magnet-fill:before{content:""}.bi-magnet:before{content:""}.bi-person-heart:before{content:""}.bi-person-hearts:before{content:""}.bi-phone-flip:before{content:""}.bi-plugin:before{content:""}.bi-postage-fill:before{content:""}.bi-postage-heart-fill:before{content:""}.bi-postage-heart:before{content:""}.bi-postage:before{content:""}.bi-postcard-fill:before{content:""}.bi-postcard-heart-fill:before{content:""}.bi-postcard-heart:before{content:""}.bi-postcard:before{content:""}.bi-search-heart-fill:before{content:""}.bi-search-heart:before{content:""}.bi-sliders2-vertical:before{content:""}.bi-sliders2:before{content:""}.bi-trash3-fill:before{content:""}.bi-trash3:before{content:""}.bi-valentine:before{content:""}.bi-valentine2:before{content:""}.bi-wrench-adjustable-circle-fill:before{content:""}.bi-wrench-adjustable-circle:before{content:""}.bi-wrench-adjustable:before{content:""}.bi-filetype-json:before{content:""}.bi-filetype-pptx:before{content:""}.bi-filetype-xlsx:before{content:""}.bi-1-circle-fill:before{content:""}.bi-1-circle:before{content:""}.bi-1-square-fill:before{content:""}.bi-1-square:before{content:""}.bi-2-circle-fill:before{content:""}.bi-2-circle:before{content:""}.bi-2-square-fill:before{content:""}.bi-2-square:before{content:""}.bi-3-circle-fill:before{content:""}.bi-3-circle:before{content:""}.bi-3-square-fill:before{content:""}.bi-3-square:before{content:""}.bi-4-circle-fill:before{content:""}.bi-4-circle:before{content:""}.bi-4-square-fill:before{content:""}.bi-4-square:before{content:""}.bi-5-circle-fill:before{content:""}.bi-5-circle:before{content:""}.bi-5-square-fill:before{content:""}.bi-5-square:before{content:""}.bi-6-circle-fill:before{content:""}.bi-6-circle:before{content:""}.bi-6-square-fill:before{content:""}.bi-6-square:before{content:""}.bi-7-circle-fill:before{content:""}.bi-7-circle:before{content:""}.bi-7-square-fill:before{content:""}.bi-7-square:before{content:""}.bi-8-circle-fill:before{content:""}.bi-8-circle:before{content:""}.bi-8-square-fill:before{content:""}.bi-8-square:before{content:""}.bi-9-circle-fill:before{content:""}.bi-9-circle:before{content:""}.bi-9-square-fill:before{content:""}.bi-9-square:before{content:""}.bi-airplane-engines-fill:before{content:""}.bi-airplane-engines:before{content:""}.bi-airplane-fill:before{content:""}.bi-airplane:before{content:""}.bi-alexa:before{content:""}.bi-alipay:before{content:""}.bi-android:before{content:""}.bi-android2:before{content:""}.bi-box-fill:before{content:""}.bi-box-seam-fill:before{content:""}.bi-browser-chrome:before{content:""}.bi-browser-edge:before{content:""}.bi-browser-firefox:before{content:""}.bi-browser-safari:before{content:""}.bi-c-circle-fill:before{content:""}.bi-c-circle:before{content:""}.bi-c-square-fill:before{content:""}.bi-c-square:before{content:""}.bi-capsule-pill:before{content:""}.bi-capsule:before{content:""}.bi-car-front-fill:before{content:""}.bi-car-front:before{content:""}.bi-cassette-fill:before{content:""}.bi-cassette:before{content:""}.bi-cc-circle-fill:before{content:""}.bi-cc-circle:before{content:""}.bi-cc-square-fill:before{content:""}.bi-cc-square:before{content:""}.bi-cup-hot-fill:before{content:""}.bi-cup-hot:before{content:""}.bi-currency-rupee:before{content:""}.bi-dropbox:before{content:""}.bi-escape:before{content:""}.bi-fast-forward-btn-fill:before{content:""}.bi-fast-forward-btn:before{content:""}.bi-fast-forward-circle-fill:before{content:""}.bi-fast-forward-circle:before{content:""}.bi-fast-forward-fill:before{content:""}.bi-fast-forward:before{content:""}.bi-filetype-sql:before{content:""}.bi-fire:before{content:""}.bi-google-play:before{content:""}.bi-h-circle-fill:before{content:""}.bi-h-circle:before{content:""}.bi-h-square-fill:before{content:""}.bi-h-square:before{content:""}.bi-indent:before{content:""}.bi-lungs-fill:before{content:""}.bi-lungs:before{content:""}.bi-microsoft-teams:before{content:""}.bi-p-circle-fill:before{content:""}.bi-p-circle:before{content:""}.bi-p-square-fill:before{content:""}.bi-p-square:before{content:""}.bi-pass-fill:before{content:""}.bi-pass:before{content:""}.bi-prescription:before{content:""}.bi-prescription2:before{content:""}.bi-r-circle-fill:before{content:""}.bi-r-circle:before{content:""}.bi-r-square-fill:before{content:""}.bi-r-square:before{content:""}.bi-repeat-1:before{content:""}.bi-repeat:before{content:""}.bi-rewind-btn-fill:before{content:""}.bi-rewind-btn:before{content:""}.bi-rewind-circle-fill:before{content:""}.bi-rewind-circle:before{content:""}.bi-rewind-fill:before{content:""}.bi-rewind:before{content:""}.bi-train-freight-front-fill:before{content:""}.bi-train-freight-front:before{content:""}.bi-train-front-fill:before{content:""}.bi-train-front:before{content:""}.bi-train-lightrail-front-fill:before{content:""}.bi-train-lightrail-front:before{content:""}.bi-truck-front-fill:before{content:""}.bi-truck-front:before{content:""}.bi-ubuntu:before{content:""}.bi-unindent:before{content:""}.bi-unity:before{content:""}.bi-universal-access-circle:before{content:""}.bi-universal-access:before{content:""}.bi-virus:before{content:""}.bi-virus2:before{content:""}.bi-wechat:before{content:""}.bi-yelp:before{content:""}.bi-sign-stop-fill:before{content:""}.bi-sign-stop-lights-fill:before{content:""}.bi-sign-stop-lights:before{content:""}.bi-sign-stop:before{content:""}.bi-sign-turn-left-fill:before{content:""}.bi-sign-turn-left:before{content:""}.bi-sign-turn-right-fill:before{content:""}.bi-sign-turn-right:before{content:""}.bi-sign-turn-slight-left-fill:before{content:""}.bi-sign-turn-slight-left:before{content:""}.bi-sign-turn-slight-right-fill:before{content:""}.bi-sign-turn-slight-right:before{content:""}.bi-sign-yield-fill:before{content:""}.bi-sign-yield:before{content:""}.bi-ev-station-fill:before{content:""}.bi-ev-station:before{content:""}.bi-fuel-pump-diesel-fill:before{content:""}.bi-fuel-pump-diesel:before{content:""}.bi-fuel-pump-fill:before{content:""}.bi-fuel-pump:before{content:""}.bi-0-circle-fill:before{content:""}.bi-0-circle:before{content:""}.bi-0-square-fill:before{content:""}.bi-0-square:before{content:""}.bi-rocket-fill:before{content:""}.bi-rocket-takeoff-fill:before{content:""}.bi-rocket-takeoff:before{content:""}.bi-rocket:before{content:""}.bi-stripe:before{content:""}.bi-subscript:before{content:""}.bi-superscript:before{content:""}.bi-trello:before{content:""}.bi-envelope-at-fill:before{content:""}.bi-envelope-at:before{content:""}.bi-regex:before{content:""}.bi-text-wrap:before{content:""}.bi-sign-dead-end-fill:before{content:""}.bi-sign-dead-end:before{content:""}.bi-sign-do-not-enter-fill:before{content:""}.bi-sign-do-not-enter:before{content:""}.bi-sign-intersection-fill:before{content:""}.bi-sign-intersection-side-fill:before{content:""}.bi-sign-intersection-side:before{content:""}.bi-sign-intersection-t-fill:before{content:""}.bi-sign-intersection-t:before{content:""}.bi-sign-intersection-y-fill:before{content:""}.bi-sign-intersection-y:before{content:""}.bi-sign-intersection:before{content:""}.bi-sign-merge-left-fill:before{content:""}.bi-sign-merge-left:before{content:""}.bi-sign-merge-right-fill:before{content:""}.bi-sign-merge-right:before{content:""}.bi-sign-no-left-turn-fill:before{content:""}.bi-sign-no-left-turn:before{content:""}.bi-sign-no-parking-fill:before{content:""}.bi-sign-no-parking:before{content:""}.bi-sign-no-right-turn-fill:before{content:""}.bi-sign-no-right-turn:before{content:""}.bi-sign-railroad-fill:before{content:""}.bi-sign-railroad:before{content:""}.bi-building-add:before{content:""}.bi-building-check:before{content:""}.bi-building-dash:before{content:""}.bi-building-down:before{content:""}.bi-building-exclamation:before{content:""}.bi-building-fill-add:before{content:""}.bi-building-fill-check:before{content:""}.bi-building-fill-dash:before{content:""}.bi-building-fill-down:before{content:""}.bi-building-fill-exclamation:before{content:""}.bi-building-fill-gear:before{content:""}.bi-building-fill-lock:before{content:""}.bi-building-fill-slash:before{content:""}.bi-building-fill-up:before{content:""}.bi-building-fill-x:before{content:""}.bi-building-fill:before{content:""}.bi-building-gear:before{content:""}.bi-building-lock:before{content:""}.bi-building-slash:before{content:""}.bi-building-up:before{content:""}.bi-building-x:before{content:""}.bi-buildings-fill:before{content:""}.bi-buildings:before{content:""}.bi-bus-front-fill:before{content:""}.bi-bus-front:before{content:""}.bi-ev-front-fill:before{content:""}.bi-ev-front:before{content:""}.bi-globe-americas:before{content:""}.bi-globe-asia-australia:before{content:""}.bi-globe-central-south-asia:before{content:""}.bi-globe-europe-africa:before{content:""}.bi-house-add-fill:before{content:""}.bi-house-add:before{content:""}.bi-house-check-fill:before{content:""}.bi-house-check:before{content:""}.bi-house-dash-fill:before{content:""}.bi-house-dash:before{content:""}.bi-house-down-fill:before{content:""}.bi-house-down:before{content:""}.bi-house-exclamation-fill:before{content:""}.bi-house-exclamation:before{content:""}.bi-house-gear-fill:before{content:""}.bi-house-gear:before{content:""}.bi-house-lock-fill:before{content:""}.bi-house-lock:before{content:""}.bi-house-slash-fill:before{content:""}.bi-house-slash:before{content:""}.bi-house-up-fill:before{content:""}.bi-house-up:before{content:""}.bi-house-x-fill:before{content:""}.bi-house-x:before{content:""}.bi-person-add:before{content:""}.bi-person-down:before{content:""}.bi-person-exclamation:before{content:""}.bi-person-fill-add:before{content:""}.bi-person-fill-check:before{content:""}.bi-person-fill-dash:before{content:""}.bi-person-fill-down:before{content:""}.bi-person-fill-exclamation:before{content:""}.bi-person-fill-gear:before{content:""}.bi-person-fill-lock:before{content:""}.bi-person-fill-slash:before{content:""}.bi-person-fill-up:before{content:""}.bi-person-fill-x:before{content:""}.bi-person-gear:before{content:""}.bi-person-lock:before{content:""}.bi-person-slash:before{content:""}.bi-person-up:before{content:""}.bi-scooter:before{content:""}.bi-taxi-front-fill:before{content:""}.bi-taxi-front:before{content:""}.bi-amd:before{content:""}.bi-database-add:before{content:""}.bi-database-check:before{content:""}.bi-database-dash:before{content:""}.bi-database-down:before{content:""}.bi-database-exclamation:before{content:""}.bi-database-fill-add:before{content:""}.bi-database-fill-check:before{content:""}.bi-database-fill-dash:before{content:""}.bi-database-fill-down:before{content:""}.bi-database-fill-exclamation:before{content:""}.bi-database-fill-gear:before{content:""}.bi-database-fill-lock:before{content:""}.bi-database-fill-slash:before{content:""}.bi-database-fill-up:before{content:""}.bi-database-fill-x:before{content:""}.bi-database-fill:before{content:""}.bi-database-gear:before{content:""}.bi-database-lock:before{content:""}.bi-database-slash:before{content:""}.bi-database-up:before{content:""}.bi-database-x:before{content:""}.bi-database:before{content:""}.bi-houses-fill:before{content:""}.bi-houses:before{content:""}.bi-nvidia:before{content:""}.bi-person-vcard-fill:before{content:""}.bi-person-vcard:before{content:""}.bi-sina-weibo:before{content:""}.bi-tencent-qq:before{content:""}.bi-wikipedia:before{content:""}.bi-alphabet-uppercase:before{content:""}.bi-alphabet:before{content:""}.bi-amazon:before{content:""}.bi-arrows-collapse-vertical:before{content:""}.bi-arrows-expand-vertical:before{content:""}.bi-arrows-vertical:before{content:""}.bi-arrows:before{content:""}.bi-ban-fill:before{content:""}.bi-ban:before{content:""}.bi-bing:before{content:""}.bi-cake:before{content:""}.bi-cake2:before{content:""}.bi-cookie:before{content:""}.bi-copy:before{content:""}.bi-crosshair:before{content:""}.bi-crosshair2:before{content:""}.bi-emoji-astonished-fill:before{content:""}.bi-emoji-astonished:before{content:""}.bi-emoji-grimace-fill:before{content:""}.bi-emoji-grimace:before{content:""}.bi-emoji-grin-fill:before{content:""}.bi-emoji-grin:before{content:""}.bi-emoji-surprise-fill:before{content:""}.bi-emoji-surprise:before{content:""}.bi-emoji-tear-fill:before{content:""}.bi-emoji-tear:before{content:""}.bi-envelope-arrow-down-fill:before{content:""}.bi-envelope-arrow-down:before{content:""}.bi-envelope-arrow-up-fill:before{content:""}.bi-envelope-arrow-up:before{content:""}.bi-feather:before{content:""}.bi-feather2:before{content:""}.bi-floppy-fill:before{content:""}.bi-floppy:before{content:""}.bi-floppy2-fill:before{content:""}.bi-floppy2:before{content:""}.bi-gitlab:before{content:""}.bi-highlighter:before{content:""}.bi-marker-tip:before{content:""}.bi-nvme-fill:before{content:""}.bi-nvme:before{content:""}.bi-opencollective:before{content:""}.bi-pci-card-network:before{content:""}.bi-pci-card-sound:before{content:""}.bi-radar:before{content:""}.bi-send-arrow-down-fill:before{content:""}.bi-send-arrow-down:before{content:""}.bi-send-arrow-up-fill:before{content:""}.bi-send-arrow-up:before{content:""}.bi-sim-slash-fill:before{content:""}.bi-sim-slash:before{content:""}.bi-sourceforge:before{content:""}.bi-substack:before{content:""}.bi-threads-fill:before{content:""}.bi-threads:before{content:""}.bi-transparency:before{content:""}.bi-twitter-x:before{content:""}.bi-type-h4:before{content:""}.bi-type-h5:before{content:""}.bi-type-h6:before{content:""}.bi-backpack-fill:before{content:""}.bi-backpack:before{content:""}.bi-backpack2-fill:before{content:""}.bi-backpack2:before{content:""}.bi-backpack3-fill:before{content:""}.bi-backpack3:before{content:""}.bi-backpack4-fill:before{content:""}.bi-backpack4:before{content:""}.bi-brilliance:before{content:""}.bi-cake-fill:before{content:""}.bi-cake2-fill:before{content:""}.bi-duffle-fill:before{content:""}.bi-duffle:before{content:""}.bi-exposure:before{content:""}.bi-gender-neuter:before{content:""}.bi-highlights:before{content:""}.bi-luggage-fill:before{content:""}.bi-luggage:before{content:""}.bi-mailbox-flag:before{content:""}.bi-mailbox2-flag:before{content:""}.bi-noise-reduction:before{content:""}.bi-passport-fill:before{content:""}.bi-passport:before{content:""}.bi-person-arms-up:before{content:""}.bi-person-raised-hand:before{content:""}.bi-person-standing-dress:before{content:""}.bi-person-standing:before{content:""}.bi-person-walking:before{content:""}.bi-person-wheelchair:before{content:""}.bi-shadows:before{content:""}.bi-suitcase-fill:before{content:""}.bi-suitcase-lg-fill:before{content:""}.bi-suitcase-lg:before{content:""}.bi-suitcase:before{content:"豈"}.bi-suitcase2-fill:before{content:"更"}.bi-suitcase2:before{content:"車"}.bi-vignette:before{content:"賈"}.messageCentre[data-v-54755a4a]{top:calc(50px + 1rem);right:1rem}.dropdown-menu[data-v-313d0126]{right:1rem}.slide-fade-leave-active[data-v-742207aa],.slide-fade-enter-active[data-v-742207aa]{transition:all .2s cubic-bezier(1,.5,.8,1)}.slide-fade-enter-from[data-v-742207aa],.slide-fade-leave-to[data-v-742207aa]{transform:translateY(20px);opacity:0}.subMenuBtn.active[data-v-742207aa]{background-color:#ffffff20}.peerNav .nav-link[data-v-37a98098].active[data-v-37a98098]{//background: linear-gradient(var(--degree),var(--brandColor1) var(--distance2),var(--brandColor2) 100%);//color: white;background-color:#efefef}.list-move[data-v-37a98098],.list-enter-active[data-v-37a98098],.list-leave-active[data-v-37a98098]{transition:all .4s cubic-bezier(.82,.58,.17,.9)}.list-enter-from[data-v-37a98098],.list-leave-to[data-v-37a98098]{opacity:0;transform:translateY(30px)}.list-leave-active[data-v-37a98098]{position:absolute}.peerSettingContainer[data-v-f992ec07]{background-color:#00000060;z-index:1000} +*/@font-face{font-display:block;font-family:bootstrap-icons;src:url(/static/app/dist/assets/bootstrap-icons.woff2?7141511ac37f13e1a387fb9fc6646256) format("woff2"),url(/static/app/dist/assets/bootstrap-icons.woff?7141511ac37f13e1a387fb9fc6646256) format("woff")}.bi:before,[class^=bi-]:before,[class*=" bi-"]:before{display:inline-block;font-family:bootstrap-icons!important;font-style:normal;font-weight:400!important;font-variant:normal;text-transform:none;line-height:1;vertical-align:-.125em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.bi-123:before{content:""}.bi-alarm-fill:before{content:""}.bi-alarm:before{content:""}.bi-align-bottom:before{content:""}.bi-align-center:before{content:""}.bi-align-end:before{content:""}.bi-align-middle:before{content:""}.bi-align-start:before{content:""}.bi-align-top:before{content:""}.bi-alt:before{content:""}.bi-app-indicator:before{content:""}.bi-app:before{content:""}.bi-archive-fill:before{content:""}.bi-archive:before{content:""}.bi-arrow-90deg-down:before{content:""}.bi-arrow-90deg-left:before{content:""}.bi-arrow-90deg-right:before{content:""}.bi-arrow-90deg-up:before{content:""}.bi-arrow-bar-down:before{content:""}.bi-arrow-bar-left:before{content:""}.bi-arrow-bar-right:before{content:""}.bi-arrow-bar-up:before{content:""}.bi-arrow-clockwise:before{content:""}.bi-arrow-counterclockwise:before{content:""}.bi-arrow-down-circle-fill:before{content:""}.bi-arrow-down-circle:before{content:""}.bi-arrow-down-left-circle-fill:before{content:""}.bi-arrow-down-left-circle:before{content:""}.bi-arrow-down-left-square-fill:before{content:""}.bi-arrow-down-left-square:before{content:""}.bi-arrow-down-left:before{content:""}.bi-arrow-down-right-circle-fill:before{content:""}.bi-arrow-down-right-circle:before{content:""}.bi-arrow-down-right-square-fill:before{content:""}.bi-arrow-down-right-square:before{content:""}.bi-arrow-down-right:before{content:""}.bi-arrow-down-short:before{content:""}.bi-arrow-down-square-fill:before{content:""}.bi-arrow-down-square:before{content:""}.bi-arrow-down-up:before{content:""}.bi-arrow-down:before{content:""}.bi-arrow-left-circle-fill:before{content:""}.bi-arrow-left-circle:before{content:""}.bi-arrow-left-right:before{content:""}.bi-arrow-left-short:before{content:""}.bi-arrow-left-square-fill:before{content:""}.bi-arrow-left-square:before{content:""}.bi-arrow-left:before{content:""}.bi-arrow-repeat:before{content:""}.bi-arrow-return-left:before{content:""}.bi-arrow-return-right:before{content:""}.bi-arrow-right-circle-fill:before{content:""}.bi-arrow-right-circle:before{content:""}.bi-arrow-right-short:before{content:""}.bi-arrow-right-square-fill:before{content:""}.bi-arrow-right-square:before{content:""}.bi-arrow-right:before{content:""}.bi-arrow-up-circle-fill:before{content:""}.bi-arrow-up-circle:before{content:""}.bi-arrow-up-left-circle-fill:before{content:""}.bi-arrow-up-left-circle:before{content:""}.bi-arrow-up-left-square-fill:before{content:""}.bi-arrow-up-left-square:before{content:""}.bi-arrow-up-left:before{content:""}.bi-arrow-up-right-circle-fill:before{content:""}.bi-arrow-up-right-circle:before{content:""}.bi-arrow-up-right-square-fill:before{content:""}.bi-arrow-up-right-square:before{content:""}.bi-arrow-up-right:before{content:""}.bi-arrow-up-short:before{content:""}.bi-arrow-up-square-fill:before{content:""}.bi-arrow-up-square:before{content:""}.bi-arrow-up:before{content:""}.bi-arrows-angle-contract:before{content:""}.bi-arrows-angle-expand:before{content:""}.bi-arrows-collapse:before{content:""}.bi-arrows-expand:before{content:""}.bi-arrows-fullscreen:before{content:""}.bi-arrows-move:before{content:""}.bi-aspect-ratio-fill:before{content:""}.bi-aspect-ratio:before{content:""}.bi-asterisk:before{content:""}.bi-at:before{content:""}.bi-award-fill:before{content:""}.bi-award:before{content:""}.bi-back:before{content:""}.bi-backspace-fill:before{content:""}.bi-backspace-reverse-fill:before{content:""}.bi-backspace-reverse:before{content:""}.bi-backspace:before{content:""}.bi-badge-3d-fill:before{content:""}.bi-badge-3d:before{content:""}.bi-badge-4k-fill:before{content:""}.bi-badge-4k:before{content:""}.bi-badge-8k-fill:before{content:""}.bi-badge-8k:before{content:""}.bi-badge-ad-fill:before{content:""}.bi-badge-ad:before{content:""}.bi-badge-ar-fill:before{content:""}.bi-badge-ar:before{content:""}.bi-badge-cc-fill:before{content:""}.bi-badge-cc:before{content:""}.bi-badge-hd-fill:before{content:""}.bi-badge-hd:before{content:""}.bi-badge-tm-fill:before{content:""}.bi-badge-tm:before{content:""}.bi-badge-vo-fill:before{content:""}.bi-badge-vo:before{content:""}.bi-badge-vr-fill:before{content:""}.bi-badge-vr:before{content:""}.bi-badge-wc-fill:before{content:""}.bi-badge-wc:before{content:""}.bi-bag-check-fill:before{content:""}.bi-bag-check:before{content:""}.bi-bag-dash-fill:before{content:""}.bi-bag-dash:before{content:""}.bi-bag-fill:before{content:""}.bi-bag-plus-fill:before{content:""}.bi-bag-plus:before{content:""}.bi-bag-x-fill:before{content:""}.bi-bag-x:before{content:""}.bi-bag:before{content:""}.bi-bar-chart-fill:before{content:""}.bi-bar-chart-line-fill:before{content:""}.bi-bar-chart-line:before{content:""}.bi-bar-chart-steps:before{content:""}.bi-bar-chart:before{content:""}.bi-basket-fill:before{content:""}.bi-basket:before{content:""}.bi-basket2-fill:before{content:""}.bi-basket2:before{content:""}.bi-basket3-fill:before{content:""}.bi-basket3:before{content:""}.bi-battery-charging:before{content:""}.bi-battery-full:before{content:""}.bi-battery-half:before{content:""}.bi-battery:before{content:""}.bi-bell-fill:before{content:""}.bi-bell:before{content:""}.bi-bezier:before{content:""}.bi-bezier2:before{content:""}.bi-bicycle:before{content:""}.bi-binoculars-fill:before{content:""}.bi-binoculars:before{content:""}.bi-blockquote-left:before{content:""}.bi-blockquote-right:before{content:""}.bi-book-fill:before{content:""}.bi-book-half:before{content:""}.bi-book:before{content:""}.bi-bookmark-check-fill:before{content:""}.bi-bookmark-check:before{content:""}.bi-bookmark-dash-fill:before{content:""}.bi-bookmark-dash:before{content:""}.bi-bookmark-fill:before{content:""}.bi-bookmark-heart-fill:before{content:""}.bi-bookmark-heart:before{content:""}.bi-bookmark-plus-fill:before{content:""}.bi-bookmark-plus:before{content:""}.bi-bookmark-star-fill:before{content:""}.bi-bookmark-star:before{content:""}.bi-bookmark-x-fill:before{content:""}.bi-bookmark-x:before{content:""}.bi-bookmark:before{content:""}.bi-bookmarks-fill:before{content:""}.bi-bookmarks:before{content:""}.bi-bookshelf:before{content:""}.bi-bootstrap-fill:before{content:""}.bi-bootstrap-reboot:before{content:""}.bi-bootstrap:before{content:""}.bi-border-all:before{content:""}.bi-border-bottom:before{content:""}.bi-border-center:before{content:""}.bi-border-inner:before{content:""}.bi-border-left:before{content:""}.bi-border-middle:before{content:""}.bi-border-outer:before{content:""}.bi-border-right:before{content:""}.bi-border-style:before{content:""}.bi-border-top:before{content:""}.bi-border-width:before{content:""}.bi-border:before{content:""}.bi-bounding-box-circles:before{content:""}.bi-bounding-box:before{content:""}.bi-box-arrow-down-left:before{content:""}.bi-box-arrow-down-right:before{content:""}.bi-box-arrow-down:before{content:""}.bi-box-arrow-in-down-left:before{content:""}.bi-box-arrow-in-down-right:before{content:""}.bi-box-arrow-in-down:before{content:""}.bi-box-arrow-in-left:before{content:""}.bi-box-arrow-in-right:before{content:""}.bi-box-arrow-in-up-left:before{content:""}.bi-box-arrow-in-up-right:before{content:""}.bi-box-arrow-in-up:before{content:""}.bi-box-arrow-left:before{content:""}.bi-box-arrow-right:before{content:""}.bi-box-arrow-up-left:before{content:""}.bi-box-arrow-up-right:before{content:""}.bi-box-arrow-up:before{content:""}.bi-box-seam:before{content:""}.bi-box:before{content:""}.bi-braces:before{content:""}.bi-bricks:before{content:""}.bi-briefcase-fill:before{content:""}.bi-briefcase:before{content:""}.bi-brightness-alt-high-fill:before{content:""}.bi-brightness-alt-high:before{content:""}.bi-brightness-alt-low-fill:before{content:""}.bi-brightness-alt-low:before{content:""}.bi-brightness-high-fill:before{content:""}.bi-brightness-high:before{content:""}.bi-brightness-low-fill:before{content:""}.bi-brightness-low:before{content:""}.bi-broadcast-pin:before{content:""}.bi-broadcast:before{content:""}.bi-brush-fill:before{content:""}.bi-brush:before{content:""}.bi-bucket-fill:before{content:""}.bi-bucket:before{content:""}.bi-bug-fill:before{content:""}.bi-bug:before{content:""}.bi-building:before{content:""}.bi-bullseye:before{content:""}.bi-calculator-fill:before{content:""}.bi-calculator:before{content:""}.bi-calendar-check-fill:before{content:""}.bi-calendar-check:before{content:""}.bi-calendar-date-fill:before{content:""}.bi-calendar-date:before{content:""}.bi-calendar-day-fill:before{content:""}.bi-calendar-day:before{content:""}.bi-calendar-event-fill:before{content:""}.bi-calendar-event:before{content:""}.bi-calendar-fill:before{content:""}.bi-calendar-minus-fill:before{content:""}.bi-calendar-minus:before{content:""}.bi-calendar-month-fill:before{content:""}.bi-calendar-month:before{content:""}.bi-calendar-plus-fill:before{content:""}.bi-calendar-plus:before{content:""}.bi-calendar-range-fill:before{content:""}.bi-calendar-range:before{content:""}.bi-calendar-week-fill:before{content:""}.bi-calendar-week:before{content:""}.bi-calendar-x-fill:before{content:""}.bi-calendar-x:before{content:""}.bi-calendar:before{content:""}.bi-calendar2-check-fill:before{content:""}.bi-calendar2-check:before{content:""}.bi-calendar2-date-fill:before{content:""}.bi-calendar2-date:before{content:""}.bi-calendar2-day-fill:before{content:""}.bi-calendar2-day:before{content:""}.bi-calendar2-event-fill:before{content:""}.bi-calendar2-event:before{content:""}.bi-calendar2-fill:before{content:""}.bi-calendar2-minus-fill:before{content:""}.bi-calendar2-minus:before{content:""}.bi-calendar2-month-fill:before{content:""}.bi-calendar2-month:before{content:""}.bi-calendar2-plus-fill:before{content:""}.bi-calendar2-plus:before{content:""}.bi-calendar2-range-fill:before{content:""}.bi-calendar2-range:before{content:""}.bi-calendar2-week-fill:before{content:""}.bi-calendar2-week:before{content:""}.bi-calendar2-x-fill:before{content:""}.bi-calendar2-x:before{content:""}.bi-calendar2:before{content:""}.bi-calendar3-event-fill:before{content:""}.bi-calendar3-event:before{content:""}.bi-calendar3-fill:before{content:""}.bi-calendar3-range-fill:before{content:""}.bi-calendar3-range:before{content:""}.bi-calendar3-week-fill:before{content:""}.bi-calendar3-week:before{content:""}.bi-calendar3:before{content:""}.bi-calendar4-event:before{content:""}.bi-calendar4-range:before{content:""}.bi-calendar4-week:before{content:""}.bi-calendar4:before{content:""}.bi-camera-fill:before{content:""}.bi-camera-reels-fill:before{content:""}.bi-camera-reels:before{content:""}.bi-camera-video-fill:before{content:""}.bi-camera-video-off-fill:before{content:""}.bi-camera-video-off:before{content:""}.bi-camera-video:before{content:""}.bi-camera:before{content:""}.bi-camera2:before{content:""}.bi-capslock-fill:before{content:""}.bi-capslock:before{content:""}.bi-card-checklist:before{content:""}.bi-card-heading:before{content:""}.bi-card-image:before{content:""}.bi-card-list:before{content:""}.bi-card-text:before{content:""}.bi-caret-down-fill:before{content:""}.bi-caret-down-square-fill:before{content:""}.bi-caret-down-square:before{content:""}.bi-caret-down:before{content:""}.bi-caret-left-fill:before{content:""}.bi-caret-left-square-fill:before{content:""}.bi-caret-left-square:before{content:""}.bi-caret-left:before{content:""}.bi-caret-right-fill:before{content:""}.bi-caret-right-square-fill:before{content:""}.bi-caret-right-square:before{content:""}.bi-caret-right:before{content:""}.bi-caret-up-fill:before{content:""}.bi-caret-up-square-fill:before{content:""}.bi-caret-up-square:before{content:""}.bi-caret-up:before{content:""}.bi-cart-check-fill:before{content:""}.bi-cart-check:before{content:""}.bi-cart-dash-fill:before{content:""}.bi-cart-dash:before{content:""}.bi-cart-fill:before{content:""}.bi-cart-plus-fill:before{content:""}.bi-cart-plus:before{content:""}.bi-cart-x-fill:before{content:""}.bi-cart-x:before{content:""}.bi-cart:before{content:""}.bi-cart2:before{content:""}.bi-cart3:before{content:""}.bi-cart4:before{content:""}.bi-cash-stack:before{content:""}.bi-cash:before{content:""}.bi-cast:before{content:""}.bi-chat-dots-fill:before{content:""}.bi-chat-dots:before{content:""}.bi-chat-fill:before{content:""}.bi-chat-left-dots-fill:before{content:""}.bi-chat-left-dots:before{content:""}.bi-chat-left-fill:before{content:""}.bi-chat-left-quote-fill:before{content:""}.bi-chat-left-quote:before{content:""}.bi-chat-left-text-fill:before{content:""}.bi-chat-left-text:before{content:""}.bi-chat-left:before{content:""}.bi-chat-quote-fill:before{content:""}.bi-chat-quote:before{content:""}.bi-chat-right-dots-fill:before{content:""}.bi-chat-right-dots:before{content:""}.bi-chat-right-fill:before{content:""}.bi-chat-right-quote-fill:before{content:""}.bi-chat-right-quote:before{content:""}.bi-chat-right-text-fill:before{content:""}.bi-chat-right-text:before{content:""}.bi-chat-right:before{content:""}.bi-chat-square-dots-fill:before{content:""}.bi-chat-square-dots:before{content:""}.bi-chat-square-fill:before{content:""}.bi-chat-square-quote-fill:before{content:""}.bi-chat-square-quote:before{content:""}.bi-chat-square-text-fill:before{content:""}.bi-chat-square-text:before{content:""}.bi-chat-square:before{content:""}.bi-chat-text-fill:before{content:""}.bi-chat-text:before{content:""}.bi-chat:before{content:""}.bi-check-all:before{content:""}.bi-check-circle-fill:before{content:""}.bi-check-circle:before{content:""}.bi-check-square-fill:before{content:""}.bi-check-square:before{content:""}.bi-check:before{content:""}.bi-check2-all:before{content:""}.bi-check2-circle:before{content:""}.bi-check2-square:before{content:""}.bi-check2:before{content:""}.bi-chevron-bar-contract:before{content:""}.bi-chevron-bar-down:before{content:""}.bi-chevron-bar-expand:before{content:""}.bi-chevron-bar-left:before{content:""}.bi-chevron-bar-right:before{content:""}.bi-chevron-bar-up:before{content:""}.bi-chevron-compact-down:before{content:""}.bi-chevron-compact-left:before{content:""}.bi-chevron-compact-right:before{content:""}.bi-chevron-compact-up:before{content:""}.bi-chevron-contract:before{content:""}.bi-chevron-double-down:before{content:""}.bi-chevron-double-left:before{content:""}.bi-chevron-double-right:before{content:""}.bi-chevron-double-up:before{content:""}.bi-chevron-down:before{content:""}.bi-chevron-expand:before{content:""}.bi-chevron-left:before{content:""}.bi-chevron-right:before{content:""}.bi-chevron-up:before{content:""}.bi-circle-fill:before{content:""}.bi-circle-half:before{content:""}.bi-circle-square:before{content:""}.bi-circle:before{content:""}.bi-clipboard-check:before{content:""}.bi-clipboard-data:before{content:""}.bi-clipboard-minus:before{content:""}.bi-clipboard-plus:before{content:""}.bi-clipboard-x:before{content:""}.bi-clipboard:before{content:""}.bi-clock-fill:before{content:""}.bi-clock-history:before{content:""}.bi-clock:before{content:""}.bi-cloud-arrow-down-fill:before{content:""}.bi-cloud-arrow-down:before{content:""}.bi-cloud-arrow-up-fill:before{content:""}.bi-cloud-arrow-up:before{content:""}.bi-cloud-check-fill:before{content:""}.bi-cloud-check:before{content:""}.bi-cloud-download-fill:before{content:""}.bi-cloud-download:before{content:""}.bi-cloud-drizzle-fill:before{content:""}.bi-cloud-drizzle:before{content:""}.bi-cloud-fill:before{content:""}.bi-cloud-fog-fill:before{content:""}.bi-cloud-fog:before{content:""}.bi-cloud-fog2-fill:before{content:""}.bi-cloud-fog2:before{content:""}.bi-cloud-hail-fill:before{content:""}.bi-cloud-hail:before{content:""}.bi-cloud-haze-fill:before{content:""}.bi-cloud-haze:before{content:""}.bi-cloud-haze2-fill:before{content:""}.bi-cloud-lightning-fill:before{content:""}.bi-cloud-lightning-rain-fill:before{content:""}.bi-cloud-lightning-rain:before{content:""}.bi-cloud-lightning:before{content:""}.bi-cloud-minus-fill:before{content:""}.bi-cloud-minus:before{content:""}.bi-cloud-moon-fill:before{content:""}.bi-cloud-moon:before{content:""}.bi-cloud-plus-fill:before{content:""}.bi-cloud-plus:before{content:""}.bi-cloud-rain-fill:before{content:""}.bi-cloud-rain-heavy-fill:before{content:""}.bi-cloud-rain-heavy:before{content:""}.bi-cloud-rain:before{content:""}.bi-cloud-slash-fill:before{content:""}.bi-cloud-slash:before{content:""}.bi-cloud-sleet-fill:before{content:""}.bi-cloud-sleet:before{content:""}.bi-cloud-snow-fill:before{content:""}.bi-cloud-snow:before{content:""}.bi-cloud-sun-fill:before{content:""}.bi-cloud-sun:before{content:""}.bi-cloud-upload-fill:before{content:""}.bi-cloud-upload:before{content:""}.bi-cloud:before{content:""}.bi-clouds-fill:before{content:""}.bi-clouds:before{content:""}.bi-cloudy-fill:before{content:""}.bi-cloudy:before{content:""}.bi-code-slash:before{content:""}.bi-code-square:before{content:""}.bi-code:before{content:""}.bi-collection-fill:before{content:""}.bi-collection-play-fill:before{content:""}.bi-collection-play:before{content:""}.bi-collection:before{content:""}.bi-columns-gap:before{content:""}.bi-columns:before{content:""}.bi-command:before{content:""}.bi-compass-fill:before{content:""}.bi-compass:before{content:""}.bi-cone-striped:before{content:""}.bi-cone:before{content:""}.bi-controller:before{content:""}.bi-cpu-fill:before{content:""}.bi-cpu:before{content:""}.bi-credit-card-2-back-fill:before{content:""}.bi-credit-card-2-back:before{content:""}.bi-credit-card-2-front-fill:before{content:""}.bi-credit-card-2-front:before{content:""}.bi-credit-card-fill:before{content:""}.bi-credit-card:before{content:""}.bi-crop:before{content:""}.bi-cup-fill:before{content:""}.bi-cup-straw:before{content:""}.bi-cup:before{content:""}.bi-cursor-fill:before{content:""}.bi-cursor-text:before{content:""}.bi-cursor:before{content:""}.bi-dash-circle-dotted:before{content:""}.bi-dash-circle-fill:before{content:""}.bi-dash-circle:before{content:""}.bi-dash-square-dotted:before{content:""}.bi-dash-square-fill:before{content:""}.bi-dash-square:before{content:""}.bi-dash:before{content:""}.bi-diagram-2-fill:before{content:""}.bi-diagram-2:before{content:""}.bi-diagram-3-fill:before{content:""}.bi-diagram-3:before{content:""}.bi-diamond-fill:before{content:""}.bi-diamond-half:before{content:""}.bi-diamond:before{content:""}.bi-dice-1-fill:before{content:""}.bi-dice-1:before{content:""}.bi-dice-2-fill:before{content:""}.bi-dice-2:before{content:""}.bi-dice-3-fill:before{content:""}.bi-dice-3:before{content:""}.bi-dice-4-fill:before{content:""}.bi-dice-4:before{content:""}.bi-dice-5-fill:before{content:""}.bi-dice-5:before{content:""}.bi-dice-6-fill:before{content:""}.bi-dice-6:before{content:""}.bi-disc-fill:before{content:""}.bi-disc:before{content:""}.bi-discord:before{content:""}.bi-display-fill:before{content:""}.bi-display:before{content:""}.bi-distribute-horizontal:before{content:""}.bi-distribute-vertical:before{content:""}.bi-door-closed-fill:before{content:""}.bi-door-closed:before{content:""}.bi-door-open-fill:before{content:""}.bi-door-open:before{content:""}.bi-dot:before{content:""}.bi-download:before{content:""}.bi-droplet-fill:before{content:""}.bi-droplet-half:before{content:""}.bi-droplet:before{content:""}.bi-earbuds:before{content:""}.bi-easel-fill:before{content:""}.bi-easel:before{content:""}.bi-egg-fill:before{content:""}.bi-egg-fried:before{content:""}.bi-egg:before{content:""}.bi-eject-fill:before{content:""}.bi-eject:before{content:""}.bi-emoji-angry-fill:before{content:""}.bi-emoji-angry:before{content:""}.bi-emoji-dizzy-fill:before{content:""}.bi-emoji-dizzy:before{content:""}.bi-emoji-expressionless-fill:before{content:""}.bi-emoji-expressionless:before{content:""}.bi-emoji-frown-fill:before{content:""}.bi-emoji-frown:before{content:""}.bi-emoji-heart-eyes-fill:before{content:""}.bi-emoji-heart-eyes:before{content:""}.bi-emoji-laughing-fill:before{content:""}.bi-emoji-laughing:before{content:""}.bi-emoji-neutral-fill:before{content:""}.bi-emoji-neutral:before{content:""}.bi-emoji-smile-fill:before{content:""}.bi-emoji-smile-upside-down-fill:before{content:""}.bi-emoji-smile-upside-down:before{content:""}.bi-emoji-smile:before{content:""}.bi-emoji-sunglasses-fill:before{content:""}.bi-emoji-sunglasses:before{content:""}.bi-emoji-wink-fill:before{content:""}.bi-emoji-wink:before{content:""}.bi-envelope-fill:before{content:""}.bi-envelope-open-fill:before{content:""}.bi-envelope-open:before{content:""}.bi-envelope:before{content:""}.bi-eraser-fill:before{content:""}.bi-eraser:before{content:""}.bi-exclamation-circle-fill:before{content:""}.bi-exclamation-circle:before{content:""}.bi-exclamation-diamond-fill:before{content:""}.bi-exclamation-diamond:before{content:""}.bi-exclamation-octagon-fill:before{content:""}.bi-exclamation-octagon:before{content:""}.bi-exclamation-square-fill:before{content:""}.bi-exclamation-square:before{content:""}.bi-exclamation-triangle-fill:before{content:""}.bi-exclamation-triangle:before{content:""}.bi-exclamation:before{content:""}.bi-exclude:before{content:""}.bi-eye-fill:before{content:""}.bi-eye-slash-fill:before{content:""}.bi-eye-slash:before{content:""}.bi-eye:before{content:""}.bi-eyedropper:before{content:""}.bi-eyeglasses:before{content:""}.bi-facebook:before{content:""}.bi-file-arrow-down-fill:before{content:""}.bi-file-arrow-down:before{content:""}.bi-file-arrow-up-fill:before{content:""}.bi-file-arrow-up:before{content:""}.bi-file-bar-graph-fill:before{content:""}.bi-file-bar-graph:before{content:""}.bi-file-binary-fill:before{content:""}.bi-file-binary:before{content:""}.bi-file-break-fill:before{content:""}.bi-file-break:before{content:""}.bi-file-check-fill:before{content:""}.bi-file-check:before{content:""}.bi-file-code-fill:before{content:""}.bi-file-code:before{content:""}.bi-file-diff-fill:before{content:""}.bi-file-diff:before{content:""}.bi-file-earmark-arrow-down-fill:before{content:""}.bi-file-earmark-arrow-down:before{content:""}.bi-file-earmark-arrow-up-fill:before{content:""}.bi-file-earmark-arrow-up:before{content:""}.bi-file-earmark-bar-graph-fill:before{content:""}.bi-file-earmark-bar-graph:before{content:""}.bi-file-earmark-binary-fill:before{content:""}.bi-file-earmark-binary:before{content:""}.bi-file-earmark-break-fill:before{content:""}.bi-file-earmark-break:before{content:""}.bi-file-earmark-check-fill:before{content:""}.bi-file-earmark-check:before{content:""}.bi-file-earmark-code-fill:before{content:""}.bi-file-earmark-code:before{content:""}.bi-file-earmark-diff-fill:before{content:""}.bi-file-earmark-diff:before{content:""}.bi-file-earmark-easel-fill:before{content:""}.bi-file-earmark-easel:before{content:""}.bi-file-earmark-excel-fill:before{content:""}.bi-file-earmark-excel:before{content:""}.bi-file-earmark-fill:before{content:""}.bi-file-earmark-font-fill:before{content:""}.bi-file-earmark-font:before{content:""}.bi-file-earmark-image-fill:before{content:""}.bi-file-earmark-image:before{content:""}.bi-file-earmark-lock-fill:before{content:""}.bi-file-earmark-lock:before{content:""}.bi-file-earmark-lock2-fill:before{content:""}.bi-file-earmark-lock2:before{content:""}.bi-file-earmark-medical-fill:before{content:""}.bi-file-earmark-medical:before{content:""}.bi-file-earmark-minus-fill:before{content:""}.bi-file-earmark-minus:before{content:""}.bi-file-earmark-music-fill:before{content:""}.bi-file-earmark-music:before{content:""}.bi-file-earmark-person-fill:before{content:""}.bi-file-earmark-person:before{content:""}.bi-file-earmark-play-fill:before{content:""}.bi-file-earmark-play:before{content:""}.bi-file-earmark-plus-fill:before{content:""}.bi-file-earmark-plus:before{content:""}.bi-file-earmark-post-fill:before{content:""}.bi-file-earmark-post:before{content:""}.bi-file-earmark-ppt-fill:before{content:""}.bi-file-earmark-ppt:before{content:""}.bi-file-earmark-richtext-fill:before{content:""}.bi-file-earmark-richtext:before{content:""}.bi-file-earmark-ruled-fill:before{content:""}.bi-file-earmark-ruled:before{content:""}.bi-file-earmark-slides-fill:before{content:""}.bi-file-earmark-slides:before{content:""}.bi-file-earmark-spreadsheet-fill:before{content:""}.bi-file-earmark-spreadsheet:before{content:""}.bi-file-earmark-text-fill:before{content:""}.bi-file-earmark-text:before{content:""}.bi-file-earmark-word-fill:before{content:""}.bi-file-earmark-word:before{content:""}.bi-file-earmark-x-fill:before{content:""}.bi-file-earmark-x:before{content:""}.bi-file-earmark-zip-fill:before{content:""}.bi-file-earmark-zip:before{content:""}.bi-file-earmark:before{content:""}.bi-file-easel-fill:before{content:""}.bi-file-easel:before{content:""}.bi-file-excel-fill:before{content:""}.bi-file-excel:before{content:""}.bi-file-fill:before{content:""}.bi-file-font-fill:before{content:""}.bi-file-font:before{content:""}.bi-file-image-fill:before{content:""}.bi-file-image:before{content:""}.bi-file-lock-fill:before{content:""}.bi-file-lock:before{content:""}.bi-file-lock2-fill:before{content:""}.bi-file-lock2:before{content:""}.bi-file-medical-fill:before{content:""}.bi-file-medical:before{content:""}.bi-file-minus-fill:before{content:""}.bi-file-minus:before{content:""}.bi-file-music-fill:before{content:""}.bi-file-music:before{content:""}.bi-file-person-fill:before{content:""}.bi-file-person:before{content:""}.bi-file-play-fill:before{content:""}.bi-file-play:before{content:""}.bi-file-plus-fill:before{content:""}.bi-file-plus:before{content:""}.bi-file-post-fill:before{content:""}.bi-file-post:before{content:""}.bi-file-ppt-fill:before{content:""}.bi-file-ppt:before{content:""}.bi-file-richtext-fill:before{content:""}.bi-file-richtext:before{content:""}.bi-file-ruled-fill:before{content:""}.bi-file-ruled:before{content:""}.bi-file-slides-fill:before{content:""}.bi-file-slides:before{content:""}.bi-file-spreadsheet-fill:before{content:""}.bi-file-spreadsheet:before{content:""}.bi-file-text-fill:before{content:""}.bi-file-text:before{content:""}.bi-file-word-fill:before{content:""}.bi-file-word:before{content:""}.bi-file-x-fill:before{content:""}.bi-file-x:before{content:""}.bi-file-zip-fill:before{content:""}.bi-file-zip:before{content:""}.bi-file:before{content:""}.bi-files-alt:before{content:""}.bi-files:before{content:""}.bi-film:before{content:""}.bi-filter-circle-fill:before{content:""}.bi-filter-circle:before{content:""}.bi-filter-left:before{content:""}.bi-filter-right:before{content:""}.bi-filter-square-fill:before{content:""}.bi-filter-square:before{content:""}.bi-filter:before{content:""}.bi-flag-fill:before{content:""}.bi-flag:before{content:""}.bi-flower1:before{content:""}.bi-flower2:before{content:""}.bi-flower3:before{content:""}.bi-folder-check:before{content:""}.bi-folder-fill:before{content:""}.bi-folder-minus:before{content:""}.bi-folder-plus:before{content:""}.bi-folder-symlink-fill:before{content:""}.bi-folder-symlink:before{content:""}.bi-folder-x:before{content:""}.bi-folder:before{content:""}.bi-folder2-open:before{content:""}.bi-folder2:before{content:""}.bi-fonts:before{content:""}.bi-forward-fill:before{content:""}.bi-forward:before{content:""}.bi-front:before{content:""}.bi-fullscreen-exit:before{content:""}.bi-fullscreen:before{content:""}.bi-funnel-fill:before{content:""}.bi-funnel:before{content:""}.bi-gear-fill:before{content:""}.bi-gear-wide-connected:before{content:""}.bi-gear-wide:before{content:""}.bi-gear:before{content:""}.bi-gem:before{content:""}.bi-geo-alt-fill:before{content:""}.bi-geo-alt:before{content:""}.bi-geo-fill:before{content:""}.bi-geo:before{content:""}.bi-gift-fill:before{content:""}.bi-gift:before{content:""}.bi-github:before{content:""}.bi-globe:before{content:""}.bi-globe2:before{content:""}.bi-google:before{content:""}.bi-graph-down:before{content:""}.bi-graph-up:before{content:""}.bi-grid-1x2-fill:before{content:""}.bi-grid-1x2:before{content:""}.bi-grid-3x2-gap-fill:before{content:""}.bi-grid-3x2-gap:before{content:""}.bi-grid-3x2:before{content:""}.bi-grid-3x3-gap-fill:before{content:""}.bi-grid-3x3-gap:before{content:""}.bi-grid-3x3:before{content:""}.bi-grid-fill:before{content:""}.bi-grid:before{content:""}.bi-grip-horizontal:before{content:""}.bi-grip-vertical:before{content:""}.bi-hammer:before{content:""}.bi-hand-index-fill:before{content:""}.bi-hand-index-thumb-fill:before{content:""}.bi-hand-index-thumb:before{content:""}.bi-hand-index:before{content:""}.bi-hand-thumbs-down-fill:before{content:""}.bi-hand-thumbs-down:before{content:""}.bi-hand-thumbs-up-fill:before{content:""}.bi-hand-thumbs-up:before{content:""}.bi-handbag-fill:before{content:""}.bi-handbag:before{content:""}.bi-hash:before{content:""}.bi-hdd-fill:before{content:""}.bi-hdd-network-fill:before{content:""}.bi-hdd-network:before{content:""}.bi-hdd-rack-fill:before{content:""}.bi-hdd-rack:before{content:""}.bi-hdd-stack-fill:before{content:""}.bi-hdd-stack:before{content:""}.bi-hdd:before{content:""}.bi-headphones:before{content:""}.bi-headset:before{content:""}.bi-heart-fill:before{content:""}.bi-heart-half:before{content:""}.bi-heart:before{content:""}.bi-heptagon-fill:before{content:""}.bi-heptagon-half:before{content:""}.bi-heptagon:before{content:""}.bi-hexagon-fill:before{content:""}.bi-hexagon-half:before{content:""}.bi-hexagon:before{content:""}.bi-hourglass-bottom:before{content:""}.bi-hourglass-split:before{content:""}.bi-hourglass-top:before{content:""}.bi-hourglass:before{content:""}.bi-house-door-fill:before{content:""}.bi-house-door:before{content:""}.bi-house-fill:before{content:""}.bi-house:before{content:""}.bi-hr:before{content:""}.bi-hurricane:before{content:""}.bi-image-alt:before{content:""}.bi-image-fill:before{content:""}.bi-image:before{content:""}.bi-images:before{content:""}.bi-inbox-fill:before{content:""}.bi-inbox:before{content:""}.bi-inboxes-fill:before{content:""}.bi-inboxes:before{content:""}.bi-info-circle-fill:before{content:""}.bi-info-circle:before{content:""}.bi-info-square-fill:before{content:""}.bi-info-square:before{content:""}.bi-info:before{content:""}.bi-input-cursor-text:before{content:""}.bi-input-cursor:before{content:""}.bi-instagram:before{content:""}.bi-intersect:before{content:""}.bi-journal-album:before{content:""}.bi-journal-arrow-down:before{content:""}.bi-journal-arrow-up:before{content:""}.bi-journal-bookmark-fill:before{content:""}.bi-journal-bookmark:before{content:""}.bi-journal-check:before{content:""}.bi-journal-code:before{content:""}.bi-journal-medical:before{content:""}.bi-journal-minus:before{content:""}.bi-journal-plus:before{content:""}.bi-journal-richtext:before{content:""}.bi-journal-text:before{content:""}.bi-journal-x:before{content:""}.bi-journal:before{content:""}.bi-journals:before{content:""}.bi-joystick:before{content:""}.bi-justify-left:before{content:""}.bi-justify-right:before{content:""}.bi-justify:before{content:""}.bi-kanban-fill:before{content:""}.bi-kanban:before{content:""}.bi-key-fill:before{content:""}.bi-key:before{content:""}.bi-keyboard-fill:before{content:""}.bi-keyboard:before{content:""}.bi-ladder:before{content:""}.bi-lamp-fill:before{content:""}.bi-lamp:before{content:""}.bi-laptop-fill:before{content:""}.bi-laptop:before{content:""}.bi-layer-backward:before{content:""}.bi-layer-forward:before{content:""}.bi-layers-fill:before{content:""}.bi-layers-half:before{content:""}.bi-layers:before{content:""}.bi-layout-sidebar-inset-reverse:before{content:""}.bi-layout-sidebar-inset:before{content:""}.bi-layout-sidebar-reverse:before{content:""}.bi-layout-sidebar:before{content:""}.bi-layout-split:before{content:""}.bi-layout-text-sidebar-reverse:before{content:""}.bi-layout-text-sidebar:before{content:""}.bi-layout-text-window-reverse:before{content:""}.bi-layout-text-window:before{content:""}.bi-layout-three-columns:before{content:""}.bi-layout-wtf:before{content:""}.bi-life-preserver:before{content:""}.bi-lightbulb-fill:before{content:""}.bi-lightbulb-off-fill:before{content:""}.bi-lightbulb-off:before{content:""}.bi-lightbulb:before{content:""}.bi-lightning-charge-fill:before{content:""}.bi-lightning-charge:before{content:""}.bi-lightning-fill:before{content:""}.bi-lightning:before{content:""}.bi-link-45deg:before{content:""}.bi-link:before{content:""}.bi-linkedin:before{content:""}.bi-list-check:before{content:""}.bi-list-nested:before{content:""}.bi-list-ol:before{content:""}.bi-list-stars:before{content:""}.bi-list-task:before{content:""}.bi-list-ul:before{content:""}.bi-list:before{content:""}.bi-lock-fill:before{content:""}.bi-lock:before{content:""}.bi-mailbox:before{content:""}.bi-mailbox2:before{content:""}.bi-map-fill:before{content:""}.bi-map:before{content:""}.bi-markdown-fill:before{content:""}.bi-markdown:before{content:""}.bi-mask:before{content:""}.bi-megaphone-fill:before{content:""}.bi-megaphone:before{content:""}.bi-menu-app-fill:before{content:""}.bi-menu-app:before{content:""}.bi-menu-button-fill:before{content:""}.bi-menu-button-wide-fill:before{content:""}.bi-menu-button-wide:before{content:""}.bi-menu-button:before{content:""}.bi-menu-down:before{content:""}.bi-menu-up:before{content:""}.bi-mic-fill:before{content:""}.bi-mic-mute-fill:before{content:""}.bi-mic-mute:before{content:""}.bi-mic:before{content:""}.bi-minecart-loaded:before{content:""}.bi-minecart:before{content:""}.bi-moisture:before{content:""}.bi-moon-fill:before{content:""}.bi-moon-stars-fill:before{content:""}.bi-moon-stars:before{content:""}.bi-moon:before{content:""}.bi-mouse-fill:before{content:""}.bi-mouse:before{content:""}.bi-mouse2-fill:before{content:""}.bi-mouse2:before{content:""}.bi-mouse3-fill:before{content:""}.bi-mouse3:before{content:""}.bi-music-note-beamed:before{content:""}.bi-music-note-list:before{content:""}.bi-music-note:before{content:""}.bi-music-player-fill:before{content:""}.bi-music-player:before{content:""}.bi-newspaper:before{content:""}.bi-node-minus-fill:before{content:""}.bi-node-minus:before{content:""}.bi-node-plus-fill:before{content:""}.bi-node-plus:before{content:""}.bi-nut-fill:before{content:""}.bi-nut:before{content:""}.bi-octagon-fill:before{content:""}.bi-octagon-half:before{content:""}.bi-octagon:before{content:""}.bi-option:before{content:""}.bi-outlet:before{content:""}.bi-paint-bucket:before{content:""}.bi-palette-fill:before{content:""}.bi-palette:before{content:""}.bi-palette2:before{content:""}.bi-paperclip:before{content:""}.bi-paragraph:before{content:""}.bi-patch-check-fill:before{content:""}.bi-patch-check:before{content:""}.bi-patch-exclamation-fill:before{content:""}.bi-patch-exclamation:before{content:""}.bi-patch-minus-fill:before{content:""}.bi-patch-minus:before{content:""}.bi-patch-plus-fill:before{content:""}.bi-patch-plus:before{content:""}.bi-patch-question-fill:before{content:""}.bi-patch-question:before{content:""}.bi-pause-btn-fill:before{content:""}.bi-pause-btn:before{content:""}.bi-pause-circle-fill:before{content:""}.bi-pause-circle:before{content:""}.bi-pause-fill:before{content:""}.bi-pause:before{content:""}.bi-peace-fill:before{content:""}.bi-peace:before{content:""}.bi-pen-fill:before{content:""}.bi-pen:before{content:""}.bi-pencil-fill:before{content:""}.bi-pencil-square:before{content:""}.bi-pencil:before{content:""}.bi-pentagon-fill:before{content:""}.bi-pentagon-half:before{content:""}.bi-pentagon:before{content:""}.bi-people-fill:before{content:""}.bi-people:before{content:""}.bi-percent:before{content:""}.bi-person-badge-fill:before{content:""}.bi-person-badge:before{content:""}.bi-person-bounding-box:before{content:""}.bi-person-check-fill:before{content:""}.bi-person-check:before{content:""}.bi-person-circle:before{content:""}.bi-person-dash-fill:before{content:""}.bi-person-dash:before{content:""}.bi-person-fill:before{content:""}.bi-person-lines-fill:before{content:""}.bi-person-plus-fill:before{content:""}.bi-person-plus:before{content:""}.bi-person-square:before{content:""}.bi-person-x-fill:before{content:""}.bi-person-x:before{content:""}.bi-person:before{content:""}.bi-phone-fill:before{content:""}.bi-phone-landscape-fill:before{content:""}.bi-phone-landscape:before{content:""}.bi-phone-vibrate-fill:before{content:""}.bi-phone-vibrate:before{content:""}.bi-phone:before{content:""}.bi-pie-chart-fill:before{content:""}.bi-pie-chart:before{content:""}.bi-pin-angle-fill:before{content:""}.bi-pin-angle:before{content:""}.bi-pin-fill:before{content:""}.bi-pin:before{content:""}.bi-pip-fill:before{content:""}.bi-pip:before{content:""}.bi-play-btn-fill:before{content:""}.bi-play-btn:before{content:""}.bi-play-circle-fill:before{content:""}.bi-play-circle:before{content:""}.bi-play-fill:before{content:""}.bi-play:before{content:""}.bi-plug-fill:before{content:""}.bi-plug:before{content:""}.bi-plus-circle-dotted:before{content:""}.bi-plus-circle-fill:before{content:""}.bi-plus-circle:before{content:""}.bi-plus-square-dotted:before{content:""}.bi-plus-square-fill:before{content:""}.bi-plus-square:before{content:""}.bi-plus:before{content:""}.bi-power:before{content:""}.bi-printer-fill:before{content:""}.bi-printer:before{content:""}.bi-puzzle-fill:before{content:""}.bi-puzzle:before{content:""}.bi-question-circle-fill:before{content:""}.bi-question-circle:before{content:""}.bi-question-diamond-fill:before{content:""}.bi-question-diamond:before{content:""}.bi-question-octagon-fill:before{content:""}.bi-question-octagon:before{content:""}.bi-question-square-fill:before{content:""}.bi-question-square:before{content:""}.bi-question:before{content:""}.bi-rainbow:before{content:""}.bi-receipt-cutoff:before{content:""}.bi-receipt:before{content:""}.bi-reception-0:before{content:""}.bi-reception-1:before{content:""}.bi-reception-2:before{content:""}.bi-reception-3:before{content:""}.bi-reception-4:before{content:""}.bi-record-btn-fill:before{content:""}.bi-record-btn:before{content:""}.bi-record-circle-fill:before{content:""}.bi-record-circle:before{content:""}.bi-record-fill:before{content:""}.bi-record:before{content:""}.bi-record2-fill:before{content:""}.bi-record2:before{content:""}.bi-reply-all-fill:before{content:""}.bi-reply-all:before{content:""}.bi-reply-fill:before{content:""}.bi-reply:before{content:""}.bi-rss-fill:before{content:""}.bi-rss:before{content:""}.bi-rulers:before{content:""}.bi-save-fill:before{content:""}.bi-save:before{content:""}.bi-save2-fill:before{content:""}.bi-save2:before{content:""}.bi-scissors:before{content:""}.bi-screwdriver:before{content:""}.bi-search:before{content:""}.bi-segmented-nav:before{content:""}.bi-server:before{content:""}.bi-share-fill:before{content:""}.bi-share:before{content:""}.bi-shield-check:before{content:""}.bi-shield-exclamation:before{content:""}.bi-shield-fill-check:before{content:""}.bi-shield-fill-exclamation:before{content:""}.bi-shield-fill-minus:before{content:""}.bi-shield-fill-plus:before{content:""}.bi-shield-fill-x:before{content:""}.bi-shield-fill:before{content:""}.bi-shield-lock-fill:before{content:""}.bi-shield-lock:before{content:""}.bi-shield-minus:before{content:""}.bi-shield-plus:before{content:""}.bi-shield-shaded:before{content:""}.bi-shield-slash-fill:before{content:""}.bi-shield-slash:before{content:""}.bi-shield-x:before{content:""}.bi-shield:before{content:""}.bi-shift-fill:before{content:""}.bi-shift:before{content:""}.bi-shop-window:before{content:""}.bi-shop:before{content:""}.bi-shuffle:before{content:""}.bi-signpost-2-fill:before{content:""}.bi-signpost-2:before{content:""}.bi-signpost-fill:before{content:""}.bi-signpost-split-fill:before{content:""}.bi-signpost-split:before{content:""}.bi-signpost:before{content:""}.bi-sim-fill:before{content:""}.bi-sim:before{content:""}.bi-skip-backward-btn-fill:before{content:""}.bi-skip-backward-btn:before{content:""}.bi-skip-backward-circle-fill:before{content:""}.bi-skip-backward-circle:before{content:""}.bi-skip-backward-fill:before{content:""}.bi-skip-backward:before{content:""}.bi-skip-end-btn-fill:before{content:""}.bi-skip-end-btn:before{content:""}.bi-skip-end-circle-fill:before{content:""}.bi-skip-end-circle:before{content:""}.bi-skip-end-fill:before{content:""}.bi-skip-end:before{content:""}.bi-skip-forward-btn-fill:before{content:""}.bi-skip-forward-btn:before{content:""}.bi-skip-forward-circle-fill:before{content:""}.bi-skip-forward-circle:before{content:""}.bi-skip-forward-fill:before{content:""}.bi-skip-forward:before{content:""}.bi-skip-start-btn-fill:before{content:""}.bi-skip-start-btn:before{content:""}.bi-skip-start-circle-fill:before{content:""}.bi-skip-start-circle:before{content:""}.bi-skip-start-fill:before{content:""}.bi-skip-start:before{content:""}.bi-slack:before{content:""}.bi-slash-circle-fill:before{content:""}.bi-slash-circle:before{content:""}.bi-slash-square-fill:before{content:""}.bi-slash-square:before{content:""}.bi-slash:before{content:""}.bi-sliders:before{content:""}.bi-smartwatch:before{content:""}.bi-snow:before{content:""}.bi-snow2:before{content:""}.bi-snow3:before{content:""}.bi-sort-alpha-down-alt:before{content:""}.bi-sort-alpha-down:before{content:""}.bi-sort-alpha-up-alt:before{content:""}.bi-sort-alpha-up:before{content:""}.bi-sort-down-alt:before{content:""}.bi-sort-down:before{content:""}.bi-sort-numeric-down-alt:before{content:""}.bi-sort-numeric-down:before{content:""}.bi-sort-numeric-up-alt:before{content:""}.bi-sort-numeric-up:before{content:""}.bi-sort-up-alt:before{content:""}.bi-sort-up:before{content:""}.bi-soundwave:before{content:""}.bi-speaker-fill:before{content:""}.bi-speaker:before{content:""}.bi-speedometer:before{content:""}.bi-speedometer2:before{content:""}.bi-spellcheck:before{content:""}.bi-square-fill:before{content:""}.bi-square-half:before{content:""}.bi-square:before{content:""}.bi-stack:before{content:""}.bi-star-fill:before{content:""}.bi-star-half:before{content:""}.bi-star:before{content:""}.bi-stars:before{content:""}.bi-stickies-fill:before{content:""}.bi-stickies:before{content:""}.bi-sticky-fill:before{content:""}.bi-sticky:before{content:""}.bi-stop-btn-fill:before{content:""}.bi-stop-btn:before{content:""}.bi-stop-circle-fill:before{content:""}.bi-stop-circle:before{content:""}.bi-stop-fill:before{content:""}.bi-stop:before{content:""}.bi-stoplights-fill:before{content:""}.bi-stoplights:before{content:""}.bi-stopwatch-fill:before{content:""}.bi-stopwatch:before{content:""}.bi-subtract:before{content:""}.bi-suit-club-fill:before{content:""}.bi-suit-club:before{content:""}.bi-suit-diamond-fill:before{content:""}.bi-suit-diamond:before{content:""}.bi-suit-heart-fill:before{content:""}.bi-suit-heart:before{content:""}.bi-suit-spade-fill:before{content:""}.bi-suit-spade:before{content:""}.bi-sun-fill:before{content:""}.bi-sun:before{content:""}.bi-sunglasses:before{content:""}.bi-sunrise-fill:before{content:""}.bi-sunrise:before{content:""}.bi-sunset-fill:before{content:""}.bi-sunset:before{content:""}.bi-symmetry-horizontal:before{content:""}.bi-symmetry-vertical:before{content:""}.bi-table:before{content:""}.bi-tablet-fill:before{content:""}.bi-tablet-landscape-fill:before{content:""}.bi-tablet-landscape:before{content:""}.bi-tablet:before{content:""}.bi-tag-fill:before{content:""}.bi-tag:before{content:""}.bi-tags-fill:before{content:""}.bi-tags:before{content:""}.bi-telegram:before{content:""}.bi-telephone-fill:before{content:""}.bi-telephone-forward-fill:before{content:""}.bi-telephone-forward:before{content:""}.bi-telephone-inbound-fill:before{content:""}.bi-telephone-inbound:before{content:""}.bi-telephone-minus-fill:before{content:""}.bi-telephone-minus:before{content:""}.bi-telephone-outbound-fill:before{content:""}.bi-telephone-outbound:before{content:""}.bi-telephone-plus-fill:before{content:""}.bi-telephone-plus:before{content:""}.bi-telephone-x-fill:before{content:""}.bi-telephone-x:before{content:""}.bi-telephone:before{content:""}.bi-terminal-fill:before{content:""}.bi-terminal:before{content:""}.bi-text-center:before{content:""}.bi-text-indent-left:before{content:""}.bi-text-indent-right:before{content:""}.bi-text-left:before{content:""}.bi-text-paragraph:before{content:""}.bi-text-right:before{content:""}.bi-textarea-resize:before{content:""}.bi-textarea-t:before{content:""}.bi-textarea:before{content:""}.bi-thermometer-half:before{content:""}.bi-thermometer-high:before{content:""}.bi-thermometer-low:before{content:""}.bi-thermometer-snow:before{content:""}.bi-thermometer-sun:before{content:""}.bi-thermometer:before{content:""}.bi-three-dots-vertical:before{content:""}.bi-three-dots:before{content:""}.bi-toggle-off:before{content:""}.bi-toggle-on:before{content:""}.bi-toggle2-off:before{content:""}.bi-toggle2-on:before{content:""}.bi-toggles:before{content:""}.bi-toggles2:before{content:""}.bi-tools:before{content:""}.bi-tornado:before{content:""}.bi-trash-fill:before{content:""}.bi-trash:before{content:""}.bi-trash2-fill:before{content:""}.bi-trash2:before{content:""}.bi-tree-fill:before{content:""}.bi-tree:before{content:""}.bi-triangle-fill:before{content:""}.bi-triangle-half:before{content:""}.bi-triangle:before{content:""}.bi-trophy-fill:before{content:""}.bi-trophy:before{content:""}.bi-tropical-storm:before{content:""}.bi-truck-flatbed:before{content:""}.bi-truck:before{content:""}.bi-tsunami:before{content:""}.bi-tv-fill:before{content:""}.bi-tv:before{content:""}.bi-twitch:before{content:""}.bi-twitter:before{content:""}.bi-type-bold:before{content:""}.bi-type-h1:before{content:""}.bi-type-h2:before{content:""}.bi-type-h3:before{content:""}.bi-type-italic:before{content:""}.bi-type-strikethrough:before{content:""}.bi-type-underline:before{content:""}.bi-type:before{content:""}.bi-ui-checks-grid:before{content:""}.bi-ui-checks:before{content:""}.bi-ui-radios-grid:before{content:""}.bi-ui-radios:before{content:""}.bi-umbrella-fill:before{content:""}.bi-umbrella:before{content:""}.bi-union:before{content:""}.bi-unlock-fill:before{content:""}.bi-unlock:before{content:""}.bi-upc-scan:before{content:""}.bi-upc:before{content:""}.bi-upload:before{content:""}.bi-vector-pen:before{content:""}.bi-view-list:before{content:""}.bi-view-stacked:before{content:""}.bi-vinyl-fill:before{content:""}.bi-vinyl:before{content:""}.bi-voicemail:before{content:""}.bi-volume-down-fill:before{content:""}.bi-volume-down:before{content:""}.bi-volume-mute-fill:before{content:""}.bi-volume-mute:before{content:""}.bi-volume-off-fill:before{content:""}.bi-volume-off:before{content:""}.bi-volume-up-fill:before{content:""}.bi-volume-up:before{content:""}.bi-vr:before{content:""}.bi-wallet-fill:before{content:""}.bi-wallet:before{content:""}.bi-wallet2:before{content:""}.bi-watch:before{content:""}.bi-water:before{content:""}.bi-whatsapp:before{content:""}.bi-wifi-1:before{content:""}.bi-wifi-2:before{content:""}.bi-wifi-off:before{content:""}.bi-wifi:before{content:""}.bi-wind:before{content:""}.bi-window-dock:before{content:""}.bi-window-sidebar:before{content:""}.bi-window:before{content:""}.bi-wrench:before{content:""}.bi-x-circle-fill:before{content:""}.bi-x-circle:before{content:""}.bi-x-diamond-fill:before{content:""}.bi-x-diamond:before{content:""}.bi-x-octagon-fill:before{content:""}.bi-x-octagon:before{content:""}.bi-x-square-fill:before{content:""}.bi-x-square:before{content:""}.bi-x:before{content:""}.bi-youtube:before{content:""}.bi-zoom-in:before{content:""}.bi-zoom-out:before{content:""}.bi-bank:before{content:""}.bi-bank2:before{content:""}.bi-bell-slash-fill:before{content:""}.bi-bell-slash:before{content:""}.bi-cash-coin:before{content:""}.bi-check-lg:before{content:""}.bi-coin:before{content:""}.bi-currency-bitcoin:before{content:""}.bi-currency-dollar:before{content:""}.bi-currency-euro:before{content:""}.bi-currency-exchange:before{content:""}.bi-currency-pound:before{content:""}.bi-currency-yen:before{content:""}.bi-dash-lg:before{content:""}.bi-exclamation-lg:before{content:""}.bi-file-earmark-pdf-fill:before{content:""}.bi-file-earmark-pdf:before{content:""}.bi-file-pdf-fill:before{content:""}.bi-file-pdf:before{content:""}.bi-gender-ambiguous:before{content:""}.bi-gender-female:before{content:""}.bi-gender-male:before{content:""}.bi-gender-trans:before{content:""}.bi-headset-vr:before{content:""}.bi-info-lg:before{content:""}.bi-mastodon:before{content:""}.bi-messenger:before{content:""}.bi-piggy-bank-fill:before{content:""}.bi-piggy-bank:before{content:""}.bi-pin-map-fill:before{content:""}.bi-pin-map:before{content:""}.bi-plus-lg:before{content:""}.bi-question-lg:before{content:""}.bi-recycle:before{content:""}.bi-reddit:before{content:""}.bi-safe-fill:before{content:""}.bi-safe2-fill:before{content:""}.bi-safe2:before{content:""}.bi-sd-card-fill:before{content:""}.bi-sd-card:before{content:""}.bi-skype:before{content:""}.bi-slash-lg:before{content:""}.bi-translate:before{content:""}.bi-x-lg:before{content:""}.bi-safe:before{content:""}.bi-apple:before{content:""}.bi-microsoft:before{content:""}.bi-windows:before{content:""}.bi-behance:before{content:""}.bi-dribbble:before{content:""}.bi-line:before{content:""}.bi-medium:before{content:""}.bi-paypal:before{content:""}.bi-pinterest:before{content:""}.bi-signal:before{content:""}.bi-snapchat:before{content:""}.bi-spotify:before{content:""}.bi-stack-overflow:before{content:""}.bi-strava:before{content:""}.bi-wordpress:before{content:""}.bi-vimeo:before{content:""}.bi-activity:before{content:""}.bi-easel2-fill:before{content:""}.bi-easel2:before{content:""}.bi-easel3-fill:before{content:""}.bi-easel3:before{content:""}.bi-fan:before{content:""}.bi-fingerprint:before{content:""}.bi-graph-down-arrow:before{content:""}.bi-graph-up-arrow:before{content:""}.bi-hypnotize:before{content:""}.bi-magic:before{content:""}.bi-person-rolodex:before{content:""}.bi-person-video:before{content:""}.bi-person-video2:before{content:""}.bi-person-video3:before{content:""}.bi-person-workspace:before{content:""}.bi-radioactive:before{content:""}.bi-webcam-fill:before{content:""}.bi-webcam:before{content:""}.bi-yin-yang:before{content:""}.bi-bandaid-fill:before{content:""}.bi-bandaid:before{content:""}.bi-bluetooth:before{content:""}.bi-body-text:before{content:""}.bi-boombox:before{content:""}.bi-boxes:before{content:""}.bi-dpad-fill:before{content:""}.bi-dpad:before{content:""}.bi-ear-fill:before{content:""}.bi-ear:before{content:""}.bi-envelope-check-fill:before{content:""}.bi-envelope-check:before{content:""}.bi-envelope-dash-fill:before{content:""}.bi-envelope-dash:before{content:""}.bi-envelope-exclamation-fill:before{content:""}.bi-envelope-exclamation:before{content:""}.bi-envelope-plus-fill:before{content:""}.bi-envelope-plus:before{content:""}.bi-envelope-slash-fill:before{content:""}.bi-envelope-slash:before{content:""}.bi-envelope-x-fill:before{content:""}.bi-envelope-x:before{content:""}.bi-explicit-fill:before{content:""}.bi-explicit:before{content:""}.bi-git:before{content:""}.bi-infinity:before{content:""}.bi-list-columns-reverse:before{content:""}.bi-list-columns:before{content:""}.bi-meta:before{content:""}.bi-nintendo-switch:before{content:""}.bi-pc-display-horizontal:before{content:""}.bi-pc-display:before{content:""}.bi-pc-horizontal:before{content:""}.bi-pc:before{content:""}.bi-playstation:before{content:""}.bi-plus-slash-minus:before{content:""}.bi-projector-fill:before{content:""}.bi-projector:before{content:""}.bi-qr-code-scan:before{content:""}.bi-qr-code:before{content:""}.bi-quora:before{content:""}.bi-quote:before{content:""}.bi-robot:before{content:""}.bi-send-check-fill:before{content:""}.bi-send-check:before{content:""}.bi-send-dash-fill:before{content:""}.bi-send-dash:before{content:""}.bi-send-exclamation-fill:before{content:""}.bi-send-exclamation:before{content:""}.bi-send-fill:before{content:""}.bi-send-plus-fill:before{content:""}.bi-send-plus:before{content:""}.bi-send-slash-fill:before{content:""}.bi-send-slash:before{content:""}.bi-send-x-fill:before{content:""}.bi-send-x:before{content:""}.bi-send:before{content:""}.bi-steam:before{content:""}.bi-terminal-dash:before{content:""}.bi-terminal-plus:before{content:""}.bi-terminal-split:before{content:""}.bi-ticket-detailed-fill:before{content:""}.bi-ticket-detailed:before{content:""}.bi-ticket-fill:before{content:""}.bi-ticket-perforated-fill:before{content:""}.bi-ticket-perforated:before{content:""}.bi-ticket:before{content:""}.bi-tiktok:before{content:""}.bi-window-dash:before{content:""}.bi-window-desktop:before{content:""}.bi-window-fullscreen:before{content:""}.bi-window-plus:before{content:""}.bi-window-split:before{content:""}.bi-window-stack:before{content:""}.bi-window-x:before{content:""}.bi-xbox:before{content:""}.bi-ethernet:before{content:""}.bi-hdmi-fill:before{content:""}.bi-hdmi:before{content:""}.bi-usb-c-fill:before{content:""}.bi-usb-c:before{content:""}.bi-usb-fill:before{content:""}.bi-usb-plug-fill:before{content:""}.bi-usb-plug:before{content:""}.bi-usb-symbol:before{content:""}.bi-usb:before{content:""}.bi-boombox-fill:before{content:""}.bi-displayport:before{content:""}.bi-gpu-card:before{content:""}.bi-memory:before{content:""}.bi-modem-fill:before{content:""}.bi-modem:before{content:""}.bi-motherboard-fill:before{content:""}.bi-motherboard:before{content:""}.bi-optical-audio-fill:before{content:""}.bi-optical-audio:before{content:""}.bi-pci-card:before{content:""}.bi-router-fill:before{content:""}.bi-router:before{content:""}.bi-thunderbolt-fill:before{content:""}.bi-thunderbolt:before{content:""}.bi-usb-drive-fill:before{content:""}.bi-usb-drive:before{content:""}.bi-usb-micro-fill:before{content:""}.bi-usb-micro:before{content:""}.bi-usb-mini-fill:before{content:""}.bi-usb-mini:before{content:""}.bi-cloud-haze2:before{content:""}.bi-device-hdd-fill:before{content:""}.bi-device-hdd:before{content:""}.bi-device-ssd-fill:before{content:""}.bi-device-ssd:before{content:""}.bi-displayport-fill:before{content:""}.bi-mortarboard-fill:before{content:""}.bi-mortarboard:before{content:""}.bi-terminal-x:before{content:""}.bi-arrow-through-heart-fill:before{content:""}.bi-arrow-through-heart:before{content:""}.bi-badge-sd-fill:before{content:""}.bi-badge-sd:before{content:""}.bi-bag-heart-fill:before{content:""}.bi-bag-heart:before{content:""}.bi-balloon-fill:before{content:""}.bi-balloon-heart-fill:before{content:""}.bi-balloon-heart:before{content:""}.bi-balloon:before{content:""}.bi-box2-fill:before{content:""}.bi-box2-heart-fill:before{content:""}.bi-box2-heart:before{content:""}.bi-box2:before{content:""}.bi-braces-asterisk:before{content:""}.bi-calendar-heart-fill:before{content:""}.bi-calendar-heart:before{content:""}.bi-calendar2-heart-fill:before{content:""}.bi-calendar2-heart:before{content:""}.bi-chat-heart-fill:before{content:""}.bi-chat-heart:before{content:""}.bi-chat-left-heart-fill:before{content:""}.bi-chat-left-heart:before{content:""}.bi-chat-right-heart-fill:before{content:""}.bi-chat-right-heart:before{content:""}.bi-chat-square-heart-fill:before{content:""}.bi-chat-square-heart:before{content:""}.bi-clipboard-check-fill:before{content:""}.bi-clipboard-data-fill:before{content:""}.bi-clipboard-fill:before{content:""}.bi-clipboard-heart-fill:before{content:""}.bi-clipboard-heart:before{content:""}.bi-clipboard-minus-fill:before{content:""}.bi-clipboard-plus-fill:before{content:""}.bi-clipboard-pulse:before{content:""}.bi-clipboard-x-fill:before{content:""}.bi-clipboard2-check-fill:before{content:""}.bi-clipboard2-check:before{content:""}.bi-clipboard2-data-fill:before{content:""}.bi-clipboard2-data:before{content:""}.bi-clipboard2-fill:before{content:""}.bi-clipboard2-heart-fill:before{content:""}.bi-clipboard2-heart:before{content:""}.bi-clipboard2-minus-fill:before{content:""}.bi-clipboard2-minus:before{content:""}.bi-clipboard2-plus-fill:before{content:""}.bi-clipboard2-plus:before{content:""}.bi-clipboard2-pulse-fill:before{content:""}.bi-clipboard2-pulse:before{content:""}.bi-clipboard2-x-fill:before{content:""}.bi-clipboard2-x:before{content:""}.bi-clipboard2:before{content:""}.bi-emoji-kiss-fill:before{content:""}.bi-emoji-kiss:before{content:""}.bi-envelope-heart-fill:before{content:""}.bi-envelope-heart:before{content:""}.bi-envelope-open-heart-fill:before{content:""}.bi-envelope-open-heart:before{content:""}.bi-envelope-paper-fill:before{content:""}.bi-envelope-paper-heart-fill:before{content:""}.bi-envelope-paper-heart:before{content:""}.bi-envelope-paper:before{content:""}.bi-filetype-aac:before{content:""}.bi-filetype-ai:before{content:""}.bi-filetype-bmp:before{content:""}.bi-filetype-cs:before{content:""}.bi-filetype-css:before{content:""}.bi-filetype-csv:before{content:""}.bi-filetype-doc:before{content:""}.bi-filetype-docx:before{content:""}.bi-filetype-exe:before{content:""}.bi-filetype-gif:before{content:""}.bi-filetype-heic:before{content:""}.bi-filetype-html:before{content:""}.bi-filetype-java:before{content:""}.bi-filetype-jpg:before{content:""}.bi-filetype-js:before{content:""}.bi-filetype-jsx:before{content:""}.bi-filetype-key:before{content:""}.bi-filetype-m4p:before{content:""}.bi-filetype-md:before{content:""}.bi-filetype-mdx:before{content:""}.bi-filetype-mov:before{content:""}.bi-filetype-mp3:before{content:""}.bi-filetype-mp4:before{content:""}.bi-filetype-otf:before{content:""}.bi-filetype-pdf:before{content:""}.bi-filetype-php:before{content:""}.bi-filetype-png:before{content:""}.bi-filetype-ppt:before{content:""}.bi-filetype-psd:before{content:""}.bi-filetype-py:before{content:""}.bi-filetype-raw:before{content:""}.bi-filetype-rb:before{content:""}.bi-filetype-sass:before{content:""}.bi-filetype-scss:before{content:""}.bi-filetype-sh:before{content:""}.bi-filetype-svg:before{content:""}.bi-filetype-tiff:before{content:""}.bi-filetype-tsx:before{content:""}.bi-filetype-ttf:before{content:""}.bi-filetype-txt:before{content:""}.bi-filetype-wav:before{content:""}.bi-filetype-woff:before{content:""}.bi-filetype-xls:before{content:""}.bi-filetype-xml:before{content:""}.bi-filetype-yml:before{content:""}.bi-heart-arrow:before{content:""}.bi-heart-pulse-fill:before{content:""}.bi-heart-pulse:before{content:""}.bi-heartbreak-fill:before{content:""}.bi-heartbreak:before{content:""}.bi-hearts:before{content:""}.bi-hospital-fill:before{content:""}.bi-hospital:before{content:""}.bi-house-heart-fill:before{content:""}.bi-house-heart:before{content:""}.bi-incognito:before{content:""}.bi-magnet-fill:before{content:""}.bi-magnet:before{content:""}.bi-person-heart:before{content:""}.bi-person-hearts:before{content:""}.bi-phone-flip:before{content:""}.bi-plugin:before{content:""}.bi-postage-fill:before{content:""}.bi-postage-heart-fill:before{content:""}.bi-postage-heart:before{content:""}.bi-postage:before{content:""}.bi-postcard-fill:before{content:""}.bi-postcard-heart-fill:before{content:""}.bi-postcard-heart:before{content:""}.bi-postcard:before{content:""}.bi-search-heart-fill:before{content:""}.bi-search-heart:before{content:""}.bi-sliders2-vertical:before{content:""}.bi-sliders2:before{content:""}.bi-trash3-fill:before{content:""}.bi-trash3:before{content:""}.bi-valentine:before{content:""}.bi-valentine2:before{content:""}.bi-wrench-adjustable-circle-fill:before{content:""}.bi-wrench-adjustable-circle:before{content:""}.bi-wrench-adjustable:before{content:""}.bi-filetype-json:before{content:""}.bi-filetype-pptx:before{content:""}.bi-filetype-xlsx:before{content:""}.bi-1-circle-fill:before{content:""}.bi-1-circle:before{content:""}.bi-1-square-fill:before{content:""}.bi-1-square:before{content:""}.bi-2-circle-fill:before{content:""}.bi-2-circle:before{content:""}.bi-2-square-fill:before{content:""}.bi-2-square:before{content:""}.bi-3-circle-fill:before{content:""}.bi-3-circle:before{content:""}.bi-3-square-fill:before{content:""}.bi-3-square:before{content:""}.bi-4-circle-fill:before{content:""}.bi-4-circle:before{content:""}.bi-4-square-fill:before{content:""}.bi-4-square:before{content:""}.bi-5-circle-fill:before{content:""}.bi-5-circle:before{content:""}.bi-5-square-fill:before{content:""}.bi-5-square:before{content:""}.bi-6-circle-fill:before{content:""}.bi-6-circle:before{content:""}.bi-6-square-fill:before{content:""}.bi-6-square:before{content:""}.bi-7-circle-fill:before{content:""}.bi-7-circle:before{content:""}.bi-7-square-fill:before{content:""}.bi-7-square:before{content:""}.bi-8-circle-fill:before{content:""}.bi-8-circle:before{content:""}.bi-8-square-fill:before{content:""}.bi-8-square:before{content:""}.bi-9-circle-fill:before{content:""}.bi-9-circle:before{content:""}.bi-9-square-fill:before{content:""}.bi-9-square:before{content:""}.bi-airplane-engines-fill:before{content:""}.bi-airplane-engines:before{content:""}.bi-airplane-fill:before{content:""}.bi-airplane:before{content:""}.bi-alexa:before{content:""}.bi-alipay:before{content:""}.bi-android:before{content:""}.bi-android2:before{content:""}.bi-box-fill:before{content:""}.bi-box-seam-fill:before{content:""}.bi-browser-chrome:before{content:""}.bi-browser-edge:before{content:""}.bi-browser-firefox:before{content:""}.bi-browser-safari:before{content:""}.bi-c-circle-fill:before{content:""}.bi-c-circle:before{content:""}.bi-c-square-fill:before{content:""}.bi-c-square:before{content:""}.bi-capsule-pill:before{content:""}.bi-capsule:before{content:""}.bi-car-front-fill:before{content:""}.bi-car-front:before{content:""}.bi-cassette-fill:before{content:""}.bi-cassette:before{content:""}.bi-cc-circle-fill:before{content:""}.bi-cc-circle:before{content:""}.bi-cc-square-fill:before{content:""}.bi-cc-square:before{content:""}.bi-cup-hot-fill:before{content:""}.bi-cup-hot:before{content:""}.bi-currency-rupee:before{content:""}.bi-dropbox:before{content:""}.bi-escape:before{content:""}.bi-fast-forward-btn-fill:before{content:""}.bi-fast-forward-btn:before{content:""}.bi-fast-forward-circle-fill:before{content:""}.bi-fast-forward-circle:before{content:""}.bi-fast-forward-fill:before{content:""}.bi-fast-forward:before{content:""}.bi-filetype-sql:before{content:""}.bi-fire:before{content:""}.bi-google-play:before{content:""}.bi-h-circle-fill:before{content:""}.bi-h-circle:before{content:""}.bi-h-square-fill:before{content:""}.bi-h-square:before{content:""}.bi-indent:before{content:""}.bi-lungs-fill:before{content:""}.bi-lungs:before{content:""}.bi-microsoft-teams:before{content:""}.bi-p-circle-fill:before{content:""}.bi-p-circle:before{content:""}.bi-p-square-fill:before{content:""}.bi-p-square:before{content:""}.bi-pass-fill:before{content:""}.bi-pass:before{content:""}.bi-prescription:before{content:""}.bi-prescription2:before{content:""}.bi-r-circle-fill:before{content:""}.bi-r-circle:before{content:""}.bi-r-square-fill:before{content:""}.bi-r-square:before{content:""}.bi-repeat-1:before{content:""}.bi-repeat:before{content:""}.bi-rewind-btn-fill:before{content:""}.bi-rewind-btn:before{content:""}.bi-rewind-circle-fill:before{content:""}.bi-rewind-circle:before{content:""}.bi-rewind-fill:before{content:""}.bi-rewind:before{content:""}.bi-train-freight-front-fill:before{content:""}.bi-train-freight-front:before{content:""}.bi-train-front-fill:before{content:""}.bi-train-front:before{content:""}.bi-train-lightrail-front-fill:before{content:""}.bi-train-lightrail-front:before{content:""}.bi-truck-front-fill:before{content:""}.bi-truck-front:before{content:""}.bi-ubuntu:before{content:""}.bi-unindent:before{content:""}.bi-unity:before{content:""}.bi-universal-access-circle:before{content:""}.bi-universal-access:before{content:""}.bi-virus:before{content:""}.bi-virus2:before{content:""}.bi-wechat:before{content:""}.bi-yelp:before{content:""}.bi-sign-stop-fill:before{content:""}.bi-sign-stop-lights-fill:before{content:""}.bi-sign-stop-lights:before{content:""}.bi-sign-stop:before{content:""}.bi-sign-turn-left-fill:before{content:""}.bi-sign-turn-left:before{content:""}.bi-sign-turn-right-fill:before{content:""}.bi-sign-turn-right:before{content:""}.bi-sign-turn-slight-left-fill:before{content:""}.bi-sign-turn-slight-left:before{content:""}.bi-sign-turn-slight-right-fill:before{content:""}.bi-sign-turn-slight-right:before{content:""}.bi-sign-yield-fill:before{content:""}.bi-sign-yield:before{content:""}.bi-ev-station-fill:before{content:""}.bi-ev-station:before{content:""}.bi-fuel-pump-diesel-fill:before{content:""}.bi-fuel-pump-diesel:before{content:""}.bi-fuel-pump-fill:before{content:""}.bi-fuel-pump:before{content:""}.bi-0-circle-fill:before{content:""}.bi-0-circle:before{content:""}.bi-0-square-fill:before{content:""}.bi-0-square:before{content:""}.bi-rocket-fill:before{content:""}.bi-rocket-takeoff-fill:before{content:""}.bi-rocket-takeoff:before{content:""}.bi-rocket:before{content:""}.bi-stripe:before{content:""}.bi-subscript:before{content:""}.bi-superscript:before{content:""}.bi-trello:before{content:""}.bi-envelope-at-fill:before{content:""}.bi-envelope-at:before{content:""}.bi-regex:before{content:""}.bi-text-wrap:before{content:""}.bi-sign-dead-end-fill:before{content:""}.bi-sign-dead-end:before{content:""}.bi-sign-do-not-enter-fill:before{content:""}.bi-sign-do-not-enter:before{content:""}.bi-sign-intersection-fill:before{content:""}.bi-sign-intersection-side-fill:before{content:""}.bi-sign-intersection-side:before{content:""}.bi-sign-intersection-t-fill:before{content:""}.bi-sign-intersection-t:before{content:""}.bi-sign-intersection-y-fill:before{content:""}.bi-sign-intersection-y:before{content:""}.bi-sign-intersection:before{content:""}.bi-sign-merge-left-fill:before{content:""}.bi-sign-merge-left:before{content:""}.bi-sign-merge-right-fill:before{content:""}.bi-sign-merge-right:before{content:""}.bi-sign-no-left-turn-fill:before{content:""}.bi-sign-no-left-turn:before{content:""}.bi-sign-no-parking-fill:before{content:""}.bi-sign-no-parking:before{content:""}.bi-sign-no-right-turn-fill:before{content:""}.bi-sign-no-right-turn:before{content:""}.bi-sign-railroad-fill:before{content:""}.bi-sign-railroad:before{content:""}.bi-building-add:before{content:""}.bi-building-check:before{content:""}.bi-building-dash:before{content:""}.bi-building-down:before{content:""}.bi-building-exclamation:before{content:""}.bi-building-fill-add:before{content:""}.bi-building-fill-check:before{content:""}.bi-building-fill-dash:before{content:""}.bi-building-fill-down:before{content:""}.bi-building-fill-exclamation:before{content:""}.bi-building-fill-gear:before{content:""}.bi-building-fill-lock:before{content:""}.bi-building-fill-slash:before{content:""}.bi-building-fill-up:before{content:""}.bi-building-fill-x:before{content:""}.bi-building-fill:before{content:""}.bi-building-gear:before{content:""}.bi-building-lock:before{content:""}.bi-building-slash:before{content:""}.bi-building-up:before{content:""}.bi-building-x:before{content:""}.bi-buildings-fill:before{content:""}.bi-buildings:before{content:""}.bi-bus-front-fill:before{content:""}.bi-bus-front:before{content:""}.bi-ev-front-fill:before{content:""}.bi-ev-front:before{content:""}.bi-globe-americas:before{content:""}.bi-globe-asia-australia:before{content:""}.bi-globe-central-south-asia:before{content:""}.bi-globe-europe-africa:before{content:""}.bi-house-add-fill:before{content:""}.bi-house-add:before{content:""}.bi-house-check-fill:before{content:""}.bi-house-check:before{content:""}.bi-house-dash-fill:before{content:""}.bi-house-dash:before{content:""}.bi-house-down-fill:before{content:""}.bi-house-down:before{content:""}.bi-house-exclamation-fill:before{content:""}.bi-house-exclamation:before{content:""}.bi-house-gear-fill:before{content:""}.bi-house-gear:before{content:""}.bi-house-lock-fill:before{content:""}.bi-house-lock:before{content:""}.bi-house-slash-fill:before{content:""}.bi-house-slash:before{content:""}.bi-house-up-fill:before{content:""}.bi-house-up:before{content:""}.bi-house-x-fill:before{content:""}.bi-house-x:before{content:""}.bi-person-add:before{content:""}.bi-person-down:before{content:""}.bi-person-exclamation:before{content:""}.bi-person-fill-add:before{content:""}.bi-person-fill-check:before{content:""}.bi-person-fill-dash:before{content:""}.bi-person-fill-down:before{content:""}.bi-person-fill-exclamation:before{content:""}.bi-person-fill-gear:before{content:""}.bi-person-fill-lock:before{content:""}.bi-person-fill-slash:before{content:""}.bi-person-fill-up:before{content:""}.bi-person-fill-x:before{content:""}.bi-person-gear:before{content:""}.bi-person-lock:before{content:""}.bi-person-slash:before{content:""}.bi-person-up:before{content:""}.bi-scooter:before{content:""}.bi-taxi-front-fill:before{content:""}.bi-taxi-front:before{content:""}.bi-amd:before{content:""}.bi-database-add:before{content:""}.bi-database-check:before{content:""}.bi-database-dash:before{content:""}.bi-database-down:before{content:""}.bi-database-exclamation:before{content:""}.bi-database-fill-add:before{content:""}.bi-database-fill-check:before{content:""}.bi-database-fill-dash:before{content:""}.bi-database-fill-down:before{content:""}.bi-database-fill-exclamation:before{content:""}.bi-database-fill-gear:before{content:""}.bi-database-fill-lock:before{content:""}.bi-database-fill-slash:before{content:""}.bi-database-fill-up:before{content:""}.bi-database-fill-x:before{content:""}.bi-database-fill:before{content:""}.bi-database-gear:before{content:""}.bi-database-lock:before{content:""}.bi-database-slash:before{content:""}.bi-database-up:before{content:""}.bi-database-x:before{content:""}.bi-database:before{content:""}.bi-houses-fill:before{content:""}.bi-houses:before{content:""}.bi-nvidia:before{content:""}.bi-person-vcard-fill:before{content:""}.bi-person-vcard:before{content:""}.bi-sina-weibo:before{content:""}.bi-tencent-qq:before{content:""}.bi-wikipedia:before{content:""}.bi-alphabet-uppercase:before{content:""}.bi-alphabet:before{content:""}.bi-amazon:before{content:""}.bi-arrows-collapse-vertical:before{content:""}.bi-arrows-expand-vertical:before{content:""}.bi-arrows-vertical:before{content:""}.bi-arrows:before{content:""}.bi-ban-fill:before{content:""}.bi-ban:before{content:""}.bi-bing:before{content:""}.bi-cake:before{content:""}.bi-cake2:before{content:""}.bi-cookie:before{content:""}.bi-copy:before{content:""}.bi-crosshair:before{content:""}.bi-crosshair2:before{content:""}.bi-emoji-astonished-fill:before{content:""}.bi-emoji-astonished:before{content:""}.bi-emoji-grimace-fill:before{content:""}.bi-emoji-grimace:before{content:""}.bi-emoji-grin-fill:before{content:""}.bi-emoji-grin:before{content:""}.bi-emoji-surprise-fill:before{content:""}.bi-emoji-surprise:before{content:""}.bi-emoji-tear-fill:before{content:""}.bi-emoji-tear:before{content:""}.bi-envelope-arrow-down-fill:before{content:""}.bi-envelope-arrow-down:before{content:""}.bi-envelope-arrow-up-fill:before{content:""}.bi-envelope-arrow-up:before{content:""}.bi-feather:before{content:""}.bi-feather2:before{content:""}.bi-floppy-fill:before{content:""}.bi-floppy:before{content:""}.bi-floppy2-fill:before{content:""}.bi-floppy2:before{content:""}.bi-gitlab:before{content:""}.bi-highlighter:before{content:""}.bi-marker-tip:before{content:""}.bi-nvme-fill:before{content:""}.bi-nvme:before{content:""}.bi-opencollective:before{content:""}.bi-pci-card-network:before{content:""}.bi-pci-card-sound:before{content:""}.bi-radar:before{content:""}.bi-send-arrow-down-fill:before{content:""}.bi-send-arrow-down:before{content:""}.bi-send-arrow-up-fill:before{content:""}.bi-send-arrow-up:before{content:""}.bi-sim-slash-fill:before{content:""}.bi-sim-slash:before{content:""}.bi-sourceforge:before{content:""}.bi-substack:before{content:""}.bi-threads-fill:before{content:""}.bi-threads:before{content:""}.bi-transparency:before{content:""}.bi-twitter-x:before{content:""}.bi-type-h4:before{content:""}.bi-type-h5:before{content:""}.bi-type-h6:before{content:""}.bi-backpack-fill:before{content:""}.bi-backpack:before{content:""}.bi-backpack2-fill:before{content:""}.bi-backpack2:before{content:""}.bi-backpack3-fill:before{content:""}.bi-backpack3:before{content:""}.bi-backpack4-fill:before{content:""}.bi-backpack4:before{content:""}.bi-brilliance:before{content:""}.bi-cake-fill:before{content:""}.bi-cake2-fill:before{content:""}.bi-duffle-fill:before{content:""}.bi-duffle:before{content:""}.bi-exposure:before{content:""}.bi-gender-neuter:before{content:""}.bi-highlights:before{content:""}.bi-luggage-fill:before{content:""}.bi-luggage:before{content:""}.bi-mailbox-flag:before{content:""}.bi-mailbox2-flag:before{content:""}.bi-noise-reduction:before{content:""}.bi-passport-fill:before{content:""}.bi-passport:before{content:""}.bi-person-arms-up:before{content:""}.bi-person-raised-hand:before{content:""}.bi-person-standing-dress:before{content:""}.bi-person-standing:before{content:""}.bi-person-walking:before{content:""}.bi-person-wheelchair:before{content:""}.bi-shadows:before{content:""}.bi-suitcase-fill:before{content:""}.bi-suitcase-lg-fill:before{content:""}.bi-suitcase-lg:before{content:""}.bi-suitcase:before{content:"豈"}.bi-suitcase2-fill:before{content:"更"}.bi-suitcase2:before{content:"車"}.bi-vignette:before{content:"賈"}.messageCentre[data-v-54755a4a]{top:calc(50px + 1rem);right:1rem}.dropdown-menu[data-v-3a072aae]{right:1rem}.slide-fade-leave-active[data-v-315acdc2],.slide-fade-enter-active[data-v-315acdc2]{transition:all .2s cubic-bezier(1,.5,.8,1)}.slide-fade-enter-from[data-v-315acdc2],.slide-fade-leave-to[data-v-315acdc2]{transform:translateY(20px);opacity:0}.subMenuBtn.active[data-v-315acdc2]{background-color:#ffffff20}.peerSettingContainer[data-v-6fc123c2]{background-color:#00000060;z-index:1000}.toggleShowKey[data-v-6fc123c2]{position:absolute;top:35px;right:12px}.peerSettingContainer[data-v-e65783b8]{background-color:#00000060;z-index:1000}.peerNav .nav-link[data-v-7129ca22].active[data-v-7129ca22]{//background: linear-gradient(var(--degree),var(--brandColor1) var(--distance2),var(--brandColor2) 100%);//color: white;background-color:#efefef}.list-move[data-v-7129ca22],.list-enter-active[data-v-7129ca22],.list-leave-active[data-v-7129ca22]{transition:all .4s cubic-bezier(.82,.58,.17,.9)}.list-enter-from[data-v-7129ca22],.list-leave-to[data-v-7129ca22]{opacity:0;transform:translateY(30px)}.list-leave-active[data-v-7129ca22]{position:absolute} diff --git a/src/static/app/dist/assets/index.js b/src/static/app/dist/assets/index.js index b8c0d38..fd6cde5 100644 --- a/src/static/app/dist/assets/index.js +++ b/src/static/app/dist/assets/index.js @@ -1,40 +1,40 @@ -var z0=Object.defineProperty;var U0=(e,t,n)=>t in e?z0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var st=(e,t,n)=>(U0(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&s(r)}).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 s(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Op=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function K0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Y0(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function s(){return this instanceof s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var i=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(n,s,i.get?i:{enumerable:!0,get:function(){return e[s]}})}),n}var G0={exports:{}},fe="top",Pe="bottom",ke="right",pe="left",Sa="auto",Hi=[fe,Pe,ke,pe],Bs="start",yi="end",Dp="clippingParents",Nc="viewport",ri="popper",$p="reference",Gl=Hi.reduce(function(e,t){return e.concat([t+"-"+Bs,t+"-"+yi])},[]),Fc=[].concat(Hi,[Sa]).reduce(function(e,t){return e.concat([t,t+"-"+Bs,t+"-"+yi])},[]),Lp="beforeRead",Ip="read",Rp="afterRead",Np="beforeMain",Fp="main",Bp="afterMain",Vp="beforeWrite",Hp="write",jp="afterWrite",Wp=[Lp,Ip,Rp,Np,Fp,Bp,Vp,Hp,jp];function cn(e){return e?(e.nodeName||"").toLowerCase():null}function Oe(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Vs(e){var t=Oe(e).Element;return e instanceof t||e instanceof Element}function We(e){var t=Oe(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Bc(e){if(typeof ShadowRoot>"u")return!1;var t=Oe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function q0(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var s=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!We(o)||!cn(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(r){var a=i[r];a===!1?o.removeAttribute(r):o.setAttribute(r,a===!0?"":a)}))})}function X0(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(s){var i=t.elements[s],o=t.attributes[s]||{},r=Object.keys(t.styles.hasOwnProperty(s)?t.styles[s]:n[s]),a=r.reduce(function(l,c){return l[c]="",l},{});!We(i)||!cn(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const Vc={name:"applyStyles",enabled:!0,phase:"write",fn:q0,effect:X0,requires:["computeStyles"]};function rn(e){return e.split("-")[0]}var Ds=Math.max,Zr=Math.min,vi=Math.round;function ql(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function zp(){return!/^((?!chrome|android).)*safari/i.test(ql())}function xi(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var s=e.getBoundingClientRect(),i=1,o=1;t&&We(e)&&(i=e.offsetWidth>0&&vi(s.width)/e.offsetWidth||1,o=e.offsetHeight>0&&vi(s.height)/e.offsetHeight||1);var r=Vs(e)?Oe(e):window,a=r.visualViewport,l=!zp()&&n,c=(s.left+(l&&a?a.offsetLeft:0))/i,u=(s.top+(l&&a?a.offsetTop:0))/o,d=s.width/i,f=s.height/o;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function Hc(e){var t=xi(e),n=e.offsetWidth,s=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-s)<=1&&(s=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:s}}function Up(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Bc(n)){var s=t;do{if(s&&e.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function Mn(e){return Oe(e).getComputedStyle(e)}function Q0(e){return["table","td","th"].indexOf(cn(e))>=0}function os(e){return((Vs(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ca(e){return cn(e)==="html"?e:e.assignedSlot||e.parentNode||(Bc(e)?e.host:null)||os(e)}function Bd(e){return!We(e)||Mn(e).position==="fixed"?null:e.offsetParent}function J0(e){var t=/firefox/i.test(ql()),n=/Trident/i.test(ql());if(n&&We(e)){var s=Mn(e);if(s.position==="fixed")return null}var i=Ca(e);for(Bc(i)&&(i=i.host);We(i)&&["html","body"].indexOf(cn(i))<0;){var o=Mn(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Ko(e){for(var t=Oe(e),n=Bd(e);n&&Q0(n)&&Mn(n).position==="static";)n=Bd(n);return n&&(cn(n)==="html"||cn(n)==="body"&&Mn(n).position==="static")?t:n||J0(e)||t}function jc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ho(e,t,n){return Ds(e,Zr(t,n))}function Z0(e,t,n){var s=ho(e,t,n);return s>n?n:s}function Kp(){return{top:0,right:0,bottom:0,left:0}}function Yp(e){return Object.assign({},Kp(),e)}function Gp(e,t){return t.reduce(function(n,s){return n[s]=e,n},{})}var tx=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Yp(typeof t!="number"?t:Gp(t,Hi))};function ex(e){var t,n=e.state,s=e.name,i=e.options,o=n.elements.arrow,r=n.modifiersData.popperOffsets,a=rn(n.placement),l=jc(a),c=[pe,ke].indexOf(a)>=0,u=c?"height":"width";if(!(!o||!r)){var d=tx(i.padding,n),f=Hc(o),p=l==="y"?fe:pe,g=l==="y"?Pe:ke,m=n.rects.reference[u]+n.rects.reference[l]-r[l]-n.rects.popper[u],y=r[l]-n.rects.reference[l],x=Ko(o),S=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,M=m/2-y/2,C=d[p],v=S-f[u]-d[g],E=S/2-f[u]/2+M,A=ho(C,E,v),w=l;n.modifiersData[s]=(t={},t[w]=A,t.centerOffset=A-E,t)}}function nx(e){var t=e.state,n=e.options,s=n.element,i=s===void 0?"[data-popper-arrow]":s;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Up(t.elements.popper,i)&&(t.elements.arrow=i))}const qp={name:"arrow",enabled:!0,phase:"main",fn:ex,effect:nx,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function wi(e){return e.split("-")[1]}var sx={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ix(e,t){var n=e.x,s=e.y,i=t.devicePixelRatio||1;return{x:vi(n*i)/i||0,y:vi(s*i)/i||0}}function Vd(e){var t,n=e.popper,s=e.popperRect,i=e.placement,o=e.variation,r=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=r.x,p=f===void 0?0:f,g=r.y,m=g===void 0?0:g,y=typeof u=="function"?u({x:p,y:m}):{x:p,y:m};p=y.x,m=y.y;var x=r.hasOwnProperty("x"),S=r.hasOwnProperty("y"),M=pe,C=fe,v=window;if(c){var E=Ko(n),A="clientHeight",w="clientWidth";if(E===Oe(n)&&(E=os(n),Mn(E).position!=="static"&&a==="absolute"&&(A="scrollHeight",w="scrollWidth")),E=E,i===fe||(i===pe||i===ke)&&o===yi){C=Pe;var k=d&&E===v&&v.visualViewport?v.visualViewport.height:E[A];m-=k-s.height,m*=l?1:-1}if(i===pe||(i===fe||i===Pe)&&o===yi){M=ke;var $=d&&E===v&&v.visualViewport?v.visualViewport.width:E[w];p-=$-s.width,p*=l?1:-1}}var L=Object.assign({position:a},c&&sx),N=u===!0?ix({x:p,y:m},Oe(n)):{x:p,y:m};if(p=N.x,m=N.y,l){var X;return Object.assign({},L,(X={},X[C]=S?"0":"",X[M]=x?"0":"",X.transform=(v.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",X))}return Object.assign({},L,(t={},t[C]=S?m+"px":"",t[M]=x?p+"px":"",t.transform="",t))}function ox(e){var t=e.state,n=e.options,s=n.gpuAcceleration,i=s===void 0?!0:s,o=n.adaptive,r=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:rn(t.placement),variation:wi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Vd(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Vd(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Wc={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ox,data:{}};var _r={passive:!0};function rx(e){var t=e.state,n=e.instance,s=e.options,i=s.scroll,o=i===void 0?!0:i,r=s.resize,a=r===void 0?!0:r,l=Oe(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,_r)}),a&&l.addEventListener("resize",n.update,_r),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,_r)}),a&&l.removeEventListener("resize",n.update,_r)}}const zc={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:rx,data:{}};var ax={left:"right",right:"left",bottom:"top",top:"bottom"};function Wr(e){return e.replace(/left|right|bottom|top/g,function(t){return ax[t]})}var lx={start:"end",end:"start"};function Hd(e){return e.replace(/start|end/g,function(t){return lx[t]})}function Uc(e){var t=Oe(e),n=t.pageXOffset,s=t.pageYOffset;return{scrollLeft:n,scrollTop:s}}function Kc(e){return xi(os(e)).left+Uc(e).scrollLeft}function cx(e,t){var n=Oe(e),s=os(e),i=n.visualViewport,o=s.clientWidth,r=s.clientHeight,a=0,l=0;if(i){o=i.width,r=i.height;var c=zp();(c||!c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:r,x:a+Kc(e),y:l}}function ux(e){var t,n=os(e),s=Uc(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Ds(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),r=Ds(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-s.scrollLeft+Kc(e),l=-s.scrollTop;return Mn(i||n).direction==="rtl"&&(a+=Ds(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}function Yc(e){var t=Mn(e),n=t.overflow,s=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+s)}function Xp(e){return["html","body","#document"].indexOf(cn(e))>=0?e.ownerDocument.body:We(e)&&Yc(e)?e:Xp(Ca(e))}function fo(e,t){var n;t===void 0&&(t=[]);var s=Xp(e),i=s===((n=e.ownerDocument)==null?void 0:n.body),o=Oe(s),r=i?[o].concat(o.visualViewport||[],Yc(s)?s:[]):s,a=t.concat(r);return i?a:a.concat(fo(Ca(r)))}function Xl(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function dx(e,t){var n=xi(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function jd(e,t,n){return t===Nc?Xl(cx(e,n)):Vs(t)?dx(t,n):Xl(ux(os(e)))}function hx(e){var t=fo(Ca(e)),n=["absolute","fixed"].indexOf(Mn(e).position)>=0,s=n&&We(e)?Ko(e):e;return Vs(s)?t.filter(function(i){return Vs(i)&&Up(i,s)&&cn(i)!=="body"}):[]}function fx(e,t,n,s){var i=t==="clippingParents"?hx(e):[].concat(t),o=[].concat(i,[n]),r=o[0],a=o.reduce(function(l,c){var u=jd(e,c,s);return l.top=Ds(u.top,l.top),l.right=Zr(u.right,l.right),l.bottom=Zr(u.bottom,l.bottom),l.left=Ds(u.left,l.left),l},jd(e,r,s));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Qp(e){var t=e.reference,n=e.element,s=e.placement,i=s?rn(s):null,o=s?wi(s):null,r=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case fe:l={x:r,y:t.y-n.height};break;case Pe:l={x:r,y:t.y+t.height};break;case ke:l={x:t.x+t.width,y:a};break;case pe:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=i?jc(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case Bs:l[c]=l[c]-(t[u]/2-n[u]/2);break;case yi:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Ei(e,t){t===void 0&&(t={});var n=t,s=n.placement,i=s===void 0?e.placement:s,o=n.strategy,r=o===void 0?e.strategy:o,a=n.boundary,l=a===void 0?Dp:a,c=n.rootBoundary,u=c===void 0?Nc:c,d=n.elementContext,f=d===void 0?ri:d,p=n.altBoundary,g=p===void 0?!1:p,m=n.padding,y=m===void 0?0:m,x=Yp(typeof y!="number"?y:Gp(y,Hi)),S=f===ri?$p:ri,M=e.rects.popper,C=e.elements[g?S:f],v=fx(Vs(C)?C:C.contextElement||os(e.elements.popper),l,u,r),E=xi(e.elements.reference),A=Qp({reference:E,element:M,strategy:"absolute",placement:i}),w=Xl(Object.assign({},M,A)),k=f===ri?w:E,$={top:v.top-k.top+x.top,bottom:k.bottom-v.bottom+x.bottom,left:v.left-k.left+x.left,right:k.right-v.right+x.right},L=e.modifiersData.offset;if(f===ri&&L){var N=L[i];Object.keys($).forEach(function(X){var Y=[ke,Pe].indexOf(X)>=0?1:-1,H=[fe,Pe].indexOf(X)>=0?"y":"x";$[X]+=N[H]*Y})}return $}function px(e,t){t===void 0&&(t={});var n=t,s=n.placement,i=n.boundary,o=n.rootBoundary,r=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Fc:l,u=wi(s),d=u?a?Gl:Gl.filter(function(g){return wi(g)===u}):Hi,f=d.filter(function(g){return c.indexOf(g)>=0});f.length===0&&(f=d);var p=f.reduce(function(g,m){return g[m]=Ei(e,{placement:m,boundary:i,rootBoundary:o,padding:r})[rn(m)],g},{});return Object.keys(p).sort(function(g,m){return p[g]-p[m]})}function gx(e){if(rn(e)===Sa)return[];var t=Wr(e);return[Hd(e),t,Hd(t)]}function mx(e){var t=e.state,n=e.options,s=e.name;if(!t.modifiersData[s]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,r=n.altAxis,a=r===void 0?!0:r,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,g=p===void 0?!0:p,m=n.allowedAutoPlacements,y=t.options.placement,x=rn(y),S=x===y,M=l||(S||!g?[Wr(y)]:gx(y)),C=[y].concat(M).reduce(function(xt,Pt){return xt.concat(rn(Pt)===Sa?px(t,{placement:Pt,boundary:u,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:m}):Pt)},[]),v=t.rects.reference,E=t.rects.popper,A=new Map,w=!0,k=C[0],$=0;$=0,H=Y?"width":"height",R=Ei(t,{placement:L,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),W=Y?X?ke:pe:X?Pe:fe;v[H]>E[H]&&(W=Wr(W));var U=Wr(W),it=[];if(o&&it.push(R[N]<=0),a&&it.push(R[W]<=0,R[U]<=0),it.every(function(xt){return xt})){k=L,w=!1;break}A.set(L,it)}if(w)for(var lt=g?3:1,pt=function(Pt){var wt=C.find(function(j){var et=A.get(j);if(et)return et.slice(0,Pt).every(function(J){return J})});if(wt)return k=wt,"break"},ft=lt;ft>0;ft--){var St=pt(ft);if(St==="break")break}t.placement!==k&&(t.modifiersData[s]._skip=!0,t.placement=k,t.reset=!0)}}const Jp={name:"flip",enabled:!0,phase:"main",fn:mx,requiresIfExists:["offset"],data:{_skip:!1}};function Wd(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function zd(e){return[fe,ke,Pe,pe].some(function(t){return e[t]>=0})}function _x(e){var t=e.state,n=e.name,s=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,r=Ei(t,{elementContext:"reference"}),a=Ei(t,{altBoundary:!0}),l=Wd(r,s),c=Wd(a,i,o),u=zd(l),d=zd(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const Zp={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:_x};function bx(e,t,n){var s=rn(e),i=[pe,fe].indexOf(s)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,r=o[0],a=o[1];return r=r||0,a=(a||0)*i,[pe,ke].indexOf(s)>=0?{x:a,y:r}:{x:r,y:a}}function yx(e){var t=e.state,n=e.options,s=e.name,i=n.offset,o=i===void 0?[0,0]:i,r=Fc.reduce(function(u,d){return u[d]=bx(d,t.rects,o),u},{}),a=r[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[s]=r}const tg={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:yx};function vx(e){var t=e.state,n=e.name;t.modifiersData[n]=Qp({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Gc={name:"popperOffsets",enabled:!0,phase:"read",fn:vx,data:{}};function xx(e){return e==="x"?"y":"x"}function wx(e){var t=e.state,n=e.options,s=e.name,i=n.mainAxis,o=i===void 0?!0:i,r=n.altAxis,a=r===void 0?!1:r,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,g=n.tetherOffset,m=g===void 0?0:g,y=Ei(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),x=rn(t.placement),S=wi(t.placement),M=!S,C=jc(x),v=xx(C),E=t.modifiersData.popperOffsets,A=t.rects.reference,w=t.rects.popper,k=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,$=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(E){if(o){var X,Y=C==="y"?fe:pe,H=C==="y"?Pe:ke,R=C==="y"?"height":"width",W=E[C],U=W+y[Y],it=W-y[H],lt=p?-w[R]/2:0,pt=S===Bs?A[R]:w[R],ft=S===Bs?-w[R]:-A[R],St=t.elements.arrow,xt=p&&St?Hc(St):{width:0,height:0},Pt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Kp(),wt=Pt[Y],j=Pt[H],et=ho(0,A[R],xt[R]),J=M?A[R]/2-lt-et-wt-$.mainAxis:pt-et-wt-$.mainAxis,ot=M?-A[R]/2+lt+et+j+$.mainAxis:ft+et+j+$.mainAxis,F=t.elements.arrow&&Ko(t.elements.arrow),T=F?C==="y"?F.clientTop||0:F.clientLeft||0:0,D=(X=L==null?void 0:L[C])!=null?X:0,I=W+J-D-T,V=W+ot-D,K=ho(p?Zr(U,I):U,W,p?Ds(it,V):it);E[C]=K,N[C]=K-W}if(a){var q,Z=C==="x"?fe:pe,Q=C==="x"?Pe:ke,B=E[v],G=v==="y"?"height":"width",at=B+y[Z],dt=B-y[Q],ct=[fe,pe].indexOf(x)!==-1,gt=(q=L==null?void 0:L[v])!=null?q:0,vt=ct?at:B-A[G]-w[G]-gt+$.altAxis,kt=ct?B+A[G]+w[G]-gt-$.altAxis:dt,$t=p&&ct?Z0(vt,B,kt):ho(p?vt:at,B,p?kt:dt);E[v]=$t,N[v]=$t-B}t.modifiersData[s]=N}}const eg={name:"preventOverflow",enabled:!0,phase:"main",fn:wx,requiresIfExists:["offset"]};function Ex(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Sx(e){return e===Oe(e)||!We(e)?Uc(e):Ex(e)}function Cx(e){var t=e.getBoundingClientRect(),n=vi(t.width)/e.offsetWidth||1,s=vi(t.height)/e.offsetHeight||1;return n!==1||s!==1}function Ax(e,t,n){n===void 0&&(n=!1);var s=We(t),i=We(t)&&Cx(t),o=os(t),r=xi(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(s||!s&&!n)&&((cn(t)!=="body"||Yc(o))&&(a=Sx(t)),We(t)?(l=xi(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Kc(o))),{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function Tx(e){var t=new Map,n=new Set,s=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var r=[].concat(o.requires||[],o.requiresIfExists||[]);r.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&i(l)}}),s.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),s}function Mx(e){var t=Tx(e);return Wp.reduce(function(n,s){return n.concat(t.filter(function(i){return i.phase===s}))},[])}function Px(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function kx(e){var t=e.reduce(function(n,s){var i=n[s.name];return n[s.name]=i?Object.assign({},i,s,{options:Object.assign({},i.options,s.options),data:Object.assign({},i.data,s.data)}):s,n},{});return Object.keys(t).map(function(n){return t[n]})}var Ud={placement:"bottom",modifiers:[],strategy:"absolute"};function Kd(){for(var e=arguments.length,t=new Array(e),n=0;nt in e?q0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var st=(e,t,n)=>(G0(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&s(r)}).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 s(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Rp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function X0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Q0(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function s(){return this instanceof s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var i=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(n,s,i.get?i:{enumerable:!0,get:function(){return e[s]}})}),n}var J0={exports:{}},ge="top",De="bottom",$e="right",me="left",Da="auto",Ui=[ge,De,$e,me],Ws="start",wi="end",Np="clippingParents",Vc="viewport",ui="popper",Fp="reference",Jl=Ui.reduce(function(e,t){return e.concat([t+"-"+Ws,t+"-"+wi])},[]),Hc=[].concat(Ui,[Da]).reduce(function(e,t){return e.concat([t,t+"-"+Ws,t+"-"+wi])},[]),Bp="beforeRead",Vp="read",Hp="afterRead",jp="beforeMain",Wp="main",zp="afterMain",Up="beforeWrite",Kp="write",Yp="afterWrite",qp=[Bp,Vp,Hp,jp,Wp,zp,Up,Kp,Yp];function hn(e){return e?(e.nodeName||"").toLowerCase():null}function Le(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function zs(e){var t=Le(e).Element;return e instanceof t||e instanceof Element}function Ue(e){var t=Le(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function jc(e){if(typeof ShadowRoot>"u")return!1;var t=Le(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Z0(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var s=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Ue(o)||!hn(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(r){var a=i[r];a===!1?o.removeAttribute(r):o.setAttribute(r,a===!0?"":a)}))})}function tx(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(s){var i=t.elements[s],o=t.attributes[s]||{},r=Object.keys(t.styles.hasOwnProperty(s)?t.styles[s]:n[s]),a=r.reduce(function(l,c){return l[c]="",l},{});!Ue(i)||!hn(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const Wc={name:"applyStyles",enabled:!0,phase:"write",fn:Z0,effect:tx,requires:["computeStyles"]};function cn(e){return e.split("-")[0]}var Rs=Math.max,aa=Math.min,Ei=Math.round;function Zl(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Gp(){return!/^((?!chrome|android).)*safari/i.test(Zl())}function Si(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var s=e.getBoundingClientRect(),i=1,o=1;t&&Ue(e)&&(i=e.offsetWidth>0&&Ei(s.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Ei(s.height)/e.offsetHeight||1);var r=zs(e)?Le(e):window,a=r.visualViewport,l=!Gp()&&n,c=(s.left+(l&&a?a.offsetLeft:0))/i,u=(s.top+(l&&a?a.offsetTop:0))/o,d=s.width/i,f=s.height/o;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function zc(e){var t=Si(e),n=e.offsetWidth,s=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-s)<=1&&(s=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:s}}function Xp(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&jc(n)){var s=t;do{if(s&&e.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function On(e){return Le(e).getComputedStyle(e)}function ex(e){return["table","td","th"].indexOf(hn(e))>=0}function us(e){return((zs(e)?e.ownerDocument:e.document)||window.document).documentElement}function $a(e){return hn(e)==="html"?e:e.assignedSlot||e.parentNode||(jc(e)?e.host:null)||us(e)}function Wd(e){return!Ue(e)||On(e).position==="fixed"?null:e.offsetParent}function nx(e){var t=/firefox/i.test(Zl()),n=/Trident/i.test(Zl());if(n&&Ue(e)){var s=On(e);if(s.position==="fixed")return null}var i=$a(e);for(jc(i)&&(i=i.host);Ue(i)&&["html","body"].indexOf(hn(i))<0;){var o=On(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Jo(e){for(var t=Le(e),n=Wd(e);n&&ex(n)&&On(n).position==="static";)n=Wd(n);return n&&(hn(n)==="html"||hn(n)==="body"&&On(n).position==="static")?t:n||nx(e)||t}function Uc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function bo(e,t,n){return Rs(e,aa(t,n))}function sx(e,t,n){var s=bo(e,t,n);return s>n?n:s}function Qp(){return{top:0,right:0,bottom:0,left:0}}function Jp(e){return Object.assign({},Qp(),e)}function Zp(e,t){return t.reduce(function(n,s){return n[s]=e,n},{})}var ix=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Jp(typeof t!="number"?t:Zp(t,Ui))};function ox(e){var t,n=e.state,s=e.name,i=e.options,o=n.elements.arrow,r=n.modifiersData.popperOffsets,a=cn(n.placement),l=Uc(a),c=[me,$e].indexOf(a)>=0,u=c?"height":"width";if(!(!o||!r)){var d=ix(i.padding,n),f=zc(o),p=l==="y"?ge:me,m=l==="y"?De:$e,_=n.rects.reference[u]+n.rects.reference[l]-r[l]-n.rects.popper[u],y=r[l]-n.rects.reference[l],x=Jo(o),S=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,P=_/2-y/2,C=d[p],v=S-f[u]-d[m],E=S/2-f[u]/2+P,A=bo(C,E,v),w=l;n.modifiersData[s]=(t={},t[w]=A,t.centerOffset=A-E,t)}}function rx(e){var t=e.state,n=e.options,s=n.element,i=s===void 0?"[data-popper-arrow]":s;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Xp(t.elements.popper,i)&&(t.elements.arrow=i))}const tg={name:"arrow",enabled:!0,phase:"main",fn:ox,effect:rx,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ci(e){return e.split("-")[1]}var ax={top:"auto",right:"auto",bottom:"auto",left:"auto"};function lx(e,t){var n=e.x,s=e.y,i=t.devicePixelRatio||1;return{x:Ei(n*i)/i||0,y:Ei(s*i)/i||0}}function zd(e){var t,n=e.popper,s=e.popperRect,i=e.placement,o=e.variation,r=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=r.x,p=f===void 0?0:f,m=r.y,_=m===void 0?0:m,y=typeof u=="function"?u({x:p,y:_}):{x:p,y:_};p=y.x,_=y.y;var x=r.hasOwnProperty("x"),S=r.hasOwnProperty("y"),P=me,C=ge,v=window;if(c){var E=Jo(n),A="clientHeight",w="clientWidth";if(E===Le(n)&&(E=us(n),On(E).position!=="static"&&a==="absolute"&&(A="scrollHeight",w="scrollWidth")),E=E,i===ge||(i===me||i===$e)&&o===wi){C=De;var k=d&&E===v&&v.visualViewport?v.visualViewport.height:E[A];_-=k-s.height,_*=l?1:-1}if(i===me||(i===ge||i===De)&&o===wi){P=$e;var $=d&&E===v&&v.visualViewport?v.visualViewport.width:E[w];p-=$-s.width,p*=l?1:-1}}var L=Object.assign({position:a},c&&ax),N=u===!0?lx({x:p,y:_},Le(n)):{x:p,y:_};if(p=N.x,_=N.y,l){var X;return Object.assign({},L,(X={},X[C]=S?"0":"",X[P]=x?"0":"",X.transform=(v.devicePixelRatio||1)<=1?"translate("+p+"px, "+_+"px)":"translate3d("+p+"px, "+_+"px, 0)",X))}return Object.assign({},L,(t={},t[C]=S?_+"px":"",t[P]=x?p+"px":"",t.transform="",t))}function cx(e){var t=e.state,n=e.options,s=n.gpuAcceleration,i=s===void 0?!0:s,o=n.adaptive,r=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:cn(t.placement),variation:Ci(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,zd(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,zd(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Kc={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:cx,data:{}};var Sr={passive:!0};function ux(e){var t=e.state,n=e.instance,s=e.options,i=s.scroll,o=i===void 0?!0:i,r=s.resize,a=r===void 0?!0:r,l=Le(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,Sr)}),a&&l.addEventListener("resize",n.update,Sr),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Sr)}),a&&l.removeEventListener("resize",n.update,Sr)}}const Yc={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ux,data:{}};var dx={left:"right",right:"left",bottom:"top",top:"bottom"};function Qr(e){return e.replace(/left|right|bottom|top/g,function(t){return dx[t]})}var hx={start:"end",end:"start"};function Ud(e){return e.replace(/start|end/g,function(t){return hx[t]})}function qc(e){var t=Le(e),n=t.pageXOffset,s=t.pageYOffset;return{scrollLeft:n,scrollTop:s}}function Gc(e){return Si(us(e)).left+qc(e).scrollLeft}function fx(e,t){var n=Le(e),s=us(e),i=n.visualViewport,o=s.clientWidth,r=s.clientHeight,a=0,l=0;if(i){o=i.width,r=i.height;var c=Gp();(c||!c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:r,x:a+Gc(e),y:l}}function px(e){var t,n=us(e),s=qc(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Rs(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),r=Rs(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-s.scrollLeft+Gc(e),l=-s.scrollTop;return On(i||n).direction==="rtl"&&(a+=Rs(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}function Xc(e){var t=On(e),n=t.overflow,s=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+s)}function eg(e){return["html","body","#document"].indexOf(hn(e))>=0?e.ownerDocument.body:Ue(e)&&Xc(e)?e:eg($a(e))}function yo(e,t){var n;t===void 0&&(t=[]);var s=eg(e),i=s===((n=e.ownerDocument)==null?void 0:n.body),o=Le(s),r=i?[o].concat(o.visualViewport||[],Xc(s)?s:[]):s,a=t.concat(r);return i?a:a.concat(yo($a(r)))}function tc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function gx(e,t){var n=Si(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Kd(e,t,n){return t===Vc?tc(fx(e,n)):zs(t)?gx(t,n):tc(px(us(e)))}function mx(e){var t=yo($a(e)),n=["absolute","fixed"].indexOf(On(e).position)>=0,s=n&&Ue(e)?Jo(e):e;return zs(s)?t.filter(function(i){return zs(i)&&Xp(i,s)&&hn(i)!=="body"}):[]}function _x(e,t,n,s){var i=t==="clippingParents"?mx(e):[].concat(t),o=[].concat(i,[n]),r=o[0],a=o.reduce(function(l,c){var u=Kd(e,c,s);return l.top=Rs(u.top,l.top),l.right=aa(u.right,l.right),l.bottom=aa(u.bottom,l.bottom),l.left=Rs(u.left,l.left),l},Kd(e,r,s));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ng(e){var t=e.reference,n=e.element,s=e.placement,i=s?cn(s):null,o=s?Ci(s):null,r=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case ge:l={x:r,y:t.y-n.height};break;case De:l={x:r,y:t.y+t.height};break;case $e:l={x:t.x+t.width,y:a};break;case me:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=i?Uc(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case Ws:l[c]=l[c]-(t[u]/2-n[u]/2);break;case wi:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Ai(e,t){t===void 0&&(t={});var n=t,s=n.placement,i=s===void 0?e.placement:s,o=n.strategy,r=o===void 0?e.strategy:o,a=n.boundary,l=a===void 0?Np:a,c=n.rootBoundary,u=c===void 0?Vc:c,d=n.elementContext,f=d===void 0?ui:d,p=n.altBoundary,m=p===void 0?!1:p,_=n.padding,y=_===void 0?0:_,x=Jp(typeof y!="number"?y:Zp(y,Ui)),S=f===ui?Fp:ui,P=e.rects.popper,C=e.elements[m?S:f],v=_x(zs(C)?C:C.contextElement||us(e.elements.popper),l,u,r),E=Si(e.elements.reference),A=ng({reference:E,element:P,strategy:"absolute",placement:i}),w=tc(Object.assign({},P,A)),k=f===ui?w:E,$={top:v.top-k.top+x.top,bottom:k.bottom-v.bottom+x.bottom,left:v.left-k.left+x.left,right:k.right-v.right+x.right},L=e.modifiersData.offset;if(f===ui&&L){var N=L[i];Object.keys($).forEach(function(X){var Y=[$e,De].indexOf(X)>=0?1:-1,H=[ge,De].indexOf(X)>=0?"y":"x";$[X]+=N[H]*Y})}return $}function bx(e,t){t===void 0&&(t={});var n=t,s=n.placement,i=n.boundary,o=n.rootBoundary,r=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Hc:l,u=Ci(s),d=u?a?Jl:Jl.filter(function(m){return Ci(m)===u}):Ui,f=d.filter(function(m){return c.indexOf(m)>=0});f.length===0&&(f=d);var p=f.reduce(function(m,_){return m[_]=Ai(e,{placement:_,boundary:i,rootBoundary:o,padding:r})[cn(_)],m},{});return Object.keys(p).sort(function(m,_){return p[m]-p[_]})}function yx(e){if(cn(e)===Da)return[];var t=Qr(e);return[Ud(e),t,Ud(t)]}function vx(e){var t=e.state,n=e.options,s=e.name;if(!t.modifiersData[s]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,r=n.altAxis,a=r===void 0?!0:r,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,_=n.allowedAutoPlacements,y=t.options.placement,x=cn(y),S=x===y,P=l||(S||!m?[Qr(y)]:yx(y)),C=[y].concat(P).reduce(function(wt,Mt){return wt.concat(cn(Mt)===Da?bx(t,{placement:Mt,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:_}):Mt)},[]),v=t.rects.reference,E=t.rects.popper,A=new Map,w=!0,k=C[0],$=0;$=0,H=Y?"width":"height",R=Ai(t,{placement:L,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),W=Y?X?$e:me:X?De:ge;v[H]>E[H]&&(W=Qr(W));var U=Qr(W),it=[];if(o&&it.push(R[N]<=0),a&&it.push(R[W]<=0,R[U]<=0),it.every(function(wt){return wt})){k=L,w=!1;break}A.set(L,it)}if(w)for(var lt=m?3:1,pt=function(Mt){var Et=C.find(function(j){var et=A.get(j);if(et)return et.slice(0,Mt).every(function(J){return J})});if(Et)return k=Et,"break"},ft=lt;ft>0;ft--){var At=pt(ft);if(At==="break")break}t.placement!==k&&(t.modifiersData[s]._skip=!0,t.placement=k,t.reset=!0)}}const sg={name:"flip",enabled:!0,phase:"main",fn:vx,requiresIfExists:["offset"],data:{_skip:!1}};function Yd(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function qd(e){return[ge,$e,De,me].some(function(t){return e[t]>=0})}function xx(e){var t=e.state,n=e.name,s=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,r=Ai(t,{elementContext:"reference"}),a=Ai(t,{altBoundary:!0}),l=Yd(r,s),c=Yd(a,i,o),u=qd(l),d=qd(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const ig={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:xx};function wx(e,t,n){var s=cn(e),i=[me,ge].indexOf(s)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,r=o[0],a=o[1];return r=r||0,a=(a||0)*i,[me,$e].indexOf(s)>=0?{x:a,y:r}:{x:r,y:a}}function Ex(e){var t=e.state,n=e.options,s=e.name,i=n.offset,o=i===void 0?[0,0]:i,r=Hc.reduce(function(u,d){return u[d]=wx(d,t.rects,o),u},{}),a=r[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[s]=r}const og={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ex};function Sx(e){var t=e.state,n=e.name;t.modifiersData[n]=ng({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Qc={name:"popperOffsets",enabled:!0,phase:"read",fn:Sx,data:{}};function Cx(e){return e==="x"?"y":"x"}function Ax(e){var t=e.state,n=e.options,s=e.name,i=n.mainAxis,o=i===void 0?!0:i,r=n.altAxis,a=r===void 0?!1:r,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,_=m===void 0?0:m,y=Ai(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),x=cn(t.placement),S=Ci(t.placement),P=!S,C=Uc(x),v=Cx(C),E=t.modifiersData.popperOffsets,A=t.rects.reference,w=t.rects.popper,k=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,$=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(E){if(o){var X,Y=C==="y"?ge:me,H=C==="y"?De:$e,R=C==="y"?"height":"width",W=E[C],U=W+y[Y],it=W-y[H],lt=p?-w[R]/2:0,pt=S===Ws?A[R]:w[R],ft=S===Ws?-w[R]:-A[R],At=t.elements.arrow,wt=p&&At?zc(At):{width:0,height:0},Mt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Qp(),Et=Mt[Y],j=Mt[H],et=bo(0,A[R],wt[R]),J=P?A[R]/2-lt-et-Et-$.mainAxis:pt-et-Et-$.mainAxis,rt=P?-A[R]/2+lt+et+j+$.mainAxis:ft+et+j+$.mainAxis,F=t.elements.arrow&&Jo(t.elements.arrow),T=F?C==="y"?F.clientTop||0:F.clientLeft||0:0,D=(X=L==null?void 0:L[C])!=null?X:0,I=W+J-D-T,V=W+rt-D,K=bo(p?aa(U,I):U,W,p?Rs(it,V):it);E[C]=K,N[C]=K-W}if(a){var G,Z=C==="x"?ge:me,Q=C==="x"?De:$e,B=E[v],q=v==="y"?"height":"width",at=B+y[Z],ht=B-y[Q],ut=[ge,me].indexOf(x)!==-1,gt=(G=L==null?void 0:L[v])!=null?G:0,vt=ut?at:B-A[q]-w[q]-gt+$.altAxis,Dt=ut?B+A[q]+w[q]-gt-$.altAxis:ht,It=p&&ut?sx(vt,B,Dt):bo(p?vt:at,B,p?Dt:ht);E[v]=It,N[v]=It-B}t.modifiersData[s]=N}}const rg={name:"preventOverflow",enabled:!0,phase:"main",fn:Ax,requiresIfExists:["offset"]};function Tx(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Px(e){return e===Le(e)||!Ue(e)?qc(e):Tx(e)}function Mx(e){var t=e.getBoundingClientRect(),n=Ei(t.width)/e.offsetWidth||1,s=Ei(t.height)/e.offsetHeight||1;return n!==1||s!==1}function kx(e,t,n){n===void 0&&(n=!1);var s=Ue(t),i=Ue(t)&&Mx(t),o=us(t),r=Si(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(s||!s&&!n)&&((hn(t)!=="body"||Xc(o))&&(a=Px(t)),Ue(t)?(l=Si(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Gc(o))),{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function Ox(e){var t=new Map,n=new Set,s=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var r=[].concat(o.requires||[],o.requiresIfExists||[]);r.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&i(l)}}),s.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),s}function Dx(e){var t=Ox(e);return qp.reduce(function(n,s){return n.concat(t.filter(function(i){return i.phase===s}))},[])}function $x(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Lx(e){var t=e.reduce(function(n,s){var i=n[s.name];return n[s.name]=i?Object.assign({},i,s,{options:Object.assign({},i.options,s.options),data:Object.assign({},i.data,s.data)}):s,n},{});return Object.keys(t).map(function(n){return t[n]})}var Gd={placement:"bottom",modifiers:[],strategy:"absolute"};function Xd(){for(var e=arguments.length,t=new Array(e),n=0;nP[_]})}}return h.default=P,Object.freeze(h)}const i=s(n),o=new Map,r={set(P,h,_){o.has(P)||o.set(P,new Map);const O=o.get(P);if(!O.has(h)&&O.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(O.keys())[0]}.`);return}O.set(h,_)},get(P,h){return o.has(P)&&o.get(P).get(h)||null},remove(P,h){if(!o.has(P))return;const _=o.get(P);_.delete(h),_.size===0&&o.delete(P)}},a=1e6,l=1e3,c="transitionend",u=P=>(P&&window.CSS&&window.CSS.escape&&(P=P.replace(/#([^\s"#']+)/g,(h,_)=>`#${CSS.escape(_)}`)),P),d=P=>P==null?`${P}`:Object.prototype.toString.call(P).match(/\s([a-z]+)/i)[1].toLowerCase(),f=P=>{do P+=Math.floor(Math.random()*a);while(document.getElementById(P));return P},p=P=>{if(!P)return 0;let{transitionDuration:h,transitionDelay:_}=window.getComputedStyle(P);const O=Number.parseFloat(h),z=Number.parseFloat(_);return!O&&!z?0:(h=h.split(",")[0],_=_.split(",")[0],(Number.parseFloat(h)+Number.parseFloat(_))*l)},g=P=>{P.dispatchEvent(new Event(c))},m=P=>!P||typeof P!="object"?!1:(typeof P.jquery<"u"&&(P=P[0]),typeof P.nodeType<"u"),y=P=>m(P)?P.jquery?P[0]:P:typeof P=="string"&&P.length>0?document.querySelector(u(P)):null,x=P=>{if(!m(P)||P.getClientRects().length===0)return!1;const h=getComputedStyle(P).getPropertyValue("visibility")==="visible",_=P.closest("details:not([open])");if(!_)return h;if(_!==P){const O=P.closest("summary");if(O&&O.parentNode!==_||O===null)return!1}return h},S=P=>!P||P.nodeType!==Node.ELEMENT_NODE||P.classList.contains("disabled")?!0:typeof P.disabled<"u"?P.disabled:P.hasAttribute("disabled")&&P.getAttribute("disabled")!=="false",M=P=>{if(!document.documentElement.attachShadow)return null;if(typeof P.getRootNode=="function"){const h=P.getRootNode();return h instanceof ShadowRoot?h:null}return P instanceof ShadowRoot?P:P.parentNode?M(P.parentNode):null},C=()=>{},v=P=>{P.offsetHeight},E=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,A=[],w=P=>{document.readyState==="loading"?(A.length||document.addEventListener("DOMContentLoaded",()=>{for(const h of A)h()}),A.push(P)):P()},k=()=>document.documentElement.dir==="rtl",$=P=>{w(()=>{const h=E();if(h){const _=P.NAME,O=h.fn[_];h.fn[_]=P.jQueryInterface,h.fn[_].Constructor=P,h.fn[_].noConflict=()=>(h.fn[_]=O,P.jQueryInterface)}})},L=(P,h=[],_=P)=>typeof P=="function"?P(...h):_,N=(P,h,_=!0)=>{if(!_){L(P);return}const z=p(h)+5;let nt=!1;const tt=({target:Et})=>{Et===h&&(nt=!0,h.removeEventListener(c,tt),L(P))};h.addEventListener(c,tt),setTimeout(()=>{nt||g(h)},z)},X=(P,h,_,O)=>{const z=P.length;let nt=P.indexOf(h);return nt===-1?!_&&O?P[z-1]:P[0]:(nt+=_?1:-1,O&&(nt=(nt+z)%z),P[Math.max(0,Math.min(nt,z-1))])},Y=/[^.]*(?=\..*)\.|.*/,H=/\..*/,R=/::\d+$/,W={};let U=1;const it={mouseenter:"mouseover",mouseleave:"mouseout"},lt=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function pt(P,h){return h&&`${h}::${U++}`||P.uidEvent||U++}function ft(P){const h=pt(P);return P.uidEvent=h,W[h]=W[h]||{},W[h]}function St(P,h){return function _(O){return T(O,{delegateTarget:P}),_.oneOff&&F.off(P,O.type,h),h.apply(P,[O])}}function xt(P,h,_){return function O(z){const nt=P.querySelectorAll(h);for(let{target:tt}=z;tt&&tt!==this;tt=tt.parentNode)for(const Et of nt)if(Et===tt)return T(z,{delegateTarget:tt}),O.oneOff&&F.off(P,z.type,h,_),_.apply(tt,[z])}}function Pt(P,h,_=null){return Object.values(P).find(O=>O.callable===h&&O.delegationSelector===_)}function wt(P,h,_){const O=typeof h=="string",z=O?_:h||_;let nt=ot(P);return lt.has(nt)||(nt=P),[O,z,nt]}function j(P,h,_,O,z){if(typeof h!="string"||!P)return;let[nt,tt,Et]=wt(h,_,O);h in it&&(tt=(W0=>function(ei){if(!ei.relatedTarget||ei.relatedTarget!==ei.delegateTarget&&!ei.delegateTarget.contains(ei.relatedTarget))return W0.call(this,ei)})(tt));const _e=ft(P),Re=_e[Et]||(_e[Et]={}),ie=Pt(Re,tt,nt?_:null);if(ie){ie.oneOff=ie.oneOff&&z;return}const Je=pt(tt,h.replace(Y,"")),Ye=nt?xt(P,_,tt):St(P,tt);Ye.delegationSelector=nt?_:null,Ye.callable=tt,Ye.oneOff=z,Ye.uidEvent=Je,Re[Je]=Ye,P.addEventListener(Et,Ye,nt)}function et(P,h,_,O,z){const nt=Pt(h[_],O,z);nt&&(P.removeEventListener(_,nt,!!z),delete h[_][nt.uidEvent])}function J(P,h,_,O){const z=h[_]||{};for(const[nt,tt]of Object.entries(z))nt.includes(O)&&et(P,h,_,tt.callable,tt.delegationSelector)}function ot(P){return P=P.replace(H,""),it[P]||P}const F={on(P,h,_,O){j(P,h,_,O,!1)},one(P,h,_,O){j(P,h,_,O,!0)},off(P,h,_,O){if(typeof h!="string"||!P)return;const[z,nt,tt]=wt(h,_,O),Et=tt!==h,_e=ft(P),Re=_e[tt]||{},ie=h.startsWith(".");if(typeof nt<"u"){if(!Object.keys(Re).length)return;et(P,_e,tt,nt,z?_:null);return}if(ie)for(const Je of Object.keys(_e))J(P,_e,Je,h.slice(1));for(const[Je,Ye]of Object.entries(Re)){const mr=Je.replace(R,"");(!Et||h.includes(mr))&&et(P,_e,tt,Ye.callable,Ye.delegationSelector)}},trigger(P,h,_){if(typeof h!="string"||!P)return null;const O=E(),z=ot(h),nt=h!==z;let tt=null,Et=!0,_e=!0,Re=!1;nt&&O&&(tt=O.Event(h,_),O(P).trigger(tt),Et=!tt.isPropagationStopped(),_e=!tt.isImmediatePropagationStopped(),Re=tt.isDefaultPrevented());const ie=T(new Event(h,{bubbles:Et,cancelable:!0}),_);return Re&&ie.preventDefault(),_e&&P.dispatchEvent(ie),ie.defaultPrevented&&tt&&tt.preventDefault(),ie}};function T(P,h={}){for(const[_,O]of Object.entries(h))try{P[_]=O}catch{Object.defineProperty(P,_,{configurable:!0,get(){return O}})}return P}function D(P){if(P==="true")return!0;if(P==="false")return!1;if(P===Number(P).toString())return Number(P);if(P===""||P==="null")return null;if(typeof P!="string")return P;try{return JSON.parse(decodeURIComponent(P))}catch{return P}}function I(P){return P.replace(/[A-Z]/g,h=>`-${h.toLowerCase()}`)}const V={setDataAttribute(P,h,_){P.setAttribute(`data-bs-${I(h)}`,_)},removeDataAttribute(P,h){P.removeAttribute(`data-bs-${I(h)}`)},getDataAttributes(P){if(!P)return{};const h={},_=Object.keys(P.dataset).filter(O=>O.startsWith("bs")&&!O.startsWith("bsConfig"));for(const O of _){let z=O.replace(/^bs/,"");z=z.charAt(0).toLowerCase()+z.slice(1,z.length),h[z]=D(P.dataset[O])}return h},getDataAttribute(P,h){return D(P.getAttribute(`data-bs-${I(h)}`))}};class K{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(h){return h=this._mergeConfigObj(h),h=this._configAfterMerge(h),this._typeCheckConfig(h),h}_configAfterMerge(h){return h}_mergeConfigObj(h,_){const O=m(_)?V.getDataAttribute(_,"config"):{};return{...this.constructor.Default,...typeof O=="object"?O:{},...m(_)?V.getDataAttributes(_):{},...typeof h=="object"?h:{}}}_typeCheckConfig(h,_=this.constructor.DefaultType){for(const[O,z]of Object.entries(_)){const nt=h[O],tt=m(nt)?"element":d(nt);if(!new RegExp(z).test(tt))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${O}" provided type "${tt}" but expected type "${z}".`)}}}const q="5.3.2";class Z extends K{constructor(h,_){super(),h=y(h),h&&(this._element=h,this._config=this._getConfig(_),r.set(this._element,this.constructor.DATA_KEY,this))}dispose(){r.remove(this._element,this.constructor.DATA_KEY),F.off(this._element,this.constructor.EVENT_KEY);for(const h of Object.getOwnPropertyNames(this))this[h]=null}_queueCallback(h,_,O=!0){N(h,_,O)}_getConfig(h){return h=this._mergeConfigObj(h,this._element),h=this._configAfterMerge(h),this._typeCheckConfig(h),h}static getInstance(h){return r.get(y(h),this.DATA_KEY)}static getOrCreateInstance(h,_={}){return this.getInstance(h)||new this(h,typeof _=="object"?_:null)}static get VERSION(){return q}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(h){return`${h}${this.EVENT_KEY}`}}const Q=P=>{let h=P.getAttribute("data-bs-target");if(!h||h==="#"){let _=P.getAttribute("href");if(!_||!_.includes("#")&&!_.startsWith("."))return null;_.includes("#")&&!_.startsWith("#")&&(_=`#${_.split("#")[1]}`),h=_&&_!=="#"?u(_.trim()):null}return h},B={find(P,h=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(h,P))},findOne(P,h=document.documentElement){return Element.prototype.querySelector.call(h,P)},children(P,h){return[].concat(...P.children).filter(_=>_.matches(h))},parents(P,h){const _=[];let O=P.parentNode.closest(h);for(;O;)_.push(O),O=O.parentNode.closest(h);return _},prev(P,h){let _=P.previousElementSibling;for(;_;){if(_.matches(h))return[_];_=_.previousElementSibling}return[]},next(P,h){let _=P.nextElementSibling;for(;_;){if(_.matches(h))return[_];_=_.nextElementSibling}return[]},focusableChildren(P){const h=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(_=>`${_}:not([tabindex^="-"])`).join(",");return this.find(h,P).filter(_=>!S(_)&&x(_))},getSelectorFromElement(P){const h=Q(P);return h&&B.findOne(h)?h:null},getElementFromSelector(P){const h=Q(P);return h?B.findOne(h):null},getMultipleElementsFromSelector(P){const h=Q(P);return h?B.find(h):[]}},G=(P,h="hide")=>{const _=`click.dismiss${P.EVENT_KEY}`,O=P.NAME;F.on(document,_,`[data-bs-dismiss="${O}"]`,function(z){if(["A","AREA"].includes(this.tagName)&&z.preventDefault(),S(this))return;const nt=B.getElementFromSelector(this)||this.closest(`.${O}`);P.getOrCreateInstance(nt)[h]()})},at="alert",ct=".bs.alert",gt=`close${ct}`,vt=`closed${ct}`,kt="fade",$t="show";class zt extends Z{static get NAME(){return at}close(){if(F.trigger(this._element,gt).defaultPrevented)return;this._element.classList.remove($t);const _=this._element.classList.contains(kt);this._queueCallback(()=>this._destroyElement(),this._element,_)}_destroyElement(){this._element.remove(),F.trigger(this._element,vt),this.dispose()}static jQueryInterface(h){return this.each(function(){const _=zt.getOrCreateInstance(this);if(typeof h=="string"){if(_[h]===void 0||h.startsWith("_")||h==="constructor")throw new TypeError(`No method named "${h}"`);_[h](this)}})}}G(zt,"close"),$(zt);const Ee="button",sr=".bs.button",ds=".data-api",ir="active",ae='[data-bs-toggle="button"]',Le=`click${sr}${ds}`;class Dn extends Z{static get NAME(){return Ee}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(ir))}static jQueryInterface(h){return this.each(function(){const _=Dn.getOrCreateInstance(this);h==="toggle"&&_[h]()})}}F.on(document,Le,ae,P=>{P.preventDefault();const h=P.target.closest(ae);Dn.getOrCreateInstance(h).toggle()}),$(Dn);const fb="swipe",Ys=".bs.swipe",pb=`touchstart${Ys}`,gb=`touchmove${Ys}`,mb=`touchend${Ys}`,_b=`pointerdown${Ys}`,bb=`pointerup${Ys}`,yb="touch",vb="pen",xb="pointer-event",wb=40,Eb={endCallback:null,leftCallback:null,rightCallback:null},Sb={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class or extends K{constructor(h,_){super(),this._element=h,!(!h||!or.isSupported())&&(this._config=this._getConfig(_),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Eb}static get DefaultType(){return Sb}static get NAME(){return fb}dispose(){F.off(this._element,Ys)}_start(h){if(!this._supportPointerEvents){this._deltaX=h.touches[0].clientX;return}this._eventIsPointerPenTouch(h)&&(this._deltaX=h.clientX)}_end(h){this._eventIsPointerPenTouch(h)&&(this._deltaX=h.clientX-this._deltaX),this._handleSwipe(),L(this._config.endCallback)}_move(h){this._deltaX=h.touches&&h.touches.length>1?0:h.touches[0].clientX-this._deltaX}_handleSwipe(){const h=Math.abs(this._deltaX);if(h<=wb)return;const _=h/this._deltaX;this._deltaX=0,_&&L(_>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(F.on(this._element,_b,h=>this._start(h)),F.on(this._element,bb,h=>this._end(h)),this._element.classList.add(xb)):(F.on(this._element,pb,h=>this._start(h)),F.on(this._element,gb,h=>this._move(h)),F.on(this._element,mb,h=>this._end(h)))}_eventIsPointerPenTouch(h){return this._supportPointerEvents&&(h.pointerType===vb||h.pointerType===yb)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Cb="carousel",$n=".bs.carousel",Ju=".data-api",Ab="ArrowLeft",Tb="ArrowRight",Mb=500,Yi="next",Gs="prev",qs="left",rr="right",Pb=`slide${$n}`,sl=`slid${$n}`,kb=`keydown${$n}`,Ob=`mouseenter${$n}`,Db=`mouseleave${$n}`,$b=`dragstart${$n}`,Lb=`load${$n}${Ju}`,Ib=`click${$n}${Ju}`,Zu="carousel",ar="active",Rb="slide",Nb="carousel-item-end",Fb="carousel-item-start",Bb="carousel-item-next",Vb="carousel-item-prev",td=".active",ed=".carousel-item",Hb=td+ed,jb=".carousel-item img",Wb=".carousel-indicators",zb="[data-bs-slide], [data-bs-slide-to]",Ub='[data-bs-ride="carousel"]',Kb={[Ab]:rr,[Tb]:qs},Yb={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Gb={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Xs extends Z{constructor(h,_){super(h,_),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=B.findOne(Wb,this._element),this._addEventListeners(),this._config.ride===Zu&&this.cycle()}static get Default(){return Yb}static get DefaultType(){return Gb}static get NAME(){return Cb}next(){this._slide(Yi)}nextWhenVisible(){!document.hidden&&x(this._element)&&this.next()}prev(){this._slide(Gs)}pause(){this._isSliding&&g(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){F.one(this._element,sl,()=>this.cycle());return}this.cycle()}}to(h){const _=this._getItems();if(h>_.length-1||h<0)return;if(this._isSliding){F.one(this._element,sl,()=>this.to(h));return}const O=this._getItemIndex(this._getActive());if(O===h)return;const z=h>O?Yi:Gs;this._slide(z,_[h])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(h){return h.defaultInterval=h.interval,h}_addEventListeners(){this._config.keyboard&&F.on(this._element,kb,h=>this._keydown(h)),this._config.pause==="hover"&&(F.on(this._element,Ob,()=>this.pause()),F.on(this._element,Db,()=>this._maybeEnableCycle())),this._config.touch&&or.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const O of B.find(jb,this._element))F.on(O,$b,z=>z.preventDefault());const _={leftCallback:()=>this._slide(this._directionToOrder(qs)),rightCallback:()=>this._slide(this._directionToOrder(rr)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),Mb+this._config.interval))}};this._swipeHelper=new or(this._element,_)}_keydown(h){if(/input|textarea/i.test(h.target.tagName))return;const _=Kb[h.key];_&&(h.preventDefault(),this._slide(this._directionToOrder(_)))}_getItemIndex(h){return this._getItems().indexOf(h)}_setActiveIndicatorElement(h){if(!this._indicatorsElement)return;const _=B.findOne(td,this._indicatorsElement);_.classList.remove(ar),_.removeAttribute("aria-current");const O=B.findOne(`[data-bs-slide-to="${h}"]`,this._indicatorsElement);O&&(O.classList.add(ar),O.setAttribute("aria-current","true"))}_updateInterval(){const h=this._activeElement||this._getActive();if(!h)return;const _=Number.parseInt(h.getAttribute("data-bs-interval"),10);this._config.interval=_||this._config.defaultInterval}_slide(h,_=null){if(this._isSliding)return;const O=this._getActive(),z=h===Yi,nt=_||X(this._getItems(),O,z,this._config.wrap);if(nt===O)return;const tt=this._getItemIndex(nt),Et=mr=>F.trigger(this._element,mr,{relatedTarget:nt,direction:this._orderToDirection(h),from:this._getItemIndex(O),to:tt});if(Et(Pb).defaultPrevented||!O||!nt)return;const Re=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(tt),this._activeElement=nt;const ie=z?Fb:Nb,Je=z?Bb:Vb;nt.classList.add(Je),v(nt),O.classList.add(ie),nt.classList.add(ie);const Ye=()=>{nt.classList.remove(ie,Je),nt.classList.add(ar),O.classList.remove(ar,Je,ie),this._isSliding=!1,Et(sl)};this._queueCallback(Ye,O,this._isAnimated()),Re&&this.cycle()}_isAnimated(){return this._element.classList.contains(Rb)}_getActive(){return B.findOne(Hb,this._element)}_getItems(){return B.find(ed,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(h){return k()?h===qs?Gs:Yi:h===qs?Yi:Gs}_orderToDirection(h){return k()?h===Gs?qs:rr:h===Gs?rr:qs}static jQueryInterface(h){return this.each(function(){const _=Xs.getOrCreateInstance(this,h);if(typeof h=="number"){_.to(h);return}if(typeof h=="string"){if(_[h]===void 0||h.startsWith("_")||h==="constructor")throw new TypeError(`No method named "${h}"`);_[h]()}})}}F.on(document,Ib,zb,function(P){const h=B.getElementFromSelector(this);if(!h||!h.classList.contains(Zu))return;P.preventDefault();const _=Xs.getOrCreateInstance(h),O=this.getAttribute("data-bs-slide-to");if(O){_.to(O),_._maybeEnableCycle();return}if(V.getDataAttribute(this,"slide")==="next"){_.next(),_._maybeEnableCycle();return}_.prev(),_._maybeEnableCycle()}),F.on(window,Lb,()=>{const P=B.find(Ub);for(const h of P)Xs.getOrCreateInstance(h)}),$(Xs);const qb="collapse",Gi=".bs.collapse",Xb=".data-api",Qb=`show${Gi}`,Jb=`shown${Gi}`,Zb=`hide${Gi}`,ty=`hidden${Gi}`,ey=`click${Gi}${Xb}`,il="show",Qs="collapse",lr="collapsing",ny="collapsed",sy=`:scope .${Qs} .${Qs}`,iy="collapse-horizontal",oy="width",ry="height",ay=".collapse.show, .collapse.collapsing",ol='[data-bs-toggle="collapse"]',ly={parent:null,toggle:!0},cy={parent:"(null|element)",toggle:"boolean"};class Js extends Z{constructor(h,_){super(h,_),this._isTransitioning=!1,this._triggerArray=[];const O=B.find(ol);for(const z of O){const nt=B.getSelectorFromElement(z),tt=B.find(nt).filter(Et=>Et===this._element);nt!==null&&tt.length&&this._triggerArray.push(z)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return ly}static get DefaultType(){return cy}static get NAME(){return qb}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let h=[];if(this._config.parent&&(h=this._getFirstLevelChildren(ay).filter(Et=>Et!==this._element).map(Et=>Js.getOrCreateInstance(Et,{toggle:!1}))),h.length&&h[0]._isTransitioning||F.trigger(this._element,Qb).defaultPrevented)return;for(const Et of h)Et.hide();const O=this._getDimension();this._element.classList.remove(Qs),this._element.classList.add(lr),this._element.style[O]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const z=()=>{this._isTransitioning=!1,this._element.classList.remove(lr),this._element.classList.add(Qs,il),this._element.style[O]="",F.trigger(this._element,Jb)},tt=`scroll${O[0].toUpperCase()+O.slice(1)}`;this._queueCallback(z,this._element,!0),this._element.style[O]=`${this._element[tt]}px`}hide(){if(this._isTransitioning||!this._isShown()||F.trigger(this._element,Zb).defaultPrevented)return;const _=this._getDimension();this._element.style[_]=`${this._element.getBoundingClientRect()[_]}px`,v(this._element),this._element.classList.add(lr),this._element.classList.remove(Qs,il);for(const z of this._triggerArray){const nt=B.getElementFromSelector(z);nt&&!this._isShown(nt)&&this._addAriaAndCollapsedClass([z],!1)}this._isTransitioning=!0;const O=()=>{this._isTransitioning=!1,this._element.classList.remove(lr),this._element.classList.add(Qs),F.trigger(this._element,ty)};this._element.style[_]="",this._queueCallback(O,this._element,!0)}_isShown(h=this._element){return h.classList.contains(il)}_configAfterMerge(h){return h.toggle=!!h.toggle,h.parent=y(h.parent),h}_getDimension(){return this._element.classList.contains(iy)?oy:ry}_initializeChildren(){if(!this._config.parent)return;const h=this._getFirstLevelChildren(ol);for(const _ of h){const O=B.getElementFromSelector(_);O&&this._addAriaAndCollapsedClass([_],this._isShown(O))}}_getFirstLevelChildren(h){const _=B.find(sy,this._config.parent);return B.find(h,this._config.parent).filter(O=>!_.includes(O))}_addAriaAndCollapsedClass(h,_){if(h.length)for(const O of h)O.classList.toggle(ny,!_),O.setAttribute("aria-expanded",_)}static jQueryInterface(h){const _={};return typeof h=="string"&&/show|hide/.test(h)&&(_.toggle=!1),this.each(function(){const O=Js.getOrCreateInstance(this,_);if(typeof h=="string"){if(typeof O[h]>"u")throw new TypeError(`No method named "${h}"`);O[h]()}})}}F.on(document,ey,ol,function(P){(P.target.tagName==="A"||P.delegateTarget&&P.delegateTarget.tagName==="A")&&P.preventDefault();for(const h of B.getMultipleElementsFromSelector(this))Js.getOrCreateInstance(h,{toggle:!1}).toggle()}),$(Js);const nd="dropdown",hs=".bs.dropdown",rl=".data-api",uy="Escape",sd="Tab",dy="ArrowUp",id="ArrowDown",hy=2,fy=`hide${hs}`,py=`hidden${hs}`,gy=`show${hs}`,my=`shown${hs}`,od=`click${hs}${rl}`,rd=`keydown${hs}${rl}`,_y=`keyup${hs}${rl}`,Zs="show",by="dropup",yy="dropend",vy="dropstart",xy="dropup-center",wy="dropdown-center",fs='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ey=`${fs}.${Zs}`,cr=".dropdown-menu",Sy=".navbar",Cy=".navbar-nav",Ay=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Ty=k()?"top-end":"top-start",My=k()?"top-start":"top-end",Py=k()?"bottom-end":"bottom-start",ky=k()?"bottom-start":"bottom-end",Oy=k()?"left-start":"right-start",Dy=k()?"right-start":"left-start",$y="top",Ly="bottom",Iy={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Ry={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Ke extends Z{constructor(h,_){super(h,_),this._popper=null,this._parent=this._element.parentNode,this._menu=B.next(this._element,cr)[0]||B.prev(this._element,cr)[0]||B.findOne(cr,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Iy}static get DefaultType(){return Ry}static get NAME(){return nd}toggle(){return this._isShown()?this.hide():this.show()}show(){if(S(this._element)||this._isShown())return;const h={relatedTarget:this._element};if(!F.trigger(this._element,gy,h).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Cy))for(const O of[].concat(...document.body.children))F.on(O,"mouseover",C);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Zs),this._element.classList.add(Zs),F.trigger(this._element,my,h)}}hide(){if(S(this._element)||!this._isShown())return;const h={relatedTarget:this._element};this._completeHide(h)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(h){if(!F.trigger(this._element,fy,h).defaultPrevented){if("ontouchstart"in document.documentElement)for(const O of[].concat(...document.body.children))F.off(O,"mouseover",C);this._popper&&this._popper.destroy(),this._menu.classList.remove(Zs),this._element.classList.remove(Zs),this._element.setAttribute("aria-expanded","false"),V.removeDataAttribute(this._menu,"popper"),F.trigger(this._element,py,h)}}_getConfig(h){if(h=super._getConfig(h),typeof h.reference=="object"&&!m(h.reference)&&typeof h.reference.getBoundingClientRect!="function")throw new TypeError(`${nd.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return h}_createPopper(){if(typeof i>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let h=this._element;this._config.reference==="parent"?h=this._parent:m(this._config.reference)?h=y(this._config.reference):typeof this._config.reference=="object"&&(h=this._config.reference);const _=this._getPopperConfig();this._popper=i.createPopper(h,this._menu,_)}_isShown(){return this._menu.classList.contains(Zs)}_getPlacement(){const h=this._parent;if(h.classList.contains(yy))return Oy;if(h.classList.contains(vy))return Dy;if(h.classList.contains(xy))return $y;if(h.classList.contains(wy))return Ly;const _=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return h.classList.contains(by)?_?My:Ty:_?ky:Py}_detectNavbar(){return this._element.closest(Sy)!==null}_getOffset(){const{offset:h}=this._config;return typeof h=="string"?h.split(",").map(_=>Number.parseInt(_,10)):typeof h=="function"?_=>h(_,this._element):h}_getPopperConfig(){const h={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(V.setDataAttribute(this._menu,"popper","static"),h.modifiers=[{name:"applyStyles",enabled:!1}]),{...h,...L(this._config.popperConfig,[h])}}_selectMenuItem({key:h,target:_}){const O=B.find(Ay,this._menu).filter(z=>x(z));O.length&&X(O,_,h===id,!O.includes(_)).focus()}static jQueryInterface(h){return this.each(function(){const _=Ke.getOrCreateInstance(this,h);if(typeof h=="string"){if(typeof _[h]>"u")throw new TypeError(`No method named "${h}"`);_[h]()}})}static clearMenus(h){if(h.button===hy||h.type==="keyup"&&h.key!==sd)return;const _=B.find(Ey);for(const O of _){const z=Ke.getInstance(O);if(!z||z._config.autoClose===!1)continue;const nt=h.composedPath(),tt=nt.includes(z._menu);if(nt.includes(z._element)||z._config.autoClose==="inside"&&!tt||z._config.autoClose==="outside"&&tt||z._menu.contains(h.target)&&(h.type==="keyup"&&h.key===sd||/input|select|option|textarea|form/i.test(h.target.tagName)))continue;const Et={relatedTarget:z._element};h.type==="click"&&(Et.clickEvent=h),z._completeHide(Et)}}static dataApiKeydownHandler(h){const _=/input|textarea/i.test(h.target.tagName),O=h.key===uy,z=[dy,id].includes(h.key);if(!z&&!O||_&&!O)return;h.preventDefault();const nt=this.matches(fs)?this:B.prev(this,fs)[0]||B.next(this,fs)[0]||B.findOne(fs,h.delegateTarget.parentNode),tt=Ke.getOrCreateInstance(nt);if(z){h.stopPropagation(),tt.show(),tt._selectMenuItem(h);return}tt._isShown()&&(h.stopPropagation(),tt.hide(),nt.focus())}}F.on(document,rd,fs,Ke.dataApiKeydownHandler),F.on(document,rd,cr,Ke.dataApiKeydownHandler),F.on(document,od,Ke.clearMenus),F.on(document,_y,Ke.clearMenus),F.on(document,od,fs,function(P){P.preventDefault(),Ke.getOrCreateInstance(this).toggle()}),$(Ke);const ad="backdrop",Ny="fade",ld="show",cd=`mousedown.bs.${ad}`,Fy={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},By={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class ud extends K{constructor(h){super(),this._config=this._getConfig(h),this._isAppended=!1,this._element=null}static get Default(){return Fy}static get DefaultType(){return By}static get NAME(){return ad}show(h){if(!this._config.isVisible){L(h);return}this._append();const _=this._getElement();this._config.isAnimated&&v(_),_.classList.add(ld),this._emulateAnimation(()=>{L(h)})}hide(h){if(!this._config.isVisible){L(h);return}this._getElement().classList.remove(ld),this._emulateAnimation(()=>{this.dispose(),L(h)})}dispose(){this._isAppended&&(F.off(this._element,cd),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const h=document.createElement("div");h.className=this._config.className,this._config.isAnimated&&h.classList.add(Ny),this._element=h}return this._element}_configAfterMerge(h){return h.rootElement=y(h.rootElement),h}_append(){if(this._isAppended)return;const h=this._getElement();this._config.rootElement.append(h),F.on(h,cd,()=>{L(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(h){N(h,this._getElement(),this._config.isAnimated)}}const Vy="focustrap",ur=".bs.focustrap",Hy=`focusin${ur}`,jy=`keydown.tab${ur}`,Wy="Tab",zy="forward",dd="backward",Uy={autofocus:!0,trapElement:null},Ky={autofocus:"boolean",trapElement:"element"};class hd extends K{constructor(h){super(),this._config=this._getConfig(h),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Uy}static get DefaultType(){return Ky}static get NAME(){return Vy}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),F.off(document,ur),F.on(document,Hy,h=>this._handleFocusin(h)),F.on(document,jy,h=>this._handleKeydown(h)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,F.off(document,ur))}_handleFocusin(h){const{trapElement:_}=this._config;if(h.target===document||h.target===_||_.contains(h.target))return;const O=B.focusableChildren(_);O.length===0?_.focus():this._lastTabNavDirection===dd?O[O.length-1].focus():O[0].focus()}_handleKeydown(h){h.key===Wy&&(this._lastTabNavDirection=h.shiftKey?dd:zy)}}const fd=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",pd=".sticky-top",dr="padding-right",gd="margin-right";class al{constructor(){this._element=document.body}getWidth(){const h=document.documentElement.clientWidth;return Math.abs(window.innerWidth-h)}hide(){const h=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,dr,_=>_+h),this._setElementAttributes(fd,dr,_=>_+h),this._setElementAttributes(pd,gd,_=>_-h)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,dr),this._resetElementAttributes(fd,dr),this._resetElementAttributes(pd,gd)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(h,_,O){const z=this.getWidth(),nt=tt=>{if(tt!==this._element&&window.innerWidth>tt.clientWidth+z)return;this._saveInitialAttribute(tt,_);const Et=window.getComputedStyle(tt).getPropertyValue(_);tt.style.setProperty(_,`${O(Number.parseFloat(Et))}px`)};this._applyManipulationCallback(h,nt)}_saveInitialAttribute(h,_){const O=h.style.getPropertyValue(_);O&&V.setDataAttribute(h,_,O)}_resetElementAttributes(h,_){const O=z=>{const nt=V.getDataAttribute(z,_);if(nt===null){z.style.removeProperty(_);return}V.removeDataAttribute(z,_),z.style.setProperty(_,nt)};this._applyManipulationCallback(h,O)}_applyManipulationCallback(h,_){if(m(h)){_(h);return}for(const O of B.find(h,this._element))_(O)}}const Yy="modal",Ie=".bs.modal",Gy=".data-api",qy="Escape",Xy=`hide${Ie}`,Qy=`hidePrevented${Ie}`,md=`hidden${Ie}`,_d=`show${Ie}`,Jy=`shown${Ie}`,Zy=`resize${Ie}`,tv=`click.dismiss${Ie}`,ev=`mousedown.dismiss${Ie}`,nv=`keydown.dismiss${Ie}`,sv=`click${Ie}${Gy}`,bd="modal-open",iv="fade",yd="show",ll="modal-static",ov=".modal.show",rv=".modal-dialog",av=".modal-body",lv='[data-bs-toggle="modal"]',cv={backdrop:!0,focus:!0,keyboard:!0},uv={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ps extends Z{constructor(h,_){super(h,_),this._dialog=B.findOne(rv,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new al,this._addEventListeners()}static get Default(){return cv}static get DefaultType(){return uv}static get NAME(){return Yy}toggle(h){return this._isShown?this.hide():this.show(h)}show(h){this._isShown||this._isTransitioning||F.trigger(this._element,_d,{relatedTarget:h}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(bd),this._adjustDialog(),this._backdrop.show(()=>this._showElement(h)))}hide(){!this._isShown||this._isTransitioning||F.trigger(this._element,Xy).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(yd),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){F.off(window,Ie),F.off(this._dialog,Ie),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new ud({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new hd({trapElement:this._element})}_showElement(h){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const _=B.findOne(av,this._dialog);_&&(_.scrollTop=0),v(this._element),this._element.classList.add(yd);const O=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,F.trigger(this._element,Jy,{relatedTarget:h})};this._queueCallback(O,this._dialog,this._isAnimated())}_addEventListeners(){F.on(this._element,nv,h=>{if(h.key===qy){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),F.on(window,Zy,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),F.on(this._element,ev,h=>{F.one(this._element,tv,_=>{if(!(this._element!==h.target||this._element!==_.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(bd),this._resetAdjustments(),this._scrollBar.reset(),F.trigger(this._element,md)})}_isAnimated(){return this._element.classList.contains(iv)}_triggerBackdropTransition(){if(F.trigger(this._element,Qy).defaultPrevented)return;const _=this._element.scrollHeight>document.documentElement.clientHeight,O=this._element.style.overflowY;O==="hidden"||this._element.classList.contains(ll)||(_||(this._element.style.overflowY="hidden"),this._element.classList.add(ll),this._queueCallback(()=>{this._element.classList.remove(ll),this._queueCallback(()=>{this._element.style.overflowY=O},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const h=this._element.scrollHeight>document.documentElement.clientHeight,_=this._scrollBar.getWidth(),O=_>0;if(O&&!h){const z=k()?"paddingLeft":"paddingRight";this._element.style[z]=`${_}px`}if(!O&&h){const z=k()?"paddingRight":"paddingLeft";this._element.style[z]=`${_}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(h,_){return this.each(function(){const O=ps.getOrCreateInstance(this,h);if(typeof h=="string"){if(typeof O[h]>"u")throw new TypeError(`No method named "${h}"`);O[h](_)}})}}F.on(document,sv,lv,function(P){const h=B.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&P.preventDefault(),F.one(h,_d,z=>{z.defaultPrevented||F.one(h,md,()=>{x(this)&&this.focus()})});const _=B.findOne(ov);_&&ps.getInstance(_).hide(),ps.getOrCreateInstance(h).toggle(this)}),G(ps),$(ps);const dv="offcanvas",fn=".bs.offcanvas",vd=".data-api",hv=`load${fn}${vd}`,fv="Escape",xd="show",wd="showing",Ed="hiding",pv="offcanvas-backdrop",Sd=".offcanvas.show",gv=`show${fn}`,mv=`shown${fn}`,_v=`hide${fn}`,Cd=`hidePrevented${fn}`,Ad=`hidden${fn}`,bv=`resize${fn}`,yv=`click${fn}${vd}`,vv=`keydown.dismiss${fn}`,xv='[data-bs-toggle="offcanvas"]',wv={backdrop:!0,keyboard:!0,scroll:!1},Ev={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class pn extends Z{constructor(h,_){super(h,_),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return wv}static get DefaultType(){return Ev}static get NAME(){return dv}toggle(h){return this._isShown?this.hide():this.show(h)}show(h){if(this._isShown||F.trigger(this._element,gv,{relatedTarget:h}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new al().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(wd);const O=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(xd),this._element.classList.remove(wd),F.trigger(this._element,mv,{relatedTarget:h})};this._queueCallback(O,this._element,!0)}hide(){if(!this._isShown||F.trigger(this._element,_v).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Ed),this._backdrop.hide();const _=()=>{this._element.classList.remove(xd,Ed),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new al().reset(),F.trigger(this._element,Ad)};this._queueCallback(_,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const h=()=>{if(this._config.backdrop==="static"){F.trigger(this._element,Cd);return}this.hide()},_=!!this._config.backdrop;return new ud({className:pv,isVisible:_,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:_?h:null})}_initializeFocusTrap(){return new hd({trapElement:this._element})}_addEventListeners(){F.on(this._element,vv,h=>{if(h.key===fv){if(this._config.keyboard){this.hide();return}F.trigger(this._element,Cd)}})}static jQueryInterface(h){return this.each(function(){const _=pn.getOrCreateInstance(this,h);if(typeof h=="string"){if(_[h]===void 0||h.startsWith("_")||h==="constructor")throw new TypeError(`No method named "${h}"`);_[h](this)}})}}F.on(document,yv,xv,function(P){const h=B.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&P.preventDefault(),S(this))return;F.one(h,Ad,()=>{x(this)&&this.focus()});const _=B.findOne(Sd);_&&_!==h&&pn.getInstance(_).hide(),pn.getOrCreateInstance(h).toggle(this)}),F.on(window,hv,()=>{for(const P of B.find(Sd))pn.getOrCreateInstance(P).show()}),F.on(window,bv,()=>{for(const P of B.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(P).position!=="fixed"&&pn.getOrCreateInstance(P).hide()}),G(pn),$(pn);const Td={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Sv=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Cv=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Av=(P,h)=>{const _=P.nodeName.toLowerCase();return h.includes(_)?Sv.has(_)?!!Cv.test(P.nodeValue):!0:h.filter(O=>O instanceof RegExp).some(O=>O.test(_))};function Tv(P,h,_){if(!P.length)return P;if(_&&typeof _=="function")return _(P);const z=new window.DOMParser().parseFromString(P,"text/html"),nt=[].concat(...z.body.querySelectorAll("*"));for(const tt of nt){const Et=tt.nodeName.toLowerCase();if(!Object.keys(h).includes(Et)){tt.remove();continue}const _e=[].concat(...tt.attributes),Re=[].concat(h["*"]||[],h[Et]||[]);for(const ie of _e)Av(ie,Re)||tt.removeAttribute(ie.nodeName)}return z.body.innerHTML}const Mv="TemplateFactory",Pv={allowList:Td,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},kv={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Ov={entry:"(string|element|function|null)",selector:"(string|element)"};class Dv extends K{constructor(h){super(),this._config=this._getConfig(h)}static get Default(){return Pv}static get DefaultType(){return kv}static get NAME(){return Mv}getContent(){return Object.values(this._config.content).map(h=>this._resolvePossibleFunction(h)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(h){return this._checkContent(h),this._config.content={...this._config.content,...h},this}toHtml(){const h=document.createElement("div");h.innerHTML=this._maybeSanitize(this._config.template);for(const[z,nt]of Object.entries(this._config.content))this._setContent(h,nt,z);const _=h.children[0],O=this._resolvePossibleFunction(this._config.extraClass);return O&&_.classList.add(...O.split(" ")),_}_typeCheckConfig(h){super._typeCheckConfig(h),this._checkContent(h.content)}_checkContent(h){for(const[_,O]of Object.entries(h))super._typeCheckConfig({selector:_,entry:O},Ov)}_setContent(h,_,O){const z=B.findOne(O,h);if(z){if(_=this._resolvePossibleFunction(_),!_){z.remove();return}if(m(_)){this._putElementInTemplate(y(_),z);return}if(this._config.html){z.innerHTML=this._maybeSanitize(_);return}z.textContent=_}}_maybeSanitize(h){return this._config.sanitize?Tv(h,this._config.allowList,this._config.sanitizeFn):h}_resolvePossibleFunction(h){return L(h,[this])}_putElementInTemplate(h,_){if(this._config.html){_.innerHTML="",_.append(h);return}_.textContent=h.textContent}}const $v="tooltip",Lv=new Set(["sanitize","allowList","sanitizeFn"]),cl="fade",Iv="modal",hr="show",Rv=".tooltip-inner",Md=`.${Iv}`,Pd="hide.bs.modal",qi="hover",ul="focus",Nv="click",Fv="manual",Bv="hide",Vv="hidden",Hv="show",jv="shown",Wv="inserted",zv="click",Uv="focusin",Kv="focusout",Yv="mouseenter",Gv="mouseleave",qv={AUTO:"auto",TOP:"top",RIGHT:k()?"left":"right",BOTTOM:"bottom",LEFT:k()?"right":"left"},Xv={allowList:Td,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},Qv={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class gs extends Z{constructor(h,_){if(typeof i>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(h,_),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Xv}static get DefaultType(){return Qv}static get NAME(){return $v}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),F.off(this._element.closest(Md),Pd,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const h=F.trigger(this._element,this.constructor.eventName(Hv)),O=(M(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(h.defaultPrevented||!O)return;this._disposePopper();const z=this._getTipElement();this._element.setAttribute("aria-describedby",z.getAttribute("id"));const{container:nt}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(nt.append(z),F.trigger(this._element,this.constructor.eventName(Wv))),this._popper=this._createPopper(z),z.classList.add(hr),"ontouchstart"in document.documentElement)for(const Et of[].concat(...document.body.children))F.on(Et,"mouseover",C);const tt=()=>{F.trigger(this._element,this.constructor.eventName(jv)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(tt,this.tip,this._isAnimated())}hide(){if(!this._isShown()||F.trigger(this._element,this.constructor.eventName(Bv)).defaultPrevented)return;if(this._getTipElement().classList.remove(hr),"ontouchstart"in document.documentElement)for(const z of[].concat(...document.body.children))F.off(z,"mouseover",C);this._activeTrigger[Nv]=!1,this._activeTrigger[ul]=!1,this._activeTrigger[qi]=!1,this._isHovered=null;const O=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),F.trigger(this._element,this.constructor.eventName(Vv)))};this._queueCallback(O,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(h){const _=this._getTemplateFactory(h).toHtml();if(!_)return null;_.classList.remove(cl,hr),_.classList.add(`bs-${this.constructor.NAME}-auto`);const O=f(this.constructor.NAME).toString();return _.setAttribute("id",O),this._isAnimated()&&_.classList.add(cl),_}setContent(h){this._newContent=h,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(h){return this._templateFactory?this._templateFactory.changeContent(h):this._templateFactory=new Dv({...this._config,content:h,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Rv]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(h){return this.constructor.getOrCreateInstance(h.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(cl)}_isShown(){return this.tip&&this.tip.classList.contains(hr)}_createPopper(h){const _=L(this._config.placement,[this,h,this._element]),O=qv[_.toUpperCase()];return i.createPopper(this._element,h,this._getPopperConfig(O))}_getOffset(){const{offset:h}=this._config;return typeof h=="string"?h.split(",").map(_=>Number.parseInt(_,10)):typeof h=="function"?_=>h(_,this._element):h}_resolvePossibleFunction(h){return L(h,[this._element])}_getPopperConfig(h){const _={placement:h,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:O=>{this._getTipElement().setAttribute("data-popper-placement",O.state.placement)}}]};return{..._,...L(this._config.popperConfig,[_])}}_setListeners(){const h=this._config.trigger.split(" ");for(const _ of h)if(_==="click")F.on(this._element,this.constructor.eventName(zv),this._config.selector,O=>{this._initializeOnDelegatedTarget(O).toggle()});else if(_!==Fv){const O=_===qi?this.constructor.eventName(Yv):this.constructor.eventName(Uv),z=_===qi?this.constructor.eventName(Gv):this.constructor.eventName(Kv);F.on(this._element,O,this._config.selector,nt=>{const tt=this._initializeOnDelegatedTarget(nt);tt._activeTrigger[nt.type==="focusin"?ul:qi]=!0,tt._enter()}),F.on(this._element,z,this._config.selector,nt=>{const tt=this._initializeOnDelegatedTarget(nt);tt._activeTrigger[nt.type==="focusout"?ul:qi]=tt._element.contains(nt.relatedTarget),tt._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},F.on(this._element.closest(Md),Pd,this._hideModalHandler)}_fixTitle(){const h=this._element.getAttribute("title");h&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",h),this._element.setAttribute("data-bs-original-title",h),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(h,_){clearTimeout(this._timeout),this._timeout=setTimeout(h,_)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(h){const _=V.getDataAttributes(this._element);for(const O of Object.keys(_))Lv.has(O)&&delete _[O];return h={..._,...typeof h=="object"&&h?h:{}},h=this._mergeConfigObj(h),h=this._configAfterMerge(h),this._typeCheckConfig(h),h}_configAfterMerge(h){return h.container=h.container===!1?document.body:y(h.container),typeof h.delay=="number"&&(h.delay={show:h.delay,hide:h.delay}),typeof h.title=="number"&&(h.title=h.title.toString()),typeof h.content=="number"&&(h.content=h.content.toString()),h}_getDelegateConfig(){const h={};for(const[_,O]of Object.entries(this._config))this.constructor.Default[_]!==O&&(h[_]=O);return h.selector=!1,h.trigger="manual",h}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(h){return this.each(function(){const _=gs.getOrCreateInstance(this,h);if(typeof h=="string"){if(typeof _[h]>"u")throw new TypeError(`No method named "${h}"`);_[h]()}})}}$(gs);const Jv="popover",Zv=".popover-header",t0=".popover-body",e0={...gs.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},n0={...gs.DefaultType,content:"(null|string|element|function)"};class fr extends gs{static get Default(){return e0}static get DefaultType(){return n0}static get NAME(){return Jv}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Zv]:this._getTitle(),[t0]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(h){return this.each(function(){const _=fr.getOrCreateInstance(this,h);if(typeof h=="string"){if(typeof _[h]>"u")throw new TypeError(`No method named "${h}"`);_[h]()}})}}$(fr);const s0="scrollspy",dl=".bs.scrollspy",i0=".data-api",o0=`activate${dl}`,kd=`click${dl}`,r0=`load${dl}${i0}`,a0="dropdown-item",ti="active",l0='[data-bs-spy="scroll"]',hl="[href]",c0=".nav, .list-group",Od=".nav-link",u0=`${Od}, .nav-item > ${Od}, .list-group-item`,d0=".dropdown",h0=".dropdown-toggle",f0={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},p0={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Xi extends Z{constructor(h,_){super(h,_),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return f0}static get DefaultType(){return p0}static get NAME(){return s0}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const h of this._observableSections.values())this._observer.observe(h)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(h){return h.target=y(h.target)||document.body,h.rootMargin=h.offset?`${h.offset}px 0px -30%`:h.rootMargin,typeof h.threshold=="string"&&(h.threshold=h.threshold.split(",").map(_=>Number.parseFloat(_))),h}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(F.off(this._config.target,kd),F.on(this._config.target,kd,hl,h=>{const _=this._observableSections.get(h.target.hash);if(_){h.preventDefault();const O=this._rootElement||window,z=_.offsetTop-this._element.offsetTop;if(O.scrollTo){O.scrollTo({top:z,behavior:"smooth"});return}O.scrollTop=z}}))}_getNewObserver(){const h={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(_=>this._observerCallback(_),h)}_observerCallback(h){const _=tt=>this._targetLinks.get(`#${tt.target.id}`),O=tt=>{this._previousScrollData.visibleEntryTop=tt.target.offsetTop,this._process(_(tt))},z=(this._rootElement||document.documentElement).scrollTop,nt=z>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=z;for(const tt of h){if(!tt.isIntersecting){this._activeTarget=null,this._clearActiveClass(_(tt));continue}const Et=tt.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(nt&&Et){if(O(tt),!z)return;continue}!nt&&!Et&&O(tt)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const h=B.find(hl,this._config.target);for(const _ of h){if(!_.hash||S(_))continue;const O=B.findOne(decodeURI(_.hash),this._element);x(O)&&(this._targetLinks.set(decodeURI(_.hash),_),this._observableSections.set(_.hash,O))}}_process(h){this._activeTarget!==h&&(this._clearActiveClass(this._config.target),this._activeTarget=h,h.classList.add(ti),this._activateParents(h),F.trigger(this._element,o0,{relatedTarget:h}))}_activateParents(h){if(h.classList.contains(a0)){B.findOne(h0,h.closest(d0)).classList.add(ti);return}for(const _ of B.parents(h,c0))for(const O of B.prev(_,u0))O.classList.add(ti)}_clearActiveClass(h){h.classList.remove(ti);const _=B.find(`${hl}.${ti}`,h);for(const O of _)O.classList.remove(ti)}static jQueryInterface(h){return this.each(function(){const _=Xi.getOrCreateInstance(this,h);if(typeof h=="string"){if(_[h]===void 0||h.startsWith("_")||h==="constructor")throw new TypeError(`No method named "${h}"`);_[h]()}})}}F.on(window,r0,()=>{for(const P of B.find(l0))Xi.getOrCreateInstance(P)}),$(Xi);const g0="tab",ms=".bs.tab",m0=`hide${ms}`,_0=`hidden${ms}`,b0=`show${ms}`,y0=`shown${ms}`,v0=`click${ms}`,x0=`keydown${ms}`,w0=`load${ms}`,E0="ArrowLeft",Dd="ArrowRight",S0="ArrowUp",$d="ArrowDown",fl="Home",Ld="End",_s="active",Id="fade",pl="show",C0="dropdown",Rd=".dropdown-toggle",A0=".dropdown-menu",gl=`:not(${Rd})`,T0='.list-group, .nav, [role="tablist"]',M0=".nav-item, .list-group-item",P0=`.nav-link${gl}, .list-group-item${gl}, [role="tab"]${gl}`,Nd='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',ml=`${P0}, ${Nd}`,k0=`.${_s}[data-bs-toggle="tab"], .${_s}[data-bs-toggle="pill"], .${_s}[data-bs-toggle="list"]`;class bs extends Z{constructor(h){super(h),this._parent=this._element.closest(T0),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),F.on(this._element,x0,_=>this._keydown(_)))}static get NAME(){return g0}show(){const h=this._element;if(this._elemIsActive(h))return;const _=this._getActiveElem(),O=_?F.trigger(_,m0,{relatedTarget:h}):null;F.trigger(h,b0,{relatedTarget:_}).defaultPrevented||O&&O.defaultPrevented||(this._deactivate(_,h),this._activate(h,_))}_activate(h,_){if(!h)return;h.classList.add(_s),this._activate(B.getElementFromSelector(h));const O=()=>{if(h.getAttribute("role")!=="tab"){h.classList.add(pl);return}h.removeAttribute("tabindex"),h.setAttribute("aria-selected",!0),this._toggleDropDown(h,!0),F.trigger(h,y0,{relatedTarget:_})};this._queueCallback(O,h,h.classList.contains(Id))}_deactivate(h,_){if(!h)return;h.classList.remove(_s),h.blur(),this._deactivate(B.getElementFromSelector(h));const O=()=>{if(h.getAttribute("role")!=="tab"){h.classList.remove(pl);return}h.setAttribute("aria-selected",!1),h.setAttribute("tabindex","-1"),this._toggleDropDown(h,!1),F.trigger(h,_0,{relatedTarget:_})};this._queueCallback(O,h,h.classList.contains(Id))}_keydown(h){if(![E0,Dd,S0,$d,fl,Ld].includes(h.key))return;h.stopPropagation(),h.preventDefault();const _=this._getChildren().filter(z=>!S(z));let O;if([fl,Ld].includes(h.key))O=_[h.key===fl?0:_.length-1];else{const z=[Dd,$d].includes(h.key);O=X(_,h.target,z,!0)}O&&(O.focus({preventScroll:!0}),bs.getOrCreateInstance(O).show())}_getChildren(){return B.find(ml,this._parent)}_getActiveElem(){return this._getChildren().find(h=>this._elemIsActive(h))||null}_setInitialAttributes(h,_){this._setAttributeIfNotExists(h,"role","tablist");for(const O of _)this._setInitialAttributesOnChild(O)}_setInitialAttributesOnChild(h){h=this._getInnerElement(h);const _=this._elemIsActive(h),O=this._getOuterElement(h);h.setAttribute("aria-selected",_),O!==h&&this._setAttributeIfNotExists(O,"role","presentation"),_||h.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(h,"role","tab"),this._setInitialAttributesOnTargetPanel(h)}_setInitialAttributesOnTargetPanel(h){const _=B.getElementFromSelector(h);_&&(this._setAttributeIfNotExists(_,"role","tabpanel"),h.id&&this._setAttributeIfNotExists(_,"aria-labelledby",`${h.id}`))}_toggleDropDown(h,_){const O=this._getOuterElement(h);if(!O.classList.contains(C0))return;const z=(nt,tt)=>{const Et=B.findOne(nt,O);Et&&Et.classList.toggle(tt,_)};z(Rd,_s),z(A0,pl),O.setAttribute("aria-expanded",_)}_setAttributeIfNotExists(h,_,O){h.hasAttribute(_)||h.setAttribute(_,O)}_elemIsActive(h){return h.classList.contains(_s)}_getInnerElement(h){return h.matches(ml)?h:B.findOne(ml,h)}_getOuterElement(h){return h.closest(M0)||h}static jQueryInterface(h){return this.each(function(){const _=bs.getOrCreateInstance(this);if(typeof h=="string"){if(_[h]===void 0||h.startsWith("_")||h==="constructor")throw new TypeError(`No method named "${h}"`);_[h]()}})}}F.on(document,v0,Nd,function(P){["A","AREA"].includes(this.tagName)&&P.preventDefault(),!S(this)&&bs.getOrCreateInstance(this).show()}),F.on(window,w0,()=>{for(const P of B.find(k0))bs.getOrCreateInstance(P)}),$(bs);const O0="toast",Ln=".bs.toast",D0=`mouseover${Ln}`,$0=`mouseout${Ln}`,L0=`focusin${Ln}`,I0=`focusout${Ln}`,R0=`hide${Ln}`,N0=`hidden${Ln}`,F0=`show${Ln}`,B0=`shown${Ln}`,V0="fade",Fd="hide",pr="show",gr="showing",H0={animation:"boolean",autohide:"boolean",delay:"number"},j0={animation:!0,autohide:!0,delay:5e3};class Qi extends Z{constructor(h,_){super(h,_),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return j0}static get DefaultType(){return H0}static get NAME(){return O0}show(){if(F.trigger(this._element,F0).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(V0);const _=()=>{this._element.classList.remove(gr),F.trigger(this._element,B0),this._maybeScheduleHide()};this._element.classList.remove(Fd),v(this._element),this._element.classList.add(pr,gr),this._queueCallback(_,this._element,this._config.animation)}hide(){if(!this.isShown()||F.trigger(this._element,R0).defaultPrevented)return;const _=()=>{this._element.classList.add(Fd),this._element.classList.remove(gr,pr),F.trigger(this._element,N0)};this._element.classList.add(gr),this._queueCallback(_,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(pr),super.dispose()}isShown(){return this._element.classList.contains(pr)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(h,_){switch(h.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=_;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=_;break}}if(_){this._clearTimeout();return}const O=h.relatedTarget;this._element===O||this._element.contains(O)||this._maybeScheduleHide()}_setListeners(){F.on(this._element,D0,h=>this._onInteraction(h,!0)),F.on(this._element,$0,h=>this._onInteraction(h,!1)),F.on(this._element,L0,h=>this._onInteraction(h,!0)),F.on(this._element,I0,h=>this._onInteraction(h,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(h){return this.each(function(){const _=Qi.getOrCreateInstance(this,h);if(typeof h=="string"){if(typeof _[h]>"u")throw new TypeError(`No method named "${h}"`);_[h](this)}})}}return G(Qi),$(Qi),{Alert:zt,Button:Dn,Carousel:Xs,Collapse:Js,Dropdown:Ke,Modal:ps,Offcanvas:pn,Popover:fr,ScrollSpy:Xi,Tab:bs,Toast:Qi,Tooltip:gs}})})(G0);function qc(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const Vt={},di=[],Ve=()=>{},Fx=()=>!1,Ta=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Xc=e=>e.startsWith("onUpdate:"),Zt=Object.assign,Qc=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Bx=Object.prototype.hasOwnProperty,Ot=(e,t)=>Bx.call(e,t),ht=Array.isArray,hi=e=>Yo(e)==="[object Map]",Ma=e=>Yo(e)==="[object Set]",Yd=e=>Yo(e)==="[object Date]",bt=e=>typeof e=="function",Qt=e=>typeof e=="string",ts=e=>typeof e=="symbol",Nt=e=>e!==null&&typeof e=="object",ng=e=>(Nt(e)||bt(e))&&bt(e.then)&&bt(e.catch),sg=Object.prototype.toString,Yo=e=>sg.call(e),Vx=e=>Yo(e).slice(8,-1),ig=e=>Yo(e)==="[object Object]",Jc=e=>Qt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,zr=qc(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pa=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Hx=/-(\w)/g,un=Pa(e=>e.replace(Hx,(t,n)=>n?n.toUpperCase():"")),jx=/\B([A-Z])/g,ji=Pa(e=>e.replace(jx,"-$1").toLowerCase()),ka=Pa(e=>e.charAt(0).toUpperCase()+e.slice(1)),_l=Pa(e=>e?`on${ka(e)}`:""),es=(e,t)=>!Object.is(e,t),Ur=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ql=e=>{const t=parseFloat(e);return isNaN(t)?e:t},og=e=>{const t=Qt(e)?Number(e):NaN;return isNaN(t)?e:t};let Gd;const rg=()=>Gd||(Gd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Zc(e){if(ht(e)){const t={};for(let n=0;n{if(n){const s=n.split(zx);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function ge(e){let t="";if(Qt(e))t=e;else if(ht(e))for(let n=0;nOa(n,t))}const Ct=e=>Qt(e)?e:e==null?"":ht(e)||Nt(e)&&(e.toString===sg||!bt(e.toString))?JSON.stringify(e,cg,2):String(e),cg=(e,t)=>t&&t.__v_isRef?cg(e,t.value):hi(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,i],o)=>(n[bl(s,o)+" =>"]=i,n),{})}:Ma(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>bl(n))}:ts(t)?bl(t):Nt(t)&&!ht(t)&&!ig(t)?String(t):t,bl=(e,t="")=>{var n;return ts(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Ce;class ug{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ce,!t&&Ce&&(this.index=(Ce.scopes||(Ce.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ce;try{return Ce=this,t()}finally{Ce=n}}}on(){Ce=this}off(){Ce=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n=2))break;zs(),this._queryings--}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?3:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=qn,n=$s;try{return qn=!0,$s=this,this._runnings++,qd(this),this.fn()}finally{Xd(this),this._runnings--,$s=n,qn=t}}stop(){var t;this.active&&(qd(this),Xd(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Qx(e){return e.value}function qd(e){e._trackId++,e._depsLength=0}function Xd(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},ea=new WeakMap,Ls=Symbol(""),tc=Symbol("");function we(e,t,n){if(qn&&$s){let s=ea.get(e);s||ea.set(e,s=new Map);let i=s.get(n);i||s.set(n,i=_g(()=>s.delete(n))),gg($s,i)}}function Tn(e,t,n,s,i,o){const r=ea.get(e);if(!r)return;let a=[];if(t==="clear")a=[...r.values()];else if(n==="length"&&ht(e)){const l=Number(s);r.forEach((c,u)=>{(u==="length"||!ts(u)&&u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(r.get(n)),t){case"add":ht(e)?Jc(n)&&a.push(r.get("length")):(a.push(r.get(Ls)),hi(e)&&a.push(r.get(tc)));break;case"delete":ht(e)||(a.push(r.get(Ls)),hi(e)&&a.push(r.get(tc)));break;case"set":hi(e)&&a.push(r.get(Ls));break}nu();for(const l of a)l&&mg(l,3);su()}function Jx(e,t){var n;return(n=ea.get(e))==null?void 0:n.get(t)}const Zx=qc("__proto__,__v_isRef,__isVue"),bg=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ts)),Qd=tw();function tw(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=At(this);for(let o=0,r=this.length;o{e[t]=function(...n){Ws(),nu();const s=At(this)[t].apply(this,n);return su(),zs(),s}}),e}function ew(e){const t=At(this);return we(t,"has",e),t.hasOwnProperty(e)}class yg{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,s){const i=this._isReadonly,o=this._shallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(i?o?pw:Eg:o?wg:xg).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const r=ht(t);if(!i){if(r&&Ot(Qd,n))return Reflect.get(Qd,n,s);if(n==="hasOwnProperty")return ew}const a=Reflect.get(t,n,s);return(ts(n)?bg.has(n):Zx(n))||(i||we(t,"get",n),o)?a:ne(a)?r&&Jc(n)?a:a.value:Nt(a)?i?Cg(a):Go(a):a}}class vg extends yg{constructor(t=!1){super(!1,t)}set(t,n,s,i){let o=t[n];if(!this._shallow){const l=Si(o);if(!li(s)&&!Si(s)&&(o=At(o),s=At(s)),!ht(t)&&ne(o)&&!ne(s))return l?!1:(o.value=s,!0)}const r=ht(t)&&Jc(n)?Number(n)e,Da=e=>Reflect.getPrototypeOf(e);function br(e,t,n=!1,s=!1){e=e.__v_raw;const i=At(e),o=At(t);n||(es(t,o)&&we(i,"get",t),we(i,"get",o));const{has:r}=Da(i),a=s?iu:n?au:ko;if(r.call(i,t))return a(e.get(t));if(r.call(i,o))return a(e.get(o));e!==i&&e.get(t)}function yr(e,t=!1){const n=this.__v_raw,s=At(n),i=At(e);return t||(es(e,i)&&we(s,"has",e),we(s,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function vr(e,t=!1){return e=e.__v_raw,!t&&we(At(e),"iterate",Ls),Reflect.get(e,"size",e)}function Jd(e){e=At(e);const t=At(this);return Da(t).has.call(t,e)||(t.add(e),Tn(t,"add",e,e)),this}function Zd(e,t){t=At(t);const n=At(this),{has:s,get:i}=Da(n);let o=s.call(n,e);o||(e=At(e),o=s.call(n,e));const r=i.call(n,e);return n.set(e,t),o?es(t,r)&&Tn(n,"set",e,t):Tn(n,"add",e,t),this}function th(e){const t=At(this),{has:n,get:s}=Da(t);let i=n.call(t,e);i||(e=At(e),i=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return i&&Tn(t,"delete",e,void 0),o}function eh(){const e=At(this),t=e.size!==0,n=e.clear();return t&&Tn(e,"clear",void 0,void 0),n}function xr(e,t){return function(s,i){const o=this,r=o.__v_raw,a=At(r),l=t?iu:e?au:ko;return!e&&we(a,"iterate",Ls),r.forEach((c,u)=>s.call(i,l(c),l(u),o))}}function wr(e,t,n){return function(...s){const i=this.__v_raw,o=At(i),r=hi(o),a=e==="entries"||e===Symbol.iterator&&r,l=e==="keys"&&r,c=i[e](...s),u=n?iu:t?au:ko;return!t&&we(o,"iterate",l?tc:Ls),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:a?[u(d[0]),u(d[1])]:u(d),done:f}},[Symbol.iterator](){return this}}}}function In(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function rw(){const e={get(o){return br(this,o)},get size(){return vr(this)},has:yr,add:Jd,set:Zd,delete:th,clear:eh,forEach:xr(!1,!1)},t={get(o){return br(this,o,!1,!0)},get size(){return vr(this)},has:yr,add:Jd,set:Zd,delete:th,clear:eh,forEach:xr(!1,!0)},n={get(o){return br(this,o,!0)},get size(){return vr(this,!0)},has(o){return yr.call(this,o,!0)},add:In("add"),set:In("set"),delete:In("delete"),clear:In("clear"),forEach:xr(!0,!1)},s={get(o){return br(this,o,!0,!0)},get size(){return vr(this,!0)},has(o){return yr.call(this,o,!0)},add:In("add"),set:In("set"),delete:In("delete"),clear:In("clear"),forEach:xr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=wr(o,!1,!1),n[o]=wr(o,!0,!1),t[o]=wr(o,!1,!0),s[o]=wr(o,!0,!0)}),[e,n,t,s]}const[aw,lw,cw,uw]=rw();function ou(e,t){const n=t?e?uw:cw:e?lw:aw;return(s,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?s:Reflect.get(Ot(n,i)&&i in s?n:s,i,o)}const dw={get:ou(!1,!1)},hw={get:ou(!1,!0)},fw={get:ou(!0,!1)},xg=new WeakMap,wg=new WeakMap,Eg=new WeakMap,pw=new WeakMap;function gw(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function mw(e){return e.__v_skip||!Object.isExtensible(e)?0:gw(Vx(e))}function Go(e){return Si(e)?e:ru(e,!1,sw,dw,xg)}function Sg(e){return ru(e,!1,ow,hw,wg)}function Cg(e){return ru(e,!0,iw,fw,Eg)}function ru(e,t,n,s,i){if(!Nt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const r=mw(e);if(r===0)return e;const a=new Proxy(e,r===2?s:n);return i.set(e,a),a}function Xn(e){return Si(e)?Xn(e.__v_raw):!!(e&&e.__v_isReactive)}function Si(e){return!!(e&&e.__v_isReadonly)}function li(e){return!!(e&&e.__v_isShallow)}function $a(e){return Xn(e)||Si(e)}function At(e){const t=e&&e.__v_raw;return t?At(t):e}function qo(e){return ta(e,"__v_skip",!0),e}const ko=e=>Nt(e)?Go(e):e,au=e=>Nt(e)?Cg(e):e;class Ag{constructor(t,n,s,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new eu(()=>t(this._value),()=>ec(this,1)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=s}get value(){const t=At(this);return Tg(t),(!t._cacheable||t.effect.dirty)&&es(t._value,t._value=t.effect.run())&&ec(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function _w(e,t,n=!1){let s,i;const o=bt(e);return o?(s=e,i=Ve):(s=e.get,i=e.set),new Ag(s,i,o||!i,n)}function Tg(e){qn&&$s&&(e=At(e),gg($s,e.dep||(e.dep=_g(()=>e.dep=void 0,e instanceof Ag?e:void 0))))}function ec(e,t=3,n){e=At(e);const s=e.dep;s&&mg(s,t)}function ne(e){return!!(e&&e.__v_isRef===!0)}function Ci(e){return Mg(e,!1)}function lu(e){return Mg(e,!0)}function Mg(e,t){return ne(e)?e:new bw(e,t)}class bw{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:At(t),this._value=n?t:ko(t)}get value(){return Tg(this),this._value}set value(t){const n=this.__v_isShallow||li(t)||Si(t);t=n?t:At(t),es(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ko(t),ec(this,3))}}function Qn(e){return ne(e)?e.value:e}const yw={get:(e,t,n)=>Qn(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const i=e[t];return ne(i)&&!ne(n)?(i.value=n,!0):Reflect.set(e,t,n,s)}};function Pg(e){return Xn(e)?e:new Proxy(e,yw)}function vw(e){const t=ht(e)?new Array(e.length):{};for(const n in e)t[n]=ww(e,n);return t}class xw{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Jx(At(this._object),this._key)}}function ww(e,t,n){const s=e[t];return ne(s)?s:new xw(e,t,n)}function Jn(e,t,n,s){let i;try{i=s?e(...s):e()}catch(o){Xo(o,t,n)}return i}function ze(e,t,n,s){if(bt(e)){const o=Jn(e,t,n,s);return o&&ng(o)&&o.catch(r=>{Xo(r,t,n)}),o}const i=[];for(let o=0;o>>1,i=ce[s],o=Do(i);onn&&ce.splice(t,1)}function sc(e){ht(e)?fi.push(...e):(!vn||!vn.includes(e,e.allowRecurse?Ms+1:Ms))&&fi.push(e),Og()}function nh(e,t,n=Oo?nn+1:0){for(;nDo(n)-Do(s)),Ms=0;Mse.id==null?1/0:e.id,Aw=(e,t)=>{const n=Do(e)-Do(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function $g(e){nc=!1,Oo=!0,ce.sort(Aw);try{for(nn=0;nnQt(p)?p.trim():p)),d&&(i=n.map(Ql))}let a,l=s[a=_l(t)]||s[a=_l(un(t))];!l&&o&&(l=s[a=_l(ji(t))]),l&&ze(l,e,6,i);const c=s[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,ze(c,e,6,i)}}function Lg(e,t,n=!1){const s=t.emitsCache,i=s.get(e);if(i!==void 0)return i;const o=e.emits;let r={},a=!1;if(!bt(e)){const l=c=>{const u=Lg(c,t,!0);u&&(a=!0,Zt(r,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(Nt(e)&&s.set(e,null),null):(ht(o)?o.forEach(l=>r[l]=null):Zt(r,o),Nt(e)&&s.set(e,r),r)}function Ia(e,t){return!e||!Ta(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ot(e,t[0].toLowerCase()+t.slice(1))||Ot(e,ji(t))||Ot(e,t))}let xe=null,Ra=null;function na(e){const t=xe;return xe=e,Ra=e&&e.type.__scopeId||null,t}function Na(e){Ra=e}function Fa(){Ra=null}function Kt(e,t=xe,n){if(!t||e._n)return e;const s=(...i)=>{s._d&&mh(-1);const o=na(t);let r;try{r=e(...i)}finally{na(o),s._d&&mh(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function yl(e){const{type:t,vnode:n,proxy:s,withProxy:i,props:o,propsOptions:[r],slots:a,attrs:l,emit:c,render:u,renderCache:d,data:f,setupState:p,ctx:g,inheritAttrs:m}=e;let y,x;const S=na(e);try{if(n.shapeFlag&4){const C=i||s,v=C;y=Ge(u.call(v,C,d,o,p,f,g)),x=l}else{const C=t;y=Ge(C.length>1?C(o,{attrs:l,slots:a,emit:c}):C(o,null)),x=t.props?l:Pw(l)}}catch(C){go.length=0,Xo(C,e,1),y=mt(Me)}let M=y;if(x&&m!==!1){const C=Object.keys(x),{shapeFlag:v}=M;C.length&&v&7&&(r&&C.some(Xc)&&(x=kw(x,r)),M=ns(M,x))}return n.dirs&&(M=ns(M),M.dirs=M.dirs?M.dirs.concat(n.dirs):n.dirs),n.transition&&(M.transition=n.transition),y=M,na(S),y}function Mw(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||Ta(n))&&((t||(t={}))[n]=e[n]);return t},kw=(e,t)=>{const n={};for(const s in e)(!Xc(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Ow(e,t,n){const{props:s,children:i,component:o}=e,{props:r,children:a,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?sh(s,r,c):!!r;if(l&8){const u=t.dynamicProps;for(let d=0;de.__isSuspense;let oh=0;const $w={name:"Suspense",__isSuspense:!0,process(e,t,n,s,i,o,r,a,l,c){e==null?Lw(t,n,s,i,o,r,a,l,c):Iw(e,t,n,s,i,r,a,l,c)},hydrate:Rw,create:gu,normalize:Nw},pu=$w;function $o(e,t){const n=e.props&&e.props[t];bt(n)&&n()}function Lw(e,t,n,s,i,o,r,a,l){const{p:c,o:{createElement:u}}=l,d=u("div"),f=e.suspense=gu(e,i,s,t,d,n,o,r,a,l);c(null,f.pendingBranch=e.ssContent,d,null,s,f,o,r),f.deps>0?($o(e,"onPending"),$o(e,"onFallback"),c(null,e.ssFallback,t,n,s,null,o,r),pi(f,e.ssFallback)):f.resolve(!1,!0)}function Iw(e,t,n,s,i,o,r,a,{p:l,um:c,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const f=t.ssContent,p=t.ssFallback,{activeBranch:g,pendingBranch:m,isInFallback:y,isHydrating:x}=d;if(m)d.pendingBranch=f,sn(f,m)?(l(m,f,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0?d.resolve():y&&(x||(l(g,p,n,s,i,null,o,r,a),pi(d,p)))):(d.pendingId=oh++,x?(d.isHydrating=!1,d.activeBranch=m):c(m,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),y?(l(null,f,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0?d.resolve():(l(g,p,n,s,i,null,o,r,a),pi(d,p))):g&&sn(f,g)?(l(g,f,n,s,i,d,o,r,a),d.resolve(!0)):(l(null,f,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0&&d.resolve()));else if(g&&sn(f,g))l(g,f,n,s,i,d,o,r,a),pi(d,f);else if($o(t,"onPending"),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=oh++,l(null,f,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0)d.resolve();else{const{timeout:S,pendingId:M}=d;S>0?setTimeout(()=>{d.pendingId===M&&d.fallback(p)},S):S===0&&d.fallback(p)}}function gu(e,t,n,s,i,o,r,a,l,c,u=!1){const{p:d,m:f,um:p,n:g,o:{parentNode:m,remove:y}}=c;let x;const S=Bw(e);S&&t!=null&&t.pendingBranch&&(x=t.pendingId,t.deps++);const M=e.props?og(e.props.timeout):void 0,C={vnode:e,parent:t,parentComponent:n,namespace:r,container:s,hiddenContainer:i,anchor:o,deps:0,pendingId:0,timeout:typeof M=="number"?M:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(v=!1,E=!1){const{vnode:A,activeBranch:w,pendingBranch:k,pendingId:$,effects:L,parentComponent:N,container:X}=C;let Y=!1;if(C.isHydrating)C.isHydrating=!1;else if(!v){Y=w&&k.transition&&k.transition.mode==="out-in",Y&&(w.transition.afterLeave=()=>{$===C.pendingId&&(f(k,X,g(w),0),sc(L))});let{anchor:W}=C;w&&(W=g(w),p(w,N,C,!0)),Y||f(k,X,W,0)}pi(C,k),C.pendingBranch=null,C.isInFallback=!1;let H=C.parent,R=!1;for(;H;){if(H.pendingBranch){H.effects.push(...L),R=!0;break}H=H.parent}!R&&!Y&&sc(L),C.effects=[],S&&t&&t.pendingBranch&&x===t.pendingId&&(t.deps--,t.deps===0&&!E&&t.resolve()),$o(A,"onResolve")},fallback(v){if(!C.pendingBranch)return;const{vnode:E,activeBranch:A,parentComponent:w,container:k,namespace:$}=C;$o(E,"onFallback");const L=g(A),N=()=>{C.isInFallback&&(d(null,v,k,L,w,null,$,a,l),pi(C,v))},X=v.transition&&v.transition.mode==="out-in";X&&(A.transition.afterLeave=N),C.isInFallback=!0,p(A,w,null,!0),X||N()},move(v,E,A){C.activeBranch&&f(C.activeBranch,v,E,A),C.container=v},next(){return C.activeBranch&&g(C.activeBranch)},registerDep(v,E){const A=!!C.pendingBranch;A&&C.deps++;const w=v.vnode.el;v.asyncDep.catch(k=>{Xo(k,v,0)}).then(k=>{if(v.isUnmounted||C.isUnmounted||C.pendingId!==v.suspenseId)return;v.asyncResolved=!0;const{vnode:$}=v;uc(v,k,!1),w&&($.el=w);const L=!w&&v.subTree.el;E(v,$,m(w||v.subTree.el),w?null:g(v.subTree),C,r,l),L&&y(L),du(v,$.el),A&&--C.deps===0&&C.resolve()})},unmount(v,E){C.isUnmounted=!0,C.activeBranch&&p(C.activeBranch,n,v,E),C.pendingBranch&&p(C.pendingBranch,n,v,E)}};return C}function Rw(e,t,n,s,i,o,r,a,l){const c=t.suspense=gu(t,s,n,e.parentNode,document.createElement("div"),null,i,o,r,a,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,o,r);return c.deps===0&&c.resolve(!1,!0),u}function Nw(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=rh(s?n.default:n),e.ssFallback=s?rh(n.fallback):mt(Me)}function rh(e){let t;if(bt(e)){const n=Ti&&e._c;n&&(e._d=!1,rt()),e=e(),n&&(e._d=!0,t=He,tm())}return ht(e)&&(e=Mw(e)),e=Ge(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Fw(e,t){t&&t.pendingBranch?ht(e)?t.effects.push(...e):t.effects.push(e):sc(e)}function pi(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e,i=n.el=t.el;s&&s.subTree===n&&(s.vnode.el=i,du(s,i))}function Bw(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}const Vw=Symbol.for("v-scx"),Hw=()=>an(Vw),Er={};function Is(e,t,n){return Ng(e,t,n)}function Ng(e,t,{immediate:n,deep:s,flush:i,once:o,onTrack:r,onTrigger:a}=Vt){var l;if(t&&o){const v=t;t=(...E)=>{v(...E),C()}}const c=tu()===((l=te)==null?void 0:l.scope)?te:null;let u,d=!1,f=!1;if(ne(e)?(u=()=>e.value,d=li(e)):Xn(e)?(u=li(e)||s===!1?()=>wn(e,1):()=>wn(e),d=!0):ht(e)?(f=!0,d=e.some(v=>Xn(v)||li(v)),u=()=>e.map(v=>{if(ne(v))return v.value;if(Xn(v))return wn(v,li(v)||s===!1?1:void 0);if(bt(v))return Jn(v,c,2)})):bt(e)?t?u=()=>Jn(e,c,2):u=()=>{if(!(c&&c.isUnmounted))return p&&p(),ze(e,c,3,[g])}:u=Ve,t&&s){const v=u;u=()=>wn(v())}let p,g=v=>{p=M.onStop=()=>{Jn(v,c,4),p=M.onStop=void 0}},m;if(za)if(g=Ve,t?n&&ze(t,c,3,[u(),f?[]:void 0,g]):u(),i==="sync"){const v=Hw();m=v.__watcherHandles||(v.__watcherHandles=[])}else return Ve;let y=f?new Array(e.length).fill(Er):Er;const x=()=>{if(!(!M.active||!M.dirty))if(t){const v=M.run();(s||d||(f?v.some((E,A)=>es(E,y[A])):es(v,y)))&&(p&&p(),ze(t,c,3,[v,y===Er?void 0:f&&y[0]===Er?[]:y,g]),y=v)}else M.run()};x.allowRecurse=!!t;let S;i==="sync"?S=x:i==="post"?S=()=>ye(x,c&&c.suspense):(x.pre=!0,c&&(x.id=c.uid),S=()=>uu(x));const M=new eu(u,Ve,S),C=()=>{M.stop(),c&&c.scope&&Qc(c.scope.effects,M)};return t?n?x():y=M.run():i==="post"?ye(M.run.bind(M),c&&c.suspense):M.run(),m&&m.push(C),C}function jw(e,t,n){const s=this.proxy,i=Qt(e)?e.includes(".")?Fg(s,e):()=>s[e]:e.bind(s,s);let o;bt(t)?o=t:(o=t.handler,n=t);const r=te;Mi(this);const a=Ng(i,o.bind(s),n);return r?Mi(r):Rs(),a}function Fg(e,t){const n=t.split(".");return()=>{let s=e;for(let i=0;i0){if(n>=t)return e;n++}if(s=s||new Set,s.has(e))return e;if(s.add(e),ne(e))wn(e.value,t,n,s);else if(ht(e))for(let i=0;i{wn(i,t,n,s)});else if(ig(e))for(const i in e)wn(e[i],t,n,s);return e}function Rt(e,t){const n=xe;if(n===null)return e;const s=Ua(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let o=0;o{e.isMounted=!0}),bu(()=>{e.isUnmounting=!0}),e}const Ne=[Function,Array],Vg={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ne,onEnter:Ne,onAfterEnter:Ne,onEnterCancelled:Ne,onBeforeLeave:Ne,onLeave:Ne,onAfterLeave:Ne,onLeaveCancelled:Ne,onBeforeAppear:Ne,onAppear:Ne,onAfterAppear:Ne,onAppearCancelled:Ne},Ww={name:"BaseTransition",props:Vg,setup(e,{slots:t}){const n=sm(),s=Bg();let i;return()=>{const o=t.default&&mu(t.default(),!0);if(!o||!o.length)return;let r=o[0];if(o.length>1){for(const m of o)if(m.type!==Me){r=m;break}}const a=At(e),{mode:l}=a;if(s.isLeaving)return vl(r);const c=ah(r);if(!c)return vl(r);const u=Lo(c,a,s,n);Io(c,u);const d=n.subTree,f=d&&ah(d);let p=!1;const{getTransitionKey:g}=c.type;if(g){const m=g();i===void 0?i=m:m!==i&&(i=m,p=!0)}if(f&&f.type!==Me&&(!sn(c,f)||p)){const m=Lo(f,a,s,n);if(Io(f,m),l==="out-in")return s.isLeaving=!0,m.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},vl(r);l==="in-out"&&c.type!==Me&&(m.delayLeave=(y,x,S)=>{const M=Hg(s,f);M[String(f.key)]=f,y[Hn]=()=>{x(),y[Hn]=void 0,delete u.delayedLeave},u.delayedLeave=S})}return r}}},zw=Ww;function Hg(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Lo(e,t,n,s){const{appear:i,mode:o,persisted:r=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:f,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:m,onAppear:y,onAfterAppear:x,onAppearCancelled:S}=t,M=String(e.key),C=Hg(n,e),v=(w,k)=>{w&&ze(w,s,9,k)},E=(w,k)=>{const $=k[1];v(w,k),ht(w)?w.every(L=>L.length<=1)&&$():w.length<=1&&$()},A={mode:o,persisted:r,beforeEnter(w){let k=a;if(!n.isMounted)if(i)k=m||a;else return;w[Hn]&&w[Hn](!0);const $=C[M];$&&sn(e,$)&&$.el[Hn]&&$.el[Hn](),v(k,[w])},enter(w){let k=l,$=c,L=u;if(!n.isMounted)if(i)k=y||l,$=x||c,L=S||u;else return;let N=!1;const X=w[Sr]=Y=>{N||(N=!0,Y?v(L,[w]):v($,[w]),A.delayedLeave&&A.delayedLeave(),w[Sr]=void 0)};k?E(k,[w,X]):X()},leave(w,k){const $=String(e.key);if(w[Sr]&&w[Sr](!0),n.isUnmounting)return k();v(d,[w]);let L=!1;const N=w[Hn]=X=>{L||(L=!0,k(),X?v(g,[w]):v(p,[w]),w[Hn]=void 0,C[$]===e&&delete C[$])};C[$]=e,f?E(f,[w,N]):N()},clone(w){return Lo(w,t,n,s)}};return A}function vl(e){if(Va(e))return e=ns(e),e.children=null,e}function ah(e){return Va(e)?e.children?e.children[0]:void 0:e}function Io(e,t){e.shapeFlag&6&&e.component?Io(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function mu(e,t=!1,n){let s=[],i=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader,Va=e=>e.type.__isKeepAlive;function Uw(e,t){jg(e,"a",t)}function Kw(e,t){jg(e,"da",t)}function jg(e,t,n=te){const s=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Ha(t,s,n),n){let i=n.parent;for(;i&&i.parent;)Va(i.parent.vnode)&&Yw(s,t,n,i),i=i.parent}}function Yw(e,t,n,s){const i=Ha(t,e,s,!0);zg(()=>{Qc(s[t],i)},n)}function Ha(e,t,n=te,s=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;Ws(),Mi(n);const a=ze(t,n,e,r);return Rs(),zs(),a});return s?i.unshift(o):i.push(o),o}}const kn=e=>(t,n=te)=>(!za||e==="sp")&&Ha(e,(...s)=>t(...s),n),Gw=kn("bm"),_u=kn("m"),qw=kn("bu"),Wg=kn("u"),bu=kn("bum"),zg=kn("um"),Xw=kn("sp"),Qw=kn("rtg"),Jw=kn("rtc");function Zw(e,t=te){Ha("ec",e,t)}function Ai(e,t,n,s){let i;const o=n&&n[s];if(ht(e)||Qt(e)){i=new Array(e.length);for(let r=0,a=e.length;rt(r,a,void 0,o&&o[a]));else{const r=Object.keys(e);i=new Array(r.length);for(let a=0,l=r.length;ae?im(e)?Ua(e)||e.proxy:ic(e.parent):null,po=Zt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ic(e.parent),$root:e=>ic(e.root),$emit:e=>e.emit,$options:e=>yu(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,uu(e.update)}),$nextTick:e=>e.n||(e.n=La.bind(e.proxy)),$watch:e=>jw.bind(e)}),xl=(e,t)=>e!==Vt&&!e.__isScriptSetup&&Ot(e,t),t1={get({_:e},t){const{ctx:n,setupState:s,data:i,props:o,accessCache:r,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const p=r[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(xl(s,t))return r[t]=1,s[t];if(i!==Vt&&Ot(i,t))return r[t]=2,i[t];if((c=e.propsOptions[0])&&Ot(c,t))return r[t]=3,o[t];if(n!==Vt&&Ot(n,t))return r[t]=4,n[t];oc&&(r[t]=0)}}const u=po[t];let d,f;if(u)return t==="$attrs"&&we(e,"get",t),u(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==Vt&&Ot(n,t))return r[t]=4,n[t];if(f=l.config.globalProperties,Ot(f,t))return f[t]},set({_:e},t,n){const{data:s,setupState:i,ctx:o}=e;return xl(i,t)?(i[t]=n,!0):s!==Vt&&Ot(s,t)?(s[t]=n,!0):Ot(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:i,propsOptions:o}},r){let a;return!!n[r]||e!==Vt&&Ot(e,r)||xl(t,r)||(a=o[0])&&Ot(a,r)||Ot(s,r)||Ot(po,r)||Ot(i.config.globalProperties,r)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ot(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function lh(e){return ht(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let oc=!0;function e1(e){const t=yu(e),n=e.proxy,s=e.ctx;oc=!1,t.beforeCreate&&ch(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:r,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:g,activated:m,deactivated:y,beforeDestroy:x,beforeUnmount:S,destroyed:M,unmounted:C,render:v,renderTracked:E,renderTriggered:A,errorCaptured:w,serverPrefetch:k,expose:$,inheritAttrs:L,components:N,directives:X,filters:Y}=t;if(c&&n1(c,s,null),r)for(const W in r){const U=r[W];bt(U)&&(s[W]=U.bind(n))}if(i){const W=i.call(n,n);Nt(W)&&(e.data=Go(W))}if(oc=!0,o)for(const W in o){const U=o[W],it=bt(U)?U.bind(n,n):bt(U.get)?U.get.bind(n,n):Ve,lt=!bt(U)&&bt(U.set)?U.set.bind(n):Ve,pt=Be({get:it,set:lt});Object.defineProperty(s,W,{enumerable:!0,configurable:!0,get:()=>pt.value,set:ft=>pt.value=ft})}if(a)for(const W in a)Ug(a[W],s,n,W);if(l){const W=bt(l)?l.call(n):l;Reflect.ownKeys(W).forEach(U=>{Yr(U,W[U])})}u&&ch(u,e,"c");function R(W,U){ht(U)?U.forEach(it=>W(it.bind(n))):U&&W(U.bind(n))}if(R(Gw,d),R(_u,f),R(qw,p),R(Wg,g),R(Uw,m),R(Kw,y),R(Zw,w),R(Jw,E),R(Qw,A),R(bu,S),R(zg,C),R(Xw,k),ht($))if($.length){const W=e.exposed||(e.exposed={});$.forEach(U=>{Object.defineProperty(W,U,{get:()=>n[U],set:it=>n[U]=it})})}else e.exposed||(e.exposed={});v&&e.render===Ve&&(e.render=v),L!=null&&(e.inheritAttrs=L),N&&(e.components=N),X&&(e.directives=X)}function n1(e,t,n=Ve){ht(e)&&(e=rc(e));for(const s in e){const i=e[s];let o;Nt(i)?"default"in i?o=an(i.from||s,i.default,!0):o=an(i.from||s):o=an(i),ne(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[s]=o}}function ch(e,t,n){ze(ht(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ug(e,t,n,s){const i=s.includes(".")?Fg(n,s):()=>n[s];if(Qt(e)){const o=t[e];bt(o)&&Is(i,o)}else if(bt(e))Is(i,e.bind(n));else if(Nt(e))if(ht(e))e.forEach(o=>Ug(o,t,n,s));else{const o=bt(e.handler)?e.handler.bind(n):t[e.handler];bt(o)&&Is(i,o,e)}}function yu(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,a=o.get(t);let l;return a?l=a:!i.length&&!n&&!s?l=t:(l={},i.length&&i.forEach(c=>sa(l,c,r,!0)),sa(l,t,r)),Nt(t)&&o.set(t,l),l}function sa(e,t,n,s=!1){const{mixins:i,extends:o}=t;o&&sa(e,o,n,!0),i&&i.forEach(r=>sa(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const a=s1[r]||n&&n[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const s1={data:uh,props:dh,emits:dh,methods:oo,computed:oo,beforeCreate:he,created:he,beforeMount:he,mounted:he,beforeUpdate:he,updated:he,beforeDestroy:he,beforeUnmount:he,destroyed:he,unmounted:he,activated:he,deactivated:he,errorCaptured:he,serverPrefetch:he,components:oo,directives:oo,watch:o1,provide:uh,inject:i1};function uh(e,t){return t?e?function(){return Zt(bt(e)?e.call(this,this):e,bt(t)?t.call(this,this):t)}:t:e}function i1(e,t){return oo(rc(e),rc(t))}function rc(e){if(ht(e)){const t={};for(let n=0;n1)return n&&bt(t)?t.call(s&&s.proxy):t}}function l1(){return!!(te||xe||Ro)}function c1(e,t,n,s=!1){const i={},o={};ta(o,Wa,1),e.propsDefaults=Object.create(null),Yg(e,t,i,o);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);n?e.props=s?i:Sg(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function u1(e,t,n,s){const{props:i,attrs:o,vnode:{patchFlag:r}}=e,a=At(i),[l]=e.propsOptions;let c=!1;if((s||r>0)&&!(r&16)){if(r&8){const u=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[f,p]=Gg(d,t,!0);Zt(r,f),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return Nt(e)&&s.set(e,di),di;if(ht(o))for(let u=0;u-1,p[1]=m<0||g-1||Ot(p,"default"))&&a.push(d)}}}const c=[r,a];return Nt(e)&&s.set(e,c),c}function hh(e){return e[0]!=="$"}function fh(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function ph(e,t){return fh(e)===fh(t)}function gh(e,t){return ht(t)?t.findIndex(n=>ph(n,e)):bt(t)&&ph(t,e)?0:-1}const qg=e=>e[0]==="_"||e==="$stable",vu=e=>ht(e)?e.map(Ge):[Ge(e)],d1=(e,t,n)=>{if(t._n)return t;const s=Kt((...i)=>vu(t(...i)),n);return s._c=!1,s},Xg=(e,t,n)=>{const s=e._ctx;for(const i in e){if(qg(i))continue;const o=e[i];if(bt(o))t[i]=d1(i,o,s);else if(o!=null){const r=vu(o);t[i]=()=>r}}},Qg=(e,t)=>{const n=vu(t);e.slots.default=()=>n},h1=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=At(t),ta(t,"_",n)):Xg(t,e.slots={})}else e.slots={},t&&Qg(e,t);ta(e.slots,Wa,1)},f1=(e,t,n)=>{const{vnode:s,slots:i}=e;let o=!0,r=Vt;if(s.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:(Zt(i,t),!n&&a===1&&delete i._):(o=!t.$stable,Xg(t,i)),r=t}else t&&(Qg(e,t),r={default:1});if(o)for(const a in i)!qg(a)&&r[a]==null&&delete i[a]};function lc(e,t,n,s,i=!1){if(ht(e)){e.forEach((f,p)=>lc(f,t&&(ht(t)?t[p]:t),n,s,i));return}if(Kr(s)&&!i)return;const o=s.shapeFlag&4?Ua(s.component)||s.component.proxy:s.el,r=i?null:o,{i:a,r:l}=e,c=t&&t.r,u=a.refs===Vt?a.refs={}:a.refs,d=a.setupState;if(c!=null&&c!==l&&(Qt(c)?(u[c]=null,Ot(d,c)&&(d[c]=null)):ne(c)&&(c.value=null)),bt(l))Jn(l,a,12,[r,u]);else{const f=Qt(l),p=ne(l);if(f||p){const g=()=>{if(e.f){const m=f?Ot(d,l)?d[l]:u[l]:l.value;i?ht(m)&&Qc(m,o):ht(m)?m.includes(o)||m.push(o):f?(u[l]=[o],Ot(d,l)&&(d[l]=u[l])):(l.value=[o],e.k&&(u[e.k]=l.value))}else f?(u[l]=r,Ot(d,l)&&(d[l]=r)):p&&(l.value=r,e.k&&(u[e.k]=r))};r?(g.id=-1,ye(g,n)):g()}}}const ye=Fw;function p1(e){return g1(e)}function g1(e,t){const n=rg();n.__VUE__=!0;const{insert:s,remove:i,patchProp:o,createElement:r,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=Ve,insertStaticContent:g}=e,m=(T,D,I,V=null,K=null,q=null,Z=void 0,Q=null,B=!!D.dynamicChildren)=>{if(T===D)return;T&&!sn(T,D)&&(V=j(T),ft(T,K,q,!0),T=null),D.patchFlag===-2&&(B=!1,D.dynamicChildren=null);const{type:G,ref:at,shapeFlag:dt}=D;switch(G){case ja:y(T,D,I,V);break;case Me:x(T,D,I,V);break;case Gr:T==null&&S(D,I,V,Z);break;case Jt:N(T,D,I,V,K,q,Z,Q,B);break;default:dt&1?v(T,D,I,V,K,q,Z,Q,B):dt&6?X(T,D,I,V,K,q,Z,Q,B):(dt&64||dt&128)&&G.process(T,D,I,V,K,q,Z,Q,B,J)}at!=null&&K&&lc(at,T&&T.ref,q,D||T,!D)},y=(T,D,I,V)=>{if(T==null)s(D.el=a(D.children),I,V);else{const K=D.el=T.el;D.children!==T.children&&c(K,D.children)}},x=(T,D,I,V)=>{T==null?s(D.el=l(D.children||""),I,V):D.el=T.el},S=(T,D,I,V)=>{[T.el,T.anchor]=g(T.children,D,I,V,T.el,T.anchor)},M=({el:T,anchor:D},I,V)=>{let K;for(;T&&T!==D;)K=f(T),s(T,I,V),T=K;s(D,I,V)},C=({el:T,anchor:D})=>{let I;for(;T&&T!==D;)I=f(T),i(T),T=I;i(D)},v=(T,D,I,V,K,q,Z,Q,B)=>{D.type==="svg"?Z="svg":D.type==="math"&&(Z="mathml"),T==null?E(D,I,V,K,q,Z,Q,B):k(T,D,K,q,Z,Q,B)},E=(T,D,I,V,K,q,Z,Q)=>{let B,G;const{props:at,shapeFlag:dt,transition:ct,dirs:gt}=T;if(B=T.el=r(T.type,q,at&&at.is,at),dt&8?u(B,T.children):dt&16&&w(T.children,B,null,V,K,wl(T,q),Z,Q),gt&&ys(T,null,V,"created"),A(B,T,T.scopeId,Z,V),at){for(const kt in at)kt!=="value"&&!zr(kt)&&o(B,kt,null,at[kt],q,T.children,V,K,wt);"value"in at&&o(B,"value",null,at.value,q),(G=at.onVnodeBeforeMount)&&Ze(G,V,T)}gt&&ys(T,null,V,"beforeMount");const vt=m1(K,ct);vt&&ct.beforeEnter(B),s(B,D,I),((G=at&&at.onVnodeMounted)||vt||gt)&&ye(()=>{G&&Ze(G,V,T),vt&&ct.enter(B),gt&&ys(T,null,V,"mounted")},K)},A=(T,D,I,V,K)=>{if(I&&p(T,I),V)for(let q=0;q{for(let G=B;G{const Q=D.el=T.el;let{patchFlag:B,dynamicChildren:G,dirs:at}=D;B|=T.patchFlag&16;const dt=T.props||Vt,ct=D.props||Vt;let gt;if(I&&vs(I,!1),(gt=ct.onVnodeBeforeUpdate)&&Ze(gt,I,D,T),at&&ys(D,T,I,"beforeUpdate"),I&&vs(I,!0),G?$(T.dynamicChildren,G,Q,I,V,wl(D,K),q):Z||U(T,D,Q,null,I,V,wl(D,K),q,!1),B>0){if(B&16)L(Q,D,dt,ct,I,V,K);else if(B&2&&dt.class!==ct.class&&o(Q,"class",null,ct.class,K),B&4&&o(Q,"style",dt.style,ct.style,K),B&8){const vt=D.dynamicProps;for(let kt=0;kt{gt&&Ze(gt,I,D,T),at&&ys(D,T,I,"updated")},V)},$=(T,D,I,V,K,q,Z)=>{for(let Q=0;Q{if(I!==V){if(I!==Vt)for(const Q in I)!zr(Q)&&!(Q in V)&&o(T,Q,I[Q],null,Z,D.children,K,q,wt);for(const Q in V){if(zr(Q))continue;const B=V[Q],G=I[Q];B!==G&&Q!=="value"&&o(T,Q,G,B,Z,D.children,K,q,wt)}"value"in V&&o(T,"value",I.value,V.value,Z)}},N=(T,D,I,V,K,q,Z,Q,B)=>{const G=D.el=T?T.el:a(""),at=D.anchor=T?T.anchor:a("");let{patchFlag:dt,dynamicChildren:ct,slotScopeIds:gt}=D;gt&&(Q=Q?Q.concat(gt):gt),T==null?(s(G,I,V),s(at,I,V),w(D.children,I,at,K,q,Z,Q,B)):dt>0&&dt&64&&ct&&T.dynamicChildren?($(T.dynamicChildren,ct,I,K,q,Z,Q),(D.key!=null||K&&D===K.subTree)&&Jg(T,D,!0)):U(T,D,I,at,K,q,Z,Q,B)},X=(T,D,I,V,K,q,Z,Q,B)=>{D.slotScopeIds=Q,T==null?D.shapeFlag&512?K.ctx.activate(D,I,V,Z,B):Y(D,I,V,K,q,Z,B):H(T,D,B)},Y=(T,D,I,V,K,q,Z)=>{const Q=T.component=C1(T,V,K);if(Va(T)&&(Q.ctx.renderer=J),A1(Q),Q.asyncDep){if(K&&K.registerDep(Q,R),!T.el){const B=Q.subTree=mt(Me);x(null,B,D,I)}}else R(Q,T,D,I,K,q,Z)},H=(T,D,I)=>{const V=D.component=T.component;if(Ow(T,D,I))if(V.asyncDep&&!V.asyncResolved){W(V,D,I);return}else V.next=D,Cw(V.update),V.effect.dirty=!0,V.update();else D.el=T.el,V.vnode=D},R=(T,D,I,V,K,q,Z)=>{const Q=()=>{if(T.isMounted){let{next:at,bu:dt,u:ct,parent:gt,vnode:vt}=T;{const us=Zg(T);if(us){at&&(at.el=vt.el,W(T,at,Z)),us.asyncDep.then(()=>{T.isUnmounted||Q()});return}}let kt=at,$t;vs(T,!1),at?(at.el=vt.el,W(T,at,Z)):at=vt,dt&&Ur(dt),($t=at.props&&at.props.onVnodeBeforeUpdate)&&Ze($t,gt,at,vt),vs(T,!0);const zt=yl(T),Ee=T.subTree;T.subTree=zt,m(Ee,zt,d(Ee.el),j(Ee),T,K,q),at.el=zt.el,kt===null&&du(T,zt.el),ct&&ye(ct,K),($t=at.props&&at.props.onVnodeUpdated)&&ye(()=>Ze($t,gt,at,vt),K)}else{let at;const{el:dt,props:ct}=D,{bm:gt,m:vt,parent:kt}=T,$t=Kr(D);if(vs(T,!1),gt&&Ur(gt),!$t&&(at=ct&&ct.onVnodeBeforeMount)&&Ze(at,kt,D),vs(T,!0),dt&&F){const zt=()=>{T.subTree=yl(T),F(dt,T.subTree,T,K,null)};$t?D.type.__asyncLoader().then(()=>!T.isUnmounted&&zt()):zt()}else{const zt=T.subTree=yl(T);m(null,zt,I,V,T,K,q),D.el=zt.el}if(vt&&ye(vt,K),!$t&&(at=ct&&ct.onVnodeMounted)){const zt=D;ye(()=>Ze(at,kt,zt),K)}(D.shapeFlag&256||kt&&Kr(kt.vnode)&&kt.vnode.shapeFlag&256)&&T.a&&ye(T.a,K),T.isMounted=!0,D=I=V=null}},B=T.effect=new eu(Q,Ve,()=>uu(G),T.scope),G=T.update=()=>{B.dirty&&B.run()};G.id=T.uid,vs(T,!0),G()},W=(T,D,I)=>{D.component=T;const V=T.vnode.props;T.vnode=D,T.next=null,u1(T,D.props,V,I),f1(T,D.children,I),Ws(),nh(T),zs()},U=(T,D,I,V,K,q,Z,Q,B=!1)=>{const G=T&&T.children,at=T?T.shapeFlag:0,dt=D.children,{patchFlag:ct,shapeFlag:gt}=D;if(ct>0){if(ct&128){lt(G,dt,I,V,K,q,Z,Q,B);return}else if(ct&256){it(G,dt,I,V,K,q,Z,Q,B);return}}gt&8?(at&16&&wt(G,K,q),dt!==G&&u(I,dt)):at&16?gt&16?lt(G,dt,I,V,K,q,Z,Q,B):wt(G,K,q,!0):(at&8&&u(I,""),gt&16&&w(dt,I,V,K,q,Z,Q,B))},it=(T,D,I,V,K,q,Z,Q,B)=>{T=T||di,D=D||di;const G=T.length,at=D.length,dt=Math.min(G,at);let ct;for(ct=0;ctat?wt(T,K,q,!0,!1,dt):w(D,I,V,K,q,Z,Q,B,dt)},lt=(T,D,I,V,K,q,Z,Q,B)=>{let G=0;const at=D.length;let dt=T.length-1,ct=at-1;for(;G<=dt&&G<=ct;){const gt=T[G],vt=D[G]=B?jn(D[G]):Ge(D[G]);if(sn(gt,vt))m(gt,vt,I,null,K,q,Z,Q,B);else break;G++}for(;G<=dt&&G<=ct;){const gt=T[dt],vt=D[ct]=B?jn(D[ct]):Ge(D[ct]);if(sn(gt,vt))m(gt,vt,I,null,K,q,Z,Q,B);else break;dt--,ct--}if(G>dt){if(G<=ct){const gt=ct+1,vt=gtct)for(;G<=dt;)ft(T[G],K,q,!0),G++;else{const gt=G,vt=G,kt=new Map;for(G=vt;G<=ct;G++){const ae=D[G]=B?jn(D[G]):Ge(D[G]);ae.key!=null&&kt.set(ae.key,G)}let $t,zt=0;const Ee=ct-vt+1;let us=!1,sr=0;const ds=new Array(Ee);for(G=0;G=Ee){ft(ae,K,q,!0);continue}let Le;if(ae.key!=null)Le=kt.get(ae.key);else for($t=vt;$t<=ct;$t++)if(ds[$t-vt]===0&&sn(ae,D[$t])){Le=$t;break}Le===void 0?ft(ae,K,q,!0):(ds[Le-vt]=G+1,Le>=sr?sr=Le:us=!0,m(ae,D[Le],I,null,K,q,Z,Q,B),zt++)}const ir=us?_1(ds):di;for($t=ir.length-1,G=Ee-1;G>=0;G--){const ae=vt+G,Le=D[ae],Dn=ae+1{const{el:q,type:Z,transition:Q,children:B,shapeFlag:G}=T;if(G&6){pt(T.component.subTree,D,I,V);return}if(G&128){T.suspense.move(D,I,V);return}if(G&64){Z.move(T,D,I,J);return}if(Z===Jt){s(q,D,I);for(let dt=0;dtQ.enter(q),K);else{const{leave:dt,delayLeave:ct,afterLeave:gt}=Q,vt=()=>s(q,D,I),kt=()=>{dt(q,()=>{vt(),gt&>()})};ct?ct(q,vt,kt):kt()}else s(q,D,I)},ft=(T,D,I,V=!1,K=!1)=>{const{type:q,props:Z,ref:Q,children:B,dynamicChildren:G,shapeFlag:at,patchFlag:dt,dirs:ct}=T;if(Q!=null&&lc(Q,null,I,T,!0),at&256){D.ctx.deactivate(T);return}const gt=at&1&&ct,vt=!Kr(T);let kt;if(vt&&(kt=Z&&Z.onVnodeBeforeUnmount)&&Ze(kt,D,T),at&6)Pt(T.component,I,V);else{if(at&128){T.suspense.unmount(I,V);return}gt&&ys(T,null,D,"beforeUnmount"),at&64?T.type.remove(T,D,I,K,J,V):G&&(q!==Jt||dt>0&&dt&64)?wt(G,D,I,!1,!0):(q===Jt&&dt&384||!K&&at&16)&&wt(B,D,I),V&&St(T)}(vt&&(kt=Z&&Z.onVnodeUnmounted)||gt)&&ye(()=>{kt&&Ze(kt,D,T),gt&&ys(T,null,D,"unmounted")},I)},St=T=>{const{type:D,el:I,anchor:V,transition:K}=T;if(D===Jt){xt(I,V);return}if(D===Gr){C(T);return}const q=()=>{i(I),K&&!K.persisted&&K.afterLeave&&K.afterLeave()};if(T.shapeFlag&1&&K&&!K.persisted){const{leave:Z,delayLeave:Q}=K,B=()=>Z(I,q);Q?Q(T.el,q,B):B()}else q()},xt=(T,D)=>{let I;for(;T!==D;)I=f(T),i(T),T=I;i(D)},Pt=(T,D,I)=>{const{bum:V,scope:K,update:q,subTree:Z,um:Q}=T;V&&Ur(V),K.stop(),q&&(q.active=!1,ft(Z,T,D,I)),Q&&ye(Q,D),ye(()=>{T.isUnmounted=!0},D),D&&D.pendingBranch&&!D.isUnmounted&&T.asyncDep&&!T.asyncResolved&&T.suspenseId===D.pendingId&&(D.deps--,D.deps===0&&D.resolve())},wt=(T,D,I,V=!1,K=!1,q=0)=>{for(let Z=q;ZT.shapeFlag&6?j(T.component.subTree):T.shapeFlag&128?T.suspense.next():f(T.anchor||T.el),et=(T,D,I)=>{T==null?D._vnode&&ft(D._vnode,null,null,!0):m(D._vnode||null,T,D,null,null,null,I),nh(),Dg(),D._vnode=T},J={p:m,um:ft,m:pt,r:St,mt:Y,mc:w,pc:U,pbc:$,n:j,o:e};let ot,F;return t&&([ot,F]=t(J)),{render:et,hydrate:ot,createApp:a1(et,ot)}}function wl({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function vs({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function m1(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Jg(e,t,n=!1){const s=e.children,i=t.children;if(ht(s)&&ht(i))for(let o=0;o>1,e[n[a]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,r=n[o-1];o-- >0;)n[o]=r,r=t[r];return n}function Zg(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Zg(t)}const b1=e=>e.__isTeleport,Jt=Symbol.for("v-fgt"),ja=Symbol.for("v-txt"),Me=Symbol.for("v-cmt"),Gr=Symbol.for("v-stc"),go=[];let He=null;function rt(e=!1){go.push(He=e?null:[])}function tm(){go.pop(),He=go[go.length-1]||null}let Ti=1;function mh(e){Ti+=e}function em(e){return e.dynamicChildren=Ti>0?He||di:null,tm(),Ti>0&&He&&He.push(e),e}function ut(e,t,n,s,i,o){return em(b(e,t,n,s,i,o,!0))}function Ue(e,t,n,s,i){return em(mt(e,t,n,s,i,!0))}function ia(e){return e?e.__v_isVNode===!0:!1}function sn(e,t){return e.type===t.type&&e.key===t.key}const Wa="__vInternal",nm=({key:e})=>e??null,qr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Qt(e)||ne(e)||bt(e)?{i:xe,r:e,k:t,f:!!n}:e:null);function b(e,t=null,n=null,s=0,i=null,o=e===Jt?0:1,r=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&nm(t),ref:t&&qr(t),scopeId:Ra,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:xe};return a?(xu(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Qt(n)?8:16),Ti>0&&!r&&He&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&He.push(l),l}const mt=y1;function y1(e,t=null,n=null,s=0,i=null,o=!1){if((!e||e===Ig)&&(e=Me),ia(e)){const a=ns(e,t,!0);return n&&xu(a,n),Ti>0&&!o&&He&&(a.shapeFlag&6?He[He.indexOf(e)]=a:He.push(a)),a.patchFlag|=-2,a}if(O1(e)&&(e=e.__vccOpts),t){t=v1(t);let{class:a,style:l}=t;a&&!Qt(a)&&(t.class=ge(a)),Nt(l)&&($a(l)&&!ht(l)&&(l=Zt({},l)),t.style=Zc(l))}const r=Qt(e)?1:Dw(e)?128:b1(e)?64:Nt(e)?4:bt(e)?2:0;return b(e,t,n,s,i,r,o,!0)}function v1(e){return e?$a(e)||Wa in e?Zt({},e):e:null}function ns(e,t,n=!1){const{props:s,ref:i,patchFlag:o,children:r}=e,a=t?w1(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&nm(a),ref:t&&t.ref?n&&i?ht(i)?i.concat(qr(t)):[i,qr(t)]:qr(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Jt?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ns(e.ssContent),ssFallback:e.ssFallback&&ns(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Tt(e=" ",t=0){return mt(ja,null,e,t)}function x1(e,t){const n=mt(Gr,null,e);return n.staticCount=t,n}function me(e="",t=!1){return t?(rt(),Ue(Me,null,e)):mt(Me,null,e)}function Ge(e){return e==null||typeof e=="boolean"?mt(Me):ht(e)?mt(Jt,null,e.slice()):typeof e=="object"?jn(e):mt(ja,null,String(e))}function jn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ns(e)}function xu(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(ht(t))n=16;else if(typeof t=="object")if(s&65){const i=t.default;i&&(i._c&&(i._d=!1),xu(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(Wa in t)?t._ctx=xe:i===3&&xe&&(xe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else bt(t)?(t={default:t,_ctx:xe},n=32):(t=String(t),s&64?(n=16,t=[Tt(t)]):n=8);e.children=t,e.shapeFlag|=n}function w1(...e){const t={};for(let n=0;nte||xe;let wu,cc;{const e=rg(),t=(n,s)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(s),o=>{i.length>1?i.forEach(r=>r(o)):i[0](o)}};wu=t("__VUE_INSTANCE_SETTERS__",n=>te=n),cc=t("__VUE_SSR_SETTERS__",n=>za=n)}const Mi=e=>{wu(e),e.scope.on()},Rs=()=>{te&&te.scope.off(),wu(null)};function im(e){return e.vnode.shapeFlag&4}let za=!1;function A1(e,t=!1){t&&cc(t);const{props:n,children:s}=e.vnode,i=im(e);c1(e,n,i,t),h1(e,s);const o=i?T1(e,t):void 0;return t&&cc(!1),o}function T1(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=qo(new Proxy(e.ctx,t1));const{setup:s}=n;if(s){const i=e.setupContext=s.length>1?P1(e):null;Mi(e),Ws();const o=Jn(s,e,0,[e.props,i]);if(zs(),Rs(),ng(o)){if(o.then(Rs,Rs),t)return o.then(r=>{uc(e,r,t)}).catch(r=>{Xo(r,e,0)});e.asyncDep=o}else uc(e,o,t)}else om(e,t)}function uc(e,t,n){bt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Nt(t)&&(e.setupState=Pg(t)),om(e,n)}let _h;function om(e,t,n){const s=e.type;if(!e.render){if(!t&&_h&&!s.render){const i=s.template||yu(e).template;if(i){const{isCustomElement:o,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:l}=s,c=Zt(Zt({isCustomElement:o,delimiters:a},r),l);s.render=_h(i,c)}}e.render=s.render||Ve}{Mi(e),Ws();try{e1(e)}finally{zs(),Rs()}}}function M1(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return we(e,"get","$attrs"),t[n]}}))}function P1(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return M1(e)},slots:e.slots,emit:e.emit,expose:t}}function Ua(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Pg(qo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in po)return po[n](e)},has(t,n){return n in t||n in po}}))}function k1(e,t=!0){return bt(e)?e.displayName||e.name:e.name||t&&e.__name}function O1(e){return bt(e)&&"__vccOpts"in e}const Be=(e,t)=>_w(e,t,za);function Pi(e,t,n){const s=arguments.length;return s===2?Nt(t)&&!ht(t)?ia(t)?mt(e,null,[t]):mt(e,t):mt(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&ia(n)&&(n=[n]),mt(e,t,n))}const rm="3.4.3",D1="http://www.w3.org/2000/svg",$1="http://www.w3.org/1998/Math/MathML",Wn=typeof document<"u"?document:null,bh=Wn&&Wn.createElement("template"),L1={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const i=t==="svg"?Wn.createElementNS(D1,e):t==="mathml"?Wn.createElementNS($1,e):Wn.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:e=>Wn.createTextNode(e),createComment:e=>Wn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Wn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,i,o){const r=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{bh.innerHTML=s==="svg"?`${e}`:s==="mathml"?`${e}`:e;const a=bh.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Rn="transition",Ji="animation",ki=Symbol("_vtc"),Us=(e,{slots:t})=>Pi(zw,lm(e),t);Us.displayName="Transition";const am={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},I1=Us.props=Zt({},Vg,am),xs=(e,t=[])=>{ht(e)?e.forEach(n=>n(...t)):e&&e(...t)},yh=e=>e?ht(e)?e.some(t=>t.length>1):e.length>1:!1;function lm(e){const t={};for(const N in e)N in am||(t[N]=e[N]);if(e.css===!1)return t;const{name:n="v",type:s,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:c=r,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,g=R1(i),m=g&&g[0],y=g&&g[1],{onBeforeEnter:x,onEnter:S,onEnterCancelled:M,onLeave:C,onLeaveCancelled:v,onBeforeAppear:E=x,onAppear:A=S,onAppearCancelled:w=M}=t,k=(N,X,Y)=>{Bn(N,X?u:a),Bn(N,X?c:r),Y&&Y()},$=(N,X)=>{N._isLeaving=!1,Bn(N,d),Bn(N,p),Bn(N,f),X&&X()},L=N=>(X,Y)=>{const H=N?A:S,R=()=>k(X,N,Y);xs(H,[X,R]),vh(()=>{Bn(X,N?l:o),_n(X,N?u:a),yh(H)||xh(X,s,m,R)})};return Zt(t,{onBeforeEnter(N){xs(x,[N]),_n(N,o),_n(N,r)},onBeforeAppear(N){xs(E,[N]),_n(N,l),_n(N,c)},onEnter:L(!1),onAppear:L(!0),onLeave(N,X){N._isLeaving=!0;const Y=()=>$(N,X);_n(N,d),um(),_n(N,f),vh(()=>{N._isLeaving&&(Bn(N,d),_n(N,p),yh(C)||xh(N,s,y,Y))}),xs(C,[N,Y])},onEnterCancelled(N){k(N,!1),xs(M,[N])},onAppearCancelled(N){k(N,!0),xs(w,[N])},onLeaveCancelled(N){$(N),xs(v,[N])}})}function R1(e){if(e==null)return null;if(Nt(e))return[El(e.enter),El(e.leave)];{const t=El(e);return[t,t]}}function El(e){return og(e)}function _n(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[ki]||(e[ki]=new Set)).add(t)}function Bn(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[ki];n&&(n.delete(t),n.size||(e[ki]=void 0))}function vh(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let N1=0;function xh(e,t,n,s){const i=e._endId=++N1,o=()=>{i===e._endId&&s()};if(n)return setTimeout(o,n);const{type:r,timeout:a,propCount:l}=cm(e,t);if(!r)return s();const c=r+"end";let u=0;const d=()=>{e.removeEventListener(c,f),o()},f=p=>{p.target===e&&++u>=l&&d()};setTimeout(()=>{u(n[g]||"").split(", "),i=s(`${Rn}Delay`),o=s(`${Rn}Duration`),r=wh(i,o),a=s(`${Ji}Delay`),l=s(`${Ji}Duration`),c=wh(a,l);let u=null,d=0,f=0;t===Rn?r>0&&(u=Rn,d=r,f=o.length):t===Ji?c>0&&(u=Ji,d=c,f=l.length):(d=Math.max(r,c),u=d>0?r>c?Rn:Ji:null,f=u?u===Rn?o.length:l.length:0);const p=u===Rn&&/\b(transform|all)(,|$)/.test(s(`${Rn}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function wh(e,t){for(;e.lengthEh(n)+Eh(e[s])))}function Eh(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function um(){return document.body.offsetHeight}function F1(e,t,n){const s=e[ki];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const B1=Symbol("_vod"),V1=Symbol("");function H1(e,t,n){const s=e.style,i=Qt(n);if(n&&!i){if(t&&!Qt(t))for(const o in t)n[o]==null&&dc(s,o,"");for(const o in n)dc(s,o,n[o])}else{const o=s.display;if(i){if(t!==n){const r=s[V1];r&&(n+=";"+r),s.cssText=n}}else t&&e.removeAttribute("style");B1 in e&&(s.display=o)}}const Sh=/\s*!important$/;function dc(e,t,n){if(ht(n))n.forEach(s=>dc(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=j1(e,t);Sh.test(n)?e.setProperty(ji(s),n.replace(Sh,""),"important"):e[s]=n}}const Ch=["Webkit","Moz","ms"],Sl={};function j1(e,t){const n=Sl[t];if(n)return n;let s=un(t);if(s!=="filter"&&s in e)return Sl[t]=s;s=ka(s);for(let i=0;iCl||(G1.then(()=>Cl=0),Cl=Date.now());function X1(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;ze(Q1(s,n.value),t,5,[s])};return n.value=e,n.attached=q1(),n}function Q1(e,t){if(ht(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>i=>!i._stopped&&s&&s(i))}else return t}const Ph=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,J1=(e,t,n,s,i,o,r,a,l)=>{const c=i==="svg";t==="class"?F1(e,s,c):t==="style"?H1(e,n,s):Ta(t)?Xc(t)||K1(e,t,n,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Z1(e,t,s,c))?z1(e,t,s,o,r,a,l):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),W1(e,t,s,c))};function Z1(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ph(t)&&bt(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Ph(t)&&Qt(n)?!1:t in e}const dm=new WeakMap,hm=new WeakMap,oa=Symbol("_moveCb"),kh=Symbol("_enterCb"),fm={name:"TransitionGroup",props:Zt({},I1,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=sm(),s=Bg();let i,o;return Wg(()=>{if(!i.length)return;const r=e.moveClass||`${e.name||"v"}-move`;if(!iE(i[0].el,n.vnode.el,r))return;i.forEach(eE),i.forEach(nE);const a=i.filter(sE);um(),a.forEach(l=>{const c=l.el,u=c.style;_n(c,r),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[oa]=f=>{f&&f.target!==c||(!f||/transform$/.test(f.propertyName))&&(c.removeEventListener("transitionend",d),c[oa]=null,Bn(c,r))};c.addEventListener("transitionend",d)})}),()=>{const r=At(e),a=lm(r);let l=r.tag||Jt;i=o,o=t.default?mu(t.default()):[];for(let c=0;cdelete e.mode;fm.props;const pm=fm;function eE(e){const t=e.el;t[oa]&&t[oa](),t[kh]&&t[kh]()}function nE(e){hm.set(e,e.el.getBoundingClientRect())}function sE(e){const t=dm.get(e),n=hm.get(e),s=t.left-n.left,i=t.top-n.top;if(s||i){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${s}px,${i}px)`,o.transitionDuration="0s",e}}function iE(e,t,n){const s=e.cloneNode(),i=e[ki];i&&i.forEach(a=>{a.split(/\s+/).forEach(l=>l&&s.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&s.classList.add(a)),s.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(s);const{hasTransform:r}=cm(s);return o.removeChild(s),r}const ra=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ht(t)?n=>Ur(t,n):t};function oE(e){e.target.composing=!0}function Oh(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const gi=Symbol("_assign"),Bt={created(e,{modifiers:{lazy:t,trim:n,number:s}},i){e[gi]=ra(i);const o=s||i.props&&i.props.type==="number";Ps(e,t?"change":"input",r=>{if(r.target.composing)return;let a=e.value;n&&(a=a.trim()),o&&(a=Ql(a)),e[gi](a)}),n&&Ps(e,"change",()=>{e.value=e.value.trim()}),t||(Ps(e,"compositionstart",oE),Ps(e,"compositionend",Oh),Ps(e,"change",Oh))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:i}},o){if(e[gi]=ra(o),e.composing)return;const r=i||e.type==="number"?Ql(e.value):e.value,a=t??"";r!==a&&(document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===a)||(e.value=a))}},gm={deep:!0,created(e,t,n){e[gi]=ra(n),Ps(e,"change",()=>{const s=e._modelValue,i=rE(e),o=e.checked,r=e[gi];if(ht(s)){const a=lg(s,i),l=a!==-1;if(o&&!l)r(s.concat(i));else if(!o&&l){const c=[...s];c.splice(a,1),r(c)}}else if(Ma(s)){const a=new Set(s);o?a.add(i):a.delete(i),r(a)}else r(mm(e,o))})},mounted:Dh,beforeUpdate(e,t,n){e[gi]=ra(n),Dh(e,t,n)}};function Dh(e,{value:t,oldValue:n},s){e._modelValue=t,ht(t)?e.checked=lg(t,s.props.value)>-1:Ma(t)?e.checked=t.has(s.props.value):t!==n&&(e.checked=Oa(t,mm(e,!0)))}function rE(e){return"_value"in e?e._value:e.value}function mm(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const aE=Zt({patchProp:J1},L1);let $h;function lE(){return $h||($h=p1(aE))}const cE=(...e)=>{const t=lE().createApp(...e),{mount:n}=t;return t.mount=s=>{const i=dE(s);if(!i)return;const o=t._component;!bt(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.innerHTML="";const r=n(i,!1,uE(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t};function uE(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function dE(e){return Qt(e)?document.querySelector(e):e}var hE=!1;/*! + */(function(e,t){(function(n,s){e.exports=s(Hx)})(Rp,function(n){function s(M){const h=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(M){for(const b in M)if(b!=="default"){const O=Object.getOwnPropertyDescriptor(M,b);Object.defineProperty(h,b,O.get?O:{enumerable:!0,get:()=>M[b]})}}return h.default=M,Object.freeze(h)}const i=s(n),o=new Map,r={set(M,h,b){o.has(M)||o.set(M,new Map);const O=o.get(M);if(!O.has(h)&&O.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(O.keys())[0]}.`);return}O.set(h,b)},get(M,h){return o.has(M)&&o.get(M).get(h)||null},remove(M,h){if(!o.has(M))return;const b=o.get(M);b.delete(h),b.size===0&&o.delete(M)}},a=1e6,l=1e3,c="transitionend",u=M=>(M&&window.CSS&&window.CSS.escape&&(M=M.replace(/#([^\s"#']+)/g,(h,b)=>`#${CSS.escape(b)}`)),M),d=M=>M==null?`${M}`:Object.prototype.toString.call(M).match(/\s([a-z]+)/i)[1].toLowerCase(),f=M=>{do M+=Math.floor(Math.random()*a);while(document.getElementById(M));return M},p=M=>{if(!M)return 0;let{transitionDuration:h,transitionDelay:b}=window.getComputedStyle(M);const O=Number.parseFloat(h),z=Number.parseFloat(b);return!O&&!z?0:(h=h.split(",")[0],b=b.split(",")[0],(Number.parseFloat(h)+Number.parseFloat(b))*l)},m=M=>{M.dispatchEvent(new Event(c))},_=M=>!M||typeof M!="object"?!1:(typeof M.jquery<"u"&&(M=M[0]),typeof M.nodeType<"u"),y=M=>_(M)?M.jquery?M[0]:M:typeof M=="string"&&M.length>0?document.querySelector(u(M)):null,x=M=>{if(!_(M)||M.getClientRects().length===0)return!1;const h=getComputedStyle(M).getPropertyValue("visibility")==="visible",b=M.closest("details:not([open])");if(!b)return h;if(b!==M){const O=M.closest("summary");if(O&&O.parentNode!==b||O===null)return!1}return h},S=M=>!M||M.nodeType!==Node.ELEMENT_NODE||M.classList.contains("disabled")?!0:typeof M.disabled<"u"?M.disabled:M.hasAttribute("disabled")&&M.getAttribute("disabled")!=="false",P=M=>{if(!document.documentElement.attachShadow)return null;if(typeof M.getRootNode=="function"){const h=M.getRootNode();return h instanceof ShadowRoot?h:null}return M instanceof ShadowRoot?M:M.parentNode?P(M.parentNode):null},C=()=>{},v=M=>{M.offsetHeight},E=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,A=[],w=M=>{document.readyState==="loading"?(A.length||document.addEventListener("DOMContentLoaded",()=>{for(const h of A)h()}),A.push(M)):M()},k=()=>document.documentElement.dir==="rtl",$=M=>{w(()=>{const h=E();if(h){const b=M.NAME,O=h.fn[b];h.fn[b]=M.jQueryInterface,h.fn[b].Constructor=M,h.fn[b].noConflict=()=>(h.fn[b]=O,M.jQueryInterface)}})},L=(M,h=[],b=M)=>typeof M=="function"?M(...h):b,N=(M,h,b=!0)=>{if(!b){L(M);return}const z=p(h)+5;let nt=!1;const tt=({target:St})=>{St===h&&(nt=!0,h.removeEventListener(c,tt),L(M))};h.addEventListener(c,tt),setTimeout(()=>{nt||m(h)},z)},X=(M,h,b,O)=>{const z=M.length;let nt=M.indexOf(h);return nt===-1?!b&&O?M[z-1]:M[0]:(nt+=b?1:-1,O&&(nt=(nt+z)%z),M[Math.max(0,Math.min(nt,z-1))])},Y=/[^.]*(?=\..*)\.|.*/,H=/\..*/,R=/::\d+$/,W={};let U=1;const it={mouseenter:"mouseover",mouseleave:"mouseout"},lt=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function pt(M,h){return h&&`${h}::${U++}`||M.uidEvent||U++}function ft(M){const h=pt(M);return M.uidEvent=h,W[h]=W[h]||{},W[h]}function At(M,h){return function b(O){return T(O,{delegateTarget:M}),b.oneOff&&F.off(M,O.type,h),h.apply(M,[O])}}function wt(M,h,b){return function O(z){const nt=M.querySelectorAll(h);for(let{target:tt}=z;tt&&tt!==this;tt=tt.parentNode)for(const St of nt)if(St===tt)return T(z,{delegateTarget:tt}),O.oneOff&&F.off(M,z.type,h,b),b.apply(tt,[z])}}function Mt(M,h,b=null){return Object.values(M).find(O=>O.callable===h&&O.delegationSelector===b)}function Et(M,h,b){const O=typeof h=="string",z=O?b:h||b;let nt=rt(M);return lt.has(nt)||(nt=M),[O,z,nt]}function j(M,h,b,O,z){if(typeof h!="string"||!M)return;let[nt,tt,St]=Et(h,b,O);h in it&&(tt=(Y0=>function(oi){if(!oi.relatedTarget||oi.relatedTarget!==oi.delegateTarget&&!oi.delegateTarget.contains(oi.relatedTarget))return Y0.call(this,oi)})(tt));const be=ft(M),Fe=be[St]||(be[St]={}),se=Mt(Fe,tt,nt?b:null);if(se){se.oneOff=se.oneOff&&z;return}const en=pt(tt,h.replace(Y,"")),Xe=nt?wt(M,b,tt):At(M,tt);Xe.delegationSelector=nt?b:null,Xe.callable=tt,Xe.oneOff=z,Xe.uidEvent=en,Fe[en]=Xe,M.addEventListener(St,Xe,nt)}function et(M,h,b,O,z){const nt=Mt(h[b],O,z);nt&&(M.removeEventListener(b,nt,!!z),delete h[b][nt.uidEvent])}function J(M,h,b,O){const z=h[b]||{};for(const[nt,tt]of Object.entries(z))nt.includes(O)&&et(M,h,b,tt.callable,tt.delegationSelector)}function rt(M){return M=M.replace(H,""),it[M]||M}const F={on(M,h,b,O){j(M,h,b,O,!1)},one(M,h,b,O){j(M,h,b,O,!0)},off(M,h,b,O){if(typeof h!="string"||!M)return;const[z,nt,tt]=Et(h,b,O),St=tt!==h,be=ft(M),Fe=be[tt]||{},se=h.startsWith(".");if(typeof nt<"u"){if(!Object.keys(Fe).length)return;et(M,be,tt,nt,z?b:null);return}if(se)for(const en of Object.keys(be))J(M,be,en,h.slice(1));for(const[en,Xe]of Object.entries(Fe)){const Er=en.replace(R,"");(!St||h.includes(Er))&&et(M,be,tt,Xe.callable,Xe.delegationSelector)}},trigger(M,h,b){if(typeof h!="string"||!M)return null;const O=E(),z=rt(h),nt=h!==z;let tt=null,St=!0,be=!0,Fe=!1;nt&&O&&(tt=O.Event(h,b),O(M).trigger(tt),St=!tt.isPropagationStopped(),be=!tt.isImmediatePropagationStopped(),Fe=tt.isDefaultPrevented());const se=T(new Event(h,{bubbles:St,cancelable:!0}),b);return Fe&&se.preventDefault(),be&&M.dispatchEvent(se),se.defaultPrevented&&tt&&tt.preventDefault(),se}};function T(M,h={}){for(const[b,O]of Object.entries(h))try{M[b]=O}catch{Object.defineProperty(M,b,{configurable:!0,get(){return O}})}return M}function D(M){if(M==="true")return!0;if(M==="false")return!1;if(M===Number(M).toString())return Number(M);if(M===""||M==="null")return null;if(typeof M!="string")return M;try{return JSON.parse(decodeURIComponent(M))}catch{return M}}function I(M){return M.replace(/[A-Z]/g,h=>`-${h.toLowerCase()}`)}const V={setDataAttribute(M,h,b){M.setAttribute(`data-bs-${I(h)}`,b)},removeDataAttribute(M,h){M.removeAttribute(`data-bs-${I(h)}`)},getDataAttributes(M){if(!M)return{};const h={},b=Object.keys(M.dataset).filter(O=>O.startsWith("bs")&&!O.startsWith("bsConfig"));for(const O of b){let z=O.replace(/^bs/,"");z=z.charAt(0).toLowerCase()+z.slice(1,z.length),h[z]=D(M.dataset[O])}return h},getDataAttribute(M,h){return D(M.getAttribute(`data-bs-${I(h)}`))}};class K{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(h){return h=this._mergeConfigObj(h),h=this._configAfterMerge(h),this._typeCheckConfig(h),h}_configAfterMerge(h){return h}_mergeConfigObj(h,b){const O=_(b)?V.getDataAttribute(b,"config"):{};return{...this.constructor.Default,...typeof O=="object"?O:{},..._(b)?V.getDataAttributes(b):{},...typeof h=="object"?h:{}}}_typeCheckConfig(h,b=this.constructor.DefaultType){for(const[O,z]of Object.entries(b)){const nt=h[O],tt=_(nt)?"element":d(nt);if(!new RegExp(z).test(tt))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${O}" provided type "${tt}" but expected type "${z}".`)}}}const G="5.3.2";class Z extends K{constructor(h,b){super(),h=y(h),h&&(this._element=h,this._config=this._getConfig(b),r.set(this._element,this.constructor.DATA_KEY,this))}dispose(){r.remove(this._element,this.constructor.DATA_KEY),F.off(this._element,this.constructor.EVENT_KEY);for(const h of Object.getOwnPropertyNames(this))this[h]=null}_queueCallback(h,b,O=!0){N(h,b,O)}_getConfig(h){return h=this._mergeConfigObj(h,this._element),h=this._configAfterMerge(h),this._typeCheckConfig(h),h}static getInstance(h){return r.get(y(h),this.DATA_KEY)}static getOrCreateInstance(h,b={}){return this.getInstance(h)||new this(h,typeof b=="object"?b:null)}static get VERSION(){return G}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(h){return`${h}${this.EVENT_KEY}`}}const Q=M=>{let h=M.getAttribute("data-bs-target");if(!h||h==="#"){let b=M.getAttribute("href");if(!b||!b.includes("#")&&!b.startsWith("."))return null;b.includes("#")&&!b.startsWith("#")&&(b=`#${b.split("#")[1]}`),h=b&&b!=="#"?u(b.trim()):null}return h},B={find(M,h=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(h,M))},findOne(M,h=document.documentElement){return Element.prototype.querySelector.call(h,M)},children(M,h){return[].concat(...M.children).filter(b=>b.matches(h))},parents(M,h){const b=[];let O=M.parentNode.closest(h);for(;O;)b.push(O),O=O.parentNode.closest(h);return b},prev(M,h){let b=M.previousElementSibling;for(;b;){if(b.matches(h))return[b];b=b.previousElementSibling}return[]},next(M,h){let b=M.nextElementSibling;for(;b;){if(b.matches(h))return[b];b=b.nextElementSibling}return[]},focusableChildren(M){const h=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(b=>`${b}:not([tabindex^="-"])`).join(",");return this.find(h,M).filter(b=>!S(b)&&x(b))},getSelectorFromElement(M){const h=Q(M);return h&&B.findOne(h)?h:null},getElementFromSelector(M){const h=Q(M);return h?B.findOne(h):null},getMultipleElementsFromSelector(M){const h=Q(M);return h?B.find(h):[]}},q=(M,h="hide")=>{const b=`click.dismiss${M.EVENT_KEY}`,O=M.NAME;F.on(document,b,`[data-bs-dismiss="${O}"]`,function(z){if(["A","AREA"].includes(this.tagName)&&z.preventDefault(),S(this))return;const nt=B.getElementFromSelector(this)||this.closest(`.${O}`);M.getOrCreateInstance(nt)[h]()})},at="alert",ut=".bs.alert",gt=`close${ut}`,vt=`closed${ut}`,Dt="fade",It="show";class zt extends Z{static get NAME(){return at}close(){if(F.trigger(this._element,gt).defaultPrevented)return;this._element.classList.remove(It);const b=this._element.classList.contains(Dt);this._queueCallback(()=>this._destroyElement(),this._element,b)}_destroyElement(){this._element.remove(),F.trigger(this._element,vt),this.dispose()}static jQueryInterface(h){return this.each(function(){const b=zt.getOrCreateInstance(this);if(typeof h=="string"){if(b[h]===void 0||h.startsWith("_")||h==="constructor")throw new TypeError(`No method named "${h}"`);b[h](this)}})}}q(zt,"close"),$(zt);const Ae="button",ur=".bs.button",ms=".data-api",dr="active",ce='[data-bs-toggle="button"]',Re=`click${ur}${ms}`;class Rn extends Z{static get NAME(){return Ae}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(dr))}static jQueryInterface(h){return this.each(function(){const b=Rn.getOrCreateInstance(this);h==="toggle"&&b[h]()})}}F.on(document,Re,ce,M=>{M.preventDefault();const h=M.target.closest(ce);Rn.getOrCreateInstance(h).toggle()}),$(Rn);const _b="swipe",Qs=".bs.swipe",bb=`touchstart${Qs}`,yb=`touchmove${Qs}`,vb=`touchend${Qs}`,xb=`pointerdown${Qs}`,wb=`pointerup${Qs}`,Eb="touch",Sb="pen",Cb="pointer-event",Ab=40,Tb={endCallback:null,leftCallback:null,rightCallback:null},Pb={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class hr extends K{constructor(h,b){super(),this._element=h,!(!h||!hr.isSupported())&&(this._config=this._getConfig(b),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Tb}static get DefaultType(){return Pb}static get NAME(){return _b}dispose(){F.off(this._element,Qs)}_start(h){if(!this._supportPointerEvents){this._deltaX=h.touches[0].clientX;return}this._eventIsPointerPenTouch(h)&&(this._deltaX=h.clientX)}_end(h){this._eventIsPointerPenTouch(h)&&(this._deltaX=h.clientX-this._deltaX),this._handleSwipe(),L(this._config.endCallback)}_move(h){this._deltaX=h.touches&&h.touches.length>1?0:h.touches[0].clientX-this._deltaX}_handleSwipe(){const h=Math.abs(this._deltaX);if(h<=Ab)return;const b=h/this._deltaX;this._deltaX=0,b&&L(b>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(F.on(this._element,xb,h=>this._start(h)),F.on(this._element,wb,h=>this._end(h)),this._element.classList.add(Cb)):(F.on(this._element,bb,h=>this._start(h)),F.on(this._element,yb,h=>this._move(h)),F.on(this._element,vb,h=>this._end(h)))}_eventIsPointerPenTouch(h){return this._supportPointerEvents&&(h.pointerType===Sb||h.pointerType===Eb)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Mb="carousel",Nn=".bs.carousel",nd=".data-api",kb="ArrowLeft",Ob="ArrowRight",Db=500,Zi="next",Js="prev",Zs="left",fr="right",$b=`slide${Nn}`,al=`slid${Nn}`,Lb=`keydown${Nn}`,Ib=`mouseenter${Nn}`,Rb=`mouseleave${Nn}`,Nb=`dragstart${Nn}`,Fb=`load${Nn}${nd}`,Bb=`click${Nn}${nd}`,sd="carousel",pr="active",Vb="slide",Hb="carousel-item-end",jb="carousel-item-start",Wb="carousel-item-next",zb="carousel-item-prev",id=".active",od=".carousel-item",Ub=id+od,Kb=".carousel-item img",Yb=".carousel-indicators",qb="[data-bs-slide], [data-bs-slide-to]",Gb='[data-bs-ride="carousel"]',Xb={[kb]:fr,[Ob]:Zs},Qb={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Jb={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ti extends Z{constructor(h,b){super(h,b),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=B.findOne(Yb,this._element),this._addEventListeners(),this._config.ride===sd&&this.cycle()}static get Default(){return Qb}static get DefaultType(){return Jb}static get NAME(){return Mb}next(){this._slide(Zi)}nextWhenVisible(){!document.hidden&&x(this._element)&&this.next()}prev(){this._slide(Js)}pause(){this._isSliding&&m(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){F.one(this._element,al,()=>this.cycle());return}this.cycle()}}to(h){const b=this._getItems();if(h>b.length-1||h<0)return;if(this._isSliding){F.one(this._element,al,()=>this.to(h));return}const O=this._getItemIndex(this._getActive());if(O===h)return;const z=h>O?Zi:Js;this._slide(z,b[h])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(h){return h.defaultInterval=h.interval,h}_addEventListeners(){this._config.keyboard&&F.on(this._element,Lb,h=>this._keydown(h)),this._config.pause==="hover"&&(F.on(this._element,Ib,()=>this.pause()),F.on(this._element,Rb,()=>this._maybeEnableCycle())),this._config.touch&&hr.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const O of B.find(Kb,this._element))F.on(O,Nb,z=>z.preventDefault());const b={leftCallback:()=>this._slide(this._directionToOrder(Zs)),rightCallback:()=>this._slide(this._directionToOrder(fr)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),Db+this._config.interval))}};this._swipeHelper=new hr(this._element,b)}_keydown(h){if(/input|textarea/i.test(h.target.tagName))return;const b=Xb[h.key];b&&(h.preventDefault(),this._slide(this._directionToOrder(b)))}_getItemIndex(h){return this._getItems().indexOf(h)}_setActiveIndicatorElement(h){if(!this._indicatorsElement)return;const b=B.findOne(id,this._indicatorsElement);b.classList.remove(pr),b.removeAttribute("aria-current");const O=B.findOne(`[data-bs-slide-to="${h}"]`,this._indicatorsElement);O&&(O.classList.add(pr),O.setAttribute("aria-current","true"))}_updateInterval(){const h=this._activeElement||this._getActive();if(!h)return;const b=Number.parseInt(h.getAttribute("data-bs-interval"),10);this._config.interval=b||this._config.defaultInterval}_slide(h,b=null){if(this._isSliding)return;const O=this._getActive(),z=h===Zi,nt=b||X(this._getItems(),O,z,this._config.wrap);if(nt===O)return;const tt=this._getItemIndex(nt),St=Er=>F.trigger(this._element,Er,{relatedTarget:nt,direction:this._orderToDirection(h),from:this._getItemIndex(O),to:tt});if(St($b).defaultPrevented||!O||!nt)return;const Fe=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(tt),this._activeElement=nt;const se=z?jb:Hb,en=z?Wb:zb;nt.classList.add(en),v(nt),O.classList.add(se),nt.classList.add(se);const Xe=()=>{nt.classList.remove(se,en),nt.classList.add(pr),O.classList.remove(pr,en,se),this._isSliding=!1,St(al)};this._queueCallback(Xe,O,this._isAnimated()),Fe&&this.cycle()}_isAnimated(){return this._element.classList.contains(Vb)}_getActive(){return B.findOne(Ub,this._element)}_getItems(){return B.find(od,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(h){return k()?h===Zs?Js:Zi:h===Zs?Zi:Js}_orderToDirection(h){return k()?h===Js?Zs:fr:h===Js?fr:Zs}static jQueryInterface(h){return this.each(function(){const b=ti.getOrCreateInstance(this,h);if(typeof h=="number"){b.to(h);return}if(typeof h=="string"){if(b[h]===void 0||h.startsWith("_")||h==="constructor")throw new TypeError(`No method named "${h}"`);b[h]()}})}}F.on(document,Bb,qb,function(M){const h=B.getElementFromSelector(this);if(!h||!h.classList.contains(sd))return;M.preventDefault();const b=ti.getOrCreateInstance(h),O=this.getAttribute("data-bs-slide-to");if(O){b.to(O),b._maybeEnableCycle();return}if(V.getDataAttribute(this,"slide")==="next"){b.next(),b._maybeEnableCycle();return}b.prev(),b._maybeEnableCycle()}),F.on(window,Fb,()=>{const M=B.find(Gb);for(const h of M)ti.getOrCreateInstance(h)}),$(ti);const Zb="collapse",to=".bs.collapse",ty=".data-api",ey=`show${to}`,ny=`shown${to}`,sy=`hide${to}`,iy=`hidden${to}`,oy=`click${to}${ty}`,ll="show",ei="collapse",gr="collapsing",ry="collapsed",ay=`:scope .${ei} .${ei}`,ly="collapse-horizontal",cy="width",uy="height",dy=".collapse.show, .collapse.collapsing",cl='[data-bs-toggle="collapse"]',hy={parent:null,toggle:!0},fy={parent:"(null|element)",toggle:"boolean"};class ni extends Z{constructor(h,b){super(h,b),this._isTransitioning=!1,this._triggerArray=[];const O=B.find(cl);for(const z of O){const nt=B.getSelectorFromElement(z),tt=B.find(nt).filter(St=>St===this._element);nt!==null&&tt.length&&this._triggerArray.push(z)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return hy}static get DefaultType(){return fy}static get NAME(){return Zb}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let h=[];if(this._config.parent&&(h=this._getFirstLevelChildren(dy).filter(St=>St!==this._element).map(St=>ni.getOrCreateInstance(St,{toggle:!1}))),h.length&&h[0]._isTransitioning||F.trigger(this._element,ey).defaultPrevented)return;for(const St of h)St.hide();const O=this._getDimension();this._element.classList.remove(ei),this._element.classList.add(gr),this._element.style[O]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const z=()=>{this._isTransitioning=!1,this._element.classList.remove(gr),this._element.classList.add(ei,ll),this._element.style[O]="",F.trigger(this._element,ny)},tt=`scroll${O[0].toUpperCase()+O.slice(1)}`;this._queueCallback(z,this._element,!0),this._element.style[O]=`${this._element[tt]}px`}hide(){if(this._isTransitioning||!this._isShown()||F.trigger(this._element,sy).defaultPrevented)return;const b=this._getDimension();this._element.style[b]=`${this._element.getBoundingClientRect()[b]}px`,v(this._element),this._element.classList.add(gr),this._element.classList.remove(ei,ll);for(const z of this._triggerArray){const nt=B.getElementFromSelector(z);nt&&!this._isShown(nt)&&this._addAriaAndCollapsedClass([z],!1)}this._isTransitioning=!0;const O=()=>{this._isTransitioning=!1,this._element.classList.remove(gr),this._element.classList.add(ei),F.trigger(this._element,iy)};this._element.style[b]="",this._queueCallback(O,this._element,!0)}_isShown(h=this._element){return h.classList.contains(ll)}_configAfterMerge(h){return h.toggle=!!h.toggle,h.parent=y(h.parent),h}_getDimension(){return this._element.classList.contains(ly)?cy:uy}_initializeChildren(){if(!this._config.parent)return;const h=this._getFirstLevelChildren(cl);for(const b of h){const O=B.getElementFromSelector(b);O&&this._addAriaAndCollapsedClass([b],this._isShown(O))}}_getFirstLevelChildren(h){const b=B.find(ay,this._config.parent);return B.find(h,this._config.parent).filter(O=>!b.includes(O))}_addAriaAndCollapsedClass(h,b){if(h.length)for(const O of h)O.classList.toggle(ry,!b),O.setAttribute("aria-expanded",b)}static jQueryInterface(h){const b={};return typeof h=="string"&&/show|hide/.test(h)&&(b.toggle=!1),this.each(function(){const O=ni.getOrCreateInstance(this,b);if(typeof h=="string"){if(typeof O[h]>"u")throw new TypeError(`No method named "${h}"`);O[h]()}})}}F.on(document,oy,cl,function(M){(M.target.tagName==="A"||M.delegateTarget&&M.delegateTarget.tagName==="A")&&M.preventDefault();for(const h of B.getMultipleElementsFromSelector(this))ni.getOrCreateInstance(h,{toggle:!1}).toggle()}),$(ni);const rd="dropdown",_s=".bs.dropdown",ul=".data-api",py="Escape",ad="Tab",gy="ArrowUp",ld="ArrowDown",my=2,_y=`hide${_s}`,by=`hidden${_s}`,yy=`show${_s}`,vy=`shown${_s}`,cd=`click${_s}${ul}`,ud=`keydown${_s}${ul}`,xy=`keyup${_s}${ul}`,si="show",wy="dropup",Ey="dropend",Sy="dropstart",Cy="dropup-center",Ay="dropdown-center",bs='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ty=`${bs}.${si}`,mr=".dropdown-menu",Py=".navbar",My=".navbar-nav",ky=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Oy=k()?"top-end":"top-start",Dy=k()?"top-start":"top-end",$y=k()?"bottom-end":"bottom-start",Ly=k()?"bottom-start":"bottom-end",Iy=k()?"left-start":"right-start",Ry=k()?"right-start":"left-start",Ny="top",Fy="bottom",By={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Vy={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Ge extends Z{constructor(h,b){super(h,b),this._popper=null,this._parent=this._element.parentNode,this._menu=B.next(this._element,mr)[0]||B.prev(this._element,mr)[0]||B.findOne(mr,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return By}static get DefaultType(){return Vy}static get NAME(){return rd}toggle(){return this._isShown()?this.hide():this.show()}show(){if(S(this._element)||this._isShown())return;const h={relatedTarget:this._element};if(!F.trigger(this._element,yy,h).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(My))for(const O of[].concat(...document.body.children))F.on(O,"mouseover",C);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(si),this._element.classList.add(si),F.trigger(this._element,vy,h)}}hide(){if(S(this._element)||!this._isShown())return;const h={relatedTarget:this._element};this._completeHide(h)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(h){if(!F.trigger(this._element,_y,h).defaultPrevented){if("ontouchstart"in document.documentElement)for(const O of[].concat(...document.body.children))F.off(O,"mouseover",C);this._popper&&this._popper.destroy(),this._menu.classList.remove(si),this._element.classList.remove(si),this._element.setAttribute("aria-expanded","false"),V.removeDataAttribute(this._menu,"popper"),F.trigger(this._element,by,h)}}_getConfig(h){if(h=super._getConfig(h),typeof h.reference=="object"&&!_(h.reference)&&typeof h.reference.getBoundingClientRect!="function")throw new TypeError(`${rd.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return h}_createPopper(){if(typeof i>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let h=this._element;this._config.reference==="parent"?h=this._parent:_(this._config.reference)?h=y(this._config.reference):typeof this._config.reference=="object"&&(h=this._config.reference);const b=this._getPopperConfig();this._popper=i.createPopper(h,this._menu,b)}_isShown(){return this._menu.classList.contains(si)}_getPlacement(){const h=this._parent;if(h.classList.contains(Ey))return Iy;if(h.classList.contains(Sy))return Ry;if(h.classList.contains(Cy))return Ny;if(h.classList.contains(Ay))return Fy;const b=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return h.classList.contains(wy)?b?Dy:Oy:b?Ly:$y}_detectNavbar(){return this._element.closest(Py)!==null}_getOffset(){const{offset:h}=this._config;return typeof h=="string"?h.split(",").map(b=>Number.parseInt(b,10)):typeof h=="function"?b=>h(b,this._element):h}_getPopperConfig(){const h={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(V.setDataAttribute(this._menu,"popper","static"),h.modifiers=[{name:"applyStyles",enabled:!1}]),{...h,...L(this._config.popperConfig,[h])}}_selectMenuItem({key:h,target:b}){const O=B.find(ky,this._menu).filter(z=>x(z));O.length&&X(O,b,h===ld,!O.includes(b)).focus()}static jQueryInterface(h){return this.each(function(){const b=Ge.getOrCreateInstance(this,h);if(typeof h=="string"){if(typeof b[h]>"u")throw new TypeError(`No method named "${h}"`);b[h]()}})}static clearMenus(h){if(h.button===my||h.type==="keyup"&&h.key!==ad)return;const b=B.find(Ty);for(const O of b){const z=Ge.getInstance(O);if(!z||z._config.autoClose===!1)continue;const nt=h.composedPath(),tt=nt.includes(z._menu);if(nt.includes(z._element)||z._config.autoClose==="inside"&&!tt||z._config.autoClose==="outside"&&tt||z._menu.contains(h.target)&&(h.type==="keyup"&&h.key===ad||/input|select|option|textarea|form/i.test(h.target.tagName)))continue;const St={relatedTarget:z._element};h.type==="click"&&(St.clickEvent=h),z._completeHide(St)}}static dataApiKeydownHandler(h){const b=/input|textarea/i.test(h.target.tagName),O=h.key===py,z=[gy,ld].includes(h.key);if(!z&&!O||b&&!O)return;h.preventDefault();const nt=this.matches(bs)?this:B.prev(this,bs)[0]||B.next(this,bs)[0]||B.findOne(bs,h.delegateTarget.parentNode),tt=Ge.getOrCreateInstance(nt);if(z){h.stopPropagation(),tt.show(),tt._selectMenuItem(h);return}tt._isShown()&&(h.stopPropagation(),tt.hide(),nt.focus())}}F.on(document,ud,bs,Ge.dataApiKeydownHandler),F.on(document,ud,mr,Ge.dataApiKeydownHandler),F.on(document,cd,Ge.clearMenus),F.on(document,xy,Ge.clearMenus),F.on(document,cd,bs,function(M){M.preventDefault(),Ge.getOrCreateInstance(this).toggle()}),$(Ge);const dd="backdrop",Hy="fade",hd="show",fd=`mousedown.bs.${dd}`,jy={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Wy={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class pd extends K{constructor(h){super(),this._config=this._getConfig(h),this._isAppended=!1,this._element=null}static get Default(){return jy}static get DefaultType(){return Wy}static get NAME(){return dd}show(h){if(!this._config.isVisible){L(h);return}this._append();const b=this._getElement();this._config.isAnimated&&v(b),b.classList.add(hd),this._emulateAnimation(()=>{L(h)})}hide(h){if(!this._config.isVisible){L(h);return}this._getElement().classList.remove(hd),this._emulateAnimation(()=>{this.dispose(),L(h)})}dispose(){this._isAppended&&(F.off(this._element,fd),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const h=document.createElement("div");h.className=this._config.className,this._config.isAnimated&&h.classList.add(Hy),this._element=h}return this._element}_configAfterMerge(h){return h.rootElement=y(h.rootElement),h}_append(){if(this._isAppended)return;const h=this._getElement();this._config.rootElement.append(h),F.on(h,fd,()=>{L(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(h){N(h,this._getElement(),this._config.isAnimated)}}const zy="focustrap",_r=".bs.focustrap",Uy=`focusin${_r}`,Ky=`keydown.tab${_r}`,Yy="Tab",qy="forward",gd="backward",Gy={autofocus:!0,trapElement:null},Xy={autofocus:"boolean",trapElement:"element"};class md extends K{constructor(h){super(),this._config=this._getConfig(h),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Gy}static get DefaultType(){return Xy}static get NAME(){return zy}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),F.off(document,_r),F.on(document,Uy,h=>this._handleFocusin(h)),F.on(document,Ky,h=>this._handleKeydown(h)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,F.off(document,_r))}_handleFocusin(h){const{trapElement:b}=this._config;if(h.target===document||h.target===b||b.contains(h.target))return;const O=B.focusableChildren(b);O.length===0?b.focus():this._lastTabNavDirection===gd?O[O.length-1].focus():O[0].focus()}_handleKeydown(h){h.key===Yy&&(this._lastTabNavDirection=h.shiftKey?gd:qy)}}const _d=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",bd=".sticky-top",br="padding-right",yd="margin-right";class dl{constructor(){this._element=document.body}getWidth(){const h=document.documentElement.clientWidth;return Math.abs(window.innerWidth-h)}hide(){const h=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,br,b=>b+h),this._setElementAttributes(_d,br,b=>b+h),this._setElementAttributes(bd,yd,b=>b-h)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,br),this._resetElementAttributes(_d,br),this._resetElementAttributes(bd,yd)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(h,b,O){const z=this.getWidth(),nt=tt=>{if(tt!==this._element&&window.innerWidth>tt.clientWidth+z)return;this._saveInitialAttribute(tt,b);const St=window.getComputedStyle(tt).getPropertyValue(b);tt.style.setProperty(b,`${O(Number.parseFloat(St))}px`)};this._applyManipulationCallback(h,nt)}_saveInitialAttribute(h,b){const O=h.style.getPropertyValue(b);O&&V.setDataAttribute(h,b,O)}_resetElementAttributes(h,b){const O=z=>{const nt=V.getDataAttribute(z,b);if(nt===null){z.style.removeProperty(b);return}V.removeDataAttribute(z,b),z.style.setProperty(b,nt)};this._applyManipulationCallback(h,O)}_applyManipulationCallback(h,b){if(_(h)){b(h);return}for(const O of B.find(h,this._element))b(O)}}const Qy="modal",Ne=".bs.modal",Jy=".data-api",Zy="Escape",tv=`hide${Ne}`,ev=`hidePrevented${Ne}`,vd=`hidden${Ne}`,xd=`show${Ne}`,nv=`shown${Ne}`,sv=`resize${Ne}`,iv=`click.dismiss${Ne}`,ov=`mousedown.dismiss${Ne}`,rv=`keydown.dismiss${Ne}`,av=`click${Ne}${Jy}`,wd="modal-open",lv="fade",Ed="show",hl="modal-static",cv=".modal.show",uv=".modal-dialog",dv=".modal-body",hv='[data-bs-toggle="modal"]',fv={backdrop:!0,focus:!0,keyboard:!0},pv={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ys extends Z{constructor(h,b){super(h,b),this._dialog=B.findOne(uv,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new dl,this._addEventListeners()}static get Default(){return fv}static get DefaultType(){return pv}static get NAME(){return Qy}toggle(h){return this._isShown?this.hide():this.show(h)}show(h){this._isShown||this._isTransitioning||F.trigger(this._element,xd,{relatedTarget:h}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(wd),this._adjustDialog(),this._backdrop.show(()=>this._showElement(h)))}hide(){!this._isShown||this._isTransitioning||F.trigger(this._element,tv).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Ed),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){F.off(window,Ne),F.off(this._dialog,Ne),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new pd({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new md({trapElement:this._element})}_showElement(h){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const b=B.findOne(dv,this._dialog);b&&(b.scrollTop=0),v(this._element),this._element.classList.add(Ed);const O=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,F.trigger(this._element,nv,{relatedTarget:h})};this._queueCallback(O,this._dialog,this._isAnimated())}_addEventListeners(){F.on(this._element,rv,h=>{if(h.key===Zy){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),F.on(window,sv,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),F.on(this._element,ov,h=>{F.one(this._element,iv,b=>{if(!(this._element!==h.target||this._element!==b.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(wd),this._resetAdjustments(),this._scrollBar.reset(),F.trigger(this._element,vd)})}_isAnimated(){return this._element.classList.contains(lv)}_triggerBackdropTransition(){if(F.trigger(this._element,ev).defaultPrevented)return;const b=this._element.scrollHeight>document.documentElement.clientHeight,O=this._element.style.overflowY;O==="hidden"||this._element.classList.contains(hl)||(b||(this._element.style.overflowY="hidden"),this._element.classList.add(hl),this._queueCallback(()=>{this._element.classList.remove(hl),this._queueCallback(()=>{this._element.style.overflowY=O},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const h=this._element.scrollHeight>document.documentElement.clientHeight,b=this._scrollBar.getWidth(),O=b>0;if(O&&!h){const z=k()?"paddingLeft":"paddingRight";this._element.style[z]=`${b}px`}if(!O&&h){const z=k()?"paddingRight":"paddingLeft";this._element.style[z]=`${b}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(h,b){return this.each(function(){const O=ys.getOrCreateInstance(this,h);if(typeof h=="string"){if(typeof O[h]>"u")throw new TypeError(`No method named "${h}"`);O[h](b)}})}}F.on(document,av,hv,function(M){const h=B.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&M.preventDefault(),F.one(h,xd,z=>{z.defaultPrevented||F.one(h,vd,()=>{x(this)&&this.focus()})});const b=B.findOne(cv);b&&ys.getInstance(b).hide(),ys.getOrCreateInstance(h).toggle(this)}),q(ys),$(ys);const gv="offcanvas",gn=".bs.offcanvas",Sd=".data-api",mv=`load${gn}${Sd}`,_v="Escape",Cd="show",Ad="showing",Td="hiding",bv="offcanvas-backdrop",Pd=".offcanvas.show",yv=`show${gn}`,vv=`shown${gn}`,xv=`hide${gn}`,Md=`hidePrevented${gn}`,kd=`hidden${gn}`,wv=`resize${gn}`,Ev=`click${gn}${Sd}`,Sv=`keydown.dismiss${gn}`,Cv='[data-bs-toggle="offcanvas"]',Av={backdrop:!0,keyboard:!0,scroll:!1},Tv={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class mn extends Z{constructor(h,b){super(h,b),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Av}static get DefaultType(){return Tv}static get NAME(){return gv}toggle(h){return this._isShown?this.hide():this.show(h)}show(h){if(this._isShown||F.trigger(this._element,yv,{relatedTarget:h}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new dl().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ad);const O=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Cd),this._element.classList.remove(Ad),F.trigger(this._element,vv,{relatedTarget:h})};this._queueCallback(O,this._element,!0)}hide(){if(!this._isShown||F.trigger(this._element,xv).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Td),this._backdrop.hide();const b=()=>{this._element.classList.remove(Cd,Td),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new dl().reset(),F.trigger(this._element,kd)};this._queueCallback(b,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const h=()=>{if(this._config.backdrop==="static"){F.trigger(this._element,Md);return}this.hide()},b=!!this._config.backdrop;return new pd({className:bv,isVisible:b,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:b?h:null})}_initializeFocusTrap(){return new md({trapElement:this._element})}_addEventListeners(){F.on(this._element,Sv,h=>{if(h.key===_v){if(this._config.keyboard){this.hide();return}F.trigger(this._element,Md)}})}static jQueryInterface(h){return this.each(function(){const b=mn.getOrCreateInstance(this,h);if(typeof h=="string"){if(b[h]===void 0||h.startsWith("_")||h==="constructor")throw new TypeError(`No method named "${h}"`);b[h](this)}})}}F.on(document,Ev,Cv,function(M){const h=B.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&M.preventDefault(),S(this))return;F.one(h,kd,()=>{x(this)&&this.focus()});const b=B.findOne(Pd);b&&b!==h&&mn.getInstance(b).hide(),mn.getOrCreateInstance(h).toggle(this)}),F.on(window,mv,()=>{for(const M of B.find(Pd))mn.getOrCreateInstance(M).show()}),F.on(window,wv,()=>{for(const M of B.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(M).position!=="fixed"&&mn.getOrCreateInstance(M).hide()}),q(mn),$(mn);const Od={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Pv=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Mv=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,kv=(M,h)=>{const b=M.nodeName.toLowerCase();return h.includes(b)?Pv.has(b)?!!Mv.test(M.nodeValue):!0:h.filter(O=>O instanceof RegExp).some(O=>O.test(b))};function Ov(M,h,b){if(!M.length)return M;if(b&&typeof b=="function")return b(M);const z=new window.DOMParser().parseFromString(M,"text/html"),nt=[].concat(...z.body.querySelectorAll("*"));for(const tt of nt){const St=tt.nodeName.toLowerCase();if(!Object.keys(h).includes(St)){tt.remove();continue}const be=[].concat(...tt.attributes),Fe=[].concat(h["*"]||[],h[St]||[]);for(const se of be)kv(se,Fe)||tt.removeAttribute(se.nodeName)}return z.body.innerHTML}const Dv="TemplateFactory",$v={allowList:Od,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Lv={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Iv={entry:"(string|element|function|null)",selector:"(string|element)"};class Rv extends K{constructor(h){super(),this._config=this._getConfig(h)}static get Default(){return $v}static get DefaultType(){return Lv}static get NAME(){return Dv}getContent(){return Object.values(this._config.content).map(h=>this._resolvePossibleFunction(h)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(h){return this._checkContent(h),this._config.content={...this._config.content,...h},this}toHtml(){const h=document.createElement("div");h.innerHTML=this._maybeSanitize(this._config.template);for(const[z,nt]of Object.entries(this._config.content))this._setContent(h,nt,z);const b=h.children[0],O=this._resolvePossibleFunction(this._config.extraClass);return O&&b.classList.add(...O.split(" ")),b}_typeCheckConfig(h){super._typeCheckConfig(h),this._checkContent(h.content)}_checkContent(h){for(const[b,O]of Object.entries(h))super._typeCheckConfig({selector:b,entry:O},Iv)}_setContent(h,b,O){const z=B.findOne(O,h);if(z){if(b=this._resolvePossibleFunction(b),!b){z.remove();return}if(_(b)){this._putElementInTemplate(y(b),z);return}if(this._config.html){z.innerHTML=this._maybeSanitize(b);return}z.textContent=b}}_maybeSanitize(h){return this._config.sanitize?Ov(h,this._config.allowList,this._config.sanitizeFn):h}_resolvePossibleFunction(h){return L(h,[this])}_putElementInTemplate(h,b){if(this._config.html){b.innerHTML="",b.append(h);return}b.textContent=h.textContent}}const Nv="tooltip",Fv=new Set(["sanitize","allowList","sanitizeFn"]),fl="fade",Bv="modal",yr="show",Vv=".tooltip-inner",Dd=`.${Bv}`,$d="hide.bs.modal",eo="hover",pl="focus",Hv="click",jv="manual",Wv="hide",zv="hidden",Uv="show",Kv="shown",Yv="inserted",qv="click",Gv="focusin",Xv="focusout",Qv="mouseenter",Jv="mouseleave",Zv={AUTO:"auto",TOP:"top",RIGHT:k()?"left":"right",BOTTOM:"bottom",LEFT:k()?"right":"left"},t0={allowList:Od,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},e0={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class vs extends Z{constructor(h,b){if(typeof i>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(h,b),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return t0}static get DefaultType(){return e0}static get NAME(){return Nv}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),F.off(this._element.closest(Dd),$d,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const h=F.trigger(this._element,this.constructor.eventName(Uv)),O=(P(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(h.defaultPrevented||!O)return;this._disposePopper();const z=this._getTipElement();this._element.setAttribute("aria-describedby",z.getAttribute("id"));const{container:nt}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(nt.append(z),F.trigger(this._element,this.constructor.eventName(Yv))),this._popper=this._createPopper(z),z.classList.add(yr),"ontouchstart"in document.documentElement)for(const St of[].concat(...document.body.children))F.on(St,"mouseover",C);const tt=()=>{F.trigger(this._element,this.constructor.eventName(Kv)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(tt,this.tip,this._isAnimated())}hide(){if(!this._isShown()||F.trigger(this._element,this.constructor.eventName(Wv)).defaultPrevented)return;if(this._getTipElement().classList.remove(yr),"ontouchstart"in document.documentElement)for(const z of[].concat(...document.body.children))F.off(z,"mouseover",C);this._activeTrigger[Hv]=!1,this._activeTrigger[pl]=!1,this._activeTrigger[eo]=!1,this._isHovered=null;const O=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),F.trigger(this._element,this.constructor.eventName(zv)))};this._queueCallback(O,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(h){const b=this._getTemplateFactory(h).toHtml();if(!b)return null;b.classList.remove(fl,yr),b.classList.add(`bs-${this.constructor.NAME}-auto`);const O=f(this.constructor.NAME).toString();return b.setAttribute("id",O),this._isAnimated()&&b.classList.add(fl),b}setContent(h){this._newContent=h,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(h){return this._templateFactory?this._templateFactory.changeContent(h):this._templateFactory=new Rv({...this._config,content:h,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Vv]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(h){return this.constructor.getOrCreateInstance(h.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(fl)}_isShown(){return this.tip&&this.tip.classList.contains(yr)}_createPopper(h){const b=L(this._config.placement,[this,h,this._element]),O=Zv[b.toUpperCase()];return i.createPopper(this._element,h,this._getPopperConfig(O))}_getOffset(){const{offset:h}=this._config;return typeof h=="string"?h.split(",").map(b=>Number.parseInt(b,10)):typeof h=="function"?b=>h(b,this._element):h}_resolvePossibleFunction(h){return L(h,[this._element])}_getPopperConfig(h){const b={placement:h,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:O=>{this._getTipElement().setAttribute("data-popper-placement",O.state.placement)}}]};return{...b,...L(this._config.popperConfig,[b])}}_setListeners(){const h=this._config.trigger.split(" ");for(const b of h)if(b==="click")F.on(this._element,this.constructor.eventName(qv),this._config.selector,O=>{this._initializeOnDelegatedTarget(O).toggle()});else if(b!==jv){const O=b===eo?this.constructor.eventName(Qv):this.constructor.eventName(Gv),z=b===eo?this.constructor.eventName(Jv):this.constructor.eventName(Xv);F.on(this._element,O,this._config.selector,nt=>{const tt=this._initializeOnDelegatedTarget(nt);tt._activeTrigger[nt.type==="focusin"?pl:eo]=!0,tt._enter()}),F.on(this._element,z,this._config.selector,nt=>{const tt=this._initializeOnDelegatedTarget(nt);tt._activeTrigger[nt.type==="focusout"?pl:eo]=tt._element.contains(nt.relatedTarget),tt._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},F.on(this._element.closest(Dd),$d,this._hideModalHandler)}_fixTitle(){const h=this._element.getAttribute("title");h&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",h),this._element.setAttribute("data-bs-original-title",h),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(h,b){clearTimeout(this._timeout),this._timeout=setTimeout(h,b)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(h){const b=V.getDataAttributes(this._element);for(const O of Object.keys(b))Fv.has(O)&&delete b[O];return h={...b,...typeof h=="object"&&h?h:{}},h=this._mergeConfigObj(h),h=this._configAfterMerge(h),this._typeCheckConfig(h),h}_configAfterMerge(h){return h.container=h.container===!1?document.body:y(h.container),typeof h.delay=="number"&&(h.delay={show:h.delay,hide:h.delay}),typeof h.title=="number"&&(h.title=h.title.toString()),typeof h.content=="number"&&(h.content=h.content.toString()),h}_getDelegateConfig(){const h={};for(const[b,O]of Object.entries(this._config))this.constructor.Default[b]!==O&&(h[b]=O);return h.selector=!1,h.trigger="manual",h}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(h){return this.each(function(){const b=vs.getOrCreateInstance(this,h);if(typeof h=="string"){if(typeof b[h]>"u")throw new TypeError(`No method named "${h}"`);b[h]()}})}}$(vs);const n0="popover",s0=".popover-header",i0=".popover-body",o0={...vs.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},r0={...vs.DefaultType,content:"(null|string|element|function)"};class vr extends vs{static get Default(){return o0}static get DefaultType(){return r0}static get NAME(){return n0}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[s0]:this._getTitle(),[i0]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(h){return this.each(function(){const b=vr.getOrCreateInstance(this,h);if(typeof h=="string"){if(typeof b[h]>"u")throw new TypeError(`No method named "${h}"`);b[h]()}})}}$(vr);const a0="scrollspy",gl=".bs.scrollspy",l0=".data-api",c0=`activate${gl}`,Ld=`click${gl}`,u0=`load${gl}${l0}`,d0="dropdown-item",ii="active",h0='[data-bs-spy="scroll"]',ml="[href]",f0=".nav, .list-group",Id=".nav-link",p0=`${Id}, .nav-item > ${Id}, .list-group-item`,g0=".dropdown",m0=".dropdown-toggle",_0={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},b0={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class no extends Z{constructor(h,b){super(h,b),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return _0}static get DefaultType(){return b0}static get NAME(){return a0}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const h of this._observableSections.values())this._observer.observe(h)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(h){return h.target=y(h.target)||document.body,h.rootMargin=h.offset?`${h.offset}px 0px -30%`:h.rootMargin,typeof h.threshold=="string"&&(h.threshold=h.threshold.split(",").map(b=>Number.parseFloat(b))),h}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(F.off(this._config.target,Ld),F.on(this._config.target,Ld,ml,h=>{const b=this._observableSections.get(h.target.hash);if(b){h.preventDefault();const O=this._rootElement||window,z=b.offsetTop-this._element.offsetTop;if(O.scrollTo){O.scrollTo({top:z,behavior:"smooth"});return}O.scrollTop=z}}))}_getNewObserver(){const h={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(b=>this._observerCallback(b),h)}_observerCallback(h){const b=tt=>this._targetLinks.get(`#${tt.target.id}`),O=tt=>{this._previousScrollData.visibleEntryTop=tt.target.offsetTop,this._process(b(tt))},z=(this._rootElement||document.documentElement).scrollTop,nt=z>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=z;for(const tt of h){if(!tt.isIntersecting){this._activeTarget=null,this._clearActiveClass(b(tt));continue}const St=tt.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(nt&&St){if(O(tt),!z)return;continue}!nt&&!St&&O(tt)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const h=B.find(ml,this._config.target);for(const b of h){if(!b.hash||S(b))continue;const O=B.findOne(decodeURI(b.hash),this._element);x(O)&&(this._targetLinks.set(decodeURI(b.hash),b),this._observableSections.set(b.hash,O))}}_process(h){this._activeTarget!==h&&(this._clearActiveClass(this._config.target),this._activeTarget=h,h.classList.add(ii),this._activateParents(h),F.trigger(this._element,c0,{relatedTarget:h}))}_activateParents(h){if(h.classList.contains(d0)){B.findOne(m0,h.closest(g0)).classList.add(ii);return}for(const b of B.parents(h,f0))for(const O of B.prev(b,p0))O.classList.add(ii)}_clearActiveClass(h){h.classList.remove(ii);const b=B.find(`${ml}.${ii}`,h);for(const O of b)O.classList.remove(ii)}static jQueryInterface(h){return this.each(function(){const b=no.getOrCreateInstance(this,h);if(typeof h=="string"){if(b[h]===void 0||h.startsWith("_")||h==="constructor")throw new TypeError(`No method named "${h}"`);b[h]()}})}}F.on(window,u0,()=>{for(const M of B.find(h0))no.getOrCreateInstance(M)}),$(no);const y0="tab",xs=".bs.tab",v0=`hide${xs}`,x0=`hidden${xs}`,w0=`show${xs}`,E0=`shown${xs}`,S0=`click${xs}`,C0=`keydown${xs}`,A0=`load${xs}`,T0="ArrowLeft",Rd="ArrowRight",P0="ArrowUp",Nd="ArrowDown",_l="Home",Fd="End",ws="active",Bd="fade",bl="show",M0="dropdown",Vd=".dropdown-toggle",k0=".dropdown-menu",yl=`:not(${Vd})`,O0='.list-group, .nav, [role="tablist"]',D0=".nav-item, .list-group-item",$0=`.nav-link${yl}, .list-group-item${yl}, [role="tab"]${yl}`,Hd='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',vl=`${$0}, ${Hd}`,L0=`.${ws}[data-bs-toggle="tab"], .${ws}[data-bs-toggle="pill"], .${ws}[data-bs-toggle="list"]`;class Es extends Z{constructor(h){super(h),this._parent=this._element.closest(O0),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),F.on(this._element,C0,b=>this._keydown(b)))}static get NAME(){return y0}show(){const h=this._element;if(this._elemIsActive(h))return;const b=this._getActiveElem(),O=b?F.trigger(b,v0,{relatedTarget:h}):null;F.trigger(h,w0,{relatedTarget:b}).defaultPrevented||O&&O.defaultPrevented||(this._deactivate(b,h),this._activate(h,b))}_activate(h,b){if(!h)return;h.classList.add(ws),this._activate(B.getElementFromSelector(h));const O=()=>{if(h.getAttribute("role")!=="tab"){h.classList.add(bl);return}h.removeAttribute("tabindex"),h.setAttribute("aria-selected",!0),this._toggleDropDown(h,!0),F.trigger(h,E0,{relatedTarget:b})};this._queueCallback(O,h,h.classList.contains(Bd))}_deactivate(h,b){if(!h)return;h.classList.remove(ws),h.blur(),this._deactivate(B.getElementFromSelector(h));const O=()=>{if(h.getAttribute("role")!=="tab"){h.classList.remove(bl);return}h.setAttribute("aria-selected",!1),h.setAttribute("tabindex","-1"),this._toggleDropDown(h,!1),F.trigger(h,x0,{relatedTarget:b})};this._queueCallback(O,h,h.classList.contains(Bd))}_keydown(h){if(![T0,Rd,P0,Nd,_l,Fd].includes(h.key))return;h.stopPropagation(),h.preventDefault();const b=this._getChildren().filter(z=>!S(z));let O;if([_l,Fd].includes(h.key))O=b[h.key===_l?0:b.length-1];else{const z=[Rd,Nd].includes(h.key);O=X(b,h.target,z,!0)}O&&(O.focus({preventScroll:!0}),Es.getOrCreateInstance(O).show())}_getChildren(){return B.find(vl,this._parent)}_getActiveElem(){return this._getChildren().find(h=>this._elemIsActive(h))||null}_setInitialAttributes(h,b){this._setAttributeIfNotExists(h,"role","tablist");for(const O of b)this._setInitialAttributesOnChild(O)}_setInitialAttributesOnChild(h){h=this._getInnerElement(h);const b=this._elemIsActive(h),O=this._getOuterElement(h);h.setAttribute("aria-selected",b),O!==h&&this._setAttributeIfNotExists(O,"role","presentation"),b||h.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(h,"role","tab"),this._setInitialAttributesOnTargetPanel(h)}_setInitialAttributesOnTargetPanel(h){const b=B.getElementFromSelector(h);b&&(this._setAttributeIfNotExists(b,"role","tabpanel"),h.id&&this._setAttributeIfNotExists(b,"aria-labelledby",`${h.id}`))}_toggleDropDown(h,b){const O=this._getOuterElement(h);if(!O.classList.contains(M0))return;const z=(nt,tt)=>{const St=B.findOne(nt,O);St&&St.classList.toggle(tt,b)};z(Vd,ws),z(k0,bl),O.setAttribute("aria-expanded",b)}_setAttributeIfNotExists(h,b,O){h.hasAttribute(b)||h.setAttribute(b,O)}_elemIsActive(h){return h.classList.contains(ws)}_getInnerElement(h){return h.matches(vl)?h:B.findOne(vl,h)}_getOuterElement(h){return h.closest(D0)||h}static jQueryInterface(h){return this.each(function(){const b=Es.getOrCreateInstance(this);if(typeof h=="string"){if(b[h]===void 0||h.startsWith("_")||h==="constructor")throw new TypeError(`No method named "${h}"`);b[h]()}})}}F.on(document,S0,Hd,function(M){["A","AREA"].includes(this.tagName)&&M.preventDefault(),!S(this)&&Es.getOrCreateInstance(this).show()}),F.on(window,A0,()=>{for(const M of B.find(L0))Es.getOrCreateInstance(M)}),$(Es);const I0="toast",Fn=".bs.toast",R0=`mouseover${Fn}`,N0=`mouseout${Fn}`,F0=`focusin${Fn}`,B0=`focusout${Fn}`,V0=`hide${Fn}`,H0=`hidden${Fn}`,j0=`show${Fn}`,W0=`shown${Fn}`,z0="fade",jd="hide",xr="show",wr="showing",U0={animation:"boolean",autohide:"boolean",delay:"number"},K0={animation:!0,autohide:!0,delay:5e3};class so extends Z{constructor(h,b){super(h,b),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return K0}static get DefaultType(){return U0}static get NAME(){return I0}show(){if(F.trigger(this._element,j0).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(z0);const b=()=>{this._element.classList.remove(wr),F.trigger(this._element,W0),this._maybeScheduleHide()};this._element.classList.remove(jd),v(this._element),this._element.classList.add(xr,wr),this._queueCallback(b,this._element,this._config.animation)}hide(){if(!this.isShown()||F.trigger(this._element,V0).defaultPrevented)return;const b=()=>{this._element.classList.add(jd),this._element.classList.remove(wr,xr),F.trigger(this._element,H0)};this._element.classList.add(wr),this._queueCallback(b,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(xr),super.dispose()}isShown(){return this._element.classList.contains(xr)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(h,b){switch(h.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=b;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=b;break}}if(b){this._clearTimeout();return}const O=h.relatedTarget;this._element===O||this._element.contains(O)||this._maybeScheduleHide()}_setListeners(){F.on(this._element,R0,h=>this._onInteraction(h,!0)),F.on(this._element,N0,h=>this._onInteraction(h,!1)),F.on(this._element,F0,h=>this._onInteraction(h,!0)),F.on(this._element,B0,h=>this._onInteraction(h,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(h){return this.each(function(){const b=so.getOrCreateInstance(this,h);if(typeof h=="string"){if(typeof b[h]>"u")throw new TypeError(`No method named "${h}"`);b[h](this)}})}}return q(so),$(so),{Alert:zt,Button:Rn,Carousel:ti,Collapse:ni,Dropdown:Ge,Modal:ys,Offcanvas:mn,Popover:vr,ScrollSpy:no,Tab:Es,Toast:so,Tooltip:vs}})})(J0);function Jc(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const Vt={},gi=[],je=()=>{},jx=()=>!1,Ia=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Zc=e=>e.startsWith("onUpdate:"),Zt=Object.assign,tu=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Wx=Object.prototype.hasOwnProperty,$t=(e,t)=>Wx.call(e,t),dt=Array.isArray,mi=e=>Zo(e)==="[object Map]",Ki=e=>Zo(e)==="[object Set]",Qd=e=>Zo(e)==="[object Date]",bt=e=>typeof e=="function",Qt=e=>typeof e=="string",is=e=>typeof e=="symbol",Ft=e=>e!==null&&typeof e=="object",ag=e=>(Ft(e)||bt(e))&&bt(e.then)&&bt(e.catch),lg=Object.prototype.toString,Zo=e=>lg.call(e),zx=e=>Zo(e).slice(8,-1),cg=e=>Zo(e)==="[object Object]",eu=e=>Qt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Jr=Jc(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ra=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ux=/-(\w)/g,fn=Ra(e=>e.replace(Ux,(t,n)=>n?n.toUpperCase():"")),Kx=/\B([A-Z])/g,Yi=Ra(e=>e.replace(Kx,"-$1").toLowerCase()),Na=Ra(e=>e.charAt(0).toUpperCase()+e.slice(1)),xl=Ra(e=>e?`on${Na(e)}`:""),os=(e,t)=>!Object.is(e,t),Zr=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ca=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ug=e=>{const t=Qt(e)?Number(e):NaN;return isNaN(t)?e:t};let Jd;const dg=()=>Jd||(Jd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function nu(e){if(dt(e)){const t={};for(let n=0;n{if(n){const s=n.split(qx);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function he(e){let t="";if(Qt(e))t=e;else if(dt(e))for(let n=0;nUs(n,t))}const Ct=e=>Qt(e)?e:e==null?"":dt(e)||Ft(e)&&(e.toString===lg||!bt(e.toString))?JSON.stringify(e,fg,2):String(e),fg=(e,t)=>t&&t.__v_isRef?fg(e,t.value):mi(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,i],o)=>(n[wl(s,o)+" =>"]=i,n),{})}:Ki(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>wl(n))}:is(t)?wl(t):Ft(t)&&!dt(t)&&!cg(t)?String(t):t,wl=(e,t="")=>{var n;return is(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Pe;class pg{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Pe,!t&&Pe&&(this.index=(Pe.scopes||(Pe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Pe;try{return Pe=this,t()}finally{Pe=n}}}on(){Pe=this}off(){Pe=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n=2))break;Gs(),this._queryings--}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?3:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Zn,n=Ns;try{return Zn=!0,Ns=this,this._runnings++,Zd(this),this.fn()}finally{th(this),this._runnings--,Ns=n,Zn=t}}stop(){var t;this.active&&(Zd(this),th(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function ew(e){return e.value}function Zd(e){e._trackId++,e._depsLength=0}function th(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},ua=new WeakMap,Fs=Symbol(""),sc=Symbol("");function Se(e,t,n){if(Zn&&Ns){let s=ua.get(e);s||ua.set(e,s=new Map);let i=s.get(n);i||s.set(n,i=xg(()=>s.delete(n))),yg(Ns,i)}}function kn(e,t,n,s,i,o){const r=ua.get(e);if(!r)return;let a=[];if(t==="clear")a=[...r.values()];else if(n==="length"&&dt(e)){const l=Number(s);r.forEach((c,u)=>{(u==="length"||!is(u)&&u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(r.get(n)),t){case"add":dt(e)?eu(n)&&a.push(r.get("length")):(a.push(r.get(Fs)),mi(e)&&a.push(r.get(sc)));break;case"delete":dt(e)||(a.push(r.get(Fs)),mi(e)&&a.push(r.get(sc)));break;case"set":mi(e)&&a.push(r.get(Fs));break}ru();for(const l of a)l&&vg(l,3);au()}function nw(e,t){var n;return(n=ua.get(e))==null?void 0:n.get(t)}const sw=Jc("__proto__,__v_isRef,__isVue"),wg=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(is)),eh=iw();function iw(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=Tt(this);for(let o=0,r=this.length;o{e[t]=function(...n){qs(),ru();const s=Tt(this)[t].apply(this,n);return au(),Gs(),s}}),e}function ow(e){const t=Tt(this);return Se(t,"has",e),t.hasOwnProperty(e)}class Eg{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,s){const i=this._isReadonly,o=this._shallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(i?o?bw:Tg:o?Ag:Cg).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const r=dt(t);if(!i){if(r&&$t(eh,n))return Reflect.get(eh,n,s);if(n==="hasOwnProperty")return ow}const a=Reflect.get(t,n,s);return(is(n)?wg.has(n):sw(n))||(i||Se(t,"get",n),o)?a:ne(a)?r&&eu(n)?a:a.value:Ft(a)?i?Mg(a):tr(a):a}}class Sg extends Eg{constructor(t=!1){super(!1,t)}set(t,n,s,i){let o=t[n];if(!this._shallow){const l=Ti(o);if(!hi(s)&&!Ti(s)&&(o=Tt(o),s=Tt(s)),!dt(t)&&ne(o)&&!ne(s))return l?!1:(o.value=s,!0)}const r=dt(t)&&eu(n)?Number(n)e,Fa=e=>Reflect.getPrototypeOf(e);function Cr(e,t,n=!1,s=!1){e=e.__v_raw;const i=Tt(e),o=Tt(t);n||(os(t,o)&&Se(i,"get",t),Se(i,"get",o));const{has:r}=Fa(i),a=s?lu:n?du:Ro;if(r.call(i,t))return a(e.get(t));if(r.call(i,o))return a(e.get(o));e!==i&&e.get(t)}function Ar(e,t=!1){const n=this.__v_raw,s=Tt(n),i=Tt(e);return t||(os(e,i)&&Se(s,"has",e),Se(s,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Tr(e,t=!1){return e=e.__v_raw,!t&&Se(Tt(e),"iterate",Fs),Reflect.get(e,"size",e)}function nh(e){e=Tt(e);const t=Tt(this);return Fa(t).has.call(t,e)||(t.add(e),kn(t,"add",e,e)),this}function sh(e,t){t=Tt(t);const n=Tt(this),{has:s,get:i}=Fa(n);let o=s.call(n,e);o||(e=Tt(e),o=s.call(n,e));const r=i.call(n,e);return n.set(e,t),o?os(t,r)&&kn(n,"set",e,t):kn(n,"add",e,t),this}function ih(e){const t=Tt(this),{has:n,get:s}=Fa(t);let i=n.call(t,e);i||(e=Tt(e),i=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return i&&kn(t,"delete",e,void 0),o}function oh(){const e=Tt(this),t=e.size!==0,n=e.clear();return t&&kn(e,"clear",void 0,void 0),n}function Pr(e,t){return function(s,i){const o=this,r=o.__v_raw,a=Tt(r),l=t?lu:e?du:Ro;return!e&&Se(a,"iterate",Fs),r.forEach((c,u)=>s.call(i,l(c),l(u),o))}}function Mr(e,t,n){return function(...s){const i=this.__v_raw,o=Tt(i),r=mi(o),a=e==="entries"||e===Symbol.iterator&&r,l=e==="keys"&&r,c=i[e](...s),u=n?lu:t?du:Ro;return!t&&Se(o,"iterate",l?sc:Fs),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:a?[u(d[0]),u(d[1])]:u(d),done:f}},[Symbol.iterator](){return this}}}}function Bn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function uw(){const e={get(o){return Cr(this,o)},get size(){return Tr(this)},has:Ar,add:nh,set:sh,delete:ih,clear:oh,forEach:Pr(!1,!1)},t={get(o){return Cr(this,o,!1,!0)},get size(){return Tr(this)},has:Ar,add:nh,set:sh,delete:ih,clear:oh,forEach:Pr(!1,!0)},n={get(o){return Cr(this,o,!0)},get size(){return Tr(this,!0)},has(o){return Ar.call(this,o,!0)},add:Bn("add"),set:Bn("set"),delete:Bn("delete"),clear:Bn("clear"),forEach:Pr(!0,!1)},s={get(o){return Cr(this,o,!0,!0)},get size(){return Tr(this,!0)},has(o){return Ar.call(this,o,!0)},add:Bn("add"),set:Bn("set"),delete:Bn("delete"),clear:Bn("clear"),forEach:Pr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Mr(o,!1,!1),n[o]=Mr(o,!0,!1),t[o]=Mr(o,!1,!0),s[o]=Mr(o,!0,!0)}),[e,n,t,s]}const[dw,hw,fw,pw]=uw();function cu(e,t){const n=t?e?pw:fw:e?hw:dw;return(s,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?s:Reflect.get($t(n,i)&&i in s?n:s,i,o)}const gw={get:cu(!1,!1)},mw={get:cu(!1,!0)},_w={get:cu(!0,!1)},Cg=new WeakMap,Ag=new WeakMap,Tg=new WeakMap,bw=new WeakMap;function yw(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function vw(e){return e.__v_skip||!Object.isExtensible(e)?0:yw(zx(e))}function tr(e){return Ti(e)?e:uu(e,!1,aw,gw,Cg)}function Pg(e){return uu(e,!1,cw,mw,Ag)}function Mg(e){return uu(e,!0,lw,_w,Tg)}function uu(e,t,n,s,i){if(!Ft(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const r=vw(e);if(r===0)return e;const a=new Proxy(e,r===2?s:n);return i.set(e,a),a}function ts(e){return Ti(e)?ts(e.__v_raw):!!(e&&e.__v_isReactive)}function Ti(e){return!!(e&&e.__v_isReadonly)}function hi(e){return!!(e&&e.__v_isShallow)}function Ba(e){return ts(e)||Ti(e)}function Tt(e){const t=e&&e.__v_raw;return t?Tt(t):e}function er(e){return la(e,"__v_skip",!0),e}const Ro=e=>Ft(e)?tr(e):e,du=e=>Ft(e)?Mg(e):e;class kg{constructor(t,n,s,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ou(()=>t(this._value),()=>ic(this,1)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=s}get value(){const t=Tt(this);return Og(t),(!t._cacheable||t.effect.dirty)&&os(t._value,t._value=t.effect.run())&&ic(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function xw(e,t,n=!1){let s,i;const o=bt(e);return o?(s=e,i=je):(s=e.get,i=e.set),new kg(s,i,o||!i,n)}function Og(e){Zn&&Ns&&(e=Tt(e),yg(Ns,e.dep||(e.dep=xg(()=>e.dep=void 0,e instanceof kg?e:void 0))))}function ic(e,t=3,n){e=Tt(e);const s=e.dep;s&&vg(s,t)}function ne(e){return!!(e&&e.__v_isRef===!0)}function Pi(e){return Dg(e,!1)}function hu(e){return Dg(e,!0)}function Dg(e,t){return ne(e)?e:new ww(e,t)}class ww{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Tt(t),this._value=n?t:Ro(t)}get value(){return Og(this),this._value}set value(t){const n=this.__v_isShallow||hi(t)||Ti(t);t=n?t:Tt(t),os(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Ro(t),ic(this,3))}}function es(e){return ne(e)?e.value:e}const Ew={get:(e,t,n)=>es(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const i=e[t];return ne(i)&&!ne(n)?(i.value=n,!0):Reflect.set(e,t,n,s)}};function $g(e){return ts(e)?e:new Proxy(e,Ew)}function Sw(e){const t=dt(e)?new Array(e.length):{};for(const n in e)t[n]=Aw(e,n);return t}class Cw{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return nw(Tt(this._object),this._key)}}function Aw(e,t,n){const s=e[t];return ne(s)?s:new Cw(e,t,n)}function ns(e,t,n,s){let i;try{i=s?e(...s):e()}catch(o){nr(o,t,n)}return i}function Ke(e,t,n,s){if(bt(e)){const o=ns(e,t,n,s);return o&&ag(o)&&o.catch(r=>{nr(r,t,n)}),o}const i=[];for(let o=0;o>>1,i=de[s],o=Fo(i);orn&&de.splice(t,1)}function rc(e){dt(e)?_i.push(...e):(!wn||!wn.includes(e,e.allowRecurse?$s+1:$s))&&_i.push(e),Ig()}function rh(e,t,n=No?rn+1:0){for(;nFo(n)-Fo(s)),$s=0;$se.id==null?1/0:e.id,kw=(e,t)=>{const n=Fo(e)-Fo(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Ng(e){oc=!1,No=!0,de.sort(kw);try{for(rn=0;rnQt(p)?p.trim():p)),d&&(i=n.map(ca))}let a,l=s[a=xl(t)]||s[a=xl(fn(t))];!l&&o&&(l=s[a=xl(Yi(t))]),l&&Ke(l,e,6,i);const c=s[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Ke(c,e,6,i)}}function Fg(e,t,n=!1){const s=t.emitsCache,i=s.get(e);if(i!==void 0)return i;const o=e.emits;let r={},a=!1;if(!bt(e)){const l=c=>{const u=Fg(c,t,!0);u&&(a=!0,Zt(r,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(Ft(e)&&s.set(e,null),null):(dt(o)?o.forEach(l=>r[l]=null):Zt(r,o),Ft(e)&&s.set(e,r),r)}function Ha(e,t){return!e||!Ia(t)?!1:(t=t.slice(2).replace(/Once$/,""),$t(e,t[0].toLowerCase()+t.slice(1))||$t(e,Yi(t))||$t(e,t))}let we=null,ja=null;function da(e){const t=we;return we=e,ja=e&&e.type.__scopeId||null,t}function sr(e){ja=e}function ir(){ja=null}function Yt(e,t=we,n){if(!t||e._n)return e;const s=(...i)=>{s._d&&vh(-1);const o=da(t);let r;try{r=e(...i)}finally{da(o),s._d&&vh(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function El(e){const{type:t,vnode:n,proxy:s,withProxy:i,props:o,propsOptions:[r],slots:a,attrs:l,emit:c,render:u,renderCache:d,data:f,setupState:p,ctx:m,inheritAttrs:_}=e;let y,x;const S=da(e);try{if(n.shapeFlag&4){const C=i||s,v=C;y=Qe(u.call(v,C,d,o,p,f,m)),x=l}else{const C=t;y=Qe(C.length>1?C(o,{attrs:l,slots:a,emit:c}):C(o,null)),x=t.props?l:$w(l)}}catch(C){xo.length=0,nr(C,e,1),y=mt(Oe)}let P=y;if(x&&_!==!1){const C=Object.keys(x),{shapeFlag:v}=P;C.length&&v&7&&(r&&C.some(Zc)&&(x=Lw(x,r)),P=rs(P,x))}return n.dirs&&(P=rs(P),P.dirs=P.dirs?P.dirs.concat(n.dirs):n.dirs),n.transition&&(P.transition=n.transition),y=P,da(S),y}function Dw(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||Ia(n))&&((t||(t={}))[n]=e[n]);return t},Lw=(e,t)=>{const n={};for(const s in e)(!Zc(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Iw(e,t,n){const{props:s,children:i,component:o}=e,{props:r,children:a,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?ah(s,r,c):!!r;if(l&8){const u=t.dynamicProps;for(let d=0;de.__isSuspense;let ch=0;const Nw={name:"Suspense",__isSuspense:!0,process(e,t,n,s,i,o,r,a,l,c){e==null?Fw(t,n,s,i,o,r,a,l,c):Bw(e,t,n,s,i,r,a,l,c)},hydrate:Vw,create:yu,normalize:Hw},bu=Nw;function Bo(e,t){const n=e.props&&e.props[t];bt(n)&&n()}function Fw(e,t,n,s,i,o,r,a,l){const{p:c,o:{createElement:u}}=l,d=u("div"),f=e.suspense=yu(e,i,s,t,d,n,o,r,a,l);c(null,f.pendingBranch=e.ssContent,d,null,s,f,o,r),f.deps>0?(Bo(e,"onPending"),Bo(e,"onFallback"),c(null,e.ssFallback,t,n,s,null,o,r),bi(f,e.ssFallback)):f.resolve(!1,!0)}function Bw(e,t,n,s,i,o,r,a,{p:l,um:c,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const f=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:_,isInFallback:y,isHydrating:x}=d;if(_)d.pendingBranch=f,an(f,_)?(l(_,f,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0?d.resolve():y&&(x||(l(m,p,n,s,i,null,o,r,a),bi(d,p)))):(d.pendingId=ch++,x?(d.isHydrating=!1,d.activeBranch=_):c(_,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),y?(l(null,f,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0?d.resolve():(l(m,p,n,s,i,null,o,r,a),bi(d,p))):m&&an(f,m)?(l(m,f,n,s,i,d,o,r,a),d.resolve(!0)):(l(null,f,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0&&d.resolve()));else if(m&&an(f,m))l(m,f,n,s,i,d,o,r,a),bi(d,f);else if(Bo(t,"onPending"),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=ch++,l(null,f,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0)d.resolve();else{const{timeout:S,pendingId:P}=d;S>0?setTimeout(()=>{d.pendingId===P&&d.fallback(p)},S):S===0&&d.fallback(p)}}function yu(e,t,n,s,i,o,r,a,l,c,u=!1){const{p:d,m:f,um:p,n:m,o:{parentNode:_,remove:y}}=c;let x;const S=Ww(e);S&&t!=null&&t.pendingBranch&&(x=t.pendingId,t.deps++);const P=e.props?ug(e.props.timeout):void 0,C={vnode:e,parent:t,parentComponent:n,namespace:r,container:s,hiddenContainer:i,anchor:o,deps:0,pendingId:0,timeout:typeof P=="number"?P:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(v=!1,E=!1){const{vnode:A,activeBranch:w,pendingBranch:k,pendingId:$,effects:L,parentComponent:N,container:X}=C;let Y=!1;if(C.isHydrating)C.isHydrating=!1;else if(!v){Y=w&&k.transition&&k.transition.mode==="out-in",Y&&(w.transition.afterLeave=()=>{$===C.pendingId&&(f(k,X,m(w),0),rc(L))});let{anchor:W}=C;w&&(W=m(w),p(w,N,C,!0)),Y||f(k,X,W,0)}bi(C,k),C.pendingBranch=null,C.isInFallback=!1;let H=C.parent,R=!1;for(;H;){if(H.pendingBranch){H.effects.push(...L),R=!0;break}H=H.parent}!R&&!Y&&rc(L),C.effects=[],S&&t&&t.pendingBranch&&x===t.pendingId&&(t.deps--,t.deps===0&&!E&&t.resolve()),Bo(A,"onResolve")},fallback(v){if(!C.pendingBranch)return;const{vnode:E,activeBranch:A,parentComponent:w,container:k,namespace:$}=C;Bo(E,"onFallback");const L=m(A),N=()=>{C.isInFallback&&(d(null,v,k,L,w,null,$,a,l),bi(C,v))},X=v.transition&&v.transition.mode==="out-in";X&&(A.transition.afterLeave=N),C.isInFallback=!0,p(A,w,null,!0),X||N()},move(v,E,A){C.activeBranch&&f(C.activeBranch,v,E,A),C.container=v},next(){return C.activeBranch&&m(C.activeBranch)},registerDep(v,E){const A=!!C.pendingBranch;A&&C.deps++;const w=v.vnode.el;v.asyncDep.catch(k=>{nr(k,v,0)}).then(k=>{if(v.isUnmounted||C.isUnmounted||C.pendingId!==v.suspenseId)return;v.asyncResolved=!0;const{vnode:$}=v;fc(v,k,!1),w&&($.el=w);const L=!w&&v.subTree.el;E(v,$,_(w||v.subTree.el),w?null:m(v.subTree),C,r,l),L&&y(L),gu(v,$.el),A&&--C.deps===0&&C.resolve()})},unmount(v,E){C.isUnmounted=!0,C.activeBranch&&p(C.activeBranch,n,v,E),C.pendingBranch&&p(C.pendingBranch,n,v,E)}};return C}function Vw(e,t,n,s,i,o,r,a,l){const c=t.suspense=yu(t,s,n,e.parentNode,document.createElement("div"),null,i,o,r,a,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,o,r);return c.deps===0&&c.resolve(!1,!0),u}function Hw(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=uh(s?n.default:n),e.ssFallback=s?uh(n.fallback):mt(Oe)}function uh(e){let t;if(bt(e)){const n=ki&&e._c;n&&(e._d=!1,ot()),e=e(),n&&(e._d=!0,t=We,im())}return dt(e)&&(e=Dw(e)),e=Qe(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function jw(e,t){t&&t.pendingBranch?dt(e)?t.effects.push(...e):t.effects.push(e):rc(e)}function bi(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e,i=n.el=t.el;s&&s.subTree===n&&(s.vnode.el=i,gu(s,i))}function Ww(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}const zw=Symbol.for("v-scx"),Uw=()=>un(zw),kr={};function Bs(e,t,n){return Hg(e,t,n)}function Hg(e,t,{immediate:n,deep:s,flush:i,once:o,onTrack:r,onTrigger:a}=Vt){var l;if(t&&o){const v=t;t=(...E)=>{v(...E),C()}}const c=iu()===((l=te)==null?void 0:l.scope)?te:null;let u,d=!1,f=!1;if(ne(e)?(u=()=>e.value,d=hi(e)):ts(e)?(u=hi(e)||s===!1?()=>Cn(e,1):()=>Cn(e),d=!0):dt(e)?(f=!0,d=e.some(v=>ts(v)||hi(v)),u=()=>e.map(v=>{if(ne(v))return v.value;if(ts(v))return Cn(v,hi(v)||s===!1?1:void 0);if(bt(v))return ns(v,c,2)})):bt(e)?t?u=()=>ns(e,c,2):u=()=>{if(!(c&&c.isUnmounted))return p&&p(),Ke(e,c,3,[m])}:u=je,t&&s){const v=u;u=()=>Cn(v())}let p,m=v=>{p=P.onStop=()=>{ns(v,c,4),p=P.onStop=void 0}},_;if(qa)if(m=je,t?n&&Ke(t,c,3,[u(),f?[]:void 0,m]):u(),i==="sync"){const v=Uw();_=v.__watcherHandles||(v.__watcherHandles=[])}else return je;let y=f?new Array(e.length).fill(kr):kr;const x=()=>{if(!(!P.active||!P.dirty))if(t){const v=P.run();(s||d||(f?v.some((E,A)=>os(E,y[A])):os(v,y)))&&(p&&p(),Ke(t,c,3,[v,y===kr?void 0:f&&y[0]===kr?[]:y,m]),y=v)}else P.run()};x.allowRecurse=!!t;let S;i==="sync"?S=x:i==="post"?S=()=>ve(x,c&&c.suspense):(x.pre=!0,c&&(x.id=c.uid),S=()=>pu(x));const P=new ou(u,je,S),C=()=>{P.stop(),c&&c.scope&&tu(c.scope.effects,P)};return t?n?x():y=P.run():i==="post"?ve(P.run.bind(P),c&&c.suspense):P.run(),_&&_.push(C),C}function Kw(e,t,n){const s=this.proxy,i=Qt(e)?e.includes(".")?jg(s,e):()=>s[e]:e.bind(s,s);let o;bt(t)?o=t:(o=t.handler,n=t);const r=te;Oi(this);const a=Hg(i,o.bind(s),n);return r?Oi(r):Vs(),a}function jg(e,t){const n=t.split(".");return()=>{let s=e;for(let i=0;i0){if(n>=t)return e;n++}if(s=s||new Set,s.has(e))return e;if(s.add(e),ne(e))Cn(e.value,t,n,s);else if(dt(e))for(let i=0;i{Cn(i,t,n,s)});else if(cg(e))for(const i in e)Cn(e[i],t,n,s);return e}function kt(e,t){const n=we;if(n===null)return e;const s=Ga(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let o=0;o{e.isMounted=!0}),wu(()=>{e.isUnmounting=!0}),e}const Be=[Function,Array],zg={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Be,onEnter:Be,onAfterEnter:Be,onEnterCancelled:Be,onBeforeLeave:Be,onLeave:Be,onAfterLeave:Be,onLeaveCancelled:Be,onBeforeAppear:Be,onAppear:Be,onAfterAppear:Be,onAppearCancelled:Be},Yw={name:"BaseTransition",props:zg,setup(e,{slots:t}){const n=am(),s=Wg();let i;return()=>{const o=t.default&&vu(t.default(),!0);if(!o||!o.length)return;let r=o[0];if(o.length>1){for(const _ of o)if(_.type!==Oe){r=_;break}}const a=Tt(e),{mode:l}=a;if(s.isLeaving)return Sl(r);const c=dh(r);if(!c)return Sl(r);const u=Vo(c,a,s,n);Ho(c,u);const d=n.subTree,f=d&&dh(d);let p=!1;const{getTransitionKey:m}=c.type;if(m){const _=m();i===void 0?i=_:_!==i&&(i=_,p=!0)}if(f&&f.type!==Oe&&(!an(c,f)||p)){const _=Vo(f,a,s,n);if(Ho(f,_),l==="out-in")return s.isLeaving=!0,_.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Sl(r);l==="in-out"&&c.type!==Oe&&(_.delayLeave=(y,x,S)=>{const P=Ug(s,f);P[String(f.key)]=f,y[Un]=()=>{x(),y[Un]=void 0,delete u.delayedLeave},u.delayedLeave=S})}return r}}},qw=Yw;function Ug(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Vo(e,t,n,s){const{appear:i,mode:o,persisted:r=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:f,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:_,onAppear:y,onAfterAppear:x,onAppearCancelled:S}=t,P=String(e.key),C=Ug(n,e),v=(w,k)=>{w&&Ke(w,s,9,k)},E=(w,k)=>{const $=k[1];v(w,k),dt(w)?w.every(L=>L.length<=1)&&$():w.length<=1&&$()},A={mode:o,persisted:r,beforeEnter(w){let k=a;if(!n.isMounted)if(i)k=_||a;else return;w[Un]&&w[Un](!0);const $=C[P];$&&an(e,$)&&$.el[Un]&&$.el[Un](),v(k,[w])},enter(w){let k=l,$=c,L=u;if(!n.isMounted)if(i)k=y||l,$=x||c,L=S||u;else return;let N=!1;const X=w[Or]=Y=>{N||(N=!0,Y?v(L,[w]):v($,[w]),A.delayedLeave&&A.delayedLeave(),w[Or]=void 0)};k?E(k,[w,X]):X()},leave(w,k){const $=String(e.key);if(w[Or]&&w[Or](!0),n.isUnmounting)return k();v(d,[w]);let L=!1;const N=w[Un]=X=>{L||(L=!0,k(),X?v(m,[w]):v(p,[w]),w[Un]=void 0,C[$]===e&&delete C[$])};C[$]=e,f?E(f,[w,N]):N()},clone(w){return Vo(w,t,n,s)}};return A}function Sl(e){if(za(e))return e=rs(e),e.children=null,e}function dh(e){return za(e)?e.children?e.children[0]:void 0:e}function Ho(e,t){e.shapeFlag&6&&e.component?Ho(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function vu(e,t=!1,n){let s=[],i=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader,za=e=>e.type.__isKeepAlive;function Gw(e,t){Kg(e,"a",t)}function Xw(e,t){Kg(e,"da",t)}function Kg(e,t,n=te){const s=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Ua(t,s,n),n){let i=n.parent;for(;i&&i.parent;)za(i.parent.vnode)&&Qw(s,t,n,i),i=i.parent}}function Qw(e,t,n,s){const i=Ua(t,e,s,!0);qg(()=>{tu(s[t],i)},n)}function Ua(e,t,n=te,s=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;qs(),Oi(n);const a=Ke(t,n,e,r);return Vs(),Gs(),a});return s?i.unshift(o):i.push(o),o}}const Ln=e=>(t,n=te)=>(!qa||e==="sp")&&Ua(e,(...s)=>t(...s),n),Jw=Ln("bm"),xu=Ln("m"),Zw=Ln("bu"),Yg=Ln("u"),wu=Ln("bum"),qg=Ln("um"),t1=Ln("sp"),e1=Ln("rtg"),n1=Ln("rtc");function s1(e,t=te){Ua("ec",e,t)}function Mi(e,t,n,s){let i;const o=n&&n[s];if(dt(e)||Qt(e)){i=new Array(e.length);for(let r=0,a=e.length;rt(r,a,void 0,o&&o[a]));else{const r=Object.keys(e);i=new Array(r.length);for(let a=0,l=r.length;ae?lm(e)?Ga(e)||e.proxy:ac(e.parent):null,vo=Zt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ac(e.parent),$root:e=>ac(e.root),$emit:e=>e.emit,$options:e=>Eu(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,pu(e.update)}),$nextTick:e=>e.n||(e.n=Va.bind(e.proxy)),$watch:e=>Kw.bind(e)}),Cl=(e,t)=>e!==Vt&&!e.__isScriptSetup&&$t(e,t),i1={get({_:e},t){const{ctx:n,setupState:s,data:i,props:o,accessCache:r,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const p=r[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(Cl(s,t))return r[t]=1,s[t];if(i!==Vt&&$t(i,t))return r[t]=2,i[t];if((c=e.propsOptions[0])&&$t(c,t))return r[t]=3,o[t];if(n!==Vt&&$t(n,t))return r[t]=4,n[t];lc&&(r[t]=0)}}const u=vo[t];let d,f;if(u)return t==="$attrs"&&Se(e,"get",t),u(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==Vt&&$t(n,t))return r[t]=4,n[t];if(f=l.config.globalProperties,$t(f,t))return f[t]},set({_:e},t,n){const{data:s,setupState:i,ctx:o}=e;return Cl(i,t)?(i[t]=n,!0):s!==Vt&&$t(s,t)?(s[t]=n,!0):$t(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:i,propsOptions:o}},r){let a;return!!n[r]||e!==Vt&&$t(e,r)||Cl(t,r)||(a=o[0])&&$t(a,r)||$t(s,r)||$t(vo,r)||$t(i.config.globalProperties,r)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:$t(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function hh(e){return dt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let lc=!0;function o1(e){const t=Eu(e),n=e.proxy,s=e.ctx;lc=!1,t.beforeCreate&&fh(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:r,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:m,activated:_,deactivated:y,beforeDestroy:x,beforeUnmount:S,destroyed:P,unmounted:C,render:v,renderTracked:E,renderTriggered:A,errorCaptured:w,serverPrefetch:k,expose:$,inheritAttrs:L,components:N,directives:X,filters:Y}=t;if(c&&r1(c,s,null),r)for(const W in r){const U=r[W];bt(U)&&(s[W]=U.bind(n))}if(i){const W=i.call(n,n);Ft(W)&&(e.data=tr(W))}if(lc=!0,o)for(const W in o){const U=o[W],it=bt(U)?U.bind(n,n):bt(U.get)?U.get.bind(n,n):je,lt=!bt(U)&&bt(U.set)?U.set.bind(n):je,pt=He({get:it,set:lt});Object.defineProperty(s,W,{enumerable:!0,configurable:!0,get:()=>pt.value,set:ft=>pt.value=ft})}if(a)for(const W in a)Gg(a[W],s,n,W);if(l){const W=bt(l)?l.call(n):l;Reflect.ownKeys(W).forEach(U=>{ea(U,W[U])})}u&&fh(u,e,"c");function R(W,U){dt(U)?U.forEach(it=>W(it.bind(n))):U&&W(U.bind(n))}if(R(Jw,d),R(xu,f),R(Zw,p),R(Yg,m),R(Gw,_),R(Xw,y),R(s1,w),R(n1,E),R(e1,A),R(wu,S),R(qg,C),R(t1,k),dt($))if($.length){const W=e.exposed||(e.exposed={});$.forEach(U=>{Object.defineProperty(W,U,{get:()=>n[U],set:it=>n[U]=it})})}else e.exposed||(e.exposed={});v&&e.render===je&&(e.render=v),L!=null&&(e.inheritAttrs=L),N&&(e.components=N),X&&(e.directives=X)}function r1(e,t,n=je){dt(e)&&(e=cc(e));for(const s in e){const i=e[s];let o;Ft(i)?"default"in i?o=un(i.from||s,i.default,!0):o=un(i.from||s):o=un(i),ne(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[s]=o}}function fh(e,t,n){Ke(dt(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Gg(e,t,n,s){const i=s.includes(".")?jg(n,s):()=>n[s];if(Qt(e)){const o=t[e];bt(o)&&Bs(i,o)}else if(bt(e))Bs(i,e.bind(n));else if(Ft(e))if(dt(e))e.forEach(o=>Gg(o,t,n,s));else{const o=bt(e.handler)?e.handler.bind(n):t[e.handler];bt(o)&&Bs(i,o,e)}}function Eu(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,a=o.get(t);let l;return a?l=a:!i.length&&!n&&!s?l=t:(l={},i.length&&i.forEach(c=>ha(l,c,r,!0)),ha(l,t,r)),Ft(t)&&o.set(t,l),l}function ha(e,t,n,s=!1){const{mixins:i,extends:o}=t;o&&ha(e,o,n,!0),i&&i.forEach(r=>ha(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const a=a1[r]||n&&n[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const a1={data:ph,props:gh,emits:gh,methods:ho,computed:ho,beforeCreate:pe,created:pe,beforeMount:pe,mounted:pe,beforeUpdate:pe,updated:pe,beforeDestroy:pe,beforeUnmount:pe,destroyed:pe,unmounted:pe,activated:pe,deactivated:pe,errorCaptured:pe,serverPrefetch:pe,components:ho,directives:ho,watch:c1,provide:ph,inject:l1};function ph(e,t){return t?e?function(){return Zt(bt(e)?e.call(this,this):e,bt(t)?t.call(this,this):t)}:t:e}function l1(e,t){return ho(cc(e),cc(t))}function cc(e){if(dt(e)){const t={};for(let n=0;n1)return n&&bt(t)?t.call(s&&s.proxy):t}}function h1(){return!!(te||we||jo)}function f1(e,t,n,s=!1){const i={},o={};la(o,Ya,1),e.propsDefaults=Object.create(null),Qg(e,t,i,o);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);n?e.props=s?i:Pg(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function p1(e,t,n,s){const{props:i,attrs:o,vnode:{patchFlag:r}}=e,a=Tt(i),[l]=e.propsOptions;let c=!1;if((s||r>0)&&!(r&16)){if(r&8){const u=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[f,p]=Jg(d,t,!0);Zt(r,f),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return Ft(e)&&s.set(e,gi),gi;if(dt(o))for(let u=0;u-1,p[1]=_<0||m<_,(m>-1||$t(p,"default"))&&a.push(d)}}}const c=[r,a];return Ft(e)&&s.set(e,c),c}function mh(e){return e[0]!=="$"}function _h(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function bh(e,t){return _h(e)===_h(t)}function yh(e,t){return dt(t)?t.findIndex(n=>bh(n,e)):bt(t)&&bh(t,e)?0:-1}const Zg=e=>e[0]==="_"||e==="$stable",Su=e=>dt(e)?e.map(Qe):[Qe(e)],g1=(e,t,n)=>{if(t._n)return t;const s=Yt((...i)=>Su(t(...i)),n);return s._c=!1,s},tm=(e,t,n)=>{const s=e._ctx;for(const i in e){if(Zg(i))continue;const o=e[i];if(bt(o))t[i]=g1(i,o,s);else if(o!=null){const r=Su(o);t[i]=()=>r}}},em=(e,t)=>{const n=Su(t);e.slots.default=()=>n},m1=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Tt(t),la(t,"_",n)):tm(t,e.slots={})}else e.slots={},t&&em(e,t);la(e.slots,Ya,1)},_1=(e,t,n)=>{const{vnode:s,slots:i}=e;let o=!0,r=Vt;if(s.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:(Zt(i,t),!n&&a===1&&delete i._):(o=!t.$stable,tm(t,i)),r=t}else t&&(em(e,t),r={default:1});if(o)for(const a in i)!Zg(a)&&r[a]==null&&delete i[a]};function dc(e,t,n,s,i=!1){if(dt(e)){e.forEach((f,p)=>dc(f,t&&(dt(t)?t[p]:t),n,s,i));return}if(ta(s)&&!i)return;const o=s.shapeFlag&4?Ga(s.component)||s.component.proxy:s.el,r=i?null:o,{i:a,r:l}=e,c=t&&t.r,u=a.refs===Vt?a.refs={}:a.refs,d=a.setupState;if(c!=null&&c!==l&&(Qt(c)?(u[c]=null,$t(d,c)&&(d[c]=null)):ne(c)&&(c.value=null)),bt(l))ns(l,a,12,[r,u]);else{const f=Qt(l),p=ne(l);if(f||p){const m=()=>{if(e.f){const _=f?$t(d,l)?d[l]:u[l]:l.value;i?dt(_)&&tu(_,o):dt(_)?_.includes(o)||_.push(o):f?(u[l]=[o],$t(d,l)&&(d[l]=u[l])):(l.value=[o],e.k&&(u[e.k]=l.value))}else f?(u[l]=r,$t(d,l)&&(d[l]=r)):p&&(l.value=r,e.k&&(u[e.k]=r))};r?(m.id=-1,ve(m,n)):m()}}}const ve=jw;function b1(e){return y1(e)}function y1(e,t){const n=dg();n.__VUE__=!0;const{insert:s,remove:i,patchProp:o,createElement:r,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=je,insertStaticContent:m}=e,_=(T,D,I,V=null,K=null,G=null,Z=void 0,Q=null,B=!!D.dynamicChildren)=>{if(T===D)return;T&&!an(T,D)&&(V=j(T),ft(T,K,G,!0),T=null),D.patchFlag===-2&&(B=!1,D.dynamicChildren=null);const{type:q,ref:at,shapeFlag:ht}=D;switch(q){case Ka:y(T,D,I,V);break;case Oe:x(T,D,I,V);break;case na:T==null&&S(D,I,V,Z);break;case Jt:N(T,D,I,V,K,G,Z,Q,B);break;default:ht&1?v(T,D,I,V,K,G,Z,Q,B):ht&6?X(T,D,I,V,K,G,Z,Q,B):(ht&64||ht&128)&&q.process(T,D,I,V,K,G,Z,Q,B,J)}at!=null&&K&&dc(at,T&&T.ref,G,D||T,!D)},y=(T,D,I,V)=>{if(T==null)s(D.el=a(D.children),I,V);else{const K=D.el=T.el;D.children!==T.children&&c(K,D.children)}},x=(T,D,I,V)=>{T==null?s(D.el=l(D.children||""),I,V):D.el=T.el},S=(T,D,I,V)=>{[T.el,T.anchor]=m(T.children,D,I,V,T.el,T.anchor)},P=({el:T,anchor:D},I,V)=>{let K;for(;T&&T!==D;)K=f(T),s(T,I,V),T=K;s(D,I,V)},C=({el:T,anchor:D})=>{let I;for(;T&&T!==D;)I=f(T),i(T),T=I;i(D)},v=(T,D,I,V,K,G,Z,Q,B)=>{D.type==="svg"?Z="svg":D.type==="math"&&(Z="mathml"),T==null?E(D,I,V,K,G,Z,Q,B):k(T,D,K,G,Z,Q,B)},E=(T,D,I,V,K,G,Z,Q)=>{let B,q;const{props:at,shapeFlag:ht,transition:ut,dirs:gt}=T;if(B=T.el=r(T.type,G,at&&at.is,at),ht&8?u(B,T.children):ht&16&&w(T.children,B,null,V,K,Al(T,G),Z,Q),gt&&Ss(T,null,V,"created"),A(B,T,T.scopeId,Z,V),at){for(const Dt in at)Dt!=="value"&&!Jr(Dt)&&o(B,Dt,null,at[Dt],G,T.children,V,K,Et);"value"in at&&o(B,"value",null,at.value,G),(q=at.onVnodeBeforeMount)&&nn(q,V,T)}gt&&Ss(T,null,V,"beforeMount");const vt=v1(K,ut);vt&&ut.beforeEnter(B),s(B,D,I),((q=at&&at.onVnodeMounted)||vt||gt)&&ve(()=>{q&&nn(q,V,T),vt&&ut.enter(B),gt&&Ss(T,null,V,"mounted")},K)},A=(T,D,I,V,K)=>{if(I&&p(T,I),V)for(let G=0;G{for(let q=B;q{const Q=D.el=T.el;let{patchFlag:B,dynamicChildren:q,dirs:at}=D;B|=T.patchFlag&16;const ht=T.props||Vt,ut=D.props||Vt;let gt;if(I&&Cs(I,!1),(gt=ut.onVnodeBeforeUpdate)&&nn(gt,I,D,T),at&&Ss(D,T,I,"beforeUpdate"),I&&Cs(I,!0),q?$(T.dynamicChildren,q,Q,I,V,Al(D,K),G):Z||U(T,D,Q,null,I,V,Al(D,K),G,!1),B>0){if(B&16)L(Q,D,ht,ut,I,V,K);else if(B&2&&ht.class!==ut.class&&o(Q,"class",null,ut.class,K),B&4&&o(Q,"style",ht.style,ut.style,K),B&8){const vt=D.dynamicProps;for(let Dt=0;Dt{gt&&nn(gt,I,D,T),at&&Ss(D,T,I,"updated")},V)},$=(T,D,I,V,K,G,Z)=>{for(let Q=0;Q{if(I!==V){if(I!==Vt)for(const Q in I)!Jr(Q)&&!(Q in V)&&o(T,Q,I[Q],null,Z,D.children,K,G,Et);for(const Q in V){if(Jr(Q))continue;const B=V[Q],q=I[Q];B!==q&&Q!=="value"&&o(T,Q,q,B,Z,D.children,K,G,Et)}"value"in V&&o(T,"value",I.value,V.value,Z)}},N=(T,D,I,V,K,G,Z,Q,B)=>{const q=D.el=T?T.el:a(""),at=D.anchor=T?T.anchor:a("");let{patchFlag:ht,dynamicChildren:ut,slotScopeIds:gt}=D;gt&&(Q=Q?Q.concat(gt):gt),T==null?(s(q,I,V),s(at,I,V),w(D.children,I,at,K,G,Z,Q,B)):ht>0&&ht&64&&ut&&T.dynamicChildren?($(T.dynamicChildren,ut,I,K,G,Z,Q),(D.key!=null||K&&D===K.subTree)&&nm(T,D,!0)):U(T,D,I,at,K,G,Z,Q,B)},X=(T,D,I,V,K,G,Z,Q,B)=>{D.slotScopeIds=Q,T==null?D.shapeFlag&512?K.ctx.activate(D,I,V,Z,B):Y(D,I,V,K,G,Z,B):H(T,D,B)},Y=(T,D,I,V,K,G,Z)=>{const Q=T.component=M1(T,V,K);if(za(T)&&(Q.ctx.renderer=J),k1(Q),Q.asyncDep){if(K&&K.registerDep(Q,R),!T.el){const B=Q.subTree=mt(Oe);x(null,B,D,I)}}else R(Q,T,D,I,K,G,Z)},H=(T,D,I)=>{const V=D.component=T.component;if(Iw(T,D,I))if(V.asyncDep&&!V.asyncResolved){W(V,D,I);return}else V.next=D,Mw(V.update),V.effect.dirty=!0,V.update();else D.el=T.el,V.vnode=D},R=(T,D,I,V,K,G,Z)=>{const Q=()=>{if(T.isMounted){let{next:at,bu:ht,u:ut,parent:gt,vnode:vt}=T;{const gs=sm(T);if(gs){at&&(at.el=vt.el,W(T,at,Z)),gs.asyncDep.then(()=>{T.isUnmounted||Q()});return}}let Dt=at,It;Cs(T,!1),at?(at.el=vt.el,W(T,at,Z)):at=vt,ht&&Zr(ht),(It=at.props&&at.props.onVnodeBeforeUpdate)&&nn(It,gt,at,vt),Cs(T,!0);const zt=El(T),Ae=T.subTree;T.subTree=zt,_(Ae,zt,d(Ae.el),j(Ae),T,K,G),at.el=zt.el,Dt===null&&gu(T,zt.el),ut&&ve(ut,K),(It=at.props&&at.props.onVnodeUpdated)&&ve(()=>nn(It,gt,at,vt),K)}else{let at;const{el:ht,props:ut}=D,{bm:gt,m:vt,parent:Dt}=T,It=ta(D);if(Cs(T,!1),gt&&Zr(gt),!It&&(at=ut&&ut.onVnodeBeforeMount)&&nn(at,Dt,D),Cs(T,!0),ht&&F){const zt=()=>{T.subTree=El(T),F(ht,T.subTree,T,K,null)};It?D.type.__asyncLoader().then(()=>!T.isUnmounted&&zt()):zt()}else{const zt=T.subTree=El(T);_(null,zt,I,V,T,K,G),D.el=zt.el}if(vt&&ve(vt,K),!It&&(at=ut&&ut.onVnodeMounted)){const zt=D;ve(()=>nn(at,Dt,zt),K)}(D.shapeFlag&256||Dt&&ta(Dt.vnode)&&Dt.vnode.shapeFlag&256)&&T.a&&ve(T.a,K),T.isMounted=!0,D=I=V=null}},B=T.effect=new ou(Q,je,()=>pu(q),T.scope),q=T.update=()=>{B.dirty&&B.run()};q.id=T.uid,Cs(T,!0),q()},W=(T,D,I)=>{D.component=T;const V=T.vnode.props;T.vnode=D,T.next=null,p1(T,D.props,V,I),_1(T,D.children,I),qs(),rh(T),Gs()},U=(T,D,I,V,K,G,Z,Q,B=!1)=>{const q=T&&T.children,at=T?T.shapeFlag:0,ht=D.children,{patchFlag:ut,shapeFlag:gt}=D;if(ut>0){if(ut&128){lt(q,ht,I,V,K,G,Z,Q,B);return}else if(ut&256){it(q,ht,I,V,K,G,Z,Q,B);return}}gt&8?(at&16&&Et(q,K,G),ht!==q&&u(I,ht)):at&16?gt&16?lt(q,ht,I,V,K,G,Z,Q,B):Et(q,K,G,!0):(at&8&&u(I,""),gt&16&&w(ht,I,V,K,G,Z,Q,B))},it=(T,D,I,V,K,G,Z,Q,B)=>{T=T||gi,D=D||gi;const q=T.length,at=D.length,ht=Math.min(q,at);let ut;for(ut=0;utat?Et(T,K,G,!0,!1,ht):w(D,I,V,K,G,Z,Q,B,ht)},lt=(T,D,I,V,K,G,Z,Q,B)=>{let q=0;const at=D.length;let ht=T.length-1,ut=at-1;for(;q<=ht&&q<=ut;){const gt=T[q],vt=D[q]=B?Kn(D[q]):Qe(D[q]);if(an(gt,vt))_(gt,vt,I,null,K,G,Z,Q,B);else break;q++}for(;q<=ht&&q<=ut;){const gt=T[ht],vt=D[ut]=B?Kn(D[ut]):Qe(D[ut]);if(an(gt,vt))_(gt,vt,I,null,K,G,Z,Q,B);else break;ht--,ut--}if(q>ht){if(q<=ut){const gt=ut+1,vt=gtut)for(;q<=ht;)ft(T[q],K,G,!0),q++;else{const gt=q,vt=q,Dt=new Map;for(q=vt;q<=ut;q++){const ce=D[q]=B?Kn(D[q]):Qe(D[q]);ce.key!=null&&Dt.set(ce.key,q)}let It,zt=0;const Ae=ut-vt+1;let gs=!1,ur=0;const ms=new Array(Ae);for(q=0;q=Ae){ft(ce,K,G,!0);continue}let Re;if(ce.key!=null)Re=Dt.get(ce.key);else for(It=vt;It<=ut;It++)if(ms[It-vt]===0&&an(ce,D[It])){Re=It;break}Re===void 0?ft(ce,K,G,!0):(ms[Re-vt]=q+1,Re>=ur?ur=Re:gs=!0,_(ce,D[Re],I,null,K,G,Z,Q,B),zt++)}const dr=gs?x1(ms):gi;for(It=dr.length-1,q=Ae-1;q>=0;q--){const ce=vt+q,Re=D[ce],Rn=ce+1{const{el:G,type:Z,transition:Q,children:B,shapeFlag:q}=T;if(q&6){pt(T.component.subTree,D,I,V);return}if(q&128){T.suspense.move(D,I,V);return}if(q&64){Z.move(T,D,I,J);return}if(Z===Jt){s(G,D,I);for(let ht=0;htQ.enter(G),K);else{const{leave:ht,delayLeave:ut,afterLeave:gt}=Q,vt=()=>s(G,D,I),Dt=()=>{ht(G,()=>{vt(),gt&>()})};ut?ut(G,vt,Dt):Dt()}else s(G,D,I)},ft=(T,D,I,V=!1,K=!1)=>{const{type:G,props:Z,ref:Q,children:B,dynamicChildren:q,shapeFlag:at,patchFlag:ht,dirs:ut}=T;if(Q!=null&&dc(Q,null,I,T,!0),at&256){D.ctx.deactivate(T);return}const gt=at&1&&ut,vt=!ta(T);let Dt;if(vt&&(Dt=Z&&Z.onVnodeBeforeUnmount)&&nn(Dt,D,T),at&6)Mt(T.component,I,V);else{if(at&128){T.suspense.unmount(I,V);return}gt&&Ss(T,null,D,"beforeUnmount"),at&64?T.type.remove(T,D,I,K,J,V):q&&(G!==Jt||ht>0&&ht&64)?Et(q,D,I,!1,!0):(G===Jt&&ht&384||!K&&at&16)&&Et(B,D,I),V&&At(T)}(vt&&(Dt=Z&&Z.onVnodeUnmounted)||gt)&&ve(()=>{Dt&&nn(Dt,D,T),gt&&Ss(T,null,D,"unmounted")},I)},At=T=>{const{type:D,el:I,anchor:V,transition:K}=T;if(D===Jt){wt(I,V);return}if(D===na){C(T);return}const G=()=>{i(I),K&&!K.persisted&&K.afterLeave&&K.afterLeave()};if(T.shapeFlag&1&&K&&!K.persisted){const{leave:Z,delayLeave:Q}=K,B=()=>Z(I,G);Q?Q(T.el,G,B):B()}else G()},wt=(T,D)=>{let I;for(;T!==D;)I=f(T),i(T),T=I;i(D)},Mt=(T,D,I)=>{const{bum:V,scope:K,update:G,subTree:Z,um:Q}=T;V&&Zr(V),K.stop(),G&&(G.active=!1,ft(Z,T,D,I)),Q&&ve(Q,D),ve(()=>{T.isUnmounted=!0},D),D&&D.pendingBranch&&!D.isUnmounted&&T.asyncDep&&!T.asyncResolved&&T.suspenseId===D.pendingId&&(D.deps--,D.deps===0&&D.resolve())},Et=(T,D,I,V=!1,K=!1,G=0)=>{for(let Z=G;ZT.shapeFlag&6?j(T.component.subTree):T.shapeFlag&128?T.suspense.next():f(T.anchor||T.el),et=(T,D,I)=>{T==null?D._vnode&&ft(D._vnode,null,null,!0):_(D._vnode||null,T,D,null,null,null,I),rh(),Rg(),D._vnode=T},J={p:_,um:ft,m:pt,r:At,mt:Y,mc:w,pc:U,pbc:$,n:j,o:e};let rt,F;return t&&([rt,F]=t(J)),{render:et,hydrate:rt,createApp:d1(et,rt)}}function Al({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Cs({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function v1(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function nm(e,t,n=!1){const s=e.children,i=t.children;if(dt(s)&&dt(i))for(let o=0;o>1,e[n[a]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,r=n[o-1];o-- >0;)n[o]=r,r=t[r];return n}function sm(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:sm(t)}const w1=e=>e.__isTeleport,Jt=Symbol.for("v-fgt"),Ka=Symbol.for("v-txt"),Oe=Symbol.for("v-cmt"),na=Symbol.for("v-stc"),xo=[];let We=null;function ot(e=!1){xo.push(We=e?null:[])}function im(){xo.pop(),We=xo[xo.length-1]||null}let ki=1;function vh(e){ki+=e}function om(e){return e.dynamicChildren=ki>0?We||gi:null,im(),ki>0&&We&&We.push(e),e}function ct(e,t,n,s,i,o){return om(g(e,t,n,s,i,o,!0))}function Ee(e,t,n,s,i){return om(mt(e,t,n,s,i,!0))}function fa(e){return e?e.__v_isVNode===!0:!1}function an(e,t){return e.type===t.type&&e.key===t.key}const Ya="__vInternal",rm=({key:e})=>e??null,sa=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Qt(e)||ne(e)||bt(e)?{i:we,r:e,k:t,f:!!n}:e:null);function g(e,t=null,n=null,s=0,i=null,o=e===Jt?0:1,r=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&rm(t),ref:t&&sa(t),scopeId:ja,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:we};return a?(Cu(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Qt(n)?8:16),ki>0&&!r&&We&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&We.push(l),l}const mt=E1;function E1(e,t=null,n=null,s=0,i=null,o=!1){if((!e||e===Bg)&&(e=Oe),fa(e)){const a=rs(e,t,!0);return n&&Cu(a,n),ki>0&&!o&&We&&(a.shapeFlag&6?We[We.indexOf(e)]=a:We.push(a)),a.patchFlag|=-2,a}if(I1(e)&&(e=e.__vccOpts),t){t=S1(t);let{class:a,style:l}=t;a&&!Qt(a)&&(t.class=he(a)),Ft(l)&&(Ba(l)&&!dt(l)&&(l=Zt({},l)),t.style=nu(l))}const r=Qt(e)?1:Rw(e)?128:w1(e)?64:Ft(e)?4:bt(e)?2:0;return g(e,t,n,s,i,r,o,!0)}function S1(e){return e?Ba(e)||Ya in e?Zt({},e):e:null}function rs(e,t,n=!1){const{props:s,ref:i,patchFlag:o,children:r}=e,a=t?A1(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&rm(a),ref:t&&t.ref?n&&i?dt(i)?i.concat(sa(t)):[i,sa(t)]:sa(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Jt?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&rs(e.ssContent),ssFallback:e.ssFallback&&rs(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function xt(e=" ",t=0){return mt(Ka,null,e,t)}function C1(e,t){const n=mt(na,null,e);return n.staticCount=t,n}function oe(e="",t=!1){return t?(ot(),Ee(Oe,null,e)):mt(Oe,null,e)}function Qe(e){return e==null||typeof e=="boolean"?mt(Oe):dt(e)?mt(Jt,null,e.slice()):typeof e=="object"?Kn(e):mt(Ka,null,String(e))}function Kn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:rs(e)}function Cu(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(dt(t))n=16;else if(typeof t=="object")if(s&65){const i=t.default;i&&(i._c&&(i._d=!1),Cu(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(Ya in t)?t._ctx=we:i===3&&we&&(we.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else bt(t)?(t={default:t,_ctx:we},n=32):(t=String(t),s&64?(n=16,t=[xt(t)]):n=8);e.children=t,e.shapeFlag|=n}function A1(...e){const t={};for(let n=0;nte||we;let Au,hc;{const e=dg(),t=(n,s)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(s),o=>{i.length>1?i.forEach(r=>r(o)):i[0](o)}};Au=t("__VUE_INSTANCE_SETTERS__",n=>te=n),hc=t("__VUE_SSR_SETTERS__",n=>qa=n)}const Oi=e=>{Au(e),e.scope.on()},Vs=()=>{te&&te.scope.off(),Au(null)};function lm(e){return e.vnode.shapeFlag&4}let qa=!1;function k1(e,t=!1){t&&hc(t);const{props:n,children:s}=e.vnode,i=lm(e);f1(e,n,i,t),m1(e,s);const o=i?O1(e,t):void 0;return t&&hc(!1),o}function O1(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=er(new Proxy(e.ctx,i1));const{setup:s}=n;if(s){const i=e.setupContext=s.length>1?$1(e):null;Oi(e),qs();const o=ns(s,e,0,[e.props,i]);if(Gs(),Vs(),ag(o)){if(o.then(Vs,Vs),t)return o.then(r=>{fc(e,r,t)}).catch(r=>{nr(r,e,0)});e.asyncDep=o}else fc(e,o,t)}else cm(e,t)}function fc(e,t,n){bt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ft(t)&&(e.setupState=$g(t)),cm(e,n)}let xh;function cm(e,t,n){const s=e.type;if(!e.render){if(!t&&xh&&!s.render){const i=s.template||Eu(e).template;if(i){const{isCustomElement:o,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:l}=s,c=Zt(Zt({isCustomElement:o,delimiters:a},r),l);s.render=xh(i,c)}}e.render=s.render||je}{Oi(e),qs();try{o1(e)}finally{Gs(),Vs()}}}function D1(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Se(e,"get","$attrs"),t[n]}}))}function $1(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return D1(e)},slots:e.slots,emit:e.emit,expose:t}}function Ga(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy($g(er(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in vo)return vo[n](e)},has(t,n){return n in t||n in vo}}))}function L1(e,t=!0){return bt(e)?e.displayName||e.name:e.name||t&&e.__name}function I1(e){return bt(e)&&"__vccOpts"in e}const He=(e,t)=>xw(e,t,qa);function Di(e,t,n){const s=arguments.length;return s===2?Ft(t)&&!dt(t)?fa(t)?mt(e,null,[t]):mt(e,t):mt(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&fa(n)&&(n=[n]),mt(e,t,n))}const um="3.4.3",R1="http://www.w3.org/2000/svg",N1="http://www.w3.org/1998/Math/MathML",Yn=typeof document<"u"?document:null,wh=Yn&&Yn.createElement("template"),F1={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const i=t==="svg"?Yn.createElementNS(R1,e):t==="mathml"?Yn.createElementNS(N1,e):Yn.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:e=>Yn.createTextNode(e),createComment:e=>Yn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Yn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,i,o){const r=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{wh.innerHTML=s==="svg"?`${e}`:s==="mathml"?`${e}`:e;const a=wh.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Vn="transition",io="animation",$i=Symbol("_vtc"),Dn=(e,{slots:t})=>Di(qw,hm(e),t);Dn.displayName="Transition";const dm={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},B1=Dn.props=Zt({},zg,dm),As=(e,t=[])=>{dt(e)?e.forEach(n=>n(...t)):e&&e(...t)},Eh=e=>e?dt(e)?e.some(t=>t.length>1):e.length>1:!1;function hm(e){const t={};for(const N in e)N in dm||(t[N]=e[N]);if(e.css===!1)return t;const{name:n="v",type:s,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:c=r,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=V1(i),_=m&&m[0],y=m&&m[1],{onBeforeEnter:x,onEnter:S,onEnterCancelled:P,onLeave:C,onLeaveCancelled:v,onBeforeAppear:E=x,onAppear:A=S,onAppearCancelled:w=P}=t,k=(N,X,Y)=>{Wn(N,X?u:a),Wn(N,X?c:r),Y&&Y()},$=(N,X)=>{N._isLeaving=!1,Wn(N,d),Wn(N,p),Wn(N,f),X&&X()},L=N=>(X,Y)=>{const H=N?A:S,R=()=>k(X,N,Y);As(H,[X,R]),Sh(()=>{Wn(X,N?l:o),yn(X,N?u:a),Eh(H)||Ch(X,s,_,R)})};return Zt(t,{onBeforeEnter(N){As(x,[N]),yn(N,o),yn(N,r)},onBeforeAppear(N){As(E,[N]),yn(N,l),yn(N,c)},onEnter:L(!1),onAppear:L(!0),onLeave(N,X){N._isLeaving=!0;const Y=()=>$(N,X);yn(N,d),pm(),yn(N,f),Sh(()=>{N._isLeaving&&(Wn(N,d),yn(N,p),Eh(C)||Ch(N,s,y,Y))}),As(C,[N,Y])},onEnterCancelled(N){k(N,!1),As(P,[N])},onAppearCancelled(N){k(N,!0),As(w,[N])},onLeaveCancelled(N){$(N),As(v,[N])}})}function V1(e){if(e==null)return null;if(Ft(e))return[Tl(e.enter),Tl(e.leave)];{const t=Tl(e);return[t,t]}}function Tl(e){return ug(e)}function yn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[$i]||(e[$i]=new Set)).add(t)}function Wn(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[$i];n&&(n.delete(t),n.size||(e[$i]=void 0))}function Sh(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let H1=0;function Ch(e,t,n,s){const i=e._endId=++H1,o=()=>{i===e._endId&&s()};if(n)return setTimeout(o,n);const{type:r,timeout:a,propCount:l}=fm(e,t);if(!r)return s();const c=r+"end";let u=0;const d=()=>{e.removeEventListener(c,f),o()},f=p=>{p.target===e&&++u>=l&&d()};setTimeout(()=>{u(n[m]||"").split(", "),i=s(`${Vn}Delay`),o=s(`${Vn}Duration`),r=Ah(i,o),a=s(`${io}Delay`),l=s(`${io}Duration`),c=Ah(a,l);let u=null,d=0,f=0;t===Vn?r>0&&(u=Vn,d=r,f=o.length):t===io?c>0&&(u=io,d=c,f=l.length):(d=Math.max(r,c),u=d>0?r>c?Vn:io:null,f=u?u===Vn?o.length:l.length:0);const p=u===Vn&&/\b(transform|all)(,|$)/.test(s(`${Vn}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Ah(e,t){for(;e.lengthTh(n)+Th(e[s])))}function Th(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function pm(){return document.body.offsetHeight}function j1(e,t,n){const s=e[$i];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const W1=Symbol("_vod"),z1=Symbol("");function U1(e,t,n){const s=e.style,i=Qt(n);if(n&&!i){if(t&&!Qt(t))for(const o in t)n[o]==null&&pc(s,o,"");for(const o in n)pc(s,o,n[o])}else{const o=s.display;if(i){if(t!==n){const r=s[z1];r&&(n+=";"+r),s.cssText=n}}else t&&e.removeAttribute("style");W1 in e&&(s.display=o)}}const Ph=/\s*!important$/;function pc(e,t,n){if(dt(n))n.forEach(s=>pc(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=K1(e,t);Ph.test(n)?e.setProperty(Yi(s),n.replace(Ph,""),"important"):e[s]=n}}const Mh=["Webkit","Moz","ms"],Pl={};function K1(e,t){const n=Pl[t];if(n)return n;let s=fn(t);if(s!=="filter"&&s in e)return Pl[t]=s;s=Na(s);for(let i=0;iMl||(J1.then(()=>Ml=0),Ml=Date.now());function tE(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Ke(eE(s,n.value),t,5,[s])};return n.value=e,n.attached=Z1(),n}function eE(e,t){if(dt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>i=>!i._stopped&&s&&s(i))}else return t}const $h=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,nE=(e,t,n,s,i,o,r,a,l)=>{const c=i==="svg";t==="class"?j1(e,s,c):t==="style"?U1(e,n,s):Ia(t)?Zc(t)||X1(e,t,n,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):sE(e,t,s,c))?q1(e,t,s,o,r,a,l):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Y1(e,t,s,c))};function sE(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&$h(t)&&bt(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return $h(t)&&Qt(n)?!1:t in e}const gm=new WeakMap,mm=new WeakMap,pa=Symbol("_moveCb"),Lh=Symbol("_enterCb"),_m={name:"TransitionGroup",props:Zt({},B1,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=am(),s=Wg();let i,o;return Yg(()=>{if(!i.length)return;const r=e.moveClass||`${e.name||"v"}-move`;if(!lE(i[0].el,n.vnode.el,r))return;i.forEach(oE),i.forEach(rE);const a=i.filter(aE);pm(),a.forEach(l=>{const c=l.el,u=c.style;yn(c,r),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[pa]=f=>{f&&f.target!==c||(!f||/transform$/.test(f.propertyName))&&(c.removeEventListener("transitionend",d),c[pa]=null,Wn(c,r))};c.addEventListener("transitionend",d)})}),()=>{const r=Tt(e),a=hm(r);let l=r.tag||Jt;i=o,o=t.default?vu(t.default()):[];for(let c=0;cdelete e.mode;_m.props;const bm=_m;function oE(e){const t=e.el;t[pa]&&t[pa](),t[Lh]&&t[Lh]()}function rE(e){mm.set(e,e.el.getBoundingClientRect())}function aE(e){const t=gm.get(e),n=mm.get(e),s=t.left-n.left,i=t.top-n.top;if(s||i){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${s}px,${i}px)`,o.transitionDuration="0s",e}}function lE(e,t,n){const s=e.cloneNode(),i=e[$i];i&&i.forEach(a=>{a.split(/\s+/).forEach(l=>l&&s.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&s.classList.add(a)),s.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(s);const{hasTransform:r}=fm(s);return o.removeChild(s),r}const as=e=>{const t=e.props["onUpdate:modelValue"]||!1;return dt(t)?n=>Zr(t,n):t};function cE(e){e.target.composing=!0}function Ih(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ye=Symbol("_assign"),Ot={created(e,{modifiers:{lazy:t,trim:n,number:s}},i){e[Ye]=as(i);const o=s||i.props&&i.props.type==="number";Sn(e,t?"change":"input",r=>{if(r.target.composing)return;let a=e.value;n&&(a=a.trim()),o&&(a=ca(a)),e[Ye](a)}),n&&Sn(e,"change",()=>{e.value=e.value.trim()}),t||(Sn(e,"compositionstart",cE),Sn(e,"compositionend",Ih),Sn(e,"change",Ih))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:i}},o){if(e[Ye]=as(o),e.composing)return;const r=i||e.type==="number"?ca(e.value):e.value,a=t??"";r!==a&&(document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===a)||(e.value=a))}},Tu={deep:!0,created(e,t,n){e[Ye]=as(n),Sn(e,"change",()=>{const s=e._modelValue,i=Li(e),o=e.checked,r=e[Ye];if(dt(s)){const a=su(s,i),l=a!==-1;if(o&&!l)r(s.concat(i));else if(!o&&l){const c=[...s];c.splice(a,1),r(c)}}else if(Ki(s)){const a=new Set(s);o?a.add(i):a.delete(i),r(a)}else r(ym(e,o))})},mounted:Rh,beforeUpdate(e,t,n){e[Ye]=as(n),Rh(e,t,n)}};function Rh(e,{value:t,oldValue:n},s){e._modelValue=t,dt(t)?e.checked=su(t,s.props.value)>-1:Ki(t)?e.checked=t.has(s.props.value):t!==n&&(e.checked=Us(t,ym(e,!0)))}const uE={created(e,{value:t},n){e.checked=Us(t,n.props.value),e[Ye]=as(n),Sn(e,"change",()=>{e[Ye](Li(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[Ye]=as(s),t!==n&&(e.checked=Us(t,s.props.value))}},dE={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const i=Ki(t);Sn(e,"change",()=>{const o=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>n?ca(Li(r)):Li(r));e[Ye](e.multiple?i?new Set(o):o:o[0])}),e[Ye]=as(s)},mounted(e,{value:t}){Nh(e,t)},beforeUpdate(e,t,n){e[Ye]=as(n)},updated(e,{value:t}){Nh(e,t)}};function Nh(e,t){const n=e.multiple;if(!(n&&!dt(t)&&!Ki(t))){for(let s=0,i=e.options.length;s-1:o.selected=t.has(r);else if(Us(Li(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Li(e){return"_value"in e?e._value:e.value}function ym(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const hE={created(e,t,n){Dr(e,t,n,null,"created")},mounted(e,t,n){Dr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,s){Dr(e,t,n,s,"beforeUpdate")},updated(e,t,n,s){Dr(e,t,n,s,"updated")}};function fE(e,t){switch(e){case"SELECT":return dE;case"TEXTAREA":return Ot;default:switch(t){case"checkbox":return Tu;case"radio":return uE;default:return Ot}}}function Dr(e,t,n,s,i){const r=fE(e.tagName,n.props&&n.props.type)[i];r&&r(e,t,n,s)}const pE=Zt({patchProp:nE},F1);let Fh;function gE(){return Fh||(Fh=b1(pE))}const mE=(...e)=>{const t=gE().createApp(...e),{mount:n}=t;return t.mount=s=>{const i=bE(s);if(!i)return;const o=t._component;!bt(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.innerHTML="";const r=n(i,!1,_E(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t};function _E(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function bE(e){return Qt(e)?document.querySelector(e):e}var yE=!1;/*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT - */let _m;const Ka=e=>_m=e,bm=Symbol();function hc(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var mo;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(mo||(mo={}));function fE(){const e=dg(!0),t=e.run(()=>Ci({}));let n=[],s=[];const i=qo({install(o){Ka(i),i._a=o,o.provide(bm,i),o.config.globalProperties.$pinia=i,s.forEach(r=>n.push(r)),s=[]},use(o){return!this._a&&!hE?s.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const ym=()=>{};function Lh(e,t,n,s=ym){e.push(t);const i=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),s())};return!n&&tu()&&hg(i),i}function ni(e,...t){e.slice().forEach(n=>{n(...t)})}const pE=e=>e();function fc(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,s)=>e.set(s,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],i=e[n];hc(i)&&hc(s)&&e.hasOwnProperty(n)&&!ne(s)&&!Xn(s)?e[n]=fc(i,s):e[n]=s}return e}const gE=Symbol();function mE(e){return!hc(e)||!e.hasOwnProperty(gE)}const{assign:Vn}=Object;function _E(e){return!!(ne(e)&&e.effect)}function bE(e,t,n,s){const{state:i,actions:o,getters:r}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=i?i():{});const u=vw(n.state.value[e]);return Vn(u,o,Object.keys(r||{}).reduce((d,f)=>(d[f]=qo(Be(()=>{Ka(n);const p=n._s.get(e);return r[f].call(p,p)})),d),{}))}return l=vm(e,c,t,n,s,!0),l}function vm(e,t,n={},s,i,o){let r;const a=Vn({actions:{}},n),l={deep:!0};let c,u,d=[],f=[],p;const g=s.state.value[e];!o&&!g&&(s.state.value[e]={}),Ci({});let m;function y(w){let k;c=u=!1,typeof w=="function"?(w(s.state.value[e]),k={type:mo.patchFunction,storeId:e,events:p}):(fc(s.state.value[e],w),k={type:mo.patchObject,payload:w,storeId:e,events:p});const $=m=Symbol();La().then(()=>{m===$&&(c=!0)}),u=!0,ni(d,k,s.state.value[e])}const x=o?function(){const{state:k}=n,$=k?k():{};this.$patch(L=>{Vn(L,$)})}:ym;function S(){r.stop(),d=[],f=[],s._s.delete(e)}function M(w,k){return function(){Ka(s);const $=Array.from(arguments),L=[],N=[];function X(R){L.push(R)}function Y(R){N.push(R)}ni(f,{args:$,name:w,store:v,after:X,onError:Y});let H;try{H=k.apply(this&&this.$id===e?this:v,$)}catch(R){throw ni(N,R),R}return H instanceof Promise?H.then(R=>(ni(L,R),R)).catch(R=>(ni(N,R),Promise.reject(R))):(ni(L,H),H)}}const C={_p:s,$id:e,$onAction:Lh.bind(null,f),$patch:y,$reset:x,$subscribe(w,k={}){const $=Lh(d,w,k.detached,()=>L()),L=r.run(()=>Is(()=>s.state.value[e],N=>{(k.flush==="sync"?u:c)&&w({storeId:e,type:mo.direct,events:p},N)},Vn({},l,k)));return $},$dispose:S},v=Go(C);s._s.set(e,v);const A=(s._a&&s._a.runWithContext||pE)(()=>s._e.run(()=>(r=dg()).run(t)));for(const w in A){const k=A[w];if(ne(k)&&!_E(k)||Xn(k))o||(g&&mE(k)&&(ne(k)?k.value=g[w]:fc(k,g[w])),s.state.value[e][w]=k);else if(typeof k=="function"){const $=M(w,k);A[w]=$,a.actions[w]=k}}return Vn(v,A),Vn(At(v),A),Object.defineProperty(v,"$state",{get:()=>s.state.value[e],set:w=>{y(k=>{Vn(k,w)})}}),s._p.forEach(w=>{Vn(v,r.run(()=>w({store:v,app:s._a,pinia:s,options:a})))}),g&&o&&n.hydrate&&n.hydrate(v.$state,g),c=!0,u=!0,v}function Eu(e,t,n){let s,i;const o=typeof t=="function";typeof e=="string"?(s=e,i=o?n:t):(i=e,s=e.id);function r(a,l){const c=l1();return a=a||(c?an(bm,null):null),a&&Ka(a),a=_m,a._s.has(s)||(o?vm(s,t,i,a):bE(s,i,a)),a._s.get(s)}return r.$id=s,r}/*! + */let vm;const Xa=e=>vm=e,xm=Symbol();function gc(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var wo;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(wo||(wo={}));function vE(){const e=gg(!0),t=e.run(()=>Pi({}));let n=[],s=[];const i=er({install(o){Xa(i),i._a=o,o.provide(xm,i),o.config.globalProperties.$pinia=i,s.forEach(r=>n.push(r)),s=[]},use(o){return!this._a&&!yE?s.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const wm=()=>{};function Bh(e,t,n,s=wm){e.push(t);const i=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),s())};return!n&&iu()&&mg(i),i}function ri(e,...t){e.slice().forEach(n=>{n(...t)})}const xE=e=>e();function mc(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,s)=>e.set(s,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],i=e[n];gc(i)&&gc(s)&&e.hasOwnProperty(n)&&!ne(s)&&!ts(s)?e[n]=mc(i,s):e[n]=s}return e}const wE=Symbol();function EE(e){return!gc(e)||!e.hasOwnProperty(wE)}const{assign:zn}=Object;function SE(e){return!!(ne(e)&&e.effect)}function CE(e,t,n,s){const{state:i,actions:o,getters:r}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=i?i():{});const u=Sw(n.state.value[e]);return zn(u,o,Object.keys(r||{}).reduce((d,f)=>(d[f]=er(He(()=>{Xa(n);const p=n._s.get(e);return r[f].call(p,p)})),d),{}))}return l=Em(e,c,t,n,s,!0),l}function Em(e,t,n={},s,i,o){let r;const a=zn({actions:{}},n),l={deep:!0};let c,u,d=[],f=[],p;const m=s.state.value[e];!o&&!m&&(s.state.value[e]={}),Pi({});let _;function y(w){let k;c=u=!1,typeof w=="function"?(w(s.state.value[e]),k={type:wo.patchFunction,storeId:e,events:p}):(mc(s.state.value[e],w),k={type:wo.patchObject,payload:w,storeId:e,events:p});const $=_=Symbol();Va().then(()=>{_===$&&(c=!0)}),u=!0,ri(d,k,s.state.value[e])}const x=o?function(){const{state:k}=n,$=k?k():{};this.$patch(L=>{zn(L,$)})}:wm;function S(){r.stop(),d=[],f=[],s._s.delete(e)}function P(w,k){return function(){Xa(s);const $=Array.from(arguments),L=[],N=[];function X(R){L.push(R)}function Y(R){N.push(R)}ri(f,{args:$,name:w,store:v,after:X,onError:Y});let H;try{H=k.apply(this&&this.$id===e?this:v,$)}catch(R){throw ri(N,R),R}return H instanceof Promise?H.then(R=>(ri(L,R),R)).catch(R=>(ri(N,R),Promise.reject(R))):(ri(L,H),H)}}const C={_p:s,$id:e,$onAction:Bh.bind(null,f),$patch:y,$reset:x,$subscribe(w,k={}){const $=Bh(d,w,k.detached,()=>L()),L=r.run(()=>Bs(()=>s.state.value[e],N=>{(k.flush==="sync"?u:c)&&w({storeId:e,type:wo.direct,events:p},N)},zn({},l,k)));return $},$dispose:S},v=tr(C);s._s.set(e,v);const A=(s._a&&s._a.runWithContext||xE)(()=>s._e.run(()=>(r=gg()).run(t)));for(const w in A){const k=A[w];if(ne(k)&&!SE(k)||ts(k))o||(m&&EE(k)&&(ne(k)?k.value=m[w]:mc(k,m[w])),s.state.value[e][w]=k);else if(typeof k=="function"){const $=P(w,k);A[w]=$,a.actions[w]=k}}return zn(v,A),zn(Tt(v),A),Object.defineProperty(v,"$state",{get:()=>s.state.value[e],set:w=>{y(k=>{zn(k,w)})}}),s._p.forEach(w=>{zn(v,r.run(()=>w({store:v,app:s._a,pinia:s,options:a})))}),m&&o&&n.hydrate&&n.hydrate(v.$state,m),c=!0,u=!0,v}function Pu(e,t,n){let s,i;const o=typeof t=="function";typeof e=="string"?(s=e,i=o?n:t):(i=e,s=e.id);function r(a,l){const c=h1();return a=a||(c?un(xm,null):null),a&&Xa(a),a=vm,a._s.has(s)||(o?Em(s,t,i,a):CE(s,i,a)),a._s.get(s)}return r.$id=s,r}/*! * vue-router v4.2.5 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const ai=typeof window<"u";function yE(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Lt=Object.assign;function Al(e,t){const n={};for(const s in t){const i=t[s];n[s]=Qe(i)?i.map(e):e(i)}return n}const _o=()=>{},Qe=Array.isArray,vE=/\/$/,xE=e=>e.replace(vE,"");function Tl(e,t,n="/"){let s,i={},o="",r="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(s=t.slice(0,l),o=t.slice(l+1,a>-1?a:t.length),i=e(o)),a>-1&&(s=s||t.slice(0,a),r=t.slice(a,t.length)),s=CE(s??t,n),{fullPath:s+(o&&"?")+o+r,path:s,query:i,hash:r}}function wE(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ih(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function EE(e,t,n){const s=t.matched.length-1,i=n.matched.length-1;return s>-1&&s===i&&Oi(t.matched[s],n.matched[i])&&xm(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Oi(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function xm(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!SE(e[n],t[n]))return!1;return!0}function SE(e,t){return Qe(e)?Rh(e,t):Qe(t)?Rh(t,e):e===t}function Rh(e,t){return Qe(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function CE(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),i=s[s.length-1];(i===".."||i===".")&&s.push("");let o=n.length-1,r,a;for(r=0;r1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(r-(r===s.length?1:0)).join("/")}var No;(function(e){e.pop="pop",e.push="push"})(No||(No={}));var bo;(function(e){e.back="back",e.forward="forward",e.unknown=""})(bo||(bo={}));function AE(e){if(!e)if(ai){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),xE(e)}const TE=/^[^#]+#/;function ME(e,t){return e.replace(TE,"#")+t}function PE(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Ya=()=>({left:window.pageXOffset,top:window.pageYOffset});function kE(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=PE(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Nh(e,t){return(history.state?history.state.position-t:-1)+e}const pc=new Map;function OE(e,t){pc.set(e,t)}function DE(e){const t=pc.get(e);return pc.delete(e),t}let $E=()=>location.protocol+"//"+location.host;function wm(e,t){const{pathname:n,search:s,hash:i}=t,o=e.indexOf("#");if(o>-1){let a=i.includes(e.slice(o))?e.slice(o).length:1,l=i.slice(a);return l[0]!=="/"&&(l="/"+l),Ih(l,"")}return Ih(n,e)+s+i}function LE(e,t,n,s){let i=[],o=[],r=null;const a=({state:f})=>{const p=wm(e,location),g=n.value,m=t.value;let y=0;if(f){if(n.value=p,t.value=f,r&&r===g){r=null;return}y=m?f.position-m.position:0}else s(p);i.forEach(x=>{x(n.value,g,{delta:y,type:No.pop,direction:y?y>0?bo.forward:bo.back:bo.unknown})})};function l(){r=n.value}function c(f){i.push(f);const p=()=>{const g=i.indexOf(f);g>-1&&i.splice(g,1)};return o.push(p),p}function u(){const{history:f}=window;f.state&&f.replaceState(Lt({},f.state,{scroll:Ya()}),"")}function d(){for(const f of o)f();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:d}}function Fh(e,t,n,s=!1,i=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:i?Ya():null}}function IE(e){const{history:t,location:n}=window,s={value:wm(e,n)},i={value:t.state};i.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,c,u){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:$E()+e+l;try{t[u?"replaceState":"pushState"](c,"",f),i.value=c}catch(p){console.error(p),n[u?"replace":"assign"](f)}}function r(l,c){const u=Lt({},t.state,Fh(i.value.back,l,i.value.forward,!0),c,{position:i.value.position});o(l,u,!0),s.value=l}function a(l,c){const u=Lt({},i.value,t.state,{forward:l,scroll:Ya()});o(u.current,u,!0);const d=Lt({},Fh(s.value,l,null),{position:u.position+1},c);o(l,d,!1),s.value=l}return{location:s,state:i,push:a,replace:r}}function RE(e){e=AE(e);const t=IE(e),n=LE(e,t.state,t.location,t.replace);function s(o,r=!0){r||n.pauseListeners(),history.go(o)}const i=Lt({location:"",base:e,go:s,createHref:ME.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function NE(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),RE(e)}function FE(e){return typeof e=="string"||e&&typeof e=="object"}function Em(e){return typeof e=="string"||typeof e=="symbol"}const Nn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Sm=Symbol("");var Bh;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Bh||(Bh={}));function Di(e,t){return Lt(new Error,{type:e,[Sm]:!0},t)}function gn(e,t){return e instanceof Error&&Sm in e&&(t==null||!!(e.type&t))}const Vh="[^/]+?",BE={sensitive:!1,strict:!1,start:!0,end:!0},VE=/[.+*?^${}()[\]/\\]/g;function HE(e,t){const n=Lt({},BE,t),s=[];let i=n.start?"^":"";const o=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(i+="/");for(let d=0;dt.length?t.length===1&&t[0]===80?1:-1:0}function WE(e,t){let n=0;const s=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const zE={type:0,value:""},UE=/[a-zA-Z0-9_]/;function KE(e){if(!e)return[[]];if(e==="/")return[[zE]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,s=n;const i=[];let o;function r(){o&&i.push(o),o=[]}let a=0,l,c="",u="";function d(){c&&(n===0?o.push({type:0,value:c}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;a{r(S)}:_o}function r(u){if(Em(u)){const d=s.get(u);d&&(s.delete(u),n.splice(n.indexOf(d),1),d.children.forEach(r),d.alias.forEach(r))}else{const d=n.indexOf(u);d>-1&&(n.splice(d,1),u.record.name&&s.delete(u.record.name),u.children.forEach(r),u.alias.forEach(r))}}function a(){return n}function l(u){let d=0;for(;d=0&&(u.record.path!==n[d].record.path||!Cm(u,n[d]));)d++;n.splice(d,0,u),u.record.name&&!Wh(u)&&s.set(u.record.name,u)}function c(u,d){let f,p={},g,m;if("name"in u&&u.name){if(f=s.get(u.name),!f)throw Di(1,{location:u});m=f.record.name,p=Lt(jh(d.params,f.keys.filter(S=>!S.optional).map(S=>S.name)),u.params&&jh(u.params,f.keys.map(S=>S.name))),g=f.stringify(p)}else if("path"in u)g=u.path,f=n.find(S=>S.re.test(g)),f&&(p=f.parse(g),m=f.record.name);else{if(f=d.name?s.get(d.name):n.find(S=>S.re.test(d.path)),!f)throw Di(1,{location:u,currentLocation:d});m=f.record.name,p=Lt({},d.params,u.params),g=f.stringify(p)}const y=[];let x=f;for(;x;)y.unshift(x.record),x=x.parent;return{name:m,path:g,params:p,matched:y,meta:QE(y)}}return e.forEach(u=>o(u)),{addRoute:o,resolve:c,removeRoute:r,getRoutes:a,getRecordMatcher:i}}function jh(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function qE(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:XE(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function XE(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function Wh(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function QE(e){return e.reduce((t,n)=>Lt(t,n.meta),{})}function zh(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function Cm(e,t){return t.children.some(n=>n===e||Cm(e,n))}const Am=/#/g,JE=/&/g,ZE=/\//g,tS=/=/g,eS=/\?/g,Tm=/\+/g,nS=/%5B/g,sS=/%5D/g,Mm=/%5E/g,iS=/%60/g,Pm=/%7B/g,oS=/%7C/g,km=/%7D/g,rS=/%20/g;function Su(e){return encodeURI(""+e).replace(oS,"|").replace(nS,"[").replace(sS,"]")}function aS(e){return Su(e).replace(Pm,"{").replace(km,"}").replace(Mm,"^")}function gc(e){return Su(e).replace(Tm,"%2B").replace(rS,"+").replace(Am,"%23").replace(JE,"%26").replace(iS,"`").replace(Pm,"{").replace(km,"}").replace(Mm,"^")}function lS(e){return gc(e).replace(tS,"%3D")}function cS(e){return Su(e).replace(Am,"%23").replace(eS,"%3F")}function uS(e){return e==null?"":cS(e).replace(ZE,"%2F")}function aa(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function dS(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;io&&gc(o)):[s&&gc(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function hS(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Qe(s)?s.map(i=>i==null?null:""+i):s==null?s:""+s)}return t}const fS=Symbol(""),Kh=Symbol(""),Cu=Symbol(""),Om=Symbol(""),mc=Symbol("");function Zi(){let e=[];function t(s){return e.push(s),()=>{const i=e.indexOf(s);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function zn(e,t,n,s,i){const o=s&&(s.enterCallbacks[i]=s.enterCallbacks[i]||[]);return()=>new Promise((r,a)=>{const l=d=>{d===!1?a(Di(4,{from:n,to:t})):d instanceof Error?a(d):FE(d)?a(Di(2,{from:t,to:d})):(o&&s.enterCallbacks[i]===o&&typeof d=="function"&&o.push(d),r())},c=e.call(s&&s.instances[i],t,n,l);let u=Promise.resolve(c);e.length<3&&(u=u.then(l)),u.catch(d=>a(d))})}function Ml(e,t,n,s){const i=[];for(const o of e)for(const r in o.components){let a=o.components[r];if(!(t!=="beforeRouteEnter"&&!o.instances[r]))if(pS(a)){const c=(a.__vccOpts||a)[t];c&&i.push(zn(c,n,s,o,r))}else{let l=a();i.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${r}" at "${o.path}"`));const u=yE(c)?c.default:c;o.components[r]=u;const f=(u.__vccOpts||u)[t];return f&&zn(f,n,s,o,r)()}))}}return i}function pS(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Yh(e){const t=an(Cu),n=an(Om),s=Be(()=>t.resolve(Qn(e.to))),i=Be(()=>{const{matched:l}=s.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(Oi.bind(null,u));if(f>-1)return f;const p=Gh(l[c-2]);return c>1&&Gh(u)===p&&d[d.length-1].path!==p?d.findIndex(Oi.bind(null,l[c-2])):f}),o=Be(()=>i.value>-1&&bS(n.params,s.value.params)),r=Be(()=>i.value>-1&&i.value===n.matched.length-1&&xm(n.params,s.value.params));function a(l={}){return _S(l)?t[Qn(e.replace)?"replace":"push"](Qn(e.to)).catch(_o):Promise.resolve()}return{route:s,href:Be(()=>s.value.href),isActive:o,isExactActive:r,navigate:a}}const gS=Ba({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Yh,setup(e,{slots:t}){const n=Go(Yh(e)),{options:s}=an(Cu),i=Be(()=>({[qh(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[qh(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Pi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),mS=gS;function _S(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function bS(e,t){for(const n in t){const s=t[n],i=e[n];if(typeof s=="string"){if(s!==i)return!1}else if(!Qe(i)||i.length!==s.length||s.some((o,r)=>o!==i[r]))return!1}return!0}function Gh(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const qh=(e,t,n)=>e??t??n,yS=Ba({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=an(mc),i=Be(()=>e.route||s.value),o=an(Kh,0),r=Be(()=>{let c=Qn(o);const{matched:u}=i.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=Be(()=>i.value.matched[r.value]);Yr(Kh,Be(()=>r.value+1)),Yr(fS,a),Yr(mc,i);const l=Ci();return Is(()=>[l.value,a.value,e.name],([c,u,d],[f,p,g])=>{u&&(u.instances[d]=c,p&&p!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!Oi(u,p)||!f)&&(u.enterCallbacks[d]||[]).forEach(m=>m(c))},{flush:"post"}),()=>{const c=i.value,u=e.name,d=a.value,f=d&&d.components[u];if(!f)return Xh(n.default,{Component:f,route:c});const p=d.props[u],g=p?p===!0?c.params:typeof p=="function"?p(c):p:null,y=Pi(f,Lt({},g,t,{onVnodeUnmounted:x=>{x.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return Xh(n.default,{Component:y,route:c})||y}}});function Xh(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Dm=yS;function vS(e){const t=GE(e.routes,e),n=e.parseQuery||dS,s=e.stringifyQuery||Uh,i=e.history,o=Zi(),r=Zi(),a=Zi(),l=lu(Nn);let c=Nn;ai&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Al.bind(null,j=>""+j),d=Al.bind(null,uS),f=Al.bind(null,aa);function p(j,et){let J,ot;return Em(j)?(J=t.getRecordMatcher(j),ot=et):ot=j,t.addRoute(ot,J)}function g(j){const et=t.getRecordMatcher(j);et&&t.removeRoute(et)}function m(){return t.getRoutes().map(j=>j.record)}function y(j){return!!t.getRecordMatcher(j)}function x(j,et){if(et=Lt({},et||l.value),typeof j=="string"){const I=Tl(n,j,et.path),V=t.resolve({path:I.path},et),K=i.createHref(I.fullPath);return Lt(I,V,{params:f(V.params),hash:aa(I.hash),redirectedFrom:void 0,href:K})}let J;if("path"in j)J=Lt({},j,{path:Tl(n,j.path,et.path).path});else{const I=Lt({},j.params);for(const V in I)I[V]==null&&delete I[V];J=Lt({},j,{params:d(I)}),et.params=d(et.params)}const ot=t.resolve(J,et),F=j.hash||"";ot.params=u(f(ot.params));const T=wE(s,Lt({},j,{hash:aS(F),path:ot.path})),D=i.createHref(T);return Lt({fullPath:T,hash:F,query:s===Uh?hS(j.query):j.query||{}},ot,{redirectedFrom:void 0,href:D})}function S(j){return typeof j=="string"?Tl(n,j,l.value.path):Lt({},j)}function M(j,et){if(c!==j)return Di(8,{from:et,to:j})}function C(j){return A(j)}function v(j){return C(Lt(S(j),{replace:!0}))}function E(j){const et=j.matched[j.matched.length-1];if(et&&et.redirect){const{redirect:J}=et;let ot=typeof J=="function"?J(j):J;return typeof ot=="string"&&(ot=ot.includes("?")||ot.includes("#")?ot=S(ot):{path:ot},ot.params={}),Lt({query:j.query,hash:j.hash,params:"path"in ot?{}:j.params},ot)}}function A(j,et){const J=c=x(j),ot=l.value,F=j.state,T=j.force,D=j.replace===!0,I=E(J);if(I)return A(Lt(S(I),{state:typeof I=="object"?Lt({},F,I.state):F,force:T,replace:D}),et||J);const V=J;V.redirectedFrom=et;let K;return!T&&EE(s,ot,J)&&(K=Di(16,{to:V,from:ot}),pt(ot,ot,!0,!1)),(K?Promise.resolve(K):$(V,ot)).catch(q=>gn(q)?gn(q,2)?q:lt(q):U(q,V,ot)).then(q=>{if(q){if(gn(q,2))return A(Lt({replace:D},S(q.to),{state:typeof q.to=="object"?Lt({},F,q.to.state):F,force:T}),et||V)}else q=N(V,ot,!0,D,F);return L(V,ot,q),q})}function w(j,et){const J=M(j,et);return J?Promise.reject(J):Promise.resolve()}function k(j){const et=xt.values().next().value;return et&&typeof et.runWithContext=="function"?et.runWithContext(j):j()}function $(j,et){let J;const[ot,F,T]=xS(j,et);J=Ml(ot.reverse(),"beforeRouteLeave",j,et);for(const I of ot)I.leaveGuards.forEach(V=>{J.push(zn(V,j,et))});const D=w.bind(null,j,et);return J.push(D),wt(J).then(()=>{J=[];for(const I of o.list())J.push(zn(I,j,et));return J.push(D),wt(J)}).then(()=>{J=Ml(F,"beforeRouteUpdate",j,et);for(const I of F)I.updateGuards.forEach(V=>{J.push(zn(V,j,et))});return J.push(D),wt(J)}).then(()=>{J=[];for(const I of T)if(I.beforeEnter)if(Qe(I.beforeEnter))for(const V of I.beforeEnter)J.push(zn(V,j,et));else J.push(zn(I.beforeEnter,j,et));return J.push(D),wt(J)}).then(()=>(j.matched.forEach(I=>I.enterCallbacks={}),J=Ml(T,"beforeRouteEnter",j,et),J.push(D),wt(J))).then(()=>{J=[];for(const I of r.list())J.push(zn(I,j,et));return J.push(D),wt(J)}).catch(I=>gn(I,8)?I:Promise.reject(I))}function L(j,et,J){a.list().forEach(ot=>k(()=>ot(j,et,J)))}function N(j,et,J,ot,F){const T=M(j,et);if(T)return T;const D=et===Nn,I=ai?history.state:{};J&&(ot||D?i.replace(j.fullPath,Lt({scroll:D&&I&&I.scroll},F)):i.push(j.fullPath,F)),l.value=j,pt(j,et,J,D),lt()}let X;function Y(){X||(X=i.listen((j,et,J)=>{if(!Pt.listening)return;const ot=x(j),F=E(ot);if(F){A(Lt(F,{replace:!0}),ot).catch(_o);return}c=ot;const T=l.value;ai&&OE(Nh(T.fullPath,J.delta),Ya()),$(ot,T).catch(D=>gn(D,12)?D:gn(D,2)?(A(D.to,ot).then(I=>{gn(I,20)&&!J.delta&&J.type===No.pop&&i.go(-1,!1)}).catch(_o),Promise.reject()):(J.delta&&i.go(-J.delta,!1),U(D,ot,T))).then(D=>{D=D||N(ot,T,!1),D&&(J.delta&&!gn(D,8)?i.go(-J.delta,!1):J.type===No.pop&&gn(D,20)&&i.go(-1,!1)),L(ot,T,D)}).catch(_o)}))}let H=Zi(),R=Zi(),W;function U(j,et,J){lt(j);const ot=R.list();return ot.length?ot.forEach(F=>F(j,et,J)):console.error(j),Promise.reject(j)}function it(){return W&&l.value!==Nn?Promise.resolve():new Promise((j,et)=>{H.add([j,et])})}function lt(j){return W||(W=!j,Y(),H.list().forEach(([et,J])=>j?J(j):et()),H.reset()),j}function pt(j,et,J,ot){const{scrollBehavior:F}=e;if(!ai||!F)return Promise.resolve();const T=!J&&DE(Nh(j.fullPath,0))||(ot||!J)&&history.state&&history.state.scroll||null;return La().then(()=>F(j,et,T)).then(D=>D&&kE(D)).catch(D=>U(D,j,et))}const ft=j=>i.go(j);let St;const xt=new Set,Pt={currentRoute:l,listening:!0,addRoute:p,removeRoute:g,hasRoute:y,getRoutes:m,resolve:x,options:e,push:C,replace:v,go:ft,back:()=>ft(-1),forward:()=>ft(1),beforeEach:o.add,beforeResolve:r.add,afterEach:a.add,onError:R.add,isReady:it,install(j){const et=this;j.component("RouterLink",mS),j.component("RouterView",Dm),j.config.globalProperties.$router=et,Object.defineProperty(j.config.globalProperties,"$route",{enumerable:!0,get:()=>Qn(l)}),ai&&!St&&l.value===Nn&&(St=!0,C(i.location).catch(F=>{}));const J={};for(const F in Nn)Object.defineProperty(J,F,{get:()=>l.value[F],enumerable:!0});j.provide(Cu,et),j.provide(Om,Sg(J)),j.provide(mc,l);const ot=j.unmount;xt.add(j),j.unmount=function(){xt.delete(j),xt.size<1&&(c=Nn,X&&X(),X=null,l.value=Nn,St=!1,W=!1),ot()}}};function wt(j){return j.reduce((et,J)=>et.then(()=>k(J)),Promise.resolve())}return Pt}function xS(e,t){const n=[],s=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let r=0;rOi(c,a))?s.push(a):n.push(a));const l=e.matched[r];l&&(t.matched.find(c=>Oi(c,l))||i.push(l))}return[n,s,i]}const dn=async(e,t=void 0,n=void 0)=>{const s=new URLSearchParams(t);await fetch(`${e}?${s.toString()}`,{headers:{"content-type":"application/json"}}).then(i=>i.json()).then(i=>n?n(i):void 0)},De=async(e,t,n)=>{await fetch(`${e}`,{headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(t)}).then(s=>s.json()).then(s=>n?n(s):void 0)};let Cr;const wS=new Uint8Array(16);function ES(){if(!Cr&&(Cr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Cr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Cr(wS)}const re=[];for(let e=0;e<256;++e)re.push((e+256).toString(16).slice(1));function SS(e,t=0){return re[e[t+0]]+re[e[t+1]]+re[e[t+2]]+re[e[t+3]]+"-"+re[e[t+4]]+re[e[t+5]]+"-"+re[e[t+6]]+re[e[t+7]]+"-"+re[e[t+8]]+re[e[t+9]]+"-"+re[e[t+10]]+re[e[t+11]]+re[e[t+12]]+re[e[t+13]]+re[e[t+14]]+re[e[t+15]]}const CS=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Qh={randomUUID:CS};function Wi(e,t,n){if(Qh.randomUUID&&!t&&!e)return Qh.randomUUID();e=e||{};const s=e.random||(e.rng||ES)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=s[i];return t}return SS(s)}const de=Eu("DashboardConfigurationStore",{state:()=>({Configuration:void 0,Messages:[]}),actions:{async getConfiguration(){await dn("/api/getDashboardConfiguration",{},e=>{e.status&&(this.Configuration=e.data)})},async updateConfiguration(){await De("/api/updateDashboardConfiguration",{DashboardConfiguration:this.Configuration},e=>{console.log(e)})},async signOut(){await dn("/api/signout",{},e=>{this.$router.go("/signin")})},newMessage(e,t,n){this.Messages.push({id:Wi(),from:e,content:t,type:n,show:!0})}}}),AS=b("nav",{class:"navbar bg-dark sticky-top","data-bs-theme":"dark"},[b("div",{class:"container-fluid"},[b("span",{class:"navbar-brand mb-0 h1"},"WGDashboard")])],-1),TS={__name:"App",setup(e){return de(),(t,n)=>(rt(),ut(Jt,null,[AS,(rt(),Ue(pu,null,{default:Kt(()=>[mt(Qn(Dm),null,{default:Kt(({Component:s})=>[mt(Us,{name:"fade",mode:"out-in"},{default:Kt(()=>[(rt(),Ue(fu(s)))]),_:2},1024)]),_:1})]),_:1}))],64))}},MS={getCookie(e){const n=`; ${document.cookie}`.split(`; ${e}=`);if(n.length===2)return n.pop().split(";").shift()}};Eu("WGDashboardStore",{state:()=>({WireguardConfigurations:void 0,DashboardConfiguration:void 0}),actions:{async getDashboardConfiguration(){await dn("/api/getDashboardConfiguration",{},e=>{console.log(e.status),e.status&&(this.DashboardConfiguration=e.data)})}}});const zi=Eu("WireguardConfigurationsStore",{state:()=>({Configurations:void 0,searchString:""}),actions:{async getConfigurations(){await dn("/api/getWireguardConfigurations",{},e=>{e.status&&(this.Configurations=e.data)})}}}),qt=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n},PS={name:"navbar",setup(){const e=zi(),t=de();return{wireguardConfigurationsStore:e,dashboardConfigurationStore:t}}},kS={class:"col-md-3 col-lg-2 d-md-block p-3"},OS={id:"sidebarMenu",class:"bg-body-tertiary sidebar border h-100 rounded-3 shadow"},DS={class:"sidebar-sticky pt-3"},$S={class:"nav flex-column"},LS={class:"nav-item"},IS={class:"nav-item"},RS=b("hr",null,null,-1),NS=b("h6",{class:"sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted"},[b("span",null,"Configurations")],-1),FS={class:"nav flex-column"},BS={class:"nav-item"},VS=x1('

',4),HS={class:"nav flex-column"},jS={class:"nav-item"},WS=b("ul",{class:"nav flex-column"},[b("li",{class:"nav-item"},[b("a",{href:"https://github.com/donaldzou/WGDashboard/releases/tag/"},[b("small",{class:"nav-link text-muted"})])])],-1);function zS(e,t,n,s,i,o){const r=Ut("RouterLink");return rt(),ut("div",kS,[b("nav",OS,[b("div",DS,[b("ul",$S,[b("li",LS,[mt(r,{class:"nav-link",to:"/","exact-active-class":"active"},{default:Kt(()=>[Tt("Home")]),_:1})]),b("li",IS,[mt(r,{class:"nav-link",to:"/settings","exact-active-class":"active"},{default:Kt(()=>[Tt("Settings")]),_:1})])]),RS,NS,b("ul",FS,[b("li",BS,[(rt(!0),ut(Jt,null,Ai(this.wireguardConfigurationsStore.Configurations,a=>(rt(),Ue(r,{to:"/configuration/"+a.Name,class:"nav-link nav-conf-link"},{default:Kt(()=>[b("samp",null,Ct(a.Name),1)]),_:2},1032,["to"]))),256))])]),VS,b("ul",HS,[b("li",jS,[b("a",{class:"nav-link text-danger",onClick:t[0]||(t[0]=a=>this.dashboardConfigurationStore.signOut()),role:"button",style:{"font-weight":"bold"}},"Sign Out")])]),WS])])])}const US=qt(PS,[["render",zS]]),KS={name:"message",props:{message:Object},mounted(){setTimeout(()=>{this.message.show=!1},5e3)}},YS=["id"],GS={class:"card-body"},qS={class:"fw-bold d-block",style:{"text-transform":"uppercase"}};function XS(e,t,n,s,i,o){return rt(),ut("div",{class:ge(["card shadow rounded-3 position-relative mb-2",{"text-bg-danger":this.message.type==="danger","text-bg-success":this.message.type==="success","text-bg-warning":this.message.type==="warning"}]),id:this.message.id,style:{width:"400px"}},[b("div",GS,[b("small",qS,"FROM "+Ct(this.message.from),1),Tt(" "+Ct(this.message.content),1)])],10,YS)}const QS=qt(KS,[["render",XS]]),JS={name:"index",components:{Message:QS,Navbar:US},async setup(){return{dashboardConfigurationStore:de()}},computed:{getMessages(){return this.dashboardConfigurationStore.Messages.filter(e=>e.show)}}},ZS=["data-bs-theme"],tC={class:"row h-100"},eC={class:"col-md-9 ml-sm-auto col-lg-10 px-md-4 overflow-y-scroll mb-0",style:{height:"calc(100vh - 50px)"}},nC={class:"messageCentre text-body position-fixed"};function sC(e,t,n,s,i,o){const r=Ut("Navbar"),a=Ut("RouterView"),l=Ut("Message");return rt(),ut("div",{class:"container-fluid flex-grow-1 main","data-bs-theme":this.dashboardConfigurationStore.Configuration.Server.dashboard_theme},[b("div",tC,[mt(r),b("main",eC,[(rt(),Ue(pu,null,{default:Kt(()=>[mt(a,null,{default:Kt(({Component:c})=>[mt(Us,{name:"fade2",mode:"out-in"},{default:Kt(()=>[(rt(),Ue(fu(c)))]),_:2},1024)]),_:1})]),_:1})),b("div",nC,[mt(pm,{name:"message",tag:"div",class:"position-relative"},{default:Kt(()=>[(rt(!0),ut(Jt,null,Ai(o.getMessages.slice().reverse(),c=>(rt(),Ue(l,{message:c,key:c.id},null,8,["message"]))),128))]),_:1})])])])],8,ZS)}const iC=qt(JS,[["render",sC],["__scopeId","data-v-54755a4a"]]),oC={name:"signin",async setup(){const e=de();let t="",n=!1;return await dn("/api/getDashboardTheme",{},s=>{t=s.data}),await dn("/api/isTotpEnabled",{},s=>{n=s.data}),{store:e,theme:t,totpEnabled:n}},data(){return{username:"",password:"",totp:"",loginError:!1,loginErrorMessage:"",loading:!1}},methods:{async auth(){this.username&&this.password&&(this.totpEnabled&&this.totp||!this.totpEnabled)?(this.loading=!0,await De("/api/authenticate",{username:this.username,password:this.password,totp:this.totp},e=>{e.status?(this.loginError=!1,this.$refs.signInBtn.classList.add("signedIn"),e.message?this.$router.push("/welcome"):this.$router.push("/")):(this.loginError=!0,this.loginErrorMessage=e.message,document.querySelectorAll("input[required]").forEach(t=>{t.classList.remove("is-valid"),t.classList.add("is-invalid")}),this.loading=!1)})):document.querySelectorAll("input[required]").forEach(e=>{e.value.length===0?(e.classList.remove("is-valid"),e.classList.add("is-invalid")):(e.classList.remove("is-invalid"),e.classList.add("is-valid"))})}}},rC=["data-bs-theme"],aC={class:"login-box m-auto",style:{width:"500px"}},lC=b("h4",{class:"mb-0 text-body"},"Welcome to",-1),cC=b("span",{class:"dashboardLogo display-3"},"WGDashboard",-1),uC={class:"m-auto"},dC={key:0,class:"alert alert-danger mt-2 mb-0",role:"alert"},hC={class:"form-group text-body"},fC=b("label",{for:"username",class:"text-left",style:{"font-size":"1rem"}},[b("i",{class:"bi bi-person-circle"})],-1),pC={class:"form-group text-body"},gC=b("label",{for:"password",class:"text-left",style:{"font-size":"1rem"}},[b("i",{class:"bi bi-key-fill"})],-1),mC={key:0,class:"form-group text-body"},_C=b("label",{for:"totp",class:"text-left",style:{"font-size":"1rem"}},[b("i",{class:"bi bi-lock-fill"})],-1),bC={class:"btn btn-lg btn-dark ms-auto mt-4 w-100 d-flex btn-brand shadow signInBtn",ref:"signInBtn"},yC={key:0,class:"d-flex w-100"},vC=b("i",{class:"ms-auto bi bi-chevron-right"},null,-1),xC={key:1,class:"d-flex w-100 align-items-center"},wC=b("span",{class:"spinner-border ms-auto spinner-border-sm",role:"status"},[b("span",{class:"visually-hidden"},"Loading...")],-1);function EC(e,t,n,s,i,o){return rt(),ut("div",{class:"container-fluid login-container-fluid d-flex main","data-bs-theme":this.theme},[b("div",aC,[lC,cC,b("div",uC,[i.loginError?(rt(),ut("div",dC,Ct(this.loginErrorMessage),1)):me("",!0),b("form",{onSubmit:t[3]||(t[3]=r=>{r.preventDefault(),this.auth()})},[b("div",hC,[fC,Rt(b("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=r=>i.username=r),class:"form-control",id:"username",name:"username",autocomplete:"on",placeholder:"Username",required:""},null,512),[[Bt,i.username]])]),b("div",pC,[gC,Rt(b("input",{type:"password","onUpdate:modelValue":t[1]||(t[1]=r=>i.password=r),class:"form-control",id:"password",name:"password",autocomplete:"on",placeholder:"Password",required:""},null,512),[[Bt,i.password]])]),s.totpEnabled?(rt(),ut("div",mC,[_C,Rt(b("input",{class:"form-control totp",required:"",id:"totp",maxlength:"6",type:"text",inputmode:"numeric",autocomplete:"one-time-code",placeholder:"OTP from your authenticator","onUpdate:modelValue":t[2]||(t[2]=r=>this.totp=r)},null,512),[[Bt,this.totp]])])):me("",!0),b("button",bC,[this.loading?(rt(),ut("span",xC,[Tt(" Signing In... "),wC])):(rt(),ut("span",yC,[Tt(" Sign In"),vC]))],512)],32)])])],8,rC)}const SC=qt(oC,[["render",EC]]),CC={name:"configurationCard",props:{c:{Name:String,Status:Boolean,PublicKey:String,PrivateKey:String}},setup(){return{dashboardConfigurationStore:de()}},methods:{toggle(){dn("/api/toggleWireguardConfiguration/",{configurationName:this.c.Name},e=>{e.status?this.dashboardConfigurationStore.newMessage("Server",`${this.c.Name} is ${e.data?"is on":"is off"}`):this.dashboardConfigurationStore.newMessage("Server",e.message,"danger"),this.c.Status=e.data})}}},AC={class:"card conf_card rounded-3 shadow text-decoration-none"},TC={class:"mb-0"},MC={class:"card-title mb-0"},PC=b("h6",{class:"mb-0 ms-auto"},[b("i",{class:"bi bi-chevron-right"})],-1),kC={class:"card-footer d-flex align-items-center"},OC=b("small",{class:"me-2 text-muted"},[b("strong",null,"PUBLIC KEY")],-1),DC={class:"mb-0 d-block d-lg-inline-block"},$C={style:{"line-break":"anywhere"}},LC={class:"form-check form-switch ms-auto"},IC=["for"],RC=["id"];function NC(e,t,n,s,i,o){const r=Ut("RouterLink");return rt(),ut("div",AC,[mt(r,{to:"/configuration/"+n.c.Name,class:"card-body d-flex align-items-center gap-3 flex-wrap text-decoration-none"},{default:Kt(()=>[b("h6",TC,[b("span",{class:ge(["dot",{active:n.c.Status}])},null,2)]),b("h6",MC,[b("samp",null,Ct(n.c.Name),1)]),PC]),_:1},8,["to"]),b("div",kC,[OC,b("small",DC,[b("samp",$C,Ct(n.c.PublicKey),1)]),b("div",LC,[b("label",{class:"form-check-label",for:"switch"+n.c.PrivateKey},Ct(n.c.Status?"On":"Off"),9,IC),Rt(b("input",{class:"form-check-input",type:"checkbox",role:"switch",id:"switch"+n.c.PrivateKey,onChange:t[0]||(t[0]=a=>this.toggle()),"onUpdate:modelValue":t[1]||(t[1]=a=>n.c.Status=a)},null,40,RC),[[gm,n.c.Status]])])])])}const FC=qt(CC,[["render",NC]]),BC={name:"configurationList",components:{ConfigurationCard:FC},async setup(){const e=zi();return await e.getConfigurations(),{wireguardConfigurationsStore:e}}},VC={class:"mt-4"},HC={class:"container"},jC={class:"d-flex mb-4"},WC=b("h3",{class:"text-body"},"Wireguard Configurations",-1),zC=b("i",{class:"bi bi-plus-circle-fill ms-2"},null,-1),UC={key:0,class:"text-muted"},KC={key:1,class:"d-flex gap-3 flex-column"};function YC(e,t,n,s,i,o){const r=Ut("RouterLink"),a=Ut("ConfigurationCard");return rt(),ut("div",VC,[b("div",HC,[b("div",jC,[WC,mt(r,{to:"/new_configuration",class:"btn btn-dark btn-brand rounded-3 px-3 py-2 shadow ms-auto rounded-3"},{default:Kt(()=>[Tt(" Configuration "),zC]),_:1})]),this.wireguardConfigurationsStore.Configurations.length===0?(rt(),ut("p",UC,`You don't have any WireGuard configurations yet. Please check the configuration folder or change it in "Settings". By default the folder is "/etc/wireguard".`)):(rt(),ut("div",KC,[(rt(!0),ut(Jt,null,Ai(this.wireguardConfigurationsStore.Configurations,l=>(rt(),Ue(a,{key:l.Name,c:l},null,8,["c"]))),128))]))])])}const GC=qt(BC,[["render",YC]]),qC={props:{targetData:String,title:String,warning:!1,warningText:""},setup(){const e=de(),t=`input_${Wi()}`;return{store:e,uuid:t}},data(){return{value:"",invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0,changed:!1,updating:!1}},mounted(){this.value=this.store.Configuration.Peers[this.targetData]},methods:{async useValidation(){this.changed&&await De("/api/updateDashboardConfigurationItem",{section:"Peers",key:this.targetData,value:this.value},e=>{e.status?(this.isValid=!0,this.showInvalidFeedback=!1,this.store.Configuration.Peers[this.targetData]=this.value,clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.isValid=!1,5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=e.message),this.changed=!1,this.updating=!1})}}},XC={class:"form-group mb-2"},QC=["for"],JC=["id","disabled"],ZC={class:"invalid-feedback"},tA={key:0,class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block mt-1"},eA=b("i",{class:"bi bi-exclamation-triangle-fill me-2"},null,-1),nA=["innerHTML"];function sA(e,t,n,s,i,o){return rt(),ut("div",XC,[b("label",{for:this.uuid,class:"text-muted mb-1"},[b("strong",null,[b("small",null,Ct(this.title),1)])],8,QC),Rt(b("input",{type:"text",class:ge(["form-control",{"is-invalid":i.showInvalidFeedback,"is-valid":i.isValid}]),id:this.uuid,"onUpdate:modelValue":t[0]||(t[0]=r=>this.value=r),onKeydown:t[1]||(t[1]=r=>this.changed=!0),onBlur:t[2]||(t[2]=r=>o.useValidation()),disabled:this.updating},null,42,JC),[[Bt,this.value]]),b("div",ZC,Ct(this.invalidFeedback),1),n.warning?(rt(),ut("div",tA,[b("small",null,[eA,b("span",{innerHTML:n.warningText},null,8,nA)])])):me("",!0)])}const iA=qt(qC,[["render",sA]]),oA=e=>{},rA={name:"accountSettingsInputUsername",props:{targetData:String,title:String,warning:!1,warningText:""},setup(){const e=de(),t=`input_${Wi()}`;return{store:e,uuid:t}},data(){return{value:"",invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0,changed:!1,updating:!1}},mounted(){this.value=this.store.Configuration.Account[this.targetData]},methods:{async useValidation(){this.changed&&(this.updating=!0,await De("/api/updateDashboardConfigurationItem",{section:"Account",key:this.targetData,value:this.value},e=>{e.status?(this.isValid=!0,this.showInvalidFeedback=!1,this.store.Configuration.Account[this.targetData]=this.value,clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.isValid=!1,5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=e.message),this.changed=!1,this.updating=!1}))}}},aA={class:"form-group mb-2"},lA=["for"],cA=["id","disabled"],uA={class:"invalid-feedback"},dA={key:0,class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block mt-1"},hA=b("i",{class:"bi bi-exclamation-triangle-fill me-2"},null,-1),fA=["innerHTML"];function pA(e,t,n,s,i,o){return rt(),ut("div",aA,[b("label",{for:this.uuid,class:"text-muted mb-1"},[b("strong",null,[b("small",null,Ct(this.title),1)])],8,lA),Rt(b("input",{type:"text",class:ge(["form-control",{"is-invalid":i.showInvalidFeedback,"is-valid":i.isValid}]),id:this.uuid,"onUpdate:modelValue":t[0]||(t[0]=r=>this.value=r),onKeydown:t[1]||(t[1]=r=>this.changed=!0),onBlur:t[2]||(t[2]=r=>o.useValidation()),disabled:this.updating},null,42,cA),[[Bt,this.value]]),b("div",uA,Ct(this.invalidFeedback),1),n.warning?(rt(),ut("div",dA,[b("small",null,[hA,b("span",{innerHTML:n.warningText},null,8,fA)])])):me("",!0)])}const gA=qt(rA,[["render",pA]]),mA={name:"accountSettingsInputPassword",props:{targetData:String,warning:!1,warningText:""},setup(){const e=de(),t=`input_${Wi()}`;return{store:e,uuid:t}},data(){return{value:{currentPassword:"",newPassword:"",repeatNewPassword:""},invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0}},methods:{async useValidation(){Object.values(this.value).find(e=>e.length===0)===void 0?this.value.newPassword===this.value.repeatNewPassword?await De("/api/updateDashboardConfigurationItem",{section:"Account",key:this.targetData,value:this.value},e=>{e.status?(this.isValid=!0,this.showInvalidFeedback=!1,this.store.Configuration.Account[this.targetData]=this.value,clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.isValid=!1,this.value={currentPassword:"",newPassword:"",repeatNewPassword:""}},5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=e.message)}):(this.showInvalidFeedback=!0,this.invalidFeedback="New passwords does not match"):(this.showInvalidFeedback=!0,this.invalidFeedback="Please fill in all required fields.")}}},_A={class:"row"},bA={class:"col-sm"},yA={class:"form-group mb-2"},vA=["for"],xA=b("strong",null,[b("small",null,"Current Password")],-1),wA=[xA],EA=["id"],SA={key:0,class:"invalid-feedback d-block"},CA={class:"col-sm"},AA={class:"form-group mb-2"},TA=["for"],MA=b("strong",null,[b("small",null,"New Password")],-1),PA=[MA],kA=["id"],OA={class:"col-sm"},DA={class:"form-group mb-2"},$A=["for"],LA=b("strong",null,[b("small",null,"Repeat New Password")],-1),IA=[LA],RA=["id"],NA=b("i",{class:"bi bi-key-fill me-2"},null,-1);function FA(e,t,n,s,i,o){return rt(),ut("div",null,[b("div",_A,[b("div",bA,[b("div",yA,[b("label",{for:"currentPassword_"+this.uuid,class:"text-muted mb-1"},wA,8,vA),Rt(b("input",{type:"password",class:ge(["form-control mb-2",{"is-invalid":i.showInvalidFeedback,"is-valid":i.isValid}]),"onUpdate:modelValue":t[0]||(t[0]=r=>this.value.currentPassword=r),id:"currentPassword_"+this.uuid},null,10,EA),[[Bt,this.value.currentPassword]]),i.showInvalidFeedback?(rt(),ut("div",SA,Ct(this.invalidFeedback),1)):me("",!0)])]),b("div",CA,[b("div",AA,[b("label",{for:"newPassword_"+this.uuid,class:"text-muted mb-1"},PA,8,TA),Rt(b("input",{type:"password",class:ge(["form-control mb-2",{"is-invalid":i.showInvalidFeedback,"is-valid":i.isValid}]),"onUpdate:modelValue":t[1]||(t[1]=r=>this.value.newPassword=r),id:"newPassword_"+this.uuid},null,10,kA),[[Bt,this.value.newPassword]])])]),b("div",OA,[b("div",DA,[b("label",{for:"repeatNewPassword_"+this.uuid,class:"text-muted mb-1"},IA,8,$A),Rt(b("input",{type:"password",class:ge(["form-control mb-2",{"is-invalid":i.showInvalidFeedback,"is-valid":i.isValid}]),"onUpdate:modelValue":t[2]||(t[2]=r=>this.value.repeatNewPassword=r),id:"repeatNewPassword_"+this.uuid},null,10,RA),[[Bt,this.value.repeatNewPassword]])])])]),b("button",{class:"btn btn-success btn-sm fw-bold rounded-3",onClick:t[3]||(t[3]=r=>this.useValidation())},[NA,Tt("Update Password ")])])}const BA=qt(mA,[["render",FA]]),VA={name:"dashboardSettingsInputWireguardConfigurationPath",props:{targetData:String,title:String,warning:!1,warningText:""},setup(){const e=de(),t=`input_${Wi()}`;return{store:e,uuid:t}},data(){return{value:"",invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0,changed:!1,updating:!1}},mounted(){this.value=this.store.Configuration.Server[this.targetData]},methods:{async useValidation(){this.changed&&await De("/api/updateDashboardConfigurationItem",{section:"Server",key:this.targetData,value:this.value},e=>{e.status?(this.isValid=!0,this.showInvalidFeedback=!1,this.store.Configuration.Account[this.targetData]=this.value,clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.isValid=!1,5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=e.message),this.changed=!1,this.updating=!1})}}},HA={class:"form-group mb-2"},jA=["for"],WA=["id","disabled"],zA={class:"invalid-feedback"},UA={key:0,class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block mt-1"},KA=b("i",{class:"bi bi-exclamation-triangle-fill me-2"},null,-1),YA=["innerHTML"];function GA(e,t,n,s,i,o){return rt(),ut("div",HA,[b("label",{for:this.uuid,class:"text-muted mb-1"},[b("strong",null,[b("small",null,Ct(this.title),1)])],8,jA),Rt(b("input",{type:"text",class:ge(["form-control",{"is-invalid":this.showInvalidFeedback,"is-valid":this.isValid}]),id:this.uuid,"onUpdate:modelValue":t[0]||(t[0]=r=>this.value=r),onKeydown:t[1]||(t[1]=r=>this.changed=!0),onBlur:t[2]||(t[2]=r=>this.useValidation()),disabled:this.updating},null,42,WA),[[Bt,this.value]]),b("div",zA,Ct(this.invalidFeedback),1),n.warning?(rt(),ut("div",UA,[b("small",null,[KA,b("span",{innerHTML:n.warningText},null,8,YA)])])):me("",!0)])}const qA=qt(VA,[["render",GA]]),XA={name:"dashboardTheme",setup(){return{dashboardConfigurationStore:de()}},methods:{async switchTheme(e){await De("/api/updateDashboardConfigurationItem",{section:"Server",key:"dashboard_theme",value:e},t=>{t.status&&(this.dashboardConfigurationStore.Configuration.Server.dashboard_theme=e)})}}},QA={class:"card mb-4 shadow rounded-3"},JA=b("p",{class:"card-header"},"Dashboard Theme",-1),ZA={class:"card-body d-flex gap-2"},tT=b("i",{class:"bi bi-sun-fill"},null,-1),eT=b("i",{class:"bi bi-moon-fill"},null,-1);function nT(e,t,n,s,i,o){return rt(),ut("div",QA,[JA,b("div",ZA,[b("button",{class:ge(["btn btn-outline-primary flex-grow-1",{active:this.dashboardConfigurationStore.Configuration.Server.dashboard_theme==="light"}]),onClick:t[0]||(t[0]=r=>this.switchTheme("light"))},[tT,Tt(" Light ")],2),b("button",{class:ge(["btn btn-outline-primary flex-grow-1",{active:this.dashboardConfigurationStore.Configuration.Server.dashboard_theme==="dark"}]),onClick:t[1]||(t[1]=r=>this.switchTheme("dark"))},[eT,Tt(" Dark ")],2)])])}const sT=qt(XA,[["render",nT]]),iT={name:"dashboardSettingsInputIPAddressAndPort",props:{},setup(){const e=de(),t=`input_${Wi()}`;return{store:e,uuid:t}},data(){return{app_ip:"",app_port:"",invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0,changed:!1,updating:!1}},mounted(){this.app_ip=this.store.Configuration.Server.app_ip,this.app_port=this.store.Configuration.Server.app_port},methods:{async useValidation(){this.changed&&await De("/api/updateDashboardConfigurationItem",{section:"Server",key:this.targetData,value:this.value},e=>{e.status?(this.isValid=!0,this.showInvalidFeedback=!1,this.store.Configuration.Account[this.targetData]=this.value,clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.isValid=!1,5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=e.message)})}}},oT={class:"invalid-feedback d-block mt-0"},rT={class:"row"},aT={class:"form-group mb-2 col-sm"},lT=["for"],cT=b("strong",null,[b("small",null,"Dashboard IP Address")],-1),uT=[cT],dT=["id"],hT=b("div",{class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block"},[b("small",null,[b("i",{class:"bi bi-exclamation-triangle-fill me-2"}),b("code",null,"0.0.0.0"),Tt(" means it can be access by anyone with your server IP Address.")])],-1),fT={class:"form-group col-sm"},pT=["for"],gT=b("strong",null,[b("small",null,"Dashboard Port")],-1),mT=[gT],_T=["id"],bT=b("button",{class:"btn btn-success btn-sm fw-bold rounded-3"},[b("i",{class:"bi bi-floppy-fill me-2"}),Tt("Update Dashboard Settings & Restart ")],-1);function yT(e,t,n,s,i,o){return rt(),ut("div",null,[b("div",oT,Ct(this.invalidFeedback),1),b("div",rT,[b("div",aT,[b("label",{for:"app_ip_"+this.uuid,class:"text-muted mb-1"},uT,8,lT),Rt(b("input",{type:"text",class:"form-control mb-2",id:"app_ip_"+this.uuid,"onUpdate:modelValue":t[0]||(t[0]=r=>this.app_ip=r)},null,8,dT),[[Bt,this.app_ip]]),hT]),b("div",fT,[b("label",{for:"app_port_"+this.uuid,class:"text-muted mb-1"},mT,8,pT),Rt(b("input",{type:"text",class:"form-control mb-2",id:"app_port_"+this.uuid,"onUpdate:modelValue":t[1]||(t[1]=r=>this.app_port=r)},null,8,_T),[[Bt,this.app_port]])])]),bT])}const vT=qt(iT,[["render",yT]]),xT={name:"settings",methods:{ipV46RegexCheck:oA},components:{DashboardSettingsInputIPAddressAndPort:vT,DashboardTheme:sT,DashboardSettingsInputWireguardConfigurationPath:qA,AccountSettingsInputPassword:BA,AccountSettingsInputUsername:gA,PeersDefaultSettingsInput:iA},setup(){return{dashboardConfigurationStore:de()}},watch:{}},wT={class:"mt-4"},ET={class:"container"},ST=b("h3",{class:"mb-3 text-body"},"Settings",-1),CT={class:"card mb-4 shadow rounded-3"},AT=b("p",{class:"card-header"},"Peers Default Settings",-1),TT={class:"card-body"},MT={class:"card mb-4 shadow rounded-3"},PT=b("p",{class:"card-header"},"WireGuard Configurations Settings",-1),kT={class:"card-body"},OT={class:"card mb-4 shadow rounded-3"},DT=b("p",{class:"card-header"},"Account Settings",-1),$T={class:"card-body"},LT=b("hr",null,null,-1);function IT(e,t,n,s,i,o){const r=Ut("DashboardTheme"),a=Ut("PeersDefaultSettingsInput"),l=Ut("DashboardSettingsInputWireguardConfigurationPath"),c=Ut("AccountSettingsInputUsername"),u=Ut("AccountSettingsInputPassword");return rt(),ut("div",wT,[b("div",ET,[ST,mt(r),b("div",CT,[AT,b("div",TT,[mt(a,{targetData:"peer_global_dns",title:"DNS"}),mt(a,{targetData:"peer_endpoint_allowed_ip",title:"Peer Endpoint Allowed IPs"}),mt(a,{targetData:"peer_mtu",title:"MTU (Max Transmission Unit)"}),mt(a,{targetData:"peer_keep_alive",title:"Persistent Keepalive"}),mt(a,{targetData:"remote_endpoint",title:"Peer Remote Endpoint",warning:!0,warningText:"This will be change globally, and will be apply to all peer's QR code and configuration file."})])]),b("div",MT,[PT,b("div",kT,[mt(l,{targetData:"wg_conf_path",title:"Configurations Directory",warning:!0,"warning-text":"Remember to remove / at the end of your path. e.g /etc/wireguard"})])]),b("div",OT,[DT,b("div",$T,[mt(c,{targetData:"username",title:"Username"}),LT,mt(u,{targetData:"password"})])])])])}const RT=qt(xT,[["render",IT]]);var Qo={},NT=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},$m={},$e={};let Au;const FT=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];$e.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};$e.getSymbolTotalCodewords=function(t){return FT[t]};$e.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};$e.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Au=t};$e.isKanjiModeEnabled=function(){return typeof Au<"u"};$e.toSJIS=function(t){return Au(t)};var Ga={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(s){return s&&typeof s.bit<"u"&&s.bit>=0&&s.bit<4},e.from=function(s,i){if(e.isValid(s))return s;try{return t(s)}catch{return i}}})(Ga);function Lm(){this.buffer=[],this.length=0}Lm.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var BT=Lm;function Jo(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}Jo.prototype.set=function(e,t,n,s){const i=e*this.size+t;this.data[i]=n,s&&(this.reservedBit[i]=!0)};Jo.prototype.get=function(e,t){return this.data[e*this.size+t]};Jo.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};Jo.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var VT=Jo,Im={};(function(e){const t=$e.getSymbolSize;e.getRowColCoords=function(s){if(s===1)return[];const i=Math.floor(s/7)+2,o=t(s),r=o===145?26:Math.ceil((o-13)/(2*i-2))*2,a=[o-7];for(let l=1;l=0&&i<=7},e.from=function(i){return e.isValid(i)?parseInt(i,10):void 0},e.getPenaltyN1=function(i){const o=i.size;let r=0,a=0,l=0,c=null,u=null;for(let d=0;d=5&&(r+=t.N1+(a-5)),c=p,a=1),p=i.get(f,d),p===u?l++:(l>=5&&(r+=t.N1+(l-5)),u=p,l=1)}a>=5&&(r+=t.N1+(a-5)),l>=5&&(r+=t.N1+(l-5))}return r},e.getPenaltyN2=function(i){const o=i.size;let r=0;for(let a=0;a=10&&(a===1488||a===93)&&r++,l=l<<1&2047|i.get(u,c),u>=10&&(l===1488||l===93)&&r++}return r*t.N3},e.getPenaltyN4=function(i){let o=0;const r=i.data.length;for(let l=0;l=0;){const r=o[0];for(let l=0;l0){const o=new Uint8Array(this.degree);return o.set(s,i),o}return s};var jT=Tu,Vm={},rs={},Mu={};Mu.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var hn={};const Hm="[0-9]+",WT="[A-Z $%*+\\-./:]+";let Fo="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Fo=Fo.replace(/u/g,"\\u");const zT="(?:(?![A-Z0-9 $%*+\\-./:]|"+Fo+`)(?:.|[\r -]))+`;hn.KANJI=new RegExp(Fo,"g");hn.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");hn.BYTE=new RegExp(zT,"g");hn.NUMERIC=new RegExp(Hm,"g");hn.ALPHANUMERIC=new RegExp(WT,"g");const UT=new RegExp("^"+Fo+"$"),KT=new RegExp("^"+Hm+"$"),YT=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");hn.testKanji=function(t){return UT.test(t)};hn.testNumeric=function(t){return KT.test(t)};hn.testAlphanumeric=function(t){return YT.test(t)};(function(e){const t=Mu,n=hn;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(o,r){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!t.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?o.ccBits[0]:r<27?o.ccBits[1]:o.ccBits[2]},e.getBestModeForData=function(o){return n.testNumeric(o)?e.NUMERIC:n.testAlphanumeric(o)?e.ALPHANUMERIC:n.testKanji(o)?e.KANJI:e.BYTE},e.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},e.isValid=function(o){return o&&o.bit&&o.ccBits};function s(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+i)}}e.from=function(o,r){if(e.isValid(o))return o;try{return s(o)}catch{return r}}})(rs);(function(e){const t=$e,n=qa,s=Ga,i=rs,o=Mu,r=7973,a=t.getBCHDigit(r);function l(f,p,g){for(let m=1;m<=40;m++)if(p<=e.getCapacity(m,g,f))return m}function c(f,p){return i.getCharCountIndicator(f,p)+4}function u(f,p){let g=0;return f.forEach(function(m){const y=c(m.mode,p);g+=y+m.getBitsLength()}),g}function d(f,p){for(let g=1;g<=40;g++)if(u(f,g)<=e.getCapacity(g,p,i.MIXED))return g}e.from=function(p,g){return o.isValid(p)?parseInt(p,10):g},e.getCapacity=function(p,g,m){if(!o.isValid(p))throw new Error("Invalid QR Code version");typeof m>"u"&&(m=i.BYTE);const y=t.getSymbolTotalCodewords(p),x=n.getTotalCodewordsCount(p,g),S=(y-x)*8;if(m===i.MIXED)return S;const M=S-c(m,p);switch(m){case i.NUMERIC:return Math.floor(M/10*3);case i.ALPHANUMERIC:return Math.floor(M/11*2);case i.KANJI:return Math.floor(M/13);case i.BYTE:default:return Math.floor(M/8)}},e.getBestVersionForData=function(p,g){let m;const y=s.from(g,s.M);if(Array.isArray(p)){if(p.length>1)return d(p,y);if(p.length===0)return 1;m=p[0]}else m=p;return l(m.mode,m.getLength(),y)},e.getEncodedBits=function(p){if(!o.isValid(p)||p<7)throw new Error("Invalid QR Code version");let g=p<<12;for(;t.getBCHDigit(g)-a>=0;)g^=r<=0;)i^=Wm<<_c.getBCHDigit(i)-Zh;return(s<<10|i)^GT};var zm={};const qT=rs;function $i(e){this.mode=qT.NUMERIC,this.data=e.toString()}$i.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};$i.prototype.getLength=function(){return this.data.length};$i.prototype.getBitsLength=function(){return $i.getBitsLength(this.data.length)};$i.prototype.write=function(t){let n,s,i;for(n=0;n+3<=this.data.length;n+=3)s=this.data.substr(n,3),i=parseInt(s,10),t.put(i,10);const o=this.data.length-n;o>0&&(s=this.data.substr(n),i=parseInt(s,10),t.put(i,o*3+1))};var XT=$i;const QT=rs,Pl=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Li(e){this.mode=QT.ALPHANUMERIC,this.data=e}Li.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};Li.prototype.getLength=function(){return this.data.length};Li.prototype.getBitsLength=function(){return Li.getBitsLength(this.data.length)};Li.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let s=Pl.indexOf(this.data[n])*45;s+=Pl.indexOf(this.data[n+1]),t.put(s,11)}this.data.length%2&&t.put(Pl.indexOf(this.data[n]),6)};var JT=Li,ZT=function(t){for(var n=[],s=t.length,i=0;i=55296&&o<=56319&&s>i+1){var r=t.charCodeAt(i+1);r>=56320&&r<=57343&&(o=(o-55296)*1024+r-56320+65536,i+=1)}if(o<128){n.push(o);continue}if(o<2048){n.push(o>>6|192),n.push(o&63|128);continue}if(o<55296||o>=57344&&o<65536){n.push(o>>12|224),n.push(o>>6&63|128),n.push(o&63|128);continue}if(o>=65536&&o<=1114111){n.push(o>>18|240),n.push(o>>12&63|128),n.push(o>>6&63|128),n.push(o&63|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer};const tM=ZT,eM=rs;function Ii(e){this.mode=eM.BYTE,typeof e=="string"&&(e=tM(e)),this.data=new Uint8Array(e)}Ii.getBitsLength=function(t){return t*8};Ii.prototype.getLength=function(){return this.data.length};Ii.prototype.getBitsLength=function(){return Ii.getBitsLength(this.data.length)};Ii.prototype.write=function(e){for(let t=0,n=this.data.length;t=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+` -Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var oM=Ri,Um={exports:{}};(function(e){var t={single_source_shortest_paths:function(n,s,i){var o={},r={};r[s]=0;var a=t.PriorityQueue.make();a.push(s,0);for(var l,c,u,d,f,p,g,m,y;!a.empty();){l=a.pop(),c=l.value,d=l.cost,f=n[c]||{};for(u in f)f.hasOwnProperty(u)&&(p=f[u],g=d+p,m=r[u],y=typeof r[u]>"u",(y||m>g)&&(r[u]=g,a.push(u,g),o[u]=c))}if(typeof i<"u"&&typeof r[i]>"u"){var x=["Could not find a path from ",s," to ",i,"."].join("");throw new Error(x)}return o},extract_shortest_path_from_predecessor_list:function(n,s){for(var i=[],o=s;o;)i.push(o),n[o],o=n[o];return i.reverse(),i},find_path:function(n,s,i){var o=t.single_source_shortest_paths(n,s,i);return t.extract_shortest_path_from_predecessor_list(o,i)},PriorityQueue:{make:function(n){var s=t.PriorityQueue,i={},o;n=n||{};for(o in s)s.hasOwnProperty(o)&&(i[o]=s[o]);return i.queue=[],i.sorter=n.sorter||s.default_sorter,i},default_sorter:function(n,s){return n.cost-s.cost},push:function(n,s){var i={value:n,cost:s};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Um);var rM=Um.exports;(function(e){const t=rs,n=XT,s=JT,i=nM,o=oM,r=hn,a=$e,l=rM;function c(x){return unescape(encodeURIComponent(x)).length}function u(x,S,M){const C=[];let v;for(;(v=x.exec(M))!==null;)C.push({data:v[0],index:v.index,mode:S,length:v[0].length});return C}function d(x){const S=u(r.NUMERIC,t.NUMERIC,x),M=u(r.ALPHANUMERIC,t.ALPHANUMERIC,x);let C,v;return a.isKanjiModeEnabled()?(C=u(r.BYTE,t.BYTE,x),v=u(r.KANJI,t.KANJI,x)):(C=u(r.BYTE_KANJI,t.BYTE,x),v=[]),S.concat(M,C,v).sort(function(A,w){return A.index-w.index}).map(function(A){return{data:A.data,mode:A.mode,length:A.length}})}function f(x,S){switch(S){case t.NUMERIC:return n.getBitsLength(x);case t.ALPHANUMERIC:return s.getBitsLength(x);case t.KANJI:return o.getBitsLength(x);case t.BYTE:return i.getBitsLength(x)}}function p(x){return x.reduce(function(S,M){const C=S.length-1>=0?S[S.length-1]:null;return C&&C.mode===M.mode?(S[S.length-1].data+=M.data,S):(S.push(M),S)},[])}function g(x){const S=[];for(let M=0;M=0&&a<=6&&(l===0||l===6)||l>=0&&l<=6&&(a===0||a===6)||a>=2&&a<=4&&l>=2&&l<=4?e.set(o+a,r+l,!0,!0):e.set(o+a,r+l,!1,!0))}}function gM(e){const t=e.size;for(let n=8;n>a&1)===1,e.set(i,o,r,!0),e.set(o,i,r,!0)}function Dl(e,t,n){const s=e.size,i=hM.getEncodedBits(t,n);let o,r;for(o=0;o<15;o++)r=(i>>o&1)===1,o<6?e.set(o,8,r,!0):o<8?e.set(o+1,8,r,!0):e.set(s-15+o,8,r,!0),o<8?e.set(8,s-o-1,r,!0):o<9?e.set(8,15-o-1+1,r,!0):e.set(8,15-o-1,r,!0);e.set(s-8,8,1,!0)}function bM(e,t){const n=e.size;let s=-1,i=n-1,o=7,r=0;for(let a=n-1;a>0;a-=2)for(a===6&&a--;;){for(let l=0;l<2;l++)if(!e.isReserved(i,a-l)){let c=!1;r>>o&1)===1),e.set(i,a-l,c),o--,o===-1&&(r++,o=7)}if(i+=s,i<0||n<=i){i-=s,s=-s;break}}}function yM(e,t,n){const s=new aM;n.forEach(function(l){s.put(l.mode.bit,4),s.put(l.getLength(),fM.getCharCountIndicator(l.mode,e)),l.write(s)});const i=Qa.getSymbolTotalCodewords(e),o=yc.getTotalCodewordsCount(e,t),r=(i-o)*8;for(s.getLengthInBits()+4<=r&&s.put(0,4);s.getLengthInBits()%8!==0;)s.putBit(0);const a=(r-s.getLengthInBits())/8;for(let l=0;l{},tn=Array.isArray,TE=/\/$/,PE=e=>e.replace(TE,"");function Ol(e,t,n="/"){let s,i={},o="",r="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(s=t.slice(0,l),o=t.slice(l+1,a>-1?a:t.length),i=e(o)),a>-1&&(s=s||t.slice(0,a),r=t.slice(a,t.length)),s=DE(s??t,n),{fullPath:s+(o&&"?")+o+r,path:s,query:i,hash:r}}function ME(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Vh(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function kE(e,t,n){const s=t.matched.length-1,i=n.matched.length-1;return s>-1&&s===i&&Ii(t.matched[s],n.matched[i])&&Sm(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ii(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Sm(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!OE(e[n],t[n]))return!1;return!0}function OE(e,t){return tn(e)?Hh(e,t):tn(t)?Hh(t,e):e===t}function Hh(e,t){return tn(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function DE(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),i=s[s.length-1];(i===".."||i===".")&&s.push("");let o=n.length-1,r,a;for(r=0;r1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(r-(r===s.length?1:0)).join("/")}var Wo;(function(e){e.pop="pop",e.push="push"})(Wo||(Wo={}));var So;(function(e){e.back="back",e.forward="forward",e.unknown=""})(So||(So={}));function $E(e){if(!e)if(di){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),PE(e)}const LE=/^[^#]+#/;function IE(e,t){return e.replace(LE,"#")+t}function RE(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Qa=()=>({left:window.pageXOffset,top:window.pageYOffset});function NE(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=RE(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function jh(e,t){return(history.state?history.state.position-t:-1)+e}const _c=new Map;function FE(e,t){_c.set(e,t)}function BE(e){const t=_c.get(e);return _c.delete(e),t}let VE=()=>location.protocol+"//"+location.host;function Cm(e,t){const{pathname:n,search:s,hash:i}=t,o=e.indexOf("#");if(o>-1){let a=i.includes(e.slice(o))?e.slice(o).length:1,l=i.slice(a);return l[0]!=="/"&&(l="/"+l),Vh(l,"")}return Vh(n,e)+s+i}function HE(e,t,n,s){let i=[],o=[],r=null;const a=({state:f})=>{const p=Cm(e,location),m=n.value,_=t.value;let y=0;if(f){if(n.value=p,t.value=f,r&&r===m){r=null;return}y=_?f.position-_.position:0}else s(p);i.forEach(x=>{x(n.value,m,{delta:y,type:Wo.pop,direction:y?y>0?So.forward:So.back:So.unknown})})};function l(){r=n.value}function c(f){i.push(f);const p=()=>{const m=i.indexOf(f);m>-1&&i.splice(m,1)};return o.push(p),p}function u(){const{history:f}=window;f.state&&f.replaceState(Rt({},f.state,{scroll:Qa()}),"")}function d(){for(const f of o)f();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:d}}function Wh(e,t,n,s=!1,i=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:i?Qa():null}}function jE(e){const{history:t,location:n}=window,s={value:Cm(e,n)},i={value:t.state};i.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,c,u){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:VE()+e+l;try{t[u?"replaceState":"pushState"](c,"",f),i.value=c}catch(p){console.error(p),n[u?"replace":"assign"](f)}}function r(l,c){const u=Rt({},t.state,Wh(i.value.back,l,i.value.forward,!0),c,{position:i.value.position});o(l,u,!0),s.value=l}function a(l,c){const u=Rt({},i.value,t.state,{forward:l,scroll:Qa()});o(u.current,u,!0);const d=Rt({},Wh(s.value,l,null),{position:u.position+1},c);o(l,d,!1),s.value=l}return{location:s,state:i,push:a,replace:r}}function WE(e){e=$E(e);const t=jE(e),n=HE(e,t.state,t.location,t.replace);function s(o,r=!0){r||n.pauseListeners(),history.go(o)}const i=Rt({location:"",base:e,go:s,createHref:IE.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function zE(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),WE(e)}function UE(e){return typeof e=="string"||e&&typeof e=="object"}function Am(e){return typeof e=="string"||typeof e=="symbol"}const Hn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Tm=Symbol("");var zh;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(zh||(zh={}));function Ri(e,t){return Rt(new Error,{type:e,[Tm]:!0},t)}function _n(e,t){return e instanceof Error&&Tm in e&&(t==null||!!(e.type&t))}const Uh="[^/]+?",KE={sensitive:!1,strict:!1,start:!0,end:!0},YE=/[.+*?^${}()[\]/\\]/g;function qE(e,t){const n=Rt({},KE,t),s=[];let i=n.start?"^":"";const o=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(i+="/");for(let d=0;dt.length?t.length===1&&t[0]===80?1:-1:0}function XE(e,t){let n=0;const s=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const QE={type:0,value:""},JE=/[a-zA-Z0-9_]/;function ZE(e){if(!e)return[[]];if(e==="/")return[[QE]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,s=n;const i=[];let o;function r(){o&&i.push(o),o=[]}let a=0,l,c="",u="";function d(){c&&(n===0?o.push({type:0,value:c}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;a{r(S)}:Eo}function r(u){if(Am(u)){const d=s.get(u);d&&(s.delete(u),n.splice(n.indexOf(d),1),d.children.forEach(r),d.alias.forEach(r))}else{const d=n.indexOf(u);d>-1&&(n.splice(d,1),u.record.name&&s.delete(u.record.name),u.children.forEach(r),u.alias.forEach(r))}}function a(){return n}function l(u){let d=0;for(;d=0&&(u.record.path!==n[d].record.path||!Pm(u,n[d]));)d++;n.splice(d,0,u),u.record.name&&!qh(u)&&s.set(u.record.name,u)}function c(u,d){let f,p={},m,_;if("name"in u&&u.name){if(f=s.get(u.name),!f)throw Ri(1,{location:u});_=f.record.name,p=Rt(Yh(d.params,f.keys.filter(S=>!S.optional).map(S=>S.name)),u.params&&Yh(u.params,f.keys.map(S=>S.name))),m=f.stringify(p)}else if("path"in u)m=u.path,f=n.find(S=>S.re.test(m)),f&&(p=f.parse(m),_=f.record.name);else{if(f=d.name?s.get(d.name):n.find(S=>S.re.test(d.path)),!f)throw Ri(1,{location:u,currentLocation:d});_=f.record.name,p=Rt({},d.params,u.params),m=f.stringify(p)}const y=[];let x=f;for(;x;)y.unshift(x.record),x=x.parent;return{name:_,path:m,params:p,matched:y,meta:iS(y)}}return e.forEach(u=>o(u)),{addRoute:o,resolve:c,removeRoute:r,getRoutes:a,getRecordMatcher:i}}function Yh(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function nS(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:sS(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function sS(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function qh(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function iS(e){return e.reduce((t,n)=>Rt(t,n.meta),{})}function Gh(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function Pm(e,t){return t.children.some(n=>n===e||Pm(e,n))}const Mm=/#/g,oS=/&/g,rS=/\//g,aS=/=/g,lS=/\?/g,km=/\+/g,cS=/%5B/g,uS=/%5D/g,Om=/%5E/g,dS=/%60/g,Dm=/%7B/g,hS=/%7C/g,$m=/%7D/g,fS=/%20/g;function Mu(e){return encodeURI(""+e).replace(hS,"|").replace(cS,"[").replace(uS,"]")}function pS(e){return Mu(e).replace(Dm,"{").replace($m,"}").replace(Om,"^")}function bc(e){return Mu(e).replace(km,"%2B").replace(fS,"+").replace(Mm,"%23").replace(oS,"%26").replace(dS,"`").replace(Dm,"{").replace($m,"}").replace(Om,"^")}function gS(e){return bc(e).replace(aS,"%3D")}function mS(e){return Mu(e).replace(Mm,"%23").replace(lS,"%3F")}function _S(e){return e==null?"":mS(e).replace(rS,"%2F")}function ga(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function bS(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;io&&bc(o)):[s&&bc(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function yS(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=tn(s)?s.map(i=>i==null?null:""+i):s==null?s:""+s)}return t}const vS=Symbol(""),Qh=Symbol(""),ku=Symbol(""),Lm=Symbol(""),yc=Symbol("");function oo(){let e=[];function t(s){return e.push(s),()=>{const i=e.indexOf(s);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function qn(e,t,n,s,i){const o=s&&(s.enterCallbacks[i]=s.enterCallbacks[i]||[]);return()=>new Promise((r,a)=>{const l=d=>{d===!1?a(Ri(4,{from:n,to:t})):d instanceof Error?a(d):UE(d)?a(Ri(2,{from:t,to:d})):(o&&s.enterCallbacks[i]===o&&typeof d=="function"&&o.push(d),r())},c=e.call(s&&s.instances[i],t,n,l);let u=Promise.resolve(c);e.length<3&&(u=u.then(l)),u.catch(d=>a(d))})}function Dl(e,t,n,s){const i=[];for(const o of e)for(const r in o.components){let a=o.components[r];if(!(t!=="beforeRouteEnter"&&!o.instances[r]))if(xS(a)){const c=(a.__vccOpts||a)[t];c&&i.push(qn(c,n,s,o,r))}else{let l=a();i.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${r}" at "${o.path}"`));const u=AE(c)?c.default:c;o.components[r]=u;const f=(u.__vccOpts||u)[t];return f&&qn(f,n,s,o,r)()}))}}return i}function xS(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Jh(e){const t=un(ku),n=un(Lm),s=He(()=>t.resolve(es(e.to))),i=He(()=>{const{matched:l}=s.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(Ii.bind(null,u));if(f>-1)return f;const p=Zh(l[c-2]);return c>1&&Zh(u)===p&&d[d.length-1].path!==p?d.findIndex(Ii.bind(null,l[c-2])):f}),o=He(()=>i.value>-1&&CS(n.params,s.value.params)),r=He(()=>i.value>-1&&i.value===n.matched.length-1&&Sm(n.params,s.value.params));function a(l={}){return SS(l)?t[es(e.replace)?"replace":"push"](es(e.to)).catch(Eo):Promise.resolve()}return{route:s,href:He(()=>s.value.href),isActive:o,isExactActive:r,navigate:a}}const wS=Wa({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Jh,setup(e,{slots:t}){const n=tr(Jh(e)),{options:s}=un(ku),i=He(()=>({[tf(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[tf(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Di("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),ES=wS;function SS(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function CS(e,t){for(const n in t){const s=t[n],i=e[n];if(typeof s=="string"){if(s!==i)return!1}else if(!tn(i)||i.length!==s.length||s.some((o,r)=>o!==i[r]))return!1}return!0}function Zh(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const tf=(e,t,n)=>e??t??n,AS=Wa({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=un(yc),i=He(()=>e.route||s.value),o=un(Qh,0),r=He(()=>{let c=es(o);const{matched:u}=i.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=He(()=>i.value.matched[r.value]);ea(Qh,He(()=>r.value+1)),ea(vS,a),ea(yc,i);const l=Pi();return Bs(()=>[l.value,a.value,e.name],([c,u,d],[f,p,m])=>{u&&(u.instances[d]=c,p&&p!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!Ii(u,p)||!f)&&(u.enterCallbacks[d]||[]).forEach(_=>_(c))},{flush:"post"}),()=>{const c=i.value,u=e.name,d=a.value,f=d&&d.components[u];if(!f)return ef(n.default,{Component:f,route:c});const p=d.props[u],m=p?p===!0?c.params:typeof p=="function"?p(c):p:null,y=Di(f,Rt({},m,t,{onVnodeUnmounted:x=>{x.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return ef(n.default,{Component:y,route:c})||y}}});function ef(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Im=AS;function TS(e){const t=eS(e.routes,e),n=e.parseQuery||bS,s=e.stringifyQuery||Xh,i=e.history,o=oo(),r=oo(),a=oo(),l=hu(Hn);let c=Hn;di&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=kl.bind(null,j=>""+j),d=kl.bind(null,_S),f=kl.bind(null,ga);function p(j,et){let J,rt;return Am(j)?(J=t.getRecordMatcher(j),rt=et):rt=j,t.addRoute(rt,J)}function m(j){const et=t.getRecordMatcher(j);et&&t.removeRoute(et)}function _(){return t.getRoutes().map(j=>j.record)}function y(j){return!!t.getRecordMatcher(j)}function x(j,et){if(et=Rt({},et||l.value),typeof j=="string"){const I=Ol(n,j,et.path),V=t.resolve({path:I.path},et),K=i.createHref(I.fullPath);return Rt(I,V,{params:f(V.params),hash:ga(I.hash),redirectedFrom:void 0,href:K})}let J;if("path"in j)J=Rt({},j,{path:Ol(n,j.path,et.path).path});else{const I=Rt({},j.params);for(const V in I)I[V]==null&&delete I[V];J=Rt({},j,{params:d(I)}),et.params=d(et.params)}const rt=t.resolve(J,et),F=j.hash||"";rt.params=u(f(rt.params));const T=ME(s,Rt({},j,{hash:pS(F),path:rt.path})),D=i.createHref(T);return Rt({fullPath:T,hash:F,query:s===Xh?yS(j.query):j.query||{}},rt,{redirectedFrom:void 0,href:D})}function S(j){return typeof j=="string"?Ol(n,j,l.value.path):Rt({},j)}function P(j,et){if(c!==j)return Ri(8,{from:et,to:j})}function C(j){return A(j)}function v(j){return C(Rt(S(j),{replace:!0}))}function E(j){const et=j.matched[j.matched.length-1];if(et&&et.redirect){const{redirect:J}=et;let rt=typeof J=="function"?J(j):J;return typeof rt=="string"&&(rt=rt.includes("?")||rt.includes("#")?rt=S(rt):{path:rt},rt.params={}),Rt({query:j.query,hash:j.hash,params:"path"in rt?{}:j.params},rt)}}function A(j,et){const J=c=x(j),rt=l.value,F=j.state,T=j.force,D=j.replace===!0,I=E(J);if(I)return A(Rt(S(I),{state:typeof I=="object"?Rt({},F,I.state):F,force:T,replace:D}),et||J);const V=J;V.redirectedFrom=et;let K;return!T&&kE(s,rt,J)&&(K=Ri(16,{to:V,from:rt}),pt(rt,rt,!0,!1)),(K?Promise.resolve(K):$(V,rt)).catch(G=>_n(G)?_n(G,2)?G:lt(G):U(G,V,rt)).then(G=>{if(G){if(_n(G,2))return A(Rt({replace:D},S(G.to),{state:typeof G.to=="object"?Rt({},F,G.to.state):F,force:T}),et||V)}else G=N(V,rt,!0,D,F);return L(V,rt,G),G})}function w(j,et){const J=P(j,et);return J?Promise.reject(J):Promise.resolve()}function k(j){const et=wt.values().next().value;return et&&typeof et.runWithContext=="function"?et.runWithContext(j):j()}function $(j,et){let J;const[rt,F,T]=PS(j,et);J=Dl(rt.reverse(),"beforeRouteLeave",j,et);for(const I of rt)I.leaveGuards.forEach(V=>{J.push(qn(V,j,et))});const D=w.bind(null,j,et);return J.push(D),Et(J).then(()=>{J=[];for(const I of o.list())J.push(qn(I,j,et));return J.push(D),Et(J)}).then(()=>{J=Dl(F,"beforeRouteUpdate",j,et);for(const I of F)I.updateGuards.forEach(V=>{J.push(qn(V,j,et))});return J.push(D),Et(J)}).then(()=>{J=[];for(const I of T)if(I.beforeEnter)if(tn(I.beforeEnter))for(const V of I.beforeEnter)J.push(qn(V,j,et));else J.push(qn(I.beforeEnter,j,et));return J.push(D),Et(J)}).then(()=>(j.matched.forEach(I=>I.enterCallbacks={}),J=Dl(T,"beforeRouteEnter",j,et),J.push(D),Et(J))).then(()=>{J=[];for(const I of r.list())J.push(qn(I,j,et));return J.push(D),Et(J)}).catch(I=>_n(I,8)?I:Promise.reject(I))}function L(j,et,J){a.list().forEach(rt=>k(()=>rt(j,et,J)))}function N(j,et,J,rt,F){const T=P(j,et);if(T)return T;const D=et===Hn,I=di?history.state:{};J&&(rt||D?i.replace(j.fullPath,Rt({scroll:D&&I&&I.scroll},F)):i.push(j.fullPath,F)),l.value=j,pt(j,et,J,D),lt()}let X;function Y(){X||(X=i.listen((j,et,J)=>{if(!Mt.listening)return;const rt=x(j),F=E(rt);if(F){A(Rt(F,{replace:!0}),rt).catch(Eo);return}c=rt;const T=l.value;di&&FE(jh(T.fullPath,J.delta),Qa()),$(rt,T).catch(D=>_n(D,12)?D:_n(D,2)?(A(D.to,rt).then(I=>{_n(I,20)&&!J.delta&&J.type===Wo.pop&&i.go(-1,!1)}).catch(Eo),Promise.reject()):(J.delta&&i.go(-J.delta,!1),U(D,rt,T))).then(D=>{D=D||N(rt,T,!1),D&&(J.delta&&!_n(D,8)?i.go(-J.delta,!1):J.type===Wo.pop&&_n(D,20)&&i.go(-1,!1)),L(rt,T,D)}).catch(Eo)}))}let H=oo(),R=oo(),W;function U(j,et,J){lt(j);const rt=R.list();return rt.length?rt.forEach(F=>F(j,et,J)):console.error(j),Promise.reject(j)}function it(){return W&&l.value!==Hn?Promise.resolve():new Promise((j,et)=>{H.add([j,et])})}function lt(j){return W||(W=!j,Y(),H.list().forEach(([et,J])=>j?J(j):et()),H.reset()),j}function pt(j,et,J,rt){const{scrollBehavior:F}=e;if(!di||!F)return Promise.resolve();const T=!J&&BE(jh(j.fullPath,0))||(rt||!J)&&history.state&&history.state.scroll||null;return Va().then(()=>F(j,et,T)).then(D=>D&&NE(D)).catch(D=>U(D,j,et))}const ft=j=>i.go(j);let At;const wt=new Set,Mt={currentRoute:l,listening:!0,addRoute:p,removeRoute:m,hasRoute:y,getRoutes:_,resolve:x,options:e,push:C,replace:v,go:ft,back:()=>ft(-1),forward:()=>ft(1),beforeEach:o.add,beforeResolve:r.add,afterEach:a.add,onError:R.add,isReady:it,install(j){const et=this;j.component("RouterLink",ES),j.component("RouterView",Im),j.config.globalProperties.$router=et,Object.defineProperty(j.config.globalProperties,"$route",{enumerable:!0,get:()=>es(l)}),di&&!At&&l.value===Hn&&(At=!0,C(i.location).catch(F=>{}));const J={};for(const F in Hn)Object.defineProperty(J,F,{get:()=>l.value[F],enumerable:!0});j.provide(ku,et),j.provide(Lm,Pg(J)),j.provide(yc,l);const rt=j.unmount;wt.add(j),j.unmount=function(){wt.delete(j),wt.size<1&&(c=Hn,X&&X(),X=null,l.value=Hn,At=!1,W=!1),rt()}}};function Et(j){return j.reduce((et,J)=>et.then(()=>k(J)),Promise.resolve())}return Mt}function PS(e,t){const n=[],s=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let r=0;rIi(c,a))?s.push(a):n.push(a));const l=e.matched[r];l&&(t.matched.find(c=>Ii(c,l))||i.push(l))}return[n,s,i]}const qe=async(e,t=void 0,n=void 0)=>{const s=new URLSearchParams(t);await fetch(`${e}?${s.toString()}`,{headers:{"content-type":"application/json"}}).then(i=>i.json()).then(i=>n?n(i):void 0)},Ce=async(e,t,n)=>{await fetch(`${e}`,{headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(t)}).then(s=>s.json()).then(s=>n?n(s):void 0)};let $r;const MS=new Uint8Array(16);function kS(){if(!$r&&($r=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!$r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return $r(MS)}const ae=[];for(let e=0;e<256;++e)ae.push((e+256).toString(16).slice(1));function OS(e,t=0){return ae[e[t+0]]+ae[e[t+1]]+ae[e[t+2]]+ae[e[t+3]]+"-"+ae[e[t+4]]+ae[e[t+5]]+"-"+ae[e[t+6]]+ae[e[t+7]]+"-"+ae[e[t+8]]+ae[e[t+9]]+"-"+ae[e[t+10]]+ae[e[t+11]]+ae[e[t+12]]+ae[e[t+13]]+ae[e[t+14]]+ae[e[t+15]]}const DS=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),nf={randomUUID:DS};function qi(e,t,n){if(nf.randomUUID&&!t&&!e)return nf.randomUUID();e=e||{};const s=e.random||(e.rng||kS)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=s[i];return t}return OS(s)}const re=Pu("DashboardConfigurationStore",{state:()=>({Configuration:void 0,Messages:[]}),actions:{async getConfiguration(){await qe("/api/getDashboardConfiguration",{},e=>{e.status&&(this.Configuration=e.data)})},async updateConfiguration(){await Ce("/api/updateDashboardConfiguration",{DashboardConfiguration:this.Configuration},e=>{console.log(e)})},async signOut(){await qe("/api/signout",{},e=>{this.$router.go("/signin")})},newMessage(e,t,n){this.Messages.push({id:qi(),from:e,content:t,type:n,show:!0})}}}),$S=g("nav",{class:"navbar bg-dark sticky-top","data-bs-theme":"dark"},[g("div",{class:"container-fluid"},[g("span",{class:"navbar-brand mb-0 h1"},"WGDashboard")])],-1),LS={__name:"App",setup(e){return re(),(t,n)=>(ot(),ct(Jt,null,[$S,(ot(),Ee(bu,null,{default:Yt(()=>[mt(es(Im),null,{default:Yt(({Component:s})=>[mt(Dn,{name:"fade",mode:"out-in"},{default:Yt(()=>[(ot(),Ee(_u(s)))]),_:2},1024)]),_:1})]),_:1}))],64))}},IS={getCookie(e){const n=`; ${document.cookie}`.split(`; ${e}=`);if(n.length===2)return n.pop().split(";").shift()}};Pu("WGDashboardStore",{state:()=>({WireguardConfigurations:void 0,DashboardConfiguration:void 0}),actions:{async getDashboardConfiguration(){await qe("/api/getDashboardConfiguration",{},e=>{console.log(e.status),e.status&&(this.DashboardConfiguration=e.data)})}}});const Gi=Pu("WireguardConfigurationsStore",{state:()=>({Configurations:void 0,searchString:""}),actions:{async getConfigurations(){await qe("/api/getWireguardConfigurations",{},e=>{e.status&&(this.Configurations=e.data)})}}}),Ut=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n},RS={name:"navbar",setup(){const e=Gi(),t=re();return{wireguardConfigurationsStore:e,dashboardConfigurationStore:t}}},NS={class:"col-md-3 col-lg-2 d-md-block p-3"},FS={id:"sidebarMenu",class:"bg-body-tertiary sidebar border h-100 rounded-3 shadow"},BS={class:"sidebar-sticky pt-3"},VS={class:"nav flex-column"},HS={class:"nav-item"},jS={class:"nav-item"},WS=g("hr",null,null,-1),zS=g("h6",{class:"sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted"},[g("span",null,"Configurations")],-1),US={class:"nav flex-column"},KS={class:"nav-item"},YS=C1('

',4),qS={class:"nav flex-column"},GS={class:"nav-item"},XS=g("ul",{class:"nav flex-column"},[g("li",{class:"nav-item"},[g("a",{href:"https://github.com/donaldzou/WGDashboard/releases/tag/"},[g("small",{class:"nav-link text-muted"})])])],-1);function QS(e,t,n,s,i,o){const r=Kt("RouterLink");return ot(),ct("div",NS,[g("nav",FS,[g("div",BS,[g("ul",VS,[g("li",HS,[mt(r,{class:"nav-link",to:"/","exact-active-class":"active"},{default:Yt(()=>[xt("Home")]),_:1})]),g("li",jS,[mt(r,{class:"nav-link",to:"/settings","exact-active-class":"active"},{default:Yt(()=>[xt("Settings")]),_:1})])]),WS,zS,g("ul",US,[g("li",KS,[(ot(!0),ct(Jt,null,Mi(this.wireguardConfigurationsStore.Configurations,a=>(ot(),Ee(r,{to:"/configuration/"+a.Name,class:"nav-link nav-conf-link"},{default:Yt(()=>[g("samp",null,Ct(a.Name),1)]),_:2},1032,["to"]))),256))])]),YS,g("ul",qS,[g("li",GS,[g("a",{class:"nav-link text-danger",onClick:t[0]||(t[0]=a=>this.dashboardConfigurationStore.signOut()),role:"button",style:{"font-weight":"bold"}},"Sign Out")])]),XS])])])}const JS=Ut(RS,[["render",QS]]),ZS={name:"message",props:{message:Object},mounted(){setTimeout(()=>{this.message.show=!1},5e3)}},tC=["id"],eC={class:"card-body"},nC={class:"fw-bold d-block",style:{"text-transform":"uppercase"}};function sC(e,t,n,s,i,o){return ot(),ct("div",{class:he(["card shadow rounded-3 position-relative mb-2",{"text-bg-danger":this.message.type==="danger","text-bg-success":this.message.type==="success","text-bg-warning":this.message.type==="warning"}]),id:this.message.id,style:{width:"400px"}},[g("div",eC,[g("small",nC,"FROM "+Ct(this.message.from),1),xt(" "+Ct(this.message.content),1)])],10,tC)}const iC=Ut(ZS,[["render",sC]]),oC={name:"index",components:{Message:iC,Navbar:JS},async setup(){return{dashboardConfigurationStore:re()}},computed:{getMessages(){return this.dashboardConfigurationStore.Messages.filter(e=>e.show)}}},rC=["data-bs-theme"],aC={class:"row h-100"},lC={class:"col-md-9 ml-sm-auto col-lg-10 px-md-4 overflow-y-scroll mb-0",style:{height:"calc(100vh - 50px)"}},cC={class:"messageCentre text-body position-fixed"};function uC(e,t,n,s,i,o){const r=Kt("Navbar"),a=Kt("RouterView"),l=Kt("Message");return ot(),ct("div",{class:"container-fluid flex-grow-1 main","data-bs-theme":this.dashboardConfigurationStore.Configuration.Server.dashboard_theme},[g("div",aC,[mt(r),g("main",lC,[(ot(),Ee(bu,null,{default:Yt(()=>[mt(a,null,{default:Yt(({Component:c})=>[mt(Dn,{name:"fade2",mode:"out-in"},{default:Yt(()=>[(ot(),Ee(_u(c)))]),_:2},1024)]),_:1})]),_:1})),g("div",cC,[mt(bm,{name:"message",tag:"div",class:"position-relative"},{default:Yt(()=>[(ot(!0),ct(Jt,null,Mi(o.getMessages.slice().reverse(),c=>(ot(),Ee(l,{message:c,key:c.id},null,8,["message"]))),128))]),_:1})])])])],8,rC)}const dC=Ut(oC,[["render",uC],["__scopeId","data-v-54755a4a"]]),hC={name:"signin",async setup(){const e=re();let t="",n=!1;return await qe("/api/getDashboardTheme",{},s=>{t=s.data}),await qe("/api/isTotpEnabled",{},s=>{n=s.data}),{store:e,theme:t,totpEnabled:n}},data(){return{username:"",password:"",totp:"",loginError:!1,loginErrorMessage:"",loading:!1}},methods:{async auth(){this.username&&this.password&&(this.totpEnabled&&this.totp||!this.totpEnabled)?(this.loading=!0,await Ce("/api/authenticate",{username:this.username,password:this.password,totp:this.totp},e=>{e.status?(this.loginError=!1,this.$refs.signInBtn.classList.add("signedIn"),e.message?this.$router.push("/welcome"):this.$router.push("/")):(this.loginError=!0,this.loginErrorMessage=e.message,document.querySelectorAll("input[required]").forEach(t=>{t.classList.remove("is-valid"),t.classList.add("is-invalid")}),this.loading=!1)})):document.querySelectorAll("input[required]").forEach(e=>{e.value.length===0?(e.classList.remove("is-valid"),e.classList.add("is-invalid")):(e.classList.remove("is-invalid"),e.classList.add("is-valid"))})}}},fC=["data-bs-theme"],pC={class:"login-box m-auto",style:{width:"500px"}},gC=g("h4",{class:"mb-0 text-body"},"Welcome to",-1),mC=g("span",{class:"dashboardLogo display-3"},"WGDashboard",-1),_C={class:"m-auto"},bC={key:0,class:"alert alert-danger mt-2 mb-0",role:"alert"},yC={class:"form-group text-body"},vC=g("label",{for:"username",class:"text-left",style:{"font-size":"1rem"}},[g("i",{class:"bi bi-person-circle"})],-1),xC={class:"form-group text-body"},wC=g("label",{for:"password",class:"text-left",style:{"font-size":"1rem"}},[g("i",{class:"bi bi-key-fill"})],-1),EC={key:0,class:"form-group text-body"},SC=g("label",{for:"totp",class:"text-left",style:{"font-size":"1rem"}},[g("i",{class:"bi bi-lock-fill"})],-1),CC={class:"btn btn-lg btn-dark ms-auto mt-4 w-100 d-flex btn-brand shadow signInBtn",ref:"signInBtn"},AC={key:0,class:"d-flex w-100"},TC=g("i",{class:"ms-auto bi bi-chevron-right"},null,-1),PC={key:1,class:"d-flex w-100 align-items-center"},MC=g("span",{class:"spinner-border ms-auto spinner-border-sm",role:"status"},[g("span",{class:"visually-hidden"},"Loading...")],-1);function kC(e,t,n,s,i,o){return ot(),ct("div",{class:"container-fluid login-container-fluid d-flex main","data-bs-theme":this.theme},[g("div",pC,[gC,mC,g("div",_C,[i.loginError?(ot(),ct("div",bC,Ct(this.loginErrorMessage),1)):oe("",!0),g("form",{onSubmit:t[3]||(t[3]=r=>{r.preventDefault(),this.auth()})},[g("div",yC,[vC,kt(g("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=r=>i.username=r),class:"form-control",id:"username",name:"username",autocomplete:"on",placeholder:"Username",required:""},null,512),[[Ot,i.username]])]),g("div",xC,[wC,kt(g("input",{type:"password","onUpdate:modelValue":t[1]||(t[1]=r=>i.password=r),class:"form-control",id:"password",name:"password",autocomplete:"on",placeholder:"Password",required:""},null,512),[[Ot,i.password]])]),s.totpEnabled?(ot(),ct("div",EC,[SC,kt(g("input",{class:"form-control totp",required:"",id:"totp",maxlength:"6",type:"text",inputmode:"numeric",autocomplete:"one-time-code",placeholder:"OTP from your authenticator","onUpdate:modelValue":t[2]||(t[2]=r=>this.totp=r)},null,512),[[Ot,this.totp]])])):oe("",!0),g("button",CC,[this.loading?(ot(),ct("span",PC,[xt(" Signing In... "),MC])):(ot(),ct("span",AC,[xt(" Sign In"),TC]))],512)],32)])])],8,fC)}const OC=Ut(hC,[["render",kC]]),DC={name:"configurationCard",props:{c:{Name:String,Status:Boolean,PublicKey:String,PrivateKey:String}},setup(){return{dashboardConfigurationStore:re()}},methods:{toggle(){qe("/api/toggleWireguardConfiguration/",{configurationName:this.c.Name},e=>{e.status?this.dashboardConfigurationStore.newMessage("Server",`${this.c.Name} is ${e.data?"is on":"is off"}`):this.dashboardConfigurationStore.newMessage("Server",e.message,"danger"),this.c.Status=e.data})}}},$C={class:"card conf_card rounded-3 shadow text-decoration-none"},LC={class:"mb-0"},IC={class:"card-title mb-0"},RC=g("h6",{class:"mb-0 ms-auto"},[g("i",{class:"bi bi-chevron-right"})],-1),NC={class:"card-footer d-flex align-items-center"},FC=g("small",{class:"me-2 text-muted"},[g("strong",null,"PUBLIC KEY")],-1),BC={class:"mb-0 d-block d-lg-inline-block"},VC={style:{"line-break":"anywhere"}},HC={class:"form-check form-switch ms-auto"},jC=["for"],WC=["id"];function zC(e,t,n,s,i,o){const r=Kt("RouterLink");return ot(),ct("div",$C,[mt(r,{to:"/configuration/"+n.c.Name,class:"card-body d-flex align-items-center gap-3 flex-wrap text-decoration-none"},{default:Yt(()=>[g("h6",LC,[g("span",{class:he(["dot",{active:n.c.Status}])},null,2)]),g("h6",IC,[g("samp",null,Ct(n.c.Name),1)]),RC]),_:1},8,["to"]),g("div",NC,[FC,g("small",BC,[g("samp",VC,Ct(n.c.PublicKey),1)]),g("div",HC,[g("label",{class:"form-check-label",for:"switch"+n.c.PrivateKey},Ct(n.c.Status?"On":"Off"),9,jC),kt(g("input",{class:"form-check-input",type:"checkbox",role:"switch",id:"switch"+n.c.PrivateKey,onChange:t[0]||(t[0]=a=>this.toggle()),"onUpdate:modelValue":t[1]||(t[1]=a=>n.c.Status=a)},null,40,WC),[[Tu,n.c.Status]])])])])}const UC=Ut(DC,[["render",zC]]),KC={name:"configurationList",components:{ConfigurationCard:UC},async setup(){const e=Gi();return await e.getConfigurations(),{wireguardConfigurationsStore:e}}},YC={class:"mt-4"},qC={class:"container"},GC={class:"d-flex mb-4"},XC=g("h3",{class:"text-body"},"WireGuard Configurations",-1),QC=g("i",{class:"bi bi-plus-circle-fill ms-2"},null,-1),JC={key:0,class:"text-muted"},ZC={key:1,class:"d-flex gap-3 flex-column"};function tA(e,t,n,s,i,o){const r=Kt("RouterLink"),a=Kt("ConfigurationCard");return ot(),ct("div",YC,[g("div",qC,[g("div",GC,[XC,mt(r,{to:"/new_configuration",class:"btn btn-dark btn-brand rounded-3 px-3 py-2 shadow ms-auto rounded-3"},{default:Yt(()=>[xt(" Configuration "),QC]),_:1})]),this.wireguardConfigurationsStore.Configurations.length===0?(ot(),ct("p",JC,`You don't have any WireGuard configurations yet. Please check the configuration folder or change it in "Settings". By default the folder is "/etc/wireguard".`)):(ot(),ct("div",ZC,[(ot(!0),ct(Jt,null,Mi(this.wireguardConfigurationsStore.Configurations,l=>(ot(),Ee(a,{key:l.Name,c:l},null,8,["c"]))),128))]))])])}const eA=Ut(KC,[["render",tA]]),nA={props:{targetData:String,title:String,warning:!1,warningText:""},setup(){const e=re(),t=`input_${qi()}`;return{store:e,uuid:t}},data(){return{value:"",invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0,changed:!1,updating:!1}},mounted(){this.value=this.store.Configuration.Peers[this.targetData]},methods:{async useValidation(){this.changed&&await Ce("/api/updateDashboardConfigurationItem",{section:"Peers",key:this.targetData,value:this.value},e=>{e.status?(this.isValid=!0,this.showInvalidFeedback=!1,this.store.Configuration.Peers[this.targetData]=this.value,clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.isValid=!1,5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=e.message),this.changed=!1,this.updating=!1})}}},sA={class:"form-group mb-2"},iA=["for"],oA=["id","disabled"],rA={class:"invalid-feedback"},aA={key:0,class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block mt-1"},lA=g("i",{class:"bi bi-exclamation-triangle-fill me-2"},null,-1),cA=["innerHTML"];function uA(e,t,n,s,i,o){return ot(),ct("div",sA,[g("label",{for:this.uuid,class:"text-muted mb-1"},[g("strong",null,[g("small",null,Ct(this.title),1)])],8,iA),kt(g("input",{type:"text",class:he(["form-control",{"is-invalid":i.showInvalidFeedback,"is-valid":i.isValid}]),id:this.uuid,"onUpdate:modelValue":t[0]||(t[0]=r=>this.value=r),onKeydown:t[1]||(t[1]=r=>this.changed=!0),onBlur:t[2]||(t[2]=r=>o.useValidation()),disabled:this.updating},null,42,oA),[[Ot,this.value]]),g("div",rA,Ct(this.invalidFeedback),1),n.warning?(ot(),ct("div",aA,[g("small",null,[lA,g("span",{innerHTML:n.warningText},null,8,cA)])])):oe("",!0)])}const dA=Ut(nA,[["render",uA]]),hA=e=>{},fA={name:"accountSettingsInputUsername",props:{targetData:String,title:String,warning:!1,warningText:""},setup(){const e=re(),t=`input_${qi()}`;return{store:e,uuid:t}},data(){return{value:"",invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0,changed:!1,updating:!1}},mounted(){this.value=this.store.Configuration.Account[this.targetData]},methods:{async useValidation(){this.changed&&(this.updating=!0,await Ce("/api/updateDashboardConfigurationItem",{section:"Account",key:this.targetData,value:this.value},e=>{e.status?(this.isValid=!0,this.showInvalidFeedback=!1,this.store.Configuration.Account[this.targetData]=this.value,clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.isValid=!1,5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=e.message),this.changed=!1,this.updating=!1}))}}},pA={class:"form-group mb-2"},gA=["for"],mA=["id","disabled"],_A={class:"invalid-feedback"},bA={key:0,class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block mt-1"},yA=g("i",{class:"bi bi-exclamation-triangle-fill me-2"},null,-1),vA=["innerHTML"];function xA(e,t,n,s,i,o){return ot(),ct("div",pA,[g("label",{for:this.uuid,class:"text-muted mb-1"},[g("strong",null,[g("small",null,Ct(this.title),1)])],8,gA),kt(g("input",{type:"text",class:he(["form-control",{"is-invalid":i.showInvalidFeedback,"is-valid":i.isValid}]),id:this.uuid,"onUpdate:modelValue":t[0]||(t[0]=r=>this.value=r),onKeydown:t[1]||(t[1]=r=>this.changed=!0),onBlur:t[2]||(t[2]=r=>o.useValidation()),disabled:this.updating},null,42,mA),[[Ot,this.value]]),g("div",_A,Ct(this.invalidFeedback),1),n.warning?(ot(),ct("div",bA,[g("small",null,[yA,g("span",{innerHTML:n.warningText},null,8,vA)])])):oe("",!0)])}const wA=Ut(fA,[["render",xA]]),EA={name:"accountSettingsInputPassword",props:{targetData:String,warning:!1,warningText:""},setup(){const e=re(),t=`input_${qi()}`;return{store:e,uuid:t}},data(){return{value:{currentPassword:"",newPassword:"",repeatNewPassword:""},invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0}},methods:{async useValidation(){Object.values(this.value).find(e=>e.length===0)===void 0?this.value.newPassword===this.value.repeatNewPassword?await Ce("/api/updateDashboardConfigurationItem",{section:"Account",key:this.targetData,value:this.value},e=>{e.status?(this.isValid=!0,this.showInvalidFeedback=!1,this.store.Configuration.Account[this.targetData]=this.value,clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.isValid=!1,this.value={currentPassword:"",newPassword:"",repeatNewPassword:""}},5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=e.message)}):(this.showInvalidFeedback=!0,this.invalidFeedback="New passwords does not match"):(this.showInvalidFeedback=!0,this.invalidFeedback="Please fill in all required fields.")}}},SA={class:"row"},CA={class:"col-sm"},AA={class:"form-group mb-2"},TA=["for"],PA=g("strong",null,[g("small",null,"Current Password")],-1),MA=[PA],kA=["id"],OA={key:0,class:"invalid-feedback d-block"},DA={class:"col-sm"},$A={class:"form-group mb-2"},LA=["for"],IA=g("strong",null,[g("small",null,"New Password")],-1),RA=[IA],NA=["id"],FA={class:"col-sm"},BA={class:"form-group mb-2"},VA=["for"],HA=g("strong",null,[g("small",null,"Repeat New Password")],-1),jA=[HA],WA=["id"],zA=g("i",{class:"bi bi-key-fill me-2"},null,-1);function UA(e,t,n,s,i,o){return ot(),ct("div",null,[g("div",SA,[g("div",CA,[g("div",AA,[g("label",{for:"currentPassword_"+this.uuid,class:"text-muted mb-1"},MA,8,TA),kt(g("input",{type:"password",class:he(["form-control mb-2",{"is-invalid":i.showInvalidFeedback,"is-valid":i.isValid}]),"onUpdate:modelValue":t[0]||(t[0]=r=>this.value.currentPassword=r),id:"currentPassword_"+this.uuid},null,10,kA),[[Ot,this.value.currentPassword]]),i.showInvalidFeedback?(ot(),ct("div",OA,Ct(this.invalidFeedback),1)):oe("",!0)])]),g("div",DA,[g("div",$A,[g("label",{for:"newPassword_"+this.uuid,class:"text-muted mb-1"},RA,8,LA),kt(g("input",{type:"password",class:he(["form-control mb-2",{"is-invalid":i.showInvalidFeedback,"is-valid":i.isValid}]),"onUpdate:modelValue":t[1]||(t[1]=r=>this.value.newPassword=r),id:"newPassword_"+this.uuid},null,10,NA),[[Ot,this.value.newPassword]])])]),g("div",FA,[g("div",BA,[g("label",{for:"repeatNewPassword_"+this.uuid,class:"text-muted mb-1"},jA,8,VA),kt(g("input",{type:"password",class:he(["form-control mb-2",{"is-invalid":i.showInvalidFeedback,"is-valid":i.isValid}]),"onUpdate:modelValue":t[2]||(t[2]=r=>this.value.repeatNewPassword=r),id:"repeatNewPassword_"+this.uuid},null,10,WA),[[Ot,this.value.repeatNewPassword]])])])]),g("button",{class:"btn btn-success btn-sm fw-bold rounded-3",onClick:t[3]||(t[3]=r=>this.useValidation())},[zA,xt("Update Password ")])])}const KA=Ut(EA,[["render",UA]]),YA={name:"dashboardSettingsInputWireguardConfigurationPath",props:{targetData:String,title:String,warning:!1,warningText:""},setup(){const e=re(),t=`input_${qi()}`;return{store:e,uuid:t}},data(){return{value:"",invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0,changed:!1,updating:!1}},mounted(){this.value=this.store.Configuration.Server[this.targetData]},methods:{async useValidation(){this.changed&&await Ce("/api/updateDashboardConfigurationItem",{section:"Server",key:this.targetData,value:this.value},e=>{e.status?(this.isValid=!0,this.showInvalidFeedback=!1,this.store.Configuration.Account[this.targetData]=this.value,clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.isValid=!1,5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=e.message),this.changed=!1,this.updating=!1})}}},qA={class:"form-group mb-2"},GA=["for"],XA=["id","disabled"],QA={class:"invalid-feedback"},JA={key:0,class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block mt-1"},ZA=g("i",{class:"bi bi-exclamation-triangle-fill me-2"},null,-1),tT=["innerHTML"];function eT(e,t,n,s,i,o){return ot(),ct("div",qA,[g("label",{for:this.uuid,class:"text-muted mb-1"},[g("strong",null,[g("small",null,Ct(this.title),1)])],8,GA),kt(g("input",{type:"text",class:he(["form-control",{"is-invalid":this.showInvalidFeedback,"is-valid":this.isValid}]),id:this.uuid,"onUpdate:modelValue":t[0]||(t[0]=r=>this.value=r),onKeydown:t[1]||(t[1]=r=>this.changed=!0),onBlur:t[2]||(t[2]=r=>this.useValidation()),disabled:this.updating},null,42,XA),[[Ot,this.value]]),g("div",QA,Ct(this.invalidFeedback),1),n.warning?(ot(),ct("div",JA,[g("small",null,[ZA,g("span",{innerHTML:n.warningText},null,8,tT)])])):oe("",!0)])}const nT=Ut(YA,[["render",eT]]),sT={name:"dashboardTheme",setup(){return{dashboardConfigurationStore:re()}},methods:{async switchTheme(e){await Ce("/api/updateDashboardConfigurationItem",{section:"Server",key:"dashboard_theme",value:e},t=>{t.status&&(this.dashboardConfigurationStore.Configuration.Server.dashboard_theme=e)})}}},iT={class:"card mb-4 shadow rounded-3"},oT=g("p",{class:"card-header"},"Dashboard Theme",-1),rT={class:"card-body d-flex gap-2"},aT=g("i",{class:"bi bi-sun-fill"},null,-1),lT=g("i",{class:"bi bi-moon-fill"},null,-1);function cT(e,t,n,s,i,o){return ot(),ct("div",iT,[oT,g("div",rT,[g("button",{class:he(["btn btn-outline-primary flex-grow-1",{active:this.dashboardConfigurationStore.Configuration.Server.dashboard_theme==="light"}]),onClick:t[0]||(t[0]=r=>this.switchTheme("light"))},[aT,xt(" Light ")],2),g("button",{class:he(["btn btn-outline-primary flex-grow-1",{active:this.dashboardConfigurationStore.Configuration.Server.dashboard_theme==="dark"}]),onClick:t[1]||(t[1]=r=>this.switchTheme("dark"))},[lT,xt(" Dark ")],2)])])}const uT=Ut(sT,[["render",cT]]),dT={name:"dashboardSettingsInputIPAddressAndPort",props:{},setup(){const e=re(),t=`input_${qi()}`;return{store:e,uuid:t}},data(){return{app_ip:"",app_port:"",invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0,changed:!1,updating:!1}},mounted(){this.app_ip=this.store.Configuration.Server.app_ip,this.app_port=this.store.Configuration.Server.app_port},methods:{async useValidation(){this.changed&&await Ce("/api/updateDashboardConfigurationItem",{section:"Server",key:this.targetData,value:this.value},e=>{e.status?(this.isValid=!0,this.showInvalidFeedback=!1,this.store.Configuration.Account[this.targetData]=this.value,clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.isValid=!1,5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=e.message)})}}},hT={class:"invalid-feedback d-block mt-0"},fT={class:"row"},pT={class:"form-group mb-2 col-sm"},gT=["for"],mT=g("strong",null,[g("small",null,"Dashboard IP Address")],-1),_T=[mT],bT=["id"],yT=g("div",{class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block"},[g("small",null,[g("i",{class:"bi bi-exclamation-triangle-fill me-2"}),g("code",null,"0.0.0.0"),xt(" means it can be access by anyone with your server IP Address.")])],-1),vT={class:"form-group col-sm"},xT=["for"],wT=g("strong",null,[g("small",null,"Dashboard Port")],-1),ET=[wT],ST=["id"],CT=g("button",{class:"btn btn-success btn-sm fw-bold rounded-3"},[g("i",{class:"bi bi-floppy-fill me-2"}),xt("Update Dashboard Settings & Restart ")],-1);function AT(e,t,n,s,i,o){return ot(),ct("div",null,[g("div",hT,Ct(this.invalidFeedback),1),g("div",fT,[g("div",pT,[g("label",{for:"app_ip_"+this.uuid,class:"text-muted mb-1"},_T,8,gT),kt(g("input",{type:"text",class:"form-control mb-2",id:"app_ip_"+this.uuid,"onUpdate:modelValue":t[0]||(t[0]=r=>this.app_ip=r)},null,8,bT),[[Ot,this.app_ip]]),yT]),g("div",vT,[g("label",{for:"app_port_"+this.uuid,class:"text-muted mb-1"},ET,8,xT),kt(g("input",{type:"text",class:"form-control mb-2",id:"app_port_"+this.uuid,"onUpdate:modelValue":t[1]||(t[1]=r=>this.app_port=r)},null,8,ST),[[Ot,this.app_port]])])]),CT])}const TT=Ut(dT,[["render",AT]]),PT={name:"settings",methods:{ipV46RegexCheck:hA},components:{DashboardSettingsInputIPAddressAndPort:TT,DashboardTheme:uT,DashboardSettingsInputWireguardConfigurationPath:nT,AccountSettingsInputPassword:KA,AccountSettingsInputUsername:wA,PeersDefaultSettingsInput:dA},setup(){return{dashboardConfigurationStore:re()}},watch:{}},MT={class:"mt-4"},kT={class:"container"},OT=g("h3",{class:"mb-3 text-body"},"Settings",-1),DT={class:"card mb-4 shadow rounded-3"},$T=g("p",{class:"card-header"},"Peers Default Settings",-1),LT={class:"card-body"},IT={class:"card mb-4 shadow rounded-3"},RT=g("p",{class:"card-header"},"WireGuard Configurations Settings",-1),NT={class:"card-body"},FT={class:"card mb-4 shadow rounded-3"},BT=g("p",{class:"card-header"},"Account Settings",-1),VT={class:"card-body"},HT=g("hr",null,null,-1);function jT(e,t,n,s,i,o){const r=Kt("DashboardTheme"),a=Kt("PeersDefaultSettingsInput"),l=Kt("DashboardSettingsInputWireguardConfigurationPath"),c=Kt("AccountSettingsInputUsername"),u=Kt("AccountSettingsInputPassword");return ot(),ct("div",MT,[g("div",kT,[OT,mt(r),g("div",DT,[$T,g("div",LT,[mt(a,{targetData:"peer_global_dns",title:"DNS"}),mt(a,{targetData:"peer_endpoint_allowed_ip",title:"Peer Endpoint Allowed IPs"}),mt(a,{targetData:"peer_mtu",title:"MTU (Max Transmission Unit)"}),mt(a,{targetData:"peer_keep_alive",title:"Persistent Keepalive"}),mt(a,{targetData:"remote_endpoint",title:"Peer Remote Endpoint",warning:!0,warningText:"This will be change globally, and will be apply to all peer's QR code and configuration file."})])]),g("div",IT,[RT,g("div",NT,[mt(l,{targetData:"wg_conf_path",title:"Configurations Directory",warning:!0,"warning-text":"Remember to remove / at the end of your path. e.g /etc/wireguard"})])]),g("div",FT,[BT,g("div",VT,[mt(c,{targetData:"username",title:"Username"}),HT,mt(u,{targetData:"password"})])])])])}const WT=Ut(PT,[["render",jT]]);var Xi={},zT=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Rm={},Ie={};let Ou;const UT=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Ie.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};Ie.getSymbolTotalCodewords=function(t){return UT[t]};Ie.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};Ie.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Ou=t};Ie.isKanjiModeEnabled=function(){return typeof Ou<"u"};Ie.toSJIS=function(t){return Ou(t)};var Ja={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(s){return s&&typeof s.bit<"u"&&s.bit>=0&&s.bit<4},e.from=function(s,i){if(e.isValid(s))return s;try{return t(s)}catch{return i}}})(Ja);function Nm(){this.buffer=[],this.length=0}Nm.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var KT=Nm;function or(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}or.prototype.set=function(e,t,n,s){const i=e*this.size+t;this.data[i]=n,s&&(this.reservedBit[i]=!0)};or.prototype.get=function(e,t){return this.data[e*this.size+t]};or.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};or.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var YT=or,Fm={};(function(e){const t=Ie.getSymbolSize;e.getRowColCoords=function(s){if(s===1)return[];const i=Math.floor(s/7)+2,o=t(s),r=o===145?26:Math.ceil((o-13)/(2*i-2))*2,a=[o-7];for(let l=1;l=0&&i<=7},e.from=function(i){return e.isValid(i)?parseInt(i,10):void 0},e.getPenaltyN1=function(i){const o=i.size;let r=0,a=0,l=0,c=null,u=null;for(let d=0;d=5&&(r+=t.N1+(a-5)),c=p,a=1),p=i.get(f,d),p===u?l++:(l>=5&&(r+=t.N1+(l-5)),u=p,l=1)}a>=5&&(r+=t.N1+(a-5)),l>=5&&(r+=t.N1+(l-5))}return r},e.getPenaltyN2=function(i){const o=i.size;let r=0;for(let a=0;a=10&&(a===1488||a===93)&&r++,l=l<<1&2047|i.get(u,c),u>=10&&(l===1488||l===93)&&r++}return r*t.N3},e.getPenaltyN4=function(i){let o=0;const r=i.data.length;for(let l=0;l=0;){const r=o[0];for(let l=0;l0){const o=new Uint8Array(this.degree);return o.set(s,i),o}return s};var GT=Du,Wm={},ds={},$u={};$u.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var pn={};const zm="[0-9]+",XT="[A-Z $%*+\\-./:]+";let zo="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";zo=zo.replace(/u/g,"\\u");const QT="(?:(?![A-Z0-9 $%*+\\-./:]|"+zo+`)(?:.|[\r +]))+`;pn.KANJI=new RegExp(zo,"g");pn.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");pn.BYTE=new RegExp(QT,"g");pn.NUMERIC=new RegExp(zm,"g");pn.ALPHANUMERIC=new RegExp(XT,"g");const JT=new RegExp("^"+zo+"$"),ZT=new RegExp("^"+zm+"$"),tP=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");pn.testKanji=function(t){return JT.test(t)};pn.testNumeric=function(t){return ZT.test(t)};pn.testAlphanumeric=function(t){return tP.test(t)};(function(e){const t=$u,n=pn;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(o,r){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!t.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?o.ccBits[0]:r<27?o.ccBits[1]:o.ccBits[2]},e.getBestModeForData=function(o){return n.testNumeric(o)?e.NUMERIC:n.testAlphanumeric(o)?e.ALPHANUMERIC:n.testKanji(o)?e.KANJI:e.BYTE},e.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},e.isValid=function(o){return o&&o.bit&&o.ccBits};function s(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+i)}}e.from=function(o,r){if(e.isValid(o))return o;try{return s(o)}catch{return r}}})(ds);(function(e){const t=Ie,n=Za,s=Ja,i=ds,o=$u,r=7973,a=t.getBCHDigit(r);function l(f,p,m){for(let _=1;_<=40;_++)if(p<=e.getCapacity(_,m,f))return _}function c(f,p){return i.getCharCountIndicator(f,p)+4}function u(f,p){let m=0;return f.forEach(function(_){const y=c(_.mode,p);m+=y+_.getBitsLength()}),m}function d(f,p){for(let m=1;m<=40;m++)if(u(f,m)<=e.getCapacity(m,p,i.MIXED))return m}e.from=function(p,m){return o.isValid(p)?parseInt(p,10):m},e.getCapacity=function(p,m,_){if(!o.isValid(p))throw new Error("Invalid QR Code version");typeof _>"u"&&(_=i.BYTE);const y=t.getSymbolTotalCodewords(p),x=n.getTotalCodewordsCount(p,m),S=(y-x)*8;if(_===i.MIXED)return S;const P=S-c(_,p);switch(_){case i.NUMERIC:return Math.floor(P/10*3);case i.ALPHANUMERIC:return Math.floor(P/11*2);case i.KANJI:return Math.floor(P/13);case i.BYTE:default:return Math.floor(P/8)}},e.getBestVersionForData=function(p,m){let _;const y=s.from(m,s.M);if(Array.isArray(p)){if(p.length>1)return d(p,y);if(p.length===0)return 1;_=p[0]}else _=p;return l(_.mode,_.getLength(),y)},e.getEncodedBits=function(p){if(!o.isValid(p)||p<7)throw new Error("Invalid QR Code version");let m=p<<12;for(;t.getBCHDigit(m)-a>=0;)m^=r<=0;)i^=Km<0&&(s=this.data.substr(n),i=parseInt(s,10),t.put(i,o*3+1))};var sP=Ni;const iP=ds,$l=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Fi(e){this.mode=iP.ALPHANUMERIC,this.data=e}Fi.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};Fi.prototype.getLength=function(){return this.data.length};Fi.prototype.getBitsLength=function(){return Fi.getBitsLength(this.data.length)};Fi.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let s=$l.indexOf(this.data[n])*45;s+=$l.indexOf(this.data[n+1]),t.put(s,11)}this.data.length%2&&t.put($l.indexOf(this.data[n]),6)};var oP=Fi,rP=function(t){for(var n=[],s=t.length,i=0;i=55296&&o<=56319&&s>i+1){var r=t.charCodeAt(i+1);r>=56320&&r<=57343&&(o=(o-55296)*1024+r-56320+65536,i+=1)}if(o<128){n.push(o);continue}if(o<2048){n.push(o>>6|192),n.push(o&63|128);continue}if(o<55296||o>=57344&&o<65536){n.push(o>>12|224),n.push(o>>6&63|128),n.push(o&63|128);continue}if(o>=65536&&o<=1114111){n.push(o>>18|240),n.push(o>>12&63|128),n.push(o>>6&63|128),n.push(o&63|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer};const aP=rP,lP=ds;function Bi(e){this.mode=lP.BYTE,typeof e=="string"&&(e=aP(e)),this.data=new Uint8Array(e)}Bi.getBitsLength=function(t){return t*8};Bi.prototype.getLength=function(){return this.data.length};Bi.prototype.getBitsLength=function(){return Bi.getBitsLength(this.data.length)};Bi.prototype.write=function(e){for(let t=0,n=this.data.length;t=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+` +Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var hP=Vi,qm={exports:{}};(function(e){var t={single_source_shortest_paths:function(n,s,i){var o={},r={};r[s]=0;var a=t.PriorityQueue.make();a.push(s,0);for(var l,c,u,d,f,p,m,_,y;!a.empty();){l=a.pop(),c=l.value,d=l.cost,f=n[c]||{};for(u in f)f.hasOwnProperty(u)&&(p=f[u],m=d+p,_=r[u],y=typeof r[u]>"u",(y||_>m)&&(r[u]=m,a.push(u,m),o[u]=c))}if(typeof i<"u"&&typeof r[i]>"u"){var x=["Could not find a path from ",s," to ",i,"."].join("");throw new Error(x)}return o},extract_shortest_path_from_predecessor_list:function(n,s){for(var i=[],o=s;o;)i.push(o),n[o],o=n[o];return i.reverse(),i},find_path:function(n,s,i){var o=t.single_source_shortest_paths(n,s,i);return t.extract_shortest_path_from_predecessor_list(o,i)},PriorityQueue:{make:function(n){var s=t.PriorityQueue,i={},o;n=n||{};for(o in s)s.hasOwnProperty(o)&&(i[o]=s[o]);return i.queue=[],i.sorter=n.sorter||s.default_sorter,i},default_sorter:function(n,s){return n.cost-s.cost},push:function(n,s){var i={value:n,cost:s};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(qm);var fP=qm.exports;(function(e){const t=ds,n=sP,s=oP,i=cP,o=hP,r=pn,a=Ie,l=fP;function c(x){return unescape(encodeURIComponent(x)).length}function u(x,S,P){const C=[];let v;for(;(v=x.exec(P))!==null;)C.push({data:v[0],index:v.index,mode:S,length:v[0].length});return C}function d(x){const S=u(r.NUMERIC,t.NUMERIC,x),P=u(r.ALPHANUMERIC,t.ALPHANUMERIC,x);let C,v;return a.isKanjiModeEnabled()?(C=u(r.BYTE,t.BYTE,x),v=u(r.KANJI,t.KANJI,x)):(C=u(r.BYTE_KANJI,t.BYTE,x),v=[]),S.concat(P,C,v).sort(function(A,w){return A.index-w.index}).map(function(A){return{data:A.data,mode:A.mode,length:A.length}})}function f(x,S){switch(S){case t.NUMERIC:return n.getBitsLength(x);case t.ALPHANUMERIC:return s.getBitsLength(x);case t.KANJI:return o.getBitsLength(x);case t.BYTE:return i.getBitsLength(x)}}function p(x){return x.reduce(function(S,P){const C=S.length-1>=0?S[S.length-1]:null;return C&&C.mode===P.mode?(S[S.length-1].data+=P.data,S):(S.push(P),S)},[])}function m(x){const S=[];for(let P=0;P=0&&a<=6&&(l===0||l===6)||l>=0&&l<=6&&(a===0||a===6)||a>=2&&a<=4&&l>=2&&l<=4?e.set(o+a,r+l,!0,!0):e.set(o+a,r+l,!1,!0))}}function wP(e){const t=e.size;for(let n=8;n>a&1)===1,e.set(i,o,r,!0),e.set(o,i,r,!0)}function Rl(e,t,n){const s=e.size,i=yP.getEncodedBits(t,n);let o,r;for(o=0;o<15;o++)r=(i>>o&1)===1,o<6?e.set(o,8,r,!0):o<8?e.set(o+1,8,r,!0):e.set(s-15+o,8,r,!0),o<8?e.set(8,s-o-1,r,!0):o<9?e.set(8,15-o-1+1,r,!0):e.set(8,15-o-1,r,!0);e.set(s-8,8,1,!0)}function CP(e,t){const n=e.size;let s=-1,i=n-1,o=7,r=0;for(let a=n-1;a>0;a-=2)for(a===6&&a--;;){for(let l=0;l<2;l++)if(!e.isReserved(i,a-l)){let c=!1;r>>o&1)===1),e.set(i,a-l,c),o--,o===-1&&(r++,o=7)}if(i+=s,i<0||n<=i){i-=s,s=-s;break}}}function AP(e,t,n){const s=new pP;n.forEach(function(l){s.put(l.mode.bit,4),s.put(l.getLength(),vP.getCharCountIndicator(l.mode,e)),l.write(s)});const i=el.getSymbolTotalCodewords(e),o=wc.getTotalCodewordsCount(e,t),r=(i-o)*8;for(s.getLengthInBits()+4<=r&&s.put(0,4);s.getLengthInBits()%8!==0;)s.putBit(0);const a=(r-s.getLengthInBits())/8;for(let l=0;l=7&&_M(l,t),bM(l,r),isNaN(s)&&(s=bc.getBestMask(l,Dl.bind(null,l,n))),bc.applyMask(s,l),Dl(l,n,s),{modules:l,version:t,errorCorrectionLevel:n,maskPattern:s,segments:i}}$m.create=function(t,n){if(typeof t>"u"||t==="")throw new Error("No input text");let s=kl.M,i,o;return typeof n<"u"&&(s=kl.from(n.errorCorrectionLevel,kl.M),i=ca.from(n.version),o=bc.from(n.maskPattern),n.toSJISFunc&&Qa.setToSJISFunction(n.toSJISFunc)),xM(t,i,s,o)};var Km={},Pu={};(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let s=n.slice().replace("#","").split("");if(s.length<3||s.length===5||s.length>8)throw new Error("Invalid hex color: "+n);(s.length===3||s.length===4)&&(s=Array.prototype.concat.apply([],s.map(function(o){return[o,o]}))),s.length===6&&s.push("F","F");const i=parseInt(s.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+s.slice(0,6).join("")}}e.getOptions=function(s){s||(s={}),s.color||(s.color={});const i=typeof s.margin>"u"||s.margin===null||s.margin<0?4:s.margin,o=s.width&&s.width>=21?s.width:void 0,r=s.scale||4;return{width:o,scale:o?4:r,margin:i,color:{dark:t(s.color.dark||"#000000ff"),light:t(s.color.light||"#ffffffff")},type:s.type,rendererOpts:s.rendererOpts||{}}},e.getScale=function(s,i){return i.width&&i.width>=s+i.margin*2?i.width/(s+i.margin*2):i.scale},e.getImageWidth=function(s,i){const o=e.getScale(s,i);return Math.floor((s+i.margin*2)*o)},e.qrToImageData=function(s,i,o){const r=i.modules.size,a=i.modules.data,l=e.getScale(r,o),c=Math.floor((r+o.margin*2)*l),u=o.margin*l,d=[o.color.light,o.color.dark];for(let f=0;f=u&&p>=u&&f"u"&&(!r||!r.getContext)&&(l=r,r=void 0),r||(c=s()),l=t.getOptions(l);const u=t.getImageWidth(o.modules.size,l),d=c.getContext("2d"),f=d.createImageData(u,u);return t.qrToImageData(f.data,o,l),n(d,c,u),d.putImageData(f,0,0),c},e.renderToDataURL=function(o,r,a){let l=a;typeof l>"u"&&(!r||!r.getContext)&&(l=r,r=void 0),l||(l={});const c=e.render(o,r,l),u=l.type||"image/png",d=l.rendererOpts||{};return c.toDataURL(u,d.quality)}})(Km);var Ym={};const wM=Pu;function tf(e,t){const n=e.a/255,s=t+'="'+e.hex+'"';return n<1?s+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':s}function $l(e,t,n){let s=e+t;return typeof n<"u"&&(s+=" "+n),s}function EM(e,t,n){let s="",i=0,o=!1,r=0;for(let a=0;a0&&l>0&&e[a-1]||(s+=o?$l("M",l+n,.5+c+n):$l("m",i,0),i=0,o=!1),l+1':"",c="',u='viewBox="0 0 '+a+" "+a+'"',f=''+l+c+` -`;return typeof s=="function"&&s(null,f),f};const SM=NT,vc=$m,Gm=Km,CM=Ym;function ku(e,t,n,s,i){const o=[].slice.call(arguments,1),r=o.length,a=typeof o[r-1]=="function";if(!a&&!SM())throw new Error("Callback required as last argument");if(a){if(r<2)throw new Error("Too few arguments provided");r===2?(i=n,n=t,t=s=void 0):r===3&&(t.getContext&&typeof i>"u"?(i=s,s=void 0):(i=s,s=n,n=t,t=void 0))}else{if(r<1)throw new Error("Too few arguments provided");return r===1?(n=t,t=s=void 0):r===2&&!t.getContext&&(s=n,n=t,t=void 0),new Promise(function(l,c){try{const u=vc.create(n,s);l(e(u,t,s))}catch(u){c(u)}})}try{const l=vc.create(n,s);i(null,e(l,t,s))}catch(l){i(l)}}Qo.create=vc.create;Qo.toCanvas=ku.bind(null,Gm.render);Qo.toDataURL=ku.bind(null,Gm.renderToDataURL);Qo.toString=ku.bind(null,function(e,t,n){return CM.render(e,n)});const AM={name:"totp",async setup(){let e="";return await dn("/api/Welcome_GetTotpLink",{},t=>{t.status&&(e=t.data)}),{l:e}},mounted(){this.l&&Qo.toCanvas(document.getElementById("qrcode"),this.l,function(e){})},data(){return{totp:"",totpInvalidMessage:"",verified:!1}},methods:{validateTotp(){}},watch:{totp(e){const t=document.querySelector("#totp");t.classList.remove("is-invalid","is-valid"),e.length===6&&(console.log(e),/[0-9]{6}/.test(e)?De("/api/Welcome_VerifyTotpLink",{totp:e},n=>{n.status?(this.verified=!0,t.classList.add("is-valid"),this.$emit("verified")):(t.classList.add("is-invalid"),this.totpInvalidMessage="TOTP does not match.")}):(t.classList.add("is-invalid"),this.totpInvalidMessage="TOTP can only contain numbers"))}}},TM={class:"mb-3"},MM=b("p",{class:"mb-2"},[b("small",{class:"text-muted"},"1. Please scan the following QR Code to generate TOTP")],-1),PM=b("canvas",{id:"qrcode",class:"rounded-3 mb-2"},null,-1),kM={class:"p-3 bg-body-secondary rounded-3 border mb-3"},OM=b("p",{class:"text-muted mb-0"},[b("small",null,"Or you can click the link below:")],-1),DM=["href"],$M={style:{"line-break":"anywhere"}},LM=b("label",{for:"totp",class:"mb-2"},[b("small",{class:"text-muted"},"2. Enter the TOTP generated by your authenticator to verify")],-1),IM={class:"form-group"},RM=["disabled"],NM={class:"invalid-feedback"},FM=b("div",{class:"valid-feedback"}," TOTP verified! ",-1);function BM(e,t,n,s,i,o){return rt(),ut("div",TM,[MM,PM,b("div",kM,[OM,b("a",{href:this.l},[b("code",$M,Ct(this.l),1)],8,DM)]),LM,b("div",IM,[Rt(b("input",{class:"form-control text-center totp",id:"totp",maxlength:"6",type:"text",inputmode:"numeric",autocomplete:"one-time-code","onUpdate:modelValue":t[0]||(t[0]=r=>this.totp=r),disabled:this.verified},null,8,RM),[[Bt,this.totp]]),b("div",NM,Ct(this.totpInvalidMessage),1),FM])])}const VM=qt(AM,[["render",BM]]),HM={name:"setup",components:{Totp:VM},setup(){return{store:de()}},data(){return{setup:{username:"",newPassword:"",repeatNewPassword:"",enable_totp:!1,verified_totp:!1},loading:!1,errorMessage:"",done:!1}},computed:{goodToSubmit(){return this.setup.username&&this.setup.newPassword.length>=8&&this.setup.repeatNewPassword.length>=8&&this.setup.newPassword===this.setup.repeatNewPassword&&(this.setup.enable_totp&&this.setup.verified_totp||!this.setup.enable_totp)}},methods:{submit(){this.loading=!0,De("/api/Welcome_Finish",this.setup,e=>{e.status?(this.done=!0,setTimeout(()=>{this.$router.push("/")},500)):(document.querySelectorAll("#createAccount input").forEach(t=>t.classList.add("is-invalid")),this.errorMessage=e.message,document.querySelector(".login-container-fluid").scrollTo({top:0,left:0,behavior:"smooth"})),this.loading=!1})}}},jM=["data-bs-theme"],WM={class:"mx-auto text-body",style:{width:"500px"}},zM=b("span",{class:"dashboardLogo display-4"},"Nice to meet you!",-1),UM=b("p",{class:"mb-5"},"Please fill in the following fields to finish setup 😊",-1),KM=b("h3",null,"Create an account",-1),YM={key:0,class:"alert alert-danger"},GM={class:"d-flex flex-column gap-3"},qM={id:"createAccount"},XM={class:"form-group text-body"},QM=b("label",{for:"username",class:"mb-1 text-muted"},[b("small",null,"Pick an username you like")],-1),JM={class:"form-group text-body"},ZM=b("label",{for:"password",class:"mb-1 text-muted"},[b("small",null,"Create a password (at least 8 characters)")],-1),tP={class:"form-group text-body"},eP=b("label",{for:"confirmPassword",class:"mb-1 text-muted"},[b("small",null,"Confirm password")],-1),nP=b("hr",null,null,-1),sP={class:"form-check form-switch"},iP=b("label",{class:"form-check-label",for:"enable_totp"},[Tt("Enable 2 Factor Authentication? "),b("strong",null,"Strongly recommended")],-1),oP=["disabled"],rP={key:0,class:"d-flex align-items-center w-100"},aP=b("i",{class:"bi bi-chevron-right ms-auto"},null,-1),lP={key:1,class:"d-flex align-items-center w-100"},cP={key:2,class:"d-flex align-items-center w-100"},uP=b("span",{class:"spinner-border ms-auto spinner-border-sm",role:"status"},[b("span",{class:"visually-hidden"},"Loading...")],-1);function dP(e,t,n,s,i,o){const r=Ut("Totp");return rt(),ut("div",{class:"container-fluid login-container-fluid d-flex main pt-5 overflow-scroll","data-bs-theme":this.store.Configuration.Server.dashboard_theme},[b("div",WM,[zM,UM,b("div",null,[KM,this.errorMessage?(rt(),ut("div",YM,Ct(this.errorMessage),1)):me("",!0),b("div",GM,[b("div",qM,[b("div",XM,[QM,Rt(b("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=a=>this.setup.username=a),class:"form-control",id:"username",name:"username",placeholder:"Maybe something like 'wiredragon'?",required:""},null,512),[[Bt,this.setup.username]])]),b("div",JM,[ZM,Rt(b("input",{type:"password","onUpdate:modelValue":t[1]||(t[1]=a=>this.setup.newPassword=a),class:"form-control",id:"password",name:"password",placeholder:"Make sure is strong enough",required:""},null,512),[[Bt,this.setup.newPassword]])]),b("div",tP,[eP,Rt(b("input",{type:"password","onUpdate:modelValue":t[2]||(t[2]=a=>this.setup.repeatNewPassword=a),class:"form-control",id:"confirmPassword",name:"confirmPassword",placeholder:"and you can remember it :)",required:""},null,512),[[Bt,this.setup.repeatNewPassword]])])]),nP,b("div",sP,[Rt(b("input",{class:"form-check-input",type:"checkbox",role:"switch",id:"enable_totp","onUpdate:modelValue":t[3]||(t[3]=a=>this.setup.enable_totp=a)},null,512),[[gm,this.setup.enable_totp]]),iP]),(rt(),Ue(pu,null,{default:Kt(()=>[mt(Us,{name:"fade"},{default:Kt(()=>[this.setup.enable_totp?(rt(),Ue(r,{key:0,onVerified:t[4]||(t[4]=a=>this.setup.verified_totp=!0)})):me("",!0)]),_:1})]),_:1})),b("button",{class:"btn btn-dark btn-lg mb-5 d-flex btn-brand shadow align-items-center",ref:"signInBtn",disabled:!this.goodToSubmit||this.loading||this.done,onClick:t[5]||(t[5]=a=>this.submit())},[!this.loading&&!this.done?(rt(),ut("span",rP,[Tt(" Finish"),aP])):this.done?(rt(),ut("span",lP," Welcome to WGDashboard!")):(rt(),ut("span",cP,[Tt(" Saving..."),uP]))],8,oP)])])])],8,jM)}const hP=qt(HM,[["render",dP]]);function Ou(e){return e.includes(":")?6:e.includes(".")?4:0}function fP(e){const t=Ou(e);if(!t)throw new Error(`Invalid IP address: ${e}`);let n=0n,s=0n;const i=Object.create(null);if(t===4)for(const o of e.split(".").map(BigInt).reverse())n+=o*2n**s,s+=8n;else{if(e.includes(".")&&(i.ipv4mapped=!0,e=e.split(":").map(a=>{if(a.includes(".")){const[l,c,u,d]=a.split(".").map(f=>Number(f).toString(16).padStart(2,"0"));return`${l}${c}:${u}${d}`}else return a}).join(":")),e.includes("%")){let a;[,e,a]=/(.+)%(.+)/.exec(e),i.scopeid=a}const o=e.split(":"),r=o.indexOf("");if(r!==-1)for(;o.length<8;)o.splice(r,0,"");for(const a of o.map(l=>BigInt(parseInt(l||0,16))).reverse())n+=a*2n**s,s+=16n}return i.number=n,i.version=t,i}const ef={4:32,6:128},pP=e=>e.includes("/")?Ou(e):0;function gP(e){const t=pP(e),n=Object.create(null);if(n.single=!1,t)n.cidr=e,n.version=t;else{const d=Ou(e);if(d)n.cidr=`${e}/${ef[d]}`,n.version=d,n.single=!0;else throw new Error(`Network is not a CIDR or IP: ${e}`)}const[s,i]=n.cidr.split("/");n.prefix=i;const{number:o,version:r}=fP(s),a=ef[r],l=o.toString(2).padStart(a,"0"),c=Number(a-i),u=l.substring(0,a-c);return n.start=BigInt(`0b${u}${"0".repeat(c)}`),n.end=BigInt(`0b${u}${"1".repeat(c)}`),n}/*! SPDX-License-Identifier: GPL-2.0 +`);const r=AP(t,n,i),a=el.getSymbolSize(t),l=new gP(a);return xP(l,t),wP(l),EP(l,t),Rl(l,n,0),t>=7&&SP(l,t),CP(l,r),isNaN(s)&&(s=xc.getBestMask(l,Rl.bind(null,l,n))),xc.applyMask(s,l),Rl(l,n,s),{modules:l,version:t,errorCorrectionLevel:n,maskPattern:s,segments:i}}Rm.create=function(t,n){if(typeof t>"u"||t==="")throw new Error("No input text");let s=Ll.M,i,o;return typeof n<"u"&&(s=Ll.from(n.errorCorrectionLevel,Ll.M),i=_a.from(n.version),o=xc.from(n.maskPattern),n.toSJISFunc&&el.setToSJISFunction(n.toSJISFunc)),PP(t,i,s,o)};var Gm={},Lu={};(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let s=n.slice().replace("#","").split("");if(s.length<3||s.length===5||s.length>8)throw new Error("Invalid hex color: "+n);(s.length===3||s.length===4)&&(s=Array.prototype.concat.apply([],s.map(function(o){return[o,o]}))),s.length===6&&s.push("F","F");const i=parseInt(s.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+s.slice(0,6).join("")}}e.getOptions=function(s){s||(s={}),s.color||(s.color={});const i=typeof s.margin>"u"||s.margin===null||s.margin<0?4:s.margin,o=s.width&&s.width>=21?s.width:void 0,r=s.scale||4;return{width:o,scale:o?4:r,margin:i,color:{dark:t(s.color.dark||"#000000ff"),light:t(s.color.light||"#ffffffff")},type:s.type,rendererOpts:s.rendererOpts||{}}},e.getScale=function(s,i){return i.width&&i.width>=s+i.margin*2?i.width/(s+i.margin*2):i.scale},e.getImageWidth=function(s,i){const o=e.getScale(s,i);return Math.floor((s+i.margin*2)*o)},e.qrToImageData=function(s,i,o){const r=i.modules.size,a=i.modules.data,l=e.getScale(r,o),c=Math.floor((r+o.margin*2)*l),u=o.margin*l,d=[o.color.light,o.color.dark];for(let f=0;f=u&&p>=u&&f"u"&&(!r||!r.getContext)&&(l=r,r=void 0),r||(c=s()),l=t.getOptions(l);const u=t.getImageWidth(o.modules.size,l),d=c.getContext("2d"),f=d.createImageData(u,u);return t.qrToImageData(f.data,o,l),n(d,c,u),d.putImageData(f,0,0),c},e.renderToDataURL=function(o,r,a){let l=a;typeof l>"u"&&(!r||!r.getContext)&&(l=r,r=void 0),l||(l={});const c=e.render(o,r,l),u=l.type||"image/png",d=l.rendererOpts||{};return c.toDataURL(u,d.quality)}})(Gm);var Xm={};const MP=Lu;function rf(e,t){const n=e.a/255,s=t+'="'+e.hex+'"';return n<1?s+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':s}function Nl(e,t,n){let s=e+t;return typeof n<"u"&&(s+=" "+n),s}function kP(e,t,n){let s="",i=0,o=!1,r=0;for(let a=0;a0&&l>0&&e[a-1]||(s+=o?Nl("M",l+n,.5+c+n):Nl("m",i,0),i=0,o=!1),l+1':"",c="',u='viewBox="0 0 '+a+" "+a+'"',f=''+l+c+` +`;return typeof s=="function"&&s(null,f),f};const OP=zT,Ec=Rm,Qm=Gm,DP=Xm;function Iu(e,t,n,s,i){const o=[].slice.call(arguments,1),r=o.length,a=typeof o[r-1]=="function";if(!a&&!OP())throw new Error("Callback required as last argument");if(a){if(r<2)throw new Error("Too few arguments provided");r===2?(i=n,n=t,t=s=void 0):r===3&&(t.getContext&&typeof i>"u"?(i=s,s=void 0):(i=s,s=n,n=t,t=void 0))}else{if(r<1)throw new Error("Too few arguments provided");return r===1?(n=t,t=s=void 0):r===2&&!t.getContext&&(s=n,n=t,t=void 0),new Promise(function(l,c){try{const u=Ec.create(n,s);l(e(u,t,s))}catch(u){c(u)}})}try{const l=Ec.create(n,s);i(null,e(l,t,s))}catch(l){i(l)}}Xi.create=Ec.create;Xi.toCanvas=Iu.bind(null,Qm.render);Xi.toDataURL=Iu.bind(null,Qm.renderToDataURL);Xi.toString=Iu.bind(null,function(e,t,n){return DP.render(e,n)});const $P={name:"totp",async setup(){let e="";return await qe("/api/Welcome_GetTotpLink",{},t=>{t.status&&(e=t.data)}),{l:e}},mounted(){this.l&&Xi.toCanvas(document.getElementById("qrcode"),this.l,function(e){})},data(){return{totp:"",totpInvalidMessage:"",verified:!1}},methods:{validateTotp(){}},watch:{totp(e){const t=document.querySelector("#totp");t.classList.remove("is-invalid","is-valid"),e.length===6&&(console.log(e),/[0-9]{6}/.test(e)?Ce("/api/Welcome_VerifyTotpLink",{totp:e},n=>{n.status?(this.verified=!0,t.classList.add("is-valid"),this.$emit("verified")):(t.classList.add("is-invalid"),this.totpInvalidMessage="TOTP does not match.")}):(t.classList.add("is-invalid"),this.totpInvalidMessage="TOTP can only contain numbers"))}}},LP={class:"mb-3"},IP=g("p",{class:"mb-2"},[g("small",{class:"text-muted"},"1. Please scan the following QR Code to generate TOTP")],-1),RP=g("canvas",{id:"qrcode",class:"rounded-3 mb-2"},null,-1),NP={class:"p-3 bg-body-secondary rounded-3 border mb-3"},FP=g("p",{class:"text-muted mb-0"},[g("small",null,"Or you can click the link below:")],-1),BP=["href"],VP={style:{"line-break":"anywhere"}},HP=g("label",{for:"totp",class:"mb-2"},[g("small",{class:"text-muted"},"2. Enter the TOTP generated by your authenticator to verify")],-1),jP={class:"form-group"},WP=["disabled"],zP={class:"invalid-feedback"},UP=g("div",{class:"valid-feedback"}," TOTP verified! ",-1);function KP(e,t,n,s,i,o){return ot(),ct("div",LP,[IP,RP,g("div",NP,[FP,g("a",{href:this.l},[g("code",VP,Ct(this.l),1)],8,BP)]),HP,g("div",jP,[kt(g("input",{class:"form-control text-center totp",id:"totp",maxlength:"6",type:"text",inputmode:"numeric",autocomplete:"one-time-code","onUpdate:modelValue":t[0]||(t[0]=r=>this.totp=r),disabled:this.verified},null,8,WP),[[Ot,this.totp]]),g("div",zP,Ct(this.totpInvalidMessage),1),UP])])}const YP=Ut($P,[["render",KP]]),qP={name:"setup",components:{Totp:YP},setup(){return{store:re()}},data(){return{setup:{username:"",newPassword:"",repeatNewPassword:"",enable_totp:!1,verified_totp:!1},loading:!1,errorMessage:"",done:!1}},computed:{goodToSubmit(){return this.setup.username&&this.setup.newPassword.length>=8&&this.setup.repeatNewPassword.length>=8&&this.setup.newPassword===this.setup.repeatNewPassword&&(this.setup.enable_totp&&this.setup.verified_totp||!this.setup.enable_totp)}},methods:{submit(){this.loading=!0,Ce("/api/Welcome_Finish",this.setup,e=>{e.status?(this.done=!0,setTimeout(()=>{this.$router.push("/")},500)):(document.querySelectorAll("#createAccount input").forEach(t=>t.classList.add("is-invalid")),this.errorMessage=e.message,document.querySelector(".login-container-fluid").scrollTo({top:0,left:0,behavior:"smooth"})),this.loading=!1})}}},GP=["data-bs-theme"],XP={class:"mx-auto text-body",style:{width:"500px"}},QP=g("span",{class:"dashboardLogo display-4"},"Nice to meet you!",-1),JP=g("p",{class:"mb-5"},"Please fill in the following fields to finish setup 😊",-1),ZP=g("h3",null,"Create an account",-1),tM={key:0,class:"alert alert-danger"},eM={class:"d-flex flex-column gap-3"},nM={id:"createAccount"},sM={class:"form-group text-body"},iM=g("label",{for:"username",class:"mb-1 text-muted"},[g("small",null,"Pick an username you like")],-1),oM={class:"form-group text-body"},rM=g("label",{for:"password",class:"mb-1 text-muted"},[g("small",null,"Create a password (at least 8 characters)")],-1),aM={class:"form-group text-body"},lM=g("label",{for:"confirmPassword",class:"mb-1 text-muted"},[g("small",null,"Confirm password")],-1),cM=g("hr",null,null,-1),uM={class:"form-check form-switch"},dM=g("label",{class:"form-check-label",for:"enable_totp"},[xt("Enable 2 Factor Authentication? "),g("strong",null,"Strongly recommended")],-1),hM=["disabled"],fM={key:0,class:"d-flex align-items-center w-100"},pM=g("i",{class:"bi bi-chevron-right ms-auto"},null,-1),gM={key:1,class:"d-flex align-items-center w-100"},mM={key:2,class:"d-flex align-items-center w-100"},_M=g("span",{class:"spinner-border ms-auto spinner-border-sm",role:"status"},[g("span",{class:"visually-hidden"},"Loading...")],-1);function bM(e,t,n,s,i,o){const r=Kt("Totp");return ot(),ct("div",{class:"container-fluid login-container-fluid d-flex main pt-5 overflow-scroll","data-bs-theme":this.store.Configuration.Server.dashboard_theme},[g("div",XP,[QP,JP,g("div",null,[ZP,this.errorMessage?(ot(),ct("div",tM,Ct(this.errorMessage),1)):oe("",!0),g("div",eM,[g("div",nM,[g("div",sM,[iM,kt(g("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=a=>this.setup.username=a),class:"form-control",id:"username",name:"username",placeholder:"Maybe something like 'wiredragon'?",required:""},null,512),[[Ot,this.setup.username]])]),g("div",oM,[rM,kt(g("input",{type:"password","onUpdate:modelValue":t[1]||(t[1]=a=>this.setup.newPassword=a),class:"form-control",id:"password",name:"password",placeholder:"Make sure is strong enough",required:""},null,512),[[Ot,this.setup.newPassword]])]),g("div",aM,[lM,kt(g("input",{type:"password","onUpdate:modelValue":t[2]||(t[2]=a=>this.setup.repeatNewPassword=a),class:"form-control",id:"confirmPassword",name:"confirmPassword",placeholder:"and you can remember it :)",required:""},null,512),[[Ot,this.setup.repeatNewPassword]])])]),cM,g("div",uM,[kt(g("input",{class:"form-check-input",type:"checkbox",role:"switch",id:"enable_totp","onUpdate:modelValue":t[3]||(t[3]=a=>this.setup.enable_totp=a)},null,512),[[Tu,this.setup.enable_totp]]),dM]),(ot(),Ee(bu,null,{default:Yt(()=>[mt(Dn,{name:"fade"},{default:Yt(()=>[this.setup.enable_totp?(ot(),Ee(r,{key:0,onVerified:t[4]||(t[4]=a=>this.setup.verified_totp=!0)})):oe("",!0)]),_:1})]),_:1})),g("button",{class:"btn btn-dark btn-lg mb-5 d-flex btn-brand shadow align-items-center",ref:"signInBtn",disabled:!this.goodToSubmit||this.loading||this.done,onClick:t[5]||(t[5]=a=>this.submit())},[!this.loading&&!this.done?(ot(),ct("span",fM,[xt(" Finish"),pM])):this.done?(ot(),ct("span",gM," Welcome to WGDashboard!")):(ot(),ct("span",mM,[xt(" Saving..."),_M]))],8,hM)])])])],8,GP)}const yM=Ut(qP,[["render",bM]]);function Ru(e){return e.includes(":")?6:e.includes(".")?4:0}function vM(e){const t=Ru(e);if(!t)throw new Error(`Invalid IP address: ${e}`);let n=0n,s=0n;const i=Object.create(null);if(t===4)for(const o of e.split(".").map(BigInt).reverse())n+=o*2n**s,s+=8n;else{if(e.includes(".")&&(i.ipv4mapped=!0,e=e.split(":").map(a=>{if(a.includes(".")){const[l,c,u,d]=a.split(".").map(f=>Number(f).toString(16).padStart(2,"0"));return`${l}${c}:${u}${d}`}else return a}).join(":")),e.includes("%")){let a;[,e,a]=/(.+)%(.+)/.exec(e),i.scopeid=a}const o=e.split(":"),r=o.indexOf("");if(r!==-1)for(;o.length<8;)o.splice(r,0,"");for(const a of o.map(l=>BigInt(parseInt(l||0,16))).reverse())n+=a*2n**s,s+=16n}return i.number=n,i.version=t,i}const af={4:32,6:128},xM=e=>e.includes("/")?Ru(e):0;function wM(e){const t=xM(e),n=Object.create(null);if(n.single=!1,t)n.cidr=e,n.version=t;else{const d=Ru(e);if(d)n.cidr=`${e}/${af[d]}`,n.version=d,n.single=!0;else throw new Error(`Network is not a CIDR or IP: ${e}`)}const[s,i]=n.cidr.split("/");n.prefix=i;const{number:o,version:r}=vM(s),a=af[r],l=o.toString(2).padStart(a,"0"),c=Number(a-i),u=l.substring(0,a-c);return n.start=BigInt(`0b${u}${"0".repeat(c)}`),n.end=BigInt(`0b${u}${"1".repeat(c)}`),n}/*! SPDX-License-Identifier: GPL-2.0 * * Copyright (C) 2015-2020 Jason A. Donenfeld . All Rights Reserved. - */(function(){function e(v){var E=new Float64Array(16);if(v)for(var A=0;A>16&1),w[$-1]&=65535;w[15]=k[15]-32767-(w[14]>>16&1),A=w[15]>>16&1,w[14]&=65535,s(k,w,1-A)}for(var $=0;$<16;++$)v[2*$]=k[$]&255,v[2*$+1]=k[$]>>8}function n(v){for(var E=0;E<16;++E)v[(E+1)%16]+=(E<15?1:38)*Math.floor(v[E]/65536),v[E]&=65535}function s(v,E,A){for(var w,k=~(A-1),$=0;$<16;++$)w=k&(v[$]^E[$]),v[$]^=w,E[$]^=w}function i(v,E,A){for(var w=0;w<16;++w)v[w]=E[w]+A[w]|0}function o(v,E,A){for(var w=0;w<16;++w)v[w]=E[w]-A[w]|0}function r(v,E,A){for(var w=new Float64Array(31),k=0;k<16;++k)for(var $=0;$<16;++$)w[k+$]+=E[k]*A[$];for(var k=0;k<15;++k)w[k]+=38*w[k+16];for(var k=0;k<16;++k)v[k]=w[k];n(v),n(v)}function a(v,E){for(var A=e(),w=0;w<16;++w)A[w]=E[w];for(var w=253;w>=0;--w)r(A,A,A),w!==2&&w!==4&&r(A,A,E);for(var w=0;w<16;++w)v[w]=A[w]}function l(v){v[31]=v[31]&127|64,v[0]&=248}function c(v){for(var E,A=new Uint8Array(32),w=e([1]),k=e([9]),$=e(),L=e([1]),N=e(),X=e(),Y=e([56129,1]),H=e([9]),R=0;R<32;++R)A[R]=v[R];l(A);for(var R=254;R>=0;--R)E=A[R>>>3]>>>(R&7)&1,s(w,k,E),s($,L,E),i(N,w,$),o(w,w,$),i($,k,L),o(k,k,L),r(L,N,N),r(X,w,w),r(w,$,w),r($,k,N),i(N,w,$),o(w,w,$),r(k,w,w),o($,L,X),r(w,$,Y),i(w,w,L),r($,$,w),r(w,L,X),r(L,k,H),r(k,N,N),s(w,k,E),s($,L,E);return a($,$),r(w,w,$),t(A,w),A}function u(){var v=new Uint8Array(32);return window.crypto.getRandomValues(v),v}function d(){var v=u();return l(v),v}function f(v,E){for(var A=Uint8Array.from([E[0]>>2&63,(E[0]<<4|E[1]>>4)&63,(E[1]<<2|E[2]>>6)&63,E[2]&63]),w=0;w<4;++w)v[w]=A[w]+65+(25-A[w]>>8&6)-(51-A[w]>>8&75)-(61-A[w]>>8&15)+(62-A[w]>>8&3)}function p(v){var E,A=new Uint8Array(44);for(E=0;E<32/3;++E)f(A.subarray(E*4),v.subarray(E*3));return f(A.subarray(E*4),Uint8Array.from([v[E*3+0],v[E*3+1],0])),A[43]=61,String.fromCharCode.apply(null,A)}function g(v){let E=window.atob(v),A=E.length,w=new Uint8Array(A);for(let $=0;$>>8&255,E>>>16&255,E>>>24&255)}function y(v,E){v.push(E&255,E>>>8&255)}function x(v,E){for(var A=0;A>>1:E>>>1;M.table[A]=E}}for(var k=-1,$=0;$>>8^M.table[(k^v[$])&255];return(k^-1)>>>0}function C(v){for(var E=[],A=[],w=0,k=0;k{e.status?(this.success=!0,await this.store.getConfigurations(),setTimeout(()=>{this.$router.push("/")},1e3)):(this.error=!0,this.errorMessage=e.message,document.querySelector(`#${e.data}`).classList.remove("is-valid"),document.querySelector(`#${e.data}`).classList.add("is-invalid"))}))}},computed:{goodToSubmit(){let e=["ConfigurationName","Address","ListenPort","PrivateKey"],t=[...document.querySelectorAll("input[required]")];return e.find(n=>this.newConfiguration[n].length===0)===void 0&&t.find(n=>n.classList.contains("is-invalid"))===void 0}},watch:{"newConfiguration.Address"(e){let t=document.querySelector("#Address");t.classList.remove("is-invalid","is-valid");try{if(e.trim().split("/").filter(i=>i.length>0).length!==2)throw Error();let n=gP(e),s=n.end-n.start;this.numberOfAvailableIPs=s.toLocaleString(),t.classList.add("is-valid")}catch{this.numberOfAvailableIPs="0",t.classList.add("is-invalid")}},"newConfiguration.ListenPort"(e){let t=document.querySelector("#ListenPort");t.classList.remove("is-invalid","is-valid"),e<0||e>65353||!Number.isInteger(e)?t.classList.add("is-invalid"):t.classList.add("is-valid")},"newConfiguration.ConfigurationName"(e){let t=document.querySelector("#ConfigurationName");t.classList.remove("is-invalid","is-valid"),!/^[a-zA-Z0-9_=+.-]{1,15}$/.test(e)||e.length===0||this.store.Configurations.find(n=>n.Name===e)?t.classList.add("is-invalid"):t.classList.add("is-valid")},"newConfiguration.PrivateKey"(e){let t=document.querySelector("#PrivateKey");t.classList.remove("is-invalid","is-valid");try{wireguard.generatePublicKey(e),t.classList.add("is-valid")}catch{t.classList.add("is-invalid")}}}},_P={class:"mt-4"},bP={class:"container mb-4"},yP={class:"mb-4 d-flex align-items-center gap-4"},vP=b("h3",{class:"mb-0 text-body"},[b("i",{class:"bi bi-chevron-left"})],-1),xP=b("h3",{class:"text-body mb-0"},"New Configuration",-1),wP={class:"card rounded-3 shadow"},EP=b("div",{class:"card-header"},"Configuration Name",-1),SP={class:"card-body"},CP=["disabled"],AP={class:"invalid-feedback"},TP={key:0},MP={key:1},PP=b("ul",{class:"mb-0"},[b("li",null,"Configuration name already exist."),b("li",null,'Configuration name can only contain 15 lower/uppercase alphabet, numbers, "_"(underscore), "="(equal), "+"(plus), "."(period/dot), "-"(dash/hyphen)')],-1),kP={class:"card rounded-3 shadow"},OP=b("div",{class:"card-header"},"Private Key / Public Key / Pre-Shared Key",-1),DP={class:"card-body",style:{"font-family":"var(--bs-font-monospace)"}},$P={class:"mb-2"},LP=b("label",{class:"text-muted fw-bold mb-1"},[b("small",null,"PRIVATE KEY")],-1),IP={class:"input-group"},RP=["disabled"],NP=b("i",{class:"bi bi-arrow-repeat"},null,-1),FP=[NP],BP=b("label",{class:"text-muted fw-bold mb-1"},[b("small",null,"PUBLIC KEY")],-1),VP={class:"card rounded-3 shadow"},HP=b("div",{class:"card-header"},"Listen Port",-1),jP={class:"card-body"},WP=["disabled"],zP={class:"invalid-feedback"},UP={key:0},KP={key:1},YP={class:"card rounded-3 shadow"},GP={class:"card-header d-flex align-items-center"},qP={class:"badge rounded-pill text-bg-success ms-auto"},XP={class:"card-body"},QP=["disabled"],JP={class:"invalid-feedback"},ZP={key:0},tk={key:1},ek=b("hr",null,null,-1),nk={class:"accordion",id:"newConfigurationOptionalAccordion"},sk={class:"accordion-item"},ik=b("h2",{class:"accordion-header"},[b("button",{class:"accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#newConfigurationOptionalAccordionCollapse"}," Optional Settings ")],-1),ok={id:"newConfigurationOptionalAccordionCollapse",class:"accordion-collapse collapse","data-bs-parent":"#newConfigurationOptionalAccordion"},rk={class:"accordion-body d-flex flex-column gap-3"},ak={class:"card rounded-3"},lk=b("div",{class:"card-header"},"PreUp",-1),ck={class:"card-body"},uk={class:"card rounded-3"},dk=b("div",{class:"card-header"},"PreDown",-1),hk={class:"card-body"},fk={class:"card rounded-3"},pk=b("div",{class:"card-header"},"PostUp",-1),gk={class:"card-body"},mk={class:"card rounded-3"},_k=b("div",{class:"card-header"},"PostDown",-1),bk={class:"card-body"},yk=["disabled"],vk={key:0,class:"d-flex w-100"},xk=b("i",{class:"bi bi-check-circle-fill ms-2"},null,-1),wk={key:1,class:"d-flex w-100"},Ek=b("i",{class:"bi bi-save-fill ms-2"},null,-1),Sk={key:2,class:"d-flex w-100 align-items-center"},Ck=b("span",{class:"ms-2 spinner-border spinner-border-sm",role:"status"},null,-1);function Ak(e,t,n,s,i,o){const r=Ut("RouterLink");return rt(),ut("div",_P,[b("div",bP,[b("div",yP,[mt(r,{to:"/"},{default:Kt(()=>[vP]),_:1}),xP]),b("form",{class:"text-body d-flex flex-column gap-3",onSubmit:t[10]||(t[10]=a=>{a.preventDefault(),this.saveNewConfiguration()})},[b("div",wP,[EP,b("div",SP,[Rt(b("input",{type:"text",class:"form-control",placeholder:"ex. wg1",id:"ConfigurationName","onUpdate:modelValue":t[0]||(t[0]=a=>this.newConfiguration.ConfigurationName=a),disabled:this.loading,required:""},null,8,CP),[[Bt,this.newConfiguration.ConfigurationName]]),b("div",AP,[this.error?(rt(),ut("div",TP,Ct(this.errorMessage),1)):(rt(),ut("div",MP,[Tt(" Configuration name is invalid. Possible reasons: "),PP]))])])]),b("div",kP,[OP,b("div",DP,[b("div",$P,[LP,b("div",IP,[Rt(b("input",{type:"text",class:"form-control",id:"PrivateKey",required:"",disabled:this.loading,"onUpdate:modelValue":t[1]||(t[1]=a=>this.newConfiguration.PrivateKey=a)},null,8,RP),[[Bt,this.newConfiguration.PrivateKey]]),b("button",{class:"btn btn-outline-primary",type:"button",title:"Regenerate Private Key",onClick:t[2]||(t[2]=a=>o.wireguardGenerateKeypair())},FP)])]),b("div",null,[BP,Rt(b("input",{type:"text",class:"form-control",id:"PublicKey","onUpdate:modelValue":t[3]||(t[3]=a=>this.newConfiguration.PublicKey=a),disabled:""},null,512),[[Bt,this.newConfiguration.PublicKey]])])])]),b("div",VP,[HP,b("div",jP,[Rt(b("input",{type:"number",class:"form-control",placeholder:"0-65353",id:"ListenPort",min:"1",max:"65353","onUpdate:modelValue":t[4]||(t[4]=a=>this.newConfiguration.ListenPort=a),disabled:this.loading,required:""},null,8,WP),[[Bt,this.newConfiguration.ListenPort]]),b("div",zP,[this.error?(rt(),ut("div",UP,Ct(this.errorMessage),1)):(rt(),ut("div",KP," Invalid port "))])])]),b("div",YP,[b("div",GP,[Tt(" IP Address & Range "),b("span",qP,Ct(i.numberOfAvailableIPs)+" Available IPs",1)]),b("div",XP,[Rt(b("input",{type:"text",class:"form-control",placeholder:"Ex: 10.0.0.1/24",id:"Address","onUpdate:modelValue":t[5]||(t[5]=a=>this.newConfiguration.Address=a),disabled:this.loading,required:""},null,8,QP),[[Bt,this.newConfiguration.Address]]),b("div",JP,[this.error?(rt(),ut("div",ZP,Ct(this.errorMessage),1)):(rt(),ut("div",tk," IP address & range is invalid. "))])])]),ek,b("div",nk,[b("div",sk,[ik,b("div",ok,[b("div",rk,[b("div",ak,[lk,b("div",ck,[Rt(b("input",{type:"text",class:"form-control",id:"preUp","onUpdate:modelValue":t[6]||(t[6]=a=>this.newConfiguration.PreUp=a)},null,512),[[Bt,this.newConfiguration.PreUp]])])]),b("div",uk,[dk,b("div",hk,[Rt(b("input",{type:"text",class:"form-control",id:"preDown","onUpdate:modelValue":t[7]||(t[7]=a=>this.newConfiguration.PreDown=a)},null,512),[[Bt,this.newConfiguration.PreDown]])])]),b("div",fk,[pk,b("div",gk,[Rt(b("input",{type:"text",class:"form-control",id:"postUp","onUpdate:modelValue":t[8]||(t[8]=a=>this.newConfiguration.PostUp=a)},null,512),[[Bt,this.newConfiguration.PostUp]])])]),b("div",mk,[_k,b("div",bk,[Rt(b("input",{type:"text",class:"form-control",id:"postDown","onUpdate:modelValue":t[9]||(t[9]=a=>this.newConfiguration.PostDown=a)},null,512),[[Bt,this.newConfiguration.PostDown]])])])])])])]),b("button",{class:"btn btn-dark btn-brand rounded-3 px-3 py-2 shadow ms-auto",disabled:!this.goodToSubmit},[this.success?(rt(),ut("span",vk,[Tt(" Success! "),xk])):this.loading?(rt(),ut("span",Sk,[Tt(" Saving... "),Ck])):(rt(),ut("span",wk,[Tt(" Save Configuration "),Ek]))],8,yk)],32)])])}const Tk=qt(mP,[["render",Ak]]);function Mk(e){return tu()?(hg(e),!0):!1}function qm(e){return typeof e=="function"?e():Qn(e)}const Xm=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Pk=Object.prototype.toString,kk=e=>Pk.call(e)==="[object Object]",Xr=()=>{},Ok=Dk();function Dk(){var e,t;return Xm&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function ro(e){var t;const n=qm(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Qm=Xm?window:void 0;function Ll(...e){let t,n,s,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,s,i]=e,t=Qm):[t,n,s,i]=e,!t)return Xr;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const o=[],r=()=>{o.forEach(u=>u()),o.length=0},a=(u,d,f,p)=>(u.addEventListener(d,f,p),()=>u.removeEventListener(d,f,p)),l=Is(()=>[ro(t),qm(i)],([u,d])=>{if(r(),!u)return;const f=kk(d)?{...d}:d;o.push(...n.flatMap(p=>s.map(g=>a(u,p,g,f))))},{immediate:!0,flush:"post"}),c=()=>{l(),r()};return Mk(c),c}let nf=!1;function $k(e,t,n={}){const{window:s=Qm,ignore:i=[],capture:o=!0,detectIframe:r=!1}=n;if(!s)return Xr;Ok&&!nf&&(nf=!0,Array.from(s.document.body.children).forEach(f=>f.addEventListener("click",Xr)),s.document.documentElement.addEventListener("click",Xr));let a=!0;const l=f=>i.some(p=>{if(typeof p=="string")return Array.from(s.document.querySelectorAll(p)).some(g=>g===f.target||f.composedPath().includes(g));{const g=ro(p);return g&&(f.target===g||f.composedPath().includes(g))}}),u=[Ll(s,"click",f=>{const p=ro(e);if(!(!p||p===f.target||f.composedPath().includes(p))){if(f.detail===0&&(a=!l(f)),!a){a=!0;return}t(f)}},{passive:!0,capture:o}),Ll(s,"pointerdown",f=>{const p=ro(e);a=!l(f)&&!!(p&&!f.composedPath().includes(p))},{passive:!0}),r&&Ll(s,"blur",f=>{setTimeout(()=>{var p;const g=ro(e);((p=s.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(g!=null&&g.contains(s.document.activeElement))&&t(f)},0)})].filter(Boolean);return()=>u.forEach(f=>f())}const Lk={name:"peerSettingsDropdown",props:{Peer:Object}},as=e=>(Na("data-v-313d0126"),e=e(),Fa(),e),Ik={class:"dropdown-menu mt-2 shadow-lg d-block rounded-3",style:{"max-width":"200px"}},Rk=as(()=>b("li",null,[b("small",{class:"w-100 dropdown-item text-muted",style:{"white-space":"break-spaces","font-size":"0.7rem"}},[Tt("Download & QR Code is not available due to no "),b("code",null,"private key"),Tt(" set for this peer ")])],-1)),Nk=as(()=>b("li",null,[b("hr",{class:"dropdown-divider"})],-1)),Fk=as(()=>b("li",null,[b("a",{class:"dropdown-item d-flex",role:"button"},[b("i",{class:"me-auto bi bi-pen"}),Tt(" Edit ")])],-1)),Bk=as(()=>b("li",null,[b("a",{class:"dropdown-item d-flex",role:"button"},[b("i",{class:"me-auto bi bi-download"}),Tt(" Download ")])],-1)),Vk=as(()=>b("li",null,[b("a",{class:"dropdown-item d-flex",role:"button"},[b("i",{class:"me-auto bi bi-qr-code"}),Tt(" QR Code ")])],-1)),Hk=as(()=>b("li",null,[b("hr",{class:"dropdown-divider"})],-1)),jk=as(()=>b("li",null,[b("a",{class:"dropdown-item d-flex text-warning",role:"button"},[b("i",{class:"me-auto bi bi-lock"}),Tt(" Lock ")])],-1)),Wk=as(()=>b("li",null,[b("a",{class:"dropdown-item d-flex fw-bold text-danger",role:"button"},[b("i",{class:"me-auto bi bi-trash"}),Tt(" Delete ")])],-1));function zk(e,t,n,s,i,o){return rt(),ut("ul",Ik,[this.Peer.private_key?me("",!0):(rt(),ut(Jt,{key:0},[Rk,Nk],64)),Fk,this.Peer.private_key?(rt(),ut(Jt,{key:1},[Bk,Vk],64)):me("",!0),Hk,jk,Wk])}const Uk=qt(Lk,[["render",zk],["__scopeId","data-v-313d0126"]]),Kk={name:"peer",components:{PeerSettingsDropdown:Uk},props:{Peer:Object},data(){return{}},setup(){const e=Ci(null),t=Ci(!1);return $k(e,n=>{t.value=!1}),{target:e,subMenuOpened:t}},computed:{getLatestHandshake(){return this.Peer.latest_handshake.includes(",")?this.Peer.latest_handshake.split(",")[0]:this.Peer.latest_handshake}}},Ui=e=>(Na("data-v-742207aa"),e=e(),Fa(),e),Yk={class:"card shadow-sm rounded-3"},Gk={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0"},qk={style:{"font-size":"0.8rem"},class:"ms-auto d-flex gap-2"},Xk={class:"text-primary"},Qk=Ui(()=>b("i",{class:"bi bi-arrow-down"},null,-1)),Jk={class:"text-success"},Zk=Ui(()=>b("i",{class:"bi bi-arrow-up"},null,-1)),tO={key:0,class:"text-secondary"},eO=Ui(()=>b("i",{class:"bi bi-arrows-angle-contract"},null,-1)),nO={class:"card-body pt-1",style:{"font-size":"0.9rem"}},sO={class:"mb-2"},iO=Ui(()=>b("small",{class:"text-muted"},"Public Key",-1)),oO={class:"mb-0"},rO={class:"d-flex align-items-end"},aO=Ui(()=>b("small",{class:"text-muted"},"Allowed IP",-1)),lO={class:"mb-0"},cO=Ui(()=>b("h5",{class:"mb-0"},[b("i",{class:"bi bi-three-dots"})],-1)),uO=[cO];function dO(e,t,n,s,i,o){const r=Ut("PeerSettingsDropdown");return rt(),ut("div",Yk,[b("div",Gk,[b("div",{class:ge(["dot ms-0",{active:n.Peer.status==="running"}])},null,2),b("div",qk,[b("span",Xk,[Qk,b("strong",null,Ct((n.Peer.cumu_receive+n.Peer.total_receive).toFixed(4)),1),Tt(" GB ")]),b("span",Jk,[Zk,b("strong",null,Ct((n.Peer.cumu_sent+n.Peer.total_sent).toFixed(4)),1),Tt(" GB ")]),n.Peer.latest_handshake!=="No Handshake"?(rt(),ut("span",tO,[eO,Tt(" "+Ct(o.getLatestHandshake)+" ago ",1)])):me("",!0)])]),b("div",nO,[b("h5",null,Ct(n.Peer.name?n.Peer.name:"Untitled Peer"),1),b("div",sO,[iO,b("p",oO,[b("samp",null,Ct(n.Peer.id),1)])]),b("div",rO,[b("div",null,[aO,b("p",lO,[b("samp",null,Ct(n.Peer.allowed_ip),1)])]),b("div",{class:ge(["ms-auto px-2 rounded-3 subMenuBtn",{active:this.subMenuOpened}])},[b("a",{role:"button",class:"text-body",onClick:t[0]||(t[0]=a=>this.subMenuOpened=!0)},uO),mt(Us,{name:"slide-fade"},{default:Kt(()=>[this.subMenuOpened?(rt(),Ue(r,{key:0,Peer:n.Peer,ref:"target"},null,8,["Peer"])):me("",!0)]),_:1})],2)])])])}const hO=qt(Kk,[["render",dO],["__scopeId","data-v-742207aa"]]);/*! + */(function(){function e(v){var E=new Float64Array(16);if(v)for(var A=0;A>16&1),w[$-1]&=65535;w[15]=k[15]-32767-(w[14]>>16&1),A=w[15]>>16&1,w[14]&=65535,s(k,w,1-A)}for(var $=0;$<16;++$)v[2*$]=k[$]&255,v[2*$+1]=k[$]>>8}function n(v){for(var E=0;E<16;++E)v[(E+1)%16]+=(E<15?1:38)*Math.floor(v[E]/65536),v[E]&=65535}function s(v,E,A){for(var w,k=~(A-1),$=0;$<16;++$)w=k&(v[$]^E[$]),v[$]^=w,E[$]^=w}function i(v,E,A){for(var w=0;w<16;++w)v[w]=E[w]+A[w]|0}function o(v,E,A){for(var w=0;w<16;++w)v[w]=E[w]-A[w]|0}function r(v,E,A){for(var w=new Float64Array(31),k=0;k<16;++k)for(var $=0;$<16;++$)w[k+$]+=E[k]*A[$];for(var k=0;k<15;++k)w[k]+=38*w[k+16];for(var k=0;k<16;++k)v[k]=w[k];n(v),n(v)}function a(v,E){for(var A=e(),w=0;w<16;++w)A[w]=E[w];for(var w=253;w>=0;--w)r(A,A,A),w!==2&&w!==4&&r(A,A,E);for(var w=0;w<16;++w)v[w]=A[w]}function l(v){v[31]=v[31]&127|64,v[0]&=248}function c(v){for(var E,A=new Uint8Array(32),w=e([1]),k=e([9]),$=e(),L=e([1]),N=e(),X=e(),Y=e([56129,1]),H=e([9]),R=0;R<32;++R)A[R]=v[R];l(A);for(var R=254;R>=0;--R)E=A[R>>>3]>>>(R&7)&1,s(w,k,E),s($,L,E),i(N,w,$),o(w,w,$),i($,k,L),o(k,k,L),r(L,N,N),r(X,w,w),r(w,$,w),r($,k,N),i(N,w,$),o(w,w,$),r(k,w,w),o($,L,X),r(w,$,Y),i(w,w,L),r($,$,w),r(w,L,X),r(L,k,H),r(k,N,N),s(w,k,E),s($,L,E);return a($,$),r(w,w,$),t(A,w),A}function u(){var v=new Uint8Array(32);return window.crypto.getRandomValues(v),v}function d(){var v=u();return l(v),v}function f(v,E){for(var A=Uint8Array.from([E[0]>>2&63,(E[0]<<4|E[1]>>4)&63,(E[1]<<2|E[2]>>6)&63,E[2]&63]),w=0;w<4;++w)v[w]=A[w]+65+(25-A[w]>>8&6)-(51-A[w]>>8&75)-(61-A[w]>>8&15)+(62-A[w]>>8&3)}function p(v){var E,A=new Uint8Array(44);for(E=0;E<32/3;++E)f(A.subarray(E*4),v.subarray(E*3));return f(A.subarray(E*4),Uint8Array.from([v[E*3+0],v[E*3+1],0])),A[43]=61,String.fromCharCode.apply(null,A)}function m(v){let E=window.atob(v),A=E.length,w=new Uint8Array(A);for(let $=0;$>>8&255,E>>>16&255,E>>>24&255)}function y(v,E){v.push(E&255,E>>>8&255)}function x(v,E){for(var A=0;A>>1:E>>>1;P.table[A]=E}}for(var k=-1,$=0;$>>8^P.table[(k^v[$])&255];return(k^-1)>>>0}function C(v){for(var E=[],A=[],w=0,k=0;k{e.status?(this.success=!0,await this.store.getConfigurations(),setTimeout(()=>{this.$router.push("/")},1e3)):(this.error=!0,this.errorMessage=e.message,document.querySelector(`#${e.data}`).classList.remove("is-valid"),document.querySelector(`#${e.data}`).classList.add("is-invalid"))}))}},computed:{goodToSubmit(){let e=["ConfigurationName","Address","ListenPort","PrivateKey"],t=[...document.querySelectorAll("input[required]")];return e.find(n=>this.newConfiguration[n].length===0)===void 0&&t.find(n=>n.classList.contains("is-invalid"))===void 0}},watch:{"newConfiguration.Address"(e){let t=document.querySelector("#Address");t.classList.remove("is-invalid","is-valid");try{if(e.trim().split("/").filter(i=>i.length>0).length!==2)throw Error();let n=wM(e),s=n.end-n.start;this.numberOfAvailableIPs=s.toLocaleString(),t.classList.add("is-valid")}catch{this.numberOfAvailableIPs="0",t.classList.add("is-invalid")}},"newConfiguration.ListenPort"(e){let t=document.querySelector("#ListenPort");t.classList.remove("is-invalid","is-valid"),e<0||e>65353||!Number.isInteger(e)?t.classList.add("is-invalid"):t.classList.add("is-valid")},"newConfiguration.ConfigurationName"(e){let t=document.querySelector("#ConfigurationName");t.classList.remove("is-invalid","is-valid"),!/^[a-zA-Z0-9_=+.-]{1,15}$/.test(e)||e.length===0||this.store.Configurations.find(n=>n.Name===e)?t.classList.add("is-invalid"):t.classList.add("is-valid")},"newConfiguration.PrivateKey"(e){let t=document.querySelector("#PrivateKey");t.classList.remove("is-invalid","is-valid");try{wireguard.generatePublicKey(e),t.classList.add("is-valid")}catch{t.classList.add("is-invalid")}}}},SM={class:"mt-4"},CM={class:"container mb-4"},AM={class:"mb-4 d-flex align-items-center gap-4"},TM=g("h3",{class:"mb-0 text-body"},[g("i",{class:"bi bi-chevron-left"})],-1),PM=g("h3",{class:"text-body mb-0"},"New Configuration",-1),MM={class:"card rounded-3 shadow"},kM=g("div",{class:"card-header"},"Configuration Name",-1),OM={class:"card-body"},DM=["disabled"],$M={class:"invalid-feedback"},LM={key:0},IM={key:1},RM=g("ul",{class:"mb-0"},[g("li",null,"Configuration name already exist."),g("li",null,'Configuration name can only contain 15 lower/uppercase alphabet, numbers, "_"(underscore), "="(equal), "+"(plus), "."(period/dot), "-"(dash/hyphen)')],-1),NM={class:"card rounded-3 shadow"},FM=g("div",{class:"card-header"},"Private Key / Public Key / Pre-Shared Key",-1),BM={class:"card-body",style:{"font-family":"var(--bs-font-monospace)"}},VM={class:"mb-2"},HM=g("label",{class:"text-muted fw-bold mb-1"},[g("small",null,"PRIVATE KEY")],-1),jM={class:"input-group"},WM=["disabled"],zM=g("i",{class:"bi bi-arrow-repeat"},null,-1),UM=[zM],KM=g("label",{class:"text-muted fw-bold mb-1"},[g("small",null,"PUBLIC KEY")],-1),YM={class:"card rounded-3 shadow"},qM=g("div",{class:"card-header"},"Listen Port",-1),GM={class:"card-body"},XM=["disabled"],QM={class:"invalid-feedback"},JM={key:0},ZM={key:1},tk={class:"card rounded-3 shadow"},ek={class:"card-header d-flex align-items-center"},nk={class:"badge rounded-pill text-bg-success ms-auto"},sk={class:"card-body"},ik=["disabled"],ok={class:"invalid-feedback"},rk={key:0},ak={key:1},lk=g("hr",null,null,-1),ck={class:"accordion",id:"newConfigurationOptionalAccordion"},uk={class:"accordion-item"},dk=g("h2",{class:"accordion-header"},[g("button",{class:"accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#newConfigurationOptionalAccordionCollapse"}," Optional Settings ")],-1),hk={id:"newConfigurationOptionalAccordionCollapse",class:"accordion-collapse collapse","data-bs-parent":"#newConfigurationOptionalAccordion"},fk={class:"accordion-body d-flex flex-column gap-3"},pk={class:"card rounded-3"},gk=g("div",{class:"card-header"},"PreUp",-1),mk={class:"card-body"},_k={class:"card rounded-3"},bk=g("div",{class:"card-header"},"PreDown",-1),yk={class:"card-body"},vk={class:"card rounded-3"},xk=g("div",{class:"card-header"},"PostUp",-1),wk={class:"card-body"},Ek={class:"card rounded-3"},Sk=g("div",{class:"card-header"},"PostDown",-1),Ck={class:"card-body"},Ak=["disabled"],Tk={key:0,class:"d-flex w-100"},Pk=g("i",{class:"bi bi-check-circle-fill ms-2"},null,-1),Mk={key:1,class:"d-flex w-100"},kk=g("i",{class:"bi bi-save-fill ms-2"},null,-1),Ok={key:2,class:"d-flex w-100 align-items-center"},Dk=g("span",{class:"ms-2 spinner-border spinner-border-sm",role:"status"},null,-1);function $k(e,t,n,s,i,o){const r=Kt("RouterLink");return ot(),ct("div",SM,[g("div",CM,[g("div",AM,[mt(r,{to:"/"},{default:Yt(()=>[TM]),_:1}),PM]),g("form",{class:"text-body d-flex flex-column gap-3",onSubmit:t[10]||(t[10]=a=>{a.preventDefault(),this.saveNewConfiguration()})},[g("div",MM,[kM,g("div",OM,[kt(g("input",{type:"text",class:"form-control",placeholder:"ex. wg1",id:"ConfigurationName","onUpdate:modelValue":t[0]||(t[0]=a=>this.newConfiguration.ConfigurationName=a),disabled:this.loading,required:""},null,8,DM),[[Ot,this.newConfiguration.ConfigurationName]]),g("div",$M,[this.error?(ot(),ct("div",LM,Ct(this.errorMessage),1)):(ot(),ct("div",IM,[xt(" Configuration name is invalid. Possible reasons: "),RM]))])])]),g("div",NM,[FM,g("div",BM,[g("div",VM,[HM,g("div",jM,[kt(g("input",{type:"text",class:"form-control",id:"PrivateKey",required:"",disabled:this.loading,"onUpdate:modelValue":t[1]||(t[1]=a=>this.newConfiguration.PrivateKey=a)},null,8,WM),[[Ot,this.newConfiguration.PrivateKey]]),g("button",{class:"btn btn-outline-primary",type:"button",title:"Regenerate Private Key",onClick:t[2]||(t[2]=a=>o.wireguardGenerateKeypair())},UM)])]),g("div",null,[KM,kt(g("input",{type:"text",class:"form-control",id:"PublicKey","onUpdate:modelValue":t[3]||(t[3]=a=>this.newConfiguration.PublicKey=a),disabled:""},null,512),[[Ot,this.newConfiguration.PublicKey]])])])]),g("div",YM,[qM,g("div",GM,[kt(g("input",{type:"number",class:"form-control",placeholder:"0-65353",id:"ListenPort",min:"1",max:"65353","onUpdate:modelValue":t[4]||(t[4]=a=>this.newConfiguration.ListenPort=a),disabled:this.loading,required:""},null,8,XM),[[Ot,this.newConfiguration.ListenPort]]),g("div",QM,[this.error?(ot(),ct("div",JM,Ct(this.errorMessage),1)):(ot(),ct("div",ZM," Invalid port "))])])]),g("div",tk,[g("div",ek,[xt(" IP Address & Range "),g("span",nk,Ct(i.numberOfAvailableIPs)+" Available IPs",1)]),g("div",sk,[kt(g("input",{type:"text",class:"form-control",placeholder:"Ex: 10.0.0.1/24",id:"Address","onUpdate:modelValue":t[5]||(t[5]=a=>this.newConfiguration.Address=a),disabled:this.loading,required:""},null,8,ik),[[Ot,this.newConfiguration.Address]]),g("div",ok,[this.error?(ot(),ct("div",rk,Ct(this.errorMessage),1)):(ot(),ct("div",ak," IP address & range is invalid. "))])])]),lk,g("div",ck,[g("div",uk,[dk,g("div",hk,[g("div",fk,[g("div",pk,[gk,g("div",mk,[kt(g("input",{type:"text",class:"form-control",id:"preUp","onUpdate:modelValue":t[6]||(t[6]=a=>this.newConfiguration.PreUp=a)},null,512),[[Ot,this.newConfiguration.PreUp]])])]),g("div",_k,[bk,g("div",yk,[kt(g("input",{type:"text",class:"form-control",id:"preDown","onUpdate:modelValue":t[7]||(t[7]=a=>this.newConfiguration.PreDown=a)},null,512),[[Ot,this.newConfiguration.PreDown]])])]),g("div",vk,[xk,g("div",wk,[kt(g("input",{type:"text",class:"form-control",id:"postUp","onUpdate:modelValue":t[8]||(t[8]=a=>this.newConfiguration.PostUp=a)},null,512),[[Ot,this.newConfiguration.PostUp]])])]),g("div",Ek,[Sk,g("div",Ck,[kt(g("input",{type:"text",class:"form-control",id:"postDown","onUpdate:modelValue":t[9]||(t[9]=a=>this.newConfiguration.PostDown=a)},null,512),[[Ot,this.newConfiguration.PostDown]])])])])])])]),g("button",{class:"btn btn-dark btn-brand rounded-3 px-3 py-2 shadow ms-auto",disabled:!this.goodToSubmit},[this.success?(ot(),ct("span",Tk,[xt(" Success! "),Pk])):this.loading?(ot(),ct("span",Ok,[xt(" Saving... "),Dk])):(ot(),ct("span",Mk,[xt(" Save Configuration "),kk]))],8,Ak)],32)])])}const Lk=Ut(EM,[["render",$k]]);function Ik(e){return iu()?(mg(e),!0):!1}function Jm(e){return typeof e=="function"?e():es(e)}const Zm=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Rk=Object.prototype.toString,Nk=e=>Rk.call(e)==="[object Object]",ia=()=>{},Fk=Bk();function Bk(){var e,t;return Zm&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function fo(e){var t;const n=Jm(e);return(t=n==null?void 0:n.$el)!=null?t:n}const t_=Zm?window:void 0;function Fl(...e){let t,n,s,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,s,i]=e,t=t_):[t,n,s,i]=e,!t)return ia;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const o=[],r=()=>{o.forEach(u=>u()),o.length=0},a=(u,d,f,p)=>(u.addEventListener(d,f,p),()=>u.removeEventListener(d,f,p)),l=Bs(()=>[fo(t),Jm(i)],([u,d])=>{if(r(),!u)return;const f=Nk(d)?{...d}:d;o.push(...n.flatMap(p=>s.map(m=>a(u,p,m,f))))},{immediate:!0,flush:"post"}),c=()=>{l(),r()};return Ik(c),c}let lf=!1;function Vk(e,t,n={}){const{window:s=t_,ignore:i=[],capture:o=!0,detectIframe:r=!1}=n;if(!s)return ia;Fk&&!lf&&(lf=!0,Array.from(s.document.body.children).forEach(f=>f.addEventListener("click",ia)),s.document.documentElement.addEventListener("click",ia));let a=!0;const l=f=>i.some(p=>{if(typeof p=="string")return Array.from(s.document.querySelectorAll(p)).some(m=>m===f.target||f.composedPath().includes(m));{const m=fo(p);return m&&(f.target===m||f.composedPath().includes(m))}}),u=[Fl(s,"click",f=>{const p=fo(e);if(!(!p||p===f.target||f.composedPath().includes(p))){if(f.detail===0&&(a=!l(f)),!a){a=!0;return}t(f)}},{passive:!0,capture:o}),Fl(s,"pointerdown",f=>{const p=fo(e);a=!l(f)&&!!(p&&!f.composedPath().includes(p))},{passive:!0}),r&&Fl(s,"blur",f=>{setTimeout(()=>{var p;const m=fo(e);((p=s.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(m!=null&&m.contains(s.document.activeElement))&&t(f)},0)})].filter(Boolean);return()=>u.forEach(f=>f())}const Hk={name:"peerSettingsDropdown",setup(){return{dashboardStore:re()}},props:{Peer:Object},methods:{downloadPeer(){qe("/api/downloadPeer/"+this.$route.params.id,{id:this.Peer.id},e=>{if(e.status){const t=new Blob([e.data.file],{type:"text/plain"}),n=URL.createObjectURL(t),s=`${e.data.fileName}.conf`,i=document.createElement("a");i.href=n,i.download=s,i.click(),this.dashboardStore.newMessage("WGDashboard","Peer download started","success")}else this.dashboardStore.newMessage("Server",e.message,"danger")})},downloadQRCode(){qe("/api/downloadPeer/"+this.$route.params.id,{id:this.Peer.id},e=>{e.status?this.$emit("qrcode",e.data.file):this.dashboardStore.newMessage("Server",e.message,"danger")})}}},hs=e=>(sr("data-v-3a072aae"),e=e(),ir(),e),jk={class:"dropdown-menu mt-2 shadow-lg d-block rounded-3",style:{"max-width":"200px"}},Wk=hs(()=>g("li",null,[g("small",{class:"w-100 dropdown-item text-muted",style:{"white-space":"break-spaces","font-size":"0.7rem"}},[xt("Download & QR Code is not available due to no "),g("code",null,"private key"),xt(" set for this peer ")])],-1)),zk=hs(()=>g("li",null,[g("hr",{class:"dropdown-divider"})],-1)),Uk=hs(()=>g("i",{class:"me-auto bi bi-pen"},null,-1)),Kk=hs(()=>g("i",{class:"me-auto bi bi-download"},null,-1)),Yk=hs(()=>g("i",{class:"me-auto bi bi-qr-code"},null,-1)),qk=hs(()=>g("li",null,[g("hr",{class:"dropdown-divider"})],-1)),Gk=hs(()=>g("li",null,[g("a",{class:"dropdown-item d-flex text-warning",role:"button"},[g("i",{class:"me-auto bi bi-lock"}),xt(" Lock ")])],-1)),Xk=hs(()=>g("li",null,[g("a",{class:"dropdown-item d-flex fw-bold text-danger",role:"button"},[g("i",{class:"me-auto bi bi-trash"}),xt(" Delete ")])],-1));function Qk(e,t,n,s,i,o){return ot(),ct("ul",jk,[this.Peer.private_key?oe("",!0):(ot(),ct(Jt,{key:0},[Wk,zk],64)),g("li",null,[g("a",{class:"dropdown-item d-flex",role:"button",onClick:t[0]||(t[0]=r=>this.$emit("setting"))},[Uk,xt(" Edit ")])]),this.Peer.private_key?(ot(),ct(Jt,{key:1},[g("li",null,[g("a",{class:"dropdown-item d-flex",role:"button",onClick:t[1]||(t[1]=r=>this.downloadPeer())},[Kk,xt(" Download ")])]),g("li",null,[g("a",{class:"dropdown-item d-flex",role:"button",onClick:t[2]||(t[2]=r=>this.downloadQRCode())},[Yk,xt(" QR Code ")])])],64)):oe("",!0),qk,Gk,Xk])}const Jk=Ut(Hk,[["render",Qk],["__scopeId","data-v-3a072aae"]]),Zk={name:"peer",components:{PeerSettingsDropdown:Jk},props:{Peer:Object},data(){return{}},setup(){const e=Pi(null),t=Pi(!1);return Vk(e,n=>{t.value=!1}),{target:e,subMenuOpened:t}},computed:{getLatestHandshake(){return this.Peer.latest_handshake.includes(",")?this.Peer.latest_handshake.split(",")[0]:this.Peer.latest_handshake}}},Qi=e=>(sr("data-v-315acdc2"),e=e(),ir(),e),tO={class:"card shadow-sm rounded-3"},eO={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0"},nO={style:{"font-size":"0.8rem"},class:"ms-auto d-flex gap-2"},sO={class:"text-primary"},iO=Qi(()=>g("i",{class:"bi bi-arrow-down"},null,-1)),oO={class:"text-success"},rO=Qi(()=>g("i",{class:"bi bi-arrow-up"},null,-1)),aO={key:0,class:"text-secondary"},lO=Qi(()=>g("i",{class:"bi bi-arrows-angle-contract"},null,-1)),cO={class:"card-body pt-1",style:{"font-size":"0.9rem"}},uO={class:"mb-2"},dO=Qi(()=>g("small",{class:"text-muted"},"Public Key",-1)),hO={class:"mb-0"},fO={class:"d-flex align-items-end"},pO=Qi(()=>g("small",{class:"text-muted"},"Allowed IP",-1)),gO={class:"mb-0"},mO=Qi(()=>g("h5",{class:"mb-0"},[g("i",{class:"bi bi-three-dots"})],-1)),_O=[mO];function bO(e,t,n,s,i,o){const r=Kt("PeerSettingsDropdown");return ot(),ct("div",tO,[g("div",eO,[g("div",{class:he(["dot ms-0",{active:n.Peer.status==="running"}])},null,2),g("div",nO,[g("span",sO,[iO,g("strong",null,Ct((n.Peer.cumu_receive+n.Peer.total_receive).toFixed(4)),1),xt(" GB ")]),g("span",oO,[rO,g("strong",null,Ct((n.Peer.cumu_sent+n.Peer.total_sent).toFixed(4)),1),xt(" GB ")]),n.Peer.latest_handshake!=="No Handshake"?(ot(),ct("span",aO,[lO,xt(" "+Ct(o.getLatestHandshake)+" ago ",1)])):oe("",!0)])]),g("div",cO,[g("h5",null,Ct(n.Peer.name?n.Peer.name:"Untitled Peer"),1),g("div",uO,[dO,g("p",hO,[g("samp",null,Ct(n.Peer.id),1)])]),g("div",fO,[g("div",null,[pO,g("p",gO,[g("samp",null,Ct(n.Peer.allowed_ip),1)])]),g("div",{class:he(["ms-auto px-2 rounded-3 subMenuBtn",{active:this.subMenuOpened}])},[g("a",{role:"button",class:"text-body",onClick:t[0]||(t[0]=a=>this.subMenuOpened=!0)},_O),mt(Dn,{name:"slide-fade"},{default:Yt(()=>[this.subMenuOpened?(ot(),Ee(r,{key:0,onQrcode:t[1]||(t[1]=a=>this.$emit("qrcode",a)),onSetting:t[2]||(t[2]=a=>this.$emit("setting")),Peer:n.Peer,ref:"target"},null,8,["Peer"])):oe("",!0)]),_:1})],2)])])])}const yO=Ut(Zk,[["render",bO],["__scopeId","data-v-315acdc2"]]);/*! * @kurkle/color v0.3.2 * https://github.com/kurkle/color#readme * (c) 2023 Jukka Kurkela * Released under the MIT License - */function Zo(e){return e+.5|0}const Kn=(e,t,n)=>Math.max(Math.min(e,n),t);function ao(e){return Kn(Zo(e*2.55),0,255)}function Zn(e){return Kn(Zo(e*255),0,255)}function xn(e){return Kn(Zo(e/2.55)/100,0,1)}function sf(e){return Kn(Zo(e*100),0,100)}const Fe={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},xc=[..."0123456789ABCDEF"],fO=e=>xc[e&15],pO=e=>xc[(e&240)>>4]+xc[e&15],Mr=e=>(e&240)>>4===(e&15),gO=e=>Mr(e.r)&&Mr(e.g)&&Mr(e.b)&&Mr(e.a);function mO(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Fe[e[1]]*17,g:255&Fe[e[2]]*17,b:255&Fe[e[3]]*17,a:t===5?Fe[e[4]]*17:255}:(t===7||t===9)&&(n={r:Fe[e[1]]<<4|Fe[e[2]],g:Fe[e[3]]<<4|Fe[e[4]],b:Fe[e[5]]<<4|Fe[e[6]],a:t===9?Fe[e[7]]<<4|Fe[e[8]]:255})),n}const _O=(e,t)=>e<255?t(e):"";function bO(e){var t=gO(e)?fO:pO;return e?"#"+t(e.r)+t(e.g)+t(e.b)+_O(e.a,t):void 0}const yO=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Jm(e,t,n){const s=t*Math.min(n,1-n),i=(o,r=(o+e/30)%12)=>n-s*Math.max(Math.min(r-3,9-r,1),-1);return[i(0),i(8),i(4)]}function vO(e,t,n){const s=(i,o=(i+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[s(5),s(3),s(1)]}function xO(e,t,n){const s=Jm(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)s[i]*=1-t-n,s[i]+=t;return s}function wO(e,t,n,s,i){return e===i?(t-n)/s+(t.5?u/(2-o-r):u/(o+r),l=wO(n,s,i,u,o),l=l*60+.5),[l|0,c||0,a]}function $u(e,t,n,s){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,s)).map(Zn)}function Lu(e,t,n){return $u(Jm,e,t,n)}function EO(e,t,n){return $u(xO,e,t,n)}function SO(e,t,n){return $u(vO,e,t,n)}function Zm(e){return(e%360+360)%360}function CO(e){const t=yO.exec(e);let n=255,s;if(!t)return;t[5]!==s&&(n=t[6]?ao(+t[5]):Zn(+t[5]));const i=Zm(+t[2]),o=+t[3]/100,r=+t[4]/100;return t[1]==="hwb"?s=EO(i,o,r):t[1]==="hsv"?s=SO(i,o,r):s=Lu(i,o,r),{r:s[0],g:s[1],b:s[2],a:n}}function AO(e,t){var n=Du(e);n[0]=Zm(n[0]+t),n=Lu(n),e.r=n[0],e.g=n[1],e.b=n[2]}function TO(e){if(!e)return;const t=Du(e),n=t[0],s=sf(t[1]),i=sf(t[2]);return e.a<255?`hsla(${n}, ${s}%, ${i}%, ${xn(e.a)})`:`hsl(${n}, ${s}%, ${i}%)`}const of={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"},rf={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 MO(){const e={},t=Object.keys(rf),n=Object.keys(of);let s,i,o,r,a;for(s=0;s>16&255,o>>8&255,o&255]}return e}let Pr;function PO(e){Pr||(Pr=MO(),Pr.transparent=[0,0,0,0]);const t=Pr[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const kO=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function OO(e){const t=kO.exec(e);let n=255,s,i,o;if(t){if(t[7]!==s){const r=+t[7];n=t[8]?ao(r):Kn(r*255,0,255)}return s=+t[1],i=+t[3],o=+t[5],s=255&(t[2]?ao(s):Kn(s,0,255)),i=255&(t[4]?ao(i):Kn(i,0,255)),o=255&(t[6]?ao(o):Kn(o,0,255)),{r:s,g:i,b:o,a:n}}}function DO(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${xn(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Il=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,si=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function $O(e,t,n){const s=si(xn(e.r)),i=si(xn(e.g)),o=si(xn(e.b));return{r:Zn(Il(s+n*(si(xn(t.r))-s))),g:Zn(Il(i+n*(si(xn(t.g))-i))),b:Zn(Il(o+n*(si(xn(t.b))-o))),a:e.a+n*(t.a-e.a)}}function kr(e,t,n){if(e){let s=Du(e);s[t]=Math.max(0,Math.min(s[t]+s[t]*n,t===0?360:1)),s=Lu(s),e.r=s[0],e.g=s[1],e.b=s[2]}}function t_(e,t){return e&&Object.assign(t||{},e)}function af(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Zn(e[3]))):(t=t_(e,{r:0,g:0,b:0,a:1}),t.a=Zn(t.a)),t}function LO(e){return e.charAt(0)==="r"?OO(e):CO(e)}class Bo{constructor(t){if(t instanceof Bo)return t;const n=typeof t;let s;n==="object"?s=af(t):n==="string"&&(s=mO(t)||PO(t)||LO(t)),this._rgb=s,this._valid=!!s}get valid(){return this._valid}get rgb(){var t=t_(this._rgb);return t&&(t.a=xn(t.a)),t}set rgb(t){this._rgb=af(t)}rgbString(){return this._valid?DO(this._rgb):void 0}hexString(){return this._valid?bO(this._rgb):void 0}hslString(){return this._valid?TO(this._rgb):void 0}mix(t,n){if(t){const s=this.rgb,i=t.rgb;let o;const r=n===o?.5:n,a=2*r-1,l=s.a-i.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,s.r=255&c*s.r+o*i.r+.5,s.g=255&c*s.g+o*i.g+.5,s.b=255&c*s.b+o*i.b+.5,s.a=r*s.a+(1-r)*i.a,this.rgb=s}return this}interpolate(t,n){return t&&(this._rgb=$O(this._rgb,t._rgb,n)),this}clone(){return new Bo(this.rgb)}alpha(t){return this._rgb.a=Zn(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Zo(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return kr(this._rgb,2,t),this}darken(t){return kr(this._rgb,2,-t),this}saturate(t){return kr(this._rgb,1,t),this}desaturate(t){return kr(this._rgb,1,-t),this}rotate(t){return AO(this._rgb,t),this}}/*! + */function rr(e){return e+.5|0}const Xn=(e,t,n)=>Math.max(Math.min(e,n),t);function po(e){return Xn(rr(e*2.55),0,255)}function ss(e){return Xn(rr(e*255),0,255)}function En(e){return Xn(rr(e/2.55)/100,0,1)}function cf(e){return Xn(rr(e*100),0,100)}const Ve={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},Sc=[..."0123456789ABCDEF"],vO=e=>Sc[e&15],xO=e=>Sc[(e&240)>>4]+Sc[e&15],Rr=e=>(e&240)>>4===(e&15),wO=e=>Rr(e.r)&&Rr(e.g)&&Rr(e.b)&&Rr(e.a);function EO(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Ve[e[1]]*17,g:255&Ve[e[2]]*17,b:255&Ve[e[3]]*17,a:t===5?Ve[e[4]]*17:255}:(t===7||t===9)&&(n={r:Ve[e[1]]<<4|Ve[e[2]],g:Ve[e[3]]<<4|Ve[e[4]],b:Ve[e[5]]<<4|Ve[e[6]],a:t===9?Ve[e[7]]<<4|Ve[e[8]]:255})),n}const SO=(e,t)=>e<255?t(e):"";function CO(e){var t=wO(e)?vO:xO;return e?"#"+t(e.r)+t(e.g)+t(e.b)+SO(e.a,t):void 0}const AO=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function e_(e,t,n){const s=t*Math.min(n,1-n),i=(o,r=(o+e/30)%12)=>n-s*Math.max(Math.min(r-3,9-r,1),-1);return[i(0),i(8),i(4)]}function TO(e,t,n){const s=(i,o=(i+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[s(5),s(3),s(1)]}function PO(e,t,n){const s=e_(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)s[i]*=1-t-n,s[i]+=t;return s}function MO(e,t,n,s,i){return e===i?(t-n)/s+(t.5?u/(2-o-r):u/(o+r),l=MO(n,s,i,u,o),l=l*60+.5),[l|0,c||0,a]}function Fu(e,t,n,s){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,s)).map(ss)}function Bu(e,t,n){return Fu(e_,e,t,n)}function kO(e,t,n){return Fu(PO,e,t,n)}function OO(e,t,n){return Fu(TO,e,t,n)}function n_(e){return(e%360+360)%360}function DO(e){const t=AO.exec(e);let n=255,s;if(!t)return;t[5]!==s&&(n=t[6]?po(+t[5]):ss(+t[5]));const i=n_(+t[2]),o=+t[3]/100,r=+t[4]/100;return t[1]==="hwb"?s=kO(i,o,r):t[1]==="hsv"?s=OO(i,o,r):s=Bu(i,o,r),{r:s[0],g:s[1],b:s[2],a:n}}function $O(e,t){var n=Nu(e);n[0]=n_(n[0]+t),n=Bu(n),e.r=n[0],e.g=n[1],e.b=n[2]}function LO(e){if(!e)return;const t=Nu(e),n=t[0],s=cf(t[1]),i=cf(t[2]);return e.a<255?`hsla(${n}, ${s}%, ${i}%, ${En(e.a)})`:`hsl(${n}, ${s}%, ${i}%)`}const uf={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"},df={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 IO(){const e={},t=Object.keys(df),n=Object.keys(uf);let s,i,o,r,a;for(s=0;s>16&255,o>>8&255,o&255]}return e}let Nr;function RO(e){Nr||(Nr=IO(),Nr.transparent=[0,0,0,0]);const t=Nr[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const NO=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function FO(e){const t=NO.exec(e);let n=255,s,i,o;if(t){if(t[7]!==s){const r=+t[7];n=t[8]?po(r):Xn(r*255,0,255)}return s=+t[1],i=+t[3],o=+t[5],s=255&(t[2]?po(s):Xn(s,0,255)),i=255&(t[4]?po(i):Xn(i,0,255)),o=255&(t[6]?po(o):Xn(o,0,255)),{r:s,g:i,b:o,a:n}}}function BO(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${En(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Bl=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,ai=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function VO(e,t,n){const s=ai(En(e.r)),i=ai(En(e.g)),o=ai(En(e.b));return{r:ss(Bl(s+n*(ai(En(t.r))-s))),g:ss(Bl(i+n*(ai(En(t.g))-i))),b:ss(Bl(o+n*(ai(En(t.b))-o))),a:e.a+n*(t.a-e.a)}}function Fr(e,t,n){if(e){let s=Nu(e);s[t]=Math.max(0,Math.min(s[t]+s[t]*n,t===0?360:1)),s=Bu(s),e.r=s[0],e.g=s[1],e.b=s[2]}}function s_(e,t){return e&&Object.assign(t||{},e)}function hf(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=ss(e[3]))):(t=s_(e,{r:0,g:0,b:0,a:1}),t.a=ss(t.a)),t}function HO(e){return e.charAt(0)==="r"?FO(e):DO(e)}class Uo{constructor(t){if(t instanceof Uo)return t;const n=typeof t;let s;n==="object"?s=hf(t):n==="string"&&(s=EO(t)||RO(t)||HO(t)),this._rgb=s,this._valid=!!s}get valid(){return this._valid}get rgb(){var t=s_(this._rgb);return t&&(t.a=En(t.a)),t}set rgb(t){this._rgb=hf(t)}rgbString(){return this._valid?BO(this._rgb):void 0}hexString(){return this._valid?CO(this._rgb):void 0}hslString(){return this._valid?LO(this._rgb):void 0}mix(t,n){if(t){const s=this.rgb,i=t.rgb;let o;const r=n===o?.5:n,a=2*r-1,l=s.a-i.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,s.r=255&c*s.r+o*i.r+.5,s.g=255&c*s.g+o*i.g+.5,s.b=255&c*s.b+o*i.b+.5,s.a=r*s.a+(1-r)*i.a,this.rgb=s}return this}interpolate(t,n){return t&&(this._rgb=VO(this._rgb,t._rgb,n)),this}clone(){return new Uo(this.rgb)}alpha(t){return this._rgb.a=ss(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=rr(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Fr(this._rgb,2,t),this}darken(t){return Fr(this._rgb,2,-t),this}saturate(t){return Fr(this._rgb,1,t),this}desaturate(t){return Fr(this._rgb,1,-t),this}rotate(t){return $O(this._rgb,t),this}}/*! * Chart.js v4.4.1 * https://www.chartjs.org * (c) 2023 Chart.js Contributors * Released under the MIT License - */function mn(){}const IO=(()=>{let e=0;return()=>e++})();function Dt(e){return e===null||typeof e>"u"}function Ht(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Mt(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Yt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Se(e,t){return Yt(e)?e:t}function yt(e,t){return typeof e>"u"?t:e}const RO=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,e_=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Ft(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function It(e,t,n,s){let i,o,r;if(Ht(e))if(o=e.length,s)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;ie,x:e=>e.x,y:e=>e.y};function BO(e){const t=e.split("."),n=[];let s="";for(const i of t)s+=i,s.endsWith("\\")?s=s.slice(0,-1)+".":(n.push(s),s="");return n}function VO(e){const t=BO(e);return n=>{for(const s of t){if(s==="")break;n=n&&n[s]}return n}}function ss(e,t){return(lf[t]||(lf[t]=VO(t)))(e)}function Iu(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Ho=e=>typeof e<"u",is=e=>typeof e=="function",cf=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function HO(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Wt=Math.PI,jt=2*Wt,jO=jt+Wt,ha=Number.POSITIVE_INFINITY,WO=Wt/180,Xt=Wt/2,ws=Wt/4,uf=Wt*2/3,Yn=Math.log10,ln=Math.sign;function xo(e,t,n){return Math.abs(e-t)i-o).pop(),t}function Ni(e){return!isNaN(parseFloat(e))&&isFinite(e)}function UO(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function s_(e,t,n){let s,i,o;for(s=0,i=e.length;sl&&c=Math.min(t,n)-s&&e<=Math.max(t,n)+s}function Nu(e,t,n){n=n||(r=>e[r]1;)o=i+s>>1,n(o)?i=o:s=o;return{lo:i,hi:s}}const Sn=(e,t,n,s)=>Nu(e,n,s?i=>{const o=e[i][t];return oe[i][t]Nu(e,n,s=>e[s][t]>=n);function qO(e,t,n){let s=0,i=e.length;for(;ss&&e[i-1]>n;)i--;return s>0||i{const s="_onData"+Iu(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const r=i.apply(this,o);return e._chartjs.listeners.forEach(a=>{typeof a[s]=="function"&&a[s](...o)}),r}})})}function ff(e,t){const n=e._chartjs;if(!n)return;const s=n.listeners,i=s.indexOf(t);i!==-1&&s.splice(i,1),!(s.length>0)&&(o_.forEach(o=>{delete e[o]}),delete e._chartjs)}function r_(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const a_=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function l_(e,t){let n=[],s=!1;return function(...i){n=i,s||(s=!0,a_.call(window,()=>{s=!1,e.apply(t,n)}))}}function QO(e,t){let n;return function(...s){return t?(clearTimeout(n),n=setTimeout(e,t,s)):e.apply(this,s),t}}const Fu=e=>e==="start"?"left":e==="end"?"right":"center",le=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,JO=(e,t,n,s)=>e===(s?"left":"right")?n:e==="center"?(t+n)/2:t;function c_(e,t,n){const s=t.length;let i=0,o=s;if(e._sorted){const{iScale:r,_parsed:a}=e,l=r.axis,{min:c,max:u,minDefined:d,maxDefined:f}=r.getUserBounds();d&&(i=oe(Math.min(Sn(a,l,c).lo,n?s:Sn(t,l,r.getPixelForValue(c)).lo),0,s-1)),f?o=oe(Math.max(Sn(a,r.axis,u,!0).hi+1,n?0:Sn(t,l,r.getPixelForValue(u),!0).hi+1),i,s)-i:o=s-i}return{start:i,count:o}}function u_(e){const{xScale:t,yScale:n,_scaleRanges:s}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!s)return e._scaleRanges=i,!0;const o=s.xmin!==t.min||s.xmax!==t.max||s.ymin!==n.min||s.ymax!==n.max;return Object.assign(s,i),o}const Or=e=>e===0||e===1,pf=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*jt/n)),gf=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*jt/n)+1,wo={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Xt)+1,easeOutSine:e=>Math.sin(e*Xt),easeInOutSine:e=>-.5*(Math.cos(Wt*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Or(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Or(e)?e:pf(e,.075,.3),easeOutElastic:e=>Or(e)?e:gf(e,.075,.3),easeInOutElastic(e){return Or(e)?e:e<.5?.5*pf(e*2,.1125,.45):.5+.5*gf(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-wo.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?wo.easeInBounce(e*2)*.5:wo.easeOutBounce(e*2-1)*.5+.5};function Bu(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function mf(e){return Bu(e)?e:new Bo(e)}function Rl(e){return Bu(e)?e:new Bo(e).saturate(.5).darken(.1).hexString()}const ZO=["x","y","borderWidth","radius","tension"],tD=["color","borderColor","backgroundColor"];function eD(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:tD},numbers:{type:"number",properties:ZO}}),e.describe("animations",{_fallback:"animation"}),e.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:t=>t|0}}}})}function nD(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const _f=new Map;function sD(e,t){t=t||{};const n=e+JSON.stringify(t);let s=_f.get(n);return s||(s=new Intl.NumberFormat(e,t),_f.set(n,s)),s}function tr(e,t,n){return sD(t,n).format(e)}const d_={values(e){return Ht(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const s=this.chart.options.locale;let i,o=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),o=iD(e,n)}const r=Yn(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),tr(e,s,l)},logarithmic(e,t,n){if(e===0)return"0";const s=n[t].significand||e/Math.pow(10,Math.floor(Yn(e)));return[1,2,3,5,10,15].includes(s)||t>.8*n.length?d_.numeric.call(this,e,t,n):""}};function iD(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Ja={formatters:d_};function oD(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,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:Ja.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Hs=Object.create(null),Ec=Object.create(null);function Eo(e,t){if(!t)return e;const n=t.split(".");for(let s=0,i=n.length;ss.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=(s,i)=>Rl(i.backgroundColor),this.hoverBorderColor=(s,i)=>Rl(i.borderColor),this.hoverColor=(s,i)=>Rl(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(t),this.apply(n)}set(t,n){return Nl(this,t,n)}get(t){return Eo(this,t)}describe(t,n){return Nl(Ec,t,n)}override(t,n){return Nl(Hs,t,n)}route(t,n,s,i){const o=Eo(this,t),r=Eo(this,s),a="_"+n;Object.defineProperties(o,{[a]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=r[i];return Mt(l)?Object.assign({},c,l):yt(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(n=>n(this))}}var Gt=new rD({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[eD,nD,oD]);function aD(e){return!e||Dt(e.size)||Dt(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function fa(e,t,n,s,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>s&&(s=o),s}function lD(e,t,n,s){s=s||{};let i=s.data=s.data||{},o=s.garbageCollect=s.garbageCollect||[];s.font!==t&&(i=s.data={},o=s.garbageCollect=[],s.font=t),e.save(),e.font=t;let r=0;const a=n.length;let l,c,u,d,f;for(l=0;ln.length){for(l=0;l0&&e.stroke()}}function Cn(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,dD(e,o),l=0;l+e||0;function Vu(e,t){const n={},s=Mt(t),i=s?Object.keys(t):t,o=Mt(e)?s?r=>yt(e[r],e[t[r]]):r=>e[r]:()=>e;for(const r of i)n[r]=_D(o(r));return n}function f_(e){return Vu(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Ns(e){return Vu(e,["topLeft","topRight","bottomLeft","bottomRight"])}function ue(e){const t=f_(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function ee(e,t){e=e||{},t=t||Gt.font;let n=yt(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let s=yt(e.style,t.style);s&&!(""+s).match(gD)&&(console.warn('Invalid font style specified: "'+s+'"'),s=void 0);const i={family:yt(e.family,t.family),lineHeight:mD(yt(e.lineHeight,t.lineHeight),n),size:n,style:s,weight:yt(e.weight,t.weight),string:""};return i.string=aD(i),i}function lo(e,t,n,s){let i=!0,o,r,a;for(o=0,r=e.length;on&&a===0?0:a+l;return{min:r(s,-Math.abs(o)),max:r(i,o)}}function ls(e,t){return Object.assign(Object.create(e),t)}function Hu(e,t=[""],n,s,i=()=>e[0]){const o=n||e;typeof s>"u"&&(s=__("_fallback",e));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:s,_getTarget:i,override:a=>Hu([a,...e],t,o,s)};return new Proxy(r,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return g_(a,l,()=>AD(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return vf(a).includes(l)},ownKeys(a){return vf(a)},set(a,l,c){const u=a._storage||(a._storage=i());return a[l]=u[l]=c,delete a._keys,!0}})}function Fi(e,t,n,s){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:p_(e,s),setContext:o=>Fi(e,o,n,s),override:o=>Fi(e.override(o),t,n,s)};return new Proxy(i,{deleteProperty(o,r){return delete o[r],delete e[r],!0},get(o,r,a){return g_(o,r,()=>vD(o,r,a))},getOwnPropertyDescriptor(o,r){return o._descriptors.allKeys?Reflect.has(e,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,r)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,r){return Reflect.has(e,r)},ownKeys(){return Reflect.ownKeys(e)},set(o,r,a){return e[r]=a,delete o[r],!0}})}function p_(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:s=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:s,isScriptable:is(n)?n:()=>n,isIndexable:is(s)?s:()=>s}}const yD=(e,t)=>e?e+Iu(t):t,ju=(e,t)=>Mt(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function g_(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const s=n();return e[t]=s,s}function vD(e,t,n){const{_proxy:s,_context:i,_subProxy:o,_descriptors:r}=e;let a=s[t];return is(a)&&r.isScriptable(t)&&(a=xD(t,a,e,n)),Ht(a)&&a.length&&(a=wD(t,a,e,r.isIndexable)),ju(t,a)&&(a=Fi(a,i,o&&o[t],r)),a}function xD(e,t,n,s){const{_proxy:i,_context:o,_subProxy:r,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=t(o,r||s);return a.delete(e),ju(e,l)&&(l=Wu(i._scopes,i,e,l)),l}function wD(e,t,n,s){const{_proxy:i,_context:o,_subProxy:r,_descriptors:a}=n;if(typeof o.index<"u"&&s(e))return t[o.index%t.length];if(Mt(t[0])){const l=t,c=i._scopes.filter(u=>u!==l);t=[];for(const u of l){const d=Wu(c,i,e,u);t.push(Fi(d,o,r&&r[e],a))}}return t}function m_(e,t,n){return is(e)?e(t,n):e}const ED=(e,t)=>e===!0?t:typeof e=="string"?ss(t,e):void 0;function SD(e,t,n,s,i){for(const o of t){const r=ED(n,o);if(r){e.add(r);const a=m_(r._fallback,n,i);if(typeof a<"u"&&a!==n&&a!==s)return a}else if(r===!1&&typeof s<"u"&&n!==s)return null}return!1}function Wu(e,t,n,s){const i=t._rootScopes,o=m_(t._fallback,n,s),r=[...e,...i],a=new Set;a.add(s);let l=yf(a,r,n,o||n,s);return l===null||typeof o<"u"&&o!==n&&(l=yf(a,r,o,l,s),l===null)?!1:Hu(Array.from(a),[""],i,o,()=>CD(t,n,s))}function yf(e,t,n,s,i){for(;n;)n=SD(e,t,n,s,i);return n}function CD(e,t,n){const s=e._getTarget();t in s||(s[t]={});const i=s[t];return Ht(i)&&Mt(n)?n:i||{}}function AD(e,t,n,s){let i;for(const o of t)if(i=__(yD(o,e),n),typeof i<"u")return ju(e,i)?Wu(n,s,e,i):i}function __(e,t){for(const n of t){if(!n)continue;const s=n[e];if(typeof s<"u")return s}}function vf(e){let t=e._keys;return t||(t=e._keys=TD(e._scopes)),t}function TD(e){const t=new Set;for(const n of e)for(const s of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(s);return Array.from(t)}function b_(e,t,n,s){const{iScale:i}=e,{key:o="r"}=this._parsing,r=new Array(s);let a,l,c,u;for(a=0,l=s;ate==="x"?"y":"x";function PD(e,t,n,s){const i=e.skip?t:e,o=t,r=n.skip?t:n,a=wc(o,i),l=wc(r,o);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=s*c,f=s*u;return{previous:{x:o.x-d*(r.x-i.x),y:o.y-d*(r.y-i.y)},next:{x:o.x+f*(r.x-i.x),y:o.y+f*(r.y-i.y)}}}function kD(e,t,n){const s=e.length;let i,o,r,a,l,c=Bi(e,0);for(let u=0;u!c.skip)),t.cubicInterpolationMode==="monotone")DD(e,i);else{let c=s?e[e.length-1]:e[0];for(o=0,r=e.length;oe.ownerDocument.defaultView.getComputedStyle(e,null);function ID(e,t){return el(e).getPropertyValue(t)}const RD=["top","right","bottom","left"];function Fs(e,t,n){const s={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=RD[i];s[o]=parseFloat(e[t+"-"+o+n])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}const ND=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function FD(e,t){const n=e.touches,s=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=s;let r=!1,a,l;if(ND(i,o,e.target))a=i,l=o;else{const c=t.getBoundingClientRect();a=s.clientX-c.left,l=s.clientY-c.top,r=!0}return{x:a,y:l,box:r}}function As(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:s}=t,i=el(n),o=i.boxSizing==="border-box",r=Fs(i,"padding"),a=Fs(i,"border","width"),{x:l,y:c,box:u}=FD(e,n),d=r.left+(u&&a.left),f=r.top+(u&&a.top);let{width:p,height:g}=t;return o&&(p-=r.width+a.width,g-=r.height+a.height),{x:Math.round((l-d)/p*n.width/s),y:Math.round((c-f)/g*n.height/s)}}function BD(e,t,n){let s,i;if(t===void 0||n===void 0){const o=Uu(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const r=o.getBoundingClientRect(),a=el(o),l=Fs(a,"border","width"),c=Fs(a,"padding");t=r.width-c.width-l.width,n=r.height-c.height-l.height,s=pa(a.maxWidth,o,"clientWidth"),i=pa(a.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:s||ha,maxHeight:i||ha}}const $r=e=>Math.round(e*10)/10;function VD(e,t,n,s){const i=el(e),o=Fs(i,"margin"),r=pa(i.maxWidth,e,"clientWidth")||ha,a=pa(i.maxHeight,e,"clientHeight")||ha,l=BD(e,t,n);let{width:c,height:u}=l;if(i.boxSizing==="content-box"){const f=Fs(i,"border","width"),p=Fs(i,"padding");c-=p.width+f.width,u-=p.height+f.height}return c=Math.max(0,c-o.width),u=Math.max(0,s?c/s:u-o.height),c=$r(Math.min(c,r,l.maxWidth)),u=$r(Math.min(u,a,l.maxHeight)),c&&!u&&(u=$r(c/2)),(t!==void 0||n!==void 0)&&s&&l.height&&u>l.height&&(u=l.height,c=$r(Math.floor(u*s))),{width:c,height:u}}function xf(e,t,n){const s=t||1,i=Math.floor(e.height*s),o=Math.floor(e.width*s);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const r=e.canvas;return r.style&&(n||!r.style.height&&!r.style.width)&&(r.style.height=`${e.height}px`,r.style.width=`${e.width}px`),e.currentDevicePixelRatio!==s||r.height!==i||r.width!==o?(e.currentDevicePixelRatio=s,r.height=i,r.width=o,e.ctx.setTransform(s,0,0,s,0,0),!0):!1}const HD=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};zu()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function wf(e,t){const n=ID(e,t),s=n&&n.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function Ts(e,t,n,s){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function jD(e,t,n,s){return{x:e.x+n*(t.x-e.x),y:s==="middle"?n<.5?e.y:t.y:s==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function WD(e,t,n,s){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},r=Ts(e,i,n),a=Ts(i,o,n),l=Ts(o,t,n),c=Ts(r,a,n),u=Ts(a,l,n);return Ts(c,u,n)}const zD=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,s){return n-s},leftForLtr(n,s){return n-s}}},UD=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function mi(e,t,n){return e?zD(t,n):UD()}function v_(e,t){let n,s;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,s=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=s)}function x_(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function w_(e){return e==="angle"?{between:jo,compare:KO,normalize:Ae}:{between:En,compare:(t,n)=>t-n,normalize:t=>t}}function Ef({start:e,end:t,count:n,loop:s,style:i}){return{start:e%n,end:t%n,loop:s&&(t-e+1)%n===0,style:i}}function KD(e,t,n){const{property:s,start:i,end:o}=n,{between:r,normalize:a}=w_(s),l=t.length;let{start:c,end:u,loop:d}=e,f,p;if(d){for(c+=l,u+=l,f=0,p=l;fl(i,M,x)&&a(i,M)!==0,v=()=>a(o,x)===0||l(o,M,x),E=()=>m||C(),A=()=>!m||v();for(let w=u,k=u;w<=d;++w)S=t[w%r],!S.skip&&(x=c(S[s]),x!==M&&(m=l(x,i,o),y===null&&E()&&(y=a(x,i)===0?w:k),y!==null&&A()&&(g.push(Ef({start:y,end:w,loop:f,count:r,style:p})),y=null),k=w,M=x));return y!==null&&g.push(Ef({start:y,end:d,loop:f,count:r,style:p})),g}function S_(e,t){const n=[],s=e.segments;for(let i=0;ii&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}function GD(e,t,n,s){const i=e.length,o=[];let r=t,a=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%i];c.skip||c.stop?a.skip||(s=!1,o.push({start:t%i,end:(l-1)%i,loop:s}),t=r=c.stop?l:null):(r=l,a.skip&&(t=l)),a=c}return r!==null&&o.push({start:t%i,end:r%i,loop:s}),o}function qD(e,t){const n=e.points,s=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:r,end:a}=YD(n,i,o,s);if(s===!0)return Sf(e,[{start:r,end:a,loop:o}],n,t);const l=a{let e=0;return()=>e++})();function Lt(e){return e===null||typeof e>"u"}function Ht(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Pt(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function qt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Te(e,t){return qt(e)?e:t}function yt(e,t){return typeof e>"u"?t:e}const WO=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,i_=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Bt(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function Nt(e,t,n,s){let i,o,r;if(Ht(e))if(o=e.length,s)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;ie,x:e=>e.x,y:e=>e.y};function KO(e){const t=e.split("."),n=[];let s="";for(const i of t)s+=i,s.endsWith("\\")?s=s.slice(0,-1)+".":(n.push(s),s="");return n}function YO(e){const t=KO(e);return n=>{for(const s of t){if(s==="")break;n=n&&n[s]}return n}}function ls(e,t){return(ff[t]||(ff[t]=YO(t)))(e)}function Vu(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Yo=e=>typeof e<"u",cs=e=>typeof e=="function",pf=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function qO(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Wt=Math.PI,jt=2*Wt,GO=jt+Wt,va=Number.POSITIVE_INFINITY,XO=Wt/180,Xt=Wt/2,Ts=Wt/4,gf=Wt*2/3,Qn=Math.log10,dn=Math.sign;function To(e,t,n){return Math.abs(e-t)i-o).pop(),t}function Hi(e){return!isNaN(parseFloat(e))&&isFinite(e)}function JO(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function r_(e,t,n){let s,i,o;for(s=0,i=e.length;sl&&c=Math.min(t,n)-s&&e<=Math.max(t,n)+s}function ju(e,t,n){n=n||(r=>e[r]1;)o=i+s>>1,n(o)?i=o:s=o;return{lo:i,hi:s}}const Tn=(e,t,n,s)=>ju(e,n,s?i=>{const o=e[i][t];return oe[i][t]ju(e,n,s=>e[s][t]>=n);function nD(e,t,n){let s=0,i=e.length;for(;ss&&e[i-1]>n;)i--;return s>0||i{const s="_onData"+Vu(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const r=i.apply(this,o);return e._chartjs.listeners.forEach(a=>{typeof a[s]=="function"&&a[s](...o)}),r}})})}function bf(e,t){const n=e._chartjs;if(!n)return;const s=n.listeners,i=s.indexOf(t);i!==-1&&s.splice(i,1),!(s.length>0)&&(l_.forEach(o=>{delete e[o]}),delete e._chartjs)}function c_(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const u_=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function d_(e,t){let n=[],s=!1;return function(...i){n=i,s||(s=!0,u_.call(window,()=>{s=!1,e.apply(t,n)}))}}function iD(e,t){let n;return function(...s){return t?(clearTimeout(n),n=setTimeout(e,t,s)):e.apply(this,s),t}}const Wu=e=>e==="start"?"left":e==="end"?"right":"center",ue=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,oD=(e,t,n,s)=>e===(s?"left":"right")?n:e==="center"?(t+n)/2:t;function h_(e,t,n){const s=t.length;let i=0,o=s;if(e._sorted){const{iScale:r,_parsed:a}=e,l=r.axis,{min:c,max:u,minDefined:d,maxDefined:f}=r.getUserBounds();d&&(i=ie(Math.min(Tn(a,l,c).lo,n?s:Tn(t,l,r.getPixelForValue(c)).lo),0,s-1)),f?o=ie(Math.max(Tn(a,r.axis,u,!0).hi+1,n?0:Tn(t,l,r.getPixelForValue(u),!0).hi+1),i,s)-i:o=s-i}return{start:i,count:o}}function f_(e){const{xScale:t,yScale:n,_scaleRanges:s}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!s)return e._scaleRanges=i,!0;const o=s.xmin!==t.min||s.xmax!==t.max||s.ymin!==n.min||s.ymax!==n.max;return Object.assign(s,i),o}const Br=e=>e===0||e===1,yf=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*jt/n)),vf=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*jt/n)+1,Po={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Xt)+1,easeOutSine:e=>Math.sin(e*Xt),easeInOutSine:e=>-.5*(Math.cos(Wt*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Br(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Br(e)?e:yf(e,.075,.3),easeOutElastic:e=>Br(e)?e:vf(e,.075,.3),easeInOutElastic(e){return Br(e)?e:e<.5?.5*yf(e*2,.1125,.45):.5+.5*vf(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Po.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Po.easeInBounce(e*2)*.5:Po.easeOutBounce(e*2-1)*.5+.5};function zu(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function xf(e){return zu(e)?e:new Uo(e)}function Vl(e){return zu(e)?e:new Uo(e).saturate(.5).darken(.1).hexString()}const rD=["x","y","borderWidth","radius","tension"],aD=["color","borderColor","backgroundColor"];function lD(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:aD},numbers:{type:"number",properties:rD}}),e.describe("animations",{_fallback:"animation"}),e.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:t=>t|0}}}})}function cD(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const wf=new Map;function uD(e,t){t=t||{};const n=e+JSON.stringify(t);let s=wf.get(n);return s||(s=new Intl.NumberFormat(e,t),wf.set(n,s)),s}function ar(e,t,n){return uD(t,n).format(e)}const p_={values(e){return Ht(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const s=this.chart.options.locale;let i,o=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),o=dD(e,n)}const r=Qn(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),ar(e,s,l)},logarithmic(e,t,n){if(e===0)return"0";const s=n[t].significand||e/Math.pow(10,Math.floor(Qn(e)));return[1,2,3,5,10,15].includes(s)||t>.8*n.length?p_.numeric.call(this,e,t,n):""}};function dD(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var nl={formatters:p_};function hD(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,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:nl.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Ks=Object.create(null),Ac=Object.create(null);function Mo(e,t){if(!t)return e;const n=t.split(".");for(let s=0,i=n.length;ss.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=(s,i)=>Vl(i.backgroundColor),this.hoverBorderColor=(s,i)=>Vl(i.borderColor),this.hoverColor=(s,i)=>Vl(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(t),this.apply(n)}set(t,n){return Hl(this,t,n)}get(t){return Mo(this,t)}describe(t,n){return Hl(Ac,t,n)}override(t,n){return Hl(Ks,t,n)}route(t,n,s,i){const o=Mo(this,t),r=Mo(this,s),a="_"+n;Object.defineProperties(o,{[a]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=r[i];return Pt(l)?Object.assign({},c,l):yt(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(n=>n(this))}}var Gt=new fD({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[lD,cD,hD]);function pD(e){return!e||Lt(e.size)||Lt(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function xa(e,t,n,s,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>s&&(s=o),s}function gD(e,t,n,s){s=s||{};let i=s.data=s.data||{},o=s.garbageCollect=s.garbageCollect||[];s.font!==t&&(i=s.data={},o=s.garbageCollect=[],s.font=t),e.save(),e.font=t;let r=0;const a=n.length;let l,c,u,d,f;for(l=0;ln.length){for(l=0;l0&&e.stroke()}}function Pn(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,bD(e,o),l=0;l+e||0;function Uu(e,t){const n={},s=Pt(t),i=s?Object.keys(t):t,o=Pt(e)?s?r=>yt(e[r],e[t[r]]):r=>e[r]:()=>e;for(const r of i)n[r]=SD(o(r));return n}function m_(e){return Uu(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Hs(e){return Uu(e,["topLeft","topRight","bottomLeft","bottomRight"])}function fe(e){const t=m_(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function ee(e,t){e=e||{},t=t||Gt.font;let n=yt(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let s=yt(e.style,t.style);s&&!(""+s).match(wD)&&(console.warn('Invalid font style specified: "'+s+'"'),s=void 0);const i={family:yt(e.family,t.family),lineHeight:ED(yt(e.lineHeight,t.lineHeight),n),size:n,style:s,weight:yt(e.weight,t.weight),string:""};return i.string=pD(i),i}function go(e,t,n,s){let i=!0,o,r,a;for(o=0,r=e.length;on&&a===0?0:a+l;return{min:r(s,-Math.abs(o)),max:r(i,o)}}function fs(e,t){return Object.assign(Object.create(e),t)}function Ku(e,t=[""],n,s,i=()=>e[0]){const o=n||e;typeof s>"u"&&(s=v_("_fallback",e));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:s,_getTarget:i,override:a=>Ku([a,...e],t,o,s)};return new Proxy(r,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return b_(a,l,()=>$D(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return Cf(a).includes(l)},ownKeys(a){return Cf(a)},set(a,l,c){const u=a._storage||(a._storage=i());return a[l]=u[l]=c,delete a._keys,!0}})}function ji(e,t,n,s){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:__(e,s),setContext:o=>ji(e,o,n,s),override:o=>ji(e.override(o),t,n,s)};return new Proxy(i,{deleteProperty(o,r){return delete o[r],delete e[r],!0},get(o,r,a){return b_(o,r,()=>TD(o,r,a))},getOwnPropertyDescriptor(o,r){return o._descriptors.allKeys?Reflect.has(e,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,r)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,r){return Reflect.has(e,r)},ownKeys(){return Reflect.ownKeys(e)},set(o,r,a){return e[r]=a,delete o[r],!0}})}function __(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:s=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:s,isScriptable:cs(n)?n:()=>n,isIndexable:cs(s)?s:()=>s}}const AD=(e,t)=>e?e+Vu(t):t,Yu=(e,t)=>Pt(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function b_(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const s=n();return e[t]=s,s}function TD(e,t,n){const{_proxy:s,_context:i,_subProxy:o,_descriptors:r}=e;let a=s[t];return cs(a)&&r.isScriptable(t)&&(a=PD(t,a,e,n)),Ht(a)&&a.length&&(a=MD(t,a,e,r.isIndexable)),Yu(t,a)&&(a=ji(a,i,o&&o[t],r)),a}function PD(e,t,n,s){const{_proxy:i,_context:o,_subProxy:r,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=t(o,r||s);return a.delete(e),Yu(e,l)&&(l=qu(i._scopes,i,e,l)),l}function MD(e,t,n,s){const{_proxy:i,_context:o,_subProxy:r,_descriptors:a}=n;if(typeof o.index<"u"&&s(e))return t[o.index%t.length];if(Pt(t[0])){const l=t,c=i._scopes.filter(u=>u!==l);t=[];for(const u of l){const d=qu(c,i,e,u);t.push(ji(d,o,r&&r[e],a))}}return t}function y_(e,t,n){return cs(e)?e(t,n):e}const kD=(e,t)=>e===!0?t:typeof e=="string"?ls(t,e):void 0;function OD(e,t,n,s,i){for(const o of t){const r=kD(n,o);if(r){e.add(r);const a=y_(r._fallback,n,i);if(typeof a<"u"&&a!==n&&a!==s)return a}else if(r===!1&&typeof s<"u"&&n!==s)return null}return!1}function qu(e,t,n,s){const i=t._rootScopes,o=y_(t._fallback,n,s),r=[...e,...i],a=new Set;a.add(s);let l=Sf(a,r,n,o||n,s);return l===null||typeof o<"u"&&o!==n&&(l=Sf(a,r,o,l,s),l===null)?!1:Ku(Array.from(a),[""],i,o,()=>DD(t,n,s))}function Sf(e,t,n,s,i){for(;n;)n=OD(e,t,n,s,i);return n}function DD(e,t,n){const s=e._getTarget();t in s||(s[t]={});const i=s[t];return Ht(i)&&Pt(n)?n:i||{}}function $D(e,t,n,s){let i;for(const o of t)if(i=v_(AD(o,e),n),typeof i<"u")return Yu(e,i)?qu(n,s,e,i):i}function v_(e,t){for(const n of t){if(!n)continue;const s=n[e];if(typeof s<"u")return s}}function Cf(e){let t=e._keys;return t||(t=e._keys=LD(e._scopes)),t}function LD(e){const t=new Set;for(const n of e)for(const s of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(s);return Array.from(t)}function x_(e,t,n,s){const{iScale:i}=e,{key:o="r"}=this._parsing,r=new Array(s);let a,l,c,u;for(a=0,l=s;ate==="x"?"y":"x";function RD(e,t,n,s){const i=e.skip?t:e,o=t,r=n.skip?t:n,a=Cc(o,i),l=Cc(r,o);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=s*c,f=s*u;return{previous:{x:o.x-d*(r.x-i.x),y:o.y-d*(r.y-i.y)},next:{x:o.x+f*(r.x-i.x),y:o.y+f*(r.y-i.y)}}}function ND(e,t,n){const s=e.length;let i,o,r,a,l,c=Wi(e,0);for(let u=0;u!c.skip)),t.cubicInterpolationMode==="monotone")BD(e,i);else{let c=s?e[e.length-1]:e[0];for(o=0,r=e.length;oe.ownerDocument.defaultView.getComputedStyle(e,null);function jD(e,t){return ol(e).getPropertyValue(t)}const WD=["top","right","bottom","left"];function js(e,t,n){const s={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=WD[i];s[o]=parseFloat(e[t+"-"+o+n])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}const zD=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function UD(e,t){const n=e.touches,s=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=s;let r=!1,a,l;if(zD(i,o,e.target))a=i,l=o;else{const c=t.getBoundingClientRect();a=s.clientX-c.left,l=s.clientY-c.top,r=!0}return{x:a,y:l,box:r}}function Os(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:s}=t,i=ol(n),o=i.boxSizing==="border-box",r=js(i,"padding"),a=js(i,"border","width"),{x:l,y:c,box:u}=UD(e,n),d=r.left+(u&&a.left),f=r.top+(u&&a.top);let{width:p,height:m}=t;return o&&(p-=r.width+a.width,m-=r.height+a.height),{x:Math.round((l-d)/p*n.width/s),y:Math.round((c-f)/m*n.height/s)}}function KD(e,t,n){let s,i;if(t===void 0||n===void 0){const o=Xu(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const r=o.getBoundingClientRect(),a=ol(o),l=js(a,"border","width"),c=js(a,"padding");t=r.width-c.width-l.width,n=r.height-c.height-l.height,s=wa(a.maxWidth,o,"clientWidth"),i=wa(a.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:s||va,maxHeight:i||va}}const Hr=e=>Math.round(e*10)/10;function YD(e,t,n,s){const i=ol(e),o=js(i,"margin"),r=wa(i.maxWidth,e,"clientWidth")||va,a=wa(i.maxHeight,e,"clientHeight")||va,l=KD(e,t,n);let{width:c,height:u}=l;if(i.boxSizing==="content-box"){const f=js(i,"border","width"),p=js(i,"padding");c-=p.width+f.width,u-=p.height+f.height}return c=Math.max(0,c-o.width),u=Math.max(0,s?c/s:u-o.height),c=Hr(Math.min(c,r,l.maxWidth)),u=Hr(Math.min(u,a,l.maxHeight)),c&&!u&&(u=Hr(c/2)),(t!==void 0||n!==void 0)&&s&&l.height&&u>l.height&&(u=l.height,c=Hr(Math.floor(u*s))),{width:c,height:u}}function Af(e,t,n){const s=t||1,i=Math.floor(e.height*s),o=Math.floor(e.width*s);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const r=e.canvas;return r.style&&(n||!r.style.height&&!r.style.width)&&(r.style.height=`${e.height}px`,r.style.width=`${e.width}px`),e.currentDevicePixelRatio!==s||r.height!==i||r.width!==o?(e.currentDevicePixelRatio=s,r.height=i,r.width=o,e.ctx.setTransform(s,0,0,s,0,0),!0):!1}const qD=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};Gu()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function Tf(e,t){const n=jD(e,t),s=n&&n.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function Ds(e,t,n,s){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function GD(e,t,n,s){return{x:e.x+n*(t.x-e.x),y:s==="middle"?n<.5?e.y:t.y:s==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function XD(e,t,n,s){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},r=Ds(e,i,n),a=Ds(i,o,n),l=Ds(o,t,n),c=Ds(r,a,n),u=Ds(a,l,n);return Ds(c,u,n)}const QD=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,s){return n-s},leftForLtr(n,s){return n-s}}},JD=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function yi(e,t,n){return e?QD(t,n):JD()}function E_(e,t){let n,s;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,s=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=s)}function S_(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function C_(e){return e==="angle"?{between:qo,compare:ZO,normalize:Me}:{between:An,compare:(t,n)=>t-n,normalize:t=>t}}function Pf({start:e,end:t,count:n,loop:s,style:i}){return{start:e%n,end:t%n,loop:s&&(t-e+1)%n===0,style:i}}function ZD(e,t,n){const{property:s,start:i,end:o}=n,{between:r,normalize:a}=C_(s),l=t.length;let{start:c,end:u,loop:d}=e,f,p;if(d){for(c+=l,u+=l,f=0,p=l;fl(i,P,x)&&a(i,P)!==0,v=()=>a(o,x)===0||l(o,P,x),E=()=>_||C(),A=()=>!_||v();for(let w=u,k=u;w<=d;++w)S=t[w%r],!S.skip&&(x=c(S[s]),x!==P&&(_=l(x,i,o),y===null&&E()&&(y=a(x,i)===0?w:k),y!==null&&A()&&(m.push(Pf({start:y,end:w,loop:f,count:r,style:p})),y=null),k=w,P=x));return y!==null&&m.push(Pf({start:y,end:d,loop:f,count:r,style:p})),m}function T_(e,t){const n=[],s=e.segments;for(let i=0;ii&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}function e$(e,t,n,s){const i=e.length,o=[];let r=t,a=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%i];c.skip||c.stop?a.skip||(s=!1,o.push({start:t%i,end:(l-1)%i,loop:s}),t=r=c.stop?l:null):(r=l,a.skip&&(t=l)),a=c}return r!==null&&o.push({start:t%i,end:r%i,loop:s}),o}function n$(e,t){const n=e.points,s=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:r,end:a}=t$(n,i,o,s);if(s===!0)return Mf(e,[{start:r,end:a,loop:o}],n,t);const l=aa({chart:t,initial:n.initial,numSteps:r,currentStep:Math.min(s-n.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=a_.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((s,i)=>{if(!s.running||!s.items.length)return;const o=s.items;let r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>s.duration&&(s.duration=l._total),l.tick(t),a=!0):(o[r]=o[o.length-1],o.pop());a&&(i.draw(),this._notify(i,s,t,"progress")),o.length||(s.running=!1,this._notify(i,s,t,"complete"),s.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let s=n.get(t);return s||(s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,s)),s}listen(t,n,s){this._getAnims(t).listeners[n].push(s)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((s,i)=>Math.max(s,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const s=n.items;let i=s.length-1;for(;i>=0;--i)s[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var bn=new JD;const Af="transparent",ZD={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const s=mf(e||Af),i=s.valid&&mf(t||Af);return i&&i.valid?i.mix(s,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class t${constructor(t,n,s,i){const o=n[s];i=lo([t.to,i,o,t.from]);const r=lo([t.from,o,i]);this._active=!0,this._fn=t.fn||ZD[t.type||typeof r],this._easing=wo[t.easing]||wo.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=s,this._from=r,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,s){if(this._active){this._notify(!1);const i=this._target[this._prop],o=s-this._start,r=this._duration-o;this._start=s,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=lo([t.to,n,i,t.from]),this._from=lo([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,s=this._duration,i=this._prop,o=this._from,r=this._loop,a=this._to;let l;if(this._active=o!==a&&(r||n1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,s)=>{t.push({res:n,rej:s})})}_notify(t){const n=t?"res":"rej",s=this._promises||[];for(let i=0;i{const o=t[i];if(!Mt(o))return;const r={};for(const a of n)r[a]=o[a];(Ht(o.properties)&&o.properties||[i]).forEach(a=>{(a===i||!s.has(a))&&s.set(a,r)})})}_animateOptions(t,n){const s=n.options,i=n$(t,s);if(!i)return[];const o=this._createAnimations(i,s);return s.$shared&&e$(t.options.$animations,s).then(()=>{t.options=s},()=>{}),o}_createAnimations(t,n){const s=this._properties,i=[],o=t.$animations||(t.$animations={}),r=Object.keys(n),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const u=n[c];let d=o[c];const f=s.get(c);if(d)if(f&&d.active()){d.update(f,u,a);continue}else d.cancel();if(!f||!f.duration){t[c]=u;continue}o[c]=d=new t$(f,t,c,u),i.push(d)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const s=this._createAnimations(t,n);if(s.length)return bn.add(this._chart,s),!0}}function e$(e,t){const n=[],s=Object.keys(t);for(let i=0;i0||!n&&o<0)return i.index}return null}function Of(e,t){const{chart:n,_cachedMeta:s}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:r,index:a}=s,l=o.axis,c=r.axis,u=r$(o,r,s),d=t.length;let f;for(let p=0;pn[s].axis===t).shift()}function c$(e,t){return ls(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function u$(e,t,n){return ls(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function to(e,t){const n=e.controller.index,s=e.vScale&&e.vScale.axis;if(s){t=t||e._parsed;for(const i of t){const o=i._stacks;if(!o||o[s]===void 0||o[s][n]===void 0)return;delete o[s][n],o[s]._visualValues!==void 0&&o[s]._visualValues[n]!==void 0&&delete o[s]._visualValues[n]}}}const Bl=e=>e==="reset"||e==="none",Df=(e,t)=>t?e:Object.assign({},e),d$=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:A_(n,!0),values:null};class Xe{constructor(t,n){this.chart=t,this._ctx=t.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 t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Pf(t.vScale,t),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(t){this.index!==t&&to(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,s=this.getDataset(),i=(d,f,p,g)=>d==="x"?f:d==="r"?g:p,o=n.xAxisID=yt(s.xAxisID,Fl(t,"x")),r=n.yAxisID=yt(s.yAxisID,Fl(t,"y")),a=n.rAxisID=yt(s.rAxisID,Fl(t,"r")),l=n.indexAxis,c=n.iAxisID=i(l,o,r,a),u=n.vAxisID=i(l,r,o,a);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(r),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&ff(this._data,this),t._stacked&&to(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),s=this._data;if(Mt(n))this._data=o$(n);else if(s!==n){if(s){ff(s,this);const i=this._cachedMeta;to(i),i._parsed=[]}n&&Object.isExtensible(n)&&XO(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,s=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=Pf(n.vScale,n),n.stack!==s.stack&&(i=!0,to(n),n.stack=s.stack),this._resyncElements(t),(i||o!==n._stacked)&&Of(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),s=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(s,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:s,_data:i}=this,{iScale:o,_stacked:r}=s,a=o.axis;let l=t===0&&n===i.length?!0:s._sorted,c=t>0&&s._parsed[t-1],u,d,f;if(this._parsing===!1)s._parsed=i,s._sorted=!0,f=i;else{Ht(i[t])?f=this.parseArrayData(s,i,t,n):Mt(i[t])?f=this.parseObjectData(s,i,t,n):f=this.parsePrimitiveData(s,i,t,n);const p=()=>d[a]===null||c&&d[a]m||d=0;--f)if(!g()){this.updateRangeFromParsed(c,t,p,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,s=[];let i,o,r;for(i=0,o=n.length;i=0&&tthis.getContext(s,i,n),m=c.resolveNamedOptions(f,p,g,d);return m.$shared&&(m.$shared=l,o[r]=Object.freeze(Df(m,l))),m}_resolveAnimations(t,n,s){const i=this.chart,o=this._cachedDataOpts,r=`animation-${n}`,a=o[r];if(a)return a;let l;if(i.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),f=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(f,this.getContext(t,s,n))}const c=new C_(i,l&&l.animations);return l&&l._cacheable&&(o[r]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Bl(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const s=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(s),r=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,s),{sharedOptions:o,includeOptions:r}}updateElement(t,n,s,i){Bl(i)?Object.assign(t,s):this._resolveAnimations(n,i).update(t,s)}updateSharedOptions(t,n,s){t&&!Bl(n)&&this._resolveAnimations(void 0,n).update(t,s)}_setStyle(t,n,s,i){t.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,s,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,s){this._setStyle(t,s,"active",!1)}setHoverStyle(t,n,s){this._setStyle(t,s,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,s=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const i=s.length,o=n.length,r=Math.min(o,i);r&&this.parse(0,r),o>i?this._insertElements(i,o-i,t):o{for(c.length+=n,a=c.length-1;a>=r;a--)c[a]=c[a-n]};for(l(o),a=t;ai-o))}return e._cache.$bar}function f$(e){const t=e.iScale,n=h$(t,e.type);let s=t._length,i,o,r,a;const l=()=>{r===32767||r===-32768||(Ho(a)&&(s=Math.min(s,Math.abs(r-a)||s)),a=r)};for(i=0,o=n.length;i0?i[e-1]:null,a=eMath.abs(a)&&(l=a,c=r),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:i,end:o,min:r,max:a}}function T_(e,t,n,s){return Ht(e)?m$(e,t,n,s):t[n.axis]=n.parse(e,s),t}function $f(e,t,n,s){const i=e.iScale,o=e.vScale,r=i.getLabels(),a=i===o,l=[];let c,u,d,f;for(c=n,u=n+s;c=n?1:-1)}function b$(e){let t,n,s,i,o;return e.horizontal?(t=e.base>e.x,n="left",s="right"):(t=e.basel.controller.options.grouped),o=s.options.stacked,r=[],a=l=>{const c=l.controller.getParsed(n),u=c&&c[l.vScale.axis];if(Dt(u)||isNaN(u))return!0};for(const l of i)if(!(n!==void 0&&a(l))&&((o===!1||r.indexOf(l.stack)===-1||o===void 0&&l.stack===void 0)&&r.push(l.stack),l.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,s){const i=this._getStacks(t,s),o=n!==void 0?i.indexOf(n):-1;return o===-1?i.length-1:o}_getRuler(){const t=this.options,n=this._cachedMeta,s=n.iScale,i=[];let o,r;for(o=0,r=n.data.length;o=0;--s)n=Math.max(n,t[s].size(this.resolveDataElementOptions(s))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,s=this.chart.data.labels||[],{xScale:i,yScale:o}=n,r=this.getParsed(t),a=i.getLabelForValue(r.x),l=o.getLabelForValue(r.y),c=r._custom;return{label:s[t]||"",value:"("+a+", "+l+(c?", "+c:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,s,i){const o=i==="reset",{iScale:r,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(n,i),u=r.axis,d=a.axis;for(let f=n;fjo(M,a,l,!0)?1:Math.max(C,C*n,v,v*n),g=(M,C,v)=>jo(M,a,l,!0)?-1:Math.min(C,C*n,v,v*n),m=p(0,c,d),y=p(Xt,u,f),x=g(Wt,c,d),S=g(Wt+Xt,u,f);s=(m-x)/2,i=(y-S)/2,o=-(m+x)/2,r=-(y+S)/2}return{ratioX:s,ratioY:i,offsetX:o,offsetY:r}}class Os extends Xe{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const s=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=s;else{let o=l=>+s[l];if(Mt(s[t])){const{key:l="value"}=this._parsing;o=c=>+ss(s[c],l)}let r,a;for(r=t,a=t+n;r0&&!isNaN(t)?jt*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,s=this.chart,i=s.data.labels||[],o=tr(n._parsed[t],s.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let n=0;const s=this.chart;let i,o,r,a,l;if(!t){for(i=0,o=s.data.datasets.length;it!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),st(Os,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:s,color:i}}=t.legend.options;return n.labels.map((o,r)=>{const l=t.getDatasetMeta(0).controller.getStyle(r);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:s,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,n,s){s.chart.toggleDataVisibility(n.index),s.chart.update()}}}});class bi extends Xe{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:s,data:i=[],_dataset:o}=n,r=this.chart._animationsDisabled;let{start:a,count:l}=c_(n,i,r);this._drawStart=a,this._drawCount=l,u_(n)&&(a=0,l=i.length),s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!o._decimated,s.points=i;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(s,void 0,{animated:!r,options:c},t),this.updateElements(i,a,l,t)}updateElements(t,n,s,i){const o=i==="reset",{iScale:r,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(n,i),f=r.axis,p=a.axis,{spanGaps:g,segment:m}=this.options,y=Ni(g)?g:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||o||i==="none",S=n+s,M=t.length;let C=n>0&&this.getParsed(n-1);for(let v=0;v=S){A.skip=!0;continue}const w=this.getParsed(v),k=Dt(w[p]),$=A[f]=r.getPixelForValue(w[f],v),L=A[p]=o||k?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,w,l):w[p],v);A.skip=isNaN($)||isNaN(L)||k,A.stop=v>0&&Math.abs(w[f]-C[f])>y,m&&(A.parsed=w,A.raw=c.data[v]),d&&(A.options=u||this.resolveDataElementOptions(v,E.active?"active":i)),x||this.updateElement(E,v,A,i),C=w}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,s=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return s;const o=i[0].size(this.resolveDataElementOptions(0)),r=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(s,o,r)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}st(bi,"id","line"),st(bi,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),st(bi,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Co extends Xe{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,s=this.chart,i=s.data.labels||[],o=tr(n._parsed[t].r,s.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,n,s,i){return b_.bind(this)(t,n,s,i)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((s,i)=>{const o=this.getParsed(i).r;!isNaN(o)&&this.chart.getDataVisibility(i)&&(on.max&&(n.max=o))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,s=t.options,i=Math.min(n.right-n.left,n.bottom-n.top),o=Math.max(i/2,0),r=Math.max(s.cutoutPercentage?o/100*s.cutoutPercentage:1,0),a=(o-r)/t.getVisibleDatasetCount();this.outerRadius=o-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,n,s,i){const o=i==="reset",r=this.chart,l=r.options.animation,c=this._cachedMeta.rScale,u=c.xCenter,d=c.yCenter,f=c.getIndexAngle(0)-.5*Wt;let p=f,g;const m=360/this.countVisibleElements();for(g=0;g{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(t,n,s){return this.chart.getDataVisibility(t)?qe(this.resolveDataElementOptions(t,n).angle||s):0}}st(Co,"id","polarArea"),st(Co,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),st(Co,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:s,color:i}}=t.legend.options;return n.labels.map((o,r)=>{const l=t.getDatasetMeta(0).controller.getStyle(r);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:s,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,n,s){s.chart.toggleDataVisibility(n.index),s.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class ga extends Os{}st(ga,"id","pie"),st(ga,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class Ao extends Xe{getLabelAndValue(t){const n=this._cachedMeta.vScale,s=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(s[n.axis])}}parseObjectData(t,n,s,i){return b_.bind(this)(t,n,s,i)}update(t){const n=this._cachedMeta,s=n.dataset,i=n.data||[],o=n.iScale.getLabels();if(s.points=i,t!=="resize"){const r=this.resolveDatasetElementOptions(t);this.options.showLine||(r.borderWidth=0);const a={_loop:!0,_fullLoop:o.length===i.length,options:r};this.updateElement(s,void 0,a,t)}this.updateElements(i,0,i.length,t)}updateElements(t,n,s,i){const o=this._cachedMeta.rScale,r=i==="reset";for(let a=n;a0&&this.getParsed(n-1);for(let C=n;C0&&Math.abs(E[p]-M[p])>x,y&&(A.parsed=E,A.raw=c.data[C]),f&&(A.options=d||this.resolveDataElementOptions(C,v.active?"active":i)),S||this.updateElement(v,C,A,i),M=E}this.updateSharedOptions(d,i,u)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let a=0;for(let l=n.length-1;l>=0;--l)a=Math.max(a,n[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}const s=t.dataset,i=s.options&&s.options.borderWidth||0;if(!n.length)return i;const o=n[0].size(this.resolveDataElementOptions(0)),r=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,o,r)/2}}st(To,"id","scatter"),st(To,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),st(To,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});function Ss(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Ku{constructor(t){st(this,"options");this.options=t||{}}static override(t){Object.assign(Ku.prototype,t)}init(){}formats(){return Ss()}parse(){return Ss()}format(){return Ss()}add(){return Ss()}diff(){return Ss()}startOf(){return Ss()}endOf(){return Ss()}}var E$={_date:Ku};function S$(e,t,n,s){const{controller:i,data:o,_sorted:r}=e,a=i._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&r&&o.length){const l=a._reversePixels?GO:Sn;if(s){if(i._sharedOptions){const c=o[0],u=typeof c.getRange=="function"&&c.getRange(t);if(u){const d=l(o,t,n-u),f=l(o,t,n+u);return{lo:d.lo,hi:f.hi}}}}else return l(o,t,n)}return{lo:0,hi:o.length-1}}function er(e,t,n,s,i){const o=e.getSortedVisibleDatasetMetas(),r=n[t];for(let a=0,l=o.length;a{l[r](t[n],i)&&(o.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(t.x,t.y,i))}),s&&!a?[]:o}var M$={evaluateInteractionItems:er,modes:{index(e,t,n,s){const i=As(t,e),o=n.axis||"x",r=n.includeInvisible||!1,a=n.intersect?Hl(e,i,o,s,r):jl(e,i,o,!1,s,r),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(e,t,n,s){const i=As(t,e),o=n.axis||"xy",r=n.includeInvisible||!1;let a=n.intersect?Hl(e,i,o,s,r):jl(e,i,o,!1,s,r);if(a.length>0){const l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let u=0;un.pos===t)}function Nf(e,t){return e.filter(n=>M_.indexOf(n.pos)===-1&&n.box.axis===t)}function no(e,t){return e.sort((n,s)=>{const i=t?s:n,o=t?n:s;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function P$(e){const t=[];let n,s,i,o,r,a;for(n=0,s=(e||[]).length;nc.box.fullSize),!0),s=no(eo(t,"left"),!0),i=no(eo(t,"right")),o=no(eo(t,"top"),!0),r=no(eo(t,"bottom")),a=Nf(t,"x"),l=Nf(t,"y");return{fullSize:n,leftAndTop:s.concat(o),rightAndBottom:i.concat(l).concat(r).concat(a),chartArea:eo(t,"chartArea"),vertical:s.concat(i).concat(l),horizontal:o.concat(r).concat(a)}}function Ff(e,t,n,s){return Math.max(e[n],t[n])+Math.max(e[s],t[s])}function P_(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function $$(e,t,n,s){const{pos:i,box:o}=n,r=e.maxPadding;if(!Mt(i)){n.size&&(e[i]-=n.size);const d=s[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?o.height:o.width),n.size=d.size/d.count,e[i]+=n.size}o.getPadding&&P_(r,o.getPadding());const a=Math.max(0,t.outerWidth-Ff(r,e,"left","right")),l=Math.max(0,t.outerHeight-Ff(r,e,"top","bottom")),c=a!==e.w,u=l!==e.h;return e.w=a,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function L$(e){const t=e.maxPadding;function n(s){const i=Math.max(t[s]-e[s],0);return e[s]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function I$(e,t){const n=t.maxPadding;function s(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(r=>{o[r]=Math.max(t[r],n[r])}),o}return s(e?["left","right"]:["top","bottom"])}function co(e,t,n,s){const i=[];let o,r,a,l,c,u;for(o=0,r=e.length,c=0;o{typeof m.beforeLayout=="function"&&m.beforeLayout()});const u=l.reduce((m,y)=>y.box.options&&y.box.options.display===!1?m:m+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/u,hBoxMaxHeight:r/2}),f=Object.assign({},i);P_(f,ue(s));const p=Object.assign({maxPadding:f,w:o,h:r,x:i.left,y:i.top},i),g=O$(l.concat(c),d);co(a.fullSize,p,d,g),co(l,p,d,g),co(c,p,d,g)&&co(l,p,d,g),L$(p),Bf(a.leftAndTop,p,d,g),p.x+=p.w,p.y+=p.h,Bf(a.rightAndBottom,p,d,g),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},It(a.chartArea,m=>{const y=m.box;Object.assign(y,e.chartArea),y.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class k_{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,s){}removeEventListener(t,n,s){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,s,i){return n=Math.max(0,n||t.width),s=s||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):s)}}isAttached(t){return!0}updateConfig(t){}}class R$ extends k_{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Qr="$chartjs",N$={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Vf=e=>e===null||e==="";function F$(e,t){const n=e.style,s=e.getAttribute("height"),i=e.getAttribute("width");if(e[Qr]={initial:{height:s,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Vf(i)){const o=wf(e,"width");o!==void 0&&(e.width=o)}if(Vf(s))if(e.style.height==="")e.height=e.width/(t||2);else{const o=wf(e,"height");o!==void 0&&(e.height=o)}return e}const O_=HD?{passive:!0}:!1;function B$(e,t,n){e.addEventListener(t,n,O_)}function V$(e,t,n){e.canvas.removeEventListener(t,n,O_)}function H$(e,t){const n=N$[e.type]||e.type,{x:s,y:i}=As(e,t);return{type:n,chart:t,native:e,x:s!==void 0?s:null,y:i!==void 0?i:null}}function ma(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function j$(e,t,n){const s=e.canvas,i=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||ma(a.addedNodes,s),r=r&&!ma(a.removedNodes,s);r&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function W$(e,t,n){const s=e.canvas,i=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||ma(a.removedNodes,s),r=r&&!ma(a.addedNodes,s);r&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const zo=new Map;let Hf=0;function D_(){const e=window.devicePixelRatio;e!==Hf&&(Hf=e,zo.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function z$(e,t){zo.size||window.addEventListener("resize",D_),zo.set(e,t)}function U$(e){zo.delete(e),zo.size||window.removeEventListener("resize",D_)}function K$(e,t,n){const s=e.canvas,i=s&&Uu(s);if(!i)return;const o=l_((a,l)=>{const c=i.clientWidth;n(a,l),c{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||o(c,u)});return r.observe(i),z$(e,o),r}function Wl(e,t,n){n&&n.disconnect(),t==="resize"&&U$(e)}function Y$(e,t,n){const s=e.canvas,i=l_(o=>{e.ctx!==null&&n(H$(o,e))},e);return B$(s,t,i),i}class G$ extends k_{acquireContext(t,n){const s=t&&t.getContext&&t.getContext("2d");return s&&s.canvas===t?(F$(t,n),s):null}releaseContext(t){const n=t.canvas;if(!n[Qr])return!1;const s=n[Qr].initial;["height","width"].forEach(o=>{const r=s[o];Dt(r)?n.removeAttribute(o):n.setAttribute(o,r)});const i=s.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[Qr],!0}addEventListener(t,n,s){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),r={attach:j$,detach:W$,resize:K$}[n]||Y$;i[n]=r(t,n,s)}removeEventListener(t,n){const s=t.$proxies||(t.$proxies={}),i=s[n];if(!i)return;({attach:Wl,detach:Wl,resize:Wl}[n]||V$)(t,n,i),s[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,s,i){return VD(t,n,s,i)}isAttached(t){const n=Uu(t);return!!(n&&n.isConnected)}}function q$(e){return!zu()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?R$:G$}var jr;let On=(jr=class{constructor(){st(this,"x");st(this,"y");st(this,"active",!1);st(this,"options");st(this,"$animations")}tooltipPosition(t){const{x:n,y:s}=this.getProps(["x","y"],t);return{x:n,y:s}}hasValue(){return Ni(this.x)&&Ni(this.y)}getProps(t,n){const s=this.$animations;if(!n||!s)return this;const i={};return t.forEach(o=>{i[o]=s[o]&&s[o].active()?s[o]._to:this[o]}),i}},st(jr,"defaults",{}),st(jr,"defaultRoutes"),jr);function X$(e,t){const n=e.options.ticks,s=Q$(e),i=Math.min(n.maxTicksLimit||s,s),o=n.major.enabled?Z$(t):[],r=o.length,a=o[0],l=o[r-1],c=[];if(r>i)return tL(t,c,o,r/i),c;const u=J$(o,t,i);if(r>0){let d,f;const p=r>1?Math.round((l-a)/(r-1)):null;for(Ir(t,c,u,Dt(p)?0:a-p,a),d=0,f=r-1;di)return l}return Math.max(i,1)}function Z$(e){const t=[];let n,s;for(n=0,s=e.length;ne==="left"?"right":e==="right"?"left":e,jf=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,Wf=(e,t)=>Math.min(t||e,e);function zf(e,t){const n=[],s=e.length/t,i=e.length;let o=0;for(;or+a)))return l}function iL(e,t){It(e,n=>{const s=n.gc,i=s.length/2;let o;if(i>t){for(o=0;os?s:n,s=i&&n>s?n:s,{min:Se(n,Se(s,n)),max:Se(s,Se(n,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Ft(this.options.beforeUpdate,[this])}update(t,n,s){const{beginAtZero:i,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=s=Object.assign({left:0,right:0,top:0,bottom:0},s),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+s.left+s.right:this.height+s.top+s.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=bD(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a=o||s<=1||!this.isHorizontal()){this.labelRotation=i;return}const u=this._getLabelSizes(),d=u.widest.width,f=u.highest.height,p=oe(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/s:p/(s-1),d+6>a&&(a=p/(s-(t.offset?.5:1)),l=this.maxHeight-so(t.grid)-n.padding-Uf(t.title,this.chart.options.font),c=Math.sqrt(d*d+f*f),r=Ru(Math.min(Math.asin(oe((u.highest.height+6)/a,-1,1)),Math.asin(oe(l/c,-1,1))-Math.asin(oe(f/c,-1,1)))),r=Math.max(i,Math.min(o,r))),this.labelRotation=r}afterCalculateLabelRotation(){Ft(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ft(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:s,title:i,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const l=Uf(i,n.options.font);if(a?(t.width=this.maxWidth,t.height=so(o)+l):(t.height=this.maxHeight,t.width=so(o)+l),s.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:f}=this._getLabelSizes(),p=s.padding*2,g=qe(this.labelRotation),m=Math.cos(g),y=Math.sin(g);if(a){const x=s.mirror?0:y*d.width+m*f.height;t.height=Math.min(this.maxHeight,t.height+x+p)}else{const x=s.mirror?0:m*d.width+y*f.height;t.width=Math.min(this.maxWidth,t.width+x+p)}this._calculatePadding(c,u,y,m)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,s,i){const{ticks:{align:o,padding:r},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,p=0;l?c?(f=i*t.width,p=s*n.height):(f=s*t.height,p=i*n.width):o==="start"?p=n.width:o==="end"?f=t.width:o!=="inner"&&(f=t.width/2,p=n.width/2),this.paddingLeft=Math.max((f-u+r)*this.width/(this.width-u),0),this.paddingRight=Math.max((p-d+r)*this.width/(this.width-d),0)}else{let u=n.height/2,d=t.height/2;o==="start"?(u=0,d=t.height):o==="end"&&(u=n.height,d=0),this.paddingTop=u+r,this.paddingBottom=d+r}}_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(){Ft(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,s;for(n=0,s=t.length;n({width:r[k]||0,height:a[k]||0});return{first:w(0),last:w(n-1),widest:w(E),highest:w(A),widths:r,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return YO(this._alignToPixels?Es(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&ta*i?a/s:l/i:l*i0}_computeGridLineItems(t){const n=this.axis,s=this.chart,i=this.options,{grid:o,position:r,border:a}=i,l=o.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=so(o),p=[],g=a.setContext(this.getContext()),m=g.display?g.width:0,y=m/2,x=function(R){return Es(s,R,m)};let S,M,C,v,E,A,w,k,$,L,N,X;if(r==="top")S=x(this.bottom),A=this.bottom-f,k=S-y,L=x(t.top)+y,X=t.bottom;else if(r==="bottom")S=x(this.top),L=t.top,X=x(t.bottom)-y,A=S+y,k=this.top+f;else if(r==="left")S=x(this.right),E=this.right-f,w=S-y,$=x(t.left)+y,N=t.right;else if(r==="right")S=x(this.left),$=t.left,N=x(t.right)-y,E=S+y,w=this.left+f;else if(n==="x"){if(r==="center")S=x((t.top+t.bottom)/2+.5);else if(Mt(r)){const R=Object.keys(r)[0],W=r[R];S=x(this.chart.scales[R].getPixelForValue(W))}L=t.top,X=t.bottom,A=S+y,k=A+f}else if(n==="y"){if(r==="center")S=x((t.left+t.right)/2);else if(Mt(r)){const R=Object.keys(r)[0],W=r[R];S=x(this.chart.scales[R].getPixelForValue(W))}E=S-y,w=E-f,$=t.left,N=t.right}const Y=yt(i.ticks.maxTicksLimit,d),H=Math.max(1,Math.ceil(d/Y));for(M=0;M0&&(wt-=xt/2);break}pt={left:wt,top:Pt,width:xt+ft.width,height:St+ft.height,color:H.backdropColor}}y.push({label:C,font:k,textOffset:N,options:{rotation:m,color:W,strokeColor:U,strokeWidth:it,textAlign:lt,textBaseline:X,translation:[v,E],backdrop:pt}})}return y}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-qe(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:s,mirror:i,padding:o}}=this.options,r=this._getLabelSizes(),a=t+o,l=r.widest.width;let c,u;return n==="left"?i?(u=this.right+o,s==="near"?c="left":s==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,s==="near"?c="right":s==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?i?(u=this.left+o,s==="near"?c="right":s==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,s==="near"?c="left":s==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:s,top:i,width:o,height:r}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(s,i,o,r),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(o=>o.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,s=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,r;const a=(l,c,u)=>{!u.width||!u.color||(s.save(),s.lineWidth=u.width,s.strokeStyle=u.color,s.setLineDash(u.borderDash||[]),s.lineDashOffset=u.borderDashOffset,s.beginPath(),s.moveTo(l.x,l.y),s.lineTo(c.x,c.y),s.stroke(),s.restore())};if(n.display)for(o=0,r=i.length;o{this.draw(o)}}]:[{z:s,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",i=[];let o,r;for(o=0,r=n.length;o{const s=n.split("."),i=s.pop(),o=[e].concat(s).join("."),r=t[n].split("."),a=r.pop(),l=r.join(".");Gt.route(o,i,l,a)})}function dL(e){return"id"in e&&"defaults"in e}class hL{constructor(){this.controllers=new Rr(Xe,"datasets",!0),this.elements=new Rr(On,"elements"),this.plugins=new Rr(Object,"plugins"),this.scales=new Rr(Ks,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,s){[...n].forEach(i=>{const o=s||this._getRegistryForType(i);s||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):It(i,r=>{const a=s||this._getRegistryForType(r);this._exec(t,a,r)})})}_exec(t,n,s){const i=Iu(t);Ft(s["before"+i],[],s),n[t](s),Ft(s["after"+i],[],s)}_getRegistryForType(t){for(let n=0;no.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(i(n,s),t,"stop"),this._notify(i(s,n),t,"start")}}function pL(e){const t={},n=[],s=Object.keys(en.plugins.items);for(let o=0;o1&&Kf(e[0].toLowerCase());if(s)return s}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Yf(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function xL(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(s=>s.xAxisID===e||s.yAxisID===e);if(n.length)return Yf(e,"x",n[0])||Yf(e,"y",n[0])}return{}}function wL(e,t){const n=Hs[e.type]||{scales:{}},s=t.scales||{},i=Cc(e.type,t),o=Object.create(null);return Object.keys(s).forEach(r=>{const a=s[r];if(!Mt(a))return console.error(`Invalid scale configuration for scale: ${r}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);const l=Ac(r,a,xL(r,e),Gt.scales[a.type]),c=yL(l,i),u=n.scales||{};o[r]=vo(Object.create(null),[{axis:l},a,u[l],u[c]])}),e.data.datasets.forEach(r=>{const a=r.type||e.type,l=r.indexAxis||Cc(a,t),u=(Hs[a]||{}).scales||{};Object.keys(u).forEach(d=>{const f=bL(d,l),p=r[f+"AxisID"]||f;o[p]=o[p]||Object.create(null),vo(o[p],[{axis:f},s[p],u[d]])})}),Object.keys(o).forEach(r=>{const a=o[r];vo(a,[Gt.scales[a.type],Gt.scale])}),o}function $_(e){const t=e.options||(e.options={});t.plugins=yt(t.plugins,{}),t.scales=wL(e,t)}function L_(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function EL(e){return e=e||{},e.data=L_(e.data),$_(e),e}const Gf=new Map,I_=new Set;function Nr(e,t){let n=Gf.get(e);return n||(n=t(),Gf.set(e,n),I_.add(n)),n}const io=(e,t,n)=>{const s=ss(t,n);s!==void 0&&e.add(s)};let SL=class{constructor(t){this._config=EL(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=L_(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),$_(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Nr(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Nr(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Nr(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,s=this.type;return Nr(`${s}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const s=this._scopeCache;let i=s.get(t);return(!i||n)&&(i=new Map,s.set(t,i)),i}getOptionScopes(t,n,s){const{options:i,type:o}=this,r=this._cachedScopes(t,s),a=r.get(n);if(a)return a;const l=new Set;n.forEach(u=>{t&&(l.add(t),u.forEach(d=>io(l,t,d))),u.forEach(d=>io(l,i,d)),u.forEach(d=>io(l,Hs[o]||{},d)),u.forEach(d=>io(l,Gt,d)),u.forEach(d=>io(l,Ec,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),I_.has(n)&&r.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Hs[n]||{},Gt.datasets[n]||{},{type:n},Gt,Ec]}resolveNamedOptions(t,n,s,i=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=qf(this._resolverCache,t,i);let l=r;if(AL(r,n)){o.$shared=!1,s=is(s)?s():s;const c=this.createResolver(t,s,a);l=Fi(r,s,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,s=[""],i){const{resolver:o}=qf(this._resolverCache,t,s);return Mt(n)?Fi(o,n,void 0,i):o}};function qf(e,t,n){let s=e.get(t);s||(s=new Map,e.set(t,s));const i=n.join();let o=s.get(i);return o||(o={resolver:Hu(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},s.set(i,o)),o}const CL=e=>Mt(e)&&Object.getOwnPropertyNames(e).some(t=>is(e[t]));function AL(e,t){const{isScriptable:n,isIndexable:s}=p_(e);for(const i of t){const o=n(i),r=s(i),a=(r||o)&&e[i];if(o&&(is(a)||CL(a))||r&&Ht(a))return!0}return!1}var TL="4.4.1";const ML=["top","bottom","left","right","chartArea"];function Xf(e,t){return e==="top"||e==="bottom"||ML.indexOf(e)===-1&&t==="x"}function Qf(e,t){return function(n,s){return n[e]===s[e]?n[t]-s[t]:n[e]-s[e]}}function Jf(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Ft(n&&n.onComplete,[e],t)}function PL(e){const t=e.chart,n=t.options.animation;Ft(n&&n.onProgress,[e],t)}function R_(e){return zu()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Jr={},Zf=e=>{const t=R_(e);return Object.values(Jr).filter(n=>n.canvas===t).pop()};function kL(e,t,n){const s=Object.keys(e);for(const i of s){const o=+i;if(o>=t){const r=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=r)}}}function OL(e,t,n,s){return!n||e.type==="mouseout"?null:s?t:e}function Fr(e,t,n){return e.options.clip?e[n]:t[n]}function DL(e,t){const{xScale:n,yScale:s}=e;return n&&s?{left:Fr(n,t,"left"),right:Fr(n,t,"right"),top:Fr(s,t,"top"),bottom:Fr(s,t,"bottom")}:t}var Fn;let nr=(Fn=class{static register(...t){en.add(...t),tp()}static unregister(...t){en.remove(...t),tp()}constructor(t,n){const s=this.config=new SL(n),i=R_(t),o=Zf(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 r=s.createResolver(s.chartOptionScopes(),this.getContext());this.platform=new(s.platform||q$(i)),this.platform.updateConfig(s);const a=this.platform.acquireContext(i,r.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;if(this.id=IO(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=r,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 fL,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=QO(d=>this.update(d),r.resizeDelay||0),this._dataChanges=[],Jr[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}bn.listen(this,"complete",Jf),bn.listen(this,"progress",PL),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:s,height:i,_aspectRatio:o}=this;return Dt(t)?n&&o?o:i?s/i: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 en}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():xf(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return bf(this.canvas,this.ctx),this}stop(){return bn.stop(this),this}resize(t,n){bn.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const s=this.options,i=this.canvas,o=s.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(i,t,n,o),a=s.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,xf(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),Ft(s.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};It(n,(s,i)=>{s.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,s=this.scales,i=Object.keys(s).reduce((r,a)=>(r[a]=!1,r),{});let o=[];n&&(o=o.concat(Object.keys(n).map(r=>{const a=n[r],l=Ac(r,a),c=l==="r",u=l==="x";return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),It(o,r=>{const a=r.options,l=a.id,c=Ac(l,a),u=yt(a.type,r.dtype);(a.position===void 0||Xf(a.position,c)!==Xf(r.dposition))&&(a.position=r.dposition),i[l]=!0;let d=null;if(l in s&&s[l].type===u)d=s[l];else{const f=en.getScale(u);d=new f({id:l,type:u,ctx:this.ctx,chart:this}),s[d.id]=d}d.init(a,t)}),It(i,(r,a)=>{r||delete s[a]}),It(s,r=>{je.configure(this,r,r.options),je.addBox(this,r)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,s=t.length;if(t.sort((i,o)=>i.index-o.index),s>n){for(let i=n;in.length&&delete this._stacks,t.forEach((s,i)=>{n.filter(o=>o===s._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let s,i;for(this._removeUnreferencedMetasets(),s=0,i=n.length;s{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const s=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!s.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let c=0,u=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Qf("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){It(this.scales,t=>{je.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),s=new Set(t.events);(!cf(n,s)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:s,start:i,count:o}of n){const r=s==="_removeElements"?-o:o;kL(t,i,r)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,s=o=>new Set(t.filter(r=>r[0]===o).map((r,a)=>a+","+r.splice(1).join(","))),i=s(0);for(let o=1;oo.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;je.update(this,this.width,this.height,t);const n=this.chartArea,s=n.width<=0||n.height<=0;this._layers=[],It(this.boxes,i=>{s&&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(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,s=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,s=t._clip,i=!s.disabled,o=DL(t,this.chartArea),r={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(i&&Za(n,{left:s.left===!1?0:o.left-s.left,right:s.right===!1?this.width:o.right+s.right,top:s.top===!1?0:o.top-s.top,bottom:s.bottom===!1?this.height:o.bottom+s.bottom}),t.controller.draw(),i&&tl(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return Cn(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,s,i){const o=M$.modes[n];return typeof o=="function"?o(this,t,s,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],s=this._metasets;let i=s.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:t,_dataset:n,_parsed:[],_sorted:!1},s.push(i)),i}getContext(){return this.$context||(this.$context=ls(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const s=this.getDatasetMeta(t);return typeof s.hidden=="boolean"?!s.hidden:!n.hidden}setDatasetVisibility(t,n){const s=this.getDatasetMeta(t);s.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,s){const i=s?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,i);Ho(n)?(o.data[n].hidden=!s,this.update()):(this.setDatasetVisibility(t,s),r.update(o,{visible:s}),this.update(a=>a.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),bn.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,o,r),t[o]=r},i=(o,r,a)=>{o.offsetX=r,o.offsetY=a,this._eventHandler(o)};It(this.options.events,o=>s(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,s=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},i=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let r;const a=()=>{i("attach",a),this.attached=!0,this.resize(),s("resize",o),s("detach",r)};r=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),s("attach",a)},n.isAttached(this.canvas)?a():r()}unbindEvents(){It(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},It(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,s){const i=s?"set":"remove";let o,r,a,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),a=0,l=t.length;a{const a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[r],index:r}});!ua(s,n)&&(this._active=s,this._lastEvent=null,this._updateHoverStyles(s,n))}notifyPlugins(t,n,s){return this._plugins.notify(this,t,n,s)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,s){const i=this.options.hover,o=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),r=o(n,t),a=s?t:o(t,n);r.length&&this.updateHoverStyle(r,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,n){const s={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=r=>(r.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",s,i)===!1)return;const o=this._handleEvent(t,n,s.inChartArea);return s.cancelable=!1,this.notifyPlugins("afterEvent",s,i),(o||s.changed)&&this.render(),this}_handleEvent(t,n,s){const{_active:i=[],options:o}=this,r=n,a=this._getActiveElements(t,i,s,r),l=HO(t),c=OL(t,this._lastEvent,s,l);s&&(this._lastEvent=null,Ft(o.onHover,[t,a,this],this),l&&Ft(o.onClick,[t,a,this],this));const u=!ua(a,i);return(u||n)&&(this._active=a,this._updateHoverStyles(a,i,n)),this._lastEvent=c,u}_getActiveElements(t,n,s,i){if(t.type==="mouseout")return[];if(!s)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}},st(Fn,"defaults",Gt),st(Fn,"instances",Jr),st(Fn,"overrides",Hs),st(Fn,"registry",en),st(Fn,"version",TL),st(Fn,"getChart",Zf),Fn);function tp(){return It(nr.instances,e=>e._plugins.invalidate())}function $L(e,t,n){const{startAngle:s,pixelMargin:i,x:o,y:r,outerRadius:a,innerRadius:l}=t;let c=i/a;e.beginPath(),e.arc(o,r,a,s-c,n+c),l>i?(c=i/l,e.arc(o,r,l,n+c,s-c,!0)):e.arc(o,r,i,n+Xt,s-Xt),e.closePath(),e.clip()}function LL(e){return Vu(e,["outerStart","outerEnd","innerStart","innerEnd"])}function IL(e,t,n,s){const i=LL(e.options.borderRadius),o=(n-t)/2,r=Math.min(o,s*t/2),a=l=>{const c=(n-Math.min(o,l))*s/2;return oe(l,0,Math.min(o,c))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:oe(i.innerStart,0,r),innerEnd:oe(i.innerEnd,0,r)}}function ii(e,t,n,s){return{x:n+e*Math.cos(t),y:s+e*Math.sin(t)}}function _a(e,t,n,s,i,o){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+s+n-c,0),f=u>0?u+s+n+c:0;let p=0;const g=i-l;if(s){const H=u>0?u-s:0,R=d>0?d-s:0,W=(H+R)/2,U=W!==0?g*W/(W+s):g;p=(g-U)/2}const m=Math.max(.001,g*d-n/Wt)/d,y=(g-m)/2,x=l+y+p,S=i-y-p,{outerStart:M,outerEnd:C,innerStart:v,innerEnd:E}=IL(t,f,d,S-x),A=d-M,w=d-C,k=x+M/A,$=S-C/w,L=f+v,N=f+E,X=x+v/L,Y=S-E/N;if(e.beginPath(),o){const H=(k+$)/2;if(e.arc(r,a,d,k,H),e.arc(r,a,d,H,$),C>0){const it=ii(w,$,r,a);e.arc(it.x,it.y,C,$,S+Xt)}const R=ii(N,S,r,a);if(e.lineTo(R.x,R.y),E>0){const it=ii(N,Y,r,a);e.arc(it.x,it.y,E,S+Xt,Y+Math.PI)}const W=(S-E/f+(x+v/f))/2;if(e.arc(r,a,f,S-E/f,W,!0),e.arc(r,a,f,W,x+v/f,!0),v>0){const it=ii(L,X,r,a);e.arc(it.x,it.y,v,X+Math.PI,x-Xt)}const U=ii(A,x,r,a);if(e.lineTo(U.x,U.y),M>0){const it=ii(A,k,r,a);e.arc(it.x,it.y,M,x-Xt,k)}}else{e.moveTo(r,a);const H=Math.cos(k)*d+r,R=Math.sin(k)*d+a;e.lineTo(H,R);const W=Math.cos($)*d+r,U=Math.sin($)*d+a;e.lineTo(W,U)}e.closePath()}function RL(e,t,n,s,i){const{fullCircles:o,startAngle:r,circumference:a}=t;let l=t.endAngle;if(o){_a(e,t,n,s,l,i);for(let c=0;c=jt||jo(r,l,c),y=En(a,u+p,d+p);return m&&y}getCenterPoint(n){const{x:s,y:i,startAngle:o,endAngle:r,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:u}=this.options,d=(o+r)/2,f=(a+l+u+c)/2;return{x:s+Math.cos(d)*f,y:i+Math.sin(d)*f}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:s,circumference:i}=this,o=(s.offset||0)/4,r=(s.spacing||0)/2,a=s.circular;if(this.pixelMargin=s.borderAlign==="inner"?.33:0,this.fullCircles=i>jt?Math.floor(i/jt):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*o,Math.sin(l)*o);const c=1-Math.sin(Math.min(Wt,i||0)),u=o*c;n.fillStyle=s.backgroundColor,n.strokeStyle=s.borderColor,RL(n,this,u,r,a),NL(n,this,u,r,a),n.restore()}}st(ci,"id","arc"),st(ci,"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(ci,"defaultRoutes",{backgroundColor:"backgroundColor"}),st(ci,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function N_(e,t,n=t){e.lineCap=yt(n.borderCapStyle,t.borderCapStyle),e.setLineDash(yt(n.borderDash,t.borderDash)),e.lineDashOffset=yt(n.borderDashOffset,t.borderDashOffset),e.lineJoin=yt(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=yt(n.borderWidth,t.borderWidth),e.strokeStyle=yt(n.borderColor,t.borderColor)}function FL(e,t,n){e.lineTo(n.x,n.y)}function BL(e){return e.stepped?cD:e.tension||e.cubicInterpolationMode==="monotone"?uD:FL}function F_(e,t,n={}){const s=e.length,{start:i=0,end:o=s-1}=n,{start:r,end:a}=t,l=Math.max(i,r),c=Math.min(o,a),u=ia&&o>a;return{count:s,start:l,loop:t.loop,ilen:c(r+(c?a-C:C))%o,M=()=>{m!==y&&(e.lineTo(u,y),e.lineTo(u,m),e.lineTo(u,x))};for(l&&(p=i[S(0)],e.moveTo(p.x,p.y)),f=0;f<=a;++f){if(p=i[S(f)],p.skip)continue;const C=p.x,v=p.y,E=C|0;E===g?(vy&&(y=v),u=(d*u+C)/++d):(M(),e.lineTo(C,v),g=E,d=0,m=y=v),x=v}M()}function Tc(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?HL:VL}function jL(e){return e.stepped?jD:e.tension||e.cubicInterpolationMode==="monotone"?WD:Ts}function WL(e,t,n,s){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,s)&&i.closePath()),N_(e,t.options),e.stroke(i)}function zL(e,t,n,s){const{segments:i,options:o}=t,r=Tc(t);for(const a of i)N_(e,o,a.style),e.beginPath(),r(e,t,a,{start:n,end:n+s-1})&&e.closePath(),e.stroke()}const UL=typeof Path2D=="function";function KL(e,t,n,s){UL&&!t.options.segment?WL(e,t,n,s):zL(e,t,n,s)}class An extends On{constructor(t){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,t&&Object.assign(this,t)}updateControlPoints(t,n){const s=this.options;if((s.tension||s.cubicInterpolationMode==="monotone")&&!s.stepped&&!this._pointsUpdated){const i=s.spanGaps?this._loop:this._fullLoop;LD(this._points,s,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=qD(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,s=t.length;return s&&n[t[s-1].end]}interpolate(t,n){const s=this.options,i=t[n],o=this.points,r=S_(this,{property:n,start:i,end:i});if(!r.length)return;const a=[],l=jL(s);let c,u;for(c=0,u=r.length;ct!=="borderDash"&&t!=="fill"});function ep(e,t,n,s){const i=e.options,{[n]:o}=e.getProps([n],s);return Math.abs(t-o)=n)return e.slice(t,t+n);const r=[],a=(n-2)/(o-2);let l=0;const c=t+n-1;let u=t,d,f,p,g,m;for(r[l++]=e[u],d=0;dp&&(p=g,f=e[S],m=S);r[l++]=f,u=m}return r[l++]=e[c],r}function ZL(e,t,n,s){let i=0,o=0,r,a,l,c,u,d,f,p,g,m;const y=[],x=t+n-1,S=e[t].x,C=e[x].x-S;for(r=t;rm&&(m=c,f=r),i=(o*i+a.x)/++o;else{const E=r-1;if(!Dt(d)&&!Dt(f)){const A=Math.min(d,f),w=Math.max(d,f);A!==p&&A!==E&&y.push({...e[A],x:i}),w!==p&&w!==E&&y.push({...e[w],x:i})}r>0&&E!==p&&y.push(e[E]),y.push(a),u=v,o=0,g=m=c,d=f=p=r}}return y}function V_(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function np(e){e.data.datasets.forEach(t=>{V_(t)})}function tI(e,t){const n=t.length;let s=0,i;const{iScale:o}=e,{min:r,max:a,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(s=oe(Sn(t,o.axis,r).lo,0,n-1)),c?i=oe(Sn(t,o.axis,a).hi+1,s,n)-s:i=n-s,{start:s,count:i}}var H_={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){np(e);return}const s=e.width;e.data.datasets.forEach((i,o)=>{const{_data:r,indexAxis:a}=i,l=e.getDatasetMeta(o),c=r||i.data;if(lo([a,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const u=e.scales[l.xAxisID];if(u.type!=="linear"&&u.type!=="time"||e.options.parsing)return;let{start:d,count:f}=tI(l,c);const p=n.threshold||4*s;if(f<=p){V_(i);return}Dt(r)&&(i._data=c,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(m){this._data=m}}));let g;switch(n.algorithm){case"lttb":g=JL(c,d,f,s,n);break;case"min-max":g=ZL(c,d,f,s);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=g})},destroy(e){np(e)}};function eI(e,t,n){const s=e.segments,i=e.points,o=t.points,r=[];for(const a of s){let{start:l,end:c}=a;c=Yu(l,c,i);const u=Mc(n,i[l],i[c],a.loop);if(!t.segments){r.push({source:a,target:u,start:i[l],end:i[c]});continue}const d=S_(t,u);for(const f of d){const p=Mc(n,o[f.start],o[f.end],f.loop),g=E_(a,i,p);for(const m of g)r.push({source:m,target:f,start:{[n]:sp(u,p,"start",Math.max)},end:{[n]:sp(u,p,"end",Math.min)}})}}return r}function Mc(e,t,n,s){if(s)return;let i=t[e],o=n[e];return e==="angle"&&(i=Ae(i),o=Ae(o)),{property:e,start:i,end:o}}function nI(e,t){const{x:n=null,y:s=null}=e||{},i=t.points,o=[];return t.segments.forEach(({start:r,end:a})=>{a=Yu(r,a,i);const l=i[r],c=i[a];s!==null?(o.push({x:l.x,y:s}),o.push({x:c.x,y:s})):n!==null&&(o.push({x:n,y:l.y}),o.push({x:n,y:c.y}))}),o}function Yu(e,t,n){for(;t>e;t--){const s=n[t];if(!isNaN(s.x)&&!isNaN(s.y))break}return t}function sp(e,t,n,s){return e&&t?s(e[n],t[n]):e?e[n]:t?t[n]:0}function j_(e,t){let n=[],s=!1;return Ht(e)?(s=!0,n=e):n=nI(e,t),n.length?new An({points:n,options:{tension:0},_loop:s,_fullLoop:s}):null}function ip(e){return e&&e.fill!==!1}function sI(e,t,n){let i=e[t].fill;const o=[t];let r;if(!n)return i;for(;i!==!1&&o.indexOf(i)===-1;){if(!Yt(i))return i;if(r=e[i],!r)return!1;if(r.visible)return i;o.push(i),i=r.fill}return!1}function iI(e,t,n){const s=lI(e);if(Mt(s))return isNaN(s.value)?!1:s;let i=parseFloat(s);return Yt(i)&&Math.floor(i)===i?oI(s[0],t,i,n):["origin","start","end","stack","shape"].indexOf(s)>=0&&s}function oI(e,t,n,s){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=s?!1:n}function rI(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:Mt(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function aI(e,t,n){let s;return e==="start"?s=n:e==="end"?s=t.options.reverse?t.min:t.max:Mt(e)?s=e.value:s=t.getBaseValue(),s}function lI(e){const t=e.options,n=t.fill;let s=yt(n&&n.target,n);return s===void 0&&(s=!!t.backgroundColor),s===!1||s===null?!1:s===!0?"origin":s}function cI(e){const{scale:t,index:n,line:s}=e,i=[],o=s.segments,r=s.points,a=uI(t,n);a.push(j_({x:null,y:t.bottom},s));for(let l=0;l=0;--r){const a=i[r].$filler;a&&(a.line.updateControlPoints(o,a.axis),s&&a.fill&&Kl(e.ctx,a,o))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const s=e.getSortedVisibleDatasetMetas();for(let i=s.length-1;i>=0;--i){const o=s[i].$filler;ip(o)&&Kl(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,t,n){const s=t.meta.$filler;!ip(s)||n.drawTime!=="beforeDatasetDraw"||Kl(e.ctx,s,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const lp=(e,t)=>{let{boxHeight:n=t,boxWidth:s=t}=e;return e.usePointStyle&&(n=Math.min(n,t),s=e.pointStyleWidth||Math.min(s,t)),{boxWidth:s,boxHeight:n,itemHeight:Math.max(t,n)}},vI=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class cp extends On{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.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(t,n,s){this.maxWidth=t,this.maxHeight=n,this._margins=s,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 t=this.options.labels||{};let n=Ft(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(s=>t.filter(s,this.chart.data))),t.sort&&(n=n.sort((s,i)=>t.sort(s,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const s=t.labels,i=ee(s.font),o=i.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=lp(s,o);let c,u;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(r,o,a,l)+10):(u=this.maxHeight,c=this._fitCols(r,i,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,n,s,i){const{ctx:o,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=i+a;let d=t;o.textAlign="left",o.textBaseline="middle";let f=-1,p=-u;return this.legendItems.forEach((g,m)=>{const y=s+n/2+o.measureText(g.text).width;(m===0||c[c.length-1]+y+2*a>r)&&(d+=u,c[c.length-(m>0?0:1)]=0,p+=u,f++),l[m]={left:0,top:p,row:f,width:y,height:i},c[c.length-1]+=y+a}),d}_fitCols(t,n,s,i){const{ctx:o,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=r-t;let d=a,f=0,p=0,g=0,m=0;return this.legendItems.forEach((y,x)=>{const{itemWidth:S,itemHeight:M}=xI(s,n,o,y,i);x>0&&p+M+2*a>u&&(d+=f+a,c.push({width:f,height:p}),g+=f+a,m++,f=p=0),l[x]={left:g,top:p,col:m,width:S,height:M},f=Math.max(f,S),p+=M+a}),d+=f,c.push({width:f,height:p}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:s,labels:{padding:i},rtl:o}}=this,r=mi(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=le(s,this.left+i,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=le(s,this.left+i,this.right-this.lineWidths[a])),c.top+=this.top+t+i,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+i}else{let a=0,l=le(s,this.top+t+i,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=le(s,this.top+t+i,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+i,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Za(t,this),this._draw(),tl(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:s,ctx:i}=this,{align:o,labels:r}=t,a=Gt.color,l=mi(t.rtl,this.left,this.width),c=ee(r.font),{padding:u}=r,d=c.size,f=d/2;let p;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:g,boxHeight:m,itemHeight:y}=lp(r,d),x=function(E,A,w){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;i.save();const k=yt(w.lineWidth,1);if(i.fillStyle=yt(w.fillStyle,a),i.lineCap=yt(w.lineCap,"butt"),i.lineDashOffset=yt(w.lineDashOffset,0),i.lineJoin=yt(w.lineJoin,"miter"),i.lineWidth=k,i.strokeStyle=yt(w.strokeStyle,a),i.setLineDash(yt(w.lineDash,[])),r.usePointStyle){const $={radius:m*Math.SQRT2/2,pointStyle:w.pointStyle,rotation:w.rotation,borderWidth:k},L=l.xPlus(E,g/2),N=A+f;h_(i,$,L,N,r.pointStyleWidth&&g)}else{const $=A+Math.max((d-m)/2,0),L=l.leftForLtr(E,g),N=Ns(w.borderRadius);i.beginPath(),Object.values(N).some(X=>X!==0)?Wo(i,{x:L,y:$,w:g,h:m,radius:N}):i.rect(L,$,g,m),i.fill(),k!==0&&i.stroke()}i.restore()},S=function(E,A,w){js(i,w.text,E,A+y/2,c,{strikethrough:w.hidden,textAlign:l.textAlign(w.textAlign)})},M=this.isHorizontal(),C=this._computeTitleHeight();M?p={x:le(o,this.left+u,this.right-s[0]),y:this.top+u+C,line:0}:p={x:this.left+u,y:le(o,this.top+C+u,this.bottom-n[0].height),line:0},v_(this.ctx,t.textDirection);const v=y+u;this.legendItems.forEach((E,A)=>{i.strokeStyle=E.fontColor,i.fillStyle=E.fontColor;const w=i.measureText(E.text).width,k=l.textAlign(E.textAlign||(E.textAlign=r.textAlign)),$=g+f+w;let L=p.x,N=p.y;l.setWidth(this.width),M?A>0&&L+$+u>this.right&&(N=p.y+=v,p.line++,L=p.x=le(o,this.left+u,this.right-s[p.line])):A>0&&N+v>this.bottom&&(L=p.x=L+n[p.line].width+u,p.line++,N=p.y=le(o,this.top+C+u,this.bottom-n[p.line].height));const X=l.x(L);if(x(X,N,E),L=JO(k,L+g+f,M?L+$:this.right,t.rtl),S(l.x(L),N,E),M)p.x+=$+u;else if(typeof E.text!="string"){const Y=c.lineHeight;p.y+=U_(E,Y)+u}else p.y+=v}),x_(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,s=ee(n.font),i=ue(n.padding);if(!n.display)return;const o=mi(t.rtl,this.left,this.width),r=this.ctx,a=n.position,l=s.size/2,c=i.top+l;let u,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),u=this.top+c,d=le(t.align,d,this.right-f);else{const g=this.columnSizes.reduce((m,y)=>Math.max(m,y.height),0);u=c+le(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const p=le(a,d,d+f);r.textAlign=o.textAlign(Fu(a)),r.textBaseline="middle",r.strokeStyle=n.color,r.fillStyle=n.color,r.font=s.string,js(r,n.text,p,u,s)}_computeTitleHeight(){const t=this.options.title,n=ee(t.font),s=ue(t.padding);return t.display?n.lineHeight+s.height:0}_getLegendItemAt(t,n){let s,i,o;if(En(t,this.left,this.right)&&En(n,this.top,this.bottom)){for(o=this.legendHitBoxes,s=0;so.length>r.length?o:r)),t+n.size/2+s.measureText(i).width}function EI(e,t,n){let s=e;return typeof t.text!="string"&&(s=U_(t,n)),s}function U_(e,t){const n=e.text?e.text.length:0;return t*n}function SI(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var K_={id:"legend",_element:cp,start(e,t,n){const s=e.legend=new cp({ctx:e.ctx,options:n,chart:e});je.configure(e,s,n),je.addBox(e,s)},stop(e){je.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const s=e.legend;je.configure(e,s,n),s.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const s=t.datasetIndex,i=n.chart;i.isDatasetVisible(s)?(i.hide(s),t.hidden=!0):(i.show(s),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:s,textAlign:i,color:o,useBorderRadius:r,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=ue(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:s||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:r&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Y_ extends On{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.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(t,n){const s=this.options;if(this.left=0,this.top=0,!s.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=Ht(s.text)?s.text.length:1;this._padding=ue(s.padding);const o=i*ee(s.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:s,bottom:i,right:o,options:r}=this,a=r.align;let l=0,c,u,d;return this.isHorizontal()?(u=le(a,s,o),d=n+t,c=o-s):(r.position==="left"?(u=s+t,d=le(a,i,n),l=Wt*-.5):(u=o-t,d=le(a,n,i),l=Wt*.5),c=i-n),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const s=ee(n.font),o=s.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);js(t,n.text,0,0,s,{color:n.color,maxWidth:l,rotation:c,textAlign:Fu(n.align),textBaseline:"middle",translation:[r,a]})}}function CI(e,t){const n=new Y_({ctx:e.ctx,options:t,chart:e});je.configure(e,n,t),je.addBox(e,n),e.titleBlock=n}var G_={id:"title",_element:Y_,start(e,t,n){CI(e,n)},stop(e){const t=e.titleBlock;je.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const s=e.titleBlock;je.configure(e,s,n),s.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 uo={average(e){if(!e.length)return!1;let t,n,s=0,i=0,o=0;for(t=0,n=e.length;ta({chart:t,initial:n.initial,numSteps:r,currentStep:Math.min(s-n.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=u_.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((s,i)=>{if(!s.running||!s.items.length)return;const o=s.items;let r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>s.duration&&(s.duration=l._total),l.tick(t),a=!0):(o[r]=o[o.length-1],o.pop());a&&(i.draw(),this._notify(i,s,t,"progress")),o.length||(s.running=!1,this._notify(i,s,t,"complete"),s.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let s=n.get(t);return s||(s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,s)),s}listen(t,n,s){this._getAnims(t).listeners[n].push(s)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((s,i)=>Math.max(s,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const s=n.items;let i=s.length-1;for(;i>=0;--i)s[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var vn=new o$;const Of="transparent",r$={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const s=xf(e||Of),i=s.valid&&xf(t||Of);return i&&i.valid?i.mix(s,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class a${constructor(t,n,s,i){const o=n[s];i=go([t.to,i,o,t.from]);const r=go([t.from,o,i]);this._active=!0,this._fn=t.fn||r$[t.type||typeof r],this._easing=Po[t.easing]||Po.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=s,this._from=r,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,s){if(this._active){this._notify(!1);const i=this._target[this._prop],o=s-this._start,r=this._duration-o;this._start=s,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=go([t.to,n,i,t.from]),this._from=go([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,s=this._duration,i=this._prop,o=this._from,r=this._loop,a=this._to;let l;if(this._active=o!==a&&(r||n1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,s)=>{t.push({res:n,rej:s})})}_notify(t){const n=t?"res":"rej",s=this._promises||[];for(let i=0;i{const o=t[i];if(!Pt(o))return;const r={};for(const a of n)r[a]=o[a];(Ht(o.properties)&&o.properties||[i]).forEach(a=>{(a===i||!s.has(a))&&s.set(a,r)})})}_animateOptions(t,n){const s=n.options,i=c$(t,s);if(!i)return[];const o=this._createAnimations(i,s);return s.$shared&&l$(t.options.$animations,s).then(()=>{t.options=s},()=>{}),o}_createAnimations(t,n){const s=this._properties,i=[],o=t.$animations||(t.$animations={}),r=Object.keys(n),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const u=n[c];let d=o[c];const f=s.get(c);if(d)if(f&&d.active()){d.update(f,u,a);continue}else d.cancel();if(!f||!f.duration){t[c]=u;continue}o[c]=d=new a$(f,t,c,u),i.push(d)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const s=this._createAnimations(t,n);if(s.length)return vn.add(this._chart,s),!0}}function l$(e,t){const n=[],s=Object.keys(t);for(let i=0;i0||!n&&o<0)return i.index}return null}function Rf(e,t){const{chart:n,_cachedMeta:s}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:r,index:a}=s,l=o.axis,c=r.axis,u=f$(o,r,s),d=t.length;let f;for(let p=0;pn[s].axis===t).shift()}function m$(e,t){return fs(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function _$(e,t,n){return fs(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function ro(e,t){const n=e.controller.index,s=e.vScale&&e.vScale.axis;if(s){t=t||e._parsed;for(const i of t){const o=i._stacks;if(!o||o[s]===void 0||o[s][n]===void 0)return;delete o[s][n],o[s]._visualValues!==void 0&&o[s]._visualValues[n]!==void 0&&delete o[s]._visualValues[n]}}}const Wl=e=>e==="reset"||e==="none",Nf=(e,t)=>t?e:Object.assign({},e),b$=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:M_(n,!0),values:null};class Ze{constructor(t,n){this.chart=t,this._ctx=t.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 t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Lf(t.vScale,t),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(t){this.index!==t&&ro(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,s=this.getDataset(),i=(d,f,p,m)=>d==="x"?f:d==="r"?m:p,o=n.xAxisID=yt(s.xAxisID,jl(t,"x")),r=n.yAxisID=yt(s.yAxisID,jl(t,"y")),a=n.rAxisID=yt(s.rAxisID,jl(t,"r")),l=n.indexAxis,c=n.iAxisID=i(l,o,r,a),u=n.vAxisID=i(l,r,o,a);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(r),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&bf(this._data,this),t._stacked&&ro(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),s=this._data;if(Pt(n))this._data=h$(n);else if(s!==n){if(s){bf(s,this);const i=this._cachedMeta;ro(i),i._parsed=[]}n&&Object.isExtensible(n)&&sD(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,s=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=Lf(n.vScale,n),n.stack!==s.stack&&(i=!0,ro(n),n.stack=s.stack),this._resyncElements(t),(i||o!==n._stacked)&&Rf(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),s=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(s,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:s,_data:i}=this,{iScale:o,_stacked:r}=s,a=o.axis;let l=t===0&&n===i.length?!0:s._sorted,c=t>0&&s._parsed[t-1],u,d,f;if(this._parsing===!1)s._parsed=i,s._sorted=!0,f=i;else{Ht(i[t])?f=this.parseArrayData(s,i,t,n):Pt(i[t])?f=this.parseObjectData(s,i,t,n):f=this.parsePrimitiveData(s,i,t,n);const p=()=>d[a]===null||c&&d[a]_||d<_}for(f=0;f=0;--f)if(!m()){this.updateRangeFromParsed(c,t,p,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,s=[];let i,o,r;for(i=0,o=n.length;i=0&&tthis.getContext(s,i,n),_=c.resolveNamedOptions(f,p,m,d);return _.$shared&&(_.$shared=l,o[r]=Object.freeze(Nf(_,l))),_}_resolveAnimations(t,n,s){const i=this.chart,o=this._cachedDataOpts,r=`animation-${n}`,a=o[r];if(a)return a;let l;if(i.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),f=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(f,this.getContext(t,s,n))}const c=new P_(i,l&&l.animations);return l&&l._cacheable&&(o[r]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Wl(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const s=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(s),r=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,s),{sharedOptions:o,includeOptions:r}}updateElement(t,n,s,i){Wl(i)?Object.assign(t,s):this._resolveAnimations(n,i).update(t,s)}updateSharedOptions(t,n,s){t&&!Wl(n)&&this._resolveAnimations(void 0,n).update(t,s)}_setStyle(t,n,s,i){t.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,s,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,s){this._setStyle(t,s,"active",!1)}setHoverStyle(t,n,s){this._setStyle(t,s,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,s=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const i=s.length,o=n.length,r=Math.min(o,i);r&&this.parse(0,r),o>i?this._insertElements(i,o-i,t):o{for(c.length+=n,a=c.length-1;a>=r;a--)c[a]=c[a-n]};for(l(o),a=t;ai-o))}return e._cache.$bar}function v$(e){const t=e.iScale,n=y$(t,e.type);let s=t._length,i,o,r,a;const l=()=>{r===32767||r===-32768||(Yo(a)&&(s=Math.min(s,Math.abs(r-a)||s)),a=r)};for(i=0,o=n.length;i0?i[e-1]:null,a=eMath.abs(a)&&(l=a,c=r),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:i,end:o,min:r,max:a}}function k_(e,t,n,s){return Ht(e)?E$(e,t,n,s):t[n.axis]=n.parse(e,s),t}function Ff(e,t,n,s){const i=e.iScale,o=e.vScale,r=i.getLabels(),a=i===o,l=[];let c,u,d,f;for(c=n,u=n+s;c=n?1:-1)}function C$(e){let t,n,s,i,o;return e.horizontal?(t=e.base>e.x,n="left",s="right"):(t=e.basel.controller.options.grouped),o=s.options.stacked,r=[],a=l=>{const c=l.controller.getParsed(n),u=c&&c[l.vScale.axis];if(Lt(u)||isNaN(u))return!0};for(const l of i)if(!(n!==void 0&&a(l))&&((o===!1||r.indexOf(l.stack)===-1||o===void 0&&l.stack===void 0)&&r.push(l.stack),l.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,s){const i=this._getStacks(t,s),o=n!==void 0?i.indexOf(n):-1;return o===-1?i.length-1:o}_getRuler(){const t=this.options,n=this._cachedMeta,s=n.iScale,i=[];let o,r;for(o=0,r=n.data.length;o=0;--s)n=Math.max(n,t[s].size(this.resolveDataElementOptions(s))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,s=this.chart.data.labels||[],{xScale:i,yScale:o}=n,r=this.getParsed(t),a=i.getLabelForValue(r.x),l=o.getLabelForValue(r.y),c=r._custom;return{label:s[t]||"",value:"("+a+", "+l+(c?", "+c:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,s,i){const o=i==="reset",{iScale:r,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(n,i),u=r.axis,d=a.axis;for(let f=n;fqo(P,a,l,!0)?1:Math.max(C,C*n,v,v*n),m=(P,C,v)=>qo(P,a,l,!0)?-1:Math.min(C,C*n,v,v*n),_=p(0,c,d),y=p(Xt,u,f),x=m(Wt,c,d),S=m(Wt+Xt,u,f);s=(_-x)/2,i=(y-S)/2,o=-(_+x)/2,r=-(y+S)/2}return{ratioX:s,ratioY:i,offsetX:o,offsetY:r}}class Is extends Ze{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const s=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=s;else{let o=l=>+s[l];if(Pt(s[t])){const{key:l="value"}=this._parsing;o=c=>+ls(s[c],l)}let r,a;for(r=t,a=t+n;r0&&!isNaN(t)?jt*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,s=this.chart,i=s.data.labels||[],o=ar(n._parsed[t],s.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let n=0;const s=this.chart;let i,o,r,a,l;if(!t){for(i=0,o=s.data.datasets.length;it!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),st(Is,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:s,color:i}}=t.legend.options;return n.labels.map((o,r)=>{const l=t.getDatasetMeta(0).controller.getStyle(r);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:s,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,n,s){s.chart.toggleDataVisibility(n.index),s.chart.update()}}}});class xi extends Ze{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:s,data:i=[],_dataset:o}=n,r=this.chart._animationsDisabled;let{start:a,count:l}=h_(n,i,r);this._drawStart=a,this._drawCount=l,f_(n)&&(a=0,l=i.length),s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!o._decimated,s.points=i;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(s,void 0,{animated:!r,options:c},t),this.updateElements(i,a,l,t)}updateElements(t,n,s,i){const o=i==="reset",{iScale:r,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(n,i),f=r.axis,p=a.axis,{spanGaps:m,segment:_}=this.options,y=Hi(m)?m:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||o||i==="none",S=n+s,P=t.length;let C=n>0&&this.getParsed(n-1);for(let v=0;v=S){A.skip=!0;continue}const w=this.getParsed(v),k=Lt(w[p]),$=A[f]=r.getPixelForValue(w[f],v),L=A[p]=o||k?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,w,l):w[p],v);A.skip=isNaN($)||isNaN(L)||k,A.stop=v>0&&Math.abs(w[f]-C[f])>y,_&&(A.parsed=w,A.raw=c.data[v]),d&&(A.options=u||this.resolveDataElementOptions(v,E.active?"active":i)),x||this.updateElement(E,v,A,i),C=w}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,s=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return s;const o=i[0].size(this.resolveDataElementOptions(0)),r=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(s,o,r)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}st(xi,"id","line"),st(xi,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),st(xi,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Oo extends Ze{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,s=this.chart,i=s.data.labels||[],o=ar(n._parsed[t].r,s.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,n,s,i){return x_.bind(this)(t,n,s,i)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((s,i)=>{const o=this.getParsed(i).r;!isNaN(o)&&this.chart.getDataVisibility(i)&&(on.max&&(n.max=o))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,s=t.options,i=Math.min(n.right-n.left,n.bottom-n.top),o=Math.max(i/2,0),r=Math.max(s.cutoutPercentage?o/100*s.cutoutPercentage:1,0),a=(o-r)/t.getVisibleDatasetCount();this.outerRadius=o-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,n,s,i){const o=i==="reset",r=this.chart,l=r.options.animation,c=this._cachedMeta.rScale,u=c.xCenter,d=c.yCenter,f=c.getIndexAngle(0)-.5*Wt;let p=f,m;const _=360/this.countVisibleElements();for(m=0;m{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(t,n,s){return this.chart.getDataVisibility(t)?Je(this.resolveDataElementOptions(t,n).angle||s):0}}st(Oo,"id","polarArea"),st(Oo,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),st(Oo,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:s,color:i}}=t.legend.options;return n.labels.map((o,r)=>{const l=t.getDatasetMeta(0).controller.getStyle(r);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:s,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,n,s){s.chart.toggleDataVisibility(n.index),s.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class Ea extends Is{}st(Ea,"id","pie"),st(Ea,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class Do extends Ze{getLabelAndValue(t){const n=this._cachedMeta.vScale,s=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(s[n.axis])}}parseObjectData(t,n,s,i){return x_.bind(this)(t,n,s,i)}update(t){const n=this._cachedMeta,s=n.dataset,i=n.data||[],o=n.iScale.getLabels();if(s.points=i,t!=="resize"){const r=this.resolveDatasetElementOptions(t);this.options.showLine||(r.borderWidth=0);const a={_loop:!0,_fullLoop:o.length===i.length,options:r};this.updateElement(s,void 0,a,t)}this.updateElements(i,0,i.length,t)}updateElements(t,n,s,i){const o=this._cachedMeta.rScale,r=i==="reset";for(let a=n;a0&&this.getParsed(n-1);for(let C=n;C0&&Math.abs(E[p]-P[p])>x,y&&(A.parsed=E,A.raw=c.data[C]),f&&(A.options=d||this.resolveDataElementOptions(C,v.active?"active":i)),S||this.updateElement(v,C,A,i),P=E}this.updateSharedOptions(d,i,u)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let a=0;for(let l=n.length-1;l>=0;--l)a=Math.max(a,n[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}const s=t.dataset,i=s.options&&s.options.borderWidth||0;if(!n.length)return i;const o=n[0].size(this.resolveDataElementOptions(0)),r=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,o,r)/2}}st($o,"id","scatter"),st($o,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),st($o,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});function Ms(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Qu{constructor(t){st(this,"options");this.options=t||{}}static override(t){Object.assign(Qu.prototype,t)}init(){}formats(){return Ms()}parse(){return Ms()}format(){return Ms()}add(){return Ms()}diff(){return Ms()}startOf(){return Ms()}endOf(){return Ms()}}var k$={_date:Qu};function O$(e,t,n,s){const{controller:i,data:o,_sorted:r}=e,a=i._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&r&&o.length){const l=a._reversePixels?eD:Tn;if(s){if(i._sharedOptions){const c=o[0],u=typeof c.getRange=="function"&&c.getRange(t);if(u){const d=l(o,t,n-u),f=l(o,t,n+u);return{lo:d.lo,hi:f.hi}}}}else return l(o,t,n)}return{lo:0,hi:o.length-1}}function lr(e,t,n,s,i){const o=e.getSortedVisibleDatasetMetas(),r=n[t];for(let a=0,l=o.length;a{l[r](t[n],i)&&(o.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(t.x,t.y,i))}),s&&!a?[]:o}var I$={evaluateInteractionItems:lr,modes:{index(e,t,n,s){const i=Os(t,e),o=n.axis||"x",r=n.includeInvisible||!1,a=n.intersect?Ul(e,i,o,s,r):Kl(e,i,o,!1,s,r),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(e,t,n,s){const i=Os(t,e),o=n.axis||"xy",r=n.includeInvisible||!1;let a=n.intersect?Ul(e,i,o,s,r):Kl(e,i,o,!1,s,r);if(a.length>0){const l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let u=0;un.pos===t)}function jf(e,t){return e.filter(n=>O_.indexOf(n.pos)===-1&&n.box.axis===t)}function lo(e,t){return e.sort((n,s)=>{const i=t?s:n,o=t?n:s;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function R$(e){const t=[];let n,s,i,o,r,a;for(n=0,s=(e||[]).length;nc.box.fullSize),!0),s=lo(ao(t,"left"),!0),i=lo(ao(t,"right")),o=lo(ao(t,"top"),!0),r=lo(ao(t,"bottom")),a=jf(t,"x"),l=jf(t,"y");return{fullSize:n,leftAndTop:s.concat(o),rightAndBottom:i.concat(l).concat(r).concat(a),chartArea:ao(t,"chartArea"),vertical:s.concat(i).concat(l),horizontal:o.concat(r).concat(a)}}function Wf(e,t,n,s){return Math.max(e[n],t[n])+Math.max(e[s],t[s])}function D_(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function V$(e,t,n,s){const{pos:i,box:o}=n,r=e.maxPadding;if(!Pt(i)){n.size&&(e[i]-=n.size);const d=s[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?o.height:o.width),n.size=d.size/d.count,e[i]+=n.size}o.getPadding&&D_(r,o.getPadding());const a=Math.max(0,t.outerWidth-Wf(r,e,"left","right")),l=Math.max(0,t.outerHeight-Wf(r,e,"top","bottom")),c=a!==e.w,u=l!==e.h;return e.w=a,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function H$(e){const t=e.maxPadding;function n(s){const i=Math.max(t[s]-e[s],0);return e[s]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function j$(e,t){const n=t.maxPadding;function s(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(r=>{o[r]=Math.max(t[r],n[r])}),o}return s(e?["left","right"]:["top","bottom"])}function mo(e,t,n,s){const i=[];let o,r,a,l,c,u;for(o=0,r=e.length,c=0;o{typeof _.beforeLayout=="function"&&_.beforeLayout()});const u=l.reduce((_,y)=>y.box.options&&y.box.options.display===!1?_:_+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/u,hBoxMaxHeight:r/2}),f=Object.assign({},i);D_(f,fe(s));const p=Object.assign({maxPadding:f,w:o,h:r,x:i.left,y:i.top},i),m=F$(l.concat(c),d);mo(a.fullSize,p,d,m),mo(l,p,d,m),mo(c,p,d,m)&&mo(l,p,d,m),H$(p),zf(a.leftAndTop,p,d,m),p.x+=p.w,p.y+=p.h,zf(a.rightAndBottom,p,d,m),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},Nt(a.chartArea,_=>{const y=_.box;Object.assign(y,e.chartArea),y.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class $_{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,s){}removeEventListener(t,n,s){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,s,i){return n=Math.max(0,n||t.width),s=s||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):s)}}isAttached(t){return!0}updateConfig(t){}}class W$ extends $_{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const oa="$chartjs",z$={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Uf=e=>e===null||e==="";function U$(e,t){const n=e.style,s=e.getAttribute("height"),i=e.getAttribute("width");if(e[oa]={initial:{height:s,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Uf(i)){const o=Tf(e,"width");o!==void 0&&(e.width=o)}if(Uf(s))if(e.style.height==="")e.height=e.width/(t||2);else{const o=Tf(e,"height");o!==void 0&&(e.height=o)}return e}const L_=qD?{passive:!0}:!1;function K$(e,t,n){e.addEventListener(t,n,L_)}function Y$(e,t,n){e.canvas.removeEventListener(t,n,L_)}function q$(e,t){const n=z$[e.type]||e.type,{x:s,y:i}=Os(e,t);return{type:n,chart:t,native:e,x:s!==void 0?s:null,y:i!==void 0?i:null}}function Sa(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function G$(e,t,n){const s=e.canvas,i=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||Sa(a.addedNodes,s),r=r&&!Sa(a.removedNodes,s);r&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function X$(e,t,n){const s=e.canvas,i=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||Sa(a.removedNodes,s),r=r&&!Sa(a.addedNodes,s);r&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Xo=new Map;let Kf=0;function I_(){const e=window.devicePixelRatio;e!==Kf&&(Kf=e,Xo.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function Q$(e,t){Xo.size||window.addEventListener("resize",I_),Xo.set(e,t)}function J$(e){Xo.delete(e),Xo.size||window.removeEventListener("resize",I_)}function Z$(e,t,n){const s=e.canvas,i=s&&Xu(s);if(!i)return;const o=d_((a,l)=>{const c=i.clientWidth;n(a,l),c{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||o(c,u)});return r.observe(i),Q$(e,o),r}function Yl(e,t,n){n&&n.disconnect(),t==="resize"&&J$(e)}function tL(e,t,n){const s=e.canvas,i=d_(o=>{e.ctx!==null&&n(q$(o,e))},e);return K$(s,t,i),i}class eL extends $_{acquireContext(t,n){const s=t&&t.getContext&&t.getContext("2d");return s&&s.canvas===t?(U$(t,n),s):null}releaseContext(t){const n=t.canvas;if(!n[oa])return!1;const s=n[oa].initial;["height","width"].forEach(o=>{const r=s[o];Lt(r)?n.removeAttribute(o):n.setAttribute(o,r)});const i=s.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[oa],!0}addEventListener(t,n,s){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),r={attach:G$,detach:X$,resize:Z$}[n]||tL;i[n]=r(t,n,s)}removeEventListener(t,n){const s=t.$proxies||(t.$proxies={}),i=s[n];if(!i)return;({attach:Yl,detach:Yl,resize:Yl}[n]||Y$)(t,n,i),s[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,s,i){return YD(t,n,s,i)}isAttached(t){const n=Xu(t);return!!(n&&n.isConnected)}}function nL(e){return!Gu()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?W$:eL}var Xr;let In=(Xr=class{constructor(){st(this,"x");st(this,"y");st(this,"active",!1);st(this,"options");st(this,"$animations")}tooltipPosition(t){const{x:n,y:s}=this.getProps(["x","y"],t);return{x:n,y:s}}hasValue(){return Hi(this.x)&&Hi(this.y)}getProps(t,n){const s=this.$animations;if(!n||!s)return this;const i={};return t.forEach(o=>{i[o]=s[o]&&s[o].active()?s[o]._to:this[o]}),i}},st(Xr,"defaults",{}),st(Xr,"defaultRoutes"),Xr);function sL(e,t){const n=e.options.ticks,s=iL(e),i=Math.min(n.maxTicksLimit||s,s),o=n.major.enabled?rL(t):[],r=o.length,a=o[0],l=o[r-1],c=[];if(r>i)return aL(t,c,o,r/i),c;const u=oL(o,t,i);if(r>0){let d,f;const p=r>1?Math.round((l-a)/(r-1)):null;for(Wr(t,c,u,Lt(p)?0:a-p,a),d=0,f=r-1;di)return l}return Math.max(i,1)}function rL(e){const t=[];let n,s;for(n=0,s=e.length;ne==="left"?"right":e==="right"?"left":e,Yf=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,qf=(e,t)=>Math.min(t||e,e);function Gf(e,t){const n=[],s=e.length/t,i=e.length;let o=0;for(;or+a)))return l}function dL(e,t){Nt(e,n=>{const s=n.gc,i=s.length/2;let o;if(i>t){for(o=0;os?s:n,s=i&&n>s?n:s,{min:Te(n,Te(s,n)),max:Te(s,Te(n,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Bt(this.options.beforeUpdate,[this])}update(t,n,s){const{beginAtZero:i,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=s=Object.assign({left:0,right:0,top:0,bottom:0},s),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+s.left+s.right:this.height+s.top+s.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=CD(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a=o||s<=1||!this.isHorizontal()){this.labelRotation=i;return}const u=this._getLabelSizes(),d=u.widest.width,f=u.highest.height,p=ie(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/s:p/(s-1),d+6>a&&(a=p/(s-(t.offset?.5:1)),l=this.maxHeight-co(t.grid)-n.padding-Xf(t.title,this.chart.options.font),c=Math.sqrt(d*d+f*f),r=Hu(Math.min(Math.asin(ie((u.highest.height+6)/a,-1,1)),Math.asin(ie(l/c,-1,1))-Math.asin(ie(f/c,-1,1)))),r=Math.max(i,Math.min(o,r))),this.labelRotation=r}afterCalculateLabelRotation(){Bt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Bt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:s,title:i,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const l=Xf(i,n.options.font);if(a?(t.width=this.maxWidth,t.height=co(o)+l):(t.height=this.maxHeight,t.width=co(o)+l),s.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:f}=this._getLabelSizes(),p=s.padding*2,m=Je(this.labelRotation),_=Math.cos(m),y=Math.sin(m);if(a){const x=s.mirror?0:y*d.width+_*f.height;t.height=Math.min(this.maxHeight,t.height+x+p)}else{const x=s.mirror?0:_*d.width+y*f.height;t.width=Math.min(this.maxWidth,t.width+x+p)}this._calculatePadding(c,u,y,_)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,s,i){const{ticks:{align:o,padding:r},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,p=0;l?c?(f=i*t.width,p=s*n.height):(f=s*t.height,p=i*n.width):o==="start"?p=n.width:o==="end"?f=t.width:o!=="inner"&&(f=t.width/2,p=n.width/2),this.paddingLeft=Math.max((f-u+r)*this.width/(this.width-u),0),this.paddingRight=Math.max((p-d+r)*this.width/(this.width-d),0)}else{let u=n.height/2,d=t.height/2;o==="start"?(u=0,d=t.height):o==="end"&&(u=n.height,d=0),this.paddingTop=u+r,this.paddingBottom=d+r}}_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(){Bt(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,s;for(n=0,s=t.length;n({width:r[k]||0,height:a[k]||0});return{first:w(0),last:w(n-1),widest:w(E),highest:w(A),widths:r,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return tD(this._alignToPixels?Ps(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&ta*i?a/s:l/i:l*i0}_computeGridLineItems(t){const n=this.axis,s=this.chart,i=this.options,{grid:o,position:r,border:a}=i,l=o.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=co(o),p=[],m=a.setContext(this.getContext()),_=m.display?m.width:0,y=_/2,x=function(R){return Ps(s,R,_)};let S,P,C,v,E,A,w,k,$,L,N,X;if(r==="top")S=x(this.bottom),A=this.bottom-f,k=S-y,L=x(t.top)+y,X=t.bottom;else if(r==="bottom")S=x(this.top),L=t.top,X=x(t.bottom)-y,A=S+y,k=this.top+f;else if(r==="left")S=x(this.right),E=this.right-f,w=S-y,$=x(t.left)+y,N=t.right;else if(r==="right")S=x(this.left),$=t.left,N=x(t.right)-y,E=S+y,w=this.left+f;else if(n==="x"){if(r==="center")S=x((t.top+t.bottom)/2+.5);else if(Pt(r)){const R=Object.keys(r)[0],W=r[R];S=x(this.chart.scales[R].getPixelForValue(W))}L=t.top,X=t.bottom,A=S+y,k=A+f}else if(n==="y"){if(r==="center")S=x((t.left+t.right)/2);else if(Pt(r)){const R=Object.keys(r)[0],W=r[R];S=x(this.chart.scales[R].getPixelForValue(W))}E=S-y,w=E-f,$=t.left,N=t.right}const Y=yt(i.ticks.maxTicksLimit,d),H=Math.max(1,Math.ceil(d/Y));for(P=0;P0&&(Et-=wt/2);break}pt={left:Et,top:Mt,width:wt+ft.width,height:At+ft.height,color:H.backdropColor}}y.push({label:C,font:k,textOffset:N,options:{rotation:_,color:W,strokeColor:U,strokeWidth:it,textAlign:lt,textBaseline:X,translation:[v,E],backdrop:pt}})}return y}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-Je(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:s,mirror:i,padding:o}}=this.options,r=this._getLabelSizes(),a=t+o,l=r.widest.width;let c,u;return n==="left"?i?(u=this.right+o,s==="near"?c="left":s==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,s==="near"?c="right":s==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?i?(u=this.left+o,s==="near"?c="right":s==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,s==="near"?c="left":s==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:s,top:i,width:o,height:r}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(s,i,o,r),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(o=>o.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,s=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,r;const a=(l,c,u)=>{!u.width||!u.color||(s.save(),s.lineWidth=u.width,s.strokeStyle=u.color,s.setLineDash(u.borderDash||[]),s.lineDashOffset=u.borderDashOffset,s.beginPath(),s.moveTo(l.x,l.y),s.lineTo(c.x,c.y),s.stroke(),s.restore())};if(n.display)for(o=0,r=i.length;o{this.draw(o)}}]:[{z:s,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",i=[];let o,r;for(o=0,r=n.length;o{const s=n.split("."),i=s.pop(),o=[e].concat(s).join("."),r=t[n].split("."),a=r.pop(),l=r.join(".");Gt.route(o,i,l,a)})}function bL(e){return"id"in e&&"defaults"in e}class yL{constructor(){this.controllers=new zr(Ze,"datasets",!0),this.elements=new zr(In,"elements"),this.plugins=new zr(Object,"plugins"),this.scales=new zr(Xs,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,s){[...n].forEach(i=>{const o=s||this._getRegistryForType(i);s||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):Nt(i,r=>{const a=s||this._getRegistryForType(r);this._exec(t,a,r)})})}_exec(t,n,s){const i=Vu(t);Bt(s["before"+i],[],s),n[t](s),Bt(s["after"+i],[],s)}_getRegistryForType(t){for(let n=0;no.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(i(n,s),t,"stop"),this._notify(i(s,n),t,"start")}}function xL(e){const t={},n=[],s=Object.keys(on.plugins.items);for(let o=0;o1&&Qf(e[0].toLowerCase());if(s)return s}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Jf(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function PL(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(s=>s.xAxisID===e||s.yAxisID===e);if(n.length)return Jf(e,"x",n[0])||Jf(e,"y",n[0])}return{}}function ML(e,t){const n=Ks[e.type]||{scales:{}},s=t.scales||{},i=Pc(e.type,t),o=Object.create(null);return Object.keys(s).forEach(r=>{const a=s[r];if(!Pt(a))return console.error(`Invalid scale configuration for scale: ${r}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);const l=Mc(r,a,PL(r,e),Gt.scales[a.type]),c=AL(l,i),u=n.scales||{};o[r]=Ao(Object.create(null),[{axis:l},a,u[l],u[c]])}),e.data.datasets.forEach(r=>{const a=r.type||e.type,l=r.indexAxis||Pc(a,t),u=(Ks[a]||{}).scales||{};Object.keys(u).forEach(d=>{const f=CL(d,l),p=r[f+"AxisID"]||f;o[p]=o[p]||Object.create(null),Ao(o[p],[{axis:f},s[p],u[d]])})}),Object.keys(o).forEach(r=>{const a=o[r];Ao(a,[Gt.scales[a.type],Gt.scale])}),o}function R_(e){const t=e.options||(e.options={});t.plugins=yt(t.plugins,{}),t.scales=ML(e,t)}function N_(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function kL(e){return e=e||{},e.data=N_(e.data),R_(e),e}const Zf=new Map,F_=new Set;function Ur(e,t){let n=Zf.get(e);return n||(n=t(),Zf.set(e,n),F_.add(n)),n}const uo=(e,t,n)=>{const s=ls(t,n);s!==void 0&&e.add(s)};let OL=class{constructor(t){this._config=kL(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=N_(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),R_(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Ur(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Ur(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Ur(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,s=this.type;return Ur(`${s}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const s=this._scopeCache;let i=s.get(t);return(!i||n)&&(i=new Map,s.set(t,i)),i}getOptionScopes(t,n,s){const{options:i,type:o}=this,r=this._cachedScopes(t,s),a=r.get(n);if(a)return a;const l=new Set;n.forEach(u=>{t&&(l.add(t),u.forEach(d=>uo(l,t,d))),u.forEach(d=>uo(l,i,d)),u.forEach(d=>uo(l,Ks[o]||{},d)),u.forEach(d=>uo(l,Gt,d)),u.forEach(d=>uo(l,Ac,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),F_.has(n)&&r.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Ks[n]||{},Gt.datasets[n]||{},{type:n},Gt,Ac]}resolveNamedOptions(t,n,s,i=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=tp(this._resolverCache,t,i);let l=r;if($L(r,n)){o.$shared=!1,s=cs(s)?s():s;const c=this.createResolver(t,s,a);l=ji(r,s,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,s=[""],i){const{resolver:o}=tp(this._resolverCache,t,s);return Pt(n)?ji(o,n,void 0,i):o}};function tp(e,t,n){let s=e.get(t);s||(s=new Map,e.set(t,s));const i=n.join();let o=s.get(i);return o||(o={resolver:Ku(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},s.set(i,o)),o}const DL=e=>Pt(e)&&Object.getOwnPropertyNames(e).some(t=>cs(e[t]));function $L(e,t){const{isScriptable:n,isIndexable:s}=__(e);for(const i of t){const o=n(i),r=s(i),a=(r||o)&&e[i];if(o&&(cs(a)||DL(a))||r&&Ht(a))return!0}return!1}var LL="4.4.1";const IL=["top","bottom","left","right","chartArea"];function ep(e,t){return e==="top"||e==="bottom"||IL.indexOf(e)===-1&&t==="x"}function np(e,t){return function(n,s){return n[e]===s[e]?n[t]-s[t]:n[e]-s[e]}}function sp(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Bt(n&&n.onComplete,[e],t)}function RL(e){const t=e.chart,n=t.options.animation;Bt(n&&n.onProgress,[e],t)}function B_(e){return Gu()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const ra={},ip=e=>{const t=B_(e);return Object.values(ra).filter(n=>n.canvas===t).pop()};function NL(e,t,n){const s=Object.keys(e);for(const i of s){const o=+i;if(o>=t){const r=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=r)}}}function FL(e,t,n,s){return!n||e.type==="mouseout"?null:s?t:e}function Kr(e,t,n){return e.options.clip?e[n]:t[n]}function BL(e,t){const{xScale:n,yScale:s}=e;return n&&s?{left:Kr(n,t,"left"),right:Kr(n,t,"right"),top:Kr(s,t,"top"),bottom:Kr(s,t,"bottom")}:t}var jn;let cr=(jn=class{static register(...t){on.add(...t),op()}static unregister(...t){on.remove(...t),op()}constructor(t,n){const s=this.config=new OL(n),i=B_(t),o=ip(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 r=s.createResolver(s.chartOptionScopes(),this.getContext());this.platform=new(s.platform||nL(i)),this.platform.updateConfig(s);const a=this.platform.acquireContext(i,r.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;if(this.id=jO(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=r,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 vL,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=iD(d=>this.update(d),r.resizeDelay||0),this._dataChanges=[],ra[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}vn.listen(this,"complete",sp),vn.listen(this,"progress",RL),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:s,height:i,_aspectRatio:o}=this;return Lt(t)?n&&o?o:i?s/i: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 on}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Af(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Ef(this.canvas,this.ctx),this}stop(){return vn.stop(this),this}resize(t,n){vn.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const s=this.options,i=this.canvas,o=s.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(i,t,n,o),a=s.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,Af(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),Bt(s.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Nt(n,(s,i)=>{s.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,s=this.scales,i=Object.keys(s).reduce((r,a)=>(r[a]=!1,r),{});let o=[];n&&(o=o.concat(Object.keys(n).map(r=>{const a=n[r],l=Mc(r,a),c=l==="r",u=l==="x";return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),Nt(o,r=>{const a=r.options,l=a.id,c=Mc(l,a),u=yt(a.type,r.dtype);(a.position===void 0||ep(a.position,c)!==ep(r.dposition))&&(a.position=r.dposition),i[l]=!0;let d=null;if(l in s&&s[l].type===u)d=s[l];else{const f=on.getScale(u);d=new f({id:l,type:u,ctx:this.ctx,chart:this}),s[d.id]=d}d.init(a,t)}),Nt(i,(r,a)=>{r||delete s[a]}),Nt(s,r=>{ze.configure(this,r,r.options),ze.addBox(this,r)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,s=t.length;if(t.sort((i,o)=>i.index-o.index),s>n){for(let i=n;in.length&&delete this._stacks,t.forEach((s,i)=>{n.filter(o=>o===s._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let s,i;for(this._removeUnreferencedMetasets(),s=0,i=n.length;s{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const s=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!s.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let c=0,u=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(np("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Nt(this.scales,t=>{ze.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),s=new Set(t.events);(!pf(n,s)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:s,start:i,count:o}of n){const r=s==="_removeElements"?-o:o;NL(t,i,r)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,s=o=>new Set(t.filter(r=>r[0]===o).map((r,a)=>a+","+r.splice(1).join(","))),i=s(0);for(let o=1;oo.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;ze.update(this,this.width,this.height,t);const n=this.chartArea,s=n.width<=0||n.height<=0;this._layers=[],Nt(this.boxes,i=>{s&&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(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,s=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,s=t._clip,i=!s.disabled,o=BL(t,this.chartArea),r={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(i&&sl(n,{left:s.left===!1?0:o.left-s.left,right:s.right===!1?this.width:o.right+s.right,top:s.top===!1?0:o.top-s.top,bottom:s.bottom===!1?this.height:o.bottom+s.bottom}),t.controller.draw(),i&&il(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return Pn(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,s,i){const o=I$.modes[n];return typeof o=="function"?o(this,t,s,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],s=this._metasets;let i=s.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:t,_dataset:n,_parsed:[],_sorted:!1},s.push(i)),i}getContext(){return this.$context||(this.$context=fs(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const s=this.getDatasetMeta(t);return typeof s.hidden=="boolean"?!s.hidden:!n.hidden}setDatasetVisibility(t,n){const s=this.getDatasetMeta(t);s.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,s){const i=s?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,i);Yo(n)?(o.data[n].hidden=!s,this.update()):(this.setDatasetVisibility(t,s),r.update(o,{visible:s}),this.update(a=>a.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),vn.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,o,r),t[o]=r},i=(o,r,a)=>{o.offsetX=r,o.offsetY=a,this._eventHandler(o)};Nt(this.options.events,o=>s(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,s=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},i=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let r;const a=()=>{i("attach",a),this.attached=!0,this.resize(),s("resize",o),s("detach",r)};r=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),s("attach",a)},n.isAttached(this.canvas)?a():r()}unbindEvents(){Nt(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Nt(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,s){const i=s?"set":"remove";let o,r,a,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),a=0,l=t.length;a{const a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[r],index:r}});!ba(s,n)&&(this._active=s,this._lastEvent=null,this._updateHoverStyles(s,n))}notifyPlugins(t,n,s){return this._plugins.notify(this,t,n,s)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,s){const i=this.options.hover,o=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),r=o(n,t),a=s?t:o(t,n);r.length&&this.updateHoverStyle(r,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,n){const s={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=r=>(r.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",s,i)===!1)return;const o=this._handleEvent(t,n,s.inChartArea);return s.cancelable=!1,this.notifyPlugins("afterEvent",s,i),(o||s.changed)&&this.render(),this}_handleEvent(t,n,s){const{_active:i=[],options:o}=this,r=n,a=this._getActiveElements(t,i,s,r),l=qO(t),c=FL(t,this._lastEvent,s,l);s&&(this._lastEvent=null,Bt(o.onHover,[t,a,this],this),l&&Bt(o.onClick,[t,a,this],this));const u=!ba(a,i);return(u||n)&&(this._active=a,this._updateHoverStyles(a,i,n)),this._lastEvent=c,u}_getActiveElements(t,n,s,i){if(t.type==="mouseout")return[];if(!s)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}},st(jn,"defaults",Gt),st(jn,"instances",ra),st(jn,"overrides",Ks),st(jn,"registry",on),st(jn,"version",LL),st(jn,"getChart",ip),jn);function op(){return Nt(cr.instances,e=>e._plugins.invalidate())}function VL(e,t,n){const{startAngle:s,pixelMargin:i,x:o,y:r,outerRadius:a,innerRadius:l}=t;let c=i/a;e.beginPath(),e.arc(o,r,a,s-c,n+c),l>i?(c=i/l,e.arc(o,r,l,n+c,s-c,!0)):e.arc(o,r,i,n+Xt,s-Xt),e.closePath(),e.clip()}function HL(e){return Uu(e,["outerStart","outerEnd","innerStart","innerEnd"])}function jL(e,t,n,s){const i=HL(e.options.borderRadius),o=(n-t)/2,r=Math.min(o,s*t/2),a=l=>{const c=(n-Math.min(o,l))*s/2;return ie(l,0,Math.min(o,c))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:ie(i.innerStart,0,r),innerEnd:ie(i.innerEnd,0,r)}}function li(e,t,n,s){return{x:n+e*Math.cos(t),y:s+e*Math.sin(t)}}function Ca(e,t,n,s,i,o){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+s+n-c,0),f=u>0?u+s+n+c:0;let p=0;const m=i-l;if(s){const H=u>0?u-s:0,R=d>0?d-s:0,W=(H+R)/2,U=W!==0?m*W/(W+s):m;p=(m-U)/2}const _=Math.max(.001,m*d-n/Wt)/d,y=(m-_)/2,x=l+y+p,S=i-y-p,{outerStart:P,outerEnd:C,innerStart:v,innerEnd:E}=jL(t,f,d,S-x),A=d-P,w=d-C,k=x+P/A,$=S-C/w,L=f+v,N=f+E,X=x+v/L,Y=S-E/N;if(e.beginPath(),o){const H=(k+$)/2;if(e.arc(r,a,d,k,H),e.arc(r,a,d,H,$),C>0){const it=li(w,$,r,a);e.arc(it.x,it.y,C,$,S+Xt)}const R=li(N,S,r,a);if(e.lineTo(R.x,R.y),E>0){const it=li(N,Y,r,a);e.arc(it.x,it.y,E,S+Xt,Y+Math.PI)}const W=(S-E/f+(x+v/f))/2;if(e.arc(r,a,f,S-E/f,W,!0),e.arc(r,a,f,W,x+v/f,!0),v>0){const it=li(L,X,r,a);e.arc(it.x,it.y,v,X+Math.PI,x-Xt)}const U=li(A,x,r,a);if(e.lineTo(U.x,U.y),P>0){const it=li(A,k,r,a);e.arc(it.x,it.y,P,x-Xt,k)}}else{e.moveTo(r,a);const H=Math.cos(k)*d+r,R=Math.sin(k)*d+a;e.lineTo(H,R);const W=Math.cos($)*d+r,U=Math.sin($)*d+a;e.lineTo(W,U)}e.closePath()}function WL(e,t,n,s,i){const{fullCircles:o,startAngle:r,circumference:a}=t;let l=t.endAngle;if(o){Ca(e,t,n,s,l,i);for(let c=0;c=jt||qo(r,l,c),y=An(a,u+p,d+p);return _&&y}getCenterPoint(n){const{x:s,y:i,startAngle:o,endAngle:r,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:u}=this.options,d=(o+r)/2,f=(a+l+u+c)/2;return{x:s+Math.cos(d)*f,y:i+Math.sin(d)*f}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:s,circumference:i}=this,o=(s.offset||0)/4,r=(s.spacing||0)/2,a=s.circular;if(this.pixelMargin=s.borderAlign==="inner"?.33:0,this.fullCircles=i>jt?Math.floor(i/jt):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*o,Math.sin(l)*o);const c=1-Math.sin(Math.min(Wt,i||0)),u=o*c;n.fillStyle=s.backgroundColor,n.strokeStyle=s.borderColor,WL(n,this,u,r,a),zL(n,this,u,r,a),n.restore()}}st(fi,"id","arc"),st(fi,"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(fi,"defaultRoutes",{backgroundColor:"backgroundColor"}),st(fi,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function V_(e,t,n=t){e.lineCap=yt(n.borderCapStyle,t.borderCapStyle),e.setLineDash(yt(n.borderDash,t.borderDash)),e.lineDashOffset=yt(n.borderDashOffset,t.borderDashOffset),e.lineJoin=yt(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=yt(n.borderWidth,t.borderWidth),e.strokeStyle=yt(n.borderColor,t.borderColor)}function UL(e,t,n){e.lineTo(n.x,n.y)}function KL(e){return e.stepped?mD:e.tension||e.cubicInterpolationMode==="monotone"?_D:UL}function H_(e,t,n={}){const s=e.length,{start:i=0,end:o=s-1}=n,{start:r,end:a}=t,l=Math.max(i,r),c=Math.min(o,a),u=ia&&o>a;return{count:s,start:l,loop:t.loop,ilen:c(r+(c?a-C:C))%o,P=()=>{_!==y&&(e.lineTo(u,y),e.lineTo(u,_),e.lineTo(u,x))};for(l&&(p=i[S(0)],e.moveTo(p.x,p.y)),f=0;f<=a;++f){if(p=i[S(f)],p.skip)continue;const C=p.x,v=p.y,E=C|0;E===m?(v<_?_=v:v>y&&(y=v),u=(d*u+C)/++d):(P(),e.lineTo(C,v),m=E,d=0,_=y=v),x=v}P()}function kc(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?qL:YL}function GL(e){return e.stepped?GD:e.tension||e.cubicInterpolationMode==="monotone"?XD:Ds}function XL(e,t,n,s){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,s)&&i.closePath()),V_(e,t.options),e.stroke(i)}function QL(e,t,n,s){const{segments:i,options:o}=t,r=kc(t);for(const a of i)V_(e,o,a.style),e.beginPath(),r(e,t,a,{start:n,end:n+s-1})&&e.closePath(),e.stroke()}const JL=typeof Path2D=="function";function ZL(e,t,n,s){JL&&!t.options.segment?XL(e,t,n,s):QL(e,t,n,s)}class Mn extends In{constructor(t){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,t&&Object.assign(this,t)}updateControlPoints(t,n){const s=this.options;if((s.tension||s.cubicInterpolationMode==="monotone")&&!s.stepped&&!this._pointsUpdated){const i=s.spanGaps?this._loop:this._fullLoop;HD(this._points,s,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=n$(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,s=t.length;return s&&n[t[s-1].end]}interpolate(t,n){const s=this.options,i=t[n],o=this.points,r=T_(this,{property:n,start:i,end:i});if(!r.length)return;const a=[],l=GL(s);let c,u;for(c=0,u=r.length;ct!=="borderDash"&&t!=="fill"});function rp(e,t,n,s){const i=e.options,{[n]:o}=e.getProps([n],s);return Math.abs(t-o)=n)return e.slice(t,t+n);const r=[],a=(n-2)/(o-2);let l=0;const c=t+n-1;let u=t,d,f,p,m,_;for(r[l++]=e[u],d=0;dp&&(p=m,f=e[S],_=S);r[l++]=f,u=_}return r[l++]=e[c],r}function rI(e,t,n,s){let i=0,o=0,r,a,l,c,u,d,f,p,m,_;const y=[],x=t+n-1,S=e[t].x,C=e[x].x-S;for(r=t;r_&&(_=c,f=r),i=(o*i+a.x)/++o;else{const E=r-1;if(!Lt(d)&&!Lt(f)){const A=Math.min(d,f),w=Math.max(d,f);A!==p&&A!==E&&y.push({...e[A],x:i}),w!==p&&w!==E&&y.push({...e[w],x:i})}r>0&&E!==p&&y.push(e[E]),y.push(a),u=v,o=0,m=_=c,d=f=p=r}}return y}function W_(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function ap(e){e.data.datasets.forEach(t=>{W_(t)})}function aI(e,t){const n=t.length;let s=0,i;const{iScale:o}=e,{min:r,max:a,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(s=ie(Tn(t,o.axis,r).lo,0,n-1)),c?i=ie(Tn(t,o.axis,a).hi+1,s,n)-s:i=n-s,{start:s,count:i}}var z_={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){ap(e);return}const s=e.width;e.data.datasets.forEach((i,o)=>{const{_data:r,indexAxis:a}=i,l=e.getDatasetMeta(o),c=r||i.data;if(go([a,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const u=e.scales[l.xAxisID];if(u.type!=="linear"&&u.type!=="time"||e.options.parsing)return;let{start:d,count:f}=aI(l,c);const p=n.threshold||4*s;if(f<=p){W_(i);return}Lt(r)&&(i._data=c,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(_){this._data=_}}));let m;switch(n.algorithm){case"lttb":m=oI(c,d,f,s,n);break;case"min-max":m=rI(c,d,f,s);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=m})},destroy(e){ap(e)}};function lI(e,t,n){const s=e.segments,i=e.points,o=t.points,r=[];for(const a of s){let{start:l,end:c}=a;c=Ju(l,c,i);const u=Oc(n,i[l],i[c],a.loop);if(!t.segments){r.push({source:a,target:u,start:i[l],end:i[c]});continue}const d=T_(t,u);for(const f of d){const p=Oc(n,o[f.start],o[f.end],f.loop),m=A_(a,i,p);for(const _ of m)r.push({source:_,target:f,start:{[n]:lp(u,p,"start",Math.max)},end:{[n]:lp(u,p,"end",Math.min)}})}}return r}function Oc(e,t,n,s){if(s)return;let i=t[e],o=n[e];return e==="angle"&&(i=Me(i),o=Me(o)),{property:e,start:i,end:o}}function cI(e,t){const{x:n=null,y:s=null}=e||{},i=t.points,o=[];return t.segments.forEach(({start:r,end:a})=>{a=Ju(r,a,i);const l=i[r],c=i[a];s!==null?(o.push({x:l.x,y:s}),o.push({x:c.x,y:s})):n!==null&&(o.push({x:n,y:l.y}),o.push({x:n,y:c.y}))}),o}function Ju(e,t,n){for(;t>e;t--){const s=n[t];if(!isNaN(s.x)&&!isNaN(s.y))break}return t}function lp(e,t,n,s){return e&&t?s(e[n],t[n]):e?e[n]:t?t[n]:0}function U_(e,t){let n=[],s=!1;return Ht(e)?(s=!0,n=e):n=cI(e,t),n.length?new Mn({points:n,options:{tension:0},_loop:s,_fullLoop:s}):null}function cp(e){return e&&e.fill!==!1}function uI(e,t,n){let i=e[t].fill;const o=[t];let r;if(!n)return i;for(;i!==!1&&o.indexOf(i)===-1;){if(!qt(i))return i;if(r=e[i],!r)return!1;if(r.visible)return i;o.push(i),i=r.fill}return!1}function dI(e,t,n){const s=gI(e);if(Pt(s))return isNaN(s.value)?!1:s;let i=parseFloat(s);return qt(i)&&Math.floor(i)===i?hI(s[0],t,i,n):["origin","start","end","stack","shape"].indexOf(s)>=0&&s}function hI(e,t,n,s){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=s?!1:n}function fI(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:Pt(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function pI(e,t,n){let s;return e==="start"?s=n:e==="end"?s=t.options.reverse?t.min:t.max:Pt(e)?s=e.value:s=t.getBaseValue(),s}function gI(e){const t=e.options,n=t.fill;let s=yt(n&&n.target,n);return s===void 0&&(s=!!t.backgroundColor),s===!1||s===null?!1:s===!0?"origin":s}function mI(e){const{scale:t,index:n,line:s}=e,i=[],o=s.segments,r=s.points,a=_I(t,n);a.push(U_({x:null,y:t.bottom},s));for(let l=0;l=0;--r){const a=i[r].$filler;a&&(a.line.updateControlPoints(o,a.axis),s&&a.fill&&Xl(e.ctx,a,o))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const s=e.getSortedVisibleDatasetMetas();for(let i=s.length-1;i>=0;--i){const o=s[i].$filler;cp(o)&&Xl(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,t,n){const s=t.meta.$filler;!cp(s)||n.drawTime!=="beforeDatasetDraw"||Xl(e.ctx,s,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const fp=(e,t)=>{let{boxHeight:n=t,boxWidth:s=t}=e;return e.usePointStyle&&(n=Math.min(n,t),s=e.pointStyleWidth||Math.min(s,t)),{boxWidth:s,boxHeight:n,itemHeight:Math.max(t,n)}},TI=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class pp extends In{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.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(t,n,s){this.maxWidth=t,this.maxHeight=n,this._margins=s,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 t=this.options.labels||{};let n=Bt(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(s=>t.filter(s,this.chart.data))),t.sort&&(n=n.sort((s,i)=>t.sort(s,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const s=t.labels,i=ee(s.font),o=i.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=fp(s,o);let c,u;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(r,o,a,l)+10):(u=this.maxHeight,c=this._fitCols(r,i,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,n,s,i){const{ctx:o,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=i+a;let d=t;o.textAlign="left",o.textBaseline="middle";let f=-1,p=-u;return this.legendItems.forEach((m,_)=>{const y=s+n/2+o.measureText(m.text).width;(_===0||c[c.length-1]+y+2*a>r)&&(d+=u,c[c.length-(_>0?0:1)]=0,p+=u,f++),l[_]={left:0,top:p,row:f,width:y,height:i},c[c.length-1]+=y+a}),d}_fitCols(t,n,s,i){const{ctx:o,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=r-t;let d=a,f=0,p=0,m=0,_=0;return this.legendItems.forEach((y,x)=>{const{itemWidth:S,itemHeight:P}=PI(s,n,o,y,i);x>0&&p+P+2*a>u&&(d+=f+a,c.push({width:f,height:p}),m+=f+a,_++,f=p=0),l[x]={left:m,top:p,col:_,width:S,height:P},f=Math.max(f,S),p+=P+a}),d+=f,c.push({width:f,height:p}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:s,labels:{padding:i},rtl:o}}=this,r=yi(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=ue(s,this.left+i,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=ue(s,this.left+i,this.right-this.lineWidths[a])),c.top+=this.top+t+i,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+i}else{let a=0,l=ue(s,this.top+t+i,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=ue(s,this.top+t+i,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+i,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;sl(t,this),this._draw(),il(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:s,ctx:i}=this,{align:o,labels:r}=t,a=Gt.color,l=yi(t.rtl,this.left,this.width),c=ee(r.font),{padding:u}=r,d=c.size,f=d/2;let p;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:m,boxHeight:_,itemHeight:y}=fp(r,d),x=function(E,A,w){if(isNaN(m)||m<=0||isNaN(_)||_<0)return;i.save();const k=yt(w.lineWidth,1);if(i.fillStyle=yt(w.fillStyle,a),i.lineCap=yt(w.lineCap,"butt"),i.lineDashOffset=yt(w.lineDashOffset,0),i.lineJoin=yt(w.lineJoin,"miter"),i.lineWidth=k,i.strokeStyle=yt(w.strokeStyle,a),i.setLineDash(yt(w.lineDash,[])),r.usePointStyle){const $={radius:_*Math.SQRT2/2,pointStyle:w.pointStyle,rotation:w.rotation,borderWidth:k},L=l.xPlus(E,m/2),N=A+f;g_(i,$,L,N,r.pointStyleWidth&&m)}else{const $=A+Math.max((d-_)/2,0),L=l.leftForLtr(E,m),N=Hs(w.borderRadius);i.beginPath(),Object.values(N).some(X=>X!==0)?Go(i,{x:L,y:$,w:m,h:_,radius:N}):i.rect(L,$,m,_),i.fill(),k!==0&&i.stroke()}i.restore()},S=function(E,A,w){Ys(i,w.text,E,A+y/2,c,{strikethrough:w.hidden,textAlign:l.textAlign(w.textAlign)})},P=this.isHorizontal(),C=this._computeTitleHeight();P?p={x:ue(o,this.left+u,this.right-s[0]),y:this.top+u+C,line:0}:p={x:this.left+u,y:ue(o,this.top+C+u,this.bottom-n[0].height),line:0},E_(this.ctx,t.textDirection);const v=y+u;this.legendItems.forEach((E,A)=>{i.strokeStyle=E.fontColor,i.fillStyle=E.fontColor;const w=i.measureText(E.text).width,k=l.textAlign(E.textAlign||(E.textAlign=r.textAlign)),$=m+f+w;let L=p.x,N=p.y;l.setWidth(this.width),P?A>0&&L+$+u>this.right&&(N=p.y+=v,p.line++,L=p.x=ue(o,this.left+u,this.right-s[p.line])):A>0&&N+v>this.bottom&&(L=p.x=L+n[p.line].width+u,p.line++,N=p.y=ue(o,this.top+C+u,this.bottom-n[p.line].height));const X=l.x(L);if(x(X,N,E),L=oD(k,L+m+f,P?L+$:this.right,t.rtl),S(l.x(L),N,E),P)p.x+=$+u;else if(typeof E.text!="string"){const Y=c.lineHeight;p.y+=q_(E,Y)+u}else p.y+=v}),S_(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,s=ee(n.font),i=fe(n.padding);if(!n.display)return;const o=yi(t.rtl,this.left,this.width),r=this.ctx,a=n.position,l=s.size/2,c=i.top+l;let u,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),u=this.top+c,d=ue(t.align,d,this.right-f);else{const m=this.columnSizes.reduce((_,y)=>Math.max(_,y.height),0);u=c+ue(t.align,this.top,this.bottom-m-t.labels.padding-this._computeTitleHeight())}const p=ue(a,d,d+f);r.textAlign=o.textAlign(Wu(a)),r.textBaseline="middle",r.strokeStyle=n.color,r.fillStyle=n.color,r.font=s.string,Ys(r,n.text,p,u,s)}_computeTitleHeight(){const t=this.options.title,n=ee(t.font),s=fe(t.padding);return t.display?n.lineHeight+s.height:0}_getLegendItemAt(t,n){let s,i,o;if(An(t,this.left,this.right)&&An(n,this.top,this.bottom)){for(o=this.legendHitBoxes,s=0;so.length>r.length?o:r)),t+n.size/2+s.measureText(i).width}function kI(e,t,n){let s=e;return typeof t.text!="string"&&(s=q_(t,n)),s}function q_(e,t){const n=e.text?e.text.length:0;return t*n}function OI(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var G_={id:"legend",_element:pp,start(e,t,n){const s=e.legend=new pp({ctx:e.ctx,options:n,chart:e});ze.configure(e,s,n),ze.addBox(e,s)},stop(e){ze.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const s=e.legend;ze.configure(e,s,n),s.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const s=t.datasetIndex,i=n.chart;i.isDatasetVisible(s)?(i.hide(s),t.hidden=!0):(i.show(s),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:s,textAlign:i,color:o,useBorderRadius:r,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=fe(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:s||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:r&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class X_ extends In{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.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(t,n){const s=this.options;if(this.left=0,this.top=0,!s.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=Ht(s.text)?s.text.length:1;this._padding=fe(s.padding);const o=i*ee(s.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:s,bottom:i,right:o,options:r}=this,a=r.align;let l=0,c,u,d;return this.isHorizontal()?(u=ue(a,s,o),d=n+t,c=o-s):(r.position==="left"?(u=s+t,d=ue(a,i,n),l=Wt*-.5):(u=o-t,d=ue(a,n,i),l=Wt*.5),c=i-n),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const s=ee(n.font),o=s.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);Ys(t,n.text,0,0,s,{color:n.color,maxWidth:l,rotation:c,textAlign:Wu(n.align),textBaseline:"middle",translation:[r,a]})}}function DI(e,t){const n=new X_({ctx:e.ctx,options:t,chart:e});ze.configure(e,n,t),ze.addBox(e,n),e.titleBlock=n}var Q_={id:"title",_element:X_,start(e,t,n){DI(e,n)},stop(e){const t=e.titleBlock;ze.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const s=e.titleBlock;ze.configure(e,s,n),s.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 _o={average(e){if(!e.length)return!1;let t,n,s=0,i=0,o=0;for(t=0,n=e.length;t-1?e.split(` -`):e}function AI(e,t){const{element:n,datasetIndex:s,index:i}=t,o=e.getDatasetMeta(s).controller,{label:r,value:a}=o.getLabelAndValue(i);return{chart:e,label:r,parsed:o.getParsed(i),raw:e.data.datasets[s].data[i],formattedValue:a,dataset:o.getDataset(),dataIndex:i,datasetIndex:s,element:n}}function up(e,t){const n=e.chart.ctx,{body:s,footer:i,title:o}=e,{boxWidth:r,boxHeight:a}=t,l=ee(t.bodyFont),c=ee(t.titleFont),u=ee(t.footerFont),d=o.length,f=i.length,p=s.length,g=ue(t.padding);let m=g.height,y=0,x=s.reduce((C,v)=>C+v.before.length+v.lines.length+v.after.length,0);if(x+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),x){const C=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;m+=p*C+(x-p)*l.lineHeight+(x-1)*t.bodySpacing}f&&(m+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let S=0;const M=function(C){y=Math.max(y,n.measureText(C).width+S)};return n.save(),n.font=c.string,It(e.title,M),n.font=l.string,It(e.beforeBody.concat(e.afterBody),M),S=t.displayColors?r+2+t.boxPadding:0,It(s,C=>{It(C.before,M),It(C.lines,M),It(C.after,M)}),S=0,n.font=u.string,It(e.footer,M),n.restore(),y+=g.width,{width:y,height:m}}function TI(e,t){const{y:n,height:s}=t;return ne.height-s/2?"bottom":"center"}function MI(e,t,n,s){const{x:i,width:o}=s,r=n.caretSize+n.caretPadding;if(e==="left"&&i+o+r>t.width||e==="right"&&i-o-r<0)return!0}function PI(e,t,n,s){const{x:i,width:o}=n,{width:r,chartArea:{left:a,right:l}}=e;let c="center";return s==="center"?c=i<=(a+l)/2?"left":"right":i<=o/2?c="left":i>=r-o/2&&(c="right"),MI(c,e,t,n)&&(c="center"),c}function dp(e,t,n){const s=n.yAlign||t.yAlign||TI(e,n);return{xAlign:n.xAlign||t.xAlign||PI(e,t,n,s),yAlign:s}}function kI(e,t){let{x:n,width:s}=e;return t==="right"?n-=s:t==="center"&&(n-=s/2),n}function OI(e,t,n){let{y:s,height:i}=e;return t==="top"?s+=n:t==="bottom"?s-=i+n:s-=i/2,s}function hp(e,t,n,s){const{caretSize:i,caretPadding:o,cornerRadius:r}=e,{xAlign:a,yAlign:l}=n,c=i+o,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=Ns(r);let g=kI(t,a);const m=OI(t,l,c);return l==="center"?a==="left"?g+=c:a==="right"&&(g-=c):a==="left"?g-=Math.max(u,f)+i:a==="right"&&(g+=Math.max(d,p)+i),{x:oe(g,0,s.width-t.width),y:oe(m,0,s.height-t.height)}}function Br(e,t,n){const s=ue(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-s.right:e.x+s.left}function fp(e){return tn([],yn(e))}function DI(e,t,n){return ls(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function pp(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const q_={beforeTitle:mn,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,s=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(s>0&&t.dataIndex"u"?q_[t].call(n,s):i}class Pc extends On{constructor(t){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=t.chart,this.options=t.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(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,s=this.options.setContext(this.getContext()),i=s.enabled&&n.options.animation&&s.animations,o=new C_(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=DI(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:s}=n,i=be(s,"beforeTitle",this,t),o=be(s,"title",this,t),r=be(s,"afterTitle",this,t);let a=[];return a=tn(a,yn(i)),a=tn(a,yn(o)),a=tn(a,yn(r)),a}getBeforeBody(t,n){return fp(be(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:s}=n,i=[];return It(t,o=>{const r={before:[],lines:[],after:[]},a=pp(s,o);tn(r.before,yn(be(a,"beforeLabel",this,o))),tn(r.lines,be(a,"label",this,o)),tn(r.after,yn(be(a,"afterLabel",this,o))),i.push(r)}),i}getAfterBody(t,n){return fp(be(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:s}=n,i=be(s,"beforeFooter",this,t),o=be(s,"footer",this,t),r=be(s,"afterFooter",this,t);let a=[];return a=tn(a,yn(i)),a=tn(a,yn(o)),a=tn(a,yn(r)),a}_createItems(t){const n=this._active,s=this.chart.data,i=[],o=[],r=[];let a=[],l,c;for(l=0,c=n.length;lt.filter(u,d,f,s))),t.itemSort&&(a=a.sort((u,d)=>t.itemSort(u,d,s))),It(a,u=>{const d=pp(t.callbacks,u);i.push(be(d,"labelColor",this,u)),o.push(be(d,"labelPointStyle",this,u)),r.push(be(d,"labelTextColor",this,u))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=a,a}update(t,n){const s=this.options.setContext(this.getContext()),i=this._active;let o,r=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const a=uo[s.position].call(this,i,this._eventPosition);r=this._createItems(s),this.title=this.getTitle(r,s),this.beforeBody=this.getBeforeBody(r,s),this.body=this.getBody(r,s),this.afterBody=this.getAfterBody(r,s),this.footer=this.getFooter(r,s);const l=this._size=up(this,s),c=Object.assign({},a,l),u=dp(this.chart,s,c),d=hp(s,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,o={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=r,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&s.external&&s.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,s,i){const o=this.getCaretPosition(t,s,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,s){const{xAlign:i,yAlign:o}=this,{caretSize:r,cornerRadius:a}=s,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=Ns(a),{x:f,y:p}=t,{width:g,height:m}=n;let y,x,S,M,C,v;return o==="center"?(C=p+m/2,i==="left"?(y=f,x=y-r,M=C+r,v=C-r):(y=f+g,x=y+r,M=C-r,v=C+r),S=y):(i==="left"?x=f+Math.max(l,u)+r:i==="right"?x=f+g-Math.max(c,d)-r:x=this.caretX,o==="top"?(M=p,C=M-r,y=x-r,S=x+r):(M=p+m,C=M+r,y=x+r,S=x-r),v=M),{x1:y,x2:x,x3:S,y1:M,y2:C,y3:v}}drawTitle(t,n,s){const i=this.title,o=i.length;let r,a,l;if(o){const c=mi(s.rtl,this.x,this.width);for(t.x=Br(this,s.titleAlign,s),n.textAlign=c.textAlign(s.titleAlign),n.textBaseline="middle",r=ee(s.titleFont),a=s.titleSpacing,n.fillStyle=s.titleColor,n.font=r.string,l=0;lS!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,Wo(t,{x:m,y:g,w:c,h:l,radius:x}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),Wo(t,{x:y,y:g+1,w:c-2,h:l-2,radius:x}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(m,g,c,l),t.strokeRect(m,g,c,l),t.fillStyle=r.backgroundColor,t.fillRect(y,g+1,c-2,l-2))}t.fillStyle=this.labelTextColors[s]}drawBody(t,n,s){const{body:i}=this,{bodySpacing:o,bodyAlign:r,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:u}=s,d=ee(s.bodyFont);let f=d.lineHeight,p=0;const g=mi(s.rtl,this.x,this.width),m=function(w){n.fillText(w,g.x(t.x+p),t.y+f/2),t.y+=f+o},y=g.textAlign(r);let x,S,M,C,v,E,A;for(n.textAlign=r,n.textBaseline="middle",n.font=d.string,t.x=Br(this,y,s),n.fillStyle=s.bodyColor,It(this.beforeBody,m),p=a&&y!=="right"?r==="center"?c/2+u:c+2+u:0,C=0,E=i.length;C0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,s=this.$animations,i=s&&s.x,o=s&&s.y;if(i||o){const r=uo[t.position].call(this,this._active,this._eventPosition);if(!r)return;const a=this._size=up(this,t),l=Object.assign({},r,this._size),c=dp(n,t,l),u=hp(t,l,c,n);(i._to!==u.x||o._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let s=this.opacity;if(!s)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};s=Math.abs(s)<.001?0:s;const r=ue(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=s,this.drawBackground(o,t,i,n),v_(t,n.textDirection),o.y+=r.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),x_(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const s=this._active,i=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),o=!ua(s,i),r=this._positionChanged(i,n);(o||r)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,s=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],r=this._getActiveElements(t,o,n,s),a=this._positionChanged(r,t),l=n||!ua(r,o)||a;return l&&(this._active=r,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,s,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const r=this.chart.getElementsAtEventForMode(t,o.mode,o,s);return o.reverse&&r.reverse(),r}_positionChanged(t,n){const{caretX:s,caretY:i,options:o}=this,r=uo[o.position].call(this,t,n);return r!==!1&&(s!==r.x||i!==r.y)}}st(Pc,"positioners",uo);var X_={id:"tooltip",_element:Pc,positioners:uo,afterInit(e,t,n){n&&(e.tooltip=new Pc({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.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:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.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:q_},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const $I=(e,t,n,s)=>(typeof t=="string"?(n=e.push(t)-1,s.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function LI(e,t,n,s){const i=e.indexOf(t);if(i===-1)return $I(e,t,n,s);const o=e.lastIndexOf(t);return i!==o?n:i}const II=(e,t)=>e===null?null:oe(Math.round(e),0,t);function gp(e){const t=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}st(ba,"id","category"),st(ba,"defaults",{ticks:{callback:gp}});function RI(e,t){const n=[],{bounds:i,step:o,min:r,max:a,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:f}=e,p=o||1,g=u-1,{min:m,max:y}=t,x=!Dt(r),S=!Dt(a),M=!Dt(c),C=(y-m)/(d+1);let v=df((y-m)/g/p)*p,E,A,w,k;if(v<1e-14&&!x&&!S)return[{value:m},{value:y}];k=Math.ceil(y/v)-Math.floor(m/v),k>g&&(v=df(k*v/g/p)*p),Dt(l)||(E=Math.pow(10,l),v=Math.ceil(v*E)/E),i==="ticks"?(A=Math.floor(m/v)*v,w=Math.ceil(y/v)*v):(A=m,w=y),x&&S&&o&&UO((a-r)/o,v/1e3)?(k=Math.round(Math.min((a-r)/v,u)),v=(a-r)/k,A=r,w=a):M?(A=x?r:A,w=S?a:w,k=c-1,v=(w-A)/k):(k=(w-A)/v,xo(k,Math.round(k),v/1e3)?k=Math.round(k):k=Math.ceil(k));const $=Math.max(hf(v),hf(A));E=Math.pow(10,Dt(l)?$:l),A=Math.round(A*E)/E,w=Math.round(w*E)/E;let L=0;for(x&&(f&&A!==r?(n.push({value:r}),Aa)break;n.push({value:N})}return S&&f&&w!==a?n.length&&xo(n[n.length-1].value,a,mp(a,C,e))?n[n.length-1].value=a:n.push({value:a}):(!S||w===a)&&n.push({value:w}),n}function mp(e,t,{horizontal:n,minRotation:s}){const i=qe(s),o=(n?Math.sin(i):Math.cos(i))||.001,r=.75*t*(""+e).length;return Math.min(t/o,r)}class ya extends Ks{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return Dt(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:s}=this.getUserBounds();let{min:i,max:o}=this;const r=l=>i=n?i:l,a=l=>o=s?o:l;if(t){const l=ln(i),c=ln(o);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);a(o+l),t||r(i-l)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:s}=t,i;return s?(i=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} 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 t=this.options,n=t.ticks;let s=this.getTickLimit();s=Math.max(2,s);const i={maxTicks:s,bounds:t.bounds,min:t.min,max:t.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,r=RI(i,o);return t.bounds==="ticks"&&s_(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let n=this.min,s=this.max;if(super.configure(),this.options.offset&&t.length){const i=(s-n)/Math.max(t.length-1,1)/2;n-=i,s+=i}this._startValue=n,this._endValue=s,this._valueRange=s-n}getLabelForValue(t){return tr(t,this.chart.options.locale,this.options.ticks.format)}}class va extends ya{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Yt(t)?t:0,this.max=Yt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,s=qe(this.options.ticks.minRotation),i=(t?Math.sin(s):Math.cos(s))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}st(va,"id","linear"),st(va,"defaults",{ticks:{callback:Ja.formatters.numeric}});const Uo=e=>Math.floor(Yn(e)),Cs=(e,t)=>Math.pow(10,Uo(e)+t);function _p(e){return e/Math.pow(10,Uo(e))===1}function bp(e,t,n){const s=Math.pow(10,n),i=Math.floor(e/s);return Math.ceil(t/s)-i}function NI(e,t){const n=t-e;let s=Uo(n);for(;bp(e,t,s)>10;)s++;for(;bp(e,t,s)<10;)s--;return Math.min(s,Uo(e))}function FI(e,{min:t,max:n}){t=Se(e.min,t);const s=[],i=Uo(t);let o=NI(t,n),r=o<0?Math.pow(10,Math.abs(o)):1;const a=Math.pow(10,o),l=i>o?Math.pow(10,i):0,c=Math.round((t-l)*r)/r,u=Math.floor((t-l)/a/10)*a*10;let d=Math.floor((c-u)/Math.pow(10,o)),f=Se(e.min,Math.round((l+u+d*Math.pow(10,o))*r)/r);for(;f=10?d=d<15?15:20:d++,d>=20&&(o++,d=2,r=o>=0?1:r),f=Math.round((l+u+d*Math.pow(10,o))*r)/r;const p=Se(e.max,f);return s.push({value:p,major:_p(p),significand:d}),s}class xa extends Ks{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const s=ya.prototype.parse.apply(this,[t,n]);if(s===0){this._zero=!0;return}return Yt(s)&&s>0?s:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Yt(t)?Math.max(0,t):null,this.max=Yt(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Yt(this._userMin)&&(this.min=t===Cs(this.min,0)?Cs(this.min,-1):Cs(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let s=this.min,i=this.max;const o=a=>s=t?s:a,r=a=>i=n?i:a;s===i&&(s<=0?(o(1),r(10)):(o(Cs(s,-1)),r(Cs(i,1)))),s<=0&&o(Cs(i,-1)),i<=0&&r(Cs(s,1)),this.min=s,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},s=FI(n,this);return t.bounds==="ticks"&&s_(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}getLabelForValue(t){return t===void 0?"0":tr(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Yn(t),this._valueRange=Yn(this.max)-Yn(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Yn(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}st(xa,"id","logarithmic"),st(xa,"defaults",{ticks:{callback:Ja.formatters.logarithmic,major:{enabled:!0}}});function kc(e){const t=e.ticks;if(t.display&&e.display){const n=ue(t.backdropPadding);return yt(t.font&&t.font.size,Gt.font.size)+n.height}return 0}function BI(e,t,n){return n=Ht(n)?n:[n],{w:lD(e,t.string,n),h:n.length*t.lineHeight}}function yp(e,t,n,s,i){return e===s||e===i?{start:t-n/2,end:t+n/2}:ei?{start:t-n,end:t}:{start:t,end:t+n}}function VI(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),s=[],i=[],o=e._pointLabels.length,r=e.options.pointLabels,a=r.centerPointLabels?Wt/o:0;for(let l=0;lt.r&&(a=(s.end-t.r)/o,e.r=Math.max(e.r,t.r+a)),i.startt.b&&(l=(i.end-t.b)/r,e.b=Math.max(e.b,t.b+l))}function jI(e,t,n){const s=e.drawingArea,{extra:i,additionalAngle:o,padding:r,size:a}=n,l=e.getPointPosition(t,s+i+r,o),c=Math.round(Ru(Ae(l.angle+Xt))),u=YI(l.y,a.h,c),d=UI(c),f=KI(l.x,a.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:f,top:u,right:f+a.w,bottom:u+a.h}}function WI(e,t){if(!t)return!0;const{left:n,top:s,right:i,bottom:o}=e;return!(Cn({x:n,y:s},t)||Cn({x:n,y:o},t)||Cn({x:i,y:s},t)||Cn({x:i,y:o},t))}function zI(e,t,n){const s=[],i=e._pointLabels.length,o=e.options,{centerPointLabels:r,display:a}=o.pointLabels,l={extra:kc(o)/2,additionalAngle:r?Wt/i:0};let c;for(let u=0;u270||n<90)&&(e-=t),e}function GI(e,t,n){const{left:s,top:i,right:o,bottom:r}=n,{backdropColor:a}=t;if(!Dt(a)){const l=Ns(t.borderRadius),c=ue(t.backdropPadding);e.fillStyle=a;const u=s-c.left,d=i-c.top,f=o-s+c.width,p=r-i+c.height;Object.values(l).some(g=>g!==0)?(e.beginPath(),Wo(e,{x:u,y:d,w:f,h:p,radius:l}),e.fill()):e.fillRect(u,d,f,p)}}function qI(e,t){const{ctx:n,options:{pointLabels:s}}=e;for(let i=t-1;i>=0;i--){const o=e._pointLabelItems[i];if(!o.visible)continue;const r=s.setContext(e.getPointLabelContext(i));GI(n,r,o);const a=ee(r.font),{x:l,y:c,textAlign:u}=o;js(n,e._pointLabels[i],l,c+a.lineHeight/2,a,{color:r.color,textAlign:u,textBaseline:"middle"})}}function Q_(e,t,n,s){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,jt);else{let o=e.getPointPosition(0,t);i.moveTo(o.x,o.y);for(let r=1;r{const i=Ft(this.options.pointLabels.callback,[n,s],this);return i||i===0?i:""}).filter((n,s)=>this.chart.getDataVisibility(s))}fit(){const t=this.options;t.display&&t.pointLabels.display?VI(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,s,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((s-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,s,i))}getIndexAngle(t){const n=jt/(this._pointLabels.length||1),s=this.options.startAngle||0;return Ae(t*n+qe(s))}getDistanceFromCenterForValue(t){if(Dt(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(Dt(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t{if(d!==0){l=this.getDistanceFromCenterForValue(u.value);const f=this.getContext(d),p=i.setContext(f),g=o.setContext(f);XI(this,p,l,r,g)}}),s.display){for(t.save(),a=r-1;a>=0;a--){const u=s.setContext(this.getPointLabelContext(a)),{color:d,lineWidth:f}=u;!f||!d||(t.lineWidth=f,t.strokeStyle=d,t.setLineDash(u.borderDash),t.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(a,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,s=n.ticks;if(!s.display)return;const i=this.getIndexAngle(0);let o,r;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&!n.reverse)return;const c=s.setContext(this.getContext(l)),u=ee(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=u.string,r=t.measureText(a.label).width,t.fillStyle=c.backdropColor;const d=ue(c.backdropPadding);t.fillRect(-r/2-d.left,-o-u.size/2-d.top,r+d.width,u.size+d.height)}js(t,a.label,0,-o,u,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),t.restore()}drawTitle(){}}st(ui,"id","radialLinear"),st(ui,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Ja.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),st(ui,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),st(ui,"descriptors",{angleLines:{_fallback:"grid"}});const nl={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}},ve=Object.keys(nl);function vp(e,t){return e-t}function xp(e,t){if(Dt(t))return null;const n=e._adapter,{parser:s,round:i,isoWeekday:o}=e._parseOpts;let r=t;return typeof s=="function"&&(r=s(r)),Yt(r)||(r=typeof s=="string"?n.parse(r,s):n.parse(r)),r===null?null:(i&&(r=i==="week"&&(Ni(o)||o===!0)?n.startOf(r,"isoWeek",o):n.startOf(r,i)),+r)}function wp(e,t,n,s){const i=ve.length;for(let o=ve.indexOf(e);o=ve.indexOf(n);o--){const r=ve[o];if(nl[r].common&&e._adapter.diff(i,s,r)>=t-1)return r}return ve[n?ve.indexOf(n):0]}function ZI(e){for(let t=ve.indexOf(e)+1,n=ve.length;t=t?n[s]:n[i];e[o]=!0}}function tR(e,t,n,s){const i=e._adapter,o=+i.startOf(t[0].value,s),r=t[t.length-1].value;let a,l;for(a=o;a<=r;a=+i.add(a,1,s))l=n[a],l>=0&&(t[l].major=!0);return t}function Sp(e,t,n){const s=[],i={},o=t.length;let r,a;for(r=0;r+t.value))}initOffsets(t=[]){let n=0,s=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?s=o:s=(o-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;n=oe(n,0,r),s=oe(s,0,r),this._offsets={start:n,end:s,factor:1/(n+1+s)}}_generate(){const t=this._adapter,n=this.min,s=this.max,i=this.options,o=i.time,r=o.unit||wp(o.minUnit,n,s,this._getLabelCapacity(n)),a=yt(i.ticks.stepSize,1),l=r==="week"?o.isoWeekday:!1,c=Ni(l)||l===!0,u={};let d=n,f,p;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":r),t.diff(s,n,r)>1e5*a)throw new Error(n+" and "+s+" are too far apart with stepSize of "+a+" "+r);const g=i.ticks.source==="data"&&this.getDataTimestamps();for(f=d,p=0;f+m)}getLabelForValue(t){const n=this._adapter,s=this.options.time;return s.tooltipFormat?n.format(t,s.tooltipFormat):n.format(t,s.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,o=this._unit,r=n||i[o];return this._adapter.format(t,r)}_tickFormatFunction(t,n,s,i){const o=this.options,r=o.ticks.callback;if(r)return Ft(r,[t,n,s],this);const a=o.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&a[l],d=c&&a[c],f=s[n],p=c&&d&&f&&f.major;return this._adapter.format(t,i||(p?d:u))}generateTickLabels(t){let n,s,i;for(n=0,s=t.length;n0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,s;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,s=i.length;n=e[s].pos&&t<=e[i].pos&&({lo:s,hi:i}=Sn(e,"pos",t)),{pos:o,time:a}=e[s],{pos:r,time:l}=e[i]):(t>=e[s].time&&t<=e[i].time&&({lo:s,hi:i}=Sn(e,"time",t)),{time:o,pos:a}=e[s],{time:r,pos:l}=e[i]);const c=r-o;return c?a+(l-a)*(t-o)/c:a}class wa extends Vi{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Vr(n,this.min),this._tableRange=Vr(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:s}=this,i=[],o=[];let r,a,l,c,u;for(r=0,a=t.length;r=n&&c<=s&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:s,pos:1}];for(r=0,a=i.length;ri-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),s=this.getLabelTimestamps();return n.length&&s.length?t=this.normalize(n.concat(s)):t=n.length?n:s,t=this._cache.all=t,t}getDecimalForValue(t){return(Vr(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,s=this.getDecimalForPixel(t)/n.factor-n.end;return Vr(this._table,s*this._tableRange+this._minPos,!0)}}st(wa,"id","timeseries"),st(wa,"defaults",Vi.defaults);const J_={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},eR={ariaLabel:{type:String},ariaDescribedby:{type:String}},nR={type:{type:String,required:!0},...J_,...eR},sR=rm[0]==="2"?(e,t)=>Object.assign(e,{attrs:t}):(e,t)=>Object.assign(e,t);function oi(e){return $a(e)?At(e):e}function iR(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;return $a(t)?new Proxy(e,{}):e}function oR(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function Z_(e,t){e.labels=t}function tb(e,t,n){const s=[];e.datasets=t.map(i=>{const o=e.datasets.find(r=>r[n]===i[n]);return!o||!i.data||s.includes(o)?{...i}:(s.push(o),Object.assign(o,i),o)})}function rR(e,t){const n={labels:[],datasets:[]};return Z_(n,e.labels),tb(n,e.datasets,t),n}const aR=Ba({props:nR,setup(e,t){let{expose:n,slots:s}=t;const i=Ci(null),o=lu(null);n({chart:o});const r=()=>{if(!i.value)return;const{type:c,data:u,options:d,plugins:f,datasetIdKey:p}=e,g=rR(u,p),m=iR(g,u);o.value=new nr(i.value,{type:c,data:m,options:{...d},plugins:f})},a=()=>{const c=At(o.value);c&&(c.destroy(),o.value=null)},l=c=>{c.update(e.updateMode)};return _u(r),bu(a),Is([()=>e.options,()=>e.data],(c,u)=>{let[d,f]=c,[p,g]=u;const m=At(o.value);if(!m)return;let y=!1;if(d){const x=oi(d),S=oi(p);x&&x!==S&&(oR(m,x),y=!0)}if(f){const x=oi(f.labels),S=oi(g.labels),M=oi(f.datasets),C=oi(g.datasets);x!==S&&(Z_(m.config.data,x),y=!0),M&&M!==C&&(tb(m.config.data,M,e.datasetIdKey),y=!0)}y&&La(()=>{l(m)})},{deep:!0}),()=>Pi("canvas",{role:"img",ariaLabel:e.ariaLabel,ariaDescribedby:e.ariaDescribedby,ref:i},[Pi("p",{},[s.default?s.default():""])])}});function eb(e,t){return nr.register(t),Ba({props:J_,setup(n,s){let{expose:i}=s;const o=lu(null),r=a=>{o.value=a==null?void 0:a.chart};return i({chart:o}),()=>Pi(aR,sR({ref:r},{type:e,...n}))}})}const lR=eb("bar",_i),cR=eb("line",bi);function Pn(e){return Array.isArray?Array.isArray(e):ib(e)==="[object Array]"}const uR=1/0;function dR(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-uR?"-0":t}function hR(e){return e==null?"":dR(e)}function on(e){return typeof e=="string"}function nb(e){return typeof e=="number"}function fR(e){return e===!0||e===!1||pR(e)&&ib(e)=="[object Boolean]"}function sb(e){return typeof e=="object"}function pR(e){return sb(e)&&e!==null}function Te(e){return e!=null}function Yl(e){return!e.trim().length}function ib(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const gR="Incorrect 'index' type",mR=e=>`Invalid value for key ${e}`,_R=e=>`Pattern length exceeds max of ${e}.`,bR=e=>`Missing ${e} property in key`,yR=e=>`Property 'weight' in key '${e}' must be a positive integer`,Cp=Object.prototype.hasOwnProperty;class vR{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(s=>{let i=ob(s);this._keys.push(i),this._keyMap[i.id]=i,n+=i.weight}),this._keys.forEach(s=>{s.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function ob(e){let t=null,n=null,s=null,i=1,o=null;if(on(e)||Pn(e))s=e,t=Ap(e),n=Oc(e);else{if(!Cp.call(e,"name"))throw new Error(bR("name"));const r=e.name;if(s=r,Cp.call(e,"weight")&&(i=e.weight,i<=0))throw new Error(yR(r));t=Ap(r),n=Oc(r),o=e.getFn}return{path:t,id:n,weight:i,src:s,getFn:o}}function Ap(e){return Pn(e)?e:e.split(".")}function Oc(e){return Pn(e)?e.join("."):e}function xR(e,t){let n=[],s=!1;const i=(o,r,a)=>{if(Te(o))if(!r[a])n.push(o);else{let l=r[a];const c=o[l];if(!Te(c))return;if(a===r.length-1&&(on(c)||nb(c)||fR(c)))n.push(hR(c));else if(Pn(c)){s=!0;for(let u=0,d=c.length;ue.score===t.score?e.idx{this._keysMap[n.id]=s})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,on(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();on(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,s=this.size();n{let r=i.getFn?i.getFn(t):this.getFn(t,i.path);if(Te(r)){if(Pn(r)){let a=[];const l=[{nestedArrIndex:-1,value:r}];for(;l.length;){const{nestedArrIndex:c,value:u}=l.pop();if(Te(u))if(on(u)&&!Yl(u)){let d={v:u,i:c,n:this.norm.get(u)};a.push(d)}else Pn(u)&&u.forEach((d,f)=>{l.push({nestedArrIndex:f,value:d})})}s.$[o]=a}else if(on(r)&&!Yl(r)){let a={v:r,n:this.norm.get(r)};s.$[o]=a}}}),this.records.push(s)}toJSON(){return{keys:this.keys,records:this.records}}}function rb(e,t,{getFn:n=_t.getFn,fieldNormWeight:s=_t.fieldNormWeight}={}){const i=new Gu({getFn:n,fieldNormWeight:s});return i.setKeys(e.map(ob)),i.setSources(t),i.create(),i}function MR(e,{getFn:t=_t.getFn,fieldNormWeight:n=_t.fieldNormWeight}={}){const{keys:s,records:i}=e,o=new Gu({getFn:t,fieldNormWeight:n});return o.setKeys(s),o.setIndexRecords(i),o}function Hr(e,{errors:t=0,currentLocation:n=0,expectedLocation:s=0,distance:i=_t.distance,ignoreLocation:o=_t.ignoreLocation}={}){const r=t/e.length;if(o)return r;const a=Math.abs(s-n);return i?r+a/i:a?1:r}function PR(e=[],t=_t.minMatchCharLength){let n=[],s=-1,i=-1,o=0;for(let r=e.length;o=t&&n.push([s,i]),s=-1)}return e[o-1]&&o-s>=t&&n.push([s,o-1]),n}const ks=32;function kR(e,t,n,{location:s=_t.location,distance:i=_t.distance,threshold:o=_t.threshold,findAllMatches:r=_t.findAllMatches,minMatchCharLength:a=_t.minMatchCharLength,includeMatches:l=_t.includeMatches,ignoreLocation:c=_t.ignoreLocation}={}){if(t.length>ks)throw new Error(_R(ks));const u=t.length,d=e.length,f=Math.max(0,Math.min(s,d));let p=o,g=f;const m=a>1||l,y=m?Array(d):[];let x;for(;(x=e.indexOf(t,g))>-1;){let A=Hr(t,{currentLocation:x,expectedLocation:f,distance:i,ignoreLocation:c});if(p=Math.min(A,p),g=x+u,m){let w=0;for(;w=$;Y-=1){let H=Y-1,R=n[e.charAt(H)];if(m&&(y[H]=+!!R),N[Y]=(N[Y+1]<<1|1)&R,A&&(N[Y]|=(S[Y+1]|S[Y])<<1|1|S[Y+1]),N[Y]&v&&(M=Hr(t,{errors:A,currentLocation:H,expectedLocation:f,distance:i,ignoreLocation:c}),M<=p)){if(p=M,g=H,g<=f)break;$=Math.max(1,2*f-g)}}if(Hr(t,{errors:A+1,currentLocation:f,expectedLocation:f,distance:i,ignoreLocation:c})>p)break;S=N}const E={isMatch:g>=0,score:Math.max(.001,M)};if(m){const A=PR(y,a);A.length?l&&(E.indices=A):E.isMatch=!1}return E}function OR(e){let t={};for(let n=0,s=e.length;n{this.chunks.push({pattern:f,alphabet:OR(f),startIndex:p})},d=this.pattern.length;if(d>ks){let f=0;const p=d%ks,g=d-p;for(;f{const{isMatch:x,score:S,indices:M}=kR(t,g,m,{location:i+y,distance:o,threshold:r,findAllMatches:a,minMatchCharLength:l,includeMatches:s,ignoreLocation:c});x&&(f=!0),d+=S,x&&M&&(u=[...u,...M])});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&s&&(p.indices=u),p}}class cs{constructor(t){this.pattern=t}static isMultiMatch(t){return Tp(t,this.multiRegex)}static isSingleMatch(t){return Tp(t,this.singleRegex)}search(){}}function Tp(e,t){const n=e.match(t);return n?n[1]:null}class DR extends cs{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class $R extends cs{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const s=t.indexOf(this.pattern)===-1;return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}}class LR extends cs{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class IR extends cs{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class RR extends cs{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class NR extends cs{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class lb extends cs{constructor(t,{location:n=_t.location,threshold:s=_t.threshold,distance:i=_t.distance,includeMatches:o=_t.includeMatches,findAllMatches:r=_t.findAllMatches,minMatchCharLength:a=_t.minMatchCharLength,isCaseSensitive:l=_t.isCaseSensitive,ignoreLocation:c=_t.ignoreLocation}={}){super(t),this._bitapSearch=new ab(t,{location:n,threshold:s,distance:i,includeMatches:o,findAllMatches:r,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class cb extends cs{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,s;const i=[],o=this.pattern.length;for(;(s=t.indexOf(this.pattern,n))>-1;)n=s+o,i.push([s,n-1]);const r=!!i.length;return{isMatch:r,score:r?0:1,indices:i}}}const Dc=[DR,cb,LR,IR,NR,RR,$R,lb],Mp=Dc.length,FR=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,BR="|";function VR(e,t={}){return e.split(BR).map(n=>{let s=n.trim().split(FR).filter(o=>o&&!!o.trim()),i=[];for(let o=0,r=s.length;o!!(e[Ea.AND]||e[Ea.OR]),zR=e=>!!e[Ic.PATH],UR=e=>!Pn(e)&&sb(e)&&!Rc(e),Pp=e=>({[Ea.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function ub(e,t,{auto:n=!0}={}){const s=i=>{let o=Object.keys(i);const r=zR(i);if(!r&&o.length>1&&!Rc(i))return s(Pp(i));if(UR(i)){const l=r?i[Ic.PATH]:o[0],c=r?i[Ic.PATTERN]:i[l];if(!on(c))throw new Error(mR(l));const u={keyId:Oc(l),pattern:c};return n&&(u.searcher=Lc(c,t)),u}let a={children:[],operator:o[0]};return o.forEach(l=>{const c=i[l];Pn(c)&&c.forEach(u=>{a.children.push(s(u))})}),a};return Rc(e)||(e=Pp(e)),s(e)}function KR(e,{ignoreFieldNorm:t=_t.ignoreFieldNorm}){e.forEach(n=>{let s=1;n.matches.forEach(({key:i,norm:o,score:r})=>{const a=i?i.weight:null;s*=Math.pow(r===0&&a?Number.EPSILON:r,(a||1)*(t?1:o))}),n.score=s})}function YR(e,t){const n=e.matches;t.matches=[],Te(n)&&n.forEach(s=>{if(!Te(s.indices)||!s.indices.length)return;const{indices:i,value:o}=s;let r={indices:i,value:o};s.key&&(r.key=s.key.src),s.idx>-1&&(r.refIndex=s.idx),t.matches.push(r)})}function GR(e,t){t.score=e.score}function qR(e,t,{includeMatches:n=_t.includeMatches,includeScore:s=_t.includeScore}={}){const i=[];return n&&i.push(YR),s&&i.push(GR),e.map(o=>{const{idx:r}=o,a={item:t[r],refIndex:r};return i.length&&i.forEach(l=>{l(o,a)}),a})}class Ki{constructor(t,n={},s){this.options={..._t,...n},this.options.useExtendedSearch,this._keyStore=new vR(this.options.keys),this.setCollection(t,s)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof Gu))throw new Error(gR);this._myIndex=n||rb(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){Te(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let s=0,i=this._docs.length;s-1&&(l=l.slice(0,n)),qR(l,this._docs,{includeMatches:s,includeScore:i})}_searchStringList(t){const n=Lc(t,this.options),{records:s}=this._myIndex,i=[];return s.forEach(({v:o,i:r,n:a})=>{if(!Te(o))return;const{isMatch:l,score:c,indices:u}=n.searchIn(o);l&&i.push({item:o,idx:r,matches:[{score:c,value:o,norm:a,indices:u}]})}),i}_searchLogical(t){const n=ub(t,this.options),s=(a,l,c)=>{if(!a.children){const{keyId:d,searcher:f}=a,p=this._findMatches({key:this._keyStore.get(d),value:this._myIndex.getValueForItemAtKeyId(l,d),searcher:f});return p&&p.length?[{idx:c,item:l,matches:p}]:[]}const u=[];for(let d=0,f=a.children.length;d{if(Te(a)){let c=s(n,a,l);c.length&&(o[l]||(o[l]={idx:l,item:a,matches:[]},r.push(o[l])),c.forEach(({matches:u})=>{o[l].matches.push(...u)}))}}),r}_searchObjectList(t){const n=Lc(t,this.options),{keys:s,records:i}=this._myIndex,o=[];return i.forEach(({$:r,i:a})=>{if(!Te(r))return;let l=[];s.forEach((c,u)=>{l.push(...this._findMatches({key:c,value:r[u],searcher:n}))}),l.length&&o.push({idx:a,item:r,matches:l})}),o}_findMatches({key:t,value:n,searcher:s}){if(!Te(n))return[];let i=[];if(Pn(n))n.forEach(({v:o,i:r,n:a})=>{if(!Te(o))return;const{isMatch:l,score:c,indices:u}=s.searchIn(o);l&&i.push({score:c,key:t,value:o,idx:r,norm:a,indices:u})});else{const{v:o,n:r}=n,{isMatch:a,score:l,indices:c}=s.searchIn(o);a&&i.push({score:l,key:t,value:o,norm:r,indices:c})}return i}}Ki.version="7.0.0";Ki.createIndex=rb;Ki.parseIndex=MR;Ki.config=_t;Ki.parseQuery=ub;WR(jR);var db={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(Op,function(){var n=1e3,s=6e4,i=36e5,o="millisecond",r="second",a="minute",l="hour",c="day",u="week",d="month",f="quarter",p="year",g="date",m="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Y){var H=["th","st","nd","rd"],R=Y%100;return"["+Y+(H[(R-20)%10]||H[R]||H[0])+"]"}},M=function(Y,H,R){var W=String(Y);return!W||W.length>=H?Y:""+Array(H+1-W.length).join(R)+Y},C={s:M,z:function(Y){var H=-Y.utcOffset(),R=Math.abs(H),W=Math.floor(R/60),U=R%60;return(H<=0?"+":"-")+M(W,2,"0")+":"+M(U,2,"0")},m:function Y(H,R){if(H.date()1)return Y(lt[0])}else{var pt=H.name;E[pt]=H,U=pt}return!W&&U&&(v=U),U||!W&&v},$=function(Y,H){if(w(Y))return Y.clone();var R=typeof H=="object"?H:{};return R.date=Y,R.args=arguments,new N(R)},L=C;L.l=k,L.i=w,L.w=function(Y,H){return $(Y,{locale:H.$L,utc:H.$u,x:H.$x,$offset:H.$offset})};var N=function(){function Y(R){this.$L=k(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[A]=!0}var H=Y.prototype;return H.parse=function(R){this.$d=function(W){var U=W.date,it=W.utc;if(U===null)return new Date(NaN);if(L.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var lt=U.match(y);if(lt){var pt=lt[2]-1||0,ft=(lt[7]||"0").substring(0,3);return it?new Date(Date.UTC(lt[1],pt,lt[3]||1,lt[4]||0,lt[5]||0,lt[6]||0,ft)):new Date(lt[1],pt,lt[3]||1,lt[4]||0,lt[5]||0,lt[6]||0,ft)}}return new Date(U)}(R),this.init()},H.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},H.$utils=function(){return L},H.isValid=function(){return this.$d.toString()!==m},H.isSame=function(R,W){var U=$(R);return this.startOf(W)<=U&&U<=this.endOf(W)},H.isAfter=function(R,W){return $(R){t.status&&this.store.getConfiguration()})},updateRefreshInterval(e){De("/api/updateDashboardConfigurationItem",{section:"Server",key:"dashboard_refresh_interval",value:e},t=>{t.status&&this.store.getConfiguration()})}}},JR={class:"d-flex gap-2 mb-3 z-3"},ZR={class:"dropdown"},tN=b("button",{class:"btn btn-outline-secondary btn-sm dropdown-toggle rounded-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[b("i",{class:"bi bi-filter-circle me-2"}),Tt(" Sort ")],-1),eN={class:"dropdown-menu mt-2 shadow-lg"},nN=["onClick"],sN={class:"me-auto"},iN={key:0,class:"bi bi-check"},oN={class:"dropdown"},rN=b("button",{class:"btn btn-outline-secondary btn-sm dropdown-toggle rounded-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[b("i",{class:"bi bi-arrow-repeat me-2"}),Tt("Refresh Interval ")],-1),aN={class:"dropdown-menu"},lN=["onClick"],cN={class:"me-auto"},uN={key:0,class:"bi bi-check"},dN={class:"ms-auto d-flex align-items-center"},hN=b("label",{class:"d-flex me-2 text-muted",for:"searchPeers"},[b("i",{class:"bi bi-search me-1"})],-1);function fN(e,t,n,s,i,o){return rt(),ut("div",JR,[b("div",ZR,[tN,b("ul",eN,[(rt(!0),ut(Jt,null,Ai(this.sort,(r,a)=>(rt(),ut("li",null,[b("a",{class:"dropdown-item d-flex",role:"button",onClick:l=>this.updateSort(a)},[b("span",sN,Ct(r),1),s.store.Configuration.Server.dashboard_sort===a?(rt(),ut("i",iN)):me("",!0)],8,nN)]))),256))])]),b("div",oN,[rN,b("ul",aN,[(rt(!0),ut(Jt,null,Ai(this.interval,(r,a)=>(rt(),ut("li",null,[b("a",{class:"dropdown-item d-flex",role:"button",onClick:l=>o.updateRefreshInterval(a)},[b("span",cN,Ct(r),1),s.store.Configuration.Server.dashboard_refresh_interval===a?(rt(),ut("i",uN)):me("",!0)],8,lN)]))),256))])]),b("div",dN,[hN,Rt(b("input",{class:"form-control form-control-sm rounded-3","onUpdate:modelValue":t[0]||(t[0]=r=>this.wireguardConfigurationStore.searchString=r)},null,512),[[Bt,this.wireguardConfigurationStore.searchString]])])])}const pN=qt(QR,[["render",fN]]);nr.register(ci,An,Po,Mo,_i,So,Os,bi,ga,Co,Ao,To,ba,va,xa,ui,Vi,wa,H_,z_,K_,G_,X_);const gN={name:"peerList",components:{PeerSearch:pN,Peer:hO,Line:cR,Bar:lR},setup(){const e=de(),t=zi();return{dashboardConfigurationStore:e,wireguardConfigurationStore:t}},data(){return{loading:!1,error:null,configurationInfo:[],configurationPeers:[],historyDataSentDifference:[],historyDataReceivedDifference:[],historySentData:{labels:[],datasets:[{label:"Data Sent",data:[],fill:!1,borderColor:"#198754",tension:0}]},historyReceiveData:{labels:[],datasets:[{label:"Data Received",data:[],fill:!1,borderColor:"#0d6efd",tension:0}]}}},watch:{"$route.params.id":{immediate:!0,handler(){clearInterval(this.interval),this.loading=!0;let e=this.$route.params.id;this.configurationInfo=[],this.configurationPeers=[],e&&(this.getPeers(e),this.setInterval())}},"dashboardConfigurationStore.Configuration.Server.dashboard_refresh_interval"(){clearInterval(this.interval),this.setInterval()}},beforeRouteLeave(){clearInterval(this.interval)},methods:{getPeers(e){dn("/api/getWireguardConfigurationInfo",{configurationName:e},t=>{if(this.configurationInfo=t.data.configurationInfo,this.configurationPeers=t.data.configurationPeers,this.loading=!1,this.configurationPeers.length>0){const n=this.configurationPeers.map(i=>i.total_sent+i.cumu_sent).reduce((i,o)=>i+o).toFixed(4),s=this.configurationPeers.map(i=>i.total_receive+i.cumu_receive).reduce((i,o)=>i+o).toFixed(4);this.historyDataSentDifference[this.historyDataSentDifference.length-1]!==n&&(this.historyDataSentDifference.length>0&&(this.historySentData={labels:[...this.historySentData.labels,kp().format("HH:mm:ss A")],datasets:[{label:"Data Sent",data:[...this.historySentData.datasets[0].data,((n-this.historyDataSentDifference[this.historyDataSentDifference.length-1])*1e3).toFixed(4)],fill:!1,borderColor:" #198754",tension:0}]}),this.historyDataSentDifference.push(n)),this.historyDataReceivedDifference[this.historyDataReceivedDifference.length-1]!==s&&(this.historyDataReceivedDifference.length>0&&(this.historyReceiveData={labels:[...this.historyReceiveData.labels,kp().format("HH:mm:ss A")],datasets:[{label:"Data Received",data:[...this.historyReceiveData.datasets[0].data,((s-this.historyDataReceivedDifference[this.historyDataReceivedDifference.length-1])*1e3).toFixed(4)],fill:!1,borderColor:"#0d6efd",tension:0}]}),this.historyDataReceivedDifference.push(s))}})},setInterval(){this.interval=setInterval(()=>{this.getPeers(this.$route.params.id)},parseInt(this.dashboardConfigurationStore.Configuration.Server.dashboard_refresh_interval))}},computed:{configurationSummary(){return{connectedPeers:this.configurationPeers.filter(e=>e.status==="running").length,totalUsage:this.configurationPeers.length>0?this.configurationPeers.map(e=>e.total_data+e.cumu_data).reduce((e,t)=>e+t):0,totalReceive:this.configurationPeers.length>0?this.configurationPeers.map(e=>e.total_receive+e.cumu_receive).reduce((e,t)=>e+t):0,totalSent:this.configurationPeers.length>0?this.configurationPeers.map(e=>e.total_sent+e.cumu_sent).reduce((e,t)=>e+t):0}},receiveData(){return this.historyReceiveData},sentData(){return this.historySentData},individualDataUsage(){return{labels:this.configurationPeers.map(e=>e.name?e.name:`Untitled Peer - ${e.id}`),datasets:[{label:"Total Data Usage",data:this.configurationPeers.map(e=>e.cumu_data+e.total_data),backgroundColor:this.configurationPeers.map(e=>"#0dcaf0"),tooltip:{callbacks:{label:e=>`${e.formattedValue} GB`}}}]}},individualDataUsageChartOption(){return{responsive:!0,plugins:{legend:{display:!1}},scales:{x:{ticks:{display:!1},grid:{display:!1}},y:{ticks:{callback:(e,t)=>`${e} GB`},grid:{display:!1}}}}},chartOptions(){return{responsive:!0,plugins:{legend:{display:!1},tooltip:{callbacks:{label:e=>`${e.formattedValue} MB/s`}}},scales:{x:{ticks:{display:!1},grid:{display:!1}},y:{ticks:{callback:(e,t)=>`${e} MB/s`},grid:{display:!1}}}}},searchPeers(){const e=new Ki(this.configurationPeers,{keys:["name","id","allowed_ip"]});return(this.wireguardConfigurationStore.searchString?e.search(this.wireguardConfigurationStore.searchString).map(n=>n.item):this.configurationPeers).slice().sort((n,s)=>n[this.dashboardConfigurationStore.Configuration.Server.dashboard_sort]s[this.dashboardConfigurationStore.Configuration.Server.dashboard_sort]?1:0)}}},se=e=>(Na("data-v-37a98098"),e=e(),Fa(),e),mN={key:0},_N=se(()=>b("small",{CLASS:"text-muted"},"CONFIGURATION",-1)),bN={class:"d-flex align-items-center gap-3"},yN={class:"mb-0"},vN=se(()=>b("div",{class:"dot active ms-0"},null,-1)),xN={class:"row mt-3 gy-2 gx-2 mb-2"},wN={class:"col-6 col-lg-3"},EN={class:"card rounded-3 bg-transparent shadow-sm"},SN={class:"card-body py-2"},CN=se(()=>b("p",{class:"mb-0 text-muted"},[b("small",null,"Address")],-1)),AN={class:"col-6 col-lg-3"},TN={class:"card rounded-3 bg-transparent shadow-sm"},MN={class:"card-body py-2"},PN=se(()=>b("p",{class:"mb-0 text-muted"},[b("small",null,"Listen Port")],-1)),kN={style:{"word-break":"break-all"},class:"col-12 col-lg-6"},ON={class:"card rounded-3 bg-transparent shadow-sm"},DN={class:"card-body py-2"},$N=se(()=>b("p",{class:"mb-0 text-muted"},[b("small",null,"Public Key")],-1)),LN={class:"row gx-2 gy-2 mb-2"},IN={class:"col-6 col-lg-3"},RN={class:"card rounded-3 bg-transparent shadow-sm"},NN={class:"card-body d-flex"},FN=se(()=>b("p",{class:"mb-0 text-muted"},[b("small",null,"Connected Peers")],-1)),BN={class:"h4"},VN=se(()=>b("i",{class:"bi bi-ethernet ms-auto h2 text-muted"},null,-1)),HN={class:"col-6 col-lg-3"},jN={class:"card rounded-3 bg-transparent shadow-sm"},WN={class:"card-body d-flex"},zN=se(()=>b("p",{class:"mb-0 text-muted"},[b("small",null,"Total Usage")],-1)),UN={class:"h4"},KN=se(()=>b("i",{class:"bi bi-arrow-down-up ms-auto h2 text-muted"},null,-1)),YN={class:"col-6 col-lg-3"},GN={class:"card rounded-3 bg-transparent shadow-sm"},qN={class:"card-body d-flex"},XN=se(()=>b("p",{class:"mb-0 text-muted"},[b("small",null,"Total Received")],-1)),QN={class:"h4 text-primary"},JN=se(()=>b("i",{class:"bi bi-arrow-down ms-auto h2 text-muted"},null,-1)),ZN={class:"col-6 col-lg-3"},t2={class:"card rounded-3 bg-transparent shadow-sm"},e2={class:"card-body d-flex"},n2=se(()=>b("p",{class:"mb-0 text-muted"},[b("small",null,"Total Sent")],-1)),s2={class:"h4 text-success"},i2=se(()=>b("i",{class:"bi bi-arrow-up ms-auto h2 text-muted"},null,-1)),o2={class:"row gx-2 gy-2 mb-5"},r2={class:"col-12 col-lg-6"},a2={class:"card rounded-3 bg-transparent shadow-sm"},l2=se(()=>b("div",{class:"card-header bg-transparent border-0"},[b("small",{class:"text-muted"},"Peers Total Data Usage")],-1)),c2={class:"card-body pt-1"},u2={class:"col-sm col-lg-3"},d2={class:"card rounded-3 bg-transparent shadow-sm"},h2=se(()=>b("div",{class:"card-header bg-transparent border-0"},[b("small",{class:"text-muted"},"Real Time Received Data Usage")],-1)),f2={class:"card-body pt-1"},p2={class:"col-sm col-lg-3"},g2={class:"card rounded-3 bg-transparent shadow-sm"},m2=se(()=>b("div",{class:"card-header bg-transparent border-0"},[b("small",{class:"text-muted"},"Real Time Sent Data Usage")],-1)),_2={class:"card-body pt-1"},b2={class:"mb-4"},y2={class:"d-flex align-items-center gap-3 mb-2"},v2=se(()=>b("h3",null,"Peers",-1)),x2=se(()=>b("i",{class:"bi bi-sliders2 me-2"},null,-1)),w2=se(()=>b("a",{href:"#",class:"text-decoration-none"},[b("i",{class:"bi bi-plus-circle-fill me-2"}),Tt("Add Peer")],-1));function E2(e,t,n,s,i,o){const r=Ut("Bar"),a=Ut("Line"),l=Ut("RouterView"),c=Ut("RouterLink"),u=Ut("PeerSearch"),d=Ut("Peer");return this.loading?me("",!0):(rt(),ut("div",mN,[b("div",null,[_N,b("div",bN,[b("h1",yN,[b("samp",null,Ct(this.configurationInfo.Name),1)]),vN])]),b("div",xN,[b("div",wN,[b("div",EN,[b("div",SN,[CN,Tt(" "+Ct(this.configurationInfo.Address),1)])])]),b("div",AN,[b("div",TN,[b("div",MN,[PN,Tt(" "+Ct(this.configurationInfo.ListenPort),1)])])]),b("div",kN,[b("div",ON,[b("div",DN,[$N,b("samp",null,Ct(this.configurationInfo.PublicKey),1)])])])]),b("div",LN,[b("div",IN,[b("div",RN,[b("div",NN,[b("div",null,[FN,b("strong",BN,Ct(o.configurationSummary.connectedPeers),1)]),VN])])]),b("div",HN,[b("div",jN,[b("div",WN,[b("div",null,[zN,b("strong",UN,Ct(o.configurationSummary.totalUsage.toFixed(4))+" GB",1)]),KN])])]),b("div",YN,[b("div",GN,[b("div",qN,[b("div",null,[XN,b("strong",QN,Ct(o.configurationSummary.totalReceive.toFixed(4))+" GB",1)]),JN])])]),b("div",ZN,[b("div",t2,[b("div",e2,[b("div",null,[n2,b("strong",s2,Ct(o.configurationSummary.totalSent.toFixed(4))+" GB",1)]),i2])])])]),b("div",o2,[b("div",r2,[b("div",a2,[l2,b("div",c2,[mt(r,{data:o.individualDataUsage,options:o.individualDataUsageChartOption,style:{height:"200px",width:"100%"}},null,8,["data","options"])])])]),b("div",u2,[b("div",d2,[h2,b("div",f2,[mt(a,{options:o.chartOptions,data:o.receiveData,style:{width:"100%",height:"200px"}},null,8,["options","data"])])])]),b("div",p2,[b("div",g2,[m2,b("div",_2,[mt(a,{options:o.chartOptions,data:o.sentData,style:{width:"100%",height:"200px"}},null,8,["options","data"])])])])]),b("div",b2,[mt(l,null,{default:Kt(({Component:f})=>[mt(Us,{name:"fade3",mode:"out-in"},{default:Kt(()=>[(rt(),Ue(fu(f)))]),_:2},1024)]),_:1}),b("div",y2,[v2,mt(c,{to:"./peer_settings",class:"ms-auto text-secondary text-decoration-none"},{default:Kt(()=>[x2,Tt("Peer Settings")]),_:1}),w2]),mt(u),mt(pm,{name:"list",tag:"div",class:"row gx-2 gy-2 z-0"},{default:Kt(()=>[(rt(!0),ut(Jt,null,Ai(this.searchPeers,f=>(rt(),ut("div",{class:"col-12 col-lg-6 col-xl-4",key:f.id},[mt(d,{Peer:f},null,8,["Peer"])]))),128))]),_:1})])]))}const S2=qt(gN,[["render",E2],["__scopeId","data-v-37a98098"]]);nr.register(ci,An,Po,Mo,_i,So,Os,bi,ga,Co,Ao,To,ba,va,xa,ui,Vi,wa,H_,z_,K_,G_,X_);const C2={name:"configuration",components:{PeerList:S2}},A2={class:"mt-5 text-body"};function T2(e,t,n,s,i,o){const r=Ut("PeerList");return rt(),ut("div",A2,[mt(r)])}const M2=qt(C2,[["render",T2]]),P2={name:"peerSettings"},qu=e=>(Na("data-v-f992ec07"),e=e(),Fa(),e),k2={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0"},O2={class:"container d-flex h-100 w-100"},D2={class:"card m-auto rounded-3 w-100"},$2={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4"},L2=qu(()=>b("h4",{class:"mb-0"},"Peer Settings",-1)),I2=qu(()=>b("i",{class:"bi bi-x-lg"},null,-1)),R2=qu(()=>b("div",{class:"card-body p-4"},null,-1));function N2(e,t,n,s,i,o){const r=Ut("router-link");return rt(),ut("div",k2,[b("div",O2,[b("div",D2,[b("div",$2,[L2,mt(r,{to:"./",class:"ms-auto btn"},{default:Kt(()=>[I2]),_:1})]),R2])])])}const F2=qt(P2,[["render",N2],["__scopeId","data-v-f992ec07"]]),B2=async()=>{let e=!1;return await dn("/api/validateAuthentication",{},t=>{e=t.status}),e},Xu=vS({history:NE(),routes:[{name:"Index",path:"/",component:iC,meta:{requiresAuth:!0},children:[{name:"Configuration List",path:"",component:GC},{name:"Settings",path:"/settings",component:RT},{name:"New Configuration",path:"/new_configuration",component:Tk},{name:"Configuration",path:"/configuration/:id/",component:M2,children:[{name:"Peer Settings",path:"peer_settings",component:F2}]}]},{path:"/signin",component:SC},{path:"/welcome",component:hP,meta:{requiresAuth:!0}}]});Xu.beforeEach(async(e,t,n)=>{const s=zi(),i=de();e.meta.requiresAuth?MS.getCookie("authToken")&&await B2()?(await i.getConfiguration(),!s.Configurations&&e.name!=="Configuration List"&&await s.getConfigurations(),n()):n("/signin"):n()});const Qu=cE(TS);Qu.use(Xu);const hb=fE();hb.use(({store:e})=>{e.$router=qo(Xu)});Qu.use(hb);Qu.mount("#app"); +`):e}function $I(e,t){const{element:n,datasetIndex:s,index:i}=t,o=e.getDatasetMeta(s).controller,{label:r,value:a}=o.getLabelAndValue(i);return{chart:e,label:r,parsed:o.getParsed(i),raw:e.data.datasets[s].data[i],formattedValue:a,dataset:o.getDataset(),dataIndex:i,datasetIndex:s,element:n}}function gp(e,t){const n=e.chart.ctx,{body:s,footer:i,title:o}=e,{boxWidth:r,boxHeight:a}=t,l=ee(t.bodyFont),c=ee(t.titleFont),u=ee(t.footerFont),d=o.length,f=i.length,p=s.length,m=fe(t.padding);let _=m.height,y=0,x=s.reduce((C,v)=>C+v.before.length+v.lines.length+v.after.length,0);if(x+=e.beforeBody.length+e.afterBody.length,d&&(_+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),x){const C=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;_+=p*C+(x-p)*l.lineHeight+(x-1)*t.bodySpacing}f&&(_+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let S=0;const P=function(C){y=Math.max(y,n.measureText(C).width+S)};return n.save(),n.font=c.string,Nt(e.title,P),n.font=l.string,Nt(e.beforeBody.concat(e.afterBody),P),S=t.displayColors?r+2+t.boxPadding:0,Nt(s,C=>{Nt(C.before,P),Nt(C.lines,P),Nt(C.after,P)}),S=0,n.font=u.string,Nt(e.footer,P),n.restore(),y+=m.width,{width:y,height:_}}function LI(e,t){const{y:n,height:s}=t;return ne.height-s/2?"bottom":"center"}function II(e,t,n,s){const{x:i,width:o}=s,r=n.caretSize+n.caretPadding;if(e==="left"&&i+o+r>t.width||e==="right"&&i-o-r<0)return!0}function RI(e,t,n,s){const{x:i,width:o}=n,{width:r,chartArea:{left:a,right:l}}=e;let c="center";return s==="center"?c=i<=(a+l)/2?"left":"right":i<=o/2?c="left":i>=r-o/2&&(c="right"),II(c,e,t,n)&&(c="center"),c}function mp(e,t,n){const s=n.yAlign||t.yAlign||LI(e,n);return{xAlign:n.xAlign||t.xAlign||RI(e,t,n,s),yAlign:s}}function NI(e,t){let{x:n,width:s}=e;return t==="right"?n-=s:t==="center"&&(n-=s/2),n}function FI(e,t,n){let{y:s,height:i}=e;return t==="top"?s+=n:t==="bottom"?s-=i+n:s-=i/2,s}function _p(e,t,n,s){const{caretSize:i,caretPadding:o,cornerRadius:r}=e,{xAlign:a,yAlign:l}=n,c=i+o,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=Hs(r);let m=NI(t,a);const _=FI(t,l,c);return l==="center"?a==="left"?m+=c:a==="right"&&(m-=c):a==="left"?m-=Math.max(u,f)+i:a==="right"&&(m+=Math.max(d,p)+i),{x:ie(m,0,s.width-t.width),y:ie(_,0,s.height-t.height)}}function Yr(e,t,n){const s=fe(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-s.right:e.x+s.left}function bp(e){return sn([],xn(e))}function BI(e,t,n){return fs(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function yp(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const J_={beforeTitle:bn,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,s=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(s>0&&t.dataIndex"u"?J_[t].call(n,s):i}class Dc extends In{constructor(t){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=t.chart,this.options=t.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(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,s=this.options.setContext(this.getContext()),i=s.enabled&&n.options.animation&&s.animations,o=new P_(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=BI(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:s}=n,i=ye(s,"beforeTitle",this,t),o=ye(s,"title",this,t),r=ye(s,"afterTitle",this,t);let a=[];return a=sn(a,xn(i)),a=sn(a,xn(o)),a=sn(a,xn(r)),a}getBeforeBody(t,n){return bp(ye(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:s}=n,i=[];return Nt(t,o=>{const r={before:[],lines:[],after:[]},a=yp(s,o);sn(r.before,xn(ye(a,"beforeLabel",this,o))),sn(r.lines,ye(a,"label",this,o)),sn(r.after,xn(ye(a,"afterLabel",this,o))),i.push(r)}),i}getAfterBody(t,n){return bp(ye(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:s}=n,i=ye(s,"beforeFooter",this,t),o=ye(s,"footer",this,t),r=ye(s,"afterFooter",this,t);let a=[];return a=sn(a,xn(i)),a=sn(a,xn(o)),a=sn(a,xn(r)),a}_createItems(t){const n=this._active,s=this.chart.data,i=[],o=[],r=[];let a=[],l,c;for(l=0,c=n.length;lt.filter(u,d,f,s))),t.itemSort&&(a=a.sort((u,d)=>t.itemSort(u,d,s))),Nt(a,u=>{const d=yp(t.callbacks,u);i.push(ye(d,"labelColor",this,u)),o.push(ye(d,"labelPointStyle",this,u)),r.push(ye(d,"labelTextColor",this,u))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=a,a}update(t,n){const s=this.options.setContext(this.getContext()),i=this._active;let o,r=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const a=_o[s.position].call(this,i,this._eventPosition);r=this._createItems(s),this.title=this.getTitle(r,s),this.beforeBody=this.getBeforeBody(r,s),this.body=this.getBody(r,s),this.afterBody=this.getAfterBody(r,s),this.footer=this.getFooter(r,s);const l=this._size=gp(this,s),c=Object.assign({},a,l),u=mp(this.chart,s,c),d=_p(s,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,o={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=r,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&s.external&&s.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,s,i){const o=this.getCaretPosition(t,s,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,s){const{xAlign:i,yAlign:o}=this,{caretSize:r,cornerRadius:a}=s,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=Hs(a),{x:f,y:p}=t,{width:m,height:_}=n;let y,x,S,P,C,v;return o==="center"?(C=p+_/2,i==="left"?(y=f,x=y-r,P=C+r,v=C-r):(y=f+m,x=y+r,P=C-r,v=C+r),S=y):(i==="left"?x=f+Math.max(l,u)+r:i==="right"?x=f+m-Math.max(c,d)-r:x=this.caretX,o==="top"?(P=p,C=P-r,y=x-r,S=x+r):(P=p+_,C=P+r,y=x+r,S=x-r),v=P),{x1:y,x2:x,x3:S,y1:P,y2:C,y3:v}}drawTitle(t,n,s){const i=this.title,o=i.length;let r,a,l;if(o){const c=yi(s.rtl,this.x,this.width);for(t.x=Yr(this,s.titleAlign,s),n.textAlign=c.textAlign(s.titleAlign),n.textBaseline="middle",r=ee(s.titleFont),a=s.titleSpacing,n.fillStyle=s.titleColor,n.font=r.string,l=0;lS!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,Go(t,{x:_,y:m,w:c,h:l,radius:x}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),Go(t,{x:y,y:m+1,w:c-2,h:l-2,radius:x}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(_,m,c,l),t.strokeRect(_,m,c,l),t.fillStyle=r.backgroundColor,t.fillRect(y,m+1,c-2,l-2))}t.fillStyle=this.labelTextColors[s]}drawBody(t,n,s){const{body:i}=this,{bodySpacing:o,bodyAlign:r,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:u}=s,d=ee(s.bodyFont);let f=d.lineHeight,p=0;const m=yi(s.rtl,this.x,this.width),_=function(w){n.fillText(w,m.x(t.x+p),t.y+f/2),t.y+=f+o},y=m.textAlign(r);let x,S,P,C,v,E,A;for(n.textAlign=r,n.textBaseline="middle",n.font=d.string,t.x=Yr(this,y,s),n.fillStyle=s.bodyColor,Nt(this.beforeBody,_),p=a&&y!=="right"?r==="center"?c/2+u:c+2+u:0,C=0,E=i.length;C0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,s=this.$animations,i=s&&s.x,o=s&&s.y;if(i||o){const r=_o[t.position].call(this,this._active,this._eventPosition);if(!r)return;const a=this._size=gp(this,t),l=Object.assign({},r,this._size),c=mp(n,t,l),u=_p(t,l,c,n);(i._to!==u.x||o._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let s=this.opacity;if(!s)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};s=Math.abs(s)<.001?0:s;const r=fe(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=s,this.drawBackground(o,t,i,n),E_(t,n.textDirection),o.y+=r.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),S_(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const s=this._active,i=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),o=!ba(s,i),r=this._positionChanged(i,n);(o||r)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,s=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],r=this._getActiveElements(t,o,n,s),a=this._positionChanged(r,t),l=n||!ba(r,o)||a;return l&&(this._active=r,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,s,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const r=this.chart.getElementsAtEventForMode(t,o.mode,o,s);return o.reverse&&r.reverse(),r}_positionChanged(t,n){const{caretX:s,caretY:i,options:o}=this,r=_o[o.position].call(this,t,n);return r!==!1&&(s!==r.x||i!==r.y)}}st(Dc,"positioners",_o);var Z_={id:"tooltip",_element:Dc,positioners:_o,afterInit(e,t,n){n&&(e.tooltip=new Dc({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.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:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.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:J_},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const VI=(e,t,n,s)=>(typeof t=="string"?(n=e.push(t)-1,s.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function HI(e,t,n,s){const i=e.indexOf(t);if(i===-1)return VI(e,t,n,s);const o=e.lastIndexOf(t);return i!==o?n:i}const jI=(e,t)=>e===null?null:ie(Math.round(e),0,t);function vp(e){const t=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}st(Aa,"id","category"),st(Aa,"defaults",{ticks:{callback:vp}});function WI(e,t){const n=[],{bounds:i,step:o,min:r,max:a,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:f}=e,p=o||1,m=u-1,{min:_,max:y}=t,x=!Lt(r),S=!Lt(a),P=!Lt(c),C=(y-_)/(d+1);let v=mf((y-_)/m/p)*p,E,A,w,k;if(v<1e-14&&!x&&!S)return[{value:_},{value:y}];k=Math.ceil(y/v)-Math.floor(_/v),k>m&&(v=mf(k*v/m/p)*p),Lt(l)||(E=Math.pow(10,l),v=Math.ceil(v*E)/E),i==="ticks"?(A=Math.floor(_/v)*v,w=Math.ceil(y/v)*v):(A=_,w=y),x&&S&&o&&JO((a-r)/o,v/1e3)?(k=Math.round(Math.min((a-r)/v,u)),v=(a-r)/k,A=r,w=a):P?(A=x?r:A,w=S?a:w,k=c-1,v=(w-A)/k):(k=(w-A)/v,To(k,Math.round(k),v/1e3)?k=Math.round(k):k=Math.ceil(k));const $=Math.max(_f(v),_f(A));E=Math.pow(10,Lt(l)?$:l),A=Math.round(A*E)/E,w=Math.round(w*E)/E;let L=0;for(x&&(f&&A!==r?(n.push({value:r}),Aa)break;n.push({value:N})}return S&&f&&w!==a?n.length&&To(n[n.length-1].value,a,xp(a,C,e))?n[n.length-1].value=a:n.push({value:a}):(!S||w===a)&&n.push({value:w}),n}function xp(e,t,{horizontal:n,minRotation:s}){const i=Je(s),o=(n?Math.sin(i):Math.cos(i))||.001,r=.75*t*(""+e).length;return Math.min(t/o,r)}class Ta extends Xs{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return Lt(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:s}=this.getUserBounds();let{min:i,max:o}=this;const r=l=>i=n?i:l,a=l=>o=s?o:l;if(t){const l=dn(i),c=dn(o);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);a(o+l),t||r(i-l)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:s}=t,i;return s?(i=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} 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 t=this.options,n=t.ticks;let s=this.getTickLimit();s=Math.max(2,s);const i={maxTicks:s,bounds:t.bounds,min:t.min,max:t.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,r=WI(i,o);return t.bounds==="ticks"&&r_(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let n=this.min,s=this.max;if(super.configure(),this.options.offset&&t.length){const i=(s-n)/Math.max(t.length-1,1)/2;n-=i,s+=i}this._startValue=n,this._endValue=s,this._valueRange=s-n}getLabelForValue(t){return ar(t,this.chart.options.locale,this.options.ticks.format)}}class Pa extends Ta{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=qt(t)?t:0,this.max=qt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,s=Je(this.options.ticks.minRotation),i=(t?Math.sin(s):Math.cos(s))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}st(Pa,"id","linear"),st(Pa,"defaults",{ticks:{callback:nl.formatters.numeric}});const Qo=e=>Math.floor(Qn(e)),ks=(e,t)=>Math.pow(10,Qo(e)+t);function wp(e){return e/Math.pow(10,Qo(e))===1}function Ep(e,t,n){const s=Math.pow(10,n),i=Math.floor(e/s);return Math.ceil(t/s)-i}function zI(e,t){const n=t-e;let s=Qo(n);for(;Ep(e,t,s)>10;)s++;for(;Ep(e,t,s)<10;)s--;return Math.min(s,Qo(e))}function UI(e,{min:t,max:n}){t=Te(e.min,t);const s=[],i=Qo(t);let o=zI(t,n),r=o<0?Math.pow(10,Math.abs(o)):1;const a=Math.pow(10,o),l=i>o?Math.pow(10,i):0,c=Math.round((t-l)*r)/r,u=Math.floor((t-l)/a/10)*a*10;let d=Math.floor((c-u)/Math.pow(10,o)),f=Te(e.min,Math.round((l+u+d*Math.pow(10,o))*r)/r);for(;f=10?d=d<15?15:20:d++,d>=20&&(o++,d=2,r=o>=0?1:r),f=Math.round((l+u+d*Math.pow(10,o))*r)/r;const p=Te(e.max,f);return s.push({value:p,major:wp(p),significand:d}),s}class Ma extends Xs{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const s=Ta.prototype.parse.apply(this,[t,n]);if(s===0){this._zero=!0;return}return qt(s)&&s>0?s:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=qt(t)?Math.max(0,t):null,this.max=qt(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!qt(this._userMin)&&(this.min=t===ks(this.min,0)?ks(this.min,-1):ks(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let s=this.min,i=this.max;const o=a=>s=t?s:a,r=a=>i=n?i:a;s===i&&(s<=0?(o(1),r(10)):(o(ks(s,-1)),r(ks(i,1)))),s<=0&&o(ks(i,-1)),i<=0&&r(ks(s,1)),this.min=s,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},s=UI(n,this);return t.bounds==="ticks"&&r_(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}getLabelForValue(t){return t===void 0?"0":ar(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Qn(t),this._valueRange=Qn(this.max)-Qn(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Qn(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}st(Ma,"id","logarithmic"),st(Ma,"defaults",{ticks:{callback:nl.formatters.logarithmic,major:{enabled:!0}}});function $c(e){const t=e.ticks;if(t.display&&e.display){const n=fe(t.backdropPadding);return yt(t.font&&t.font.size,Gt.font.size)+n.height}return 0}function KI(e,t,n){return n=Ht(n)?n:[n],{w:gD(e,t.string,n),h:n.length*t.lineHeight}}function Sp(e,t,n,s,i){return e===s||e===i?{start:t-n/2,end:t+n/2}:ei?{start:t-n,end:t}:{start:t,end:t+n}}function YI(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),s=[],i=[],o=e._pointLabels.length,r=e.options.pointLabels,a=r.centerPointLabels?Wt/o:0;for(let l=0;lt.r&&(a=(s.end-t.r)/o,e.r=Math.max(e.r,t.r+a)),i.startt.b&&(l=(i.end-t.b)/r,e.b=Math.max(e.b,t.b+l))}function GI(e,t,n){const s=e.drawingArea,{extra:i,additionalAngle:o,padding:r,size:a}=n,l=e.getPointPosition(t,s+i+r,o),c=Math.round(Hu(Me(l.angle+Xt))),u=tR(l.y,a.h,c),d=JI(c),f=ZI(l.x,a.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:f,top:u,right:f+a.w,bottom:u+a.h}}function XI(e,t){if(!t)return!0;const{left:n,top:s,right:i,bottom:o}=e;return!(Pn({x:n,y:s},t)||Pn({x:n,y:o},t)||Pn({x:i,y:s},t)||Pn({x:i,y:o},t))}function QI(e,t,n){const s=[],i=e._pointLabels.length,o=e.options,{centerPointLabels:r,display:a}=o.pointLabels,l={extra:$c(o)/2,additionalAngle:r?Wt/i:0};let c;for(let u=0;u270||n<90)&&(e-=t),e}function eR(e,t,n){const{left:s,top:i,right:o,bottom:r}=n,{backdropColor:a}=t;if(!Lt(a)){const l=Hs(t.borderRadius),c=fe(t.backdropPadding);e.fillStyle=a;const u=s-c.left,d=i-c.top,f=o-s+c.width,p=r-i+c.height;Object.values(l).some(m=>m!==0)?(e.beginPath(),Go(e,{x:u,y:d,w:f,h:p,radius:l}),e.fill()):e.fillRect(u,d,f,p)}}function nR(e,t){const{ctx:n,options:{pointLabels:s}}=e;for(let i=t-1;i>=0;i--){const o=e._pointLabelItems[i];if(!o.visible)continue;const r=s.setContext(e.getPointLabelContext(i));eR(n,r,o);const a=ee(r.font),{x:l,y:c,textAlign:u}=o;Ys(n,e._pointLabels[i],l,c+a.lineHeight/2,a,{color:r.color,textAlign:u,textBaseline:"middle"})}}function tb(e,t,n,s){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,jt);else{let o=e.getPointPosition(0,t);i.moveTo(o.x,o.y);for(let r=1;r{const i=Bt(this.options.pointLabels.callback,[n,s],this);return i||i===0?i:""}).filter((n,s)=>this.chart.getDataVisibility(s))}fit(){const t=this.options;t.display&&t.pointLabels.display?YI(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,s,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((s-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,s,i))}getIndexAngle(t){const n=jt/(this._pointLabels.length||1),s=this.options.startAngle||0;return Me(t*n+Je(s))}getDistanceFromCenterForValue(t){if(Lt(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(Lt(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t{if(d!==0){l=this.getDistanceFromCenterForValue(u.value);const f=this.getContext(d),p=i.setContext(f),m=o.setContext(f);sR(this,p,l,r,m)}}),s.display){for(t.save(),a=r-1;a>=0;a--){const u=s.setContext(this.getPointLabelContext(a)),{color:d,lineWidth:f}=u;!f||!d||(t.lineWidth=f,t.strokeStyle=d,t.setLineDash(u.borderDash),t.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(a,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,s=n.ticks;if(!s.display)return;const i=this.getIndexAngle(0);let o,r;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&!n.reverse)return;const c=s.setContext(this.getContext(l)),u=ee(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=u.string,r=t.measureText(a.label).width,t.fillStyle=c.backdropColor;const d=fe(c.backdropPadding);t.fillRect(-r/2-d.left,-o-u.size/2-d.top,r+d.width,u.size+d.height)}Ys(t,a.label,0,-o,u,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),t.restore()}drawTitle(){}}st(pi,"id","radialLinear"),st(pi,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:nl.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),st(pi,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),st(pi,"descriptors",{angleLines:{_fallback:"grid"}});const rl={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}},xe=Object.keys(rl);function Cp(e,t){return e-t}function Ap(e,t){if(Lt(t))return null;const n=e._adapter,{parser:s,round:i,isoWeekday:o}=e._parseOpts;let r=t;return typeof s=="function"&&(r=s(r)),qt(r)||(r=typeof s=="string"?n.parse(r,s):n.parse(r)),r===null?null:(i&&(r=i==="week"&&(Hi(o)||o===!0)?n.startOf(r,"isoWeek",o):n.startOf(r,i)),+r)}function Tp(e,t,n,s){const i=xe.length;for(let o=xe.indexOf(e);o=xe.indexOf(n);o--){const r=xe[o];if(rl[r].common&&e._adapter.diff(i,s,r)>=t-1)return r}return xe[n?xe.indexOf(n):0]}function rR(e){for(let t=xe.indexOf(e)+1,n=xe.length;t=t?n[s]:n[i];e[o]=!0}}function aR(e,t,n,s){const i=e._adapter,o=+i.startOf(t[0].value,s),r=t[t.length-1].value;let a,l;for(a=o;a<=r;a=+i.add(a,1,s))l=n[a],l>=0&&(t[l].major=!0);return t}function Mp(e,t,n){const s=[],i={},o=t.length;let r,a;for(r=0;r+t.value))}initOffsets(t=[]){let n=0,s=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?s=o:s=(o-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;n=ie(n,0,r),s=ie(s,0,r),this._offsets={start:n,end:s,factor:1/(n+1+s)}}_generate(){const t=this._adapter,n=this.min,s=this.max,i=this.options,o=i.time,r=o.unit||Tp(o.minUnit,n,s,this._getLabelCapacity(n)),a=yt(i.ticks.stepSize,1),l=r==="week"?o.isoWeekday:!1,c=Hi(l)||l===!0,u={};let d=n,f,p;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":r),t.diff(s,n,r)>1e5*a)throw new Error(n+" and "+s+" are too far apart with stepSize of "+a+" "+r);const m=i.ticks.source==="data"&&this.getDataTimestamps();for(f=d,p=0;f+_)}getLabelForValue(t){const n=this._adapter,s=this.options.time;return s.tooltipFormat?n.format(t,s.tooltipFormat):n.format(t,s.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,o=this._unit,r=n||i[o];return this._adapter.format(t,r)}_tickFormatFunction(t,n,s,i){const o=this.options,r=o.ticks.callback;if(r)return Bt(r,[t,n,s],this);const a=o.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&a[l],d=c&&a[c],f=s[n],p=c&&d&&f&&f.major;return this._adapter.format(t,i||(p?d:u))}generateTickLabels(t){let n,s,i;for(n=0,s=t.length;n0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,s;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,s=i.length;n=e[s].pos&&t<=e[i].pos&&({lo:s,hi:i}=Tn(e,"pos",t)),{pos:o,time:a}=e[s],{pos:r,time:l}=e[i]):(t>=e[s].time&&t<=e[i].time&&({lo:s,hi:i}=Tn(e,"time",t)),{time:o,pos:a}=e[s],{time:r,pos:l}=e[i]);const c=r-o;return c?a+(l-a)*(t-o)/c:a}class ka extends zi{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=qr(n,this.min),this._tableRange=qr(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:s}=this,i=[],o=[];let r,a,l,c,u;for(r=0,a=t.length;r=n&&c<=s&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:s,pos:1}];for(r=0,a=i.length;ri-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),s=this.getLabelTimestamps();return n.length&&s.length?t=this.normalize(n.concat(s)):t=n.length?n:s,t=this._cache.all=t,t}getDecimalForValue(t){return(qr(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,s=this.getDecimalForPixel(t)/n.factor-n.end;return qr(this._table,s*this._tableRange+this._minPos,!0)}}st(ka,"id","timeseries"),st(ka,"defaults",zi.defaults);const eb={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},lR={ariaLabel:{type:String},ariaDescribedby:{type:String}},cR={type:{type:String,required:!0},...eb,...lR},uR=um[0]==="2"?(e,t)=>Object.assign(e,{attrs:t}):(e,t)=>Object.assign(e,t);function ci(e){return Ba(e)?Tt(e):e}function dR(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;return Ba(t)?new Proxy(e,{}):e}function hR(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function nb(e,t){e.labels=t}function sb(e,t,n){const s=[];e.datasets=t.map(i=>{const o=e.datasets.find(r=>r[n]===i[n]);return!o||!i.data||s.includes(o)?{...i}:(s.push(o),Object.assign(o,i),o)})}function fR(e,t){const n={labels:[],datasets:[]};return nb(n,e.labels),sb(n,e.datasets,t),n}const pR=Wa({props:cR,setup(e,t){let{expose:n,slots:s}=t;const i=Pi(null),o=hu(null);n({chart:o});const r=()=>{if(!i.value)return;const{type:c,data:u,options:d,plugins:f,datasetIdKey:p}=e,m=fR(u,p),_=dR(m,u);o.value=new cr(i.value,{type:c,data:_,options:{...d},plugins:f})},a=()=>{const c=Tt(o.value);c&&(c.destroy(),o.value=null)},l=c=>{c.update(e.updateMode)};return xu(r),wu(a),Bs([()=>e.options,()=>e.data],(c,u)=>{let[d,f]=c,[p,m]=u;const _=Tt(o.value);if(!_)return;let y=!1;if(d){const x=ci(d),S=ci(p);x&&x!==S&&(hR(_,x),y=!0)}if(f){const x=ci(f.labels),S=ci(m.labels),P=ci(f.datasets),C=ci(m.datasets);x!==S&&(nb(_.config.data,x),y=!0),P&&P!==C&&(sb(_.config.data,P,e.datasetIdKey),y=!0)}y&&Va(()=>{l(_)})},{deep:!0}),()=>Di("canvas",{role:"img",ariaLabel:e.ariaLabel,ariaDescribedby:e.ariaDescribedby,ref:i},[Di("p",{},[s.default?s.default():""])])}});function ib(e,t){return cr.register(t),Wa({props:eb,setup(n,s){let{expose:i}=s;const o=hu(null),r=a=>{o.value=a==null?void 0:a.chart};return i({chart:o}),()=>Di(pR,uR({ref:r},{type:e,...n}))}})}const gR=ib("bar",vi),mR=ib("line",xi);function $n(e){return Array.isArray?Array.isArray(e):ab(e)==="[object Array]"}const _R=1/0;function bR(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-_R?"-0":t}function yR(e){return e==null?"":bR(e)}function ln(e){return typeof e=="string"}function ob(e){return typeof e=="number"}function vR(e){return e===!0||e===!1||xR(e)&&ab(e)=="[object Boolean]"}function rb(e){return typeof e=="object"}function xR(e){return rb(e)&&e!==null}function ke(e){return e!=null}function Ql(e){return!e.trim().length}function ab(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const wR="Incorrect 'index' type",ER=e=>`Invalid value for key ${e}`,SR=e=>`Pattern length exceeds max of ${e}.`,CR=e=>`Missing ${e} property in key`,AR=e=>`Property 'weight' in key '${e}' must be a positive integer`,kp=Object.prototype.hasOwnProperty;class TR{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(s=>{let i=lb(s);this._keys.push(i),this._keyMap[i.id]=i,n+=i.weight}),this._keys.forEach(s=>{s.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function lb(e){let t=null,n=null,s=null,i=1,o=null;if(ln(e)||$n(e))s=e,t=Op(e),n=Lc(e);else{if(!kp.call(e,"name"))throw new Error(CR("name"));const r=e.name;if(s=r,kp.call(e,"weight")&&(i=e.weight,i<=0))throw new Error(AR(r));t=Op(r),n=Lc(r),o=e.getFn}return{path:t,id:n,weight:i,src:s,getFn:o}}function Op(e){return $n(e)?e:e.split(".")}function Lc(e){return $n(e)?e.join("."):e}function PR(e,t){let n=[],s=!1;const i=(o,r,a)=>{if(ke(o))if(!r[a])n.push(o);else{let l=r[a];const c=o[l];if(!ke(c))return;if(a===r.length-1&&(ln(c)||ob(c)||vR(c)))n.push(yR(c));else if($n(c)){s=!0;for(let u=0,d=c.length;ue.score===t.score?e.idx{this._keysMap[n.id]=s})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,ln(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();ln(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,s=this.size();n{let r=i.getFn?i.getFn(t):this.getFn(t,i.path);if(ke(r)){if($n(r)){let a=[];const l=[{nestedArrIndex:-1,value:r}];for(;l.length;){const{nestedArrIndex:c,value:u}=l.pop();if(ke(u))if(ln(u)&&!Ql(u)){let d={v:u,i:c,n:this.norm.get(u)};a.push(d)}else $n(u)&&u.forEach((d,f)=>{l.push({nestedArrIndex:f,value:d})})}s.$[o]=a}else if(ln(r)&&!Ql(r)){let a={v:r,n:this.norm.get(r)};s.$[o]=a}}}),this.records.push(s)}toJSON(){return{keys:this.keys,records:this.records}}}function cb(e,t,{getFn:n=_t.getFn,fieldNormWeight:s=_t.fieldNormWeight}={}){const i=new Zu({getFn:n,fieldNormWeight:s});return i.setKeys(e.map(lb)),i.setSources(t),i.create(),i}function IR(e,{getFn:t=_t.getFn,fieldNormWeight:n=_t.fieldNormWeight}={}){const{keys:s,records:i}=e,o=new Zu({getFn:t,fieldNormWeight:n});return o.setKeys(s),o.setIndexRecords(i),o}function Gr(e,{errors:t=0,currentLocation:n=0,expectedLocation:s=0,distance:i=_t.distance,ignoreLocation:o=_t.ignoreLocation}={}){const r=t/e.length;if(o)return r;const a=Math.abs(s-n);return i?r+a/i:a?1:r}function RR(e=[],t=_t.minMatchCharLength){let n=[],s=-1,i=-1,o=0;for(let r=e.length;o=t&&n.push([s,i]),s=-1)}return e[o-1]&&o-s>=t&&n.push([s,o-1]),n}const Ls=32;function NR(e,t,n,{location:s=_t.location,distance:i=_t.distance,threshold:o=_t.threshold,findAllMatches:r=_t.findAllMatches,minMatchCharLength:a=_t.minMatchCharLength,includeMatches:l=_t.includeMatches,ignoreLocation:c=_t.ignoreLocation}={}){if(t.length>Ls)throw new Error(SR(Ls));const u=t.length,d=e.length,f=Math.max(0,Math.min(s,d));let p=o,m=f;const _=a>1||l,y=_?Array(d):[];let x;for(;(x=e.indexOf(t,m))>-1;){let A=Gr(t,{currentLocation:x,expectedLocation:f,distance:i,ignoreLocation:c});if(p=Math.min(A,p),m=x+u,_){let w=0;for(;w=$;Y-=1){let H=Y-1,R=n[e.charAt(H)];if(_&&(y[H]=+!!R),N[Y]=(N[Y+1]<<1|1)&R,A&&(N[Y]|=(S[Y+1]|S[Y])<<1|1|S[Y+1]),N[Y]&v&&(P=Gr(t,{errors:A,currentLocation:H,expectedLocation:f,distance:i,ignoreLocation:c}),P<=p)){if(p=P,m=H,m<=f)break;$=Math.max(1,2*f-m)}}if(Gr(t,{errors:A+1,currentLocation:f,expectedLocation:f,distance:i,ignoreLocation:c})>p)break;S=N}const E={isMatch:m>=0,score:Math.max(.001,P)};if(_){const A=RR(y,a);A.length?l&&(E.indices=A):E.isMatch=!1}return E}function FR(e){let t={};for(let n=0,s=e.length;n{this.chunks.push({pattern:f,alphabet:FR(f),startIndex:p})},d=this.pattern.length;if(d>Ls){let f=0;const p=d%Ls,m=d-p;for(;f{const{isMatch:x,score:S,indices:P}=NR(t,m,_,{location:i+y,distance:o,threshold:r,findAllMatches:a,minMatchCharLength:l,includeMatches:s,ignoreLocation:c});x&&(f=!0),d+=S,x&&P&&(u=[...u,...P])});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&s&&(p.indices=u),p}}class ps{constructor(t){this.pattern=t}static isMultiMatch(t){return Dp(t,this.multiRegex)}static isSingleMatch(t){return Dp(t,this.singleRegex)}search(){}}function Dp(e,t){const n=e.match(t);return n?n[1]:null}class BR extends ps{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class VR extends ps{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const s=t.indexOf(this.pattern)===-1;return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}}class HR extends ps{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class jR extends ps{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class WR extends ps{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class zR extends ps{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class db extends ps{constructor(t,{location:n=_t.location,threshold:s=_t.threshold,distance:i=_t.distance,includeMatches:o=_t.includeMatches,findAllMatches:r=_t.findAllMatches,minMatchCharLength:a=_t.minMatchCharLength,isCaseSensitive:l=_t.isCaseSensitive,ignoreLocation:c=_t.ignoreLocation}={}){super(t),this._bitapSearch=new ub(t,{location:n,threshold:s,distance:i,includeMatches:o,findAllMatches:r,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class hb extends ps{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,s;const i=[],o=this.pattern.length;for(;(s=t.indexOf(this.pattern,n))>-1;)n=s+o,i.push([s,n-1]);const r=!!i.length;return{isMatch:r,score:r?0:1,indices:i}}}const Ic=[BR,hb,HR,jR,zR,WR,VR,db],$p=Ic.length,UR=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,KR="|";function YR(e,t={}){return e.split(KR).map(n=>{let s=n.trim().split(UR).filter(o=>o&&!!o.trim()),i=[];for(let o=0,r=s.length;o!!(e[Oa.AND]||e[Oa.OR]),QR=e=>!!e[Fc.PATH],JR=e=>!$n(e)&&rb(e)&&!Bc(e),Lp=e=>({[Oa.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function fb(e,t,{auto:n=!0}={}){const s=i=>{let o=Object.keys(i);const r=QR(i);if(!r&&o.length>1&&!Bc(i))return s(Lp(i));if(JR(i)){const l=r?i[Fc.PATH]:o[0],c=r?i[Fc.PATTERN]:i[l];if(!ln(c))throw new Error(ER(l));const u={keyId:Lc(l),pattern:c};return n&&(u.searcher=Nc(c,t)),u}let a={children:[],operator:o[0]};return o.forEach(l=>{const c=i[l];$n(c)&&c.forEach(u=>{a.children.push(s(u))})}),a};return Bc(e)||(e=Lp(e)),s(e)}function ZR(e,{ignoreFieldNorm:t=_t.ignoreFieldNorm}){e.forEach(n=>{let s=1;n.matches.forEach(({key:i,norm:o,score:r})=>{const a=i?i.weight:null;s*=Math.pow(r===0&&a?Number.EPSILON:r,(a||1)*(t?1:o))}),n.score=s})}function t2(e,t){const n=e.matches;t.matches=[],ke(n)&&n.forEach(s=>{if(!ke(s.indices)||!s.indices.length)return;const{indices:i,value:o}=s;let r={indices:i,value:o};s.key&&(r.key=s.key.src),s.idx>-1&&(r.refIndex=s.idx),t.matches.push(r)})}function e2(e,t){t.score=e.score}function n2(e,t,{includeMatches:n=_t.includeMatches,includeScore:s=_t.includeScore}={}){const i=[];return n&&i.push(t2),s&&i.push(e2),e.map(o=>{const{idx:r}=o,a={item:t[r],refIndex:r};return i.length&&i.forEach(l=>{l(o,a)}),a})}class Ji{constructor(t,n={},s){this.options={..._t,...n},this.options.useExtendedSearch,this._keyStore=new TR(this.options.keys),this.setCollection(t,s)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof Zu))throw new Error(wR);this._myIndex=n||cb(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){ke(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let s=0,i=this._docs.length;s-1&&(l=l.slice(0,n)),n2(l,this._docs,{includeMatches:s,includeScore:i})}_searchStringList(t){const n=Nc(t,this.options),{records:s}=this._myIndex,i=[];return s.forEach(({v:o,i:r,n:a})=>{if(!ke(o))return;const{isMatch:l,score:c,indices:u}=n.searchIn(o);l&&i.push({item:o,idx:r,matches:[{score:c,value:o,norm:a,indices:u}]})}),i}_searchLogical(t){const n=fb(t,this.options),s=(a,l,c)=>{if(!a.children){const{keyId:d,searcher:f}=a,p=this._findMatches({key:this._keyStore.get(d),value:this._myIndex.getValueForItemAtKeyId(l,d),searcher:f});return p&&p.length?[{idx:c,item:l,matches:p}]:[]}const u=[];for(let d=0,f=a.children.length;d{if(ke(a)){let c=s(n,a,l);c.length&&(o[l]||(o[l]={idx:l,item:a,matches:[]},r.push(o[l])),c.forEach(({matches:u})=>{o[l].matches.push(...u)}))}}),r}_searchObjectList(t){const n=Nc(t,this.options),{keys:s,records:i}=this._myIndex,o=[];return i.forEach(({$:r,i:a})=>{if(!ke(r))return;let l=[];s.forEach((c,u)=>{l.push(...this._findMatches({key:c,value:r[u],searcher:n}))}),l.length&&o.push({idx:a,item:r,matches:l})}),o}_findMatches({key:t,value:n,searcher:s}){if(!ke(n))return[];let i=[];if($n(n))n.forEach(({v:o,i:r,n:a})=>{if(!ke(o))return;const{isMatch:l,score:c,indices:u}=s.searchIn(o);l&&i.push({score:c,key:t,value:o,idx:r,norm:a,indices:u})});else{const{v:o,n:r}=n,{isMatch:a,score:l,indices:c}=s.searchIn(o);a&&i.push({score:l,key:t,value:o,norm:r,indices:c})}return i}}Ji.version="7.0.0";Ji.createIndex=cb;Ji.parseIndex=IR;Ji.config=_t;Ji.parseQuery=fb;XR(GR);var pb={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(Rp,function(){var n=1e3,s=6e4,i=36e5,o="millisecond",r="second",a="minute",l="hour",c="day",u="week",d="month",f="quarter",p="year",m="date",_="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Y){var H=["th","st","nd","rd"],R=Y%100;return"["+Y+(H[(R-20)%10]||H[R]||H[0])+"]"}},P=function(Y,H,R){var W=String(Y);return!W||W.length>=H?Y:""+Array(H+1-W.length).join(R)+Y},C={s:P,z:function(Y){var H=-Y.utcOffset(),R=Math.abs(H),W=Math.floor(R/60),U=R%60;return(H<=0?"+":"-")+P(W,2,"0")+":"+P(U,2,"0")},m:function Y(H,R){if(H.date()1)return Y(lt[0])}else{var pt=H.name;E[pt]=H,U=pt}return!W&&U&&(v=U),U||!W&&v},$=function(Y,H){if(w(Y))return Y.clone();var R=typeof H=="object"?H:{};return R.date=Y,R.args=arguments,new N(R)},L=C;L.l=k,L.i=w,L.w=function(Y,H){return $(Y,{locale:H.$L,utc:H.$u,x:H.$x,$offset:H.$offset})};var N=function(){function Y(R){this.$L=k(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[A]=!0}var H=Y.prototype;return H.parse=function(R){this.$d=function(W){var U=W.date,it=W.utc;if(U===null)return new Date(NaN);if(L.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var lt=U.match(y);if(lt){var pt=lt[2]-1||0,ft=(lt[7]||"0").substring(0,3);return it?new Date(Date.UTC(lt[1],pt,lt[3]||1,lt[4]||0,lt[5]||0,lt[6]||0,ft)):new Date(lt[1],pt,lt[3]||1,lt[4]||0,lt[5]||0,lt[6]||0,ft)}}return new Date(U)}(R),this.init()},H.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},H.$utils=function(){return L},H.isValid=function(){return this.$d.toString()!==_},H.isSame=function(R,W){var U=$(R);return this.startOf(W)<=U&&U<=this.endOf(W)},H.isAfter=function(R,W){return $(R){t.status&&this.store.getConfiguration()})},updateRefreshInterval(e){Ce("/api/updateDashboardConfigurationItem",{section:"Server",key:"dashboard_refresh_interval",value:e},t=>{t.status&&this.store.getConfiguration()})}}},o2={class:"d-flex gap-2 mb-3 z-3"},r2={class:"dropdown"},a2=g("button",{class:"btn btn-outline-secondary btn-sm dropdown-toggle rounded-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[g("i",{class:"bi bi-filter-circle me-2"}),xt(" Sort ")],-1),l2={class:"dropdown-menu mt-2 shadow-lg"},c2=["onClick"],u2={class:"me-auto"},d2={key:0,class:"bi bi-check"},h2={class:"dropdown"},f2=g("button",{class:"btn btn-outline-secondary btn-sm dropdown-toggle rounded-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[g("i",{class:"bi bi-arrow-repeat me-2"}),xt("Refresh Interval ")],-1),p2={class:"dropdown-menu"},g2=["onClick"],m2={class:"me-auto"},_2={key:0,class:"bi bi-check"},b2={class:"ms-auto d-flex align-items-center"},y2=g("label",{class:"d-flex me-2 text-muted",for:"searchPeers"},[g("i",{class:"bi bi-search me-1"})],-1);function v2(e,t,n,s,i,o){return ot(),ct("div",o2,[g("div",r2,[a2,g("ul",l2,[(ot(!0),ct(Jt,null,Mi(this.sort,(r,a)=>(ot(),ct("li",null,[g("a",{class:"dropdown-item d-flex",role:"button",onClick:l=>this.updateSort(a)},[g("span",u2,Ct(r),1),s.store.Configuration.Server.dashboard_sort===a?(ot(),ct("i",d2)):oe("",!0)],8,c2)]))),256))])]),g("div",h2,[f2,g("ul",p2,[(ot(!0),ct(Jt,null,Mi(this.interval,(r,a)=>(ot(),ct("li",null,[g("a",{class:"dropdown-item d-flex",role:"button",onClick:l=>o.updateRefreshInterval(a)},[g("span",m2,Ct(r),1),s.store.Configuration.Server.dashboard_refresh_interval===a?(ot(),ct("i",_2)):oe("",!0)],8,g2)]))),256))])]),g("div",b2,[y2,kt(g("input",{class:"form-control form-control-sm rounded-3","onUpdate:modelValue":t[0]||(t[0]=r=>this.wireguardConfigurationStore.searchString=r)},null,512),[[Ot,this.wireguardConfigurationStore.searchString]])])])}const x2=Ut(i2,[["render",v2]]),w2={name:"peerSettings",props:{selectedPeer:Object},data(){return{data:void 0,dataChanged:!1,showKey:!1,saving:!1}},setup(){return{dashboardConfigurationStore:re()}},methods:{reset(){this.selectedPeer&&(this.data=JSON.parse(JSON.stringify(this.selectedPeer)),this.dataChanged=!1)},savePeer(){this.saving=!0,Ce(`/api/updatePeerSettings/${this.$route.params.id}`,this.data,e=>{this.saving=!1,e.status?this.dashboardConfigurationStore.newMessage("Server","Peer Updated!","success"):this.dashboardConfigurationStore.newMessage("Server",e.message,"danger"),this.$emit("refresh")})}},beforeMount(){this.reset()},mounted(){this.$el.querySelectorAll("input").forEach(e=>{e.addEventListener("keyup",()=>{this.dataChanged=!0})})}},_e=e=>(sr("data-v-6fc123c2"),e=e(),ir(),e),E2={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0"},S2={class:"container d-flex h-100 w-100"},C2={class:"card m-auto rounded-3 shadow",style:{width:"700px"}},A2={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4"},T2=_e(()=>g("h4",{class:"mb-0"},"Peer Settings",-1)),P2={key:0,class:"card-body px-4 pb-4"},M2={class:"d-flex flex-column gap-2 mb-4"},k2=_e(()=>g("small",{class:"text-muted"},"Public Key",-1)),O2=_e(()=>g("br",null,null,-1)),D2=_e(()=>g("label",{for:"peer_name_textbox",class:"form-label"},[g("small",{class:"text-muted"},"Name")],-1)),$2=["disabled"],L2={class:"d-flex position-relative"},I2=_e(()=>g("label",{for:"peer_private_key_textbox",class:"form-label"},[g("small",{class:"text-muted"},[xt("Private Key "),g("code",null,"(Required for QR Code and Download)")])],-1)),R2=["type","disabled"],N2=_e(()=>g("label",{for:"peer_allowed_ip_textbox",class:"form-label"},[g("small",{class:"text-muted"},[xt("Allowed IPs "),g("code",null,"(Required)")])],-1)),F2=["disabled"],B2=_e(()=>g("label",{for:"peer_DNS_textbox",class:"form-label"},[g("small",{class:"text-muted"},[xt("DNS "),g("code",null,"(Required)")])],-1)),V2=["disabled"],H2=_e(()=>g("label",{for:"peer_endpoint_allowed_ips",class:"form-label"},[g("small",{class:"text-muted"},[xt("Endpoint Allowed IPs "),g("code",null,"(Required)")])],-1)),j2=["disabled"],W2=_e(()=>g("hr",null,null,-1)),z2={class:"accordion mt-2",id:"peerSettingsAccordion"},U2={class:"accordion-item"},K2=_e(()=>g("h2",{class:"accordion-header"},[g("button",{class:"accordion-button rounded-3 collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#peerSettingsAccordionOptional"}," Optional Settings ")],-1)),Y2={id:"peerSettingsAccordionOptional",class:"accordion-collapse collapse","data-bs-parent":"#peerSettingsAccordion"},q2={class:"accordion-body d-flex flex-column gap-2 mb-2"},G2=_e(()=>g("label",{for:"peer_preshared_key_textbox",class:"form-label"},[g("small",{class:"text-muted"},"Pre-Shared Key")],-1)),X2=["disabled"],Q2=_e(()=>g("label",{for:"peer_mtu",class:"form-label"},[g("small",{class:"text-muted"},"MTU")],-1)),J2=["disabled"],Z2=_e(()=>g("label",{for:"peer_keep_alive",class:"form-label"},[g("small",{class:"text-muted"},"Persistent Keepalive")],-1)),tN=["disabled"],eN={class:"d-flex align-items-center gap-2"},nN=["disabled"],sN=_e(()=>g("i",{class:"bi bi-arrow-clockwise ms-2"},null,-1)),iN=["disabled"],oN=_e(()=>g("i",{class:"bi bi-save-fill ms-2"},null,-1));function rN(e,t,n,s,i,o){return ot(),ct("div",E2,[g("div",S2,[g("div",C2,[g("div",A2,[T2,g("button",{type:"button",class:"btn-close ms-auto",onClick:t[0]||(t[0]=r=>this.$emit("close"))})]),this.data?(ot(),ct("div",P2,[g("div",M2,[g("div",null,[k2,O2,g("small",null,[g("samp",null,Ct(this.data.id),1)])]),g("div",null,[D2,kt(g("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[1]||(t[1]=r=>this.data.name=r),id:"peer_name_textbox",placeholder:""},null,8,$2),[[Ot,this.data.name]])]),g("div",null,[g("div",L2,[I2,g("a",{role:"button",class:"ms-auto text-decoration-none toggleShowKey",onClick:t[2]||(t[2]=r=>this.showKey=!this.showKey)},[g("i",{class:he(["bi",[this.showKey?"bi-eye-slash-fill":"bi-eye-fill"]])},null,2)])]),kt(g("input",{type:[this.showKey?"text":"password"],class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[3]||(t[3]=r=>this.data.private_key=r),id:"peer_private_key_textbox",style:{"padding-right":"40px"}},null,8,R2),[[hE,this.data.private_key]])]),g("div",null,[N2,kt(g("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[4]||(t[4]=r=>this.data.allowed_ip=r),id:"peer_allowed_ip_textbox"},null,8,F2),[[Ot,this.data.allowed_ip]])]),g("div",null,[B2,kt(g("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[5]||(t[5]=r=>this.data.DNS=r),id:"peer_DNS_textbox"},null,8,V2),[[Ot,this.data.DNS]])]),g("div",null,[H2,kt(g("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[6]||(t[6]=r=>this.data.endpoint_allowed_ip=r),id:"peer_endpoint_allowed_ips"},null,8,j2),[[Ot,this.data.endpoint_allowed_ip]])]),W2,g("div",z2,[g("div",U2,[K2,g("div",Y2,[g("div",q2,[g("div",null,[G2,kt(g("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[7]||(t[7]=r=>this.data.preshared_key=r),id:"peer_preshared_key_textbox"},null,8,X2),[[Ot,this.data.preshared_key]])]),g("div",null,[Q2,kt(g("input",{type:"number",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[8]||(t[8]=r=>this.data.mtu=r),id:"peer_mtu"},null,8,J2),[[Ot,this.data.mtu]])]),g("div",null,[Z2,kt(g("input",{type:"number",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[9]||(t[9]=r=>this.data.keepalive=r),id:"peer_keep_alive"},null,8,tN),[[Ot,this.data.keepalive]])])])])])])]),g("div",eN,[g("button",{class:"btn btn-secondary rounded-3 shadow",onClick:t[10]||(t[10]=r=>this.reset()),disabled:!this.dataChanged||this.saving},[xt(" Reset "),sN],8,nN),g("button",{class:"ms-auto btn btn-dark btn-brand rounded-3 px-3 py-2 shadow",disabled:!this.dataChanged||this.saving,onClick:t[11]||(t[11]=r=>this.savePeer())},[xt(" Save Peer"),oN],8,iN)])])):oe("",!0)])])])}const aN=Ut(w2,[["render",rN],["__scopeId","data-v-6fc123c2"]]),lN={name:"peerQRCode",props:{peerConfigData:String},mounted(){Xi.toCanvas(document.querySelector("#qrcode"),this.peerConfigData,function(e){e&&console.error(e),console.log("success!")})}},cN=e=>(sr("data-v-e65783b8"),e=e(),ir(),e),uN={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0"},dN={class:"container d-flex h-100 w-100"},hN={class:"card m-auto rounded-3 shadow"},fN={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4 pb-0"},pN=cN(()=>g("h4",{class:"mb-0"},"QR Code",-1)),gN={class:"card-body"},mN={id:"qrcode",class:"rounded-3 shadow",ref:"qrcode"};function _N(e,t,n,s,i,o){return ot(),ct("div",uN,[g("div",dN,[g("div",hN,[g("div",fN,[pN,g("button",{type:"button",class:"btn-close ms-auto",onClick:t[0]||(t[0]=r=>this.$emit("close"))})]),g("div",gN,[g("canvas",mN,null,512)])])])])}const bN=Ut(lN,[["render",_N],["__scopeId","data-v-e65783b8"]]);cr.register(fi,Mn,Io,Lo,vi,ko,Is,xi,Ea,Oo,Do,$o,Aa,Pa,Ma,pi,zi,ka,z_,Y_,G_,Q_,Z_);const yN={name:"peerList",components:{PeerQRCode:bN,PeerSettings:aN,PeerSearch:x2,Peer:yO,Line:mR,Bar:gR},setup(){const e=re(),t=Gi();return{dashboardConfigurationStore:e,wireguardConfigurationStore:t}},data(){return{loading:!1,error:null,configurationInfo:[],configurationPeers:[],historyDataSentDifference:[],historyDataReceivedDifference:[],historySentData:{labels:[],datasets:[{label:"Data Sent",data:[],fill:!1,borderColor:"#198754",tension:0}]},historyReceiveData:{labels:[],datasets:[{label:"Data Received",data:[],fill:!1,borderColor:"#0d6efd",tension:0}]},peerSetting:{modalOpen:!1,selectedPeer:void 0},peerQRCode:{modalOpen:!1,peerConfigData:void 0}}},watch:{"$route.params":{immediate:!0,handler(){clearInterval(this.interval),this.loading=!0;let e=this.$route.params.id;this.configurationInfo=[],this.configurationPeers=[],e&&(this.getPeers(e),this.setInterval())}},"dashboardConfigurationStore.Configuration.Server.dashboard_refresh_interval"(){clearInterval(this.interval),this.setInterval()}},beforeRouteLeave(){clearInterval(this.interval)},methods:{getPeers(e){qe("/api/getWireguardConfigurationInfo",{configurationName:e},t=>{if(this.configurationInfo=t.data.configurationInfo,this.configurationPeers=t.data.configurationPeers,this.loading=!1,this.configurationPeers.length>0){const n=this.configurationPeers.map(i=>i.total_sent+i.cumu_sent).reduce((i,o)=>i+o).toFixed(4),s=this.configurationPeers.map(i=>i.total_receive+i.cumu_receive).reduce((i,o)=>i+o).toFixed(4);this.historyDataSentDifference[this.historyDataSentDifference.length-1]!==n&&(this.historyDataSentDifference.length>0&&(this.historySentData={labels:[...this.historySentData.labels,Ip().format("HH:mm:ss A")],datasets:[{label:"Data Sent",data:[...this.historySentData.datasets[0].data,((n-this.historyDataSentDifference[this.historyDataSentDifference.length-1])*1e3).toFixed(4)],fill:!1,borderColor:" #198754",tension:0}]}),this.historyDataSentDifference.push(n)),this.historyDataReceivedDifference[this.historyDataReceivedDifference.length-1]!==s&&(this.historyDataReceivedDifference.length>0&&(this.historyReceiveData={labels:[...this.historyReceiveData.labels,Ip().format("HH:mm:ss A")],datasets:[{label:"Data Received",data:[...this.historyReceiveData.datasets[0].data,((s-this.historyDataReceivedDifference[this.historyDataReceivedDifference.length-1])*1e3).toFixed(4)],fill:!1,borderColor:"#0d6efd",tension:0}]}),this.historyDataReceivedDifference.push(s))}})},setInterval(){this.interval=setInterval(()=>{this.getPeers(this.$route.params.id)},parseInt(this.dashboardConfigurationStore.Configuration.Server.dashboard_refresh_interval))}},computed:{configurationSummary(){return{connectedPeers:this.configurationPeers.filter(e=>e.status==="running").length,totalUsage:this.configurationPeers.length>0?this.configurationPeers.map(e=>e.total_data+e.cumu_data).reduce((e,t)=>e+t):0,totalReceive:this.configurationPeers.length>0?this.configurationPeers.map(e=>e.total_receive+e.cumu_receive).reduce((e,t)=>e+t):0,totalSent:this.configurationPeers.length>0?this.configurationPeers.map(e=>e.total_sent+e.cumu_sent).reduce((e,t)=>e+t):0}},receiveData(){return this.historyReceiveData},sentData(){return this.historySentData},individualDataUsage(){return{labels:this.configurationPeers.map(e=>e.name?e.name:`Untitled Peer - ${e.id}`),datasets:[{label:"Total Data Usage",data:this.configurationPeers.map(e=>e.cumu_data+e.total_data),backgroundColor:this.configurationPeers.map(e=>"#0dcaf0"),tooltip:{callbacks:{label:e=>`${e.formattedValue} GB`}}}]}},individualDataUsageChartOption(){return{responsive:!0,plugins:{legend:{display:!1}},scales:{x:{ticks:{display:!1},grid:{display:!1}},y:{ticks:{callback:(e,t)=>`${e} GB`},grid:{display:!1}}}}},chartOptions(){return{responsive:!0,plugins:{legend:{display:!1},tooltip:{callbacks:{label:e=>`${e.formattedValue} MB/s`}}},scales:{x:{ticks:{display:!1},grid:{display:!1}},y:{ticks:{callback:(e,t)=>`${e} MB/s`},grid:{display:!1}}}}},searchPeers(){const e=new Ji(this.configurationPeers,{keys:["name","id","allowed_ip"]});return(this.wireguardConfigurationStore.searchString?e.search(this.wireguardConfigurationStore.searchString).map(n=>n.item):this.configurationPeers).slice().sort((n,s)=>n[this.dashboardConfigurationStore.Configuration.Server.dashboard_sort]s[this.dashboardConfigurationStore.Configuration.Server.dashboard_sort]?1:0)}}},le=e=>(sr("data-v-7129ca22"),e=e(),ir(),e),vN={key:0},xN=le(()=>g("small",{CLASS:"text-muted"},"CONFIGURATION",-1)),wN={class:"d-flex align-items-center gap-3"},EN={class:"mb-0"},SN=le(()=>g("div",{class:"dot active ms-0"},null,-1)),CN={class:"row mt-3 gy-2 gx-2 mb-2"},AN={class:"col-6 col-lg-3"},TN={class:"card rounded-3 bg-transparent shadow-sm"},PN={class:"card-body py-2"},MN=le(()=>g("p",{class:"mb-0 text-muted"},[g("small",null,"Address")],-1)),kN={class:"col-6 col-lg-3"},ON={class:"card rounded-3 bg-transparent shadow-sm"},DN={class:"card-body py-2"},$N=le(()=>g("p",{class:"mb-0 text-muted"},[g("small",null,"Listen Port")],-1)),LN={style:{"word-break":"break-all"},class:"col-12 col-lg-6"},IN={class:"card rounded-3 bg-transparent shadow-sm"},RN={class:"card-body py-2"},NN=le(()=>g("p",{class:"mb-0 text-muted"},[g("small",null,"Public Key")],-1)),FN={class:"row gx-2 gy-2 mb-2"},BN={class:"col-6 col-lg-3"},VN={class:"card rounded-3 bg-transparent shadow-sm"},HN={class:"card-body d-flex"},jN=le(()=>g("p",{class:"mb-0 text-muted"},[g("small",null,"Connected Peers")],-1)),WN={class:"h4"},zN=le(()=>g("i",{class:"bi bi-ethernet ms-auto h2 text-muted"},null,-1)),UN={class:"col-6 col-lg-3"},KN={class:"card rounded-3 bg-transparent shadow-sm"},YN={class:"card-body d-flex"},qN=le(()=>g("p",{class:"mb-0 text-muted"},[g("small",null,"Total Usage")],-1)),GN={class:"h4"},XN=le(()=>g("i",{class:"bi bi-arrow-down-up ms-auto h2 text-muted"},null,-1)),QN={class:"col-6 col-lg-3"},JN={class:"card rounded-3 bg-transparent shadow-sm"},ZN={class:"card-body d-flex"},tF=le(()=>g("p",{class:"mb-0 text-muted"},[g("small",null,"Total Received")],-1)),eF={class:"h4 text-primary"},nF=le(()=>g("i",{class:"bi bi-arrow-down ms-auto h2 text-muted"},null,-1)),sF={class:"col-6 col-lg-3"},iF={class:"card rounded-3 bg-transparent shadow-sm"},oF={class:"card-body d-flex"},rF=le(()=>g("p",{class:"mb-0 text-muted"},[g("small",null,"Total Sent")],-1)),aF={class:"h4 text-success"},lF=le(()=>g("i",{class:"bi bi-arrow-up ms-auto h2 text-muted"},null,-1)),cF={class:"row gx-2 gy-2 mb-5"},uF={class:"col-12 col-lg-6"},dF={class:"card rounded-3 bg-transparent shadow-sm"},hF=le(()=>g("div",{class:"card-header bg-transparent border-0"},[g("small",{class:"text-muted"},"Peers Total Data Usage")],-1)),fF={class:"card-body pt-1"},pF={class:"col-sm col-lg-3"},gF={class:"card rounded-3 bg-transparent shadow-sm"},mF=le(()=>g("div",{class:"card-header bg-transparent border-0"},[g("small",{class:"text-muted"},"Real Time Received Data Usage")],-1)),_F={class:"card-body pt-1"},bF={class:"col-sm col-lg-3"},yF={class:"card rounded-3 bg-transparent shadow-sm"},vF=le(()=>g("div",{class:"card-header bg-transparent border-0"},[g("small",{class:"text-muted"},"Real Time Sent Data Usage")],-1)),xF={class:"card-body pt-1"},wF={class:"mb-4"},EF=le(()=>g("div",{class:"d-flex align-items-center gap-3 mb-2"},[g("h3",null,"Peers"),g("a",{href:"#",class:"text-decoration-none ms-auto"},[g("i",{class:"bi bi-plus-circle-fill me-2"}),xt("Add Peer")])],-1));function SF(e,t,n,s,i,o){const r=Kt("Bar"),a=Kt("Line"),l=Kt("PeerSearch"),c=Kt("Peer"),u=Kt("PeerSettings"),d=Kt("PeerQRCode");return this.loading?oe("",!0):(ot(),ct("div",vN,[g("div",null,[xN,g("div",wN,[g("h1",EN,[g("samp",null,Ct(this.configurationInfo.Name),1)]),SN])]),g("div",CN,[g("div",AN,[g("div",TN,[g("div",PN,[MN,xt(" "+Ct(this.configurationInfo.Address),1)])])]),g("div",kN,[g("div",ON,[g("div",DN,[$N,xt(" "+Ct(this.configurationInfo.ListenPort),1)])])]),g("div",LN,[g("div",IN,[g("div",RN,[NN,g("samp",null,Ct(this.configurationInfo.PublicKey),1)])])])]),g("div",FN,[g("div",BN,[g("div",VN,[g("div",HN,[g("div",null,[jN,g("strong",WN,Ct(o.configurationSummary.connectedPeers),1)]),zN])])]),g("div",UN,[g("div",KN,[g("div",YN,[g("div",null,[qN,g("strong",GN,Ct(o.configurationSummary.totalUsage.toFixed(4))+" GB",1)]),XN])])]),g("div",QN,[g("div",JN,[g("div",ZN,[g("div",null,[tF,g("strong",eF,Ct(o.configurationSummary.totalReceive.toFixed(4))+" GB",1)]),nF])])]),g("div",sF,[g("div",iF,[g("div",oF,[g("div",null,[rF,g("strong",aF,Ct(o.configurationSummary.totalSent.toFixed(4))+" GB",1)]),lF])])])]),g("div",cF,[g("div",uF,[g("div",dF,[hF,g("div",fF,[mt(r,{data:o.individualDataUsage,options:o.individualDataUsageChartOption,style:{height:"200px",width:"100%"}},null,8,["data","options"])])])]),g("div",pF,[g("div",gF,[mF,g("div",_F,[mt(a,{options:o.chartOptions,data:o.receiveData,style:{width:"100%",height:"200px"}},null,8,["options","data"])])])]),g("div",bF,[g("div",yF,[vF,g("div",xF,[mt(a,{options:o.chartOptions,data:o.sentData,style:{width:"100%",height:"200px"}},null,8,["options","data"])])])])]),g("div",wF,[EF,mt(l),mt(bm,{name:"list",tag:"div",class:"row gx-2 gy-2 z-0"},{default:Yt(()=>[(ot(!0),ct(Jt,null,Mi(this.searchPeers,f=>(ot(),ct("div",{class:"col-12 col-lg-6 col-xl-4",key:f.id},[mt(c,{Peer:f,onSetting:p=>{i.peerSetting.modalOpen=!0,i.peerSetting.selectedPeer=this.configurationPeers.find(m=>m.id===f.id)},onQrcode:t[0]||(t[0]=p=>{this.peerQRCode.peerConfigData=p,this.peerQRCode.modalOpen=!0})},null,8,["Peer","onSetting"])]))),128))]),_:1})]),mt(Dn,{name:"fade"},{default:Yt(()=>[this.peerSetting.modalOpen?(ot(),Ee(u,{key:0,selectedPeer:this.peerSetting.selectedPeer,onRefresh:t[1]||(t[1]=f=>this.getPeers(this.$route.params.id)),onClose:t[2]||(t[2]=f=>this.peerSetting.modalOpen=!1)},null,8,["selectedPeer"])):oe("",!0)]),_:1}),mt(Dn,{name:"fade"},{default:Yt(()=>[i.peerQRCode.modalOpen?(ot(),Ee(d,{key:0,peerConfigData:this.peerQRCode.peerConfigData,onClose:t[3]||(t[3]=f=>this.peerQRCode.modalOpen=!1)},null,8,["peerConfigData"])):oe("",!0)]),_:1})]))}const gb=Ut(yN,[["render",SF],["__scopeId","data-v-7129ca22"]]);cr.register(fi,Mn,Io,Lo,vi,ko,Is,xi,Ea,Oo,Do,$o,Aa,Pa,Ma,pi,zi,ka,z_,Y_,G_,Q_,Z_);const CF={name:"configuration",components:{PeerList:gb}},AF={class:"mt-5 text-body"};function TF(e,t,n,s,i,o){const r=Kt("RouterView");return ot(),ct("div",AF,[mt(r,null,{default:Yt(({Component:a})=>[mt(Dn,{name:"fade2",mode:"out-in"},{default:Yt(()=>[(ot(),Ee(_u(a)))]),_:2},1024)]),_:1})])}const PF=Ut(CF,[["render",TF]]),MF=async()=>{let e=!1;return await qe("/api/validateAuthentication",{},t=>{e=t.status}),e},td=TS({history:zE(),routes:[{name:"Index",path:"/",component:dC,meta:{requiresAuth:!0},children:[{name:"Configuration List",path:"",component:eA,meta:{title:"WireGuard Configurations"}},{name:"Settings",path:"/settings",component:WT,meta:{title:"Settings"}},{name:"New Configuration",path:"/new_configuration",component:Lk,meta:{title:"New Configuration"}},{name:"Configuration",path:"/configuration/:id",component:PF,meta:{title:"Configuration"},children:[{name:"Peers List",path:"",component:gb}]}]},{path:"/signin",component:OC,meta:{title:"Sign In"}},{path:"/welcome",component:yM,meta:{requiresAuth:!0}}]});td.beforeEach(async(e,t,n)=>{const s=Gi(),i=re();e.meta.title?e.params.id?document.title=e.params.id+" | WGDashboard":document.title=e.meta.title+" | WGDashboard":document.title="WGDashboard",e.meta.requiresAuth?IS.getCookie("authToken")&&await MF()?(await i.getConfiguration(),!s.Configurations&&e.name!=="Configuration List"&&await s.getConfigurations(),n()):n("/signin"):n()});const ed=mE(LS);ed.use(td);const mb=vE();mb.use(({store:e})=>{e.$router=er(td)});ed.use(mb);ed.mount("#app");