diff --git a/src/dashboard.py b/src/dashboard.py index 7dbee97..a01a0ab 100644 --- a/src/dashboard.py +++ b/src/dashboard.py @@ -441,12 +441,12 @@ class WireguardConfiguration: return self.message def __init__(self, name: str = None, data: dict = None, backup: dict = None): - print(f"[WGDashboard] Initialized Configuration: {name}") + self.__parser: configparser.ConfigParser = configparser.ConfigParser(strict=False) self.__parser.optionxform = str self.__configFileModifiedTime = None - + self.Status: bool = False self.Name: str = "" self.PrivateKey: str = "" @@ -504,10 +504,13 @@ class WireguardConfiguration: with open(self.__configPath, "w+") as configFile: self.__parser.write(configFile) self.__initPeersList() - - - - + + print(f"[WGDashboard] Initialized Configuration: {name}") + if self.getAutostartStatus() and not self.getStatus(): + self.toggleConfiguration() + print(f"[WGDashboard] Autostart Configuration: {name}") + + def __initPeersList(self): self.Peers: list[Peer] = [] self.getPeersList() @@ -621,6 +624,10 @@ class WireguardConfiguration: def getStatus(self) -> bool: self.Status = self.Name in psutil.net_if_addrs().keys() return self.Status + + def getAutostartStatus(self): + s, d = DashboardConfig.GetConfig("WireGuardConfiguration", "autostart") + return self.Name in d def __getRestrictedPeers(self): self.RestrictedPeers = [] @@ -1078,7 +1085,6 @@ class WireguardConfiguration: self.__dropDatabase() return True - class Peer: def __init__(self, tableData, configuration: WireguardConfiguration): self.configuration = configuration @@ -1225,17 +1231,11 @@ PersistentKeepalive = {str(self.keepalive)} except Exception as e: return False return True - # Regex Match def regex_match(regex, text): pattern = re.compile(regex) return pattern.search(text) is not None -def iPv46RegexCheck(ip): - return re.match( - r'((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))', - ip) - class DashboardAPIKey: def __init__(self, Key: str, CreatedAt: str, ExpiredAt: str): self.Key = Key @@ -1287,6 +1287,9 @@ class DashboardConfig: }, "Database":{ "type": "sqlite" + }, + "WireGuardConfiguration": { + "autostart": "" } } @@ -1324,8 +1327,6 @@ class DashboardConfig: sqlUpdate("UPDATE DashboardAPIKeys SET ExpiredAt = datetime('now', 'localtime') WHERE Key = ?", (key, )) self.DashboardAPIKeys = self.__getAPIKeys() - - def __configValidation(self, key, value: Any) -> [bool, str]: if type(value) is str and len(value) == 0: return False, "Field cannot be empty!" @@ -1384,8 +1385,10 @@ class DashboardConfig: self.__config[section][key] = "true" else: self.__config[section][key] = "false" - if type(value) in [int, float]: + elif type(value) in [int, float]: self.__config[section][key] = str(value) + elif type(value) is list: + self.__config[section][key] = "||".join(value) else: self.__config[section][key] = value return self.SaveConfig(), "" @@ -1411,6 +1414,9 @@ class DashboardConfig: if self.__config[section][key] in ["0", "no", "false", "off"]: return True, False + + if section == "WireGuardConfiguration" and key == "autostart": + return True, self.__config[section][key].split("||") return True, self.__config[section][key] @@ -1421,12 +1427,7 @@ class DashboardConfig: the_dict[section] = {} for key, val in self.__config.items(section): if key not in self.hiddenAttribute: - if val in ["1", "yes", "true", "on"]: - the_dict[section][key] = True - elif val in ["0", "no", "false", "off"]: - the_dict[section][key] = False - else: - the_dict[section][key] = val + the_dict[section][key] = self.GetConfig(section, key)[1] return the_dict diff --git a/src/static/app/dist/assets/index.css b/src/static/app/dist/assets/index.css index 601e51e..9e20244 100644 --- a/src/static/app/dist/assets/index.css +++ b/src/static/app/dist/assets/index.css @@ -6,10 +6,10 @@ * Bootstrap Icons v1.11.3 (https://icons.getbootstrap.com/) * Copyright 2019-2024 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?dd67030699838ea613ee6dbda90effa6) format("woff2"),url(/static/app/dist/assets/bootstrap-icons.woff?dd67030699838ea613ee6dbda90effa6) 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:"賈"}:root{--animate-duration:1s;--animate-delay:1s;--animate-repeat:1}.animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-duration:var(--animate-duration);animation-duration:var(--animate-duration);-webkit-animation-fill-mode:both;animation-fill-mode:both}.animated.infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.animated.repeat-1{-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-iteration-count:var(--animate-repeat);animation-iteration-count:var(--animate-repeat)}.animated.repeat-2{-webkit-animation-iteration-count:2;animation-iteration-count:2;-webkit-animation-iteration-count:calc(var(--animate-repeat)*2);animation-iteration-count:calc(var(--animate-repeat)*2)}.animated.repeat-3{-webkit-animation-iteration-count:3;animation-iteration-count:3;-webkit-animation-iteration-count:calc(var(--animate-repeat)*3);animation-iteration-count:calc(var(--animate-repeat)*3)}.animated.delay-1s{-webkit-animation-delay:1s;animation-delay:1s;-webkit-animation-delay:var(--animate-delay);animation-delay:var(--animate-delay)}.animated.delay-2s{-webkit-animation-delay:2s;animation-delay:2s;-webkit-animation-delay:calc(var(--animate-delay)*2);animation-delay:calc(var(--animate-delay)*2)}.animated.delay-3s{-webkit-animation-delay:3s;animation-delay:3s;-webkit-animation-delay:calc(var(--animate-delay)*3);animation-delay:calc(var(--animate-delay)*3)}.animated.delay-4s{-webkit-animation-delay:4s;animation-delay:4s;-webkit-animation-delay:calc(var(--animate-delay)*4);animation-delay:calc(var(--animate-delay)*4)}.animated.delay-5s{-webkit-animation-delay:5s;animation-delay:5s;-webkit-animation-delay:calc(var(--animate-delay)*5);animation-delay:calc(var(--animate-delay)*5)}.animated.faster{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-duration:calc(var(--animate-duration)/2);animation-duration:calc(var(--animate-duration)/2)}.animated.fast{-webkit-animation-duration:.8s;animation-duration:.8s;-webkit-animation-duration:calc(var(--animate-duration)*.8);animation-duration:calc(var(--animate-duration)*.8)}.animated.slow{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration)*2);animation-duration:calc(var(--animate-duration)*2)}.animated.slower{-webkit-animation-duration:3s;animation-duration:3s;-webkit-animation-duration:calc(var(--animate-duration)*3);animation-duration:calc(var(--animate-duration)*3)}@media (prefers-reduced-motion:reduce),print{.animated{-webkit-animation-duration:1ms!important;animation-duration:1ms!important;-webkit-transition-duration:1ms!important;transition-duration:1ms!important;-webkit-animation-iteration-count:1!important;animation-iteration-count:1!important}.animated[class*=Out]{opacity:0}}@-webkit-keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0) scaleY(1.1);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0) scaleY(1.05);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-4px,0) scaleY(1.02);transform:translate3d(0,-4px,0) scaleY(1.02)}}@keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0) scaleY(1.1);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0) scaleY(1.05);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-4px,0) scaleY(1.02);transform:translate3d(0,-4px,0) scaleY(1.02)}}.bounce{-webkit-animation-name:bounce;animation-name:bounce;-webkit-transform-origin:center bottom;transform-origin:center bottom}.flash{-webkit-animation-name:flash;animation-name:flash}@-webkit-keyframes pulse{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes pulse{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.pulse{-webkit-animation-name:pulse;animation-name:pulse;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes rubberBand{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes rubberBand{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.rubberBand{-webkit-animation-name:rubberBand;animation-name:rubberBand}@-webkit-keyframes shakeX{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}@keyframes shakeX{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}.shakeX{-webkit-animation-name:shakeX;animation-name:shakeX}@-webkit-keyframes shakeY{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}}@keyframes shakeY{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}}.shakeY{-webkit-animation-name:shakeY;animation-name:shakeY}.headShake{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-name:headShake;animation-name:headShake}@-webkit-keyframes swing{20%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}40%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}60%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}80%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(0deg);transform:rotate(0)}}@keyframes swing{20%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}40%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}60%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}80%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(0deg);transform:rotate(0)}}.swing{-webkit-transform-origin:top center;transform-origin:top center;-webkit-animation-name:swing;animation-name:swing}@-webkit-keyframes tada{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate(-3deg);transform:scale3d(.9,.9,.9) rotate(-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(3deg);transform:scale3d(1.1,1.1,1.1) rotate(3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(-3deg);transform:scale3d(1.1,1.1,1.1) rotate(-3deg)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes tada{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate(-3deg);transform:scale3d(.9,.9,.9) rotate(-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(3deg);transform:scale3d(1.1,1.1,1.1) rotate(3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(-3deg);transform:scale3d(1.1,1.1,1.1) rotate(-3deg)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.tada{-webkit-animation-name:tada;animation-name:tada}@-webkit-keyframes wobble{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate(-5deg);transform:translate3d(-25%,0,0) rotate(-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate(3deg);transform:translate3d(20%,0,0) rotate(3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate(-3deg);transform:translate3d(-15%,0,0) rotate(-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate(2deg);transform:translate3d(10%,0,0) rotate(2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate(-1deg);transform:translate3d(-5%,0,0) rotate(-1deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes wobble{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate(-5deg);transform:translate3d(-25%,0,0) rotate(-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate(3deg);transform:translate3d(20%,0,0) rotate(3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate(-3deg);transform:translate3d(-15%,0,0) rotate(-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate(2deg);transform:translate3d(10%,0,0) rotate(2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate(-1deg);transform:translate3d(-5%,0,0) rotate(-1deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.wobble{-webkit-animation-name:wobble;animation-name:wobble}@-webkit-keyframes jello{0%,11.1%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skew(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skew(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skew(-.1953125deg) skewY(-.1953125deg)}}@keyframes jello{0%,11.1%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skew(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skew(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skew(-.1953125deg) skewY(-.1953125deg)}}.jello{-webkit-animation-name:jello;animation-name:jello;-webkit-transform-origin:center;transform-origin:center}.heartBeat{-webkit-animation-name:heartBeat;animation-name:heartBeat;-webkit-animation-duration:1.3s;animation-duration:1.3s;-webkit-animation-duration:calc(var(--animate-duration)*1.3);animation-duration:calc(var(--animate-duration)*1.3);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes backInDown{0%{-webkit-transform:translateY(-1200px) scale(.7);transform:translateY(-1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInDown{0%{-webkit-transform:translateY(-1200px) scale(.7);transform:translateY(-1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.backInDown{-webkit-animation-name:backInDown;animation-name:backInDown}@-webkit-keyframes backInLeft{0%{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInLeft{0%{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.backInLeft{-webkit-animation-name:backInLeft;animation-name:backInLeft}@-webkit-keyframes backInRight{0%{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInRight{0%{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.backInRight{-webkit-animation-name:backInRight;animation-name:backInRight}@-webkit-keyframes backInUp{0%{-webkit-transform:translateY(1200px) scale(.7);transform:translateY(1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInUp{0%{-webkit-transform:translateY(1200px) scale(.7);transform:translateY(1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.backInUp{-webkit-animation-name:backInUp;animation-name:backInUp}@-webkit-keyframes backOutDown{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(700px) scale(.7);transform:translateY(700px) scale(.7);opacity:.7}}@keyframes backOutDown{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(700px) scale(.7);transform:translateY(700px) scale(.7);opacity:.7}}.backOutDown{-webkit-animation-name:backOutDown;animation-name:backOutDown}@-webkit-keyframes backOutLeft{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}}@keyframes backOutLeft{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}}.backOutLeft{-webkit-animation-name:backOutLeft;animation-name:backOutLeft}@-webkit-keyframes backOutRight{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}}@keyframes backOutRight{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}}.backOutRight{-webkit-animation-name:backOutRight;animation-name:backOutRight}@-webkit-keyframes backOutUp{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(-700px) scale(.7);transform:translateY(-700px) scale(.7);opacity:.7}}@keyframes backOutUp{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(-700px) scale(.7);transform:translateY(-700px) scale(.7);opacity:.7}}.backOutUp{-webkit-animation-name:backOutUp;animation-name:backOutUp}@-webkit-keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}.bounceIn{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-animation-name:bounceIn;animation-name:bounceIn}@-webkit-keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0) scaleY(3);transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0) scaleY(.9);transform:translate3d(0,25px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-10px,0) scaleY(.95);transform:translate3d(0,-10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,5px,0) scaleY(.985);transform:translate3d(0,5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0) scaleY(3);transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0) scaleY(.9);transform:translate3d(0,25px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-10px,0) scaleY(.95);transform:translate3d(0,-10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,5px,0) scaleY(.985);transform:translate3d(0,5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInDown{-webkit-animation-name:bounceInDown;animation-name:bounceInDown}@-webkit-keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0) scaleX(3);transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0) scaleX(1);transform:translate3d(25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-10px,0,0) scaleX(.98);transform:translate3d(-10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(5px,0,0) scaleX(.995);transform:translate3d(5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0) scaleX(3);transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0) scaleX(1);transform:translate3d(25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-10px,0,0) scaleX(.98);transform:translate3d(-10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(5px,0,0) scaleX(.995);transform:translate3d(5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInLeft{-webkit-animation-name:bounceInLeft;animation-name:bounceInLeft}@-webkit-keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0) scaleX(3);transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0) scaleX(1);transform:translate3d(-25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(10px,0,0) scaleX(.98);transform:translate3d(10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-5px,0,0) scaleX(.995);transform:translate3d(-5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0) scaleX(3);transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0) scaleX(1);transform:translate3d(-25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(10px,0,0) scaleX(.98);transform:translate3d(10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-5px,0,0) scaleX(.995);transform:translate3d(-5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInRight{-webkit-animation-name:bounceInRight;animation-name:bounceInRight}@-webkit-keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0) scaleY(5);transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,10px,0) scaleY(.95);transform:translate3d(0,10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-5px,0) scaleY(.985);transform:translate3d(0,-5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0) scaleY(5);transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,10px,0) scaleY(.95);transform:translate3d(0,10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-5px,0) scaleY(.985);transform:translate3d(0,-5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInUp{-webkit-animation-name:bounceInUp;animation-name:bounceInUp}.bounceOut{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-animation-name:bounceOut;animation-name:bounceOut}.bounceOutDown{-webkit-animation-name:bounceOutDown;animation-name:bounceOutDown}.bounceOutLeft{-webkit-animation-name:bounceOutLeft;animation-name:bounceOutLeft}.bounceOutRight{-webkit-animation-name:bounceOutRight;animation-name:bounceOutRight}.bounceOutUp{-webkit-animation-name:bounceOutUp;animation-name:bounceOutUp}.fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn}@-webkit-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown}@-webkit-keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInDownBig{-webkit-animation-name:fadeInDownBig;animation-name:fadeInDownBig}@-webkit-keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInLeft{-webkit-animation-name:fadeInLeft;animation-name:fadeInLeft}@-webkit-keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInLeftBig{-webkit-animation-name:fadeInLeftBig;animation-name:fadeInLeftBig}@-webkit-keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInRight{-webkit-animation-name:fadeInRight;animation-name:fadeInRight}@-webkit-keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInRightBig{-webkit-animation-name:fadeInRightBig;animation-name:fadeInRightBig}@-webkit-keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInUp{-webkit-animation-name:fadeInUp;animation-name:fadeInUp}@-webkit-keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInUpBig{-webkit-animation-name:fadeInUpBig;animation-name:fadeInUpBig}@-webkit-keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInTopLeft{-webkit-animation-name:fadeInTopLeft;animation-name:fadeInTopLeft}@-webkit-keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInTopRight{-webkit-animation-name:fadeInTopRight;animation-name:fadeInTopRight}@-webkit-keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInBottomLeft{-webkit-animation-name:fadeInBottomLeft;animation-name:fadeInBottomLeft}@-webkit-keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInBottomRight{-webkit-animation-name:fadeInBottomRight;animation-name:fadeInBottomRight}.fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}.fadeOutDown{-webkit-animation-name:fadeOutDown;animation-name:fadeOutDown}.fadeOutDownBig{-webkit-animation-name:fadeOutDownBig;animation-name:fadeOutDownBig}.fadeOutLeft{-webkit-animation-name:fadeOutLeft;animation-name:fadeOutLeft}.fadeOutLeftBig{-webkit-animation-name:fadeOutLeftBig;animation-name:fadeOutLeftBig}.fadeOutRight{-webkit-animation-name:fadeOutRight;animation-name:fadeOutRight}.fadeOutRightBig{-webkit-animation-name:fadeOutRightBig;animation-name:fadeOutRightBig}.fadeOutUp{-webkit-animation-name:fadeOutUp;animation-name:fadeOutUp}.fadeOutUpBig{-webkit-animation-name:fadeOutUpBig;animation-name:fadeOutUpBig}@-webkit-keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}@keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}.fadeOutTopLeft{-webkit-animation-name:fadeOutTopLeft;animation-name:fadeOutTopLeft}@-webkit-keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}@keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}.fadeOutTopRight{-webkit-animation-name:fadeOutTopRight;animation-name:fadeOutTopRight}@-webkit-keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}@keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}.fadeOutBottomRight{-webkit-animation-name:fadeOutBottomRight;animation-name:fadeOutBottomRight}@-webkit-keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}@keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}.fadeOutBottomLeft{-webkit-animation-name:fadeOutBottomLeft;animation-name:fadeOutBottomLeft}@-webkit-keyframes flip{0%{-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0deg);transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0deg);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}@keyframes flip{0%{-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0deg);transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0deg);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}.animated.flip{-webkit-backface-visibility:visible;backface-visibility:visible;-webkit-animation-name:flip;animation-name:flip}@-webkit-keyframes flipInX{0%{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateX(10deg);transform:perspective(400px) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateX(-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInX{0%{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateX(10deg);transform:perspective(400px) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateX(-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.flipInX{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInX;animation-name:flipInX}@-webkit-keyframes flipInY{0%{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateY(-20deg);transform:perspective(400px) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateY(10deg);transform:perspective(400px) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateY(-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInY{0%{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateY(-20deg);transform:perspective(400px) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateY(10deg);transform:perspective(400px) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateY(-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.flipInY{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInY;animation-name:flipInY}@-webkit-keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);opacity:0}}@keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);opacity:0}}.flipOutX{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-animation-name:flipOutX;animation-name:flipOutX;-webkit-backface-visibility:visible!important;backface-visibility:visible!important}@-webkit-keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateY(-15deg);transform:perspective(400px) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);opacity:0}}@keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateY(-15deg);transform:perspective(400px) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);opacity:0}}.flipOutY{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipOutY;animation-name:flipOutY}@-webkit-keyframes lightSpeedInRight{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skew(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skew(-5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes lightSpeedInRight{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skew(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skew(-5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.lightSpeedInRight{-webkit-animation-name:lightSpeedInRight;animation-name:lightSpeedInRight;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedInLeft{0%{-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{-webkit-transform:skewX(-20deg);transform:skew(-20deg);opacity:1}80%{-webkit-transform:skewX(5deg);transform:skew(5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes lightSpeedInLeft{0%{-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{-webkit-transform:skewX(-20deg);transform:skew(-20deg);opacity:1}80%{-webkit-transform:skewX(5deg);transform:skew(5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.lightSpeedInLeft{-webkit-animation-name:lightSpeedInLeft;animation-name:lightSpeedInLeft;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}.lightSpeedOutRight{-webkit-animation-name:lightSpeedOutRight;animation-name:lightSpeedOutRight;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}.lightSpeedOutLeft{-webkit-animation-name:lightSpeedOutLeft;animation-name:lightSpeedOutLeft;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes rotateIn{0%{-webkit-transform:rotate(-200deg);transform:rotate(-200deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateIn{0%{-webkit-transform:rotate(-200deg);transform:rotate(-200deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.rotateIn{-webkit-animation-name:rotateIn;animation-name:rotateIn;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateInDownLeft{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateInDownLeft{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.rotateInDownLeft{-webkit-animation-name:rotateInDownLeft;animation-name:rotateInDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInDownRight{0%{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateInDownRight{0%{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.rotateInDownRight{-webkit-animation-name:rotateInDownRight;animation-name:rotateInDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateInUpLeft{0%{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateInUpLeft{0%{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.rotateInUpLeft{-webkit-animation-name:rotateInUpLeft;animation-name:rotateInUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInUpRight{0%{-webkit-transform:rotate(-90deg);transform:rotate(-90deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateInUpRight{0%{-webkit-transform:rotate(-90deg);transform:rotate(-90deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.rotateInUpRight{-webkit-animation-name:rotateInUpRight;animation-name:rotateInUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOut{0%{opacity:1}to{-webkit-transform:rotate(200deg);transform:rotate(200deg);opacity:0}}@keyframes rotateOut{0%{opacity:1}to{-webkit-transform:rotate(200deg);transform:rotate(200deg);opacity:0}}.rotateOut{-webkit-animation-name:rotateOut;animation-name:rotateOut;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateOutDownLeft{0%{opacity:1}to{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}}@keyframes rotateOutDownLeft{0%{opacity:1}to{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}}.rotateOutDownLeft{-webkit-animation-name:rotateOutDownLeft;animation-name:rotateOutDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutDownRight{0%{opacity:1}to{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}@keyframes rotateOutDownRight{0%{opacity:1}to{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}.rotateOutDownRight{-webkit-animation-name:rotateOutDownRight;animation-name:rotateOutDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOutUpLeft{0%{opacity:1}to{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}@keyframes rotateOutUpLeft{0%{opacity:1}to{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}.rotateOutUpLeft{-webkit-animation-name:rotateOutUpLeft;animation-name:rotateOutUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutUpRight{0%{opacity:1}to{-webkit-transform:rotate(90deg);transform:rotate(90deg);opacity:0}}@keyframes rotateOutUpRight{0%{opacity:1}to{-webkit-transform:rotate(90deg);transform:rotate(90deg);opacity:0}}.rotateOutUpRight{-webkit-animation-name:rotateOutUpRight;animation-name:rotateOutUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate(80deg);transform:rotate(80deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate(60deg);transform:rotate(60deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}@keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate(80deg);transform:rotate(80deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate(60deg);transform:rotate(60deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}.hinge{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration)*2);animation-duration:calc(var(--animate-duration)*2);-webkit-animation-name:hinge;animation-name:hinge;-webkit-transform-origin:top left;transform-origin:top left}.jackInTheBox{-webkit-animation-name:jackInTheBox;animation-name:jackInTheBox}@-webkit-keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate(-120deg);transform:translate3d(-100%,0,0) rotate(-120deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate(-120deg);transform:translate3d(-100%,0,0) rotate(-120deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.rollIn{-webkit-animation-name:rollIn;animation-name:rollIn}@-webkit-keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate(120deg);transform:translate3d(100%,0,0) rotate(120deg)}}@keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate(120deg);transform:translate3d(100%,0,0) rotate(120deg)}}.rollOut{-webkit-animation-name:rollOut;animation-name:rollOut}.zoomIn{-webkit-animation-name:zoomIn;animation-name:zoomIn}.zoomInDown{-webkit-animation-name:zoomInDown;animation-name:zoomInDown}.zoomInLeft{-webkit-animation-name:zoomInLeft;animation-name:zoomInLeft}.zoomInRight{-webkit-animation-name:zoomInRight;animation-name:zoomInRight}.zoomInUp{-webkit-animation-name:zoomInUp;animation-name:zoomInUp}.zoomOut{-webkit-animation-name:zoomOut;animation-name:zoomOut}.zoomOutDown{-webkit-animation-name:zoomOutDown;animation-name:zoomOutDown;-webkit-transform-origin:center bottom;transform-origin:center bottom}.zoomOutLeft{-webkit-animation-name:zoomOutLeft;animation-name:zoomOutLeft;-webkit-transform-origin:left center;transform-origin:left center}.zoomOutRight{-webkit-animation-name:zoomOutRight;animation-name:zoomOutRight;-webkit-transform-origin:right center;transform-origin:right center}.zoomOutUp{-webkit-animation-name:zoomOutUp;animation-name:zoomOutUp;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInDown{-webkit-animation-name:slideInDown;animation-name:slideInDown}@-webkit-keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInLeft{-webkit-animation-name:slideInLeft;animation-name:slideInLeft}@-webkit-keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInRight{-webkit-animation-name:slideInRight;animation-name:slideInRight}@-webkit-keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}@-webkit-keyframes slideOutDown{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes slideOutDown{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.slideOutDown{-webkit-animation-name:slideOutDown;animation-name:slideOutDown}@-webkit-keyframes slideOutLeft{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes slideOutLeft{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.slideOutLeft{-webkit-animation-name:slideOutLeft;animation-name:slideOutLeft}@-webkit-keyframes slideOutRight{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes slideOutRight{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.slideOutRight{-webkit-animation-name:slideOutRight;animation-name:slideOutRight}@-webkit-keyframes slideOutUp{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes slideOutUp{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.slideOutUp{-webkit-animation-name:slideOutUp;animation-name:slideOutUp}.dp__input_wrap{position:relative;width:100%;box-sizing:unset}.dp__input_wrap:focus{border-color:var(--dp-border-color-hover);outline:none}.dp__input_valid{box-shadow:0 0 var(--dp-border-radius) var(--dp-success-color);border-color:var(--dp-success-color)}.dp__input_valid:hover{border-color:var(--dp-success-color)}.dp__input_invalid{box-shadow:0 0 var(--dp-border-radius) var(--dp-danger-color);border-color:var(--dp-danger-color)}.dp__input_invalid:hover{border-color:var(--dp-danger-color)}.dp__input{background-color:var(--dp-background-color);border-radius:var(--dp-border-radius);font-family:var(--dp-font-family);border:1px solid var(--dp-border-color);outline:none;transition:border-color .2s cubic-bezier(.645,.045,.355,1);width:100%;font-size:var(--dp-font-size);line-height:calc(var(--dp-font-size)*1.5);padding:var(--dp-input-padding);color:var(--dp-text-color);box-sizing:border-box}.dp__input::placeholder{opacity:.7}.dp__input:hover:not(.dp__input_focus){border-color:var(--dp-border-color-hover)}.dp__input_reg{caret-color:#0000}.dp__input_focus{border-color:var(--dp-border-color-focus)}.dp__disabled{background:var(--dp-disabled-color)}.dp__disabled::placeholder{color:var(--dp-disabled-color-text)}.dp__input_icons{display:inline-block;width:var(--dp-font-size);height:var(--dp-font-size);stroke-width:0;font-size:var(--dp-font-size);line-height:calc(var(--dp-font-size)*1.5);padding:6px 12px;color:var(--dp-icon-color);box-sizing:content-box}.dp__input_icon{cursor:pointer;position:absolute;top:50%;inset-inline-start:0;transform:translateY(-50%);color:var(--dp-icon-color)}.dp--clear-btn{position:absolute;top:50%;inset-inline-end:0;transform:translateY(-50%);cursor:pointer;color:var(--dp-icon-color);background:#0000;border:none;display:inline-flex;align-items:center;padding:0;margin:0}.dp__input_icon_pad{padding-inline-start:var(--dp-input-icon-padding)}.dp__menu{background:var(--dp-background-color);border-radius:var(--dp-border-radius);min-width:var(--dp-menu-min-width);font-family:var(--dp-font-family);font-size:var(--dp-font-size);user-select:none;border:1px solid var(--dp-menu-border-color);box-sizing:border-box}.dp__menu:after{box-sizing:border-box}.dp__menu:before{box-sizing:border-box}.dp__menu:focus{border:1px solid var(--dp-menu-border-color);outline:none}.dp--menu-wrapper{position:absolute;z-index:99999}.dp__menu_inner{padding:var(--dp-menu-padding)}.dp--menu--inner-stretched{padding:6px 0}.dp__menu_index{z-index:99999}.dp-menu-loading,.dp__menu_readonly,.dp__menu_disabled{position:absolute;inset:0;z-index:999999}.dp__menu_disabled{background:#ffffff80;cursor:not-allowed}.dp__menu_readonly{background:#0000;cursor:default}.dp-menu-loading{background:#ffffff80;cursor:default}.dp--menu-load-container{display:flex;height:100%;width:100%;justify-content:center;align-items:center}.dp--menu-loader{width:48px;height:48px;border:var(--dp-loader);border-bottom-color:#0000;border-radius:50%;display:inline-block;box-sizing:border-box;animation:dp-load-rotation 1s linear infinite;position:absolute}@keyframes dp-load-rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.dp__arrow_top{left:var(--dp-arrow-left);top:0;height:12px;width:12px;background-color:var(--dp-background-color);position:absolute;border-inline-end:1px solid var(--dp-menu-border-color);border-top:1px solid var(--dp-menu-border-color);transform:translate(-50%,-50%) rotate(-45deg)}.dp__arrow_bottom{left:var(--dp-arrow-left);bottom:0;height:12px;width:12px;background-color:var(--dp-background-color);position:absolute;border-inline-end:1px solid var(--dp-menu-border-color);border-bottom:1px solid var(--dp-menu-border-color);transform:translate(-50%,50%) rotate(45deg)}.dp__action_extra{text-align:center;padding:2px 0}.dp--preset-dates{padding:5px;border-inline-end:1px solid var(--dp-border-color)}@media only screen and (width <= 600px){.dp--preset-dates{display:flex;align-self:center;border:none;overflow-x:auto;max-width:calc(var(--dp-menu-width) - var(--dp-action-row-padding)*2)}}.dp--preset-dates-collapsed{display:flex;align-self:center;border:none;overflow-x:auto;max-width:calc(var(--dp-menu-width) - var(--dp-action-row-padding)*2)}.dp__sidebar_left{padding:5px;border-inline-end:1px solid var(--dp-border-color)}.dp__sidebar_right{padding:5px;margin-inline-end:1px solid var(--dp-border-color)}.dp--preset-range{display:block;width:100%;padding:5px;text-align:left;white-space:nowrap;color:var(--dp-text-color);border-radius:var(--dp-border-radius);transition:var(--dp-common-transition)}.dp--preset-range:hover{background-color:var(--dp-hover-color);color:var(--dp-hover-text-color);cursor:pointer}@media only screen and (width <= 600px){.dp--preset-range{border:1px solid var(--dp-border-color);margin:0 3px}.dp--preset-range:first-child{margin-left:0}.dp--preset-range:last-child{margin-right:0}}.dp--preset-range-collapsed{border:1px solid var(--dp-border-color);margin:0 3px}.dp--preset-range-collapsed:first-child{margin-left:0}.dp--preset-range-collapsed:last-child{margin-right:0}.dp__menu_content_wrapper{display:flex}@media only screen and (width <= 600px){.dp__menu_content_wrapper{flex-direction:column-reverse}}.dp--menu-content-wrapper-collapsed{flex-direction:column-reverse}.dp__calendar_header{position:relative;display:flex;justify-content:center;align-items:center;color:var(--dp-text-color);white-space:nowrap;font-weight:700}.dp__calendar_header_item{text-align:center;flex-grow:1;height:var(--dp-cell-size);padding:var(--dp-cell-padding);width:var(--dp-cell-size);box-sizing:border-box}.dp__calendar_row{display:flex;justify-content:center;align-items:center;margin:var(--dp-row-margin)}.dp__calendar_item{text-align:center;flex-grow:1;box-sizing:border-box;color:var(--dp-text-color)}.dp__calendar{position:relative}.dp__calendar_header_cell{border-bottom:thin solid var(--dp-border-color);padding:var(--dp-calendar-header-cell-padding)}.dp__cell_inner{display:flex;align-items:center;text-align:center;justify-content:center;border-radius:var(--dp-cell-border-radius);height:var(--dp-cell-size);padding:var(--dp-cell-padding);width:var(--dp-cell-size);border:1px solid rgba(0,0,0,0);box-sizing:border-box;position:relative}.dp__cell_inner:hover{transition:all .2s}.dp__cell_auto_range_start,.dp__date_hover_start:hover,.dp__range_start{border-end-end-radius:0;border-start-end-radius:0}.dp__cell_auto_range_end,.dp__date_hover_end:hover,.dp__range_end{border-end-start-radius:0;border-start-start-radius:0}.dp__range_end,.dp__range_start,.dp__active_date{background:var(--dp-primary-color);color:var(--dp-primary-text-color)}.dp__date_hover_end:hover,.dp__date_hover_start:hover,.dp__date_hover:hover{background:var(--dp-hover-color);color:var(--dp-hover-text-color)}.dp__cell_offset{color:var(--dp-secondary-color)}.dp__cell_disabled{color:var(--dp-secondary-color);cursor:not-allowed}.dp__range_between{background:var(--dp-range-between-dates-background-color);color:var(--dp-range-between-dates-text-color);border-radius:0;border:1px solid var(--dp-range-between-border-color)}.dp__range_between_week{background:var(--dp-primary-color);color:var(--dp-primary-text-color);border-radius:0;border-top:1px solid var(--dp-primary-color);border-bottom:1px solid var(--dp-primary-color)}.dp__today{border:1px solid var(--dp-primary-color)}.dp__week_num{color:var(--dp-secondary-color);text-align:center}.dp__cell_auto_range{border-radius:0;border-top:1px dashed var(--dp-primary-color);border-bottom:1px dashed var(--dp-primary-color)}.dp__cell_auto_range_start{border-start-start-radius:var(--dp-cell-border-radius);border-end-start-radius:var(--dp-cell-border-radius);border-inline-start:1px dashed var(--dp-primary-color);border-top:1px dashed var(--dp-primary-color);border-bottom:1px dashed var(--dp-primary-color)}.dp__cell_auto_range_end{border-start-end-radius:var(--dp-cell-border-radius);border-end-end-radius:var(--dp-cell-border-radius);border-top:1px dashed var(--dp-primary-color);border-bottom:1px dashed var(--dp-primary-color);border-inline-end:1px dashed var(--dp-primary-color)}.dp__calendar_header_separator{width:100%;height:1px;background:var(--dp-border-color)}.dp__calendar_next{margin-inline-start:var(--dp-multi-calendars-spacing)}.dp__marker_line,.dp__marker_dot{height:5px;background-color:var(--dp-marker-color);position:absolute;bottom:0}.dp__marker_dot{width:5px;border-radius:50%;left:50%;transform:translate(-50%)}.dp__marker_line{width:100%;left:0}.dp__marker_tooltip{position:absolute;border-radius:var(--dp-border-radius);background-color:var(--dp-tooltip-color);padding:5px;border:1px solid var(--dp-border-color);z-index:99999;box-sizing:border-box;cursor:default}.dp__tooltip_content{white-space:nowrap}.dp__tooltip_text{display:flex;align-items:center;flex-flow:row nowrap;color:var(--dp-text-color)}.dp__tooltip_mark{height:5px;width:5px;border-radius:50%;background-color:var(--dp-text-color);color:var(--dp-text-color);margin-inline-end:5px}.dp__arrow_bottom_tp{bottom:0;height:8px;width:8px;background-color:var(--dp-tooltip-color);position:absolute;border-inline-end:1px solid var(--dp-border-color);border-bottom:1px solid var(--dp-border-color);transform:translate(-50%,50%) rotate(45deg)}.dp__instance_calendar{position:relative;width:100%}@media only screen and (width <= 600px){.dp__flex_display{flex-direction:column}}.dp--flex-display-collapsed{flex-direction:column}.dp__cell_highlight{background-color:var(--dp-highlight-color)}.dp__month_year_row{display:flex;align-items:center;height:var(--dp-month-year-row-height);color:var(--dp-text-color);box-sizing:border-box}.dp__inner_nav{display:flex;align-items:center;justify-content:center;cursor:pointer;height:var(--dp-month-year-row-button-size);width:var(--dp-month-year-row-button-size);color:var(--dp-icon-color);text-align:center;border-radius:50%}.dp__inner_nav svg{height:var(--dp-button-icon-height);width:var(--dp-button-icon-height)}.dp__inner_nav:hover{background:var(--dp-hover-color);color:var(--dp-hover-icon-color)}[dir=rtl] .dp__inner_nav{transform:rotate(180deg)}.dp__inner_nav_disabled:hover,.dp__inner_nav_disabled{background:var(--dp-disabled-color);color:var(--dp-disabled-color-text);cursor:not-allowed}.dp--year-select,.dp__month_year_select{text-align:center;cursor:pointer;height:var(--dp-month-year-row-height);display:flex;align-items:center;justify-content:center;border-radius:var(--dp-border-radius);box-sizing:border-box;color:var(--dp-text-color)}.dp--year-select:hover,.dp__month_year_select:hover{background:var(--dp-hover-color);color:var(--dp-hover-text-color);transition:var(--dp-common-transition)}.dp__month_year_select{width:50%}.dp--year-select{width:100%}.dp__month_year_wrap{display:flex;flex-direction:row;width:100%}.dp__year_disable_select{justify-content:space-around}.dp--header-wrap{display:flex;width:100%;flex-direction:column}.dp__overlay{width:100%;background:var(--dp-background-color);transition:opacity 1s ease-out;z-index:99999;font-family:var(--dp-font-family);color:var(--dp-text-color);box-sizing:border-box}.dp--overlay-absolute{position:absolute;height:100%;top:0;left:0}.dp--overlay-relative{position:relative}.dp__overlay_container::-webkit-scrollbar-track{box-shadow:var(--dp-scroll-bar-background);background-color:var(--dp-scroll-bar-background)}.dp__overlay_container::-webkit-scrollbar{width:5px;background-color:var(--dp-scroll-bar-background)}.dp__overlay_container::-webkit-scrollbar-thumb{background-color:var(--dp-scroll-bar-color);border-radius:10px}.dp__overlay:focus{border:none;outline:none}.dp__container_flex{display:flex}.dp__container_block{display:block}.dp__overlay_container{flex-direction:column;overflow-y:auto;height:var(--dp-overlay-height)}.dp__time_picker_overlay_container{height:100%}.dp__overlay_row{padding:0;box-sizing:border-box;display:flex;margin-inline:auto auto;flex-wrap:wrap;max-width:100%;width:100%;align-items:center}.dp__flex_row{flex:1}.dp__overlay_col{box-sizing:border-box;width:33%;padding:var(--dp-overlay-col-padding);white-space:nowrap}.dp__overlay_cell_pad{padding:var(--dp-common-padding) 0}.dp__overlay_cell_active{cursor:pointer;border-radius:var(--dp-border-radius);text-align:center;background:var(--dp-primary-color);color:var(--dp-primary-text-color)}.dp__overlay_cell{cursor:pointer;border-radius:var(--dp-border-radius);text-align:center}.dp__overlay_cell:hover{background:var(--dp-hover-color);color:var(--dp-hover-text-color);transition:var(--dp-common-transition)}.dp__cell_in_between{background:var(--dp-hover-color);color:var(--dp-hover-text-color)}.dp__over_action_scroll{right:5px;box-sizing:border-box}.dp__overlay_cell_disabled{cursor:not-allowed;background:var(--dp-disabled-color)}.dp__overlay_cell_disabled:hover{background:var(--dp-disabled-color)}.dp__overlay_cell_active_disabled{cursor:not-allowed;background:var(--dp-primary-disabled-color)}.dp__overlay_cell_active_disabled:hover{background:var(--dp-primary-disabled-color)}.dp__btn,.dp--qr-btn,.dp--time-invalid,.dp--time-overlay-btn{border:none;font:inherit;transition:var(--dp-common-transition);line-height:normal}.dp--tp-wrap{max-width:var(--dp-menu-min-width)}.dp__time_input{width:100%;display:flex;align-items:center;justify-content:center;user-select:none;font-family:var(--dp-font-family);color:var(--dp-text-color)}.dp__time_col_reg_block{padding:0 20px}.dp__time_col_reg_inline{padding:0 10px}.dp__time_col_reg_with_button{padding:0 15px}.dp__time_col_sec{padding:0 10px}.dp__time_col_sec_with_button{padding:0 5px}.dp__time_col{text-align:center;display:flex;align-items:center;justify-content:center;flex-direction:column}.dp__time_col_block{font-size:var(--dp-time-font-size)}.dp__time_display_block{padding:0 3px}.dp__time_display_inline{padding:5px}.dp__time_picker_inline_container{display:flex;width:100%;justify-content:center}.dp__inc_dec_button{padding:5px;margin:0;height:var(--dp-time-inc-dec-button-size);width:var(--dp-time-inc-dec-button-size);display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:50%;color:var(--dp-icon-color);box-sizing:border-box}.dp__inc_dec_button svg{height:var(--dp-time-inc-dec-button-size);width:var(--dp-time-inc-dec-button-size)}.dp__inc_dec_button:hover{background:var(--dp-hover-color);color:var(--dp-primary-color)}.dp__time_display{cursor:pointer;color:var(--dp-text-color);border-radius:var(--dp-border-radius);display:flex;align-items:center;justify-content:center}.dp__time_display:hover:enabled{background:var(--dp-hover-color);color:var(--dp-hover-text-color)}.dp__inc_dec_button_inline{width:100%;padding:0;height:8px;cursor:pointer;display:flex;align-items:center}.dp__inc_dec_button_disabled,.dp__inc_dec_button_disabled:hover{background:var(--dp-disabled-color);color:var(--dp-disabled-color-text);cursor:not-allowed}.dp__pm_am_button{background:var(--dp-primary-color);color:var(--dp-primary-text-color);border:none;padding:var(--dp-common-padding);border-radius:var(--dp-border-radius);cursor:pointer}.dp__tp_inline_btn_bar{width:100%;height:4px;background-color:var(--dp-secondary-color);transition:var(--dp-common-transition);border-collapse:collapse}.dp__tp_inline_btn_top:hover .dp__tp_btn_in_r{background-color:var(--dp-primary-color);transform:rotate(12deg) scale(1.15) translateY(-2px)}.dp__tp_inline_btn_top:hover .dp__tp_btn_in_l,.dp__tp_inline_btn_bottom:hover .dp__tp_btn_in_r{background-color:var(--dp-primary-color);transform:rotate(-12deg) scale(1.15) translateY(-2px)}.dp__tp_inline_btn_bottom:hover .dp__tp_btn_in_l{background-color:var(--dp-primary-color);transform:rotate(12deg) scale(1.15) translateY(-2px)}.dp--time-overlay-btn{background:none}.dp--time-invalid{background-color:var(--dp-disabled-color)}.dp__action_row{display:flex;align-items:center;width:100%;padding:var(--dp-action-row-padding);box-sizing:border-box;color:var(--dp-text-color);flex-flow:row nowrap}.dp__action_row svg{height:var(--dp-button-icon-height);width:auto}.dp__selection_preview{display:block;color:var(--dp-text-color);font-size:var(--dp-preview-font-size);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.dp__action_buttons{display:flex;flex:0;white-space:nowrap;align-items:center;justify-content:flex-end;margin-inline-start:auto}.dp__action_button{display:inline-flex;align-items:center;background:#0000;border:1px solid rgba(0,0,0,0);padding:var(--dp-action-buttons-padding);line-height:var(--dp-action-button-height);margin-inline-start:3px;height:var(--dp-action-button-height);cursor:pointer;border-radius:var(--dp-border-radius);font-size:var(--dp-preview-font-size);font-family:var(--dp-font-family)}.dp__action_cancel{color:var(--dp-text-color);border:1px solid var(--dp-border-color)}.dp__action_cancel:hover{border-color:var(--dp-primary-color);transition:var(--dp-action-row-transtion)}.dp__action_buttons .dp__action_select{background:var(--dp-primary-color);color:var(--dp-primary-text-color)}.dp__action_buttons .dp__action_select:hover{background:var(--dp-primary-color);transition:var(--dp-action-row-transtion)}.dp__action_buttons .dp__action_select:disabled{background:var(--dp-primary-disabled-color);cursor:not-allowed}.dp-quarter-picker-wrap{display:flex;flex-direction:column;height:100%;min-width:var(--dp-menu-min-width)}.dp--qr-btn-disabled{cursor:not-allowed;background:var(--dp-disabled-color)}.dp--qr-btn-disabled:hover{background:var(--dp-disabled-color)}.dp--qr-btn{width:100%;padding:var(--dp-common-padding)}.dp--qr-btn:not(.dp--highlighted,.dp--qr-btn-active,.dp--qr-btn-disabled,.dp--qr-btn-between){background:none}.dp--qr-btn:hover:not(.dp--qr-btn-active,.dp--qr-btn-disabled){background:var(--dp-hover-color);color:var(--dp-hover-text-color);transition:var(--dp-common-transition)}.dp--quarter-items{display:flex;flex-direction:column;flex:1;width:100%;height:100%;justify-content:space-evenly}.dp--qr-btn-active{background:var(--dp-primary-color);color:var(--dp-primary-text-color)}.dp--qr-btn-between{background:var(--dp-hover-color);color:var(--dp-hover-text-color)}.dp__btn,.dp--time-overlay-btn,.dp--time-invalid,.dp--qr-btn{border:none;font:inherit;transition:var(--dp-common-transition);line-height:normal}.dp--year-mode-picker{display:flex;width:100%;align-items:center;justify-content:space-between;height:var(--dp-cell-size)}:root{--dp-common-transition: all .1s ease-in;--dp-menu-padding: 6px 8px;--dp-animation-duration: .1s;--dp-menu-appear-transition-timing: cubic-bezier(.4, 0, 1, 1);--dp-transition-timing: ease-out;--dp-action-row-transtion: all .2s ease-in;--dp-font-family: -apple-system, blinkmacsystemfont, "Segoe UI", roboto, oxygen, ubuntu, cantarell, "Open Sans", "Helvetica Neue", sans-serif;--dp-border-radius: 4px;--dp-cell-border-radius: 4px;--dp-transition-length: 22px;--dp-transition-timing-general: .1s;--dp-button-height: 35px;--dp-month-year-row-height: 35px;--dp-month-year-row-button-size: 25px;--dp-button-icon-height: 20px;--dp-calendar-wrap-padding: 0 5px;--dp-cell-size: 35px;--dp-cell-padding: 5px;--dp-common-padding: 10px;--dp-input-icon-padding: 35px;--dp-input-padding: 6px 30px 6px 12px;--dp-menu-min-width: 260px;--dp-action-buttons-padding: 1px 6px;--dp-row-margin: 5px 0;--dp-calendar-header-cell-padding: .5rem;--dp-multi-calendars-spacing: 10px;--dp-overlay-col-padding: 3px;--dp-time-inc-dec-button-size: 32px;--dp-font-size: 1rem;--dp-preview-font-size: .8rem;--dp-time-font-size: 2rem;--dp-action-button-height: 22px;--dp-action-row-padding: 8px;--dp-direction: ltr}.dp__theme_dark{--dp-background-color: #212121;--dp-text-color: #fff;--dp-hover-color: #484848;--dp-hover-text-color: #fff;--dp-hover-icon-color: #959595;--dp-primary-color: #005cb2;--dp-primary-disabled-color: #61a8ea;--dp-primary-text-color: #fff;--dp-secondary-color: #a9a9a9;--dp-border-color: #2d2d2d;--dp-menu-border-color: #2d2d2d;--dp-border-color-hover: #aaaeb7;--dp-border-color-focus: #aaaeb7;--dp-disabled-color: #737373;--dp-disabled-color-text: #d0d0d0;--dp-scroll-bar-background: #212121;--dp-scroll-bar-color: #484848;--dp-success-color: #00701a;--dp-success-color-disabled: #428f59;--dp-icon-color: #959595;--dp-danger-color: #e53935;--dp-marker-color: #e53935;--dp-tooltip-color: #3e3e3e;--dp-highlight-color: rgb(0 92 178 / 20%);--dp-range-between-dates-background-color: var(--dp-hover-color, #484848);--dp-range-between-dates-text-color: var(--dp-hover-text-color, #fff);--dp-range-between-border-color: var(--dp-hover-color, #fff);--dp-loader: 5px solid #005cb2}.dp__theme_light{--dp-background-color: #fff;--dp-text-color: #212121;--dp-hover-color: #f3f3f3;--dp-hover-text-color: #212121;--dp-hover-icon-color: #959595;--dp-primary-color: #1976d2;--dp-primary-disabled-color: #6bacea;--dp-primary-text-color: #fff;--dp-secondary-color: #c0c4cc;--dp-border-color: #ddd;--dp-menu-border-color: #ddd;--dp-border-color-hover: #aaaeb7;--dp-border-color-focus: #aaaeb7;--dp-disabled-color: #f6f6f6;--dp-scroll-bar-background: #f3f3f3;--dp-scroll-bar-color: #959595;--dp-success-color: #76d275;--dp-success-color-disabled: #a3d9b1;--dp-icon-color: #959595;--dp-danger-color: #ff6f60;--dp-marker-color: #ff6f60;--dp-tooltip-color: #fafafa;--dp-disabled-color-text: #8e8e8e;--dp-highlight-color: rgb(25 118 210 / 10%);--dp-range-between-dates-background-color: var(--dp-hover-color, #f3f3f3);--dp-range-between-dates-text-color: var(--dp-hover-text-color, #212121);--dp-range-between-border-color: var(--dp-hover-color, #f3f3f3);--dp-loader: 5px solid #1976d2}.dp__flex{display:flex;align-items:center}.dp__btn{background:none}.dp__main{font-family:var(--dp-font-family);user-select:none;box-sizing:border-box;position:relative;width:100%}.dp__main *{direction:var(--dp-direction, ltr)}.dp__pointer{cursor:pointer}.dp__icon{stroke:currentcolor;fill:currentcolor}.dp__button{width:100%;text-align:center;color:var(--dp-icon-color);cursor:pointer;display:flex;align-items:center;place-content:center center;padding:var(--dp-common-padding);box-sizing:border-box;height:var(--dp-button-height)}.dp__button.dp__overlay_action{position:absolute;bottom:0}.dp__button:hover{background:var(--dp-hover-color);color:var(--dp-hover-icon-color)}.dp__button svg{height:var(--dp-button-icon-height);width:auto}.dp__button_bottom{border-bottom-left-radius:var(--dp-border-radius);border-bottom-right-radius:var(--dp-border-radius)}.dp__flex_display{display:flex}.dp__flex_display_with_input{flex-direction:column;align-items:flex-start}.dp__relative{position:relative}.calendar-next-enter-active,.calendar-next-leave-active,.calendar-prev-enter-active,.calendar-prev-leave-active{transition:all var(--dp-transition-timing-general) ease-out}.calendar-next-enter-from{opacity:0;transform:translate(var(--dp-transition-length))}.calendar-next-leave-to,.calendar-prev-enter-from{opacity:0;transform:translate(calc(var(--dp-transition-length) * -1))}.calendar-prev-leave-to{opacity:0;transform:translate(var(--dp-transition-length))}.dp-menu-appear-bottom-enter-active,.dp-menu-appear-bottom-leave-active,.dp-menu-appear-top-enter-active,.dp-menu-appear-top-leave-active,.dp-slide-up-enter-active,.dp-slide-up-leave-active,.dp-slide-down-enter-active,.dp-slide-down-leave-active{transition:all var(--dp-animation-duration) var(--dp-transition-timing)}.dp-menu-appear-top-enter-from,.dp-menu-appear-top-leave-to,.dp-slide-down-leave-to,.dp-slide-up-enter-from{opacity:0;transform:translateY(var(--dp-transition-length))}.dp-menu-appear-bottom-enter-from,.dp-menu-appear-bottom-leave-to,.dp-slide-down-enter-from,.dp-slide-up-leave-to{opacity:0;transform:translateY(calc(var(--dp-transition-length) * -1))}.dp--arrow-btn-nav{transition:var(--dp-common-transition)}.dp--highlighted{background-color:var(--dp-highlight-color)}.dp--hidden-el{visibility:hidden}@media screen and (max-width: 768px){.navbar-container[data-v-6697a8cc]{position:absolute;z-index:1000;animation-duration:.4s;animation-fill-mode:both;display:none;animation-timing-function:cubic-bezier(.82,.58,.17,.9)}.navbar-container.active[data-v-6697a8cc]{animation-direction:normal;display:block!important;animation-name:zoomInFade-6697a8cc}}.navbar-container[data-v-6697a8cc]{height:100vh}@supports (height: 100dvh){@media screen and (max-width: 768px){.navbar-container[data-v-6697a8cc]{height:calc(100dvh - 50px)}}}@keyframes zoomInFade-6697a8cc{0%{opacity:0;transform:translateY(60px);filter:blur(3px)}to{opacity:1;transform:translateY(0);filter:blur(0px)}}.message[data-v-f50b8f0c]{width:100%}@media screen and (min-width: 576px){.message[data-v-f50b8f0c]{width:400px}}.messageCentre[data-v-5627c522]{top:1rem;right:1rem;width:calc(100% - 2rem)}main[data-v-5627c522]{height:100vh}@supports (height: 100dvh){@media screen and (max-width: 768px){main[data-v-5627c522]{height:calc(100dvh - 50px)}}}.dot.inactive[data-v-ed7817c7]{background-color:#dc3545;box-shadow:0 0 0 .2rem #dc354545}.spin[data-v-ed7817c7]{animation:spin-ed7817c7 1s infinite cubic-bezier(.82,.58,.17,.9)}@keyframes spin-ed7817c7{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media screen and (max-width: 768px){.remoteServerContainer[data-v-ed7817c7]{flex-direction:column}.remoteServerContainer .button-group button[data-v-ed7817c7]{width:100%}}@media screen and (max-width: 768px){.login-box[data-v-95530d22]{width:100%!important}.login-box div[data-v-95530d22]{width:auto!important}}.fade-enter-active[data-v-a85a04a5]{transition-delay:var(--1d5189b2)!important}.configurationListTitle{.btn[data-v-9f9a5b86]{border-radius:50%!important}}@media screen and (max-width: 768px){.configurationListTitle{&[data-v-9f9a5b86]{flex-direction:column;gap:.5rem}h3 span[data-v-9f9a5b86]{margin-left:auto!important}.btn[data-v-9f9a5b86]{width:100%}}}@media screen and (max-width: 992px){.apiKey-card-body{&[data-v-a76253c8]{flex-direction:column!important;align-items:start!important}div.ms-auto[data-v-a76253c8]{margin-left:0!important}div[data-v-a76253c8]{width:100%;align-items:start!important}small[data-v-a76253c8]{margin-right:auto}}}.apiKey-move[data-v-167c06a6],.apiKey-enter-active[data-v-167c06a6],.apiKey-leave-active[data-v-167c06a6]{transition:all .5s ease}.apiKey-enter-from[data-v-167c06a6],.apiKey-leave-to[data-v-167c06a6]{opacity:0;transform:translateY(30px) scale(.9)}.apiKey-leave-active[data-v-167c06a6]{position:absolute;width:100%}.dropdown-menu[data-v-a8b77ad0]{width:100%}.animation__fadeInDropdown[data-v-aaa147c4]{animation-name:fadeInDropdown-aaa147c4;animation-duration:.2s;animation-timing-function:cubic-bezier(.82,.58,.17,.9)}@keyframes fadeInDropdown-aaa147c4{0%{opacity:0;filter:blur(3px);transform:translateY(-60px)}to{opacity:1;filter:blur(0px);transform:translateY(-40px)}}.displayModal .dashboardModal[data-v-aaa147c4]{width:400px!important}@media screen and (max-width: 768px){.peerSearchContainer[data-v-aaa147c4]{flex-direction:column}.peerSettingContainer .dashboardModal[data-v-aaa147c4]{width:100%!important}}/*! +*/@font-face{font-display:block;font-family:bootstrap-icons;src:url(/static/app/dist/assets/bootstrap-icons.woff2?dd67030699838ea613ee6dbda90effa6) format("woff2"),url(/static/app/dist/assets/bootstrap-icons.woff?dd67030699838ea613ee6dbda90effa6) 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:"賈"}:root{--animate-duration:1s;--animate-delay:1s;--animate-repeat:1}.animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-duration:var(--animate-duration);animation-duration:var(--animate-duration);-webkit-animation-fill-mode:both;animation-fill-mode:both}.animated.infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.animated.repeat-1{-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-iteration-count:var(--animate-repeat);animation-iteration-count:var(--animate-repeat)}.animated.repeat-2{-webkit-animation-iteration-count:2;animation-iteration-count:2;-webkit-animation-iteration-count:calc(var(--animate-repeat)*2);animation-iteration-count:calc(var(--animate-repeat)*2)}.animated.repeat-3{-webkit-animation-iteration-count:3;animation-iteration-count:3;-webkit-animation-iteration-count:calc(var(--animate-repeat)*3);animation-iteration-count:calc(var(--animate-repeat)*3)}.animated.delay-1s{-webkit-animation-delay:1s;animation-delay:1s;-webkit-animation-delay:var(--animate-delay);animation-delay:var(--animate-delay)}.animated.delay-2s{-webkit-animation-delay:2s;animation-delay:2s;-webkit-animation-delay:calc(var(--animate-delay)*2);animation-delay:calc(var(--animate-delay)*2)}.animated.delay-3s{-webkit-animation-delay:3s;animation-delay:3s;-webkit-animation-delay:calc(var(--animate-delay)*3);animation-delay:calc(var(--animate-delay)*3)}.animated.delay-4s{-webkit-animation-delay:4s;animation-delay:4s;-webkit-animation-delay:calc(var(--animate-delay)*4);animation-delay:calc(var(--animate-delay)*4)}.animated.delay-5s{-webkit-animation-delay:5s;animation-delay:5s;-webkit-animation-delay:calc(var(--animate-delay)*5);animation-delay:calc(var(--animate-delay)*5)}.animated.faster{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-duration:calc(var(--animate-duration)/2);animation-duration:calc(var(--animate-duration)/2)}.animated.fast{-webkit-animation-duration:.8s;animation-duration:.8s;-webkit-animation-duration:calc(var(--animate-duration)*.8);animation-duration:calc(var(--animate-duration)*.8)}.animated.slow{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration)*2);animation-duration:calc(var(--animate-duration)*2)}.animated.slower{-webkit-animation-duration:3s;animation-duration:3s;-webkit-animation-duration:calc(var(--animate-duration)*3);animation-duration:calc(var(--animate-duration)*3)}@media (prefers-reduced-motion:reduce),print{.animated{-webkit-animation-duration:1ms!important;animation-duration:1ms!important;-webkit-transition-duration:1ms!important;transition-duration:1ms!important;-webkit-animation-iteration-count:1!important;animation-iteration-count:1!important}.animated[class*=Out]{opacity:0}}@-webkit-keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0) scaleY(1.1);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0) scaleY(1.05);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-4px,0) scaleY(1.02);transform:translate3d(0,-4px,0) scaleY(1.02)}}@keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0) scaleY(1.1);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0) scaleY(1.05);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-4px,0) scaleY(1.02);transform:translate3d(0,-4px,0) scaleY(1.02)}}.bounce{-webkit-animation-name:bounce;animation-name:bounce;-webkit-transform-origin:center bottom;transform-origin:center bottom}.flash{-webkit-animation-name:flash;animation-name:flash}@-webkit-keyframes pulse{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes pulse{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.pulse{-webkit-animation-name:pulse;animation-name:pulse;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes rubberBand{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes rubberBand{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.rubberBand{-webkit-animation-name:rubberBand;animation-name:rubberBand}@-webkit-keyframes shakeX{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}@keyframes shakeX{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}.shakeX{-webkit-animation-name:shakeX;animation-name:shakeX}@-webkit-keyframes shakeY{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}}@keyframes shakeY{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}}.shakeY{-webkit-animation-name:shakeY;animation-name:shakeY}.headShake{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-name:headShake;animation-name:headShake}@-webkit-keyframes swing{20%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}40%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}60%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}80%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(0deg);transform:rotate(0)}}@keyframes swing{20%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}40%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}60%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}80%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(0deg);transform:rotate(0)}}.swing{-webkit-transform-origin:top center;transform-origin:top center;-webkit-animation-name:swing;animation-name:swing}@-webkit-keyframes tada{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate(-3deg);transform:scale3d(.9,.9,.9) rotate(-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(3deg);transform:scale3d(1.1,1.1,1.1) rotate(3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(-3deg);transform:scale3d(1.1,1.1,1.1) rotate(-3deg)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes tada{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate(-3deg);transform:scale3d(.9,.9,.9) rotate(-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(3deg);transform:scale3d(1.1,1.1,1.1) rotate(3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(-3deg);transform:scale3d(1.1,1.1,1.1) rotate(-3deg)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.tada{-webkit-animation-name:tada;animation-name:tada}@-webkit-keyframes wobble{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate(-5deg);transform:translate3d(-25%,0,0) rotate(-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate(3deg);transform:translate3d(20%,0,0) rotate(3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate(-3deg);transform:translate3d(-15%,0,0) rotate(-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate(2deg);transform:translate3d(10%,0,0) rotate(2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate(-1deg);transform:translate3d(-5%,0,0) rotate(-1deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes wobble{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate(-5deg);transform:translate3d(-25%,0,0) rotate(-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate(3deg);transform:translate3d(20%,0,0) rotate(3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate(-3deg);transform:translate3d(-15%,0,0) rotate(-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate(2deg);transform:translate3d(10%,0,0) rotate(2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate(-1deg);transform:translate3d(-5%,0,0) rotate(-1deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.wobble{-webkit-animation-name:wobble;animation-name:wobble}@-webkit-keyframes jello{0%,11.1%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skew(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skew(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skew(-.1953125deg) skewY(-.1953125deg)}}@keyframes jello{0%,11.1%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skew(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skew(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skew(-.1953125deg) skewY(-.1953125deg)}}.jello{-webkit-animation-name:jello;animation-name:jello;-webkit-transform-origin:center;transform-origin:center}.heartBeat{-webkit-animation-name:heartBeat;animation-name:heartBeat;-webkit-animation-duration:1.3s;animation-duration:1.3s;-webkit-animation-duration:calc(var(--animate-duration)*1.3);animation-duration:calc(var(--animate-duration)*1.3);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes backInDown{0%{-webkit-transform:translateY(-1200px) scale(.7);transform:translateY(-1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInDown{0%{-webkit-transform:translateY(-1200px) scale(.7);transform:translateY(-1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.backInDown{-webkit-animation-name:backInDown;animation-name:backInDown}@-webkit-keyframes backInLeft{0%{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInLeft{0%{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.backInLeft{-webkit-animation-name:backInLeft;animation-name:backInLeft}@-webkit-keyframes backInRight{0%{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInRight{0%{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.backInRight{-webkit-animation-name:backInRight;animation-name:backInRight}@-webkit-keyframes backInUp{0%{-webkit-transform:translateY(1200px) scale(.7);transform:translateY(1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInUp{0%{-webkit-transform:translateY(1200px) scale(.7);transform:translateY(1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.backInUp{-webkit-animation-name:backInUp;animation-name:backInUp}@-webkit-keyframes backOutDown{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(700px) scale(.7);transform:translateY(700px) scale(.7);opacity:.7}}@keyframes backOutDown{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(700px) scale(.7);transform:translateY(700px) scale(.7);opacity:.7}}.backOutDown{-webkit-animation-name:backOutDown;animation-name:backOutDown}@-webkit-keyframes backOutLeft{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}}@keyframes backOutLeft{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}}.backOutLeft{-webkit-animation-name:backOutLeft;animation-name:backOutLeft}@-webkit-keyframes backOutRight{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}}@keyframes backOutRight{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}}.backOutRight{-webkit-animation-name:backOutRight;animation-name:backOutRight}@-webkit-keyframes backOutUp{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(-700px) scale(.7);transform:translateY(-700px) scale(.7);opacity:.7}}@keyframes backOutUp{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(-700px) scale(.7);transform:translateY(-700px) scale(.7);opacity:.7}}.backOutUp{-webkit-animation-name:backOutUp;animation-name:backOutUp}@-webkit-keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}.bounceIn{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-animation-name:bounceIn;animation-name:bounceIn}@-webkit-keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0) scaleY(3);transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0) scaleY(.9);transform:translate3d(0,25px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-10px,0) scaleY(.95);transform:translate3d(0,-10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,5px,0) scaleY(.985);transform:translate3d(0,5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0) scaleY(3);transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0) scaleY(.9);transform:translate3d(0,25px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-10px,0) scaleY(.95);transform:translate3d(0,-10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,5px,0) scaleY(.985);transform:translate3d(0,5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInDown{-webkit-animation-name:bounceInDown;animation-name:bounceInDown}@-webkit-keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0) scaleX(3);transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0) scaleX(1);transform:translate3d(25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-10px,0,0) scaleX(.98);transform:translate3d(-10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(5px,0,0) scaleX(.995);transform:translate3d(5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0) scaleX(3);transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0) scaleX(1);transform:translate3d(25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-10px,0,0) scaleX(.98);transform:translate3d(-10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(5px,0,0) scaleX(.995);transform:translate3d(5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInLeft{-webkit-animation-name:bounceInLeft;animation-name:bounceInLeft}@-webkit-keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0) scaleX(3);transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0) scaleX(1);transform:translate3d(-25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(10px,0,0) scaleX(.98);transform:translate3d(10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-5px,0,0) scaleX(.995);transform:translate3d(-5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0) scaleX(3);transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0) scaleX(1);transform:translate3d(-25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(10px,0,0) scaleX(.98);transform:translate3d(10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-5px,0,0) scaleX(.995);transform:translate3d(-5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInRight{-webkit-animation-name:bounceInRight;animation-name:bounceInRight}@-webkit-keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0) scaleY(5);transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,10px,0) scaleY(.95);transform:translate3d(0,10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-5px,0) scaleY(.985);transform:translate3d(0,-5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0) scaleY(5);transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,10px,0) scaleY(.95);transform:translate3d(0,10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-5px,0) scaleY(.985);transform:translate3d(0,-5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInUp{-webkit-animation-name:bounceInUp;animation-name:bounceInUp}.bounceOut{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-animation-name:bounceOut;animation-name:bounceOut}.bounceOutDown{-webkit-animation-name:bounceOutDown;animation-name:bounceOutDown}.bounceOutLeft{-webkit-animation-name:bounceOutLeft;animation-name:bounceOutLeft}.bounceOutRight{-webkit-animation-name:bounceOutRight;animation-name:bounceOutRight}.bounceOutUp{-webkit-animation-name:bounceOutUp;animation-name:bounceOutUp}.fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn}@-webkit-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown}@-webkit-keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInDownBig{-webkit-animation-name:fadeInDownBig;animation-name:fadeInDownBig}@-webkit-keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInLeft{-webkit-animation-name:fadeInLeft;animation-name:fadeInLeft}@-webkit-keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInLeftBig{-webkit-animation-name:fadeInLeftBig;animation-name:fadeInLeftBig}@-webkit-keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInRight{-webkit-animation-name:fadeInRight;animation-name:fadeInRight}@-webkit-keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInRightBig{-webkit-animation-name:fadeInRightBig;animation-name:fadeInRightBig}@-webkit-keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInUp{-webkit-animation-name:fadeInUp;animation-name:fadeInUp}@-webkit-keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInUpBig{-webkit-animation-name:fadeInUpBig;animation-name:fadeInUpBig}@-webkit-keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInTopLeft{-webkit-animation-name:fadeInTopLeft;animation-name:fadeInTopLeft}@-webkit-keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInTopRight{-webkit-animation-name:fadeInTopRight;animation-name:fadeInTopRight}@-webkit-keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInBottomLeft{-webkit-animation-name:fadeInBottomLeft;animation-name:fadeInBottomLeft}@-webkit-keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInBottomRight{-webkit-animation-name:fadeInBottomRight;animation-name:fadeInBottomRight}.fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}.fadeOutDown{-webkit-animation-name:fadeOutDown;animation-name:fadeOutDown}.fadeOutDownBig{-webkit-animation-name:fadeOutDownBig;animation-name:fadeOutDownBig}.fadeOutLeft{-webkit-animation-name:fadeOutLeft;animation-name:fadeOutLeft}.fadeOutLeftBig{-webkit-animation-name:fadeOutLeftBig;animation-name:fadeOutLeftBig}.fadeOutRight{-webkit-animation-name:fadeOutRight;animation-name:fadeOutRight}.fadeOutRightBig{-webkit-animation-name:fadeOutRightBig;animation-name:fadeOutRightBig}.fadeOutUp{-webkit-animation-name:fadeOutUp;animation-name:fadeOutUp}.fadeOutUpBig{-webkit-animation-name:fadeOutUpBig;animation-name:fadeOutUpBig}@-webkit-keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}@keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}.fadeOutTopLeft{-webkit-animation-name:fadeOutTopLeft;animation-name:fadeOutTopLeft}@-webkit-keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}@keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}.fadeOutTopRight{-webkit-animation-name:fadeOutTopRight;animation-name:fadeOutTopRight}@-webkit-keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}@keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}.fadeOutBottomRight{-webkit-animation-name:fadeOutBottomRight;animation-name:fadeOutBottomRight}@-webkit-keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}@keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}.fadeOutBottomLeft{-webkit-animation-name:fadeOutBottomLeft;animation-name:fadeOutBottomLeft}@-webkit-keyframes flip{0%{-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0deg);transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0deg);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}@keyframes flip{0%{-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0deg);transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0deg);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}.animated.flip{-webkit-backface-visibility:visible;backface-visibility:visible;-webkit-animation-name:flip;animation-name:flip}@-webkit-keyframes flipInX{0%{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateX(10deg);transform:perspective(400px) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateX(-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInX{0%{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateX(10deg);transform:perspective(400px) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateX(-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.flipInX{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInX;animation-name:flipInX}@-webkit-keyframes flipInY{0%{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateY(-20deg);transform:perspective(400px) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateY(10deg);transform:perspective(400px) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateY(-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInY{0%{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateY(-20deg);transform:perspective(400px) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateY(10deg);transform:perspective(400px) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateY(-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.flipInY{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInY;animation-name:flipInY}@-webkit-keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);opacity:0}}@keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);opacity:0}}.flipOutX{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-animation-name:flipOutX;animation-name:flipOutX;-webkit-backface-visibility:visible!important;backface-visibility:visible!important}@-webkit-keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateY(-15deg);transform:perspective(400px) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);opacity:0}}@keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateY(-15deg);transform:perspective(400px) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);opacity:0}}.flipOutY{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipOutY;animation-name:flipOutY}@-webkit-keyframes lightSpeedInRight{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skew(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skew(-5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes lightSpeedInRight{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skew(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skew(-5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.lightSpeedInRight{-webkit-animation-name:lightSpeedInRight;animation-name:lightSpeedInRight;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedInLeft{0%{-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{-webkit-transform:skewX(-20deg);transform:skew(-20deg);opacity:1}80%{-webkit-transform:skewX(5deg);transform:skew(5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes lightSpeedInLeft{0%{-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{-webkit-transform:skewX(-20deg);transform:skew(-20deg);opacity:1}80%{-webkit-transform:skewX(5deg);transform:skew(5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.lightSpeedInLeft{-webkit-animation-name:lightSpeedInLeft;animation-name:lightSpeedInLeft;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}.lightSpeedOutRight{-webkit-animation-name:lightSpeedOutRight;animation-name:lightSpeedOutRight;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}.lightSpeedOutLeft{-webkit-animation-name:lightSpeedOutLeft;animation-name:lightSpeedOutLeft;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes rotateIn{0%{-webkit-transform:rotate(-200deg);transform:rotate(-200deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateIn{0%{-webkit-transform:rotate(-200deg);transform:rotate(-200deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.rotateIn{-webkit-animation-name:rotateIn;animation-name:rotateIn;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateInDownLeft{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateInDownLeft{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.rotateInDownLeft{-webkit-animation-name:rotateInDownLeft;animation-name:rotateInDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInDownRight{0%{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateInDownRight{0%{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.rotateInDownRight{-webkit-animation-name:rotateInDownRight;animation-name:rotateInDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateInUpLeft{0%{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateInUpLeft{0%{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.rotateInUpLeft{-webkit-animation-name:rotateInUpLeft;animation-name:rotateInUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInUpRight{0%{-webkit-transform:rotate(-90deg);transform:rotate(-90deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateInUpRight{0%{-webkit-transform:rotate(-90deg);transform:rotate(-90deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.rotateInUpRight{-webkit-animation-name:rotateInUpRight;animation-name:rotateInUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOut{0%{opacity:1}to{-webkit-transform:rotate(200deg);transform:rotate(200deg);opacity:0}}@keyframes rotateOut{0%{opacity:1}to{-webkit-transform:rotate(200deg);transform:rotate(200deg);opacity:0}}.rotateOut{-webkit-animation-name:rotateOut;animation-name:rotateOut;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateOutDownLeft{0%{opacity:1}to{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}}@keyframes rotateOutDownLeft{0%{opacity:1}to{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}}.rotateOutDownLeft{-webkit-animation-name:rotateOutDownLeft;animation-name:rotateOutDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutDownRight{0%{opacity:1}to{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}@keyframes rotateOutDownRight{0%{opacity:1}to{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}.rotateOutDownRight{-webkit-animation-name:rotateOutDownRight;animation-name:rotateOutDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOutUpLeft{0%{opacity:1}to{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}@keyframes rotateOutUpLeft{0%{opacity:1}to{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}.rotateOutUpLeft{-webkit-animation-name:rotateOutUpLeft;animation-name:rotateOutUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutUpRight{0%{opacity:1}to{-webkit-transform:rotate(90deg);transform:rotate(90deg);opacity:0}}@keyframes rotateOutUpRight{0%{opacity:1}to{-webkit-transform:rotate(90deg);transform:rotate(90deg);opacity:0}}.rotateOutUpRight{-webkit-animation-name:rotateOutUpRight;animation-name:rotateOutUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate(80deg);transform:rotate(80deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate(60deg);transform:rotate(60deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}@keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate(80deg);transform:rotate(80deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate(60deg);transform:rotate(60deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}.hinge{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration)*2);animation-duration:calc(var(--animate-duration)*2);-webkit-animation-name:hinge;animation-name:hinge;-webkit-transform-origin:top left;transform-origin:top left}.jackInTheBox{-webkit-animation-name:jackInTheBox;animation-name:jackInTheBox}@-webkit-keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate(-120deg);transform:translate3d(-100%,0,0) rotate(-120deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate(-120deg);transform:translate3d(-100%,0,0) rotate(-120deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.rollIn{-webkit-animation-name:rollIn;animation-name:rollIn}@-webkit-keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate(120deg);transform:translate3d(100%,0,0) rotate(120deg)}}@keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate(120deg);transform:translate3d(100%,0,0) rotate(120deg)}}.rollOut{-webkit-animation-name:rollOut;animation-name:rollOut}.zoomIn{-webkit-animation-name:zoomIn;animation-name:zoomIn}.zoomInDown{-webkit-animation-name:zoomInDown;animation-name:zoomInDown}.zoomInLeft{-webkit-animation-name:zoomInLeft;animation-name:zoomInLeft}.zoomInRight{-webkit-animation-name:zoomInRight;animation-name:zoomInRight}.zoomInUp{-webkit-animation-name:zoomInUp;animation-name:zoomInUp}.zoomOut{-webkit-animation-name:zoomOut;animation-name:zoomOut}.zoomOutDown{-webkit-animation-name:zoomOutDown;animation-name:zoomOutDown;-webkit-transform-origin:center bottom;transform-origin:center bottom}.zoomOutLeft{-webkit-animation-name:zoomOutLeft;animation-name:zoomOutLeft;-webkit-transform-origin:left center;transform-origin:left center}.zoomOutRight{-webkit-animation-name:zoomOutRight;animation-name:zoomOutRight;-webkit-transform-origin:right center;transform-origin:right center}.zoomOutUp{-webkit-animation-name:zoomOutUp;animation-name:zoomOutUp;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInDown{-webkit-animation-name:slideInDown;animation-name:slideInDown}@-webkit-keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInLeft{-webkit-animation-name:slideInLeft;animation-name:slideInLeft}@-webkit-keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInRight{-webkit-animation-name:slideInRight;animation-name:slideInRight}@-webkit-keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}@-webkit-keyframes slideOutDown{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes slideOutDown{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.slideOutDown{-webkit-animation-name:slideOutDown;animation-name:slideOutDown}@-webkit-keyframes slideOutLeft{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes slideOutLeft{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.slideOutLeft{-webkit-animation-name:slideOutLeft;animation-name:slideOutLeft}@-webkit-keyframes slideOutRight{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes slideOutRight{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.slideOutRight{-webkit-animation-name:slideOutRight;animation-name:slideOutRight}@-webkit-keyframes slideOutUp{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes slideOutUp{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.slideOutUp{-webkit-animation-name:slideOutUp;animation-name:slideOutUp}.dp__input_wrap{position:relative;width:100%;box-sizing:unset}.dp__input_wrap:focus{border-color:var(--dp-border-color-hover);outline:none}.dp__input_valid{box-shadow:0 0 var(--dp-border-radius) var(--dp-success-color);border-color:var(--dp-success-color)}.dp__input_valid:hover{border-color:var(--dp-success-color)}.dp__input_invalid{box-shadow:0 0 var(--dp-border-radius) var(--dp-danger-color);border-color:var(--dp-danger-color)}.dp__input_invalid:hover{border-color:var(--dp-danger-color)}.dp__input{background-color:var(--dp-background-color);border-radius:var(--dp-border-radius);font-family:var(--dp-font-family);border:1px solid var(--dp-border-color);outline:none;transition:border-color .2s cubic-bezier(.645,.045,.355,1);width:100%;font-size:var(--dp-font-size);line-height:calc(var(--dp-font-size)*1.5);padding:var(--dp-input-padding);color:var(--dp-text-color);box-sizing:border-box}.dp__input::placeholder{opacity:.7}.dp__input:hover:not(.dp__input_focus){border-color:var(--dp-border-color-hover)}.dp__input_reg{caret-color:#0000}.dp__input_focus{border-color:var(--dp-border-color-focus)}.dp__disabled{background:var(--dp-disabled-color)}.dp__disabled::placeholder{color:var(--dp-disabled-color-text)}.dp__input_icons{display:inline-block;width:var(--dp-font-size);height:var(--dp-font-size);stroke-width:0;font-size:var(--dp-font-size);line-height:calc(var(--dp-font-size)*1.5);padding:6px 12px;color:var(--dp-icon-color);box-sizing:content-box}.dp__input_icon{cursor:pointer;position:absolute;top:50%;inset-inline-start:0;transform:translateY(-50%);color:var(--dp-icon-color)}.dp--clear-btn{position:absolute;top:50%;inset-inline-end:0;transform:translateY(-50%);cursor:pointer;color:var(--dp-icon-color);background:#0000;border:none;display:inline-flex;align-items:center;padding:0;margin:0}.dp__input_icon_pad{padding-inline-start:var(--dp-input-icon-padding)}.dp__menu{background:var(--dp-background-color);border-radius:var(--dp-border-radius);min-width:var(--dp-menu-min-width);font-family:var(--dp-font-family);font-size:var(--dp-font-size);user-select:none;border:1px solid var(--dp-menu-border-color);box-sizing:border-box}.dp__menu:after{box-sizing:border-box}.dp__menu:before{box-sizing:border-box}.dp__menu:focus{border:1px solid var(--dp-menu-border-color);outline:none}.dp--menu-wrapper{position:absolute;z-index:99999}.dp__menu_inner{padding:var(--dp-menu-padding)}.dp--menu--inner-stretched{padding:6px 0}.dp__menu_index{z-index:99999}.dp-menu-loading,.dp__menu_readonly,.dp__menu_disabled{position:absolute;inset:0;z-index:999999}.dp__menu_disabled{background:#ffffff80;cursor:not-allowed}.dp__menu_readonly{background:#0000;cursor:default}.dp-menu-loading{background:#ffffff80;cursor:default}.dp--menu-load-container{display:flex;height:100%;width:100%;justify-content:center;align-items:center}.dp--menu-loader{width:48px;height:48px;border:var(--dp-loader);border-bottom-color:#0000;border-radius:50%;display:inline-block;box-sizing:border-box;animation:dp-load-rotation 1s linear infinite;position:absolute}@keyframes dp-load-rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.dp__arrow_top{left:var(--dp-arrow-left);top:0;height:12px;width:12px;background-color:var(--dp-background-color);position:absolute;border-inline-end:1px solid var(--dp-menu-border-color);border-top:1px solid var(--dp-menu-border-color);transform:translate(-50%,-50%) rotate(-45deg)}.dp__arrow_bottom{left:var(--dp-arrow-left);bottom:0;height:12px;width:12px;background-color:var(--dp-background-color);position:absolute;border-inline-end:1px solid var(--dp-menu-border-color);border-bottom:1px solid var(--dp-menu-border-color);transform:translate(-50%,50%) rotate(45deg)}.dp__action_extra{text-align:center;padding:2px 0}.dp--preset-dates{padding:5px;border-inline-end:1px solid var(--dp-border-color)}@media only screen and (width <= 600px){.dp--preset-dates{display:flex;align-self:center;border:none;overflow-x:auto;max-width:calc(var(--dp-menu-width) - var(--dp-action-row-padding)*2)}}.dp--preset-dates-collapsed{display:flex;align-self:center;border:none;overflow-x:auto;max-width:calc(var(--dp-menu-width) - var(--dp-action-row-padding)*2)}.dp__sidebar_left{padding:5px;border-inline-end:1px solid var(--dp-border-color)}.dp__sidebar_right{padding:5px;margin-inline-end:1px solid var(--dp-border-color)}.dp--preset-range{display:block;width:100%;padding:5px;text-align:left;white-space:nowrap;color:var(--dp-text-color);border-radius:var(--dp-border-radius);transition:var(--dp-common-transition)}.dp--preset-range:hover{background-color:var(--dp-hover-color);color:var(--dp-hover-text-color);cursor:pointer}@media only screen and (width <= 600px){.dp--preset-range{border:1px solid var(--dp-border-color);margin:0 3px}.dp--preset-range:first-child{margin-left:0}.dp--preset-range:last-child{margin-right:0}}.dp--preset-range-collapsed{border:1px solid var(--dp-border-color);margin:0 3px}.dp--preset-range-collapsed:first-child{margin-left:0}.dp--preset-range-collapsed:last-child{margin-right:0}.dp__menu_content_wrapper{display:flex}@media only screen and (width <= 600px){.dp__menu_content_wrapper{flex-direction:column-reverse}}.dp--menu-content-wrapper-collapsed{flex-direction:column-reverse}.dp__calendar_header{position:relative;display:flex;justify-content:center;align-items:center;color:var(--dp-text-color);white-space:nowrap;font-weight:700}.dp__calendar_header_item{text-align:center;flex-grow:1;height:var(--dp-cell-size);padding:var(--dp-cell-padding);width:var(--dp-cell-size);box-sizing:border-box}.dp__calendar_row{display:flex;justify-content:center;align-items:center;margin:var(--dp-row-margin)}.dp__calendar_item{text-align:center;flex-grow:1;box-sizing:border-box;color:var(--dp-text-color)}.dp__calendar{position:relative}.dp__calendar_header_cell{border-bottom:thin solid var(--dp-border-color);padding:var(--dp-calendar-header-cell-padding)}.dp__cell_inner{display:flex;align-items:center;text-align:center;justify-content:center;border-radius:var(--dp-cell-border-radius);height:var(--dp-cell-size);padding:var(--dp-cell-padding);width:var(--dp-cell-size);border:1px solid rgba(0,0,0,0);box-sizing:border-box;position:relative}.dp__cell_inner:hover{transition:all .2s}.dp__cell_auto_range_start,.dp__date_hover_start:hover,.dp__range_start{border-end-end-radius:0;border-start-end-radius:0}.dp__cell_auto_range_end,.dp__date_hover_end:hover,.dp__range_end{border-end-start-radius:0;border-start-start-radius:0}.dp__range_end,.dp__range_start,.dp__active_date{background:var(--dp-primary-color);color:var(--dp-primary-text-color)}.dp__date_hover_end:hover,.dp__date_hover_start:hover,.dp__date_hover:hover{background:var(--dp-hover-color);color:var(--dp-hover-text-color)}.dp__cell_offset{color:var(--dp-secondary-color)}.dp__cell_disabled{color:var(--dp-secondary-color);cursor:not-allowed}.dp__range_between{background:var(--dp-range-between-dates-background-color);color:var(--dp-range-between-dates-text-color);border-radius:0;border:1px solid var(--dp-range-between-border-color)}.dp__range_between_week{background:var(--dp-primary-color);color:var(--dp-primary-text-color);border-radius:0;border-top:1px solid var(--dp-primary-color);border-bottom:1px solid var(--dp-primary-color)}.dp__today{border:1px solid var(--dp-primary-color)}.dp__week_num{color:var(--dp-secondary-color);text-align:center}.dp__cell_auto_range{border-radius:0;border-top:1px dashed var(--dp-primary-color);border-bottom:1px dashed var(--dp-primary-color)}.dp__cell_auto_range_start{border-start-start-radius:var(--dp-cell-border-radius);border-end-start-radius:var(--dp-cell-border-radius);border-inline-start:1px dashed var(--dp-primary-color);border-top:1px dashed var(--dp-primary-color);border-bottom:1px dashed var(--dp-primary-color)}.dp__cell_auto_range_end{border-start-end-radius:var(--dp-cell-border-radius);border-end-end-radius:var(--dp-cell-border-radius);border-top:1px dashed var(--dp-primary-color);border-bottom:1px dashed var(--dp-primary-color);border-inline-end:1px dashed var(--dp-primary-color)}.dp__calendar_header_separator{width:100%;height:1px;background:var(--dp-border-color)}.dp__calendar_next{margin-inline-start:var(--dp-multi-calendars-spacing)}.dp__marker_line,.dp__marker_dot{height:5px;background-color:var(--dp-marker-color);position:absolute;bottom:0}.dp__marker_dot{width:5px;border-radius:50%;left:50%;transform:translate(-50%)}.dp__marker_line{width:100%;left:0}.dp__marker_tooltip{position:absolute;border-radius:var(--dp-border-radius);background-color:var(--dp-tooltip-color);padding:5px;border:1px solid var(--dp-border-color);z-index:99999;box-sizing:border-box;cursor:default}.dp__tooltip_content{white-space:nowrap}.dp__tooltip_text{display:flex;align-items:center;flex-flow:row nowrap;color:var(--dp-text-color)}.dp__tooltip_mark{height:5px;width:5px;border-radius:50%;background-color:var(--dp-text-color);color:var(--dp-text-color);margin-inline-end:5px}.dp__arrow_bottom_tp{bottom:0;height:8px;width:8px;background-color:var(--dp-tooltip-color);position:absolute;border-inline-end:1px solid var(--dp-border-color);border-bottom:1px solid var(--dp-border-color);transform:translate(-50%,50%) rotate(45deg)}.dp__instance_calendar{position:relative;width:100%}@media only screen and (width <= 600px){.dp__flex_display{flex-direction:column}}.dp--flex-display-collapsed{flex-direction:column}.dp__cell_highlight{background-color:var(--dp-highlight-color)}.dp__month_year_row{display:flex;align-items:center;height:var(--dp-month-year-row-height);color:var(--dp-text-color);box-sizing:border-box}.dp__inner_nav{display:flex;align-items:center;justify-content:center;cursor:pointer;height:var(--dp-month-year-row-button-size);width:var(--dp-month-year-row-button-size);color:var(--dp-icon-color);text-align:center;border-radius:50%}.dp__inner_nav svg{height:var(--dp-button-icon-height);width:var(--dp-button-icon-height)}.dp__inner_nav:hover{background:var(--dp-hover-color);color:var(--dp-hover-icon-color)}[dir=rtl] .dp__inner_nav{transform:rotate(180deg)}.dp__inner_nav_disabled:hover,.dp__inner_nav_disabled{background:var(--dp-disabled-color);color:var(--dp-disabled-color-text);cursor:not-allowed}.dp--year-select,.dp__month_year_select{text-align:center;cursor:pointer;height:var(--dp-month-year-row-height);display:flex;align-items:center;justify-content:center;border-radius:var(--dp-border-radius);box-sizing:border-box;color:var(--dp-text-color)}.dp--year-select:hover,.dp__month_year_select:hover{background:var(--dp-hover-color);color:var(--dp-hover-text-color);transition:var(--dp-common-transition)}.dp__month_year_select{width:50%}.dp--year-select{width:100%}.dp__month_year_wrap{display:flex;flex-direction:row;width:100%}.dp__year_disable_select{justify-content:space-around}.dp--header-wrap{display:flex;width:100%;flex-direction:column}.dp__overlay{width:100%;background:var(--dp-background-color);transition:opacity 1s ease-out;z-index:99999;font-family:var(--dp-font-family);color:var(--dp-text-color);box-sizing:border-box}.dp--overlay-absolute{position:absolute;height:100%;top:0;left:0}.dp--overlay-relative{position:relative}.dp__overlay_container::-webkit-scrollbar-track{box-shadow:var(--dp-scroll-bar-background);background-color:var(--dp-scroll-bar-background)}.dp__overlay_container::-webkit-scrollbar{width:5px;background-color:var(--dp-scroll-bar-background)}.dp__overlay_container::-webkit-scrollbar-thumb{background-color:var(--dp-scroll-bar-color);border-radius:10px}.dp__overlay:focus{border:none;outline:none}.dp__container_flex{display:flex}.dp__container_block{display:block}.dp__overlay_container{flex-direction:column;overflow-y:auto;height:var(--dp-overlay-height)}.dp__time_picker_overlay_container{height:100%}.dp__overlay_row{padding:0;box-sizing:border-box;display:flex;margin-inline:auto auto;flex-wrap:wrap;max-width:100%;width:100%;align-items:center}.dp__flex_row{flex:1}.dp__overlay_col{box-sizing:border-box;width:33%;padding:var(--dp-overlay-col-padding);white-space:nowrap}.dp__overlay_cell_pad{padding:var(--dp-common-padding) 0}.dp__overlay_cell_active{cursor:pointer;border-radius:var(--dp-border-radius);text-align:center;background:var(--dp-primary-color);color:var(--dp-primary-text-color)}.dp__overlay_cell{cursor:pointer;border-radius:var(--dp-border-radius);text-align:center}.dp__overlay_cell:hover{background:var(--dp-hover-color);color:var(--dp-hover-text-color);transition:var(--dp-common-transition)}.dp__cell_in_between{background:var(--dp-hover-color);color:var(--dp-hover-text-color)}.dp__over_action_scroll{right:5px;box-sizing:border-box}.dp__overlay_cell_disabled{cursor:not-allowed;background:var(--dp-disabled-color)}.dp__overlay_cell_disabled:hover{background:var(--dp-disabled-color)}.dp__overlay_cell_active_disabled{cursor:not-allowed;background:var(--dp-primary-disabled-color)}.dp__overlay_cell_active_disabled:hover{background:var(--dp-primary-disabled-color)}.dp__btn,.dp--qr-btn,.dp--time-invalid,.dp--time-overlay-btn{border:none;font:inherit;transition:var(--dp-common-transition);line-height:normal}.dp--tp-wrap{max-width:var(--dp-menu-min-width)}.dp__time_input{width:100%;display:flex;align-items:center;justify-content:center;user-select:none;font-family:var(--dp-font-family);color:var(--dp-text-color)}.dp__time_col_reg_block{padding:0 20px}.dp__time_col_reg_inline{padding:0 10px}.dp__time_col_reg_with_button{padding:0 15px}.dp__time_col_sec{padding:0 10px}.dp__time_col_sec_with_button{padding:0 5px}.dp__time_col{text-align:center;display:flex;align-items:center;justify-content:center;flex-direction:column}.dp__time_col_block{font-size:var(--dp-time-font-size)}.dp__time_display_block{padding:0 3px}.dp__time_display_inline{padding:5px}.dp__time_picker_inline_container{display:flex;width:100%;justify-content:center}.dp__inc_dec_button{padding:5px;margin:0;height:var(--dp-time-inc-dec-button-size);width:var(--dp-time-inc-dec-button-size);display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:50%;color:var(--dp-icon-color);box-sizing:border-box}.dp__inc_dec_button svg{height:var(--dp-time-inc-dec-button-size);width:var(--dp-time-inc-dec-button-size)}.dp__inc_dec_button:hover{background:var(--dp-hover-color);color:var(--dp-primary-color)}.dp__time_display{cursor:pointer;color:var(--dp-text-color);border-radius:var(--dp-border-radius);display:flex;align-items:center;justify-content:center}.dp__time_display:hover:enabled{background:var(--dp-hover-color);color:var(--dp-hover-text-color)}.dp__inc_dec_button_inline{width:100%;padding:0;height:8px;cursor:pointer;display:flex;align-items:center}.dp__inc_dec_button_disabled,.dp__inc_dec_button_disabled:hover{background:var(--dp-disabled-color);color:var(--dp-disabled-color-text);cursor:not-allowed}.dp__pm_am_button{background:var(--dp-primary-color);color:var(--dp-primary-text-color);border:none;padding:var(--dp-common-padding);border-radius:var(--dp-border-radius);cursor:pointer}.dp__tp_inline_btn_bar{width:100%;height:4px;background-color:var(--dp-secondary-color);transition:var(--dp-common-transition);border-collapse:collapse}.dp__tp_inline_btn_top:hover .dp__tp_btn_in_r{background-color:var(--dp-primary-color);transform:rotate(12deg) scale(1.15) translateY(-2px)}.dp__tp_inline_btn_top:hover .dp__tp_btn_in_l,.dp__tp_inline_btn_bottom:hover .dp__tp_btn_in_r{background-color:var(--dp-primary-color);transform:rotate(-12deg) scale(1.15) translateY(-2px)}.dp__tp_inline_btn_bottom:hover .dp__tp_btn_in_l{background-color:var(--dp-primary-color);transform:rotate(12deg) scale(1.15) translateY(-2px)}.dp--time-overlay-btn{background:none}.dp--time-invalid{background-color:var(--dp-disabled-color)}.dp__action_row{display:flex;align-items:center;width:100%;padding:var(--dp-action-row-padding);box-sizing:border-box;color:var(--dp-text-color);flex-flow:row nowrap}.dp__action_row svg{height:var(--dp-button-icon-height);width:auto}.dp__selection_preview{display:block;color:var(--dp-text-color);font-size:var(--dp-preview-font-size);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.dp__action_buttons{display:flex;flex:0;white-space:nowrap;align-items:center;justify-content:flex-end;margin-inline-start:auto}.dp__action_button{display:inline-flex;align-items:center;background:#0000;border:1px solid rgba(0,0,0,0);padding:var(--dp-action-buttons-padding);line-height:var(--dp-action-button-height);margin-inline-start:3px;height:var(--dp-action-button-height);cursor:pointer;border-radius:var(--dp-border-radius);font-size:var(--dp-preview-font-size);font-family:var(--dp-font-family)}.dp__action_cancel{color:var(--dp-text-color);border:1px solid var(--dp-border-color)}.dp__action_cancel:hover{border-color:var(--dp-primary-color);transition:var(--dp-action-row-transtion)}.dp__action_buttons .dp__action_select{background:var(--dp-primary-color);color:var(--dp-primary-text-color)}.dp__action_buttons .dp__action_select:hover{background:var(--dp-primary-color);transition:var(--dp-action-row-transtion)}.dp__action_buttons .dp__action_select:disabled{background:var(--dp-primary-disabled-color);cursor:not-allowed}.dp-quarter-picker-wrap{display:flex;flex-direction:column;height:100%;min-width:var(--dp-menu-min-width)}.dp--qr-btn-disabled{cursor:not-allowed;background:var(--dp-disabled-color)}.dp--qr-btn-disabled:hover{background:var(--dp-disabled-color)}.dp--qr-btn{width:100%;padding:var(--dp-common-padding)}.dp--qr-btn:not(.dp--highlighted,.dp--qr-btn-active,.dp--qr-btn-disabled,.dp--qr-btn-between){background:none}.dp--qr-btn:hover:not(.dp--qr-btn-active,.dp--qr-btn-disabled){background:var(--dp-hover-color);color:var(--dp-hover-text-color);transition:var(--dp-common-transition)}.dp--quarter-items{display:flex;flex-direction:column;flex:1;width:100%;height:100%;justify-content:space-evenly}.dp--qr-btn-active{background:var(--dp-primary-color);color:var(--dp-primary-text-color)}.dp--qr-btn-between{background:var(--dp-hover-color);color:var(--dp-hover-text-color)}.dp__btn,.dp--time-overlay-btn,.dp--time-invalid,.dp--qr-btn{border:none;font:inherit;transition:var(--dp-common-transition);line-height:normal}.dp--year-mode-picker{display:flex;width:100%;align-items:center;justify-content:space-between;height:var(--dp-cell-size)}:root{--dp-common-transition: all .1s ease-in;--dp-menu-padding: 6px 8px;--dp-animation-duration: .1s;--dp-menu-appear-transition-timing: cubic-bezier(.4, 0, 1, 1);--dp-transition-timing: ease-out;--dp-action-row-transtion: all .2s ease-in;--dp-font-family: -apple-system, blinkmacsystemfont, "Segoe UI", roboto, oxygen, ubuntu, cantarell, "Open Sans", "Helvetica Neue", sans-serif;--dp-border-radius: 4px;--dp-cell-border-radius: 4px;--dp-transition-length: 22px;--dp-transition-timing-general: .1s;--dp-button-height: 35px;--dp-month-year-row-height: 35px;--dp-month-year-row-button-size: 25px;--dp-button-icon-height: 20px;--dp-calendar-wrap-padding: 0 5px;--dp-cell-size: 35px;--dp-cell-padding: 5px;--dp-common-padding: 10px;--dp-input-icon-padding: 35px;--dp-input-padding: 6px 30px 6px 12px;--dp-menu-min-width: 260px;--dp-action-buttons-padding: 1px 6px;--dp-row-margin: 5px 0;--dp-calendar-header-cell-padding: .5rem;--dp-multi-calendars-spacing: 10px;--dp-overlay-col-padding: 3px;--dp-time-inc-dec-button-size: 32px;--dp-font-size: 1rem;--dp-preview-font-size: .8rem;--dp-time-font-size: 2rem;--dp-action-button-height: 22px;--dp-action-row-padding: 8px;--dp-direction: ltr}.dp__theme_dark{--dp-background-color: #212121;--dp-text-color: #fff;--dp-hover-color: #484848;--dp-hover-text-color: #fff;--dp-hover-icon-color: #959595;--dp-primary-color: #005cb2;--dp-primary-disabled-color: #61a8ea;--dp-primary-text-color: #fff;--dp-secondary-color: #a9a9a9;--dp-border-color: #2d2d2d;--dp-menu-border-color: #2d2d2d;--dp-border-color-hover: #aaaeb7;--dp-border-color-focus: #aaaeb7;--dp-disabled-color: #737373;--dp-disabled-color-text: #d0d0d0;--dp-scroll-bar-background: #212121;--dp-scroll-bar-color: #484848;--dp-success-color: #00701a;--dp-success-color-disabled: #428f59;--dp-icon-color: #959595;--dp-danger-color: #e53935;--dp-marker-color: #e53935;--dp-tooltip-color: #3e3e3e;--dp-highlight-color: rgb(0 92 178 / 20%);--dp-range-between-dates-background-color: var(--dp-hover-color, #484848);--dp-range-between-dates-text-color: var(--dp-hover-text-color, #fff);--dp-range-between-border-color: var(--dp-hover-color, #fff);--dp-loader: 5px solid #005cb2}.dp__theme_light{--dp-background-color: #fff;--dp-text-color: #212121;--dp-hover-color: #f3f3f3;--dp-hover-text-color: #212121;--dp-hover-icon-color: #959595;--dp-primary-color: #1976d2;--dp-primary-disabled-color: #6bacea;--dp-primary-text-color: #fff;--dp-secondary-color: #c0c4cc;--dp-border-color: #ddd;--dp-menu-border-color: #ddd;--dp-border-color-hover: #aaaeb7;--dp-border-color-focus: #aaaeb7;--dp-disabled-color: #f6f6f6;--dp-scroll-bar-background: #f3f3f3;--dp-scroll-bar-color: #959595;--dp-success-color: #76d275;--dp-success-color-disabled: #a3d9b1;--dp-icon-color: #959595;--dp-danger-color: #ff6f60;--dp-marker-color: #ff6f60;--dp-tooltip-color: #fafafa;--dp-disabled-color-text: #8e8e8e;--dp-highlight-color: rgb(25 118 210 / 10%);--dp-range-between-dates-background-color: var(--dp-hover-color, #f3f3f3);--dp-range-between-dates-text-color: var(--dp-hover-text-color, #212121);--dp-range-between-border-color: var(--dp-hover-color, #f3f3f3);--dp-loader: 5px solid #1976d2}.dp__flex{display:flex;align-items:center}.dp__btn{background:none}.dp__main{font-family:var(--dp-font-family);user-select:none;box-sizing:border-box;position:relative;width:100%}.dp__main *{direction:var(--dp-direction, ltr)}.dp__pointer{cursor:pointer}.dp__icon{stroke:currentcolor;fill:currentcolor}.dp__button{width:100%;text-align:center;color:var(--dp-icon-color);cursor:pointer;display:flex;align-items:center;place-content:center center;padding:var(--dp-common-padding);box-sizing:border-box;height:var(--dp-button-height)}.dp__button.dp__overlay_action{position:absolute;bottom:0}.dp__button:hover{background:var(--dp-hover-color);color:var(--dp-hover-icon-color)}.dp__button svg{height:var(--dp-button-icon-height);width:auto}.dp__button_bottom{border-bottom-left-radius:var(--dp-border-radius);border-bottom-right-radius:var(--dp-border-radius)}.dp__flex_display{display:flex}.dp__flex_display_with_input{flex-direction:column;align-items:flex-start}.dp__relative{position:relative}.calendar-next-enter-active,.calendar-next-leave-active,.calendar-prev-enter-active,.calendar-prev-leave-active{transition:all var(--dp-transition-timing-general) ease-out}.calendar-next-enter-from{opacity:0;transform:translate(var(--dp-transition-length))}.calendar-next-leave-to,.calendar-prev-enter-from{opacity:0;transform:translate(calc(var(--dp-transition-length) * -1))}.calendar-prev-leave-to{opacity:0;transform:translate(var(--dp-transition-length))}.dp-menu-appear-bottom-enter-active,.dp-menu-appear-bottom-leave-active,.dp-menu-appear-top-enter-active,.dp-menu-appear-top-leave-active,.dp-slide-up-enter-active,.dp-slide-up-leave-active,.dp-slide-down-enter-active,.dp-slide-down-leave-active{transition:all var(--dp-animation-duration) var(--dp-transition-timing)}.dp-menu-appear-top-enter-from,.dp-menu-appear-top-leave-to,.dp-slide-down-leave-to,.dp-slide-up-enter-from{opacity:0;transform:translateY(var(--dp-transition-length))}.dp-menu-appear-bottom-enter-from,.dp-menu-appear-bottom-leave-to,.dp-slide-down-enter-from,.dp-slide-up-leave-to{opacity:0;transform:translateY(calc(var(--dp-transition-length) * -1))}.dp--arrow-btn-nav{transition:var(--dp-common-transition)}.dp--highlighted{background-color:var(--dp-highlight-color)}.dp--hidden-el{visibility:hidden}@media screen and (max-width: 768px){.navbar-container[data-v-28358cc6]{position:absolute;z-index:1000;animation-duration:.4s;animation-fill-mode:both;display:none;animation-timing-function:cubic-bezier(.82,.58,.17,.9)}.navbar-container.active[data-v-28358cc6]{animation-direction:normal;display:block!important;animation-name:zoomInFade-28358cc6}}.navbar-container[data-v-28358cc6]{height:100vh}@supports (height: 100dvh){@media screen and (max-width: 768px){.navbar-container[data-v-28358cc6]{height:calc(100dvh - 50px)}}}@keyframes zoomInFade-28358cc6{0%{opacity:0;transform:translateY(60px);filter:blur(3px)}to{opacity:1;transform:translateY(0);filter:blur(0px)}}.message[data-v-f50b8f0c]{width:100%}@media screen and (min-width: 576px){.message[data-v-f50b8f0c]{width:400px}}.messageCentre[data-v-5627c522]{top:1rem;right:1rem;width:calc(100% - 2rem)}main[data-v-5627c522]{height:100vh}@supports (height: 100dvh){@media screen and (max-width: 768px){main[data-v-5627c522]{height:calc(100dvh - 50px)}}}.dot.inactive[data-v-ed7817c7]{background-color:#dc3545;box-shadow:0 0 0 .2rem #dc354545}.spin[data-v-ed7817c7]{animation:spin-ed7817c7 1s infinite cubic-bezier(.82,.58,.17,.9)}@keyframes spin-ed7817c7{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media screen and (max-width: 768px){.remoteServerContainer[data-v-ed7817c7]{flex-direction:column}.remoteServerContainer .button-group button[data-v-ed7817c7]{width:100%}}@media screen and (max-width: 768px){.login-box[data-v-95530d22]{width:100%!important}.login-box div[data-v-95530d22]{width:auto!important}}.fade-enter-active[data-v-a85a04a5]{transition-delay:var(--1d5189b2)!important}.configurationListTitle{.btn[data-v-9f9a5b86]{border-radius:50%!important}}@media screen and (max-width: 768px){.configurationListTitle{&[data-v-9f9a5b86]{flex-direction:column;gap:.5rem}h3 span[data-v-9f9a5b86]{margin-left:auto!important}.btn[data-v-9f9a5b86]{width:100%}}}@media screen and (max-width: 992px){.apiKey-card-body{&[data-v-a76253c8]{flex-direction:column!important;align-items:start!important}div.ms-auto[data-v-a76253c8]{margin-left:0!important}div[data-v-a76253c8]{width:100%;align-items:start!important}small[data-v-a76253c8]{margin-right:auto}}}.apiKey-move[data-v-6a7e5e79],.apiKey-enter-active[data-v-6a7e5e79],.apiKey-leave-active[data-v-6a7e5e79]{transition:all .5s ease}.apiKey-enter-from[data-v-6a7e5e79],.apiKey-leave-to[data-v-6a7e5e79]{opacity:0;transform:translateY(30px) scale(.9)}.apiKey-leave-active[data-v-6a7e5e79]{position:absolute;width:100%}.dropdown-menu[data-v-08b165a8]{width:100%}.animation__fadeInDropdown[data-v-aaa147c4]{animation-name:fadeInDropdown-aaa147c4;animation-duration:.2s;animation-timing-function:cubic-bezier(.82,.58,.17,.9)}@keyframes fadeInDropdown-aaa147c4{0%{opacity:0;filter:blur(3px);transform:translateY(-60px)}to{opacity:1;filter:blur(0px);transform:translateY(-40px)}}.displayModal .dashboardModal[data-v-aaa147c4]{width:400px!important}@media screen and (max-width: 768px){.peerSearchContainer[data-v-aaa147c4]{flex-direction:column}.peerSettingContainer .dashboardModal[data-v-aaa147c4]{width:100%!important}}/*! * animate.css - https://animate.style/ * Version - 4.1.1 * Licensed under the MIT license - http://opensource.org/licenses/MIT * * Copyright (c) 2020 Animate.css - */:root{--animate-duration: 1s;--animate-delay: 1s;--animate-repeat: 1}.animate__animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-duration:var(--animate-duration);animation-duration:var(--animate-duration);-webkit-animation-fill-mode:both;animation-fill-mode:both}.animate__animated.animate__infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.animate__animated.animate__repeat-1{-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-iteration-count:var(--animate-repeat);animation-iteration-count:var(--animate-repeat)}.animate__animated.animate__repeat-2{-webkit-animation-iteration-count:2;animation-iteration-count:2;-webkit-animation-iteration-count:calc(var(--animate-repeat) * 2);animation-iteration-count:calc(var(--animate-repeat) * 2)}.animate__animated.animate__repeat-3{-webkit-animation-iteration-count:3;animation-iteration-count:3;-webkit-animation-iteration-count:calc(var(--animate-repeat) * 3);animation-iteration-count:calc(var(--animate-repeat) * 3)}.animate__animated.animate__delay-1s{-webkit-animation-delay:1s;animation-delay:1s;-webkit-animation-delay:var(--animate-delay);animation-delay:var(--animate-delay)}.animate__animated.animate__delay-2s{-webkit-animation-delay:2s;animation-delay:2s;-webkit-animation-delay:calc(var(--animate-delay) * 2);animation-delay:calc(var(--animate-delay) * 2)}.animate__animated.animate__delay-3s{-webkit-animation-delay:3s;animation-delay:3s;-webkit-animation-delay:calc(var(--animate-delay) * 3);animation-delay:calc(var(--animate-delay) * 3)}.animate__animated.animate__delay-4s{-webkit-animation-delay:4s;animation-delay:4s;-webkit-animation-delay:calc(var(--animate-delay) * 4);animation-delay:calc(var(--animate-delay) * 4)}.animate__animated.animate__delay-5s{-webkit-animation-delay:5s;animation-delay:5s;-webkit-animation-delay:calc(var(--animate-delay) * 5);animation-delay:calc(var(--animate-delay) * 5)}.animate__animated.animate__faster{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-duration:calc(var(--animate-duration) / 2);animation-duration:calc(var(--animate-duration) / 2)}.animate__animated.animate__fast{-webkit-animation-duration:.8s;animation-duration:.8s;-webkit-animation-duration:calc(var(--animate-duration) * .8);animation-duration:calc(var(--animate-duration) * .8)}.animate__animated.animate__slow{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration) * 2);animation-duration:calc(var(--animate-duration) * 2)}.animate__animated.animate__slower{-webkit-animation-duration:3s;animation-duration:3s;-webkit-animation-duration:calc(var(--animate-duration) * 3);animation-duration:calc(var(--animate-duration) * 3)}@media print,(prefers-reduced-motion: reduce){.animate__animated{-webkit-animation-duration:1ms!important;animation-duration:1ms!important;-webkit-transition-duration:1ms!important;transition-duration:1ms!important;-webkit-animation-iteration-count:1!important;animation-iteration-count:1!important}.animate__animated[class*=Out]{opacity:0}}@-webkit-keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0) scaleY(1.1);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0) scaleY(1.05);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-4px,0) scaleY(1.02);transform:translate3d(0,-4px,0) scaleY(1.02)}}@keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0) scaleY(1.1);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0) scaleY(1.05);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-4px,0) scaleY(1.02);transform:translate3d(0,-4px,0) scaleY(1.02)}}.animate__bounce{-webkit-animation-name:bounce;animation-name:bounce;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}.animate__flash{-webkit-animation-name:flash;animation-name:flash}@-webkit-keyframes pulse{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes pulse{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__pulse{-webkit-animation-name:pulse;animation-name:pulse;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes rubberBand{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes rubberBand{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__rubberBand{-webkit-animation-name:rubberBand;animation-name:rubberBand}@-webkit-keyframes shakeX{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}@keyframes shakeX{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}.animate__shakeX{-webkit-animation-name:shakeX;animation-name:shakeX}@-webkit-keyframes shakeY{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}}@keyframes shakeY{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}}.animate__shakeY{-webkit-animation-name:shakeY;animation-name:shakeY}@-webkit-keyframes headShake{0%{-webkit-transform:translateX(0);transform:translate(0)}6.5%{-webkit-transform:translateX(-6px) rotateY(-9deg);transform:translate(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translate(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translate(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translate(2px) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translate(0)}}@keyframes headShake{0%{-webkit-transform:translateX(0);transform:translate(0)}6.5%{-webkit-transform:translateX(-6px) rotateY(-9deg);transform:translate(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translate(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translate(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translate(2px) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translate(0)}}.animate__headShake{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-name:headShake;animation-name:headShake}@-webkit-keyframes swing{20%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}40%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}60%{-webkit-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}80%{-webkit-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}to{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0)}}@keyframes swing{20%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}40%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}60%{-webkit-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}80%{-webkit-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}to{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0)}}.animate__swing{-webkit-transform-origin:top center;transform-origin:top center;-webkit-animation-name:swing;animation-name:swing}@-webkit-keyframes tada{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes tada{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__tada{-webkit-animation-name:tada;animation-name:tada}@-webkit-keyframes wobble{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg);transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg);transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg);transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg);transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg);transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes wobble{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg);transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg);transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg);transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg);transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg);transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__wobble{-webkit-animation-name:wobble;animation-name:wobble}@-webkit-keyframes jello{0%,11.1%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skew(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skew(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skew(-.1953125deg) skewY(-.1953125deg)}}@keyframes jello{0%,11.1%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skew(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skew(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skew(-.1953125deg) skewY(-.1953125deg)}}.animate__jello{-webkit-animation-name:jello;animation-name:jello;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}.animate__heartBeat{-webkit-animation-name:heartBeat;animation-name:heartBeat;-webkit-animation-duration:1.3s;animation-duration:1.3s;-webkit-animation-duration:calc(var(--animate-duration) * 1.3);animation-duration:calc(var(--animate-duration) * 1.3);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes backInDown{0%{-webkit-transform:translateY(-1200px) scale(.7);transform:translateY(-1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInDown{0%{-webkit-transform:translateY(-1200px) scale(.7);transform:translateY(-1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInDown{-webkit-animation-name:backInDown;animation-name:backInDown}@-webkit-keyframes backInLeft{0%{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInLeft{0%{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInLeft{-webkit-animation-name:backInLeft;animation-name:backInLeft}@-webkit-keyframes backInRight{0%{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInRight{0%{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInRight{-webkit-animation-name:backInRight;animation-name:backInRight}@-webkit-keyframes backInUp{0%{-webkit-transform:translateY(1200px) scale(.7);transform:translateY(1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInUp{0%{-webkit-transform:translateY(1200px) scale(.7);transform:translateY(1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInUp{-webkit-animation-name:backInUp;animation-name:backInUp}@-webkit-keyframes backOutDown{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(700px) scale(.7);transform:translateY(700px) scale(.7);opacity:.7}}@keyframes backOutDown{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(700px) scale(.7);transform:translateY(700px) scale(.7);opacity:.7}}.animate__backOutDown{-webkit-animation-name:backOutDown;animation-name:backOutDown}@-webkit-keyframes backOutLeft{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}}@keyframes backOutLeft{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}}.animate__backOutLeft{-webkit-animation-name:backOutLeft;animation-name:backOutLeft}@-webkit-keyframes backOutRight{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}}@keyframes backOutRight{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}}.animate__backOutRight{-webkit-animation-name:backOutRight;animation-name:backOutRight}@-webkit-keyframes backOutUp{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(-700px) scale(.7);transform:translateY(-700px) scale(.7);opacity:.7}}@keyframes backOutUp{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(-700px) scale(.7);transform:translateY(-700px) scale(.7);opacity:.7}}.animate__backOutUp{-webkit-animation-name:backOutUp;animation-name:backOutUp}@-webkit-keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__bounceIn{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-animation-name:bounceIn;animation-name:bounceIn}@-webkit-keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0) scaleY(3);transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0) scaleY(.9);transform:translate3d(0,25px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-10px,0) scaleY(.95);transform:translate3d(0,-10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,5px,0) scaleY(.985);transform:translate3d(0,5px,0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0) scaleY(3);transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0) scaleY(.9);transform:translate3d(0,25px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-10px,0) scaleY(.95);transform:translate3d(0,-10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,5px,0) scaleY(.985);transform:translate3d(0,5px,0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInDown{-webkit-animation-name:bounceInDown;animation-name:bounceInDown}@-webkit-keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0) scaleX(3);transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0) scaleX(1);transform:translate3d(25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-10px,0,0) scaleX(.98);transform:translate3d(-10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(5px,0,0) scaleX(.995);transform:translate3d(5px,0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0) scaleX(3);transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0) scaleX(1);transform:translate3d(25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-10px,0,0) scaleX(.98);transform:translate3d(-10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(5px,0,0) scaleX(.995);transform:translate3d(5px,0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInLeft{-webkit-animation-name:bounceInLeft;animation-name:bounceInLeft}@-webkit-keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0) scaleX(3);transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0) scaleX(1);transform:translate3d(-25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(10px,0,0) scaleX(.98);transform:translate3d(10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-5px,0,0) scaleX(.995);transform:translate3d(-5px,0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0) scaleX(3);transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0) scaleX(1);transform:translate3d(-25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(10px,0,0) scaleX(.98);transform:translate3d(10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-5px,0,0) scaleX(.995);transform:translate3d(-5px,0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInRight{-webkit-animation-name:bounceInRight;animation-name:bounceInRight}@-webkit-keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0) scaleY(5);transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,10px,0) scaleY(.95);transform:translate3d(0,10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-5px,0) scaleY(.985);transform:translate3d(0,-5px,0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0) scaleY(5);transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,10px,0) scaleY(.95);transform:translate3d(0,10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-5px,0) scaleY(.985);transform:translate3d(0,-5px,0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInUp{-webkit-animation-name:bounceInUp;animation-name:bounceInUp}@-webkit-keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}@keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}.animate__bounceOut{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-animation-name:bounceOut;animation-name:bounceOut}@-webkit-keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0) scaleY(.985);transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,2000px,0) scaleY(3);transform:translate3d(0,2000px,0) scaleY(3)}}@keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0) scaleY(.985);transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,2000px,0) scaleY(3);transform:translate3d(0,2000px,0) scaleY(3)}}.animate__bounceOutDown{-webkit-animation-name:bounceOutDown;animation-name:bounceOutDown}@-webkit-keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0) scaleX(.9);transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0) scaleX(2);transform:translate3d(-2000px,0,0) scaleX(2)}}@keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0) scaleX(.9);transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0) scaleX(2);transform:translate3d(-2000px,0,0) scaleX(2)}}.animate__bounceOutLeft{-webkit-animation-name:bounceOutLeft;animation-name:bounceOutLeft}@-webkit-keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0) scaleX(.9);transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(2000px,0,0) scaleX(2);transform:translate3d(2000px,0,0) scaleX(2)}}@keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0) scaleX(.9);transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(2000px,0,0) scaleX(2);transform:translate3d(2000px,0,0) scaleX(2)}}.animate__bounceOutRight{-webkit-animation-name:bounceOutRight;animation-name:bounceOutRight}@-webkit-keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0) scaleY(.985);transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0) scaleY(.9);transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0) scaleY(3);transform:translate3d(0,-2000px,0) scaleY(3)}}@keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0) scaleY(.985);transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0) scaleY(.9);transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0) scaleY(3);transform:translate3d(0,-2000px,0) scaleY(3)}}.animate__bounceOutUp{-webkit-animation-name:bounceOutUp;animation-name:bounceOutUp}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.animate__fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn}@-webkit-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown}@-webkit-keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInDownBig{-webkit-animation-name:fadeInDownBig;animation-name:fadeInDownBig}@-webkit-keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInLeft{-webkit-animation-name:fadeInLeft;animation-name:fadeInLeft}@-webkit-keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInLeftBig{-webkit-animation-name:fadeInLeftBig;animation-name:fadeInLeftBig}@-webkit-keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInRight{-webkit-animation-name:fadeInRight;animation-name:fadeInRight}@-webkit-keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInRightBig{-webkit-animation-name:fadeInRightBig;animation-name:fadeInRightBig}@-webkit-keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInUp{-webkit-animation-name:fadeInUp;animation-name:fadeInUp}@-webkit-keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInUpBig{-webkit-animation-name:fadeInUpBig;animation-name:fadeInUpBig}@-webkit-keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInTopLeft{-webkit-animation-name:fadeInTopLeft;animation-name:fadeInTopLeft}@-webkit-keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInTopRight{-webkit-animation-name:fadeInTopRight;animation-name:fadeInTopRight}@-webkit-keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInBottomLeft{-webkit-animation-name:fadeInBottomLeft;animation-name:fadeInBottomLeft}@-webkit-keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInBottomRight{-webkit-animation-name:fadeInBottomRight;animation-name:fadeInBottomRight}@-webkit-keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.animate__fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}@-webkit-keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.animate__fadeOutDown{-webkit-animation-name:fadeOutDown;animation-name:fadeOutDown}@-webkit-keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}@keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}.animate__fadeOutDownBig{-webkit-animation-name:fadeOutDownBig;animation-name:fadeOutDownBig}@-webkit-keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.animate__fadeOutLeft{-webkit-animation-name:fadeOutLeft;animation-name:fadeOutLeft}@-webkit-keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}@keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}.animate__fadeOutLeftBig{-webkit-animation-name:fadeOutLeftBig;animation-name:fadeOutLeftBig}@-webkit-keyframes fadeOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes fadeOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.animate__fadeOutRight{-webkit-animation-name:fadeOutRight;animation-name:fadeOutRight}@-webkit-keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}@keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}.animate__fadeOutRightBig{-webkit-animation-name:fadeOutRightBig;animation-name:fadeOutRightBig}@-webkit-keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.animate__fadeOutUp{-webkit-animation-name:fadeOutUp;animation-name:fadeOutUp}@-webkit-keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}@keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}.animate__fadeOutUpBig{-webkit-animation-name:fadeOutUpBig;animation-name:fadeOutUpBig}@-webkit-keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}@keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}.animate__fadeOutTopLeft{-webkit-animation-name:fadeOutTopLeft;animation-name:fadeOutTopLeft}@-webkit-keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}@keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}.animate__fadeOutTopRight{-webkit-animation-name:fadeOutTopRight;animation-name:fadeOutTopRight}@-webkit-keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}@keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}.animate__fadeOutBottomRight{-webkit-animation-name:fadeOutBottomRight;animation-name:fadeOutBottomRight}@-webkit-keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}@keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}.animate__fadeOutBottomLeft{-webkit-animation-name:fadeOutBottomLeft;animation-name:fadeOutBottomLeft}@-webkit-keyframes flip{0%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,-360deg);transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(-360deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}@keyframes flip{0%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,-360deg);transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(-360deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}.animate__animated.animate__flip{-webkit-backface-visibility:visible;backface-visibility:visible;-webkit-animation-name:flip;animation-name:flip}@-webkit-keyframes flipInX{0%{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(1,0,0,10deg);transform:perspective(400px) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInX{0%{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(1,0,0,10deg);transform:perspective(400px) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.animate__flipInX{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInX;animation-name:flipInX}@-webkit-keyframes flipInY{0%{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-20deg);transform:perspective(400px) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0,1,0,10deg);transform:perspective(400px) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInY{0%{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-20deg);transform:perspective(400px) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0,1,0,10deg);transform:perspective(400px) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.animate__flipInY{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInY;animation-name:flipInY}@-webkit-keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotateX(90deg);opacity:0}}@keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotateX(90deg);opacity:0}}.animate__flipOutX{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-animation-name:flipOutX;animation-name:flipOutX;-webkit-backface-visibility:visible!important;backface-visibility:visible!important}@-webkit-keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-15deg);transform:perspective(400px) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotateY(90deg);opacity:0}}@keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-15deg);transform:perspective(400px) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotateY(90deg);opacity:0}}.animate__flipOutY{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipOutY;animation-name:flipOutY}@-webkit-keyframes lightSpeedInRight{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skew(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skew(-5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes lightSpeedInRight{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skew(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skew(-5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__lightSpeedInRight{-webkit-animation-name:lightSpeedInRight;animation-name:lightSpeedInRight;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedInLeft{0%{-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{-webkit-transform:skewX(-20deg);transform:skew(-20deg);opacity:1}80%{-webkit-transform:skewX(5deg);transform:skew(5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes lightSpeedInLeft{0%{-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{-webkit-transform:skewX(-20deg);transform:skew(-20deg);opacity:1}80%{-webkit-transform:skewX(5deg);transform:skew(5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__lightSpeedInLeft{-webkit-animation-name:lightSpeedInLeft;animation-name:lightSpeedInLeft;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedOutRight{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skew(30deg);opacity:0}}@keyframes lightSpeedOutRight{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skew(30deg);opacity:0}}.animate__lightSpeedOutRight{-webkit-animation-name:lightSpeedOutRight;animation-name:lightSpeedOutRight;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes lightSpeedOutLeft{0%{opacity:1}to{-webkit-transform:translate3d(-100%,0,0) skewX(-30deg);transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}@keyframes lightSpeedOutLeft{0%{opacity:1}to{-webkit-transform:translate3d(-100%,0,0) skewX(-30deg);transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}.animate__lightSpeedOutLeft{-webkit-animation-name:lightSpeedOutLeft;animation-name:lightSpeedOutLeft;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes rotateIn{0%{-webkit-transform:rotate3d(0,0,1,-200deg);transform:rotate3d(0,0,1,-200deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateIn{0%{-webkit-transform:rotate3d(0,0,1,-200deg);transform:rotate3d(0,0,1,-200deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateIn{-webkit-animation-name:rotateIn;animation-name:rotateIn;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateInDownLeft{0%{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInDownLeft{0%{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInDownLeft{-webkit-animation-name:rotateInDownLeft;animation-name:rotateInDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInDownRight{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInDownRight{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInDownRight{-webkit-animation-name:rotateInDownRight;animation-name:rotateInDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateInUpLeft{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInUpLeft{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInUpLeft{-webkit-animation-name:rotateInUpLeft;animation-name:rotateInUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInUpRight{0%{-webkit-transform:rotate3d(0,0,1,-90deg);transform:rotate3d(0,0,1,-90deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInUpRight{0%{-webkit-transform:rotate3d(0,0,1,-90deg);transform:rotate3d(0,0,1,-90deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInUpRight{-webkit-animation-name:rotateInUpRight;animation-name:rotateInUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOut{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,200deg);transform:rotate3d(0,0,1,200deg);opacity:0}}@keyframes rotateOut{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,200deg);transform:rotate3d(0,0,1,200deg);opacity:0}}.animate__rotateOut{-webkit-animation-name:rotateOut;animation-name:rotateOut;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateOutDownLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}}@keyframes rotateOutDownLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}}.animate__rotateOutDownLeft{-webkit-animation-name:rotateOutDownLeft;animation-name:rotateOutDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutDownRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutDownRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}.animate__rotateOutDownRight{-webkit-animation-name:rotateOutDownRight;animation-name:rotateOutDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOutUpLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutUpLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}.animate__rotateOutUpLeft{-webkit-animation-name:rotateOutUpLeft;animation-name:rotateOutUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutUpRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,90deg);transform:rotate3d(0,0,1,90deg);opacity:0}}@keyframes rotateOutUpRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,90deg);transform:rotate3d(0,0,1,90deg);opacity:0}}.animate__rotateOutUpRight{-webkit-animation-name:rotateOutUpRight;animation-name:rotateOutUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate3d(0,0,1,80deg);transform:rotate3d(0,0,1,80deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate3d(0,0,1,60deg);transform:rotate3d(0,0,1,60deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}@keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate3d(0,0,1,80deg);transform:rotate3d(0,0,1,80deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate3d(0,0,1,60deg);transform:rotate3d(0,0,1,60deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}.animate__hinge{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration) * 2);animation-duration:calc(var(--animate-duration) * 2);-webkit-animation-name:hinge;animation-name:hinge;-webkit-transform-origin:top left;transform-origin:top left}@-webkit-keyframes jackInTheBox{0%{opacity:0;-webkit-transform:scale(.1) rotate(30deg);transform:scale(.1) rotate(30deg);-webkit-transform-origin:center bottom;transform-origin:center bottom}50%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}70%{-webkit-transform:rotate(3deg);transform:rotate(3deg)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes jackInTheBox{0%{opacity:0;-webkit-transform:scale(.1) rotate(30deg);transform:scale(.1) rotate(30deg);-webkit-transform-origin:center bottom;transform-origin:center bottom}50%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}70%{-webkit-transform:rotate(3deg);transform:rotate(3deg)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.animate__jackInTheBox{-webkit-animation-name:jackInTheBox;animation-name:jackInTheBox}@-webkit-keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg);transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg);transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__rollIn{-webkit-animation-name:rollIn;animation-name:rollIn}@-webkit-keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg);transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}@keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg);transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}.animate__rollOut{-webkit-animation-name:rollOut;animation-name:rollOut}@-webkit-keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}.animate__zoomIn{-webkit-animation-name:zoomIn;animation-name:zoomIn}@-webkit-keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInDown{-webkit-animation-name:zoomInDown;animation-name:zoomInDown}@-webkit-keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInLeft{-webkit-animation-name:zoomInLeft;animation-name:zoomInLeft}@-webkit-keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInRight{-webkit-animation-name:zoomInRight;animation-name:zoomInRight}@-webkit-keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInUp{-webkit-animation-name:zoomInUp;animation-name:zoomInUp}@-webkit-keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}.animate__zoomOut{-webkit-animation-name:zoomOut;animation-name:zoomOut}@-webkit-keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomOutDown{-webkit-animation-name:zoomOutDown;animation-name:zoomOutDown;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0)}}@keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0)}}.animate__zoomOutLeft{-webkit-animation-name:zoomOutLeft;animation-name:zoomOutLeft;-webkit-transform-origin:left center;transform-origin:left center}@-webkit-keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0)}}@keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0)}}.animate__zoomOutRight{-webkit-animation-name:zoomOutRight;animation-name:zoomOutRight;-webkit-transform-origin:right center;transform-origin:right center}@-webkit-keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomOutUp{-webkit-animation-name:zoomOutUp;animation-name:zoomOutUp;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInDown{-webkit-animation-name:slideInDown;animation-name:slideInDown}@-webkit-keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInLeft{-webkit-animation-name:slideInLeft;animation-name:slideInLeft}@-webkit-keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInRight{-webkit-animation-name:slideInRight;animation-name:slideInRight}@-webkit-keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}@-webkit-keyframes slideOutDown{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes slideOutDown{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.animate__slideOutDown{-webkit-animation-name:slideOutDown;animation-name:slideOutDown}@-webkit-keyframes slideOutLeft{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes slideOutLeft{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.animate__slideOutLeft{-webkit-animation-name:slideOutLeft;animation-name:slideOutLeft}@-webkit-keyframes slideOutRight{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes slideOutRight{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.animate__slideOutRight{-webkit-animation-name:slideOutRight;animation-name:slideOutRight}@-webkit-keyframes slideOutUp{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes slideOutUp{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.animate__slideOutUp{-webkit-animation-name:slideOutUp;animation-name:slideOutUp}.dropdown-menu[data-v-3fa1c090]{right:1rem;min-width:200px}.dropdown-item.disabled[data-v-3fa1c090],.dropdown-item[data-v-3fa1c090]:disabled{opacity:.7}.confirmDelete[data-v-3fa1c090]{padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x)}.slide-fade-leave-active[data-v-116e739e],.slide-fade-enter-active[data-v-116e739e]{transition:all .2s cubic-bezier(.82,.58,.17,1.3)}.slide-fade-enter-from[data-v-116e739e],.slide-fade-leave-to[data-v-116e739e]{transform:translateY(20px);opacity:0;filter:blur(3px)}.subMenuBtn.active[data-v-116e739e]{background-color:#ffffff20}.peerCard[data-v-116e739e]{transition:box-shadow .1s cubic-bezier(.82,.58,.17,.9)}.peerCard[data-v-116e739e]:hover{box-shadow:var(--bs-box-shadow)!important}.toggleShowKey[data-v-a63ae8cb]{position:absolute;top:35px;right:12px}.list-move[data-v-6d5fc831],.list-enter-active[data-v-6d5fc831],.list-leave-active[data-v-6d5fc831]{transition:all .3s ease}.list-enter-from[data-v-6d5fc831],.list-leave-to[data-v-6d5fc831]{opacity:0;transform:translateY(10px)}.list-leave-active[data-v-6d5fc831]{position:absolute}.peerSettingContainer[data-v-17eb547c]{background-color:#00000060;z-index:9998}div[data-v-17eb547c]{transition:.2s ease-in-out}.inactiveField[data-v-17eb547c]{opacity:.4}.card[data-v-17eb547c]{max-height:100%}.btn.disabled[data-v-6a5aba2a]{opacity:1;background-color:#0d6efd17;border-color:transparent}[data-v-8f3f1b93]{font-size:.875rem}input[data-v-8f3f1b93]{padding:.1rem .4rem}input[data-v-8f3f1b93]:disabled{border-color:transparent;background-color:#0d6efd17;color:#0d6efd}.dp__main[data-v-8f3f1b93]{width:auto;flex-grow:1;--dp-input-padding: 2.5px 30px 2.5px 12px;--dp-border-radius: .5rem}.schedulePeerJobTransition-move[data-v-5bbdd42b],.schedulePeerJobTransition-enter-active[data-v-5bbdd42b],.schedulePeerJobTransition-leave-active[data-v-5bbdd42b]{transition:all .4s cubic-bezier(.82,.58,.17,.9)}.schedulePeerJobTransition-enter-from[data-v-5bbdd42b],.schedulePeerJobTransition-leave-to[data-v-5bbdd42b]{opacity:0;transform:scale(.9)}.schedulePeerJobTransition-leave-active[data-v-5bbdd42b]{position:absolute;width:100%}.card[data-v-8e40593b]{height:100%}.dashboardModal[data-v-8e40593b]{height:calc(100% - 1rem)!important}@media screen and (min-height: 700px){.card[data-v-8e40593b]{height:700px}}.peerBtn[data-v-8e40593b]{border:var(--bs-border-width) solid var(--bs-border-color)}.peerBtn.active[data-v-8e40593b]{border:var(--bs-border-width) solid var(--bs-body-color)}.confirmationContainer[data-v-61688b74]{background-color:#00000087;z-index:9999;backdrop-filter:blur(1px);-webkit-backdrop-filter:blur(1px)}.list1-enter-active[data-v-61688b74]{transition-delay:var(--df360394)!important}.card[data-v-b454707b],.title[data-v-b454707b]{width:100%}@media screen and (min-width: 700px){.card[data-v-b454707b],.title[data-v-b454707b]{width:700px}}.animate__fadeInUp[data-v-b454707b]{animation-timing-function:cubic-bezier(.42,0,.22,1)}.list1-move[data-v-b454707b],.list1-enter-active[data-v-b454707b],.list1-leave-active[data-v-b454707b]{transition:all .5s cubic-bezier(.42,0,.22,1)}.list1-enter-from[data-v-b454707b],.list1-leave-to[data-v-b454707b]{opacity:0;transform:translateY(30px)}.list1-leave-active[data-v-b454707b]{width:100%;position:absolute}.peerNav .nav-link{&.active[data-v-e1b5f6b7]{background-color:#efefef}}:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.ol-overviewmap .ol-viewport:hover{cursor:pointer}.ol-layer canvas{border-radius:var(--bs-border-radius-lg)!important}#map{height:300px}.pingPlaceholder[data-v-f5cd36ce]{width:100%;height:79.98px}.ping-move[data-v-f5cd36ce],.ping-enter-active[data-v-f5cd36ce],.ping-leave-active[data-v-f5cd36ce]{transition:all .4s cubic-bezier(.82,.58,.17,.9)}.ping-leave-active[data-v-f5cd36ce]{position:absolute;width:100%}.ping-enter-from[data-v-f5cd36ce],.ping-leave-to[data-v-f5cd36ce]{opacity:0;//transform: scale(1.1);filter:blur(3px)}.pingPlaceholder[data-v-6d6cffc9]{width:100%;height:40px}.ping-leave-active[data-v-6d6cffc9]{position:absolute}table th[data-v-6d6cffc9],table td[data-v-6d6cffc9]{padding:.5rem}.table[data-v-6d6cffc9]>:not(caption)>*>*{background-color:transparent!important}.ping-move[data-v-6d6cffc9],.ping-enter-active[data-v-6d6cffc9],.ping-leave-active[data-v-6d6cffc9]{transition:all .4s cubic-bezier(.82,.58,.17,.9)}.ping-leave-active[data-v-6d6cffc9]{position:absolute;width:100%}.ping-enter-from[data-v-6d6cffc9],.ping-leave-to[data-v-6d6cffc9]{opacity:0;//transform: scale(1.1);filter:blur(3px)}.animate__fadeInUp[data-v-1b44aacd]{animation-timing-function:cubic-bezier(.42,0,.22,1)}.dropdownIcon[data-v-35612fa2]{transition:all .2s ease-in-out}.dropdownIcon.active[data-v-35612fa2]{transform:rotate(180deg)}.steps{&[data-v-1dc71439]{transition:all .3s ease-in-out;opacity:.3}&.active[data-v-1dc71439]{opacity:1}}.app-enter-active[data-v-ca898237],.app-leave-active[data-v-ca898237]{transition:all .7s cubic-bezier(.82,.58,.17,1)}.app-enter-from[data-v-ca898237],.app-leave-to[data-v-ca898237]{opacity:0;transform:scale(1.1)}@media screen and (min-width: 768px){.navbar[data-v-ca898237]{display:none}} + */:root{--animate-duration: 1s;--animate-delay: 1s;--animate-repeat: 1}.animate__animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-duration:var(--animate-duration);animation-duration:var(--animate-duration);-webkit-animation-fill-mode:both;animation-fill-mode:both}.animate__animated.animate__infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.animate__animated.animate__repeat-1{-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-iteration-count:var(--animate-repeat);animation-iteration-count:var(--animate-repeat)}.animate__animated.animate__repeat-2{-webkit-animation-iteration-count:2;animation-iteration-count:2;-webkit-animation-iteration-count:calc(var(--animate-repeat) * 2);animation-iteration-count:calc(var(--animate-repeat) * 2)}.animate__animated.animate__repeat-3{-webkit-animation-iteration-count:3;animation-iteration-count:3;-webkit-animation-iteration-count:calc(var(--animate-repeat) * 3);animation-iteration-count:calc(var(--animate-repeat) * 3)}.animate__animated.animate__delay-1s{-webkit-animation-delay:1s;animation-delay:1s;-webkit-animation-delay:var(--animate-delay);animation-delay:var(--animate-delay)}.animate__animated.animate__delay-2s{-webkit-animation-delay:2s;animation-delay:2s;-webkit-animation-delay:calc(var(--animate-delay) * 2);animation-delay:calc(var(--animate-delay) * 2)}.animate__animated.animate__delay-3s{-webkit-animation-delay:3s;animation-delay:3s;-webkit-animation-delay:calc(var(--animate-delay) * 3);animation-delay:calc(var(--animate-delay) * 3)}.animate__animated.animate__delay-4s{-webkit-animation-delay:4s;animation-delay:4s;-webkit-animation-delay:calc(var(--animate-delay) * 4);animation-delay:calc(var(--animate-delay) * 4)}.animate__animated.animate__delay-5s{-webkit-animation-delay:5s;animation-delay:5s;-webkit-animation-delay:calc(var(--animate-delay) * 5);animation-delay:calc(var(--animate-delay) * 5)}.animate__animated.animate__faster{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-duration:calc(var(--animate-duration) / 2);animation-duration:calc(var(--animate-duration) / 2)}.animate__animated.animate__fast{-webkit-animation-duration:.8s;animation-duration:.8s;-webkit-animation-duration:calc(var(--animate-duration) * .8);animation-duration:calc(var(--animate-duration) * .8)}.animate__animated.animate__slow{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration) * 2);animation-duration:calc(var(--animate-duration) * 2)}.animate__animated.animate__slower{-webkit-animation-duration:3s;animation-duration:3s;-webkit-animation-duration:calc(var(--animate-duration) * 3);animation-duration:calc(var(--animate-duration) * 3)}@media print,(prefers-reduced-motion: reduce){.animate__animated{-webkit-animation-duration:1ms!important;animation-duration:1ms!important;-webkit-transition-duration:1ms!important;transition-duration:1ms!important;-webkit-animation-iteration-count:1!important;animation-iteration-count:1!important}.animate__animated[class*=Out]{opacity:0}}@-webkit-keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0) scaleY(1.1);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0) scaleY(1.05);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-4px,0) scaleY(1.02);transform:translate3d(0,-4px,0) scaleY(1.02)}}@keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0) scaleY(1.1);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0) scaleY(1.05);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-4px,0) scaleY(1.02);transform:translate3d(0,-4px,0) scaleY(1.02)}}.animate__bounce{-webkit-animation-name:bounce;animation-name:bounce;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}.animate__flash{-webkit-animation-name:flash;animation-name:flash}@-webkit-keyframes pulse{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes pulse{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__pulse{-webkit-animation-name:pulse;animation-name:pulse;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes rubberBand{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes rubberBand{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__rubberBand{-webkit-animation-name:rubberBand;animation-name:rubberBand}@-webkit-keyframes shakeX{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}@keyframes shakeX{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}.animate__shakeX{-webkit-animation-name:shakeX;animation-name:shakeX}@-webkit-keyframes shakeY{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}}@keyframes shakeY{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}}.animate__shakeY{-webkit-animation-name:shakeY;animation-name:shakeY}@-webkit-keyframes headShake{0%{-webkit-transform:translateX(0);transform:translate(0)}6.5%{-webkit-transform:translateX(-6px) rotateY(-9deg);transform:translate(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translate(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translate(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translate(2px) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translate(0)}}@keyframes headShake{0%{-webkit-transform:translateX(0);transform:translate(0)}6.5%{-webkit-transform:translateX(-6px) rotateY(-9deg);transform:translate(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translate(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translate(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translate(2px) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translate(0)}}.animate__headShake{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-name:headShake;animation-name:headShake}@-webkit-keyframes swing{20%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}40%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}60%{-webkit-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}80%{-webkit-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}to{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0)}}@keyframes swing{20%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}40%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}60%{-webkit-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}80%{-webkit-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}to{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0)}}.animate__swing{-webkit-transform-origin:top center;transform-origin:top center;-webkit-animation-name:swing;animation-name:swing}@-webkit-keyframes tada{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes tada{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__tada{-webkit-animation-name:tada;animation-name:tada}@-webkit-keyframes wobble{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg);transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg);transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg);transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg);transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg);transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes wobble{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg);transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg);transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg);transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg);transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg);transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__wobble{-webkit-animation-name:wobble;animation-name:wobble}@-webkit-keyframes jello{0%,11.1%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skew(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skew(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skew(-.1953125deg) skewY(-.1953125deg)}}@keyframes jello{0%,11.1%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skew(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skew(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skew(-.1953125deg) skewY(-.1953125deg)}}.animate__jello{-webkit-animation-name:jello;animation-name:jello;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}.animate__heartBeat{-webkit-animation-name:heartBeat;animation-name:heartBeat;-webkit-animation-duration:1.3s;animation-duration:1.3s;-webkit-animation-duration:calc(var(--animate-duration) * 1.3);animation-duration:calc(var(--animate-duration) * 1.3);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes backInDown{0%{-webkit-transform:translateY(-1200px) scale(.7);transform:translateY(-1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInDown{0%{-webkit-transform:translateY(-1200px) scale(.7);transform:translateY(-1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInDown{-webkit-animation-name:backInDown;animation-name:backInDown}@-webkit-keyframes backInLeft{0%{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInLeft{0%{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInLeft{-webkit-animation-name:backInLeft;animation-name:backInLeft}@-webkit-keyframes backInRight{0%{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInRight{0%{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInRight{-webkit-animation-name:backInRight;animation-name:backInRight}@-webkit-keyframes backInUp{0%{-webkit-transform:translateY(1200px) scale(.7);transform:translateY(1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInUp{0%{-webkit-transform:translateY(1200px) scale(.7);transform:translateY(1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInUp{-webkit-animation-name:backInUp;animation-name:backInUp}@-webkit-keyframes backOutDown{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(700px) scale(.7);transform:translateY(700px) scale(.7);opacity:.7}}@keyframes backOutDown{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(700px) scale(.7);transform:translateY(700px) scale(.7);opacity:.7}}.animate__backOutDown{-webkit-animation-name:backOutDown;animation-name:backOutDown}@-webkit-keyframes backOutLeft{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}}@keyframes backOutLeft{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}}.animate__backOutLeft{-webkit-animation-name:backOutLeft;animation-name:backOutLeft}@-webkit-keyframes backOutRight{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}}@keyframes backOutRight{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}}.animate__backOutRight{-webkit-animation-name:backOutRight;animation-name:backOutRight}@-webkit-keyframes backOutUp{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(-700px) scale(.7);transform:translateY(-700px) scale(.7);opacity:.7}}@keyframes backOutUp{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(-700px) scale(.7);transform:translateY(-700px) scale(.7);opacity:.7}}.animate__backOutUp{-webkit-animation-name:backOutUp;animation-name:backOutUp}@-webkit-keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__bounceIn{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-animation-name:bounceIn;animation-name:bounceIn}@-webkit-keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0) scaleY(3);transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0) scaleY(.9);transform:translate3d(0,25px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-10px,0) scaleY(.95);transform:translate3d(0,-10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,5px,0) scaleY(.985);transform:translate3d(0,5px,0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0) scaleY(3);transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0) scaleY(.9);transform:translate3d(0,25px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-10px,0) scaleY(.95);transform:translate3d(0,-10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,5px,0) scaleY(.985);transform:translate3d(0,5px,0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInDown{-webkit-animation-name:bounceInDown;animation-name:bounceInDown}@-webkit-keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0) scaleX(3);transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0) scaleX(1);transform:translate3d(25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-10px,0,0) scaleX(.98);transform:translate3d(-10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(5px,0,0) scaleX(.995);transform:translate3d(5px,0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0) scaleX(3);transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0) scaleX(1);transform:translate3d(25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-10px,0,0) scaleX(.98);transform:translate3d(-10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(5px,0,0) scaleX(.995);transform:translate3d(5px,0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInLeft{-webkit-animation-name:bounceInLeft;animation-name:bounceInLeft}@-webkit-keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0) scaleX(3);transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0) scaleX(1);transform:translate3d(-25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(10px,0,0) scaleX(.98);transform:translate3d(10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-5px,0,0) scaleX(.995);transform:translate3d(-5px,0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0) scaleX(3);transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0) scaleX(1);transform:translate3d(-25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(10px,0,0) scaleX(.98);transform:translate3d(10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-5px,0,0) scaleX(.995);transform:translate3d(-5px,0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInRight{-webkit-animation-name:bounceInRight;animation-name:bounceInRight}@-webkit-keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0) scaleY(5);transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,10px,0) scaleY(.95);transform:translate3d(0,10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-5px,0) scaleY(.985);transform:translate3d(0,-5px,0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0) scaleY(5);transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,10px,0) scaleY(.95);transform:translate3d(0,10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-5px,0) scaleY(.985);transform:translate3d(0,-5px,0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInUp{-webkit-animation-name:bounceInUp;animation-name:bounceInUp}@-webkit-keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}@keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}.animate__bounceOut{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-animation-name:bounceOut;animation-name:bounceOut}@-webkit-keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0) scaleY(.985);transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,2000px,0) scaleY(3);transform:translate3d(0,2000px,0) scaleY(3)}}@keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0) scaleY(.985);transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,2000px,0) scaleY(3);transform:translate3d(0,2000px,0) scaleY(3)}}.animate__bounceOutDown{-webkit-animation-name:bounceOutDown;animation-name:bounceOutDown}@-webkit-keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0) scaleX(.9);transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0) scaleX(2);transform:translate3d(-2000px,0,0) scaleX(2)}}@keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0) scaleX(.9);transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0) scaleX(2);transform:translate3d(-2000px,0,0) scaleX(2)}}.animate__bounceOutLeft{-webkit-animation-name:bounceOutLeft;animation-name:bounceOutLeft}@-webkit-keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0) scaleX(.9);transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(2000px,0,0) scaleX(2);transform:translate3d(2000px,0,0) scaleX(2)}}@keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0) scaleX(.9);transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(2000px,0,0) scaleX(2);transform:translate3d(2000px,0,0) scaleX(2)}}.animate__bounceOutRight{-webkit-animation-name:bounceOutRight;animation-name:bounceOutRight}@-webkit-keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0) scaleY(.985);transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0) scaleY(.9);transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0) scaleY(3);transform:translate3d(0,-2000px,0) scaleY(3)}}@keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0) scaleY(.985);transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0) scaleY(.9);transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0) scaleY(3);transform:translate3d(0,-2000px,0) scaleY(3)}}.animate__bounceOutUp{-webkit-animation-name:bounceOutUp;animation-name:bounceOutUp}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.animate__fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn}@-webkit-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown}@-webkit-keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInDownBig{-webkit-animation-name:fadeInDownBig;animation-name:fadeInDownBig}@-webkit-keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInLeft{-webkit-animation-name:fadeInLeft;animation-name:fadeInLeft}@-webkit-keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInLeftBig{-webkit-animation-name:fadeInLeftBig;animation-name:fadeInLeftBig}@-webkit-keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInRight{-webkit-animation-name:fadeInRight;animation-name:fadeInRight}@-webkit-keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInRightBig{-webkit-animation-name:fadeInRightBig;animation-name:fadeInRightBig}@-webkit-keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInUp{-webkit-animation-name:fadeInUp;animation-name:fadeInUp}@-webkit-keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInUpBig{-webkit-animation-name:fadeInUpBig;animation-name:fadeInUpBig}@-webkit-keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInTopLeft{-webkit-animation-name:fadeInTopLeft;animation-name:fadeInTopLeft}@-webkit-keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInTopRight{-webkit-animation-name:fadeInTopRight;animation-name:fadeInTopRight}@-webkit-keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInBottomLeft{-webkit-animation-name:fadeInBottomLeft;animation-name:fadeInBottomLeft}@-webkit-keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInBottomRight{-webkit-animation-name:fadeInBottomRight;animation-name:fadeInBottomRight}@-webkit-keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.animate__fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}@-webkit-keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.animate__fadeOutDown{-webkit-animation-name:fadeOutDown;animation-name:fadeOutDown}@-webkit-keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}@keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}.animate__fadeOutDownBig{-webkit-animation-name:fadeOutDownBig;animation-name:fadeOutDownBig}@-webkit-keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.animate__fadeOutLeft{-webkit-animation-name:fadeOutLeft;animation-name:fadeOutLeft}@-webkit-keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}@keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}.animate__fadeOutLeftBig{-webkit-animation-name:fadeOutLeftBig;animation-name:fadeOutLeftBig}@-webkit-keyframes fadeOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes fadeOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.animate__fadeOutRight{-webkit-animation-name:fadeOutRight;animation-name:fadeOutRight}@-webkit-keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}@keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}.animate__fadeOutRightBig{-webkit-animation-name:fadeOutRightBig;animation-name:fadeOutRightBig}@-webkit-keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.animate__fadeOutUp{-webkit-animation-name:fadeOutUp;animation-name:fadeOutUp}@-webkit-keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}@keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}.animate__fadeOutUpBig{-webkit-animation-name:fadeOutUpBig;animation-name:fadeOutUpBig}@-webkit-keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}@keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}.animate__fadeOutTopLeft{-webkit-animation-name:fadeOutTopLeft;animation-name:fadeOutTopLeft}@-webkit-keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}@keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}.animate__fadeOutTopRight{-webkit-animation-name:fadeOutTopRight;animation-name:fadeOutTopRight}@-webkit-keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}@keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}.animate__fadeOutBottomRight{-webkit-animation-name:fadeOutBottomRight;animation-name:fadeOutBottomRight}@-webkit-keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}@keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}.animate__fadeOutBottomLeft{-webkit-animation-name:fadeOutBottomLeft;animation-name:fadeOutBottomLeft}@-webkit-keyframes flip{0%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,-360deg);transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(-360deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}@keyframes flip{0%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,-360deg);transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(-360deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}.animate__animated.animate__flip{-webkit-backface-visibility:visible;backface-visibility:visible;-webkit-animation-name:flip;animation-name:flip}@-webkit-keyframes flipInX{0%{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(1,0,0,10deg);transform:perspective(400px) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInX{0%{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(1,0,0,10deg);transform:perspective(400px) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.animate__flipInX{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInX;animation-name:flipInX}@-webkit-keyframes flipInY{0%{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-20deg);transform:perspective(400px) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0,1,0,10deg);transform:perspective(400px) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInY{0%{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-20deg);transform:perspective(400px) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0,1,0,10deg);transform:perspective(400px) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.animate__flipInY{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInY;animation-name:flipInY}@-webkit-keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotateX(90deg);opacity:0}}@keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotateX(90deg);opacity:0}}.animate__flipOutX{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-animation-name:flipOutX;animation-name:flipOutX;-webkit-backface-visibility:visible!important;backface-visibility:visible!important}@-webkit-keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-15deg);transform:perspective(400px) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotateY(90deg);opacity:0}}@keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-15deg);transform:perspective(400px) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotateY(90deg);opacity:0}}.animate__flipOutY{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipOutY;animation-name:flipOutY}@-webkit-keyframes lightSpeedInRight{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skew(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skew(-5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes lightSpeedInRight{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skew(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skew(-5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__lightSpeedInRight{-webkit-animation-name:lightSpeedInRight;animation-name:lightSpeedInRight;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedInLeft{0%{-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{-webkit-transform:skewX(-20deg);transform:skew(-20deg);opacity:1}80%{-webkit-transform:skewX(5deg);transform:skew(5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes lightSpeedInLeft{0%{-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{-webkit-transform:skewX(-20deg);transform:skew(-20deg);opacity:1}80%{-webkit-transform:skewX(5deg);transform:skew(5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__lightSpeedInLeft{-webkit-animation-name:lightSpeedInLeft;animation-name:lightSpeedInLeft;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedOutRight{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skew(30deg);opacity:0}}@keyframes lightSpeedOutRight{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skew(30deg);opacity:0}}.animate__lightSpeedOutRight{-webkit-animation-name:lightSpeedOutRight;animation-name:lightSpeedOutRight;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes lightSpeedOutLeft{0%{opacity:1}to{-webkit-transform:translate3d(-100%,0,0) skewX(-30deg);transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}@keyframes lightSpeedOutLeft{0%{opacity:1}to{-webkit-transform:translate3d(-100%,0,0) skewX(-30deg);transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}.animate__lightSpeedOutLeft{-webkit-animation-name:lightSpeedOutLeft;animation-name:lightSpeedOutLeft;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes rotateIn{0%{-webkit-transform:rotate3d(0,0,1,-200deg);transform:rotate3d(0,0,1,-200deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateIn{0%{-webkit-transform:rotate3d(0,0,1,-200deg);transform:rotate3d(0,0,1,-200deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateIn{-webkit-animation-name:rotateIn;animation-name:rotateIn;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateInDownLeft{0%{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInDownLeft{0%{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInDownLeft{-webkit-animation-name:rotateInDownLeft;animation-name:rotateInDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInDownRight{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInDownRight{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInDownRight{-webkit-animation-name:rotateInDownRight;animation-name:rotateInDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateInUpLeft{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInUpLeft{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInUpLeft{-webkit-animation-name:rotateInUpLeft;animation-name:rotateInUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInUpRight{0%{-webkit-transform:rotate3d(0,0,1,-90deg);transform:rotate3d(0,0,1,-90deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInUpRight{0%{-webkit-transform:rotate3d(0,0,1,-90deg);transform:rotate3d(0,0,1,-90deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInUpRight{-webkit-animation-name:rotateInUpRight;animation-name:rotateInUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOut{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,200deg);transform:rotate3d(0,0,1,200deg);opacity:0}}@keyframes rotateOut{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,200deg);transform:rotate3d(0,0,1,200deg);opacity:0}}.animate__rotateOut{-webkit-animation-name:rotateOut;animation-name:rotateOut;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateOutDownLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}}@keyframes rotateOutDownLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}}.animate__rotateOutDownLeft{-webkit-animation-name:rotateOutDownLeft;animation-name:rotateOutDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutDownRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutDownRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}.animate__rotateOutDownRight{-webkit-animation-name:rotateOutDownRight;animation-name:rotateOutDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOutUpLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutUpLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}.animate__rotateOutUpLeft{-webkit-animation-name:rotateOutUpLeft;animation-name:rotateOutUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutUpRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,90deg);transform:rotate3d(0,0,1,90deg);opacity:0}}@keyframes rotateOutUpRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,90deg);transform:rotate3d(0,0,1,90deg);opacity:0}}.animate__rotateOutUpRight{-webkit-animation-name:rotateOutUpRight;animation-name:rotateOutUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate3d(0,0,1,80deg);transform:rotate3d(0,0,1,80deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate3d(0,0,1,60deg);transform:rotate3d(0,0,1,60deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}@keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate3d(0,0,1,80deg);transform:rotate3d(0,0,1,80deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate3d(0,0,1,60deg);transform:rotate3d(0,0,1,60deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}.animate__hinge{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration) * 2);animation-duration:calc(var(--animate-duration) * 2);-webkit-animation-name:hinge;animation-name:hinge;-webkit-transform-origin:top left;transform-origin:top left}@-webkit-keyframes jackInTheBox{0%{opacity:0;-webkit-transform:scale(.1) rotate(30deg);transform:scale(.1) rotate(30deg);-webkit-transform-origin:center bottom;transform-origin:center bottom}50%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}70%{-webkit-transform:rotate(3deg);transform:rotate(3deg)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes jackInTheBox{0%{opacity:0;-webkit-transform:scale(.1) rotate(30deg);transform:scale(.1) rotate(30deg);-webkit-transform-origin:center bottom;transform-origin:center bottom}50%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}70%{-webkit-transform:rotate(3deg);transform:rotate(3deg)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.animate__jackInTheBox{-webkit-animation-name:jackInTheBox;animation-name:jackInTheBox}@-webkit-keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg);transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg);transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__rollIn{-webkit-animation-name:rollIn;animation-name:rollIn}@-webkit-keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg);transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}@keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg);transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}.animate__rollOut{-webkit-animation-name:rollOut;animation-name:rollOut}@-webkit-keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}.animate__zoomIn{-webkit-animation-name:zoomIn;animation-name:zoomIn}@-webkit-keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInDown{-webkit-animation-name:zoomInDown;animation-name:zoomInDown}@-webkit-keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInLeft{-webkit-animation-name:zoomInLeft;animation-name:zoomInLeft}@-webkit-keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInRight{-webkit-animation-name:zoomInRight;animation-name:zoomInRight}@-webkit-keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInUp{-webkit-animation-name:zoomInUp;animation-name:zoomInUp}@-webkit-keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}.animate__zoomOut{-webkit-animation-name:zoomOut;animation-name:zoomOut}@-webkit-keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomOutDown{-webkit-animation-name:zoomOutDown;animation-name:zoomOutDown;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0)}}@keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0)}}.animate__zoomOutLeft{-webkit-animation-name:zoomOutLeft;animation-name:zoomOutLeft;-webkit-transform-origin:left center;transform-origin:left center}@-webkit-keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0)}}@keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0)}}.animate__zoomOutRight{-webkit-animation-name:zoomOutRight;animation-name:zoomOutRight;-webkit-transform-origin:right center;transform-origin:right center}@-webkit-keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomOutUp{-webkit-animation-name:zoomOutUp;animation-name:zoomOutUp;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInDown{-webkit-animation-name:slideInDown;animation-name:slideInDown}@-webkit-keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInLeft{-webkit-animation-name:slideInLeft;animation-name:slideInLeft}@-webkit-keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInRight{-webkit-animation-name:slideInRight;animation-name:slideInRight}@-webkit-keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}@-webkit-keyframes slideOutDown{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes slideOutDown{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.animate__slideOutDown{-webkit-animation-name:slideOutDown;animation-name:slideOutDown}@-webkit-keyframes slideOutLeft{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes slideOutLeft{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.animate__slideOutLeft{-webkit-animation-name:slideOutLeft;animation-name:slideOutLeft}@-webkit-keyframes slideOutRight{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes slideOutRight{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.animate__slideOutRight{-webkit-animation-name:slideOutRight;animation-name:slideOutRight}@-webkit-keyframes slideOutUp{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes slideOutUp{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.animate__slideOutUp{-webkit-animation-name:slideOutUp;animation-name:slideOutUp}.dropdown-menu[data-v-3fa1c090]{right:1rem;min-width:200px}.dropdown-item.disabled[data-v-3fa1c090],.dropdown-item[data-v-3fa1c090]:disabled{opacity:.7}.confirmDelete[data-v-3fa1c090]{padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x)}.slide-fade-leave-active[data-v-116e739e],.slide-fade-enter-active[data-v-116e739e]{transition:all .2s cubic-bezier(.82,.58,.17,1.3)}.slide-fade-enter-from[data-v-116e739e],.slide-fade-leave-to[data-v-116e739e]{transform:translateY(20px);opacity:0;filter:blur(3px)}.subMenuBtn.active[data-v-116e739e]{background-color:#ffffff20}.peerCard[data-v-116e739e]{transition:box-shadow .1s cubic-bezier(.82,.58,.17,.9)}.peerCard[data-v-116e739e]:hover{box-shadow:var(--bs-box-shadow)!important}.toggleShowKey[data-v-a63ae8cb]{position:absolute;top:35px;right:12px}.list-move[data-v-6d5fc831],.list-enter-active[data-v-6d5fc831],.list-leave-active[data-v-6d5fc831]{transition:all .3s ease}.list-enter-from[data-v-6d5fc831],.list-leave-to[data-v-6d5fc831]{opacity:0;transform:translateY(10px)}.list-leave-active[data-v-6d5fc831]{position:absolute}.peerSettingContainer[data-v-17eb547c]{background-color:#00000060;z-index:9998}div[data-v-17eb547c]{transition:.2s ease-in-out}.inactiveField[data-v-17eb547c]{opacity:.4}.card[data-v-17eb547c]{max-height:100%}.btn.disabled[data-v-6a5aba2a]{opacity:1;background-color:#0d6efd17;border-color:transparent}[data-v-8f3f1b93]{font-size:.875rem}input[data-v-8f3f1b93]{padding:.1rem .4rem}input[data-v-8f3f1b93]:disabled{border-color:transparent;background-color:#0d6efd17;color:#0d6efd}.dp__main[data-v-8f3f1b93]{width:auto;flex-grow:1;--dp-input-padding: 2.5px 30px 2.5px 12px;--dp-border-radius: .5rem}.schedulePeerJobTransition-move[data-v-5bbdd42b],.schedulePeerJobTransition-enter-active[data-v-5bbdd42b],.schedulePeerJobTransition-leave-active[data-v-5bbdd42b]{transition:all .4s cubic-bezier(.82,.58,.17,.9)}.schedulePeerJobTransition-enter-from[data-v-5bbdd42b],.schedulePeerJobTransition-leave-to[data-v-5bbdd42b]{opacity:0;transform:scale(.9)}.schedulePeerJobTransition-leave-active[data-v-5bbdd42b]{position:absolute;width:100%}.card[data-v-8e40593b]{height:100%}.dashboardModal[data-v-8e40593b]{height:calc(100% - 1rem)!important}@media screen and (min-height: 700px){.card[data-v-8e40593b]{height:700px}}.peerBtn[data-v-8e40593b]{border:var(--bs-border-width) solid var(--bs-border-color)}.peerBtn.active[data-v-8e40593b]{border:var(--bs-border-width) solid var(--bs-body-color)}.confirmationContainer[data-v-61688b74]{background-color:#00000087;z-index:9999;backdrop-filter:blur(1px);-webkit-backdrop-filter:blur(1px)}.list1-enter-active[data-v-61688b74]{transition-delay:var(--df360394)!important}.card[data-v-b454707b],.title[data-v-b454707b]{width:100%}@media screen and (min-width: 700px){.card[data-v-b454707b],.title[data-v-b454707b]{width:700px}}.animate__fadeInUp[data-v-b454707b]{animation-timing-function:cubic-bezier(.42,0,.22,1)}.list1-move[data-v-b454707b],.list1-enter-active[data-v-b454707b],.list1-leave-active[data-v-b454707b]{transition:all .5s cubic-bezier(.42,0,.22,1)}.list1-enter-from[data-v-b454707b],.list1-leave-to[data-v-b454707b]{opacity:0;transform:translateY(30px)}.list1-leave-active[data-v-b454707b]{width:100%;position:absolute}.peerNav .nav-link{&.active[data-v-49de95e7]{background-color:#efefef}}:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.ol-overviewmap .ol-viewport:hover{cursor:pointer}.ol-layer canvas{border-radius:var(--bs-border-radius-lg)!important}#map{height:300px}.pingPlaceholder[data-v-f5cd36ce]{width:100%;height:79.98px}.ping-move[data-v-f5cd36ce],.ping-enter-active[data-v-f5cd36ce],.ping-leave-active[data-v-f5cd36ce]{transition:all .4s cubic-bezier(.82,.58,.17,.9)}.ping-leave-active[data-v-f5cd36ce]{position:absolute;width:100%}.ping-enter-from[data-v-f5cd36ce],.ping-leave-to[data-v-f5cd36ce]{opacity:0;//transform: scale(1.1);filter:blur(3px)}.pingPlaceholder[data-v-6d6cffc9]{width:100%;height:40px}.ping-leave-active[data-v-6d6cffc9]{position:absolute}table th[data-v-6d6cffc9],table td[data-v-6d6cffc9]{padding:.5rem}.table[data-v-6d6cffc9]>:not(caption)>*>*{background-color:transparent!important}.ping-move[data-v-6d6cffc9],.ping-enter-active[data-v-6d6cffc9],.ping-leave-active[data-v-6d6cffc9]{transition:all .4s cubic-bezier(.82,.58,.17,.9)}.ping-leave-active[data-v-6d6cffc9]{position:absolute;width:100%}.ping-enter-from[data-v-6d6cffc9],.ping-leave-to[data-v-6d6cffc9]{opacity:0;//transform: scale(1.1);filter:blur(3px)}.animate__fadeInUp[data-v-1b44aacd]{animation-timing-function:cubic-bezier(.42,0,.22,1)}.dropdownIcon[data-v-35612fa2]{transition:all .2s ease-in-out}.dropdownIcon.active[data-v-35612fa2]{transform:rotate(180deg)}.steps{&[data-v-1dc71439]{transition:all .3s ease-in-out;opacity:.3}&.active[data-v-1dc71439]{opacity:1}}.app-enter-active[data-v-ca898237],.app-leave-active[data-v-ca898237]{transition:all .7s cubic-bezier(.82,.58,.17,1)}.app-enter-from[data-v-ca898237],.app-leave-to[data-v-ca898237]{opacity:0;transform:scale(1.1)}@media screen and (min-width: 768px){.navbar[data-v-ca898237]{display:none}} diff --git a/src/static/app/dist/assets/index.js b/src/static/app/dist/assets/index.js index 75a2c72..1c57963 100644 --- a/src/static/app/dist/assets/index.js +++ b/src/static/app/dist/assets/index.js @@ -1,32 +1,32 @@ -(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(s){if(s.ep)return;s.ep=!0;const r=n(s);fetch(s.href,r)}})();var sx=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function VM(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function zM(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var s=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,s.get?s:{enumerable:!0,get:function(){return t[i]}})}),n}var WM={exports:{}},ri="top",Mi="bottom",Ii="right",oi="left",ef="auto",Kl=[ri,Mi,Ii,oi],aa="start",gl="end",rx="clippingParents",Ym="viewport",Ua="popper",ox="reference",Dp=Kl.reduce(function(t,e){return t.concat([e+"-"+aa,e+"-"+gl])},[]),Hm=[].concat(Kl,[ef]).reduce(function(t,e){return t.concat([e,e+"-"+aa,e+"-"+gl])},[]),ax="beforeRead",lx="read",cx="afterRead",ux="beforeMain",dx="main",hx="afterMain",fx="beforeWrite",gx="write",px="afterWrite",mx=[ax,lx,cx,ux,dx,hx,fx,gx,px];function Ns(t){return t?(t.nodeName||"").toLowerCase():null}function Di(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function la(t){var e=Di(t).Element;return t instanceof e||t instanceof Element}function Yi(t){var e=Di(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function jm(t){if(typeof ShadowRoot>"u")return!1;var e=Di(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function YM(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var i=e.styles[n]||{},s=e.attributes[n]||{},r=e.elements[n];!Yi(r)||!Ns(r)||(Object.assign(r.style,i),Object.keys(s).forEach(function(o){var a=s[o];a===!1?r.removeAttribute(o):r.setAttribute(o,a===!0?"":a)}))})}function HM(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(i){var s=e.elements[i],r=e.attributes[i]||{},o=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:n[i]),a=o.reduce(function(l,c){return l[c]="",l},{});!Yi(s)||!Ns(s)||(Object.assign(s.style,a),Object.keys(r).forEach(function(l){s.removeAttribute(l)}))})}}const Km={name:"applyStyles",enabled:!0,phase:"write",fn:YM,effect:HM,requires:["computeStyles"]};function Rs(t){return t.split("-")[0]}var ea=Math.max,gh=Math.min,pl=Math.round;function Rp(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function _x(){return!/^((?!chrome|android).)*safari/i.test(Rp())}function ml(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var i=t.getBoundingClientRect(),s=1,r=1;e&&Yi(t)&&(s=t.offsetWidth>0&&pl(i.width)/t.offsetWidth||1,r=t.offsetHeight>0&&pl(i.height)/t.offsetHeight||1);var o=la(t)?Di(t):window,a=o.visualViewport,l=!_x()&&n,c=(i.left+(l&&a?a.offsetLeft:0))/s,u=(i.top+(l&&a?a.offsetTop:0))/r,d=i.width/s,h=i.height/r;return{width:d,height:h,top:u,right:c+d,bottom:u+h,left:c,x:c,y:u}}function Um(t){var e=ml(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function vx(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&jm(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function _r(t){return Di(t).getComputedStyle(t)}function jM(t){return["table","td","th"].indexOf(Ns(t))>=0}function fo(t){return((la(t)?t.ownerDocument:t.document)||window.document).documentElement}function tf(t){return Ns(t)==="html"?t:t.assignedSlot||t.parentNode||(jm(t)?t.host:null)||fo(t)}function Vy(t){return!Yi(t)||_r(t).position==="fixed"?null:t.offsetParent}function KM(t){var e=/firefox/i.test(Rp()),n=/Trident/i.test(Rp());if(n&&Yi(t)){var i=_r(t);if(i.position==="fixed")return null}var s=tf(t);for(jm(s)&&(s=s.host);Yi(s)&&["html","body"].indexOf(Ns(s))<0;){var r=_r(s);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||e&&r.willChange==="filter"||e&&r.filter&&r.filter!=="none")return s;s=s.parentNode}return null}function $u(t){for(var e=Di(t),n=Vy(t);n&&jM(n)&&_r(n).position==="static";)n=Vy(n);return n&&(Ns(n)==="html"||Ns(n)==="body"&&_r(n).position==="static")?e:n||KM(t)||e}function Gm(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Rc(t,e,n){return ea(t,gh(e,n))}function UM(t,e,n){var i=Rc(t,e,n);return i>n?n:i}function yx(){return{top:0,right:0,bottom:0,left:0}}function bx(t){return Object.assign({},yx(),t)}function wx(t,e){return e.reduce(function(n,i){return n[i]=t,n},{})}var GM=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,bx(typeof e!="number"?e:wx(e,Kl))};function XM(t){var e,n=t.state,i=t.name,s=t.options,r=n.elements.arrow,o=n.modifiersData.popperOffsets,a=Rs(n.placement),l=Gm(a),c=[oi,Ii].indexOf(a)>=0,u=c?"height":"width";if(!(!r||!o)){var d=GM(s.padding,n),h=Um(r),g=l==="y"?ri:oi,p=l==="y"?Mi:Ii,m=n.rects.reference[u]+n.rects.reference[l]-o[l]-n.rects.popper[u],v=o[l]-n.rects.reference[l],y=$u(r),x=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,E=m/2-v/2,w=d[g],b=x-h[u]-d[p],C=x/2-h[u]/2+E,k=Rc(w,C,b),T=l;n.modifiersData[i]=(e={},e[T]=k,e.centerOffset=k-C,e)}}function qM(t){var e=t.state,n=t.options,i=n.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=e.elements.popper.querySelector(s),!s)||vx(e.elements.popper,s)&&(e.elements.arrow=s))}const xx={name:"arrow",enabled:!0,phase:"main",fn:XM,effect:qM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _l(t){return t.split("-")[1]}var ZM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function JM(t,e){var n=t.x,i=t.y,s=e.devicePixelRatio||1;return{x:pl(n*s)/s||0,y:pl(i*s)/s||0}}function zy(t){var e,n=t.popper,i=t.popperRect,s=t.placement,r=t.variation,o=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,d=t.isFixed,h=o.x,g=h===void 0?0:h,p=o.y,m=p===void 0?0:p,v=typeof u=="function"?u({x:g,y:m}):{x:g,y:m};g=v.x,m=v.y;var y=o.hasOwnProperty("x"),x=o.hasOwnProperty("y"),E=oi,w=ri,b=window;if(c){var C=$u(n),k="clientHeight",T="clientWidth";if(C===Di(n)&&(C=fo(n),_r(C).position!=="static"&&a==="absolute"&&(k="scrollHeight",T="scrollWidth")),C=C,s===ri||(s===oi||s===Ii)&&r===gl){w=Mi;var A=d&&C===b&&b.visualViewport?b.visualViewport.height:C[k];m-=A-i.height,m*=l?1:-1}if(s===oi||(s===ri||s===Mi)&&r===gl){E=Ii;var I=d&&C===b&&b.visualViewport?b.visualViewport.width:C[T];g-=I-i.width,g*=l?1:-1}}var V=Object.assign({position:a},c&&ZM),Y=u===!0?JM({x:g,y:m},Di(n)):{x:g,y:m};if(g=Y.x,m=Y.y,l){var ne;return Object.assign({},V,(ne={},ne[w]=x?"0":"",ne[E]=y?"0":"",ne.transform=(b.devicePixelRatio||1)<=1?"translate("+g+"px, "+m+"px)":"translate3d("+g+"px, "+m+"px, 0)",ne))}return Object.assign({},V,(e={},e[w]=x?m+"px":"",e[E]=y?g+"px":"",e.transform="",e))}function QM(t){var e=t.state,n=t.options,i=n.gpuAcceleration,s=i===void 0?!0:i,r=n.adaptive,o=r===void 0?!0:r,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Rs(e.placement),variation:_l(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,zy(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,zy(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Xm={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:QM,data:{}};var pd={passive:!0};function eI(t){var e=t.state,n=t.instance,i=t.options,s=i.scroll,r=s===void 0?!0:s,o=i.resize,a=o===void 0?!0:o,l=Di(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&c.forEach(function(u){u.addEventListener("scroll",n.update,pd)}),a&&l.addEventListener("resize",n.update,pd),function(){r&&c.forEach(function(u){u.removeEventListener("scroll",n.update,pd)}),a&&l.removeEventListener("resize",n.update,pd)}}const qm={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:eI,data:{}};var tI={left:"right",right:"left",bottom:"top",top:"bottom"};function th(t){return t.replace(/left|right|bottom|top/g,function(e){return tI[e]})}var nI={start:"end",end:"start"};function Wy(t){return t.replace(/start|end/g,function(e){return nI[e]})}function Zm(t){var e=Di(t),n=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:n,scrollTop:i}}function Jm(t){return ml(fo(t)).left+Zm(t).scrollLeft}function iI(t,e){var n=Di(t),i=fo(t),s=n.visualViewport,r=i.clientWidth,o=i.clientHeight,a=0,l=0;if(s){r=s.width,o=s.height;var c=_x();(c||!c&&e==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:r,height:o,x:a+Jm(t),y:l}}function sI(t){var e,n=fo(t),i=Zm(t),s=(e=t.ownerDocument)==null?void 0:e.body,r=ea(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=ea(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+Jm(t),l=-i.scrollTop;return _r(s||n).direction==="rtl"&&(a+=ea(n.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:a,y:l}}function Qm(t){var e=_r(t),n=e.overflow,i=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function Ex(t){return["html","body","#document"].indexOf(Ns(t))>=0?t.ownerDocument.body:Yi(t)&&Qm(t)?t:Ex(tf(t))}function $c(t,e){var n;e===void 0&&(e=[]);var i=Ex(t),s=i===((n=t.ownerDocument)==null?void 0:n.body),r=Di(i),o=s?[r].concat(r.visualViewport||[],Qm(i)?i:[]):i,a=e.concat(o);return s?a:a.concat($c(tf(o)))}function $p(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function rI(t,e){var n=ml(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Yy(t,e,n){return e===Ym?$p(iI(t,n)):la(e)?rI(e,n):$p(sI(fo(t)))}function oI(t){var e=$c(tf(t)),n=["absolute","fixed"].indexOf(_r(t).position)>=0,i=n&&Yi(t)?$u(t):t;return la(i)?e.filter(function(s){return la(s)&&vx(s,i)&&Ns(s)!=="body"}):[]}function aI(t,e,n,i){var s=e==="clippingParents"?oI(t):[].concat(e),r=[].concat(s,[n]),o=r[0],a=r.reduce(function(l,c){var u=Yy(t,c,i);return l.top=ea(u.top,l.top),l.right=gh(u.right,l.right),l.bottom=gh(u.bottom,l.bottom),l.left=ea(u.left,l.left),l},Yy(t,o,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Cx(t){var e=t.reference,n=t.element,i=t.placement,s=i?Rs(i):null,r=i?_l(i):null,o=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,l;switch(s){case ri:l={x:o,y:e.y-n.height};break;case Mi:l={x:o,y:e.y+e.height};break;case Ii:l={x:e.x+e.width,y:a};break;case oi:l={x:e.x-n.width,y:a};break;default:l={x:e.x,y:e.y}}var c=s?Gm(s):null;if(c!=null){var u=c==="y"?"height":"width";switch(r){case aa:l[c]=l[c]-(e[u]/2-n[u]/2);break;case gl:l[c]=l[c]+(e[u]/2-n[u]/2);break}}return l}function vl(t,e){e===void 0&&(e={});var n=e,i=n.placement,s=i===void 0?t.placement:i,r=n.strategy,o=r===void 0?t.strategy:r,a=n.boundary,l=a===void 0?rx:a,c=n.rootBoundary,u=c===void 0?Ym:c,d=n.elementContext,h=d===void 0?Ua:d,g=n.altBoundary,p=g===void 0?!1:g,m=n.padding,v=m===void 0?0:m,y=bx(typeof v!="number"?v:wx(v,Kl)),x=h===Ua?ox:Ua,E=t.rects.popper,w=t.elements[p?x:h],b=aI(la(w)?w:w.contextElement||fo(t.elements.popper),l,u,o),C=ml(t.elements.reference),k=Cx({reference:C,element:E,strategy:"absolute",placement:s}),T=$p(Object.assign({},E,k)),A=h===Ua?T:C,I={top:b.top-A.top+y.top,bottom:A.bottom-b.bottom+y.bottom,left:b.left-A.left+y.left,right:A.right-b.right+y.right},V=t.modifiersData.offset;if(h===Ua&&V){var Y=V[s];Object.keys(I).forEach(function(ne){var N=[Ii,Mi].indexOf(ne)>=0?1:-1,B=[ri,Mi].indexOf(ne)>=0?"y":"x";I[ne]+=Y[B]*N})}return I}function lI(t,e){e===void 0&&(e={});var n=e,i=n.placement,s=n.boundary,r=n.rootBoundary,o=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Hm:l,u=_l(i),d=u?a?Dp:Dp.filter(function(p){return _l(p)===u}):Kl,h=d.filter(function(p){return c.indexOf(p)>=0});h.length===0&&(h=d);var g=h.reduce(function(p,m){return p[m]=vl(t,{placement:m,boundary:s,rootBoundary:r,padding:o})[Rs(m)],p},{});return Object.keys(g).sort(function(p,m){return g[p]-g[m]})}function cI(t){if(Rs(t)===ef)return[];var e=th(t);return[Wy(t),e,Wy(e)]}function uI(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var s=n.mainAxis,r=s===void 0?!0:s,o=n.altAxis,a=o===void 0?!0:o,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,p=g===void 0?!0:g,m=n.allowedAutoPlacements,v=e.options.placement,y=Rs(v),x=y===v,E=l||(x||!p?[th(v)]:cI(v)),w=[v].concat(E).reduce(function(D,ee){return D.concat(Rs(ee)===ef?lI(e,{placement:ee,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):ee)},[]),b=e.rects.reference,C=e.rects.popper,k=new Map,T=!0,A=w[0],I=0;I=0,B=N?"width":"height",R=vl(e,{placement:V,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),z=N?ne?Ii:oi:ne?Mi:ri;b[B]>C[B]&&(z=th(z));var X=th(z),J=[];if(r&&J.push(R[Y]<=0),a&&J.push(R[z]<=0,R[X]<=0),J.every(function(D){return D})){A=V,T=!1;break}k.set(V,J)}if(T)for(var H=p?3:1,ce=function(ee){var ue=w.find(function($){var le=k.get($);if(le)return le.slice(0,ee).every(function(de){return de})});if(ue)return A=ue,"break"},ie=H;ie>0;ie--){var te=ce(ie);if(te==="break")break}e.placement!==A&&(e.modifiersData[i]._skip=!0,e.placement=A,e.reset=!0)}}const Sx={name:"flip",enabled:!0,phase:"main",fn:uI,requiresIfExists:["offset"],data:{_skip:!1}};function Hy(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function jy(t){return[ri,Ii,Mi,oi].some(function(e){return t[e]>=0})}function dI(t){var e=t.state,n=t.name,i=e.rects.reference,s=e.rects.popper,r=e.modifiersData.preventOverflow,o=vl(e,{elementContext:"reference"}),a=vl(e,{altBoundary:!0}),l=Hy(o,i),c=Hy(a,s,r),u=jy(l),d=jy(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const kx={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:dI};function hI(t,e,n){var i=Rs(t),s=[oi,ri].indexOf(i)>=0?-1:1,r=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=r[0],a=r[1];return o=o||0,a=(a||0)*s,[oi,Ii].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}function fI(t){var e=t.state,n=t.options,i=t.name,s=n.offset,r=s===void 0?[0,0]:s,o=Hm.reduce(function(u,d){return u[d]=hI(d,e.rects,r),u},{}),a=o[e.placement],l=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=o}const Tx={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:fI};function gI(t){var e=t.state,n=t.name;e.modifiersData[n]=Cx({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const e_={name:"popperOffsets",enabled:!0,phase:"read",fn:gI,data:{}};function pI(t){return t==="x"?"y":"x"}function mI(t){var e=t.state,n=t.options,i=t.name,s=n.mainAxis,r=s===void 0?!0:s,o=n.altAxis,a=o===void 0?!1:o,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,h=n.tether,g=h===void 0?!0:h,p=n.tetherOffset,m=p===void 0?0:p,v=vl(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=Rs(e.placement),x=_l(e.placement),E=!x,w=Gm(y),b=pI(w),C=e.modifiersData.popperOffsets,k=e.rects.reference,T=e.rects.popper,A=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,I=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),V=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,Y={x:0,y:0};if(C){if(r){var ne,N=w==="y"?ri:oi,B=w==="y"?Mi:Ii,R=w==="y"?"height":"width",z=C[w],X=z+v[N],J=z-v[B],H=g?-T[R]/2:0,ce=x===aa?k[R]:T[R],ie=x===aa?-T[R]:-k[R],te=e.elements.arrow,D=g&&te?Um(te):{width:0,height:0},ee=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:yx(),ue=ee[N],$=ee[B],le=Rc(0,k[R],D[R]),de=E?k[R]/2-H-le-ue-I.mainAxis:ce-le-ue-I.mainAxis,xe=E?-k[R]/2+H+le+$+I.mainAxis:ie+le+$+I.mainAxis,W=e.elements.arrow&&$u(e.elements.arrow),fe=W?w==="y"?W.clientTop||0:W.clientLeft||0:0,S=(ne=V?.[w])!=null?ne:0,O=z+de-S-fe,K=z+xe-S,U=Rc(g?gh(X,O):X,z,g?ea(J,K):J);C[w]=U,Y[w]=U-z}if(a){var oe,j=w==="x"?ri:oi,re=w==="x"?Mi:Ii,Q=C[b],ge=b==="y"?"height":"width",be=Q+v[j],we=Q-v[re],Pe=[ri,oi].indexOf(y)!==-1,Ie=(oe=V?.[b])!=null?oe:0,We=Pe?be:Q-k[ge]-T[ge]-Ie+I.altAxis,je=Pe?Q+k[ge]+T[ge]-Ie-I.altAxis:we,nt=g&&Pe?UM(We,Q,je):Rc(g?We:be,Q,g?je:we);C[b]=nt,Y[b]=nt-Q}e.modifiersData[i]=Y}}const Ax={name:"preventOverflow",enabled:!0,phase:"main",fn:mI,requiresIfExists:["offset"]};function _I(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function vI(t){return t===Di(t)||!Yi(t)?Zm(t):_I(t)}function yI(t){var e=t.getBoundingClientRect(),n=pl(e.width)/t.offsetWidth||1,i=pl(e.height)/t.offsetHeight||1;return n!==1||i!==1}function bI(t,e,n){n===void 0&&(n=!1);var i=Yi(e),s=Yi(e)&&yI(e),r=fo(e),o=ml(t,s,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&((Ns(e)!=="body"||Qm(r))&&(a=vI(e)),Yi(e)?(l=ml(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):r&&(l.x=Jm(r))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function wI(t){var e=new Map,n=new Set,i=[];t.forEach(function(r){e.set(r.name,r)});function s(r){n.add(r.name);var o=[].concat(r.requires||[],r.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var l=e.get(a);l&&s(l)}}),i.push(r)}return t.forEach(function(r){n.has(r.name)||s(r)}),i}function xI(t){var e=wI(t);return mx.reduce(function(n,i){return n.concat(e.filter(function(s){return s.phase===i}))},[])}function EI(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function CI(t){var e=t.reduce(function(n,i){var s=n[i.name];return n[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,n},{});return Object.keys(e).map(function(n){return e[n]})}var Ky={placement:"bottom",modifiers:[],strategy:"absolute"};function Uy(){for(var t=arguments.length,e=new Array(t),n=0;n{for(const r of s)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(s){if(s.ep)return;s.ep=!0;const r=n(s);fetch(s.href,r)}})();var sx=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function VM(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function zM(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var s=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,s.get?s:{enumerable:!0,get:function(){return t[i]}})}),n}var WM={exports:{}},ri="top",Mi="bottom",Ii="right",oi="left",ef="auto",Kl=[ri,Mi,Ii,oi],aa="start",gl="end",rx="clippingParents",Ym="viewport",Ua="popper",ox="reference",Dp=Kl.reduce(function(t,e){return t.concat([e+"-"+aa,e+"-"+gl])},[]),Hm=[].concat(Kl,[ef]).reduce(function(t,e){return t.concat([e,e+"-"+aa,e+"-"+gl])},[]),ax="beforeRead",lx="read",cx="afterRead",ux="beforeMain",dx="main",hx="afterMain",fx="beforeWrite",gx="write",px="afterWrite",mx=[ax,lx,cx,ux,dx,hx,fx,gx,px];function Ns(t){return t?(t.nodeName||"").toLowerCase():null}function Di(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function la(t){var e=Di(t).Element;return t instanceof e||t instanceof Element}function Yi(t){var e=Di(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function jm(t){if(typeof ShadowRoot>"u")return!1;var e=Di(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function YM(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var i=e.styles[n]||{},s=e.attributes[n]||{},r=e.elements[n];!Yi(r)||!Ns(r)||(Object.assign(r.style,i),Object.keys(s).forEach(function(o){var a=s[o];a===!1?r.removeAttribute(o):r.setAttribute(o,a===!0?"":a)}))})}function HM(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(i){var s=e.elements[i],r=e.attributes[i]||{},o=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:n[i]),a=o.reduce(function(l,c){return l[c]="",l},{});!Yi(s)||!Ns(s)||(Object.assign(s.style,a),Object.keys(r).forEach(function(l){s.removeAttribute(l)}))})}}const Km={name:"applyStyles",enabled:!0,phase:"write",fn:YM,effect:HM,requires:["computeStyles"]};function Rs(t){return t.split("-")[0]}var ea=Math.max,gh=Math.min,pl=Math.round;function Rp(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function _x(){return!/^((?!chrome|android).)*safari/i.test(Rp())}function ml(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var i=t.getBoundingClientRect(),s=1,r=1;e&&Yi(t)&&(s=t.offsetWidth>0&&pl(i.width)/t.offsetWidth||1,r=t.offsetHeight>0&&pl(i.height)/t.offsetHeight||1);var o=la(t)?Di(t):window,a=o.visualViewport,l=!_x()&&n,c=(i.left+(l&&a?a.offsetLeft:0))/s,u=(i.top+(l&&a?a.offsetTop:0))/r,d=i.width/s,f=i.height/r;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function Um(t){var e=ml(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function vx(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&jm(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function _r(t){return Di(t).getComputedStyle(t)}function jM(t){return["table","td","th"].indexOf(Ns(t))>=0}function fo(t){return((la(t)?t.ownerDocument:t.document)||window.document).documentElement}function tf(t){return Ns(t)==="html"?t:t.assignedSlot||t.parentNode||(jm(t)?t.host:null)||fo(t)}function Vy(t){return!Yi(t)||_r(t).position==="fixed"?null:t.offsetParent}function KM(t){var e=/firefox/i.test(Rp()),n=/Trident/i.test(Rp());if(n&&Yi(t)){var i=_r(t);if(i.position==="fixed")return null}var s=tf(t);for(jm(s)&&(s=s.host);Yi(s)&&["html","body"].indexOf(Ns(s))<0;){var r=_r(s);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||e&&r.willChange==="filter"||e&&r.filter&&r.filter!=="none")return s;s=s.parentNode}return null}function $u(t){for(var e=Di(t),n=Vy(t);n&&jM(n)&&_r(n).position==="static";)n=Vy(n);return n&&(Ns(n)==="html"||Ns(n)==="body"&&_r(n).position==="static")?e:n||KM(t)||e}function Gm(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Rc(t,e,n){return ea(t,gh(e,n))}function UM(t,e,n){var i=Rc(t,e,n);return i>n?n:i}function yx(){return{top:0,right:0,bottom:0,left:0}}function bx(t){return Object.assign({},yx(),t)}function wx(t,e){return e.reduce(function(n,i){return n[i]=t,n},{})}var GM=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,bx(typeof e!="number"?e:wx(e,Kl))};function XM(t){var e,n=t.state,i=t.name,s=t.options,r=n.elements.arrow,o=n.modifiersData.popperOffsets,a=Rs(n.placement),l=Gm(a),c=[oi,Ii].indexOf(a)>=0,u=c?"height":"width";if(!(!r||!o)){var d=GM(s.padding,n),f=Um(r),g=l==="y"?ri:oi,p=l==="y"?Mi:Ii,m=n.rects.reference[u]+n.rects.reference[l]-o[l]-n.rects.popper[u],v=o[l]-n.rects.reference[l],y=$u(r),x=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,E=m/2-v/2,w=d[g],b=x-f[u]-d[p],C=x/2-f[u]/2+E,k=Rc(w,C,b),T=l;n.modifiersData[i]=(e={},e[T]=k,e.centerOffset=k-C,e)}}function qM(t){var e=t.state,n=t.options,i=n.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=e.elements.popper.querySelector(s),!s)||vx(e.elements.popper,s)&&(e.elements.arrow=s))}const xx={name:"arrow",enabled:!0,phase:"main",fn:XM,effect:qM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _l(t){return t.split("-")[1]}var ZM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function JM(t,e){var n=t.x,i=t.y,s=e.devicePixelRatio||1;return{x:pl(n*s)/s||0,y:pl(i*s)/s||0}}function zy(t){var e,n=t.popper,i=t.popperRect,s=t.placement,r=t.variation,o=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,d=t.isFixed,f=o.x,g=f===void 0?0:f,p=o.y,m=p===void 0?0:p,v=typeof u=="function"?u({x:g,y:m}):{x:g,y:m};g=v.x,m=v.y;var y=o.hasOwnProperty("x"),x=o.hasOwnProperty("y"),E=oi,w=ri,b=window;if(c){var C=$u(n),k="clientHeight",T="clientWidth";if(C===Di(n)&&(C=fo(n),_r(C).position!=="static"&&a==="absolute"&&(k="scrollHeight",T="scrollWidth")),C=C,s===ri||(s===oi||s===Ii)&&r===gl){w=Mi;var A=d&&C===b&&b.visualViewport?b.visualViewport.height:C[k];m-=A-i.height,m*=l?1:-1}if(s===oi||(s===ri||s===Mi)&&r===gl){E=Ii;var I=d&&C===b&&b.visualViewport?b.visualViewport.width:C[T];g-=I-i.width,g*=l?1:-1}}var V=Object.assign({position:a},c&&ZM),Y=u===!0?JM({x:g,y:m},Di(n)):{x:g,y:m};if(g=Y.x,m=Y.y,l){var ne;return Object.assign({},V,(ne={},ne[w]=x?"0":"",ne[E]=y?"0":"",ne.transform=(b.devicePixelRatio||1)<=1?"translate("+g+"px, "+m+"px)":"translate3d("+g+"px, "+m+"px, 0)",ne))}return Object.assign({},V,(e={},e[w]=x?m+"px":"",e[E]=y?g+"px":"",e.transform="",e))}function QM(t){var e=t.state,n=t.options,i=n.gpuAcceleration,s=i===void 0?!0:i,r=n.adaptive,o=r===void 0?!0:r,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Rs(e.placement),variation:_l(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,zy(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,zy(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Xm={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:QM,data:{}};var pd={passive:!0};function eI(t){var e=t.state,n=t.instance,i=t.options,s=i.scroll,r=s===void 0?!0:s,o=i.resize,a=o===void 0?!0:o,l=Di(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&c.forEach(function(u){u.addEventListener("scroll",n.update,pd)}),a&&l.addEventListener("resize",n.update,pd),function(){r&&c.forEach(function(u){u.removeEventListener("scroll",n.update,pd)}),a&&l.removeEventListener("resize",n.update,pd)}}const qm={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:eI,data:{}};var tI={left:"right",right:"left",bottom:"top",top:"bottom"};function th(t){return t.replace(/left|right|bottom|top/g,function(e){return tI[e]})}var nI={start:"end",end:"start"};function Wy(t){return t.replace(/start|end/g,function(e){return nI[e]})}function Zm(t){var e=Di(t),n=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:n,scrollTop:i}}function Jm(t){return ml(fo(t)).left+Zm(t).scrollLeft}function iI(t,e){var n=Di(t),i=fo(t),s=n.visualViewport,r=i.clientWidth,o=i.clientHeight,a=0,l=0;if(s){r=s.width,o=s.height;var c=_x();(c||!c&&e==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:r,height:o,x:a+Jm(t),y:l}}function sI(t){var e,n=fo(t),i=Zm(t),s=(e=t.ownerDocument)==null?void 0:e.body,r=ea(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=ea(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+Jm(t),l=-i.scrollTop;return _r(s||n).direction==="rtl"&&(a+=ea(n.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:a,y:l}}function Qm(t){var e=_r(t),n=e.overflow,i=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function Ex(t){return["html","body","#document"].indexOf(Ns(t))>=0?t.ownerDocument.body:Yi(t)&&Qm(t)?t:Ex(tf(t))}function $c(t,e){var n;e===void 0&&(e=[]);var i=Ex(t),s=i===((n=t.ownerDocument)==null?void 0:n.body),r=Di(i),o=s?[r].concat(r.visualViewport||[],Qm(i)?i:[]):i,a=e.concat(o);return s?a:a.concat($c(tf(o)))}function $p(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function rI(t,e){var n=ml(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Yy(t,e,n){return e===Ym?$p(iI(t,n)):la(e)?rI(e,n):$p(sI(fo(t)))}function oI(t){var e=$c(tf(t)),n=["absolute","fixed"].indexOf(_r(t).position)>=0,i=n&&Yi(t)?$u(t):t;return la(i)?e.filter(function(s){return la(s)&&vx(s,i)&&Ns(s)!=="body"}):[]}function aI(t,e,n,i){var s=e==="clippingParents"?oI(t):[].concat(e),r=[].concat(s,[n]),o=r[0],a=r.reduce(function(l,c){var u=Yy(t,c,i);return l.top=ea(u.top,l.top),l.right=gh(u.right,l.right),l.bottom=gh(u.bottom,l.bottom),l.left=ea(u.left,l.left),l},Yy(t,o,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Cx(t){var e=t.reference,n=t.element,i=t.placement,s=i?Rs(i):null,r=i?_l(i):null,o=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,l;switch(s){case ri:l={x:o,y:e.y-n.height};break;case Mi:l={x:o,y:e.y+e.height};break;case Ii:l={x:e.x+e.width,y:a};break;case oi:l={x:e.x-n.width,y:a};break;default:l={x:e.x,y:e.y}}var c=s?Gm(s):null;if(c!=null){var u=c==="y"?"height":"width";switch(r){case aa:l[c]=l[c]-(e[u]/2-n[u]/2);break;case gl:l[c]=l[c]+(e[u]/2-n[u]/2);break}}return l}function vl(t,e){e===void 0&&(e={});var n=e,i=n.placement,s=i===void 0?t.placement:i,r=n.strategy,o=r===void 0?t.strategy:r,a=n.boundary,l=a===void 0?rx:a,c=n.rootBoundary,u=c===void 0?Ym:c,d=n.elementContext,f=d===void 0?Ua:d,g=n.altBoundary,p=g===void 0?!1:g,m=n.padding,v=m===void 0?0:m,y=bx(typeof v!="number"?v:wx(v,Kl)),x=f===Ua?ox:Ua,E=t.rects.popper,w=t.elements[p?x:f],b=aI(la(w)?w:w.contextElement||fo(t.elements.popper),l,u,o),C=ml(t.elements.reference),k=Cx({reference:C,element:E,strategy:"absolute",placement:s}),T=$p(Object.assign({},E,k)),A=f===Ua?T:C,I={top:b.top-A.top+y.top,bottom:A.bottom-b.bottom+y.bottom,left:b.left-A.left+y.left,right:A.right-b.right+y.right},V=t.modifiersData.offset;if(f===Ua&&V){var Y=V[s];Object.keys(I).forEach(function(ne){var N=[Ii,Mi].indexOf(ne)>=0?1:-1,B=[ri,Mi].indexOf(ne)>=0?"y":"x";I[ne]+=Y[B]*N})}return I}function lI(t,e){e===void 0&&(e={});var n=e,i=n.placement,s=n.boundary,r=n.rootBoundary,o=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Hm:l,u=_l(i),d=u?a?Dp:Dp.filter(function(p){return _l(p)===u}):Kl,f=d.filter(function(p){return c.indexOf(p)>=0});f.length===0&&(f=d);var g=f.reduce(function(p,m){return p[m]=vl(t,{placement:m,boundary:s,rootBoundary:r,padding:o})[Rs(m)],p},{});return Object.keys(g).sort(function(p,m){return g[p]-g[m]})}function cI(t){if(Rs(t)===ef)return[];var e=th(t);return[Wy(t),e,Wy(e)]}function uI(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var s=n.mainAxis,r=s===void 0?!0:s,o=n.altAxis,a=o===void 0?!0:o,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,g=n.flipVariations,p=g===void 0?!0:g,m=n.allowedAutoPlacements,v=e.options.placement,y=Rs(v),x=y===v,E=l||(x||!p?[th(v)]:cI(v)),w=[v].concat(E).reduce(function(D,ee){return D.concat(Rs(ee)===ef?lI(e,{placement:ee,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):ee)},[]),b=e.rects.reference,C=e.rects.popper,k=new Map,T=!0,A=w[0],I=0;I=0,B=N?"width":"height",R=vl(e,{placement:V,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),z=N?ne?Ii:oi:ne?Mi:ri;b[B]>C[B]&&(z=th(z));var X=th(z),J=[];if(r&&J.push(R[Y]<=0),a&&J.push(R[z]<=0,R[X]<=0),J.every(function(D){return D})){A=V,T=!1;break}k.set(V,J)}if(T)for(var H=p?3:1,ce=function(ee){var ue=w.find(function(L){var le=k.get(L);if(le)return le.slice(0,ee).every(function(de){return de})});if(ue)return A=ue,"break"},ie=H;ie>0;ie--){var te=ce(ie);if(te==="break")break}e.placement!==A&&(e.modifiersData[i]._skip=!0,e.placement=A,e.reset=!0)}}const Sx={name:"flip",enabled:!0,phase:"main",fn:uI,requiresIfExists:["offset"],data:{_skip:!1}};function Hy(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function jy(t){return[ri,Ii,Mi,oi].some(function(e){return t[e]>=0})}function dI(t){var e=t.state,n=t.name,i=e.rects.reference,s=e.rects.popper,r=e.modifiersData.preventOverflow,o=vl(e,{elementContext:"reference"}),a=vl(e,{altBoundary:!0}),l=Hy(o,i),c=Hy(a,s,r),u=jy(l),d=jy(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const kx={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:dI};function hI(t,e,n){var i=Rs(t),s=[oi,ri].indexOf(i)>=0?-1:1,r=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=r[0],a=r[1];return o=o||0,a=(a||0)*s,[oi,Ii].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}function fI(t){var e=t.state,n=t.options,i=t.name,s=n.offset,r=s===void 0?[0,0]:s,o=Hm.reduce(function(u,d){return u[d]=hI(d,e.rects,r),u},{}),a=o[e.placement],l=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=o}const Tx={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:fI};function gI(t){var e=t.state,n=t.name;e.modifiersData[n]=Cx({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const e_={name:"popperOffsets",enabled:!0,phase:"read",fn:gI,data:{}};function pI(t){return t==="x"?"y":"x"}function mI(t){var e=t.state,n=t.options,i=t.name,s=n.mainAxis,r=s===void 0?!0:s,o=n.altAxis,a=o===void 0?!1:o,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,g=f===void 0?!0:f,p=n.tetherOffset,m=p===void 0?0:p,v=vl(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=Rs(e.placement),x=_l(e.placement),E=!x,w=Gm(y),b=pI(w),C=e.modifiersData.popperOffsets,k=e.rects.reference,T=e.rects.popper,A=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,I=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),V=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,Y={x:0,y:0};if(C){if(r){var ne,N=w==="y"?ri:oi,B=w==="y"?Mi:Ii,R=w==="y"?"height":"width",z=C[w],X=z+v[N],J=z-v[B],H=g?-T[R]/2:0,ce=x===aa?k[R]:T[R],ie=x===aa?-T[R]:-k[R],te=e.elements.arrow,D=g&&te?Um(te):{width:0,height:0},ee=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:yx(),ue=ee[N],L=ee[B],le=Rc(0,k[R],D[R]),de=E?k[R]/2-H-le-ue-I.mainAxis:ce-le-ue-I.mainAxis,xe=E?-k[R]/2+H+le+L+I.mainAxis:ie+le+L+I.mainAxis,W=e.elements.arrow&&$u(e.elements.arrow),fe=W?w==="y"?W.clientTop||0:W.clientLeft||0:0,S=(ne=V?.[w])!=null?ne:0,O=z+de-S-fe,K=z+xe-S,U=Rc(g?gh(X,O):X,z,g?ea(J,K):J);C[w]=U,Y[w]=U-z}if(a){var oe,j=w==="x"?ri:oi,se=w==="x"?Mi:Ii,Q=C[b],ge=b==="y"?"height":"width",be=Q+v[j],we=Q-v[se],Pe=[ri,oi].indexOf(y)!==-1,De=(oe=V?.[b])!=null?oe:0,We=Pe?be:Q-k[ge]-T[ge]-De+I.altAxis,je=Pe?Q+k[ge]+T[ge]-De-I.altAxis:we,nt=g&&Pe?UM(We,Q,je):Rc(g?We:be,Q,g?je:we);C[b]=nt,Y[b]=nt-Q}e.modifiersData[i]=Y}}const Ax={name:"preventOverflow",enabled:!0,phase:"main",fn:mI,requiresIfExists:["offset"]};function _I(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function vI(t){return t===Di(t)||!Yi(t)?Zm(t):_I(t)}function yI(t){var e=t.getBoundingClientRect(),n=pl(e.width)/t.offsetWidth||1,i=pl(e.height)/t.offsetHeight||1;return n!==1||i!==1}function bI(t,e,n){n===void 0&&(n=!1);var i=Yi(e),s=Yi(e)&&yI(e),r=fo(e),o=ml(t,s,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&((Ns(e)!=="body"||Qm(r))&&(a=vI(e)),Yi(e)?(l=ml(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):r&&(l.x=Jm(r))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function wI(t){var e=new Map,n=new Set,i=[];t.forEach(function(r){e.set(r.name,r)});function s(r){n.add(r.name);var o=[].concat(r.requires||[],r.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var l=e.get(a);l&&s(l)}}),i.push(r)}return t.forEach(function(r){n.has(r.name)||s(r)}),i}function xI(t){var e=wI(t);return mx.reduce(function(n,i){return n.concat(e.filter(function(s){return s.phase===i}))},[])}function EI(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function CI(t){var e=t.reduce(function(n,i){var s=n[i.name];return n[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,n},{});return Object.keys(e).map(function(n){return e[n]})}var Ky={placement:"bottom",modifiers:[],strategy:"absolute"};function Uy(){for(var t=arguments.length,e=new Array(t),n=0;nG[M]})}}return _.default=G,Object.freeze(_)}const s=i(n),r=new Map,o={set(G,_,M){r.has(G)||r.set(G,new Map);const q=r.get(G);if(!q.has(_)&&q.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(q.keys())[0]}.`);return}q.set(_,M)},get(G,_){return r.has(G)&&r.get(G).get(_)||null},remove(G,_){if(!r.has(G))return;const M=r.get(G);M.delete(_),M.size===0&&r.delete(G)}},a=1e6,l=1e3,c="transitionend",u=G=>(G&&window.CSS&&window.CSS.escape&&(G=G.replace(/#([^\s"#']+)/g,(_,M)=>`#${CSS.escape(M)}`)),G),d=G=>G==null?`${G}`:Object.prototype.toString.call(G).match(/\s([a-z]+)/i)[1].toLowerCase(),h=G=>{do G+=Math.floor(Math.random()*a);while(document.getElementById(G));return G},g=G=>{if(!G)return 0;let{transitionDuration:_,transitionDelay:M}=window.getComputedStyle(G);const q=Number.parseFloat(_),ve=Number.parseFloat(M);return!q&&!ve?0:(_=_.split(",")[0],M=M.split(",")[0],(Number.parseFloat(_)+Number.parseFloat(M))*l)},p=G=>{G.dispatchEvent(new Event(c))},m=G=>!G||typeof G!="object"?!1:(typeof G.jquery<"u"&&(G=G[0]),typeof G.nodeType<"u"),v=G=>m(G)?G.jquery?G[0]:G:typeof G=="string"&&G.length>0?document.querySelector(u(G)):null,y=G=>{if(!m(G)||G.getClientRects().length===0)return!1;const _=getComputedStyle(G).getPropertyValue("visibility")==="visible",M=G.closest("details:not([open])");if(!M)return _;if(M!==G){const q=G.closest("summary");if(q&&q.parentNode!==M||q===null)return!1}return _},x=G=>!G||G.nodeType!==Node.ELEMENT_NODE||G.classList.contains("disabled")?!0:typeof G.disabled<"u"?G.disabled:G.hasAttribute("disabled")&&G.getAttribute("disabled")!=="false",E=G=>{if(!document.documentElement.attachShadow)return null;if(typeof G.getRootNode=="function"){const _=G.getRootNode();return _ instanceof ShadowRoot?_:null}return G instanceof ShadowRoot?G:G.parentNode?E(G.parentNode):null},w=()=>{},b=G=>{G.offsetHeight},C=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,k=[],T=G=>{document.readyState==="loading"?(k.length||document.addEventListener("DOMContentLoaded",()=>{for(const _ of k)_()}),k.push(G)):G()},A=()=>document.documentElement.dir==="rtl",I=G=>{T(()=>{const _=C();if(_){const M=G.NAME,q=_.fn[M];_.fn[M]=G.jQueryInterface,_.fn[M].Constructor=G,_.fn[M].noConflict=()=>(_.fn[M]=q,G.jQueryInterface)}})},V=(G,_=[],M=G)=>typeof G=="function"?G(..._):M,Y=(G,_,M=!0)=>{if(!M){V(G);return}const ve=g(_)+5;let Oe=!1;const $e=({target:rt})=>{rt===_&&(Oe=!0,_.removeEventListener(c,$e),V(G))};_.addEventListener(c,$e),setTimeout(()=>{Oe||p(_)},ve)},ne=(G,_,M,q)=>{const ve=G.length;let Oe=G.indexOf(_);return Oe===-1?!M&&q?G[ve-1]:G[0]:(Oe+=M?1:-1,q&&(Oe=(Oe+ve)%ve),G[Math.max(0,Math.min(Oe,ve-1))])},N=/[^.]*(?=\..*)\.|.*/,B=/\..*/,R=/::\d+$/,z={};let X=1;const J={mouseenter:"mouseover",mouseleave:"mouseout"},H=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 ce(G,_){return _&&`${_}::${X++}`||G.uidEvent||X++}function ie(G){const _=ce(G);return G.uidEvent=_,z[_]=z[_]||{},z[_]}function te(G,_){return function M(q){return fe(q,{delegateTarget:G}),M.oneOff&&W.off(G,q.type,_),_.apply(G,[q])}}function D(G,_,M){return function q(ve){const Oe=G.querySelectorAll(_);for(let{target:$e}=ve;$e&&$e!==this;$e=$e.parentNode)for(const rt of Oe)if(rt===$e)return fe(ve,{delegateTarget:$e}),q.oneOff&&W.off(G,ve.type,_,M),M.apply($e,[ve])}}function ee(G,_,M=null){return Object.values(G).find(q=>q.callable===_&&q.delegationSelector===M)}function ue(G,_,M){const q=typeof _=="string",ve=q?M:_||M;let Oe=xe(G);return H.has(Oe)||(Oe=G),[q,ve,Oe]}function $(G,_,M,q,ve){if(typeof _!="string"||!G)return;let[Oe,$e,rt]=ue(_,M,q);_ in J&&($e=(BM=>function(Ia){if(!Ia.relatedTarget||Ia.relatedTarget!==Ia.delegateTarget&&!Ia.delegateTarget.contains(Ia.relatedTarget))return BM.call(this,Ia)})($e));const di=ie(G),Ni=di[rt]||(di[rt]={}),kn=ee(Ni,$e,Oe?M:null);if(kn){kn.oneOff=kn.oneOff&&ve;return}const vs=ce($e,_.replace(N,"")),Qi=Oe?D(G,M,$e):te(G,$e);Qi.delegationSelector=Oe?M:null,Qi.callable=$e,Qi.oneOff=ve,Qi.uidEvent=vs,Ni[vs]=Qi,G.addEventListener(rt,Qi,Oe)}function le(G,_,M,q,ve){const Oe=ee(_[M],q,ve);Oe&&(G.removeEventListener(M,Oe,!!ve),delete _[M][Oe.uidEvent])}function de(G,_,M,q){const ve=_[M]||{};for(const[Oe,$e]of Object.entries(ve))Oe.includes(q)&&le(G,_,M,$e.callable,$e.delegationSelector)}function xe(G){return G=G.replace(B,""),J[G]||G}const W={on(G,_,M,q){$(G,_,M,q,!1)},one(G,_,M,q){$(G,_,M,q,!0)},off(G,_,M,q){if(typeof _!="string"||!G)return;const[ve,Oe,$e]=ue(_,M,q),rt=$e!==_,di=ie(G),Ni=di[$e]||{},kn=_.startsWith(".");if(typeof Oe<"u"){if(!Object.keys(Ni).length)return;le(G,di,$e,Oe,ve?M:null);return}if(kn)for(const vs of Object.keys(di))de(G,di,vs,_.slice(1));for(const[vs,Qi]of Object.entries(Ni)){const gd=vs.replace(R,"");(!rt||_.includes(gd))&&le(G,di,$e,Qi.callable,Qi.delegationSelector)}},trigger(G,_,M){if(typeof _!="string"||!G)return null;const q=C(),ve=xe(_),Oe=_!==ve;let $e=null,rt=!0,di=!0,Ni=!1;Oe&&q&&($e=q.Event(_,M),q(G).trigger($e),rt=!$e.isPropagationStopped(),di=!$e.isImmediatePropagationStopped(),Ni=$e.isDefaultPrevented());const kn=fe(new Event(_,{bubbles:rt,cancelable:!0}),M);return Ni&&kn.preventDefault(),di&&G.dispatchEvent(kn),kn.defaultPrevented&&$e&&$e.preventDefault(),kn}};function fe(G,_={}){for(const[M,q]of Object.entries(_))try{G[M]=q}catch{Object.defineProperty(G,M,{configurable:!0,get(){return q}})}return G}function S(G){if(G==="true")return!0;if(G==="false")return!1;if(G===Number(G).toString())return Number(G);if(G===""||G==="null")return null;if(typeof G!="string")return G;try{return JSON.parse(decodeURIComponent(G))}catch{return G}}function O(G){return G.replace(/[A-Z]/g,_=>`-${_.toLowerCase()}`)}const K={setDataAttribute(G,_,M){G.setAttribute(`data-bs-${O(_)}`,M)},removeDataAttribute(G,_){G.removeAttribute(`data-bs-${O(_)}`)},getDataAttributes(G){if(!G)return{};const _={},M=Object.keys(G.dataset).filter(q=>q.startsWith("bs")&&!q.startsWith("bsConfig"));for(const q of M){let ve=q.replace(/^bs/,"");ve=ve.charAt(0).toLowerCase()+ve.slice(1,ve.length),_[ve]=S(G.dataset[q])}return _},getDataAttribute(G,_){return S(G.getAttribute(`data-bs-${O(_)}`))}};class U{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(_){return _=this._mergeConfigObj(_),_=this._configAfterMerge(_),this._typeCheckConfig(_),_}_configAfterMerge(_){return _}_mergeConfigObj(_,M){const q=m(M)?K.getDataAttribute(M,"config"):{};return{...this.constructor.Default,...typeof q=="object"?q:{},...m(M)?K.getDataAttributes(M):{},...typeof _=="object"?_:{}}}_typeCheckConfig(_,M=this.constructor.DefaultType){for(const[q,ve]of Object.entries(M)){const Oe=_[q],$e=m(Oe)?"element":d(Oe);if(!new RegExp(ve).test($e))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${q}" provided type "${$e}" but expected type "${ve}".`)}}}const oe="5.3.3";class j extends U{constructor(_,M){super(),_=v(_),_&&(this._element=_,this._config=this._getConfig(M),o.set(this._element,this.constructor.DATA_KEY,this))}dispose(){o.remove(this._element,this.constructor.DATA_KEY),W.off(this._element,this.constructor.EVENT_KEY);for(const _ of Object.getOwnPropertyNames(this))this[_]=null}_queueCallback(_,M,q=!0){Y(_,M,q)}_getConfig(_){return _=this._mergeConfigObj(_,this._element),_=this._configAfterMerge(_),this._typeCheckConfig(_),_}static getInstance(_){return o.get(v(_),this.DATA_KEY)}static getOrCreateInstance(_,M={}){return this.getInstance(_)||new this(_,typeof M=="object"?M:null)}static get VERSION(){return oe}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(_){return`${_}${this.EVENT_KEY}`}}const re=G=>{let _=G.getAttribute("data-bs-target");if(!_||_==="#"){let M=G.getAttribute("href");if(!M||!M.includes("#")&&!M.startsWith("."))return null;M.includes("#")&&!M.startsWith("#")&&(M=`#${M.split("#")[1]}`),_=M&&M!=="#"?M.trim():null}return _?_.split(",").map(M=>u(M)).join(","):null},Q={find(G,_=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(_,G))},findOne(G,_=document.documentElement){return Element.prototype.querySelector.call(_,G)},children(G,_){return[].concat(...G.children).filter(M=>M.matches(_))},parents(G,_){const M=[];let q=G.parentNode.closest(_);for(;q;)M.push(q),q=q.parentNode.closest(_);return M},prev(G,_){let M=G.previousElementSibling;for(;M;){if(M.matches(_))return[M];M=M.previousElementSibling}return[]},next(G,_){let M=G.nextElementSibling;for(;M;){if(M.matches(_))return[M];M=M.nextElementSibling}return[]},focusableChildren(G){const _=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(M=>`${M}:not([tabindex^="-"])`).join(",");return this.find(_,G).filter(M=>!x(M)&&y(M))},getSelectorFromElement(G){const _=re(G);return _&&Q.findOne(_)?_:null},getElementFromSelector(G){const _=re(G);return _?Q.findOne(_):null},getMultipleElementsFromSelector(G){const _=re(G);return _?Q.find(_):[]}},ge=(G,_="hide")=>{const M=`click.dismiss${G.EVENT_KEY}`,q=G.NAME;W.on(document,M,`[data-bs-dismiss="${q}"]`,function(ve){if(["A","AREA"].includes(this.tagName)&&ve.preventDefault(),x(this))return;const Oe=Q.getElementFromSelector(this)||this.closest(`.${q}`);G.getOrCreateInstance(Oe)[_]()})},be="alert",Pe=".bs.alert",Ie=`close${Pe}`,We=`closed${Pe}`,je="fade",nt="show";class et extends j{static get NAME(){return be}close(){if(W.trigger(this._element,Ie).defaultPrevented)return;this._element.classList.remove(nt);const M=this._element.classList.contains(je);this._queueCallback(()=>this._destroyElement(),this._element,M)}_destroyElement(){this._element.remove(),W.trigger(this._element,We),this.dispose()}static jQueryInterface(_){return this.each(function(){const M=et.getOrCreateInstance(this);if(typeof _=="string"){if(M[_]===void 0||_.startsWith("_")||_==="constructor")throw new TypeError(`No method named "${_}"`);M[_](this)}})}}ge(et,"close"),I(et);const Jt="button",gn=".bs.button",Ut=".data-api",Ci="active",qi='[data-bs-toggle="button"]',Qt=`click${gn}${Ut}`;class ae extends j{static get NAME(){return Jt}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Ci))}static jQueryInterface(_){return this.each(function(){const M=ae.getOrCreateInstance(this);_==="toggle"&&M[_]()})}}W.on(document,Qt,qi,G=>{G.preventDefault();const _=G.target.closest(qi);ae.getOrCreateInstance(_).toggle()}),I(ae);const Te="swipe",he=".bs.swipe",Ae=`touchstart${he}`,Ne=`touchmove${he}`,Gt=`touchend${he}`,pn=`pointerdown${he}`,$i=`pointerup${he}`,Ws="touch",mn="pen",Cn="pointer-event",Sn=40,li={endCallback:null,leftCallback:null,rightCallback:null},ci={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class ui extends U{constructor(_,M){super(),this._element=_,!(!_||!ui.isSupported())&&(this._config=this._getConfig(M),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return li}static get DefaultType(){return ci}static get NAME(){return Te}dispose(){W.off(this._element,he)}_start(_){if(!this._supportPointerEvents){this._deltaX=_.touches[0].clientX;return}this._eventIsPointerPenTouch(_)&&(this._deltaX=_.clientX)}_end(_){this._eventIsPointerPenTouch(_)&&(this._deltaX=_.clientX-this._deltaX),this._handleSwipe(),V(this._config.endCallback)}_move(_){this._deltaX=_.touches&&_.touches.length>1?0:_.touches[0].clientX-this._deltaX}_handleSwipe(){const _=Math.abs(this._deltaX);if(_<=Sn)return;const M=_/this._deltaX;this._deltaX=0,M&&V(M>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(W.on(this._element,pn,_=>this._start(_)),W.on(this._element,$i,_=>this._end(_)),this._element.classList.add(Cn)):(W.on(this._element,Ae,_=>this._start(_)),W.on(this._element,Ne,_=>this._move(_)),W.on(this._element,Gt,_=>this._end(_)))}_eventIsPointerPenTouch(_){return this._supportPointerEvents&&(_.pointerType===mn||_.pointerType===Ws)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Zi="carousel",Wt=".bs.carousel",Li=".data-api",ig="ArrowLeft",EA="ArrowRight",CA=500,ec="next",Ca="prev",Sa="left",sd="right",SA=`slide${Wt}`,sg=`slid${Wt}`,kA=`keydown${Wt}`,TA=`mouseenter${Wt}`,AA=`mouseleave${Wt}`,PA=`dragstart${Wt}`,MA=`load${Wt}${Li}`,IA=`click${Wt}${Li}`,ey="carousel",rd="active",DA="slide",RA="carousel-item-end",$A="carousel-item-start",LA="carousel-item-next",OA="carousel-item-prev",ty=".active",ny=".carousel-item",NA=ty+ny,FA=".carousel-item img",BA=".carousel-indicators",VA="[data-bs-slide], [data-bs-slide-to]",zA='[data-bs-ride="carousel"]',WA={[ig]:sd,[EA]:Sa},YA={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},HA={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ka extends j{constructor(_,M){super(_,M),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Q.findOne(BA,this._element),this._addEventListeners(),this._config.ride===ey&&this.cycle()}static get Default(){return YA}static get DefaultType(){return HA}static get NAME(){return Zi}next(){this._slide(ec)}nextWhenVisible(){!document.hidden&&y(this._element)&&this.next()}prev(){this._slide(Ca)}pause(){this._isSliding&&p(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){W.one(this._element,sg,()=>this.cycle());return}this.cycle()}}to(_){const M=this._getItems();if(_>M.length-1||_<0)return;if(this._isSliding){W.one(this._element,sg,()=>this.to(_));return}const q=this._getItemIndex(this._getActive());if(q===_)return;const ve=_>q?ec:Ca;this._slide(ve,M[_])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(_){return _.defaultInterval=_.interval,_}_addEventListeners(){this._config.keyboard&&W.on(this._element,kA,_=>this._keydown(_)),this._config.pause==="hover"&&(W.on(this._element,TA,()=>this.pause()),W.on(this._element,AA,()=>this._maybeEnableCycle())),this._config.touch&&ui.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const q of Q.find(FA,this._element))W.on(q,PA,ve=>ve.preventDefault());const M={leftCallback:()=>this._slide(this._directionToOrder(Sa)),rightCallback:()=>this._slide(this._directionToOrder(sd)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),CA+this._config.interval))}};this._swipeHelper=new ui(this._element,M)}_keydown(_){if(/input|textarea/i.test(_.target.tagName))return;const M=WA[_.key];M&&(_.preventDefault(),this._slide(this._directionToOrder(M)))}_getItemIndex(_){return this._getItems().indexOf(_)}_setActiveIndicatorElement(_){if(!this._indicatorsElement)return;const M=Q.findOne(ty,this._indicatorsElement);M.classList.remove(rd),M.removeAttribute("aria-current");const q=Q.findOne(`[data-bs-slide-to="${_}"]`,this._indicatorsElement);q&&(q.classList.add(rd),q.setAttribute("aria-current","true"))}_updateInterval(){const _=this._activeElement||this._getActive();if(!_)return;const M=Number.parseInt(_.getAttribute("data-bs-interval"),10);this._config.interval=M||this._config.defaultInterval}_slide(_,M=null){if(this._isSliding)return;const q=this._getActive(),ve=_===ec,Oe=M||ne(this._getItems(),q,ve,this._config.wrap);if(Oe===q)return;const $e=this._getItemIndex(Oe),rt=gd=>W.trigger(this._element,gd,{relatedTarget:Oe,direction:this._orderToDirection(_),from:this._getItemIndex(q),to:$e});if(rt(SA).defaultPrevented||!q||!Oe)return;const Ni=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement($e),this._activeElement=Oe;const kn=ve?$A:RA,vs=ve?LA:OA;Oe.classList.add(vs),b(Oe),q.classList.add(kn),Oe.classList.add(kn);const Qi=()=>{Oe.classList.remove(kn,vs),Oe.classList.add(rd),q.classList.remove(rd,vs,kn),this._isSliding=!1,rt(sg)};this._queueCallback(Qi,q,this._isAnimated()),Ni&&this.cycle()}_isAnimated(){return this._element.classList.contains(DA)}_getActive(){return Q.findOne(NA,this._element)}_getItems(){return Q.find(ny,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(_){return A()?_===Sa?Ca:ec:_===Sa?ec:Ca}_orderToDirection(_){return A()?_===Ca?Sa:sd:_===Ca?sd:Sa}static jQueryInterface(_){return this.each(function(){const M=ka.getOrCreateInstance(this,_);if(typeof _=="number"){M.to(_);return}if(typeof _=="string"){if(M[_]===void 0||_.startsWith("_")||_==="constructor")throw new TypeError(`No method named "${_}"`);M[_]()}})}}W.on(document,IA,VA,function(G){const _=Q.getElementFromSelector(this);if(!_||!_.classList.contains(ey))return;G.preventDefault();const M=ka.getOrCreateInstance(_),q=this.getAttribute("data-bs-slide-to");if(q){M.to(q),M._maybeEnableCycle();return}if(K.getDataAttribute(this,"slide")==="next"){M.next(),M._maybeEnableCycle();return}M.prev(),M._maybeEnableCycle()}),W.on(window,MA,()=>{const G=Q.find(zA);for(const _ of G)ka.getOrCreateInstance(_)}),I(ka);const jA="collapse",tc=".bs.collapse",KA=".data-api",UA=`show${tc}`,GA=`shown${tc}`,XA=`hide${tc}`,qA=`hidden${tc}`,ZA=`click${tc}${KA}`,rg="show",Ta="collapse",od="collapsing",JA="collapsed",QA=`:scope .${Ta} .${Ta}`,eP="collapse-horizontal",tP="width",nP="height",iP=".collapse.show, .collapse.collapsing",og='[data-bs-toggle="collapse"]',sP={parent:null,toggle:!0},rP={parent:"(null|element)",toggle:"boolean"};class Aa extends j{constructor(_,M){super(_,M),this._isTransitioning=!1,this._triggerArray=[];const q=Q.find(og);for(const ve of q){const Oe=Q.getSelectorFromElement(ve),$e=Q.find(Oe).filter(rt=>rt===this._element);Oe!==null&&$e.length&&this._triggerArray.push(ve)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return sP}static get DefaultType(){return rP}static get NAME(){return jA}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let _=[];if(this._config.parent&&(_=this._getFirstLevelChildren(iP).filter(rt=>rt!==this._element).map(rt=>Aa.getOrCreateInstance(rt,{toggle:!1}))),_.length&&_[0]._isTransitioning||W.trigger(this._element,UA).defaultPrevented)return;for(const rt of _)rt.hide();const q=this._getDimension();this._element.classList.remove(Ta),this._element.classList.add(od),this._element.style[q]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const ve=()=>{this._isTransitioning=!1,this._element.classList.remove(od),this._element.classList.add(Ta,rg),this._element.style[q]="",W.trigger(this._element,GA)},$e=`scroll${q[0].toUpperCase()+q.slice(1)}`;this._queueCallback(ve,this._element,!0),this._element.style[q]=`${this._element[$e]}px`}hide(){if(this._isTransitioning||!this._isShown()||W.trigger(this._element,XA).defaultPrevented)return;const M=this._getDimension();this._element.style[M]=`${this._element.getBoundingClientRect()[M]}px`,b(this._element),this._element.classList.add(od),this._element.classList.remove(Ta,rg);for(const ve of this._triggerArray){const Oe=Q.getElementFromSelector(ve);Oe&&!this._isShown(Oe)&&this._addAriaAndCollapsedClass([ve],!1)}this._isTransitioning=!0;const q=()=>{this._isTransitioning=!1,this._element.classList.remove(od),this._element.classList.add(Ta),W.trigger(this._element,qA)};this._element.style[M]="",this._queueCallback(q,this._element,!0)}_isShown(_=this._element){return _.classList.contains(rg)}_configAfterMerge(_){return _.toggle=!!_.toggle,_.parent=v(_.parent),_}_getDimension(){return this._element.classList.contains(eP)?tP:nP}_initializeChildren(){if(!this._config.parent)return;const _=this._getFirstLevelChildren(og);for(const M of _){const q=Q.getElementFromSelector(M);q&&this._addAriaAndCollapsedClass([M],this._isShown(q))}}_getFirstLevelChildren(_){const M=Q.find(QA,this._config.parent);return Q.find(_,this._config.parent).filter(q=>!M.includes(q))}_addAriaAndCollapsedClass(_,M){if(_.length)for(const q of _)q.classList.toggle(JA,!M),q.setAttribute("aria-expanded",M)}static jQueryInterface(_){const M={};return typeof _=="string"&&/show|hide/.test(_)&&(M.toggle=!1),this.each(function(){const q=Aa.getOrCreateInstance(this,M);if(typeof _=="string"){if(typeof q[_]>"u")throw new TypeError(`No method named "${_}"`);q[_]()}})}}W.on(document,ZA,og,function(G){(G.target.tagName==="A"||G.delegateTarget&&G.delegateTarget.tagName==="A")&&G.preventDefault();for(const _ of Q.getMultipleElementsFromSelector(this))Aa.getOrCreateInstance(_,{toggle:!1}).toggle()}),I(Aa);const iy="dropdown",ko=".bs.dropdown",ag=".data-api",oP="Escape",sy="Tab",aP="ArrowUp",ry="ArrowDown",lP=2,cP=`hide${ko}`,uP=`hidden${ko}`,dP=`show${ko}`,hP=`shown${ko}`,oy=`click${ko}${ag}`,ay=`keydown${ko}${ag}`,fP=`keyup${ko}${ag}`,Pa="show",gP="dropup",pP="dropend",mP="dropstart",_P="dropup-center",vP="dropdown-center",To='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',yP=`${To}.${Pa}`,ad=".dropdown-menu",bP=".navbar",wP=".navbar-nav",xP=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",EP=A()?"top-end":"top-start",CP=A()?"top-start":"top-end",SP=A()?"bottom-end":"bottom-start",kP=A()?"bottom-start":"bottom-end",TP=A()?"left-start":"right-start",AP=A()?"right-start":"left-start",PP="top",MP="bottom",IP={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},DP={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Ji extends j{constructor(_,M){super(_,M),this._popper=null,this._parent=this._element.parentNode,this._menu=Q.next(this._element,ad)[0]||Q.prev(this._element,ad)[0]||Q.findOne(ad,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return IP}static get DefaultType(){return DP}static get NAME(){return iy}toggle(){return this._isShown()?this.hide():this.show()}show(){if(x(this._element)||this._isShown())return;const _={relatedTarget:this._element};if(!W.trigger(this._element,dP,_).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(wP))for(const q of[].concat(...document.body.children))W.on(q,"mouseover",w);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Pa),this._element.classList.add(Pa),W.trigger(this._element,hP,_)}}hide(){if(x(this._element)||!this._isShown())return;const _={relatedTarget:this._element};this._completeHide(_)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(_){if(!W.trigger(this._element,cP,_).defaultPrevented){if("ontouchstart"in document.documentElement)for(const q of[].concat(...document.body.children))W.off(q,"mouseover",w);this._popper&&this._popper.destroy(),this._menu.classList.remove(Pa),this._element.classList.remove(Pa),this._element.setAttribute("aria-expanded","false"),K.removeDataAttribute(this._menu,"popper"),W.trigger(this._element,uP,_)}}_getConfig(_){if(_=super._getConfig(_),typeof _.reference=="object"&&!m(_.reference)&&typeof _.reference.getBoundingClientRect!="function")throw new TypeError(`${iy.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return _}_createPopper(){if(typeof s>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let _=this._element;this._config.reference==="parent"?_=this._parent:m(this._config.reference)?_=v(this._config.reference):typeof this._config.reference=="object"&&(_=this._config.reference);const M=this._getPopperConfig();this._popper=s.createPopper(_,this._menu,M)}_isShown(){return this._menu.classList.contains(Pa)}_getPlacement(){const _=this._parent;if(_.classList.contains(pP))return TP;if(_.classList.contains(mP))return AP;if(_.classList.contains(_P))return PP;if(_.classList.contains(vP))return MP;const M=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return _.classList.contains(gP)?M?CP:EP:M?kP:SP}_detectNavbar(){return this._element.closest(bP)!==null}_getOffset(){const{offset:_}=this._config;return typeof _=="string"?_.split(",").map(M=>Number.parseInt(M,10)):typeof _=="function"?M=>_(M,this._element):_}_getPopperConfig(){const _={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(K.setDataAttribute(this._menu,"popper","static"),_.modifiers=[{name:"applyStyles",enabled:!1}]),{..._,...V(this._config.popperConfig,[_])}}_selectMenuItem({key:_,target:M}){const q=Q.find(xP,this._menu).filter(ve=>y(ve));q.length&&ne(q,M,_===ry,!q.includes(M)).focus()}static jQueryInterface(_){return this.each(function(){const M=Ji.getOrCreateInstance(this,_);if(typeof _=="string"){if(typeof M[_]>"u")throw new TypeError(`No method named "${_}"`);M[_]()}})}static clearMenus(_){if(_.button===lP||_.type==="keyup"&&_.key!==sy)return;const M=Q.find(yP);for(const q of M){const ve=Ji.getInstance(q);if(!ve||ve._config.autoClose===!1)continue;const Oe=_.composedPath(),$e=Oe.includes(ve._menu);if(Oe.includes(ve._element)||ve._config.autoClose==="inside"&&!$e||ve._config.autoClose==="outside"&&$e||ve._menu.contains(_.target)&&(_.type==="keyup"&&_.key===sy||/input|select|option|textarea|form/i.test(_.target.tagName)))continue;const rt={relatedTarget:ve._element};_.type==="click"&&(rt.clickEvent=_),ve._completeHide(rt)}}static dataApiKeydownHandler(_){const M=/input|textarea/i.test(_.target.tagName),q=_.key===oP,ve=[aP,ry].includes(_.key);if(!ve&&!q||M&&!q)return;_.preventDefault();const Oe=this.matches(To)?this:Q.prev(this,To)[0]||Q.next(this,To)[0]||Q.findOne(To,_.delegateTarget.parentNode),$e=Ji.getOrCreateInstance(Oe);if(ve){_.stopPropagation(),$e.show(),$e._selectMenuItem(_);return}$e._isShown()&&(_.stopPropagation(),$e.hide(),Oe.focus())}}W.on(document,ay,To,Ji.dataApiKeydownHandler),W.on(document,ay,ad,Ji.dataApiKeydownHandler),W.on(document,oy,Ji.clearMenus),W.on(document,fP,Ji.clearMenus),W.on(document,oy,To,function(G){G.preventDefault(),Ji.getOrCreateInstance(this).toggle()}),I(Ji);const ly="backdrop",RP="fade",cy="show",uy=`mousedown.bs.${ly}`,$P={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},LP={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class dy extends U{constructor(_){super(),this._config=this._getConfig(_),this._isAppended=!1,this._element=null}static get Default(){return $P}static get DefaultType(){return LP}static get NAME(){return ly}show(_){if(!this._config.isVisible){V(_);return}this._append();const M=this._getElement();this._config.isAnimated&&b(M),M.classList.add(cy),this._emulateAnimation(()=>{V(_)})}hide(_){if(!this._config.isVisible){V(_);return}this._getElement().classList.remove(cy),this._emulateAnimation(()=>{this.dispose(),V(_)})}dispose(){this._isAppended&&(W.off(this._element,uy),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const _=document.createElement("div");_.className=this._config.className,this._config.isAnimated&&_.classList.add(RP),this._element=_}return this._element}_configAfterMerge(_){return _.rootElement=v(_.rootElement),_}_append(){if(this._isAppended)return;const _=this._getElement();this._config.rootElement.append(_),W.on(_,uy,()=>{V(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(_){Y(_,this._getElement(),this._config.isAnimated)}}const OP="focustrap",ld=".bs.focustrap",NP=`focusin${ld}`,FP=`keydown.tab${ld}`,BP="Tab",VP="forward",hy="backward",zP={autofocus:!0,trapElement:null},WP={autofocus:"boolean",trapElement:"element"};class fy extends U{constructor(_){super(),this._config=this._getConfig(_),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return zP}static get DefaultType(){return WP}static get NAME(){return OP}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),W.off(document,ld),W.on(document,NP,_=>this._handleFocusin(_)),W.on(document,FP,_=>this._handleKeydown(_)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,W.off(document,ld))}_handleFocusin(_){const{trapElement:M}=this._config;if(_.target===document||_.target===M||M.contains(_.target))return;const q=Q.focusableChildren(M);q.length===0?M.focus():this._lastTabNavDirection===hy?q[q.length-1].focus():q[0].focus()}_handleKeydown(_){_.key===BP&&(this._lastTabNavDirection=_.shiftKey?hy:VP)}}const gy=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",py=".sticky-top",cd="padding-right",my="margin-right";class lg{constructor(){this._element=document.body}getWidth(){const _=document.documentElement.clientWidth;return Math.abs(window.innerWidth-_)}hide(){const _=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,cd,M=>M+_),this._setElementAttributes(gy,cd,M=>M+_),this._setElementAttributes(py,my,M=>M-_)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,cd),this._resetElementAttributes(gy,cd),this._resetElementAttributes(py,my)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(_,M,q){const ve=this.getWidth(),Oe=$e=>{if($e!==this._element&&window.innerWidth>$e.clientWidth+ve)return;this._saveInitialAttribute($e,M);const rt=window.getComputedStyle($e).getPropertyValue(M);$e.style.setProperty(M,`${q(Number.parseFloat(rt))}px`)};this._applyManipulationCallback(_,Oe)}_saveInitialAttribute(_,M){const q=_.style.getPropertyValue(M);q&&K.setDataAttribute(_,M,q)}_resetElementAttributes(_,M){const q=ve=>{const Oe=K.getDataAttribute(ve,M);if(Oe===null){ve.style.removeProperty(M);return}K.removeDataAttribute(ve,M),ve.style.setProperty(M,Oe)};this._applyManipulationCallback(_,q)}_applyManipulationCallback(_,M){if(m(_)){M(_);return}for(const q of Q.find(_,this._element))M(q)}}const YP="modal",Oi=".bs.modal",HP=".data-api",jP="Escape",KP=`hide${Oi}`,UP=`hidePrevented${Oi}`,_y=`hidden${Oi}`,vy=`show${Oi}`,GP=`shown${Oi}`,XP=`resize${Oi}`,qP=`click.dismiss${Oi}`,ZP=`mousedown.dismiss${Oi}`,JP=`keydown.dismiss${Oi}`,QP=`click${Oi}${HP}`,yy="modal-open",e2="fade",by="show",cg="modal-static",t2=".modal.show",n2=".modal-dialog",i2=".modal-body",s2='[data-bs-toggle="modal"]',r2={backdrop:!0,focus:!0,keyboard:!0},o2={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Ao extends j{constructor(_,M){super(_,M),this._dialog=Q.findOne(n2,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new lg,this._addEventListeners()}static get Default(){return r2}static get DefaultType(){return o2}static get NAME(){return YP}toggle(_){return this._isShown?this.hide():this.show(_)}show(_){this._isShown||this._isTransitioning||W.trigger(this._element,vy,{relatedTarget:_}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(yy),this._adjustDialog(),this._backdrop.show(()=>this._showElement(_)))}hide(){!this._isShown||this._isTransitioning||W.trigger(this._element,KP).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(by),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){W.off(window,Oi),W.off(this._dialog,Oi),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new dy({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new fy({trapElement:this._element})}_showElement(_){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 M=Q.findOne(i2,this._dialog);M&&(M.scrollTop=0),b(this._element),this._element.classList.add(by);const q=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,W.trigger(this._element,GP,{relatedTarget:_})};this._queueCallback(q,this._dialog,this._isAnimated())}_addEventListeners(){W.on(this._element,JP,_=>{if(_.key===jP){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),W.on(window,XP,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),W.on(this._element,ZP,_=>{W.one(this._element,qP,M=>{if(!(this._element!==_.target||this._element!==M.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(yy),this._resetAdjustments(),this._scrollBar.reset(),W.trigger(this._element,_y)})}_isAnimated(){return this._element.classList.contains(e2)}_triggerBackdropTransition(){if(W.trigger(this._element,UP).defaultPrevented)return;const M=this._element.scrollHeight>document.documentElement.clientHeight,q=this._element.style.overflowY;q==="hidden"||this._element.classList.contains(cg)||(M||(this._element.style.overflowY="hidden"),this._element.classList.add(cg),this._queueCallback(()=>{this._element.classList.remove(cg),this._queueCallback(()=>{this._element.style.overflowY=q},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const _=this._element.scrollHeight>document.documentElement.clientHeight,M=this._scrollBar.getWidth(),q=M>0;if(q&&!_){const ve=A()?"paddingLeft":"paddingRight";this._element.style[ve]=`${M}px`}if(!q&&_){const ve=A()?"paddingRight":"paddingLeft";this._element.style[ve]=`${M}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(_,M){return this.each(function(){const q=Ao.getOrCreateInstance(this,_);if(typeof _=="string"){if(typeof q[_]>"u")throw new TypeError(`No method named "${_}"`);q[_](M)}})}}W.on(document,QP,s2,function(G){const _=Q.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&G.preventDefault(),W.one(_,vy,ve=>{ve.defaultPrevented||W.one(_,_y,()=>{y(this)&&this.focus()})});const M=Q.findOne(t2);M&&Ao.getInstance(M).hide(),Ao.getOrCreateInstance(_).toggle(this)}),ge(Ao),I(Ao);const a2="offcanvas",Ys=".bs.offcanvas",wy=".data-api",l2=`load${Ys}${wy}`,c2="Escape",xy="show",Ey="showing",Cy="hiding",u2="offcanvas-backdrop",Sy=".offcanvas.show",d2=`show${Ys}`,h2=`shown${Ys}`,f2=`hide${Ys}`,ky=`hidePrevented${Ys}`,Ty=`hidden${Ys}`,g2=`resize${Ys}`,p2=`click${Ys}${wy}`,m2=`keydown.dismiss${Ys}`,_2='[data-bs-toggle="offcanvas"]',v2={backdrop:!0,keyboard:!0,scroll:!1},y2={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Hs extends j{constructor(_,M){super(_,M),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return v2}static get DefaultType(){return y2}static get NAME(){return a2}toggle(_){return this._isShown?this.hide():this.show(_)}show(_){if(this._isShown||W.trigger(this._element,d2,{relatedTarget:_}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new lg().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ey);const q=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(xy),this._element.classList.remove(Ey),W.trigger(this._element,h2,{relatedTarget:_})};this._queueCallback(q,this._element,!0)}hide(){if(!this._isShown||W.trigger(this._element,f2).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Cy),this._backdrop.hide();const M=()=>{this._element.classList.remove(xy,Cy),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new lg().reset(),W.trigger(this._element,Ty)};this._queueCallback(M,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const _=()=>{if(this._config.backdrop==="static"){W.trigger(this._element,ky);return}this.hide()},M=!!this._config.backdrop;return new dy({className:u2,isVisible:M,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:M?_:null})}_initializeFocusTrap(){return new fy({trapElement:this._element})}_addEventListeners(){W.on(this._element,m2,_=>{if(_.key===c2){if(this._config.keyboard){this.hide();return}W.trigger(this._element,ky)}})}static jQueryInterface(_){return this.each(function(){const M=Hs.getOrCreateInstance(this,_);if(typeof _=="string"){if(M[_]===void 0||_.startsWith("_")||_==="constructor")throw new TypeError(`No method named "${_}"`);M[_](this)}})}}W.on(document,p2,_2,function(G){const _=Q.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&G.preventDefault(),x(this))return;W.one(_,Ty,()=>{y(this)&&this.focus()});const M=Q.findOne(Sy);M&&M!==_&&Hs.getInstance(M).hide(),Hs.getOrCreateInstance(_).toggle(this)}),W.on(window,l2,()=>{for(const G of Q.find(Sy))Hs.getOrCreateInstance(G).show()}),W.on(window,g2,()=>{for(const G of Q.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(G).position!=="fixed"&&Hs.getOrCreateInstance(G).hide()}),ge(Hs),I(Hs);const Ay={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},b2=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),w2=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,x2=(G,_)=>{const M=G.nodeName.toLowerCase();return _.includes(M)?b2.has(M)?!!w2.test(G.nodeValue):!0:_.filter(q=>q instanceof RegExp).some(q=>q.test(M))};function E2(G,_,M){if(!G.length)return G;if(M&&typeof M=="function")return M(G);const ve=new window.DOMParser().parseFromString(G,"text/html"),Oe=[].concat(...ve.body.querySelectorAll("*"));for(const $e of Oe){const rt=$e.nodeName.toLowerCase();if(!Object.keys(_).includes(rt)){$e.remove();continue}const di=[].concat(...$e.attributes),Ni=[].concat(_["*"]||[],_[rt]||[]);for(const kn of di)x2(kn,Ni)||$e.removeAttribute(kn.nodeName)}return ve.body.innerHTML}const C2="TemplateFactory",S2={allowList:Ay,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},k2={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},T2={entry:"(string|element|function|null)",selector:"(string|element)"};class A2 extends U{constructor(_){super(),this._config=this._getConfig(_)}static get Default(){return S2}static get DefaultType(){return k2}static get NAME(){return C2}getContent(){return Object.values(this._config.content).map(_=>this._resolvePossibleFunction(_)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(_){return this._checkContent(_),this._config.content={...this._config.content,..._},this}toHtml(){const _=document.createElement("div");_.innerHTML=this._maybeSanitize(this._config.template);for(const[ve,Oe]of Object.entries(this._config.content))this._setContent(_,Oe,ve);const M=_.children[0],q=this._resolvePossibleFunction(this._config.extraClass);return q&&M.classList.add(...q.split(" ")),M}_typeCheckConfig(_){super._typeCheckConfig(_),this._checkContent(_.content)}_checkContent(_){for(const[M,q]of Object.entries(_))super._typeCheckConfig({selector:M,entry:q},T2)}_setContent(_,M,q){const ve=Q.findOne(q,_);if(ve){if(M=this._resolvePossibleFunction(M),!M){ve.remove();return}if(m(M)){this._putElementInTemplate(v(M),ve);return}if(this._config.html){ve.innerHTML=this._maybeSanitize(M);return}ve.textContent=M}}_maybeSanitize(_){return this._config.sanitize?E2(_,this._config.allowList,this._config.sanitizeFn):_}_resolvePossibleFunction(_){return V(_,[this])}_putElementInTemplate(_,M){if(this._config.html){M.innerHTML="",M.append(_);return}M.textContent=_.textContent}}const P2="tooltip",M2=new Set(["sanitize","allowList","sanitizeFn"]),ug="fade",I2="modal",ud="show",D2=".tooltip-inner",Py=`.${I2}`,My="hide.bs.modal",nc="hover",dg="focus",R2="click",$2="manual",L2="hide",O2="hidden",N2="show",F2="shown",B2="inserted",V2="click",z2="focusin",W2="focusout",Y2="mouseenter",H2="mouseleave",j2={AUTO:"auto",TOP:"top",RIGHT:A()?"left":"right",BOTTOM:"bottom",LEFT:A()?"right":"left"},K2={allowList:Ay,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"},U2={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 Po extends j{constructor(_,M){if(typeof s>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(_,M),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 K2}static get DefaultType(){return U2}static get NAME(){return P2}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),W.off(this._element.closest(Py),My,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 _=W.trigger(this._element,this.constructor.eventName(N2)),q=(E(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(_.defaultPrevented||!q)return;this._disposePopper();const ve=this._getTipElement();this._element.setAttribute("aria-describedby",ve.getAttribute("id"));const{container:Oe}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(Oe.append(ve),W.trigger(this._element,this.constructor.eventName(B2))),this._popper=this._createPopper(ve),ve.classList.add(ud),"ontouchstart"in document.documentElement)for(const rt of[].concat(...document.body.children))W.on(rt,"mouseover",w);const $e=()=>{W.trigger(this._element,this.constructor.eventName(F2)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback($e,this.tip,this._isAnimated())}hide(){if(!this._isShown()||W.trigger(this._element,this.constructor.eventName(L2)).defaultPrevented)return;if(this._getTipElement().classList.remove(ud),"ontouchstart"in document.documentElement)for(const ve of[].concat(...document.body.children))W.off(ve,"mouseover",w);this._activeTrigger[R2]=!1,this._activeTrigger[dg]=!1,this._activeTrigger[nc]=!1,this._isHovered=null;const q=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),W.trigger(this._element,this.constructor.eventName(O2)))};this._queueCallback(q,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(_){const M=this._getTemplateFactory(_).toHtml();if(!M)return null;M.classList.remove(ug,ud),M.classList.add(`bs-${this.constructor.NAME}-auto`);const q=h(this.constructor.NAME).toString();return M.setAttribute("id",q),this._isAnimated()&&M.classList.add(ug),M}setContent(_){this._newContent=_,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(_){return this._templateFactory?this._templateFactory.changeContent(_):this._templateFactory=new A2({...this._config,content:_,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[D2]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(_){return this.constructor.getOrCreateInstance(_.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(ug)}_isShown(){return this.tip&&this.tip.classList.contains(ud)}_createPopper(_){const M=V(this._config.placement,[this,_,this._element]),q=j2[M.toUpperCase()];return s.createPopper(this._element,_,this._getPopperConfig(q))}_getOffset(){const{offset:_}=this._config;return typeof _=="string"?_.split(",").map(M=>Number.parseInt(M,10)):typeof _=="function"?M=>_(M,this._element):_}_resolvePossibleFunction(_){return V(_,[this._element])}_getPopperConfig(_){const M={placement:_,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:q=>{this._getTipElement().setAttribute("data-popper-placement",q.state.placement)}}]};return{...M,...V(this._config.popperConfig,[M])}}_setListeners(){const _=this._config.trigger.split(" ");for(const M of _)if(M==="click")W.on(this._element,this.constructor.eventName(V2),this._config.selector,q=>{this._initializeOnDelegatedTarget(q).toggle()});else if(M!==$2){const q=M===nc?this.constructor.eventName(Y2):this.constructor.eventName(z2),ve=M===nc?this.constructor.eventName(H2):this.constructor.eventName(W2);W.on(this._element,q,this._config.selector,Oe=>{const $e=this._initializeOnDelegatedTarget(Oe);$e._activeTrigger[Oe.type==="focusin"?dg:nc]=!0,$e._enter()}),W.on(this._element,ve,this._config.selector,Oe=>{const $e=this._initializeOnDelegatedTarget(Oe);$e._activeTrigger[Oe.type==="focusout"?dg:nc]=$e._element.contains(Oe.relatedTarget),$e._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},W.on(this._element.closest(Py),My,this._hideModalHandler)}_fixTitle(){const _=this._element.getAttribute("title");_&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",_),this._element.setAttribute("data-bs-original-title",_),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(_,M){clearTimeout(this._timeout),this._timeout=setTimeout(_,M)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(_){const M=K.getDataAttributes(this._element);for(const q of Object.keys(M))M2.has(q)&&delete M[q];return _={...M,...typeof _=="object"&&_?_:{}},_=this._mergeConfigObj(_),_=this._configAfterMerge(_),this._typeCheckConfig(_),_}_configAfterMerge(_){return _.container=_.container===!1?document.body:v(_.container),typeof _.delay=="number"&&(_.delay={show:_.delay,hide:_.delay}),typeof _.title=="number"&&(_.title=_.title.toString()),typeof _.content=="number"&&(_.content=_.content.toString()),_}_getDelegateConfig(){const _={};for(const[M,q]of Object.entries(this._config))this.constructor.Default[M]!==q&&(_[M]=q);return _.selector=!1,_.trigger="manual",_}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(_){return this.each(function(){const M=Po.getOrCreateInstance(this,_);if(typeof _=="string"){if(typeof M[_]>"u")throw new TypeError(`No method named "${_}"`);M[_]()}})}}I(Po);const G2="popover",X2=".popover-header",q2=".popover-body",Z2={...Po.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},J2={...Po.DefaultType,content:"(null|string|element|function)"};class dd extends Po{static get Default(){return Z2}static get DefaultType(){return J2}static get NAME(){return G2}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[X2]:this._getTitle(),[q2]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(_){return this.each(function(){const M=dd.getOrCreateInstance(this,_);if(typeof _=="string"){if(typeof M[_]>"u")throw new TypeError(`No method named "${_}"`);M[_]()}})}}I(dd);const Q2="scrollspy",hg=".bs.scrollspy",eM=".data-api",tM=`activate${hg}`,Iy=`click${hg}`,nM=`load${hg}${eM}`,iM="dropdown-item",Ma="active",sM='[data-bs-spy="scroll"]',fg="[href]",rM=".nav, .list-group",Dy=".nav-link",oM=`${Dy}, .nav-item > ${Dy}, .list-group-item`,aM=".dropdown",lM=".dropdown-toggle",cM={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},uM={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class ic extends j{constructor(_,M){super(_,M),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 cM}static get DefaultType(){return uM}static get NAME(){return Q2}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const _ of this._observableSections.values())this._observer.observe(_)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(_){return _.target=v(_.target)||document.body,_.rootMargin=_.offset?`${_.offset}px 0px -30%`:_.rootMargin,typeof _.threshold=="string"&&(_.threshold=_.threshold.split(",").map(M=>Number.parseFloat(M))),_}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(W.off(this._config.target,Iy),W.on(this._config.target,Iy,fg,_=>{const M=this._observableSections.get(_.target.hash);if(M){_.preventDefault();const q=this._rootElement||window,ve=M.offsetTop-this._element.offsetTop;if(q.scrollTo){q.scrollTo({top:ve,behavior:"smooth"});return}q.scrollTop=ve}}))}_getNewObserver(){const _={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(M=>this._observerCallback(M),_)}_observerCallback(_){const M=$e=>this._targetLinks.get(`#${$e.target.id}`),q=$e=>{this._previousScrollData.visibleEntryTop=$e.target.offsetTop,this._process(M($e))},ve=(this._rootElement||document.documentElement).scrollTop,Oe=ve>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=ve;for(const $e of _){if(!$e.isIntersecting){this._activeTarget=null,this._clearActiveClass(M($e));continue}const rt=$e.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(Oe&&rt){if(q($e),!ve)return;continue}!Oe&&!rt&&q($e)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const _=Q.find(fg,this._config.target);for(const M of _){if(!M.hash||x(M))continue;const q=Q.findOne(decodeURI(M.hash),this._element);y(q)&&(this._targetLinks.set(decodeURI(M.hash),M),this._observableSections.set(M.hash,q))}}_process(_){this._activeTarget!==_&&(this._clearActiveClass(this._config.target),this._activeTarget=_,_.classList.add(Ma),this._activateParents(_),W.trigger(this._element,tM,{relatedTarget:_}))}_activateParents(_){if(_.classList.contains(iM)){Q.findOne(lM,_.closest(aM)).classList.add(Ma);return}for(const M of Q.parents(_,rM))for(const q of Q.prev(M,oM))q.classList.add(Ma)}_clearActiveClass(_){_.classList.remove(Ma);const M=Q.find(`${fg}.${Ma}`,_);for(const q of M)q.classList.remove(Ma)}static jQueryInterface(_){return this.each(function(){const M=ic.getOrCreateInstance(this,_);if(typeof _=="string"){if(M[_]===void 0||_.startsWith("_")||_==="constructor")throw new TypeError(`No method named "${_}"`);M[_]()}})}}W.on(window,nM,()=>{for(const G of Q.find(sM))ic.getOrCreateInstance(G)}),I(ic);const dM="tab",Mo=".bs.tab",hM=`hide${Mo}`,fM=`hidden${Mo}`,gM=`show${Mo}`,pM=`shown${Mo}`,mM=`click${Mo}`,_M=`keydown${Mo}`,vM=`load${Mo}`,yM="ArrowLeft",Ry="ArrowRight",bM="ArrowUp",$y="ArrowDown",gg="Home",Ly="End",Io="active",Oy="fade",pg="show",wM="dropdown",Ny=".dropdown-toggle",xM=".dropdown-menu",mg=`:not(${Ny})`,EM='.list-group, .nav, [role="tablist"]',CM=".nav-item, .list-group-item",SM=`.nav-link${mg}, .list-group-item${mg}, [role="tab"]${mg}`,Fy='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',_g=`${SM}, ${Fy}`,kM=`.${Io}[data-bs-toggle="tab"], .${Io}[data-bs-toggle="pill"], .${Io}[data-bs-toggle="list"]`;class Do extends j{constructor(_){super(_),this._parent=this._element.closest(EM),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),W.on(this._element,_M,M=>this._keydown(M)))}static get NAME(){return dM}show(){const _=this._element;if(this._elemIsActive(_))return;const M=this._getActiveElem(),q=M?W.trigger(M,hM,{relatedTarget:_}):null;W.trigger(_,gM,{relatedTarget:M}).defaultPrevented||q&&q.defaultPrevented||(this._deactivate(M,_),this._activate(_,M))}_activate(_,M){if(!_)return;_.classList.add(Io),this._activate(Q.getElementFromSelector(_));const q=()=>{if(_.getAttribute("role")!=="tab"){_.classList.add(pg);return}_.removeAttribute("tabindex"),_.setAttribute("aria-selected",!0),this._toggleDropDown(_,!0),W.trigger(_,pM,{relatedTarget:M})};this._queueCallback(q,_,_.classList.contains(Oy))}_deactivate(_,M){if(!_)return;_.classList.remove(Io),_.blur(),this._deactivate(Q.getElementFromSelector(_));const q=()=>{if(_.getAttribute("role")!=="tab"){_.classList.remove(pg);return}_.setAttribute("aria-selected",!1),_.setAttribute("tabindex","-1"),this._toggleDropDown(_,!1),W.trigger(_,fM,{relatedTarget:M})};this._queueCallback(q,_,_.classList.contains(Oy))}_keydown(_){if(![yM,Ry,bM,$y,gg,Ly].includes(_.key))return;_.stopPropagation(),_.preventDefault();const M=this._getChildren().filter(ve=>!x(ve));let q;if([gg,Ly].includes(_.key))q=M[_.key===gg?0:M.length-1];else{const ve=[Ry,$y].includes(_.key);q=ne(M,_.target,ve,!0)}q&&(q.focus({preventScroll:!0}),Do.getOrCreateInstance(q).show())}_getChildren(){return Q.find(_g,this._parent)}_getActiveElem(){return this._getChildren().find(_=>this._elemIsActive(_))||null}_setInitialAttributes(_,M){this._setAttributeIfNotExists(_,"role","tablist");for(const q of M)this._setInitialAttributesOnChild(q)}_setInitialAttributesOnChild(_){_=this._getInnerElement(_);const M=this._elemIsActive(_),q=this._getOuterElement(_);_.setAttribute("aria-selected",M),q!==_&&this._setAttributeIfNotExists(q,"role","presentation"),M||_.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(_,"role","tab"),this._setInitialAttributesOnTargetPanel(_)}_setInitialAttributesOnTargetPanel(_){const M=Q.getElementFromSelector(_);M&&(this._setAttributeIfNotExists(M,"role","tabpanel"),_.id&&this._setAttributeIfNotExists(M,"aria-labelledby",`${_.id}`))}_toggleDropDown(_,M){const q=this._getOuterElement(_);if(!q.classList.contains(wM))return;const ve=(Oe,$e)=>{const rt=Q.findOne(Oe,q);rt&&rt.classList.toggle($e,M)};ve(Ny,Io),ve(xM,pg),q.setAttribute("aria-expanded",M)}_setAttributeIfNotExists(_,M,q){_.hasAttribute(M)||_.setAttribute(M,q)}_elemIsActive(_){return _.classList.contains(Io)}_getInnerElement(_){return _.matches(_g)?_:Q.findOne(_g,_)}_getOuterElement(_){return _.closest(CM)||_}static jQueryInterface(_){return this.each(function(){const M=Do.getOrCreateInstance(this);if(typeof _=="string"){if(M[_]===void 0||_.startsWith("_")||_==="constructor")throw new TypeError(`No method named "${_}"`);M[_]()}})}}W.on(document,mM,Fy,function(G){["A","AREA"].includes(this.tagName)&&G.preventDefault(),!x(this)&&Do.getOrCreateInstance(this).show()}),W.on(window,vM,()=>{for(const G of Q.find(kM))Do.getOrCreateInstance(G)}),I(Do);const TM="toast",Sr=".bs.toast",AM=`mouseover${Sr}`,PM=`mouseout${Sr}`,MM=`focusin${Sr}`,IM=`focusout${Sr}`,DM=`hide${Sr}`,RM=`hidden${Sr}`,$M=`show${Sr}`,LM=`shown${Sr}`,OM="fade",By="hide",hd="show",fd="showing",NM={animation:"boolean",autohide:"boolean",delay:"number"},FM={animation:!0,autohide:!0,delay:5e3};class sc extends j{constructor(_,M){super(_,M),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return FM}static get DefaultType(){return NM}static get NAME(){return TM}show(){if(W.trigger(this._element,$M).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(OM);const M=()=>{this._element.classList.remove(fd),W.trigger(this._element,LM),this._maybeScheduleHide()};this._element.classList.remove(By),b(this._element),this._element.classList.add(hd,fd),this._queueCallback(M,this._element,this._config.animation)}hide(){if(!this.isShown()||W.trigger(this._element,DM).defaultPrevented)return;const M=()=>{this._element.classList.add(By),this._element.classList.remove(fd,hd),W.trigger(this._element,RM)};this._element.classList.add(fd),this._queueCallback(M,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(hd),super.dispose()}isShown(){return this._element.classList.contains(hd)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(_,M){switch(_.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=M;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=M;break}}if(M){this._clearTimeout();return}const q=_.relatedTarget;this._element===q||this._element.contains(q)||this._maybeScheduleHide()}_setListeners(){W.on(this._element,AM,_=>this._onInteraction(_,!0)),W.on(this._element,PM,_=>this._onInteraction(_,!1)),W.on(this._element,MM,_=>this._onInteraction(_,!0)),W.on(this._element,IM,_=>this._onInteraction(_,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(_){return this.each(function(){const M=sc.getOrCreateInstance(this,_);if(typeof _=="string"){if(typeof M[_]>"u")throw new TypeError(`No method named "${_}"`);M[_](this)}})}}return ge(sc),I(sc),{Alert:et,Button:ae,Carousel:ka,Collapse:Aa,Dropdown:Ji,Modal:Ao,Offcanvas:Hs,Popover:dd,ScrollSpy:ic,Tab:Do,Toast:sc,Tooltip:Po}})})(WM);/** + */(function(t,e){(function(n,i){t.exports=i(II)})(sx,function(n){function i(G){const _=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(G){for(const M in G)if(M!=="default"){const q=Object.getOwnPropertyDescriptor(G,M);Object.defineProperty(_,M,q.get?q:{enumerable:!0,get:()=>G[M]})}}return _.default=G,Object.freeze(_)}const s=i(n),r=new Map,o={set(G,_,M){r.has(G)||r.set(G,new Map);const q=r.get(G);if(!q.has(_)&&q.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(q.keys())[0]}.`);return}q.set(_,M)},get(G,_){return r.has(G)&&r.get(G).get(_)||null},remove(G,_){if(!r.has(G))return;const M=r.get(G);M.delete(_),M.size===0&&r.delete(G)}},a=1e6,l=1e3,c="transitionend",u=G=>(G&&window.CSS&&window.CSS.escape&&(G=G.replace(/#([^\s"#']+)/g,(_,M)=>`#${CSS.escape(M)}`)),G),d=G=>G==null?`${G}`:Object.prototype.toString.call(G).match(/\s([a-z]+)/i)[1].toLowerCase(),f=G=>{do G+=Math.floor(Math.random()*a);while(document.getElementById(G));return G},g=G=>{if(!G)return 0;let{transitionDuration:_,transitionDelay:M}=window.getComputedStyle(G);const q=Number.parseFloat(_),ye=Number.parseFloat(M);return!q&&!ye?0:(_=_.split(",")[0],M=M.split(",")[0],(Number.parseFloat(_)+Number.parseFloat(M))*l)},p=G=>{G.dispatchEvent(new Event(c))},m=G=>!G||typeof G!="object"?!1:(typeof G.jquery<"u"&&(G=G[0]),typeof G.nodeType<"u"),v=G=>m(G)?G.jquery?G[0]:G:typeof G=="string"&&G.length>0?document.querySelector(u(G)):null,y=G=>{if(!m(G)||G.getClientRects().length===0)return!1;const _=getComputedStyle(G).getPropertyValue("visibility")==="visible",M=G.closest("details:not([open])");if(!M)return _;if(M!==G){const q=G.closest("summary");if(q&&q.parentNode!==M||q===null)return!1}return _},x=G=>!G||G.nodeType!==Node.ELEMENT_NODE||G.classList.contains("disabled")?!0:typeof G.disabled<"u"?G.disabled:G.hasAttribute("disabled")&&G.getAttribute("disabled")!=="false",E=G=>{if(!document.documentElement.attachShadow)return null;if(typeof G.getRootNode=="function"){const _=G.getRootNode();return _ instanceof ShadowRoot?_:null}return G instanceof ShadowRoot?G:G.parentNode?E(G.parentNode):null},w=()=>{},b=G=>{G.offsetHeight},C=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,k=[],T=G=>{document.readyState==="loading"?(k.length||document.addEventListener("DOMContentLoaded",()=>{for(const _ of k)_()}),k.push(G)):G()},A=()=>document.documentElement.dir==="rtl",I=G=>{T(()=>{const _=C();if(_){const M=G.NAME,q=_.fn[M];_.fn[M]=G.jQueryInterface,_.fn[M].Constructor=G,_.fn[M].noConflict=()=>(_.fn[M]=q,G.jQueryInterface)}})},V=(G,_=[],M=G)=>typeof G=="function"?G(..._):M,Y=(G,_,M=!0)=>{if(!M){V(G);return}const ye=g(_)+5;let Oe=!1;const $e=({target:rt})=>{rt===_&&(Oe=!0,_.removeEventListener(c,$e),V(G))};_.addEventListener(c,$e),setTimeout(()=>{Oe||p(_)},ye)},ne=(G,_,M,q)=>{const ye=G.length;let Oe=G.indexOf(_);return Oe===-1?!M&&q?G[ye-1]:G[0]:(Oe+=M?1:-1,q&&(Oe=(Oe+ye)%ye),G[Math.max(0,Math.min(Oe,ye-1))])},N=/[^.]*(?=\..*)\.|.*/,B=/\..*/,R=/::\d+$/,z={};let X=1;const J={mouseenter:"mouseover",mouseleave:"mouseout"},H=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 ce(G,_){return _&&`${_}::${X++}`||G.uidEvent||X++}function ie(G){const _=ce(G);return G.uidEvent=_,z[_]=z[_]||{},z[_]}function te(G,_){return function M(q){return fe(q,{delegateTarget:G}),M.oneOff&&W.off(G,q.type,_),_.apply(G,[q])}}function D(G,_,M){return function q(ye){const Oe=G.querySelectorAll(_);for(let{target:$e}=ye;$e&&$e!==this;$e=$e.parentNode)for(const rt of Oe)if(rt===$e)return fe(ye,{delegateTarget:$e}),q.oneOff&&W.off(G,ye.type,_,M),M.apply($e,[ye])}}function ee(G,_,M=null){return Object.values(G).find(q=>q.callable===_&&q.delegationSelector===M)}function ue(G,_,M){const q=typeof _=="string",ye=q?M:_||M;let Oe=xe(G);return H.has(Oe)||(Oe=G),[q,ye,Oe]}function L(G,_,M,q,ye){if(typeof _!="string"||!G)return;let[Oe,$e,rt]=ue(_,M,q);_ in J&&($e=(BM=>function(Ia){if(!Ia.relatedTarget||Ia.relatedTarget!==Ia.delegateTarget&&!Ia.delegateTarget.contains(Ia.relatedTarget))return BM.call(this,Ia)})($e));const di=ie(G),Ni=di[rt]||(di[rt]={}),kn=ee(Ni,$e,Oe?M:null);if(kn){kn.oneOff=kn.oneOff&&ye;return}const vs=ce($e,_.replace(N,"")),Qi=Oe?D(G,M,$e):te(G,$e);Qi.delegationSelector=Oe?M:null,Qi.callable=$e,Qi.oneOff=ye,Qi.uidEvent=vs,Ni[vs]=Qi,G.addEventListener(rt,Qi,Oe)}function le(G,_,M,q,ye){const Oe=ee(_[M],q,ye);Oe&&(G.removeEventListener(M,Oe,!!ye),delete _[M][Oe.uidEvent])}function de(G,_,M,q){const ye=_[M]||{};for(const[Oe,$e]of Object.entries(ye))Oe.includes(q)&&le(G,_,M,$e.callable,$e.delegationSelector)}function xe(G){return G=G.replace(B,""),J[G]||G}const W={on(G,_,M,q){L(G,_,M,q,!1)},one(G,_,M,q){L(G,_,M,q,!0)},off(G,_,M,q){if(typeof _!="string"||!G)return;const[ye,Oe,$e]=ue(_,M,q),rt=$e!==_,di=ie(G),Ni=di[$e]||{},kn=_.startsWith(".");if(typeof Oe<"u"){if(!Object.keys(Ni).length)return;le(G,di,$e,Oe,ye?M:null);return}if(kn)for(const vs of Object.keys(di))de(G,di,vs,_.slice(1));for(const[vs,Qi]of Object.entries(Ni)){const gd=vs.replace(R,"");(!rt||_.includes(gd))&&le(G,di,$e,Qi.callable,Qi.delegationSelector)}},trigger(G,_,M){if(typeof _!="string"||!G)return null;const q=C(),ye=xe(_),Oe=_!==ye;let $e=null,rt=!0,di=!0,Ni=!1;Oe&&q&&($e=q.Event(_,M),q(G).trigger($e),rt=!$e.isPropagationStopped(),di=!$e.isImmediatePropagationStopped(),Ni=$e.isDefaultPrevented());const kn=fe(new Event(_,{bubbles:rt,cancelable:!0}),M);return Ni&&kn.preventDefault(),di&&G.dispatchEvent(kn),kn.defaultPrevented&&$e&&$e.preventDefault(),kn}};function fe(G,_={}){for(const[M,q]of Object.entries(_))try{G[M]=q}catch{Object.defineProperty(G,M,{configurable:!0,get(){return q}})}return G}function S(G){if(G==="true")return!0;if(G==="false")return!1;if(G===Number(G).toString())return Number(G);if(G===""||G==="null")return null;if(typeof G!="string")return G;try{return JSON.parse(decodeURIComponent(G))}catch{return G}}function O(G){return G.replace(/[A-Z]/g,_=>`-${_.toLowerCase()}`)}const K={setDataAttribute(G,_,M){G.setAttribute(`data-bs-${O(_)}`,M)},removeDataAttribute(G,_){G.removeAttribute(`data-bs-${O(_)}`)},getDataAttributes(G){if(!G)return{};const _={},M=Object.keys(G.dataset).filter(q=>q.startsWith("bs")&&!q.startsWith("bsConfig"));for(const q of M){let ye=q.replace(/^bs/,"");ye=ye.charAt(0).toLowerCase()+ye.slice(1,ye.length),_[ye]=S(G.dataset[q])}return _},getDataAttribute(G,_){return S(G.getAttribute(`data-bs-${O(_)}`))}};class U{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(_){return _=this._mergeConfigObj(_),_=this._configAfterMerge(_),this._typeCheckConfig(_),_}_configAfterMerge(_){return _}_mergeConfigObj(_,M){const q=m(M)?K.getDataAttribute(M,"config"):{};return{...this.constructor.Default,...typeof q=="object"?q:{},...m(M)?K.getDataAttributes(M):{},...typeof _=="object"?_:{}}}_typeCheckConfig(_,M=this.constructor.DefaultType){for(const[q,ye]of Object.entries(M)){const Oe=_[q],$e=m(Oe)?"element":d(Oe);if(!new RegExp(ye).test($e))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${q}" provided type "${$e}" but expected type "${ye}".`)}}}const oe="5.3.3";class j extends U{constructor(_,M){super(),_=v(_),_&&(this._element=_,this._config=this._getConfig(M),o.set(this._element,this.constructor.DATA_KEY,this))}dispose(){o.remove(this._element,this.constructor.DATA_KEY),W.off(this._element,this.constructor.EVENT_KEY);for(const _ of Object.getOwnPropertyNames(this))this[_]=null}_queueCallback(_,M,q=!0){Y(_,M,q)}_getConfig(_){return _=this._mergeConfigObj(_,this._element),_=this._configAfterMerge(_),this._typeCheckConfig(_),_}static getInstance(_){return o.get(v(_),this.DATA_KEY)}static getOrCreateInstance(_,M={}){return this.getInstance(_)||new this(_,typeof M=="object"?M:null)}static get VERSION(){return oe}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(_){return`${_}${this.EVENT_KEY}`}}const se=G=>{let _=G.getAttribute("data-bs-target");if(!_||_==="#"){let M=G.getAttribute("href");if(!M||!M.includes("#")&&!M.startsWith("."))return null;M.includes("#")&&!M.startsWith("#")&&(M=`#${M.split("#")[1]}`),_=M&&M!=="#"?M.trim():null}return _?_.split(",").map(M=>u(M)).join(","):null},Q={find(G,_=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(_,G))},findOne(G,_=document.documentElement){return Element.prototype.querySelector.call(_,G)},children(G,_){return[].concat(...G.children).filter(M=>M.matches(_))},parents(G,_){const M=[];let q=G.parentNode.closest(_);for(;q;)M.push(q),q=q.parentNode.closest(_);return M},prev(G,_){let M=G.previousElementSibling;for(;M;){if(M.matches(_))return[M];M=M.previousElementSibling}return[]},next(G,_){let M=G.nextElementSibling;for(;M;){if(M.matches(_))return[M];M=M.nextElementSibling}return[]},focusableChildren(G){const _=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(M=>`${M}:not([tabindex^="-"])`).join(",");return this.find(_,G).filter(M=>!x(M)&&y(M))},getSelectorFromElement(G){const _=se(G);return _&&Q.findOne(_)?_:null},getElementFromSelector(G){const _=se(G);return _?Q.findOne(_):null},getMultipleElementsFromSelector(G){const _=se(G);return _?Q.find(_):[]}},ge=(G,_="hide")=>{const M=`click.dismiss${G.EVENT_KEY}`,q=G.NAME;W.on(document,M,`[data-bs-dismiss="${q}"]`,function(ye){if(["A","AREA"].includes(this.tagName)&&ye.preventDefault(),x(this))return;const Oe=Q.getElementFromSelector(this)||this.closest(`.${q}`);G.getOrCreateInstance(Oe)[_]()})},be="alert",Pe=".bs.alert",De=`close${Pe}`,We=`closed${Pe}`,je="fade",nt="show";class et extends j{static get NAME(){return be}close(){if(W.trigger(this._element,De).defaultPrevented)return;this._element.classList.remove(nt);const M=this._element.classList.contains(je);this._queueCallback(()=>this._destroyElement(),this._element,M)}_destroyElement(){this._element.remove(),W.trigger(this._element,We),this.dispose()}static jQueryInterface(_){return this.each(function(){const M=et.getOrCreateInstance(this);if(typeof _=="string"){if(M[_]===void 0||_.startsWith("_")||_==="constructor")throw new TypeError(`No method named "${_}"`);M[_](this)}})}}ge(et,"close"),I(et);const Jt="button",gn=".bs.button",Ut=".data-api",Ci="active",qi='[data-bs-toggle="button"]',Qt=`click${gn}${Ut}`;class ae extends j{static get NAME(){return Jt}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Ci))}static jQueryInterface(_){return this.each(function(){const M=ae.getOrCreateInstance(this);_==="toggle"&&M[_]()})}}W.on(document,Qt,qi,G=>{G.preventDefault();const _=G.target.closest(qi);ae.getOrCreateInstance(_).toggle()}),I(ae);const Te="swipe",he=".bs.swipe",Ae=`touchstart${he}`,Ne=`touchmove${he}`,Gt=`touchend${he}`,pn=`pointerdown${he}`,$i=`pointerup${he}`,Ws="touch",mn="pen",Cn="pointer-event",Sn=40,li={endCallback:null,leftCallback:null,rightCallback:null},ci={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class ui extends U{constructor(_,M){super(),this._element=_,!(!_||!ui.isSupported())&&(this._config=this._getConfig(M),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return li}static get DefaultType(){return ci}static get NAME(){return Te}dispose(){W.off(this._element,he)}_start(_){if(!this._supportPointerEvents){this._deltaX=_.touches[0].clientX;return}this._eventIsPointerPenTouch(_)&&(this._deltaX=_.clientX)}_end(_){this._eventIsPointerPenTouch(_)&&(this._deltaX=_.clientX-this._deltaX),this._handleSwipe(),V(this._config.endCallback)}_move(_){this._deltaX=_.touches&&_.touches.length>1?0:_.touches[0].clientX-this._deltaX}_handleSwipe(){const _=Math.abs(this._deltaX);if(_<=Sn)return;const M=_/this._deltaX;this._deltaX=0,M&&V(M>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(W.on(this._element,pn,_=>this._start(_)),W.on(this._element,$i,_=>this._end(_)),this._element.classList.add(Cn)):(W.on(this._element,Ae,_=>this._start(_)),W.on(this._element,Ne,_=>this._move(_)),W.on(this._element,Gt,_=>this._end(_)))}_eventIsPointerPenTouch(_){return this._supportPointerEvents&&(_.pointerType===mn||_.pointerType===Ws)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Zi="carousel",Wt=".bs.carousel",Li=".data-api",ig="ArrowLeft",EA="ArrowRight",CA=500,ec="next",Ca="prev",Sa="left",sd="right",SA=`slide${Wt}`,sg=`slid${Wt}`,kA=`keydown${Wt}`,TA=`mouseenter${Wt}`,AA=`mouseleave${Wt}`,PA=`dragstart${Wt}`,MA=`load${Wt}${Li}`,IA=`click${Wt}${Li}`,ey="carousel",rd="active",DA="slide",RA="carousel-item-end",$A="carousel-item-start",LA="carousel-item-next",OA="carousel-item-prev",ty=".active",ny=".carousel-item",NA=ty+ny,FA=".carousel-item img",BA=".carousel-indicators",VA="[data-bs-slide], [data-bs-slide-to]",zA='[data-bs-ride="carousel"]',WA={[ig]:sd,[EA]:Sa},YA={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},HA={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ka extends j{constructor(_,M){super(_,M),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Q.findOne(BA,this._element),this._addEventListeners(),this._config.ride===ey&&this.cycle()}static get Default(){return YA}static get DefaultType(){return HA}static get NAME(){return Zi}next(){this._slide(ec)}nextWhenVisible(){!document.hidden&&y(this._element)&&this.next()}prev(){this._slide(Ca)}pause(){this._isSliding&&p(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){W.one(this._element,sg,()=>this.cycle());return}this.cycle()}}to(_){const M=this._getItems();if(_>M.length-1||_<0)return;if(this._isSliding){W.one(this._element,sg,()=>this.to(_));return}const q=this._getItemIndex(this._getActive());if(q===_)return;const ye=_>q?ec:Ca;this._slide(ye,M[_])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(_){return _.defaultInterval=_.interval,_}_addEventListeners(){this._config.keyboard&&W.on(this._element,kA,_=>this._keydown(_)),this._config.pause==="hover"&&(W.on(this._element,TA,()=>this.pause()),W.on(this._element,AA,()=>this._maybeEnableCycle())),this._config.touch&&ui.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const q of Q.find(FA,this._element))W.on(q,PA,ye=>ye.preventDefault());const M={leftCallback:()=>this._slide(this._directionToOrder(Sa)),rightCallback:()=>this._slide(this._directionToOrder(sd)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),CA+this._config.interval))}};this._swipeHelper=new ui(this._element,M)}_keydown(_){if(/input|textarea/i.test(_.target.tagName))return;const M=WA[_.key];M&&(_.preventDefault(),this._slide(this._directionToOrder(M)))}_getItemIndex(_){return this._getItems().indexOf(_)}_setActiveIndicatorElement(_){if(!this._indicatorsElement)return;const M=Q.findOne(ty,this._indicatorsElement);M.classList.remove(rd),M.removeAttribute("aria-current");const q=Q.findOne(`[data-bs-slide-to="${_}"]`,this._indicatorsElement);q&&(q.classList.add(rd),q.setAttribute("aria-current","true"))}_updateInterval(){const _=this._activeElement||this._getActive();if(!_)return;const M=Number.parseInt(_.getAttribute("data-bs-interval"),10);this._config.interval=M||this._config.defaultInterval}_slide(_,M=null){if(this._isSliding)return;const q=this._getActive(),ye=_===ec,Oe=M||ne(this._getItems(),q,ye,this._config.wrap);if(Oe===q)return;const $e=this._getItemIndex(Oe),rt=gd=>W.trigger(this._element,gd,{relatedTarget:Oe,direction:this._orderToDirection(_),from:this._getItemIndex(q),to:$e});if(rt(SA).defaultPrevented||!q||!Oe)return;const Ni=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement($e),this._activeElement=Oe;const kn=ye?$A:RA,vs=ye?LA:OA;Oe.classList.add(vs),b(Oe),q.classList.add(kn),Oe.classList.add(kn);const Qi=()=>{Oe.classList.remove(kn,vs),Oe.classList.add(rd),q.classList.remove(rd,vs,kn),this._isSliding=!1,rt(sg)};this._queueCallback(Qi,q,this._isAnimated()),Ni&&this.cycle()}_isAnimated(){return this._element.classList.contains(DA)}_getActive(){return Q.findOne(NA,this._element)}_getItems(){return Q.find(ny,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(_){return A()?_===Sa?Ca:ec:_===Sa?ec:Ca}_orderToDirection(_){return A()?_===Ca?Sa:sd:_===Ca?sd:Sa}static jQueryInterface(_){return this.each(function(){const M=ka.getOrCreateInstance(this,_);if(typeof _=="number"){M.to(_);return}if(typeof _=="string"){if(M[_]===void 0||_.startsWith("_")||_==="constructor")throw new TypeError(`No method named "${_}"`);M[_]()}})}}W.on(document,IA,VA,function(G){const _=Q.getElementFromSelector(this);if(!_||!_.classList.contains(ey))return;G.preventDefault();const M=ka.getOrCreateInstance(_),q=this.getAttribute("data-bs-slide-to");if(q){M.to(q),M._maybeEnableCycle();return}if(K.getDataAttribute(this,"slide")==="next"){M.next(),M._maybeEnableCycle();return}M.prev(),M._maybeEnableCycle()}),W.on(window,MA,()=>{const G=Q.find(zA);for(const _ of G)ka.getOrCreateInstance(_)}),I(ka);const jA="collapse",tc=".bs.collapse",KA=".data-api",UA=`show${tc}`,GA=`shown${tc}`,XA=`hide${tc}`,qA=`hidden${tc}`,ZA=`click${tc}${KA}`,rg="show",Ta="collapse",od="collapsing",JA="collapsed",QA=`:scope .${Ta} .${Ta}`,eP="collapse-horizontal",tP="width",nP="height",iP=".collapse.show, .collapse.collapsing",og='[data-bs-toggle="collapse"]',sP={parent:null,toggle:!0},rP={parent:"(null|element)",toggle:"boolean"};class Aa extends j{constructor(_,M){super(_,M),this._isTransitioning=!1,this._triggerArray=[];const q=Q.find(og);for(const ye of q){const Oe=Q.getSelectorFromElement(ye),$e=Q.find(Oe).filter(rt=>rt===this._element);Oe!==null&&$e.length&&this._triggerArray.push(ye)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return sP}static get DefaultType(){return rP}static get NAME(){return jA}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let _=[];if(this._config.parent&&(_=this._getFirstLevelChildren(iP).filter(rt=>rt!==this._element).map(rt=>Aa.getOrCreateInstance(rt,{toggle:!1}))),_.length&&_[0]._isTransitioning||W.trigger(this._element,UA).defaultPrevented)return;for(const rt of _)rt.hide();const q=this._getDimension();this._element.classList.remove(Ta),this._element.classList.add(od),this._element.style[q]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const ye=()=>{this._isTransitioning=!1,this._element.classList.remove(od),this._element.classList.add(Ta,rg),this._element.style[q]="",W.trigger(this._element,GA)},$e=`scroll${q[0].toUpperCase()+q.slice(1)}`;this._queueCallback(ye,this._element,!0),this._element.style[q]=`${this._element[$e]}px`}hide(){if(this._isTransitioning||!this._isShown()||W.trigger(this._element,XA).defaultPrevented)return;const M=this._getDimension();this._element.style[M]=`${this._element.getBoundingClientRect()[M]}px`,b(this._element),this._element.classList.add(od),this._element.classList.remove(Ta,rg);for(const ye of this._triggerArray){const Oe=Q.getElementFromSelector(ye);Oe&&!this._isShown(Oe)&&this._addAriaAndCollapsedClass([ye],!1)}this._isTransitioning=!0;const q=()=>{this._isTransitioning=!1,this._element.classList.remove(od),this._element.classList.add(Ta),W.trigger(this._element,qA)};this._element.style[M]="",this._queueCallback(q,this._element,!0)}_isShown(_=this._element){return _.classList.contains(rg)}_configAfterMerge(_){return _.toggle=!!_.toggle,_.parent=v(_.parent),_}_getDimension(){return this._element.classList.contains(eP)?tP:nP}_initializeChildren(){if(!this._config.parent)return;const _=this._getFirstLevelChildren(og);for(const M of _){const q=Q.getElementFromSelector(M);q&&this._addAriaAndCollapsedClass([M],this._isShown(q))}}_getFirstLevelChildren(_){const M=Q.find(QA,this._config.parent);return Q.find(_,this._config.parent).filter(q=>!M.includes(q))}_addAriaAndCollapsedClass(_,M){if(_.length)for(const q of _)q.classList.toggle(JA,!M),q.setAttribute("aria-expanded",M)}static jQueryInterface(_){const M={};return typeof _=="string"&&/show|hide/.test(_)&&(M.toggle=!1),this.each(function(){const q=Aa.getOrCreateInstance(this,M);if(typeof _=="string"){if(typeof q[_]>"u")throw new TypeError(`No method named "${_}"`);q[_]()}})}}W.on(document,ZA,og,function(G){(G.target.tagName==="A"||G.delegateTarget&&G.delegateTarget.tagName==="A")&&G.preventDefault();for(const _ of Q.getMultipleElementsFromSelector(this))Aa.getOrCreateInstance(_,{toggle:!1}).toggle()}),I(Aa);const iy="dropdown",ko=".bs.dropdown",ag=".data-api",oP="Escape",sy="Tab",aP="ArrowUp",ry="ArrowDown",lP=2,cP=`hide${ko}`,uP=`hidden${ko}`,dP=`show${ko}`,hP=`shown${ko}`,oy=`click${ko}${ag}`,ay=`keydown${ko}${ag}`,fP=`keyup${ko}${ag}`,Pa="show",gP="dropup",pP="dropend",mP="dropstart",_P="dropup-center",vP="dropdown-center",To='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',yP=`${To}.${Pa}`,ad=".dropdown-menu",bP=".navbar",wP=".navbar-nav",xP=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",EP=A()?"top-end":"top-start",CP=A()?"top-start":"top-end",SP=A()?"bottom-end":"bottom-start",kP=A()?"bottom-start":"bottom-end",TP=A()?"left-start":"right-start",AP=A()?"right-start":"left-start",PP="top",MP="bottom",IP={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},DP={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Ji extends j{constructor(_,M){super(_,M),this._popper=null,this._parent=this._element.parentNode,this._menu=Q.next(this._element,ad)[0]||Q.prev(this._element,ad)[0]||Q.findOne(ad,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return IP}static get DefaultType(){return DP}static get NAME(){return iy}toggle(){return this._isShown()?this.hide():this.show()}show(){if(x(this._element)||this._isShown())return;const _={relatedTarget:this._element};if(!W.trigger(this._element,dP,_).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(wP))for(const q of[].concat(...document.body.children))W.on(q,"mouseover",w);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Pa),this._element.classList.add(Pa),W.trigger(this._element,hP,_)}}hide(){if(x(this._element)||!this._isShown())return;const _={relatedTarget:this._element};this._completeHide(_)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(_){if(!W.trigger(this._element,cP,_).defaultPrevented){if("ontouchstart"in document.documentElement)for(const q of[].concat(...document.body.children))W.off(q,"mouseover",w);this._popper&&this._popper.destroy(),this._menu.classList.remove(Pa),this._element.classList.remove(Pa),this._element.setAttribute("aria-expanded","false"),K.removeDataAttribute(this._menu,"popper"),W.trigger(this._element,uP,_)}}_getConfig(_){if(_=super._getConfig(_),typeof _.reference=="object"&&!m(_.reference)&&typeof _.reference.getBoundingClientRect!="function")throw new TypeError(`${iy.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return _}_createPopper(){if(typeof s>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let _=this._element;this._config.reference==="parent"?_=this._parent:m(this._config.reference)?_=v(this._config.reference):typeof this._config.reference=="object"&&(_=this._config.reference);const M=this._getPopperConfig();this._popper=s.createPopper(_,this._menu,M)}_isShown(){return this._menu.classList.contains(Pa)}_getPlacement(){const _=this._parent;if(_.classList.contains(pP))return TP;if(_.classList.contains(mP))return AP;if(_.classList.contains(_P))return PP;if(_.classList.contains(vP))return MP;const M=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return _.classList.contains(gP)?M?CP:EP:M?kP:SP}_detectNavbar(){return this._element.closest(bP)!==null}_getOffset(){const{offset:_}=this._config;return typeof _=="string"?_.split(",").map(M=>Number.parseInt(M,10)):typeof _=="function"?M=>_(M,this._element):_}_getPopperConfig(){const _={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(K.setDataAttribute(this._menu,"popper","static"),_.modifiers=[{name:"applyStyles",enabled:!1}]),{..._,...V(this._config.popperConfig,[_])}}_selectMenuItem({key:_,target:M}){const q=Q.find(xP,this._menu).filter(ye=>y(ye));q.length&&ne(q,M,_===ry,!q.includes(M)).focus()}static jQueryInterface(_){return this.each(function(){const M=Ji.getOrCreateInstance(this,_);if(typeof _=="string"){if(typeof M[_]>"u")throw new TypeError(`No method named "${_}"`);M[_]()}})}static clearMenus(_){if(_.button===lP||_.type==="keyup"&&_.key!==sy)return;const M=Q.find(yP);for(const q of M){const ye=Ji.getInstance(q);if(!ye||ye._config.autoClose===!1)continue;const Oe=_.composedPath(),$e=Oe.includes(ye._menu);if(Oe.includes(ye._element)||ye._config.autoClose==="inside"&&!$e||ye._config.autoClose==="outside"&&$e||ye._menu.contains(_.target)&&(_.type==="keyup"&&_.key===sy||/input|select|option|textarea|form/i.test(_.target.tagName)))continue;const rt={relatedTarget:ye._element};_.type==="click"&&(rt.clickEvent=_),ye._completeHide(rt)}}static dataApiKeydownHandler(_){const M=/input|textarea/i.test(_.target.tagName),q=_.key===oP,ye=[aP,ry].includes(_.key);if(!ye&&!q||M&&!q)return;_.preventDefault();const Oe=this.matches(To)?this:Q.prev(this,To)[0]||Q.next(this,To)[0]||Q.findOne(To,_.delegateTarget.parentNode),$e=Ji.getOrCreateInstance(Oe);if(ye){_.stopPropagation(),$e.show(),$e._selectMenuItem(_);return}$e._isShown()&&(_.stopPropagation(),$e.hide(),Oe.focus())}}W.on(document,ay,To,Ji.dataApiKeydownHandler),W.on(document,ay,ad,Ji.dataApiKeydownHandler),W.on(document,oy,Ji.clearMenus),W.on(document,fP,Ji.clearMenus),W.on(document,oy,To,function(G){G.preventDefault(),Ji.getOrCreateInstance(this).toggle()}),I(Ji);const ly="backdrop",RP="fade",cy="show",uy=`mousedown.bs.${ly}`,$P={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},LP={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class dy extends U{constructor(_){super(),this._config=this._getConfig(_),this._isAppended=!1,this._element=null}static get Default(){return $P}static get DefaultType(){return LP}static get NAME(){return ly}show(_){if(!this._config.isVisible){V(_);return}this._append();const M=this._getElement();this._config.isAnimated&&b(M),M.classList.add(cy),this._emulateAnimation(()=>{V(_)})}hide(_){if(!this._config.isVisible){V(_);return}this._getElement().classList.remove(cy),this._emulateAnimation(()=>{this.dispose(),V(_)})}dispose(){this._isAppended&&(W.off(this._element,uy),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const _=document.createElement("div");_.className=this._config.className,this._config.isAnimated&&_.classList.add(RP),this._element=_}return this._element}_configAfterMerge(_){return _.rootElement=v(_.rootElement),_}_append(){if(this._isAppended)return;const _=this._getElement();this._config.rootElement.append(_),W.on(_,uy,()=>{V(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(_){Y(_,this._getElement(),this._config.isAnimated)}}const OP="focustrap",ld=".bs.focustrap",NP=`focusin${ld}`,FP=`keydown.tab${ld}`,BP="Tab",VP="forward",hy="backward",zP={autofocus:!0,trapElement:null},WP={autofocus:"boolean",trapElement:"element"};class fy extends U{constructor(_){super(),this._config=this._getConfig(_),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return zP}static get DefaultType(){return WP}static get NAME(){return OP}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),W.off(document,ld),W.on(document,NP,_=>this._handleFocusin(_)),W.on(document,FP,_=>this._handleKeydown(_)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,W.off(document,ld))}_handleFocusin(_){const{trapElement:M}=this._config;if(_.target===document||_.target===M||M.contains(_.target))return;const q=Q.focusableChildren(M);q.length===0?M.focus():this._lastTabNavDirection===hy?q[q.length-1].focus():q[0].focus()}_handleKeydown(_){_.key===BP&&(this._lastTabNavDirection=_.shiftKey?hy:VP)}}const gy=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",py=".sticky-top",cd="padding-right",my="margin-right";class lg{constructor(){this._element=document.body}getWidth(){const _=document.documentElement.clientWidth;return Math.abs(window.innerWidth-_)}hide(){const _=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,cd,M=>M+_),this._setElementAttributes(gy,cd,M=>M+_),this._setElementAttributes(py,my,M=>M-_)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,cd),this._resetElementAttributes(gy,cd),this._resetElementAttributes(py,my)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(_,M,q){const ye=this.getWidth(),Oe=$e=>{if($e!==this._element&&window.innerWidth>$e.clientWidth+ye)return;this._saveInitialAttribute($e,M);const rt=window.getComputedStyle($e).getPropertyValue(M);$e.style.setProperty(M,`${q(Number.parseFloat(rt))}px`)};this._applyManipulationCallback(_,Oe)}_saveInitialAttribute(_,M){const q=_.style.getPropertyValue(M);q&&K.setDataAttribute(_,M,q)}_resetElementAttributes(_,M){const q=ye=>{const Oe=K.getDataAttribute(ye,M);if(Oe===null){ye.style.removeProperty(M);return}K.removeDataAttribute(ye,M),ye.style.setProperty(M,Oe)};this._applyManipulationCallback(_,q)}_applyManipulationCallback(_,M){if(m(_)){M(_);return}for(const q of Q.find(_,this._element))M(q)}}const YP="modal",Oi=".bs.modal",HP=".data-api",jP="Escape",KP=`hide${Oi}`,UP=`hidePrevented${Oi}`,_y=`hidden${Oi}`,vy=`show${Oi}`,GP=`shown${Oi}`,XP=`resize${Oi}`,qP=`click.dismiss${Oi}`,ZP=`mousedown.dismiss${Oi}`,JP=`keydown.dismiss${Oi}`,QP=`click${Oi}${HP}`,yy="modal-open",e2="fade",by="show",cg="modal-static",t2=".modal.show",n2=".modal-dialog",i2=".modal-body",s2='[data-bs-toggle="modal"]',r2={backdrop:!0,focus:!0,keyboard:!0},o2={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Ao extends j{constructor(_,M){super(_,M),this._dialog=Q.findOne(n2,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new lg,this._addEventListeners()}static get Default(){return r2}static get DefaultType(){return o2}static get NAME(){return YP}toggle(_){return this._isShown?this.hide():this.show(_)}show(_){this._isShown||this._isTransitioning||W.trigger(this._element,vy,{relatedTarget:_}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(yy),this._adjustDialog(),this._backdrop.show(()=>this._showElement(_)))}hide(){!this._isShown||this._isTransitioning||W.trigger(this._element,KP).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(by),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){W.off(window,Oi),W.off(this._dialog,Oi),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new dy({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new fy({trapElement:this._element})}_showElement(_){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 M=Q.findOne(i2,this._dialog);M&&(M.scrollTop=0),b(this._element),this._element.classList.add(by);const q=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,W.trigger(this._element,GP,{relatedTarget:_})};this._queueCallback(q,this._dialog,this._isAnimated())}_addEventListeners(){W.on(this._element,JP,_=>{if(_.key===jP){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),W.on(window,XP,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),W.on(this._element,ZP,_=>{W.one(this._element,qP,M=>{if(!(this._element!==_.target||this._element!==M.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(yy),this._resetAdjustments(),this._scrollBar.reset(),W.trigger(this._element,_y)})}_isAnimated(){return this._element.classList.contains(e2)}_triggerBackdropTransition(){if(W.trigger(this._element,UP).defaultPrevented)return;const M=this._element.scrollHeight>document.documentElement.clientHeight,q=this._element.style.overflowY;q==="hidden"||this._element.classList.contains(cg)||(M||(this._element.style.overflowY="hidden"),this._element.classList.add(cg),this._queueCallback(()=>{this._element.classList.remove(cg),this._queueCallback(()=>{this._element.style.overflowY=q},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const _=this._element.scrollHeight>document.documentElement.clientHeight,M=this._scrollBar.getWidth(),q=M>0;if(q&&!_){const ye=A()?"paddingLeft":"paddingRight";this._element.style[ye]=`${M}px`}if(!q&&_){const ye=A()?"paddingRight":"paddingLeft";this._element.style[ye]=`${M}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(_,M){return this.each(function(){const q=Ao.getOrCreateInstance(this,_);if(typeof _=="string"){if(typeof q[_]>"u")throw new TypeError(`No method named "${_}"`);q[_](M)}})}}W.on(document,QP,s2,function(G){const _=Q.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&G.preventDefault(),W.one(_,vy,ye=>{ye.defaultPrevented||W.one(_,_y,()=>{y(this)&&this.focus()})});const M=Q.findOne(t2);M&&Ao.getInstance(M).hide(),Ao.getOrCreateInstance(_).toggle(this)}),ge(Ao),I(Ao);const a2="offcanvas",Ys=".bs.offcanvas",wy=".data-api",l2=`load${Ys}${wy}`,c2="Escape",xy="show",Ey="showing",Cy="hiding",u2="offcanvas-backdrop",Sy=".offcanvas.show",d2=`show${Ys}`,h2=`shown${Ys}`,f2=`hide${Ys}`,ky=`hidePrevented${Ys}`,Ty=`hidden${Ys}`,g2=`resize${Ys}`,p2=`click${Ys}${wy}`,m2=`keydown.dismiss${Ys}`,_2='[data-bs-toggle="offcanvas"]',v2={backdrop:!0,keyboard:!0,scroll:!1},y2={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Hs extends j{constructor(_,M){super(_,M),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return v2}static get DefaultType(){return y2}static get NAME(){return a2}toggle(_){return this._isShown?this.hide():this.show(_)}show(_){if(this._isShown||W.trigger(this._element,d2,{relatedTarget:_}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new lg().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ey);const q=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(xy),this._element.classList.remove(Ey),W.trigger(this._element,h2,{relatedTarget:_})};this._queueCallback(q,this._element,!0)}hide(){if(!this._isShown||W.trigger(this._element,f2).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Cy),this._backdrop.hide();const M=()=>{this._element.classList.remove(xy,Cy),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new lg().reset(),W.trigger(this._element,Ty)};this._queueCallback(M,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const _=()=>{if(this._config.backdrop==="static"){W.trigger(this._element,ky);return}this.hide()},M=!!this._config.backdrop;return new dy({className:u2,isVisible:M,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:M?_:null})}_initializeFocusTrap(){return new fy({trapElement:this._element})}_addEventListeners(){W.on(this._element,m2,_=>{if(_.key===c2){if(this._config.keyboard){this.hide();return}W.trigger(this._element,ky)}})}static jQueryInterface(_){return this.each(function(){const M=Hs.getOrCreateInstance(this,_);if(typeof _=="string"){if(M[_]===void 0||_.startsWith("_")||_==="constructor")throw new TypeError(`No method named "${_}"`);M[_](this)}})}}W.on(document,p2,_2,function(G){const _=Q.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&G.preventDefault(),x(this))return;W.one(_,Ty,()=>{y(this)&&this.focus()});const M=Q.findOne(Sy);M&&M!==_&&Hs.getInstance(M).hide(),Hs.getOrCreateInstance(_).toggle(this)}),W.on(window,l2,()=>{for(const G of Q.find(Sy))Hs.getOrCreateInstance(G).show()}),W.on(window,g2,()=>{for(const G of Q.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(G).position!=="fixed"&&Hs.getOrCreateInstance(G).hide()}),ge(Hs),I(Hs);const Ay={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},b2=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),w2=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,x2=(G,_)=>{const M=G.nodeName.toLowerCase();return _.includes(M)?b2.has(M)?!!w2.test(G.nodeValue):!0:_.filter(q=>q instanceof RegExp).some(q=>q.test(M))};function E2(G,_,M){if(!G.length)return G;if(M&&typeof M=="function")return M(G);const ye=new window.DOMParser().parseFromString(G,"text/html"),Oe=[].concat(...ye.body.querySelectorAll("*"));for(const $e of Oe){const rt=$e.nodeName.toLowerCase();if(!Object.keys(_).includes(rt)){$e.remove();continue}const di=[].concat(...$e.attributes),Ni=[].concat(_["*"]||[],_[rt]||[]);for(const kn of di)x2(kn,Ni)||$e.removeAttribute(kn.nodeName)}return ye.body.innerHTML}const C2="TemplateFactory",S2={allowList:Ay,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},k2={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},T2={entry:"(string|element|function|null)",selector:"(string|element)"};class A2 extends U{constructor(_){super(),this._config=this._getConfig(_)}static get Default(){return S2}static get DefaultType(){return k2}static get NAME(){return C2}getContent(){return Object.values(this._config.content).map(_=>this._resolvePossibleFunction(_)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(_){return this._checkContent(_),this._config.content={...this._config.content,..._},this}toHtml(){const _=document.createElement("div");_.innerHTML=this._maybeSanitize(this._config.template);for(const[ye,Oe]of Object.entries(this._config.content))this._setContent(_,Oe,ye);const M=_.children[0],q=this._resolvePossibleFunction(this._config.extraClass);return q&&M.classList.add(...q.split(" ")),M}_typeCheckConfig(_){super._typeCheckConfig(_),this._checkContent(_.content)}_checkContent(_){for(const[M,q]of Object.entries(_))super._typeCheckConfig({selector:M,entry:q},T2)}_setContent(_,M,q){const ye=Q.findOne(q,_);if(ye){if(M=this._resolvePossibleFunction(M),!M){ye.remove();return}if(m(M)){this._putElementInTemplate(v(M),ye);return}if(this._config.html){ye.innerHTML=this._maybeSanitize(M);return}ye.textContent=M}}_maybeSanitize(_){return this._config.sanitize?E2(_,this._config.allowList,this._config.sanitizeFn):_}_resolvePossibleFunction(_){return V(_,[this])}_putElementInTemplate(_,M){if(this._config.html){M.innerHTML="",M.append(_);return}M.textContent=_.textContent}}const P2="tooltip",M2=new Set(["sanitize","allowList","sanitizeFn"]),ug="fade",I2="modal",ud="show",D2=".tooltip-inner",Py=`.${I2}`,My="hide.bs.modal",nc="hover",dg="focus",R2="click",$2="manual",L2="hide",O2="hidden",N2="show",F2="shown",B2="inserted",V2="click",z2="focusin",W2="focusout",Y2="mouseenter",H2="mouseleave",j2={AUTO:"auto",TOP:"top",RIGHT:A()?"left":"right",BOTTOM:"bottom",LEFT:A()?"right":"left"},K2={allowList:Ay,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"},U2={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 Po extends j{constructor(_,M){if(typeof s>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(_,M),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 K2}static get DefaultType(){return U2}static get NAME(){return P2}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),W.off(this._element.closest(Py),My,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 _=W.trigger(this._element,this.constructor.eventName(N2)),q=(E(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(_.defaultPrevented||!q)return;this._disposePopper();const ye=this._getTipElement();this._element.setAttribute("aria-describedby",ye.getAttribute("id"));const{container:Oe}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(Oe.append(ye),W.trigger(this._element,this.constructor.eventName(B2))),this._popper=this._createPopper(ye),ye.classList.add(ud),"ontouchstart"in document.documentElement)for(const rt of[].concat(...document.body.children))W.on(rt,"mouseover",w);const $e=()=>{W.trigger(this._element,this.constructor.eventName(F2)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback($e,this.tip,this._isAnimated())}hide(){if(!this._isShown()||W.trigger(this._element,this.constructor.eventName(L2)).defaultPrevented)return;if(this._getTipElement().classList.remove(ud),"ontouchstart"in document.documentElement)for(const ye of[].concat(...document.body.children))W.off(ye,"mouseover",w);this._activeTrigger[R2]=!1,this._activeTrigger[dg]=!1,this._activeTrigger[nc]=!1,this._isHovered=null;const q=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),W.trigger(this._element,this.constructor.eventName(O2)))};this._queueCallback(q,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(_){const M=this._getTemplateFactory(_).toHtml();if(!M)return null;M.classList.remove(ug,ud),M.classList.add(`bs-${this.constructor.NAME}-auto`);const q=f(this.constructor.NAME).toString();return M.setAttribute("id",q),this._isAnimated()&&M.classList.add(ug),M}setContent(_){this._newContent=_,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(_){return this._templateFactory?this._templateFactory.changeContent(_):this._templateFactory=new A2({...this._config,content:_,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[D2]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(_){return this.constructor.getOrCreateInstance(_.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(ug)}_isShown(){return this.tip&&this.tip.classList.contains(ud)}_createPopper(_){const M=V(this._config.placement,[this,_,this._element]),q=j2[M.toUpperCase()];return s.createPopper(this._element,_,this._getPopperConfig(q))}_getOffset(){const{offset:_}=this._config;return typeof _=="string"?_.split(",").map(M=>Number.parseInt(M,10)):typeof _=="function"?M=>_(M,this._element):_}_resolvePossibleFunction(_){return V(_,[this._element])}_getPopperConfig(_){const M={placement:_,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:q=>{this._getTipElement().setAttribute("data-popper-placement",q.state.placement)}}]};return{...M,...V(this._config.popperConfig,[M])}}_setListeners(){const _=this._config.trigger.split(" ");for(const M of _)if(M==="click")W.on(this._element,this.constructor.eventName(V2),this._config.selector,q=>{this._initializeOnDelegatedTarget(q).toggle()});else if(M!==$2){const q=M===nc?this.constructor.eventName(Y2):this.constructor.eventName(z2),ye=M===nc?this.constructor.eventName(H2):this.constructor.eventName(W2);W.on(this._element,q,this._config.selector,Oe=>{const $e=this._initializeOnDelegatedTarget(Oe);$e._activeTrigger[Oe.type==="focusin"?dg:nc]=!0,$e._enter()}),W.on(this._element,ye,this._config.selector,Oe=>{const $e=this._initializeOnDelegatedTarget(Oe);$e._activeTrigger[Oe.type==="focusout"?dg:nc]=$e._element.contains(Oe.relatedTarget),$e._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},W.on(this._element.closest(Py),My,this._hideModalHandler)}_fixTitle(){const _=this._element.getAttribute("title");_&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",_),this._element.setAttribute("data-bs-original-title",_),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(_,M){clearTimeout(this._timeout),this._timeout=setTimeout(_,M)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(_){const M=K.getDataAttributes(this._element);for(const q of Object.keys(M))M2.has(q)&&delete M[q];return _={...M,...typeof _=="object"&&_?_:{}},_=this._mergeConfigObj(_),_=this._configAfterMerge(_),this._typeCheckConfig(_),_}_configAfterMerge(_){return _.container=_.container===!1?document.body:v(_.container),typeof _.delay=="number"&&(_.delay={show:_.delay,hide:_.delay}),typeof _.title=="number"&&(_.title=_.title.toString()),typeof _.content=="number"&&(_.content=_.content.toString()),_}_getDelegateConfig(){const _={};for(const[M,q]of Object.entries(this._config))this.constructor.Default[M]!==q&&(_[M]=q);return _.selector=!1,_.trigger="manual",_}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(_){return this.each(function(){const M=Po.getOrCreateInstance(this,_);if(typeof _=="string"){if(typeof M[_]>"u")throw new TypeError(`No method named "${_}"`);M[_]()}})}}I(Po);const G2="popover",X2=".popover-header",q2=".popover-body",Z2={...Po.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},J2={...Po.DefaultType,content:"(null|string|element|function)"};class dd extends Po{static get Default(){return Z2}static get DefaultType(){return J2}static get NAME(){return G2}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[X2]:this._getTitle(),[q2]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(_){return this.each(function(){const M=dd.getOrCreateInstance(this,_);if(typeof _=="string"){if(typeof M[_]>"u")throw new TypeError(`No method named "${_}"`);M[_]()}})}}I(dd);const Q2="scrollspy",hg=".bs.scrollspy",eM=".data-api",tM=`activate${hg}`,Iy=`click${hg}`,nM=`load${hg}${eM}`,iM="dropdown-item",Ma="active",sM='[data-bs-spy="scroll"]',fg="[href]",rM=".nav, .list-group",Dy=".nav-link",oM=`${Dy}, .nav-item > ${Dy}, .list-group-item`,aM=".dropdown",lM=".dropdown-toggle",cM={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},uM={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class ic extends j{constructor(_,M){super(_,M),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 cM}static get DefaultType(){return uM}static get NAME(){return Q2}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const _ of this._observableSections.values())this._observer.observe(_)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(_){return _.target=v(_.target)||document.body,_.rootMargin=_.offset?`${_.offset}px 0px -30%`:_.rootMargin,typeof _.threshold=="string"&&(_.threshold=_.threshold.split(",").map(M=>Number.parseFloat(M))),_}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(W.off(this._config.target,Iy),W.on(this._config.target,Iy,fg,_=>{const M=this._observableSections.get(_.target.hash);if(M){_.preventDefault();const q=this._rootElement||window,ye=M.offsetTop-this._element.offsetTop;if(q.scrollTo){q.scrollTo({top:ye,behavior:"smooth"});return}q.scrollTop=ye}}))}_getNewObserver(){const _={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(M=>this._observerCallback(M),_)}_observerCallback(_){const M=$e=>this._targetLinks.get(`#${$e.target.id}`),q=$e=>{this._previousScrollData.visibleEntryTop=$e.target.offsetTop,this._process(M($e))},ye=(this._rootElement||document.documentElement).scrollTop,Oe=ye>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=ye;for(const $e of _){if(!$e.isIntersecting){this._activeTarget=null,this._clearActiveClass(M($e));continue}const rt=$e.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(Oe&&rt){if(q($e),!ye)return;continue}!Oe&&!rt&&q($e)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const _=Q.find(fg,this._config.target);for(const M of _){if(!M.hash||x(M))continue;const q=Q.findOne(decodeURI(M.hash),this._element);y(q)&&(this._targetLinks.set(decodeURI(M.hash),M),this._observableSections.set(M.hash,q))}}_process(_){this._activeTarget!==_&&(this._clearActiveClass(this._config.target),this._activeTarget=_,_.classList.add(Ma),this._activateParents(_),W.trigger(this._element,tM,{relatedTarget:_}))}_activateParents(_){if(_.classList.contains(iM)){Q.findOne(lM,_.closest(aM)).classList.add(Ma);return}for(const M of Q.parents(_,rM))for(const q of Q.prev(M,oM))q.classList.add(Ma)}_clearActiveClass(_){_.classList.remove(Ma);const M=Q.find(`${fg}.${Ma}`,_);for(const q of M)q.classList.remove(Ma)}static jQueryInterface(_){return this.each(function(){const M=ic.getOrCreateInstance(this,_);if(typeof _=="string"){if(M[_]===void 0||_.startsWith("_")||_==="constructor")throw new TypeError(`No method named "${_}"`);M[_]()}})}}W.on(window,nM,()=>{for(const G of Q.find(sM))ic.getOrCreateInstance(G)}),I(ic);const dM="tab",Mo=".bs.tab",hM=`hide${Mo}`,fM=`hidden${Mo}`,gM=`show${Mo}`,pM=`shown${Mo}`,mM=`click${Mo}`,_M=`keydown${Mo}`,vM=`load${Mo}`,yM="ArrowLeft",Ry="ArrowRight",bM="ArrowUp",$y="ArrowDown",gg="Home",Ly="End",Io="active",Oy="fade",pg="show",wM="dropdown",Ny=".dropdown-toggle",xM=".dropdown-menu",mg=`:not(${Ny})`,EM='.list-group, .nav, [role="tablist"]',CM=".nav-item, .list-group-item",SM=`.nav-link${mg}, .list-group-item${mg}, [role="tab"]${mg}`,Fy='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',_g=`${SM}, ${Fy}`,kM=`.${Io}[data-bs-toggle="tab"], .${Io}[data-bs-toggle="pill"], .${Io}[data-bs-toggle="list"]`;class Do extends j{constructor(_){super(_),this._parent=this._element.closest(EM),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),W.on(this._element,_M,M=>this._keydown(M)))}static get NAME(){return dM}show(){const _=this._element;if(this._elemIsActive(_))return;const M=this._getActiveElem(),q=M?W.trigger(M,hM,{relatedTarget:_}):null;W.trigger(_,gM,{relatedTarget:M}).defaultPrevented||q&&q.defaultPrevented||(this._deactivate(M,_),this._activate(_,M))}_activate(_,M){if(!_)return;_.classList.add(Io),this._activate(Q.getElementFromSelector(_));const q=()=>{if(_.getAttribute("role")!=="tab"){_.classList.add(pg);return}_.removeAttribute("tabindex"),_.setAttribute("aria-selected",!0),this._toggleDropDown(_,!0),W.trigger(_,pM,{relatedTarget:M})};this._queueCallback(q,_,_.classList.contains(Oy))}_deactivate(_,M){if(!_)return;_.classList.remove(Io),_.blur(),this._deactivate(Q.getElementFromSelector(_));const q=()=>{if(_.getAttribute("role")!=="tab"){_.classList.remove(pg);return}_.setAttribute("aria-selected",!1),_.setAttribute("tabindex","-1"),this._toggleDropDown(_,!1),W.trigger(_,fM,{relatedTarget:M})};this._queueCallback(q,_,_.classList.contains(Oy))}_keydown(_){if(![yM,Ry,bM,$y,gg,Ly].includes(_.key))return;_.stopPropagation(),_.preventDefault();const M=this._getChildren().filter(ye=>!x(ye));let q;if([gg,Ly].includes(_.key))q=M[_.key===gg?0:M.length-1];else{const ye=[Ry,$y].includes(_.key);q=ne(M,_.target,ye,!0)}q&&(q.focus({preventScroll:!0}),Do.getOrCreateInstance(q).show())}_getChildren(){return Q.find(_g,this._parent)}_getActiveElem(){return this._getChildren().find(_=>this._elemIsActive(_))||null}_setInitialAttributes(_,M){this._setAttributeIfNotExists(_,"role","tablist");for(const q of M)this._setInitialAttributesOnChild(q)}_setInitialAttributesOnChild(_){_=this._getInnerElement(_);const M=this._elemIsActive(_),q=this._getOuterElement(_);_.setAttribute("aria-selected",M),q!==_&&this._setAttributeIfNotExists(q,"role","presentation"),M||_.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(_,"role","tab"),this._setInitialAttributesOnTargetPanel(_)}_setInitialAttributesOnTargetPanel(_){const M=Q.getElementFromSelector(_);M&&(this._setAttributeIfNotExists(M,"role","tabpanel"),_.id&&this._setAttributeIfNotExists(M,"aria-labelledby",`${_.id}`))}_toggleDropDown(_,M){const q=this._getOuterElement(_);if(!q.classList.contains(wM))return;const ye=(Oe,$e)=>{const rt=Q.findOne(Oe,q);rt&&rt.classList.toggle($e,M)};ye(Ny,Io),ye(xM,pg),q.setAttribute("aria-expanded",M)}_setAttributeIfNotExists(_,M,q){_.hasAttribute(M)||_.setAttribute(M,q)}_elemIsActive(_){return _.classList.contains(Io)}_getInnerElement(_){return _.matches(_g)?_:Q.findOne(_g,_)}_getOuterElement(_){return _.closest(CM)||_}static jQueryInterface(_){return this.each(function(){const M=Do.getOrCreateInstance(this);if(typeof _=="string"){if(M[_]===void 0||_.startsWith("_")||_==="constructor")throw new TypeError(`No method named "${_}"`);M[_]()}})}}W.on(document,mM,Fy,function(G){["A","AREA"].includes(this.tagName)&&G.preventDefault(),!x(this)&&Do.getOrCreateInstance(this).show()}),W.on(window,vM,()=>{for(const G of Q.find(kM))Do.getOrCreateInstance(G)}),I(Do);const TM="toast",Sr=".bs.toast",AM=`mouseover${Sr}`,PM=`mouseout${Sr}`,MM=`focusin${Sr}`,IM=`focusout${Sr}`,DM=`hide${Sr}`,RM=`hidden${Sr}`,$M=`show${Sr}`,LM=`shown${Sr}`,OM="fade",By="hide",hd="show",fd="showing",NM={animation:"boolean",autohide:"boolean",delay:"number"},FM={animation:!0,autohide:!0,delay:5e3};class sc extends j{constructor(_,M){super(_,M),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return FM}static get DefaultType(){return NM}static get NAME(){return TM}show(){if(W.trigger(this._element,$M).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(OM);const M=()=>{this._element.classList.remove(fd),W.trigger(this._element,LM),this._maybeScheduleHide()};this._element.classList.remove(By),b(this._element),this._element.classList.add(hd,fd),this._queueCallback(M,this._element,this._config.animation)}hide(){if(!this.isShown()||W.trigger(this._element,DM).defaultPrevented)return;const M=()=>{this._element.classList.add(By),this._element.classList.remove(fd,hd),W.trigger(this._element,RM)};this._element.classList.add(fd),this._queueCallback(M,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(hd),super.dispose()}isShown(){return this._element.classList.contains(hd)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(_,M){switch(_.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=M;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=M;break}}if(M){this._clearTimeout();return}const q=_.relatedTarget;this._element===q||this._element.contains(q)||this._maybeScheduleHide()}_setListeners(){W.on(this._element,AM,_=>this._onInteraction(_,!0)),W.on(this._element,PM,_=>this._onInteraction(_,!1)),W.on(this._element,MM,_=>this._onInteraction(_,!0)),W.on(this._element,IM,_=>this._onInteraction(_,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(_){return this.each(function(){const M=sc.getOrCreateInstance(this,_);if(typeof _=="string"){if(typeof M[_]>"u")throw new TypeError(`No method named "${_}"`);M[_](this)}})}}return ge(sc),I(sc),{Alert:et,Button:ae,Carousel:ka,Collapse:Aa,Dropdown:Ji,Modal:Ao,Offcanvas:Hs,Popover:dd,ScrollSpy:ic,Tab:Do,Toast:sc,Tooltip:Po}})})(WM);/** * @vue/shared v3.5.11 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function t_(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const Mt={},rl=[],$s=()=>{},DI=()=>!1,sf=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),n_=t=>t.startsWith("onUpdate:"),vn=Object.assign,i_=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},RI=Object.prototype.hasOwnProperty,wt=(t,e)=>RI.call(t,e),Ke=Array.isArray,ol=t=>Lu(t)==="[object Map]",Ul=t=>Lu(t)==="[object Set]",Gy=t=>Lu(t)==="[object Date]",Ze=t=>typeof t=="function",jt=t=>typeof t=="string",Fs=t=>typeof t=="symbol",It=t=>t!==null&&typeof t=="object",Px=t=>(It(t)||Ze(t))&&Ze(t.then)&&Ze(t.catch),Mx=Object.prototype.toString,Lu=t=>Mx.call(t),$I=t=>Lu(t).slice(8,-1),Ix=t=>Lu(t)==="[object Object]",s_=t=>jt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Lc=t_(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),rf=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},LI=/-(\w)/g,Ui=rf(t=>t.replace(LI,(e,n)=>n?n.toUpperCase():"")),OI=/\B([A-Z])/g,go=rf(t=>t.replace(OI,"-$1").toLowerCase()),of=rf(t=>t.charAt(0).toUpperCase()+t.slice(1)),vg=rf(t=>t?`on${of(t)}`:""),so=(t,e)=>!Object.is(t,e),nh=(t,...e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:i,value:n})},ph=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Rx=t=>{const e=jt(t)?Number(t):NaN;return isNaN(e)?t:e};let Xy;const $x=()=>Xy||(Xy=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Mn(t){if(Ke(t)){const e={};for(let n=0;n{if(n){const i=n.split(FI);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e}function Se(t){let e="";if(jt(t))e=t;else if(Ke(t))for(let n=0;nca(n,e))}const Ox=t=>!!(t&&t.__v_isRef===!0),pe=t=>jt(t)?t:t==null?"":Ke(t)||It(t)&&(t.toString===Mx||!Ze(t.toString))?Ox(t)?pe(t.value):JSON.stringify(t,Nx,2):String(t),Nx=(t,e)=>Ox(e)?Nx(t,e.value):ol(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[i,s],r)=>(n[yg(i,r)+" =>"]=s,n),{})}:Ul(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>yg(n))}:Fs(e)?yg(e):It(e)&&!Ke(e)&&!Ix(e)?String(e):e,yg=(t,e="")=>{var n;return Fs(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/** +**//*! #__NO_SIDE_EFFECTS__ */function t_(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const Mt={},rl=[],$s=()=>{},DI=()=>!1,sf=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),n_=t=>t.startsWith("onUpdate:"),vn=Object.assign,i_=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},RI=Object.prototype.hasOwnProperty,wt=(t,e)=>RI.call(t,e),Ke=Array.isArray,ol=t=>Lu(t)==="[object Map]",Ul=t=>Lu(t)==="[object Set]",Gy=t=>Lu(t)==="[object Date]",Je=t=>typeof t=="function",jt=t=>typeof t=="string",Fs=t=>typeof t=="symbol",It=t=>t!==null&&typeof t=="object",Px=t=>(It(t)||Je(t))&&Je(t.then)&&Je(t.catch),Mx=Object.prototype.toString,Lu=t=>Mx.call(t),$I=t=>Lu(t).slice(8,-1),Ix=t=>Lu(t)==="[object Object]",s_=t=>jt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Lc=t_(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),rf=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},LI=/-(\w)/g,Ui=rf(t=>t.replace(LI,(e,n)=>n?n.toUpperCase():"")),OI=/\B([A-Z])/g,go=rf(t=>t.replace(OI,"-$1").toLowerCase()),of=rf(t=>t.charAt(0).toUpperCase()+t.slice(1)),vg=rf(t=>t?`on${of(t)}`:""),so=(t,e)=>!Object.is(t,e),nh=(t,...e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:i,value:n})},ph=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Rx=t=>{const e=jt(t)?Number(t):NaN;return isNaN(e)?t:e};let Xy;const $x=()=>Xy||(Xy=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Mn(t){if(Ke(t)){const e={};for(let n=0;n{if(n){const i=n.split(FI);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e}function Se(t){let e="";if(jt(t))e=t;else if(Ke(t))for(let n=0;nca(n,e))}const Ox=t=>!!(t&&t.__v_isRef===!0),pe=t=>jt(t)?t:t==null?"":Ke(t)||It(t)&&(t.toString===Mx||!Je(t.toString))?Ox(t)?pe(t.value):JSON.stringify(t,Nx,2):String(t),Nx=(t,e)=>Ox(e)?Nx(t,e.value):ol(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[i,s],r)=>(n[yg(i,r)+" =>"]=s,n),{})}:Ul(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>yg(n))}:Fs(e)?yg(e):It(e)&&!Ke(e)&&!Ix(e)?String(e):e,yg=(t,e="")=>{var n;return Fs(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/** * @vue/reactivity v3.5.11 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let ei;class Fx{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ei,!e&&ei&&(this.index=(ei.scopes||(ei.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e0)return;if(Nc){let e=Nc;for(Nc=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;Oc;){let e=Oc;for(Oc=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(i){t||(t=i)}e=n}}if(t)throw t}function Yx(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Hx(t){let e,n=t.depsTail,i=n;for(;i;){const s=i.prevDep;i.version===-1?(i===n&&(n=s),c_(i),HI(i)):e=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=s}t.deps=e,t.depsTail=n}function Lp(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(jx(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function jx(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Qc))return;t.globalVersion=Qc;const e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!Lp(t)){t.flags&=-3;return}const n=Rt,i=us;Rt=t,us=!0;try{Yx(t);const s=t.fn(t._value);(e.version===0||so(s,t._value))&&(t._value=s,e.version++)}catch(s){throw e.version++,s}finally{Rt=n,us=i,Hx(t),t.flags&=-3}}function c_(t,e=!1){const{dep:n,prevSub:i,nextSub:s}=t;if(i&&(i.nextSub=s,t.prevSub=void 0),s&&(s.prevSub=i,t.nextSub=void 0),n.subs===t&&(n.subs=i),!n.subs&&n.computed){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)c_(r,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function HI(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}let us=!0;const Kx=[];function po(){Kx.push(us),us=!1}function mo(){const t=Kx.pop();us=t===void 0?!0:t}function qy(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=Rt;Rt=void 0;try{e()}finally{Rt=n}}}let Qc=0;class jI{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class u_{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!Rt||!us||Rt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Rt)n=this.activeLink=new jI(Rt,this),Rt.deps?(n.prevDep=Rt.depsTail,Rt.depsTail.nextDep=n,Rt.depsTail=n):Rt.deps=Rt.depsTail=n,Ux(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const i=n.nextDep;i.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=i),n.prevDep=Rt.depsTail,n.nextDep=void 0,Rt.depsTail.nextDep=n,Rt.depsTail=n,Rt.deps===n&&(Rt.deps=i)}return n}trigger(e){this.version++,Qc++,this.notify(e)}notify(e){a_();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{l_()}}}function Ux(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let i=e.deps;i;i=i.nextDep)Ux(i)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const mh=new WeakMap,ta=Symbol(""),Op=Symbol(""),eu=Symbol("");function qn(t,e,n){if(us&&Rt){let i=mh.get(t);i||mh.set(t,i=new Map);let s=i.get(n);s||(i.set(n,s=new u_),s.map=i,s.key=n),s.track()}}function dr(t,e,n,i,s,r){const o=mh.get(t);if(!o){Qc++;return}const a=l=>{l&&l.trigger()};if(a_(),e==="clear")o.forEach(a);else{const l=Ke(t),c=l&&s_(n);if(l&&n==="length"){const u=Number(i);o.forEach((d,h)=>{(h==="length"||h===eu||!Fs(h)&&h>=u)&&a(d)})}else switch(n!==void 0&&a(o.get(n)),c&&a(o.get(eu)),e){case"add":l?c&&a(o.get("length")):(a(o.get(ta)),ol(t)&&a(o.get(Op)));break;case"delete":l||(a(o.get(ta)),ol(t)&&a(o.get(Op)));break;case"set":ol(t)&&a(o.get(ta));break}}l_()}function KI(t,e){const n=mh.get(t);return n&&n.get(e)}function Da(t){const e=lt(t);return e===t?e:(qn(e,"iterate",eu),Hi(t)?e:e.map(Kn))}function lf(t){return qn(t=lt(t),"iterate",eu),t}const UI={__proto__:null,[Symbol.iterator](){return wg(this,Symbol.iterator,Kn)},concat(...t){return Da(this).concat(...t.map(e=>Ke(e)?Da(e):e))},entries(){return wg(this,"entries",t=>(t[1]=Kn(t[1]),t))},every(t,e){return js(this,"every",t,e,void 0,arguments)},filter(t,e){return js(this,"filter",t,e,n=>n.map(Kn),arguments)},find(t,e){return js(this,"find",t,e,Kn,arguments)},findIndex(t,e){return js(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return js(this,"findLast",t,e,Kn,arguments)},findLastIndex(t,e){return js(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return js(this,"forEach",t,e,void 0,arguments)},includes(...t){return xg(this,"includes",t)},indexOf(...t){return xg(this,"indexOf",t)},join(t){return Da(this).join(t)},lastIndexOf(...t){return xg(this,"lastIndexOf",t)},map(t,e){return js(this,"map",t,e,void 0,arguments)},pop(){return rc(this,"pop")},push(...t){return rc(this,"push",t)},reduce(t,...e){return Zy(this,"reduce",t,e)},reduceRight(t,...e){return Zy(this,"reduceRight",t,e)},shift(){return rc(this,"shift")},some(t,e){return js(this,"some",t,e,void 0,arguments)},splice(...t){return rc(this,"splice",t)},toReversed(){return Da(this).toReversed()},toSorted(t){return Da(this).toSorted(t)},toSpliced(...t){return Da(this).toSpliced(...t)},unshift(...t){return rc(this,"unshift",t)},values(){return wg(this,"values",Kn)}};function wg(t,e,n){const i=lf(t),s=i[e]();return i!==t&&!Hi(t)&&(s._next=s.next,s.next=()=>{const r=s._next();return r.value&&(r.value=n(r.value)),r}),s}const GI=Array.prototype;function js(t,e,n,i,s,r){const o=lf(t),a=o!==t&&!Hi(t),l=o[e];if(l!==GI[e]){const d=l.apply(t,r);return a?Kn(d):d}let c=n;o!==t&&(a?c=function(d,h){return n.call(this,Kn(d),h,t)}:n.length>2&&(c=function(d,h){return n.call(this,d,h,t)}));const u=l.call(o,c,i);return a&&s?s(u):u}function Zy(t,e,n,i){const s=lf(t);let r=n;return s!==t&&(Hi(t)?n.length>3&&(r=function(o,a,l){return n.call(this,o,a,l,t)}):r=function(o,a,l){return n.call(this,o,Kn(a),l,t)}),s[e](r,...i)}function xg(t,e,n){const i=lt(t);qn(i,"iterate",eu);const s=i[e](...n);return(s===-1||s===!1)&&Ou(n[0])?(n[0]=lt(n[0]),i[e](...n)):s}function rc(t,e,n=[]){po(),a_();const i=lt(t)[e].apply(t,n);return l_(),mo(),i}const XI=t_("__proto__,__v_isRef,__isVue"),Gx=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Fs));function qI(t){Fs(t)||(t=String(t));const e=lt(this);return qn(e,"has",t),e.hasOwnProperty(t)}class Xx{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,i){const s=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return r;if(n==="__v_raw")return i===(s?r?cD:Qx:r?Jx:Zx).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(i)?e:void 0;const o=Ke(e);if(!s){let l;if(o&&(l=UI[n]))return l;if(n==="hasOwnProperty")return qI}const a=Reflect.get(e,n,Ht(e)?e:i);return(Fs(n)?Gx.has(n):XI(n))||(s||qn(e,"get",n),r)?a:Ht(a)?o&&s_(n)?a:a.value:It(a)?s?tE(a):Ei(a):a}}class qx extends Xx{constructor(e=!1){super(!1,e)}set(e,n,i,s){let r=e[n];if(!this._isShallow){const l=ua(r);if(!Hi(i)&&!ua(i)&&(r=lt(r),i=lt(i)),!Ke(e)&&Ht(r)&&!Ht(i))return l?!1:(r.value=i,!0)}const o=Ke(e)&&s_(n)?Number(n)t,cf=t=>Reflect.getPrototypeOf(t);function md(t,e,n=!1,i=!1){t=t.__v_raw;const s=lt(t),r=lt(e);n||(so(e,r)&&qn(s,"get",e),qn(s,"get",r));const{has:o}=cf(s),a=i?d_:n?g_:Kn;if(o.call(s,e))return a(t.get(e));if(o.call(s,r))return a(t.get(r));t!==s&&t.get(e)}function _d(t,e=!1){const n=this.__v_raw,i=lt(n),s=lt(t);return e||(so(t,s)&&qn(i,"has",t),qn(i,"has",s)),t===s?n.has(t):n.has(t)||n.has(s)}function vd(t,e=!1){return t=t.__v_raw,!e&&qn(lt(t),"iterate",ta),Reflect.get(t,"size",t)}function Jy(t,e=!1){!e&&!Hi(t)&&!ua(t)&&(t=lt(t));const n=lt(this);return cf(n).has.call(n,t)||(n.add(t),dr(n,"add",t,t)),this}function Qy(t,e,n=!1){!n&&!Hi(e)&&!ua(e)&&(e=lt(e));const i=lt(this),{has:s,get:r}=cf(i);let o=s.call(i,t);o||(t=lt(t),o=s.call(i,t));const a=r.call(i,t);return i.set(t,e),o?so(e,a)&&dr(i,"set",t,e):dr(i,"add",t,e),this}function eb(t){const e=lt(this),{has:n,get:i}=cf(e);let s=n.call(e,t);s||(t=lt(t),s=n.call(e,t)),i&&i.call(e,t);const r=e.delete(t);return s&&dr(e,"delete",t,void 0),r}function tb(){const t=lt(this),e=t.size!==0,n=t.clear();return e&&dr(t,"clear",void 0,void 0),n}function yd(t,e){return function(i,s){const r=this,o=r.__v_raw,a=lt(o),l=e?d_:t?g_:Kn;return!t&&qn(a,"iterate",ta),o.forEach((c,u)=>i.call(s,l(c),l(u),r))}}function bd(t,e,n){return function(...i){const s=this.__v_raw,r=lt(s),o=ol(r),a=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,c=s[t](...i),u=n?d_:e?g_:Kn;return!e&&qn(r,"iterate",l?Op:ta),{next(){const{value:d,done:h}=c.next();return h?{value:d,done:h}:{value:a?[u(d[0]),u(d[1])]:u(d),done:h}},[Symbol.iterator](){return this}}}}function kr(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function tD(){const t={get(r){return md(this,r)},get size(){return vd(this)},has:_d,add:Jy,set:Qy,delete:eb,clear:tb,forEach:yd(!1,!1)},e={get(r){return md(this,r,!1,!0)},get size(){return vd(this)},has:_d,add(r){return Jy.call(this,r,!0)},set(r,o){return Qy.call(this,r,o,!0)},delete:eb,clear:tb,forEach:yd(!1,!0)},n={get(r){return md(this,r,!0)},get size(){return vd(this,!0)},has(r){return _d.call(this,r,!0)},add:kr("add"),set:kr("set"),delete:kr("delete"),clear:kr("clear"),forEach:yd(!0,!1)},i={get(r){return md(this,r,!0,!0)},get size(){return vd(this,!0)},has(r){return _d.call(this,r,!0)},add:kr("add"),set:kr("set"),delete:kr("delete"),clear:kr("clear"),forEach:yd(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{t[r]=bd(r,!1,!1),n[r]=bd(r,!0,!1),e[r]=bd(r,!1,!0),i[r]=bd(r,!0,!0)}),[t,n,e,i]}const[nD,iD,sD,rD]=tD();function h_(t,e){const n=e?t?rD:sD:t?iD:nD;return(i,s,r)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?i:Reflect.get(wt(n,s)&&s in i?n:i,s,r)}const oD={get:h_(!1,!1)},aD={get:h_(!1,!0)},lD={get:h_(!0,!1)};const Zx=new WeakMap,Jx=new WeakMap,Qx=new WeakMap,cD=new WeakMap;function uD(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function dD(t){return t.__v_skip||!Object.isExtensible(t)?0:uD($I(t))}function Ei(t){return ua(t)?t:f_(t,!1,JI,oD,Zx)}function eE(t){return f_(t,!1,eD,aD,Jx)}function tE(t){return f_(t,!0,QI,lD,Qx)}function f_(t,e,n,i,s){if(!It(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const r=s.get(t);if(r)return r;const o=dD(t);if(o===0)return t;const a=new Proxy(t,o===2?i:n);return s.set(t,a),a}function Qr(t){return ua(t)?Qr(t.__v_raw):!!(t&&t.__v_isReactive)}function ua(t){return!!(t&&t.__v_isReadonly)}function Hi(t){return!!(t&&t.__v_isShallow)}function Ou(t){return t?!!t.__v_raw:!1}function lt(t){const e=t&&t.__v_raw;return e?lt(e):t}function uf(t){return!wt(t,"__v_skip")&&Object.isExtensible(t)&&Dx(t,"__v_skip",!0),t}const Kn=t=>It(t)?Ei(t):t,g_=t=>It(t)?tE(t):t;function Ht(t){return t?t.__v_isRef===!0:!1}function me(t){return nE(t,!1)}function df(t){return nE(t,!0)}function nE(t,e){return Ht(t)?t:new hD(t,e)}class hD{constructor(e,n){this.dep=new u_,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:lt(e),this._value=n?e:Kn(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,i=this.__v_isShallow||Hi(e)||ua(e);e=i?e:lt(e),so(e,n)&&(this._rawValue=e,this._value=i?e:Kn(e),this.dep.trigger())}}function Z(t){return Ht(t)?t.value:t}const fD={get:(t,e,n)=>e==="__v_raw"?t:Z(Reflect.get(t,e,n)),set:(t,e,n,i)=>{const s=t[e];return Ht(s)&&!Ht(n)?(s.value=n,!0):Reflect.set(t,e,n,i)}};function iE(t){return Qr(t)?t:new Proxy(t,fD)}function gD(t){const e=Ke(t)?new Array(t.length):{};for(const n in t)e[n]=sE(t,n);return e}class pD{constructor(e,n,i){this._object=e,this._key=n,this._defaultValue=i,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return KI(lt(this._object),this._key)}}class mD{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function tu(t,e,n){return Ht(t)?t:Ze(t)?new mD(t):It(t)&&arguments.length>1?sE(t,e,n):me(t)}function sE(t,e,n){const i=t[e];return Ht(i)?i:new pD(t,e,n)}class _D{constructor(e,n,i){this.fn=e,this.setter=n,this._value=void 0,this.dep=new u_(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Qc-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&Rt!==this)return Wx(this,!0),!0}get value(){const e=this.dep.track();return jx(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function vD(t,e,n=!1){let i,s;return Ze(t)?i=t:(i=t.get,s=t.set),new _D(i,s,n)}const wd={},_h=new WeakMap;let Wo;function yD(t,e=!1,n=Wo){if(n){let i=_h.get(n);i||_h.set(n,i=[]),i.push(t)}}function bD(t,e,n=Mt){const{immediate:i,deep:s,once:r,scheduler:o,augmentJob:a,call:l}=n,c=w=>s?w:Hi(w)||s===!1||s===0?rr(w,1):rr(w);let u,d,h,g,p=!1,m=!1;if(Ht(t)?(d=()=>t.value,p=Hi(t)):Qr(t)?(d=()=>c(t),p=!0):Ke(t)?(m=!0,p=t.some(w=>Qr(w)||Hi(w)),d=()=>t.map(w=>{if(Ht(w))return w.value;if(Qr(w))return c(w);if(Ze(w))return l?l(w,2):w()})):Ze(t)?e?d=l?()=>l(t,2):t:d=()=>{if(h){po();try{h()}finally{mo()}}const w=Wo;Wo=u;try{return l?l(t,3,[g]):t(g)}finally{Wo=w}}:d=$s,e&&s){const w=d,b=s===!0?1/0:s;d=()=>rr(w(),b)}const v=af(),y=()=>{u.stop(),v&&i_(v.effects,u)};if(r&&e){const w=e;e=(...b)=>{w(...b),y()}}let x=m?new Array(t.length).fill(wd):wd;const E=w=>{if(!(!(u.flags&1)||!u.dirty&&!w))if(e){const b=u.run();if(s||p||(m?b.some((C,k)=>so(C,x[k])):so(b,x))){h&&h();const C=Wo;Wo=u;try{const k=[b,x===wd?void 0:m&&x[0]===wd?[]:x,g];l?l(e,3,k):e(...k),x=b}finally{Wo=C}}}else u.run()};return a&&a(E),u=new Vx(d),u.scheduler=o?()=>o(E,!1):E,g=w=>yD(w,!1,u),h=u.onStop=()=>{const w=_h.get(u);if(w){if(l)l(w,4);else for(const b of w)b();_h.delete(u)}},e?i?E(!0):x=u.run():o?o(E.bind(null,!0),!0):u.run(),y.pause=u.pause.bind(u),y.resume=u.resume.bind(u),y.stop=y,y}function rr(t,e=1/0,n){if(e<=0||!It(t)||t.__v_skip||(n=n||new Set,n.has(t)))return t;if(n.add(t),e--,Ht(t))rr(t.value,e,n);else if(Ke(t))for(let i=0;i{rr(i,e,n)});else if(Ix(t)){for(const i in t)rr(t[i],e,n);for(const i of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,i)&&rr(t[i],e,n)}return t}/** +**/let ei;class Fx{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ei,!e&&ei&&(this.index=(ei.scopes||(ei.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e0)return;if(Nc){let e=Nc;for(Nc=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;Oc;){let e=Oc;for(Oc=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(i){t||(t=i)}e=n}}if(t)throw t}function Yx(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Hx(t){let e,n=t.depsTail,i=n;for(;i;){const s=i.prevDep;i.version===-1?(i===n&&(n=s),c_(i),HI(i)):e=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=s}t.deps=e,t.depsTail=n}function Lp(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(jx(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function jx(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Qc))return;t.globalVersion=Qc;const e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!Lp(t)){t.flags&=-3;return}const n=Rt,i=us;Rt=t,us=!0;try{Yx(t);const s=t.fn(t._value);(e.version===0||so(s,t._value))&&(t._value=s,e.version++)}catch(s){throw e.version++,s}finally{Rt=n,us=i,Hx(t),t.flags&=-3}}function c_(t,e=!1){const{dep:n,prevSub:i,nextSub:s}=t;if(i&&(i.nextSub=s,t.prevSub=void 0),s&&(s.prevSub=i,t.nextSub=void 0),n.subs===t&&(n.subs=i),!n.subs&&n.computed){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)c_(r,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function HI(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}let us=!0;const Kx=[];function po(){Kx.push(us),us=!1}function mo(){const t=Kx.pop();us=t===void 0?!0:t}function qy(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=Rt;Rt=void 0;try{e()}finally{Rt=n}}}let Qc=0;class jI{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class u_{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!Rt||!us||Rt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Rt)n=this.activeLink=new jI(Rt,this),Rt.deps?(n.prevDep=Rt.depsTail,Rt.depsTail.nextDep=n,Rt.depsTail=n):Rt.deps=Rt.depsTail=n,Ux(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const i=n.nextDep;i.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=i),n.prevDep=Rt.depsTail,n.nextDep=void 0,Rt.depsTail.nextDep=n,Rt.depsTail=n,Rt.deps===n&&(Rt.deps=i)}return n}trigger(e){this.version++,Qc++,this.notify(e)}notify(e){a_();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{l_()}}}function Ux(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let i=e.deps;i;i=i.nextDep)Ux(i)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const mh=new WeakMap,ta=Symbol(""),Op=Symbol(""),eu=Symbol("");function qn(t,e,n){if(us&&Rt){let i=mh.get(t);i||mh.set(t,i=new Map);let s=i.get(n);s||(i.set(n,s=new u_),s.map=i,s.key=n),s.track()}}function dr(t,e,n,i,s,r){const o=mh.get(t);if(!o){Qc++;return}const a=l=>{l&&l.trigger()};if(a_(),e==="clear")o.forEach(a);else{const l=Ke(t),c=l&&s_(n);if(l&&n==="length"){const u=Number(i);o.forEach((d,f)=>{(f==="length"||f===eu||!Fs(f)&&f>=u)&&a(d)})}else switch(n!==void 0&&a(o.get(n)),c&&a(o.get(eu)),e){case"add":l?c&&a(o.get("length")):(a(o.get(ta)),ol(t)&&a(o.get(Op)));break;case"delete":l||(a(o.get(ta)),ol(t)&&a(o.get(Op)));break;case"set":ol(t)&&a(o.get(ta));break}}l_()}function KI(t,e){const n=mh.get(t);return n&&n.get(e)}function Da(t){const e=lt(t);return e===t?e:(qn(e,"iterate",eu),Hi(t)?e:e.map(Kn))}function lf(t){return qn(t=lt(t),"iterate",eu),t}const UI={__proto__:null,[Symbol.iterator](){return wg(this,Symbol.iterator,Kn)},concat(...t){return Da(this).concat(...t.map(e=>Ke(e)?Da(e):e))},entries(){return wg(this,"entries",t=>(t[1]=Kn(t[1]),t))},every(t,e){return js(this,"every",t,e,void 0,arguments)},filter(t,e){return js(this,"filter",t,e,n=>n.map(Kn),arguments)},find(t,e){return js(this,"find",t,e,Kn,arguments)},findIndex(t,e){return js(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return js(this,"findLast",t,e,Kn,arguments)},findLastIndex(t,e){return js(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return js(this,"forEach",t,e,void 0,arguments)},includes(...t){return xg(this,"includes",t)},indexOf(...t){return xg(this,"indexOf",t)},join(t){return Da(this).join(t)},lastIndexOf(...t){return xg(this,"lastIndexOf",t)},map(t,e){return js(this,"map",t,e,void 0,arguments)},pop(){return rc(this,"pop")},push(...t){return rc(this,"push",t)},reduce(t,...e){return Zy(this,"reduce",t,e)},reduceRight(t,...e){return Zy(this,"reduceRight",t,e)},shift(){return rc(this,"shift")},some(t,e){return js(this,"some",t,e,void 0,arguments)},splice(...t){return rc(this,"splice",t)},toReversed(){return Da(this).toReversed()},toSorted(t){return Da(this).toSorted(t)},toSpliced(...t){return Da(this).toSpliced(...t)},unshift(...t){return rc(this,"unshift",t)},values(){return wg(this,"values",Kn)}};function wg(t,e,n){const i=lf(t),s=i[e]();return i!==t&&!Hi(t)&&(s._next=s.next,s.next=()=>{const r=s._next();return r.value&&(r.value=n(r.value)),r}),s}const GI=Array.prototype;function js(t,e,n,i,s,r){const o=lf(t),a=o!==t&&!Hi(t),l=o[e];if(l!==GI[e]){const d=l.apply(t,r);return a?Kn(d):d}let c=n;o!==t&&(a?c=function(d,f){return n.call(this,Kn(d),f,t)}:n.length>2&&(c=function(d,f){return n.call(this,d,f,t)}));const u=l.call(o,c,i);return a&&s?s(u):u}function Zy(t,e,n,i){const s=lf(t);let r=n;return s!==t&&(Hi(t)?n.length>3&&(r=function(o,a,l){return n.call(this,o,a,l,t)}):r=function(o,a,l){return n.call(this,o,Kn(a),l,t)}),s[e](r,...i)}function xg(t,e,n){const i=lt(t);qn(i,"iterate",eu);const s=i[e](...n);return(s===-1||s===!1)&&Ou(n[0])?(n[0]=lt(n[0]),i[e](...n)):s}function rc(t,e,n=[]){po(),a_();const i=lt(t)[e].apply(t,n);return l_(),mo(),i}const XI=t_("__proto__,__v_isRef,__isVue"),Gx=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Fs));function qI(t){Fs(t)||(t=String(t));const e=lt(this);return qn(e,"has",t),e.hasOwnProperty(t)}class Xx{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,i){const s=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return r;if(n==="__v_raw")return i===(s?r?cD:Qx:r?Jx:Zx).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(i)?e:void 0;const o=Ke(e);if(!s){let l;if(o&&(l=UI[n]))return l;if(n==="hasOwnProperty")return qI}const a=Reflect.get(e,n,Ht(e)?e:i);return(Fs(n)?Gx.has(n):XI(n))||(s||qn(e,"get",n),r)?a:Ht(a)?o&&s_(n)?a:a.value:It(a)?s?tE(a):Ei(a):a}}class qx extends Xx{constructor(e=!1){super(!1,e)}set(e,n,i,s){let r=e[n];if(!this._isShallow){const l=ua(r);if(!Hi(i)&&!ua(i)&&(r=lt(r),i=lt(i)),!Ke(e)&&Ht(r)&&!Ht(i))return l?!1:(r.value=i,!0)}const o=Ke(e)&&s_(n)?Number(n)t,cf=t=>Reflect.getPrototypeOf(t);function md(t,e,n=!1,i=!1){t=t.__v_raw;const s=lt(t),r=lt(e);n||(so(e,r)&&qn(s,"get",e),qn(s,"get",r));const{has:o}=cf(s),a=i?d_:n?g_:Kn;if(o.call(s,e))return a(t.get(e));if(o.call(s,r))return a(t.get(r));t!==s&&t.get(e)}function _d(t,e=!1){const n=this.__v_raw,i=lt(n),s=lt(t);return e||(so(t,s)&&qn(i,"has",t),qn(i,"has",s)),t===s?n.has(t):n.has(t)||n.has(s)}function vd(t,e=!1){return t=t.__v_raw,!e&&qn(lt(t),"iterate",ta),Reflect.get(t,"size",t)}function Jy(t,e=!1){!e&&!Hi(t)&&!ua(t)&&(t=lt(t));const n=lt(this);return cf(n).has.call(n,t)||(n.add(t),dr(n,"add",t,t)),this}function Qy(t,e,n=!1){!n&&!Hi(e)&&!ua(e)&&(e=lt(e));const i=lt(this),{has:s,get:r}=cf(i);let o=s.call(i,t);o||(t=lt(t),o=s.call(i,t));const a=r.call(i,t);return i.set(t,e),o?so(e,a)&&dr(i,"set",t,e):dr(i,"add",t,e),this}function eb(t){const e=lt(this),{has:n,get:i}=cf(e);let s=n.call(e,t);s||(t=lt(t),s=n.call(e,t)),i&&i.call(e,t);const r=e.delete(t);return s&&dr(e,"delete",t,void 0),r}function tb(){const t=lt(this),e=t.size!==0,n=t.clear();return e&&dr(t,"clear",void 0,void 0),n}function yd(t,e){return function(i,s){const r=this,o=r.__v_raw,a=lt(o),l=e?d_:t?g_:Kn;return!t&&qn(a,"iterate",ta),o.forEach((c,u)=>i.call(s,l(c),l(u),r))}}function bd(t,e,n){return function(...i){const s=this.__v_raw,r=lt(s),o=ol(r),a=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,c=s[t](...i),u=n?d_:e?g_:Kn;return!e&&qn(r,"iterate",l?Op:ta),{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 kr(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function tD(){const t={get(r){return md(this,r)},get size(){return vd(this)},has:_d,add:Jy,set:Qy,delete:eb,clear:tb,forEach:yd(!1,!1)},e={get(r){return md(this,r,!1,!0)},get size(){return vd(this)},has:_d,add(r){return Jy.call(this,r,!0)},set(r,o){return Qy.call(this,r,o,!0)},delete:eb,clear:tb,forEach:yd(!1,!0)},n={get(r){return md(this,r,!0)},get size(){return vd(this,!0)},has(r){return _d.call(this,r,!0)},add:kr("add"),set:kr("set"),delete:kr("delete"),clear:kr("clear"),forEach:yd(!0,!1)},i={get(r){return md(this,r,!0,!0)},get size(){return vd(this,!0)},has(r){return _d.call(this,r,!0)},add:kr("add"),set:kr("set"),delete:kr("delete"),clear:kr("clear"),forEach:yd(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{t[r]=bd(r,!1,!1),n[r]=bd(r,!0,!1),e[r]=bd(r,!1,!0),i[r]=bd(r,!0,!0)}),[t,n,e,i]}const[nD,iD,sD,rD]=tD();function h_(t,e){const n=e?t?rD:sD:t?iD:nD;return(i,s,r)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?i:Reflect.get(wt(n,s)&&s in i?n:i,s,r)}const oD={get:h_(!1,!1)},aD={get:h_(!1,!0)},lD={get:h_(!0,!1)};const Zx=new WeakMap,Jx=new WeakMap,Qx=new WeakMap,cD=new WeakMap;function uD(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function dD(t){return t.__v_skip||!Object.isExtensible(t)?0:uD($I(t))}function Ei(t){return ua(t)?t:f_(t,!1,JI,oD,Zx)}function eE(t){return f_(t,!1,eD,aD,Jx)}function tE(t){return f_(t,!0,QI,lD,Qx)}function f_(t,e,n,i,s){if(!It(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const r=s.get(t);if(r)return r;const o=dD(t);if(o===0)return t;const a=new Proxy(t,o===2?i:n);return s.set(t,a),a}function Qr(t){return ua(t)?Qr(t.__v_raw):!!(t&&t.__v_isReactive)}function ua(t){return!!(t&&t.__v_isReadonly)}function Hi(t){return!!(t&&t.__v_isShallow)}function Ou(t){return t?!!t.__v_raw:!1}function lt(t){const e=t&&t.__v_raw;return e?lt(e):t}function uf(t){return!wt(t,"__v_skip")&&Object.isExtensible(t)&&Dx(t,"__v_skip",!0),t}const Kn=t=>It(t)?Ei(t):t,g_=t=>It(t)?tE(t):t;function Ht(t){return t?t.__v_isRef===!0:!1}function me(t){return nE(t,!1)}function df(t){return nE(t,!0)}function nE(t,e){return Ht(t)?t:new hD(t,e)}class hD{constructor(e,n){this.dep=new u_,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:lt(e),this._value=n?e:Kn(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,i=this.__v_isShallow||Hi(e)||ua(e);e=i?e:lt(e),so(e,n)&&(this._rawValue=e,this._value=i?e:Kn(e),this.dep.trigger())}}function Z(t){return Ht(t)?t.value:t}const fD={get:(t,e,n)=>e==="__v_raw"?t:Z(Reflect.get(t,e,n)),set:(t,e,n,i)=>{const s=t[e];return Ht(s)&&!Ht(n)?(s.value=n,!0):Reflect.set(t,e,n,i)}};function iE(t){return Qr(t)?t:new Proxy(t,fD)}function gD(t){const e=Ke(t)?new Array(t.length):{};for(const n in t)e[n]=sE(t,n);return e}class pD{constructor(e,n,i){this._object=e,this._key=n,this._defaultValue=i,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return KI(lt(this._object),this._key)}}class mD{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function tu(t,e,n){return Ht(t)?t:Je(t)?new mD(t):It(t)&&arguments.length>1?sE(t,e,n):me(t)}function sE(t,e,n){const i=t[e];return Ht(i)?i:new pD(t,e,n)}class _D{constructor(e,n,i){this.fn=e,this.setter=n,this._value=void 0,this.dep=new u_(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Qc-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&Rt!==this)return Wx(this,!0),!0}get value(){const e=this.dep.track();return jx(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function vD(t,e,n=!1){let i,s;return Je(t)?i=t:(i=t.get,s=t.set),new _D(i,s,n)}const wd={},_h=new WeakMap;let Wo;function yD(t,e=!1,n=Wo){if(n){let i=_h.get(n);i||_h.set(n,i=[]),i.push(t)}}function bD(t,e,n=Mt){const{immediate:i,deep:s,once:r,scheduler:o,augmentJob:a,call:l}=n,c=w=>s?w:Hi(w)||s===!1||s===0?rr(w,1):rr(w);let u,d,f,g,p=!1,m=!1;if(Ht(t)?(d=()=>t.value,p=Hi(t)):Qr(t)?(d=()=>c(t),p=!0):Ke(t)?(m=!0,p=t.some(w=>Qr(w)||Hi(w)),d=()=>t.map(w=>{if(Ht(w))return w.value;if(Qr(w))return c(w);if(Je(w))return l?l(w,2):w()})):Je(t)?e?d=l?()=>l(t,2):t:d=()=>{if(f){po();try{f()}finally{mo()}}const w=Wo;Wo=u;try{return l?l(t,3,[g]):t(g)}finally{Wo=w}}:d=$s,e&&s){const w=d,b=s===!0?1/0:s;d=()=>rr(w(),b)}const v=af(),y=()=>{u.stop(),v&&i_(v.effects,u)};if(r&&e){const w=e;e=(...b)=>{w(...b),y()}}let x=m?new Array(t.length).fill(wd):wd;const E=w=>{if(!(!(u.flags&1)||!u.dirty&&!w))if(e){const b=u.run();if(s||p||(m?b.some((C,k)=>so(C,x[k])):so(b,x))){f&&f();const C=Wo;Wo=u;try{const k=[b,x===wd?void 0:m&&x[0]===wd?[]:x,g];l?l(e,3,k):e(...k),x=b}finally{Wo=C}}}else u.run()};return a&&a(E),u=new Vx(d),u.scheduler=o?()=>o(E,!1):E,g=w=>yD(w,!1,u),f=u.onStop=()=>{const w=_h.get(u);if(w){if(l)l(w,4);else for(const b of w)b();_h.delete(u)}},e?i?E(!0):x=u.run():o?o(E.bind(null,!0),!0):u.run(),y.pause=u.pause.bind(u),y.resume=u.resume.bind(u),y.stop=y,y}function rr(t,e=1/0,n){if(e<=0||!It(t)||t.__v_skip||(n=n||new Set,n.has(t)))return t;if(n.add(t),e--,Ht(t))rr(t.value,e,n);else if(Ke(t))for(let i=0;i{rr(i,e,n)});else if(Ix(t)){for(const i in t)rr(t[i],e,n);for(const i of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,i)&&rr(t[i],e,n)}return t}/** * @vue/runtime-core v3.5.11 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function Nu(t,e,n,i){try{return i?t(...i):t()}catch(s){Fu(s,e,n)}}function fs(t,e,n,i){if(Ze(t)){const s=Nu(t,e,n,i);return s&&Px(s)&&s.catch(r=>{Fu(r,e,n)}),s}if(Ke(t)){const s=[];for(let r=0;r>>1,s=ti[i],r=nu(s);r=nu(n)?ti.push(t):ti.splice(xD(e),0,t),t.flags|=1,oE()}}function oE(){vh||(vh=rE.then(lE))}function Np(t){Ke(t)?al.push(...t):Vr&&t.id===-1?Vr.splice(Ga+1,0,t):t.flags&1||(al.push(t),t.flags|=1),oE()}function nb(t,e,n=ws+1){for(;nnu(n)-nu(i));if(al.length=0,Vr){Vr.push(...e);return}for(Vr=e,Ga=0;Gat.id==null?t.flags&2?-1:1/0:t.id;function lE(t){try{for(ws=0;ws{i._d&&pb(-1);const r=yh(e);let o;try{o=t(...s)}finally{yh(r),i._d&&pb(1)}return o};return i._n=!0,i._c=!0,i._d=!0,i}function Re(t,e){if(wn===null)return t;const n=_f(wn),i=t.dirs||(t.dirs=[]);for(let s=0;st.__isTeleport,Fc=t=>t&&(t.disabled||t.disabled===""),ED=t=>t&&(t.defer||t.defer===""),ib=t=>typeof SVGElement<"u"&&t instanceof SVGElement,sb=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,Fp=(t,e)=>{const n=t&&t.to;return jt(n)?e?e(n):null:n},CD={name:"Teleport",__isTeleport:!0,process(t,e,n,i,s,r,o,a,l,c){const{mc:u,pc:d,pbc:h,o:{insert:g,querySelector:p,createText:m,createComment:v}}=c,y=Fc(e.props);let{shapeFlag:x,children:E,dynamicChildren:w}=e;if(t==null){const b=e.el=m(""),C=e.anchor=m("");g(b,n,i),g(C,n,i);const k=(A,I)=>{x&16&&(s&&s.isCE&&(s.ce._teleportTarget=A),u(E,A,I,s,r,o,a,l))},T=()=>{const A=e.target=Fp(e.props,p),I=hE(A,e,m,g);A&&(o!=="svg"&&ib(A)?o="svg":o!=="mathml"&&sb(A)&&(o="mathml"),y||(k(A,I),ih(e)))};y&&(k(n,C),ih(e)),ED(e.props)?fi(T,r):T()}else{e.el=t.el,e.targetStart=t.targetStart;const b=e.anchor=t.anchor,C=e.target=t.target,k=e.targetAnchor=t.targetAnchor,T=Fc(t.props),A=T?n:C,I=T?b:k;if(o==="svg"||ib(C)?o="svg":(o==="mathml"||sb(C))&&(o="mathml"),w?(h(t.dynamicChildren,w,A,s,r,o,a),y_(t,e,!0)):l||d(t,e,A,I,s,r,o,a,!1),y)T?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):xd(e,n,b,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const V=e.target=Fp(e.props,p);V&&xd(e,V,null,c,0)}else T&&xd(e,C,k,c,1);ih(e)}},remove(t,e,n,{um:i,o:{remove:s}},r){const{shapeFlag:o,children:a,anchor:l,targetStart:c,targetAnchor:u,target:d,props:h}=t;if(d&&(s(c),s(u)),r&&s(l),o&16){const g=r||!Fc(h);for(let p=0;p{t.isMounted=!0}),EE(()=>{t.isUnmounting=!0}),t}const Fi=[Function,Array],gE={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Fi,onEnter:Fi,onAfterEnter:Fi,onEnterCancelled:Fi,onBeforeLeave:Fi,onLeave:Fi,onAfterLeave:Fi,onLeaveCancelled:Fi,onBeforeAppear:Fi,onAppear:Fi,onAfterAppear:Fi,onAppearCancelled:Fi},pE=t=>{const e=t.subTree;return e.component?pE(e.component):e},TD={name:"BaseTransition",props:gE,setup(t,{slots:e}){const n=Bu(),i=fE();return()=>{const s=e.default&&m_(e.default(),!0);if(!s||!s.length)return;const r=mE(s),o=lt(t),{mode:a}=o;if(i.isLeaving)return Eg(r);const l=rb(r);if(!l)return Eg(r);let c=iu(l,o,i,n,h=>c=h);l.type!==On&&da(l,c);const u=n.subTree,d=u&&rb(u);if(d&&d.type!==On&&!Es(l,d)&&pE(n).type!==On){const h=iu(d,o,i,n);if(da(d,h),a==="out-in"&&l.type!==On)return i.isLeaving=!0,h.afterLeave=()=>{i.isLeaving=!1,n.job.flags&8||n.update(),delete h.afterLeave},Eg(r);a==="in-out"&&l.type!==On&&(h.delayLeave=(g,p,m)=>{const v=_E(i,d);v[String(d.key)]=d,g[zr]=()=>{p(),g[zr]=void 0,delete c.delayedLeave},c.delayedLeave=m})}return r}}};function mE(t){let e=t[0];if(t.length>1){for(const n of t)if(n.type!==On){e=n;break}}return e}const AD=TD;function _E(t,e){const{leavingVNodes:n}=t;let i=n.get(e.type);return i||(i=Object.create(null),n.set(e.type,i)),i}function iu(t,e,n,i,s){const{appear:r,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:h,onLeave:g,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:v,onAppear:y,onAfterAppear:x,onAppearCancelled:E}=e,w=String(t.key),b=_E(n,t),C=(A,I)=>{A&&fs(A,i,9,I)},k=(A,I)=>{const V=I[1];C(A,I),Ke(A)?A.every(Y=>Y.length<=1)&&V():A.length<=1&&V()},T={mode:o,persisted:a,beforeEnter(A){let I=l;if(!n.isMounted)if(r)I=v||l;else return;A[zr]&&A[zr](!0);const V=b[w];V&&Es(t,V)&&V.el[zr]&&V.el[zr](),C(I,[A])},enter(A){let I=c,V=u,Y=d;if(!n.isMounted)if(r)I=y||c,V=x||u,Y=E||d;else return;let ne=!1;const N=A[Ed]=B=>{ne||(ne=!0,B?C(Y,[A]):C(V,[A]),T.delayedLeave&&T.delayedLeave(),A[Ed]=void 0)};I?k(I,[A,N]):N()},leave(A,I){const V=String(t.key);if(A[Ed]&&A[Ed](!0),n.isUnmounting)return I();C(h,[A]);let Y=!1;const ne=A[zr]=N=>{Y||(Y=!0,I(),N?C(m,[A]):C(p,[A]),A[zr]=void 0,b[V]===t&&delete b[V])};b[V]=t,g?k(g,[A,ne]):ne()},clone(A){const I=iu(A,e,n,i,s);return s&&s(I),I}};return T}function Eg(t){if(hf(t))return t=ro(t),t.children=null,t}function rb(t){if(!hf(t))return dE(t.type)&&t.children?mE(t.children):t;const{shapeFlag:e,children:n}=t;if(n){if(e&16)return n[0];if(e&32&&Ze(n.default))return n.default()}}function da(t,e){t.shapeFlag&6&&t.component?(t.transition=e,da(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function m_(t,e=!1,n){let i=[],s=0;for(let r=0;r1)for(let r=0;rn.value,set:r=>n.value=r})}return n}function Vp(t,e,n,i,s=!1){if(Ke(t)){t.forEach((p,m)=>Vp(p,e&&(Ke(e)?e[m]:e),n,i,s));return}if(ll(i)&&!s)return;const r=i.shapeFlag&4?_f(i.component):i.el,o=s?null:r,{i:a,r:l}=t,c=e&&e.r,u=a.refs===Mt?a.refs={}:a.refs,d=a.setupState,h=lt(d),g=d===Mt?()=>!1:p=>wt(h,p);if(c!=null&&c!==l&&(jt(c)?(u[c]=null,g(c)&&(d[c]=null)):Ht(c)&&(c.value=null)),Ze(l))Nu(l,a,12,[o,u]);else{const p=jt(l),m=Ht(l);if(p||m){const v=()=>{if(t.f){const y=p?g(l)?d[l]:u[l]:l.value;s?Ke(y)&&i_(y,r):Ke(y)?y.includes(r)||y.push(r):p?(u[l]=[r],g(l)&&(d[l]=u[l])):(l.value=[r],t.k&&(u[t.k]=l.value))}else p?(u[l]=o,g(l)&&(d[l]=o)):m&&(l.value=o,t.k&&(u[t.k]=o))};o?(v.id=-1,fi(v,n)):v()}}}const ll=t=>!!t.type.__asyncLoader,hf=t=>t.type.__isKeepAlive;function PD(t,e){yE(t,"a",e)}function MD(t,e){yE(t,"da",e)}function yE(t,e,n=Pn){const i=t.__wdc||(t.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return t()});if(ff(e,i,n),n){let s=n.parent;for(;s&&s.parent;)hf(s.parent.vnode)&&ID(i,e,n,s),s=s.parent}}function ID(t,e,n,i){const s=ff(e,t,i,!0);_o(()=>{i_(i[e],s)},n)}function ff(t,e,n=Pn,i=!1){if(n){const s=n[t]||(n[t]=[]),r=e.__weh||(e.__weh=(...o)=>{po();const a=Vu(n),l=fs(e,n,t,o);return a(),mo(),l});return i?s.unshift(r):s.push(r),r}}const wr=t=>(e,n=Pn)=>{(!mf||t==="sp")&&ff(t,(...i)=>e(...i),n)},bE=wr("bm"),Vt=wr("m"),wE=wr("bu"),xE=wr("u"),EE=wr("bum"),_o=wr("um"),DD=wr("sp"),RD=wr("rtg"),$D=wr("rtc");function LD(t,e=Pn){ff("ec",t,e)}const CE="components";function Ce(t,e){return kE(CE,t,!0,e)||t}const SE=Symbol.for("v-ndc");function _a(t){return jt(t)?kE(CE,t,!1)||t:t||SE}function kE(t,e,n=!0,i=!1){const s=wn||Pn;if(s){const r=s.type;{const a=kR(r,!1);if(a&&(a===e||a===Ui(e)||a===of(Ui(e))))return r}const o=ob(s[t]||r[t],e)||ob(s.appContext[t],e);return!o&&i?r:o}}function ob(t,e){return t&&(t[e]||t[Ui(e)]||t[of(Ui(e))])}function Ge(t,e,n,i){let s;const r=n,o=Ke(t);if(o||jt(t)){const a=o&&Qr(t);let l=!1;a&&(l=!Hi(t),t=lf(t)),s=new Array(t.length);for(let c=0,u=t.length;ce(a,l,void 0,r));else{const a=Object.keys(t);s=new Array(a.length);for(let l=0,c=a.length;l{const r=i.fn(...s);return r&&(r.key=i.key),r}:i.fn)}return t}function Fe(t,e,n={},i,s){if(wn.ce||wn.parent&&ll(wn.parent)&&wn.parent.ce)return e!=="default"&&(n.name=e),P(),Ee(De,null,[L("slot",n,i)],64);let r=t[e];r&&r._c&&(r._d=!1),P();const o=r&&TE(r(n)),a=Ee(De,{key:(n.key||o&&o.key||`_${e}`)+(!o&&i?"_fb":"")},o||[],o&&t._===1?64:-2);return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function TE(t){return t.some(e=>bl(e)?!(e.type===On||e.type===De&&!TE(e.children)):!0)?t:null}const zp=t=>t?GE(t)?_f(t):zp(t.parent):null,Bc=vn(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>zp(t.parent),$root:t=>zp(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>__(t),$forceUpdate:t=>t.f||(t.f=()=>{p_(t.update)}),$nextTick:t=>t.n||(t.n=Rn.bind(t.proxy)),$watch:t=>rR.bind(t)}),Cg=(t,e)=>t!==Mt&&!t.__isScriptSetup&&wt(t,e),OD={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:i,data:s,props:r,accessCache:o,type:a,appContext:l}=t;let c;if(e[0]!=="$"){const g=o[e];if(g!==void 0)switch(g){case 1:return i[e];case 2:return s[e];case 4:return n[e];case 3:return r[e]}else{if(Cg(i,e))return o[e]=1,i[e];if(s!==Mt&&wt(s,e))return o[e]=2,s[e];if((c=t.propsOptions[0])&&wt(c,e))return o[e]=3,r[e];if(n!==Mt&&wt(n,e))return o[e]=4,n[e];Wp&&(o[e]=0)}}const u=Bc[e];let d,h;if(u)return e==="$attrs"&&qn(t.attrs,"get",""),u(t);if((d=a.__cssModules)&&(d=d[e]))return d;if(n!==Mt&&wt(n,e))return o[e]=4,n[e];if(h=l.config.globalProperties,wt(h,e))return h[e]},set({_:t},e,n){const{data:i,setupState:s,ctx:r}=t;return Cg(s,e)?(s[e]=n,!0):i!==Mt&&wt(i,e)?(i[e]=n,!0):wt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(r[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:i,appContext:s,propsOptions:r}},o){let a;return!!n[o]||t!==Mt&&wt(t,o)||Cg(e,o)||(a=r[0])&&wt(a,o)||wt(i,o)||wt(Bc,o)||wt(s.config.globalProperties,o)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:wt(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function va(){return AE().slots}function ND(){return AE().attrs}function AE(){const t=Bu();return t.setupContext||(t.setupContext=qE(t))}function ab(t){return Ke(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let Wp=!0;function FD(t){const e=__(t),n=t.proxy,i=t.ctx;Wp=!1,e.beforeCreate&&lb(e.beforeCreate,t,"bc");const{data:s,computed:r,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:h,beforeUpdate:g,updated:p,activated:m,deactivated:v,beforeDestroy:y,beforeUnmount:x,destroyed:E,unmounted:w,render:b,renderTracked:C,renderTriggered:k,errorCaptured:T,serverPrefetch:A,expose:I,inheritAttrs:V,components:Y,directives:ne,filters:N}=e;if(c&&BD(c,i,null),o)for(const z in o){const X=o[z];Ze(X)&&(i[z]=X.bind(n))}if(s){const z=s.call(n,n);It(z)&&(t.data=Ei(z))}if(Wp=!0,r)for(const z in r){const X=r[z],J=Ze(X)?X.bind(n,n):Ze(X.get)?X.get.bind(n,n):$s,H=!Ze(X)&&Ze(X.set)?X.set.bind(n):$s,ce=ye({get:J,set:H});Object.defineProperty(i,z,{enumerable:!0,configurable:!0,get:()=>ce.value,set:ie=>ce.value=ie})}if(a)for(const z in a)PE(a[z],i,n,z);if(l){const z=Ze(l)?l.call(n):l;Reflect.ownKeys(z).forEach(X=>{sh(X,z[X])})}u&&lb(u,t,"c");function R(z,X){Ke(X)?X.forEach(J=>z(J.bind(n))):X&&z(X.bind(n))}if(R(bE,d),R(Vt,h),R(wE,g),R(xE,p),R(PD,m),R(MD,v),R(LD,T),R($D,C),R(RD,k),R(EE,x),R(_o,w),R(DD,A),Ke(I))if(I.length){const z=t.exposed||(t.exposed={});I.forEach(X=>{Object.defineProperty(z,X,{get:()=>n[X],set:J=>n[X]=J})})}else t.exposed||(t.exposed={});b&&t.render===$s&&(t.render=b),V!=null&&(t.inheritAttrs=V),Y&&(t.components=Y),ne&&(t.directives=ne),A&&vE(t)}function BD(t,e,n=$s){Ke(t)&&(t=Yp(t));for(const i in t){const s=t[i];let r;It(s)?"default"in s?r=ji(s.from||i,s.default,!0):r=ji(s.from||i):r=ji(s),Ht(r)?Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):e[i]=r}}function lb(t,e,n){fs(Ke(t)?t.map(i=>i.bind(e.proxy)):t.bind(e.proxy),e,n)}function PE(t,e,n,i){let s=i.includes(".")?zE(n,i):()=>n[i];if(jt(t)){const r=e[t];Ze(r)&&Zt(s,r)}else if(Ze(t))Zt(s,t.bind(n));else if(It(t))if(Ke(t))t.forEach(r=>PE(r,e,n,i));else{const r=Ze(t.handler)?t.handler.bind(n):e[t.handler];Ze(r)&&Zt(s,r,t)}}function __(t){const e=t.type,{mixins:n,extends:i}=e,{mixins:s,optionsCache:r,config:{optionMergeStrategies:o}}=t.appContext,a=r.get(e);let l;return a?l=a:!s.length&&!n&&!i?l=e:(l={},s.length&&s.forEach(c=>bh(l,c,o,!0)),bh(l,e,o)),It(e)&&r.set(e,l),l}function bh(t,e,n,i=!1){const{mixins:s,extends:r}=e;r&&bh(t,r,n,!0),s&&s.forEach(o=>bh(t,o,n,!0));for(const o in e)if(!(i&&o==="expose")){const a=VD[o]||n&&n[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const VD={data:cb,props:ub,emits:ub,methods:wc,computed:wc,beforeCreate:Jn,created:Jn,beforeMount:Jn,mounted:Jn,beforeUpdate:Jn,updated:Jn,beforeDestroy:Jn,beforeUnmount:Jn,destroyed:Jn,unmounted:Jn,activated:Jn,deactivated:Jn,errorCaptured:Jn,serverPrefetch:Jn,components:wc,directives:wc,watch:WD,provide:cb,inject:zD};function cb(t,e){return e?t?function(){return vn(Ze(t)?t.call(this,this):t,Ze(e)?e.call(this,this):e)}:e:t}function zD(t,e){return wc(Yp(t),Yp(e))}function Yp(t){if(Ke(t)){const e={};for(let n=0;n1)return n&&Ze(e)?e.call(i&&i.proxy):e}}function jD(){return!!(Pn||wn||na)}const IE={},DE=()=>Object.create(IE),RE=t=>Object.getPrototypeOf(t)===IE;function KD(t,e,n,i=!1){const s={},r=DE();t.propsDefaults=Object.create(null),$E(t,e,s,r);for(const o in t.propsOptions[0])o in s||(s[o]=void 0);n?t.props=i?s:eE(s):t.type.props?t.props=s:t.props=r,t.attrs=r}function UD(t,e,n,i){const{props:s,attrs:r,vnode:{patchFlag:o}}=t,a=lt(s),[l]=t.propsOptions;let c=!1;if((i||o>0)&&!(o&16)){if(o&8){const u=t.vnode.dynamicProps;for(let d=0;d{l=!0;const[h,g]=LE(d,e,!0);vn(o,h),g&&a.push(...g)};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!r&&!l)return It(t)&&i.set(t,rl),rl;if(Ke(r))for(let u=0;ut[0]==="_"||t==="$stable",v_=t=>Ke(t)?t.map(is):[is(t)],XD=(t,e,n)=>{if(e._n)return e;const i=Me((...s)=>v_(e(...s)),n);return i._c=!1,i},NE=(t,e,n)=>{const i=t._ctx;for(const s in t){if(OE(s))continue;const r=t[s];if(Ze(r))e[s]=XD(s,r,i);else if(r!=null){const o=v_(r);e[s]=()=>o}}},FE=(t,e)=>{const n=v_(e);t.slots.default=()=>n},BE=(t,e,n)=>{for(const i in e)(n||i!=="_")&&(t[i]=e[i])},qD=(t,e,n)=>{const i=t.slots=DE();if(t.vnode.shapeFlag&32){const s=e._;s?(BE(i,e,n),n&&Dx(i,"_",s,!0)):NE(e,i)}else e&&FE(t,e)},ZD=(t,e,n)=>{const{vnode:i,slots:s}=t;let r=!0,o=Mt;if(i.shapeFlag&32){const a=e._;a?n&&a===1?r=!1:BE(s,e,n):(r=!e.$stable,NE(e,s)),o=e}else e&&(FE(t,e),o={default:1});if(r)for(const a in s)!OE(a)&&o[a]==null&&delete s[a]},fi=_R;function JD(t){return QD(t)}function QD(t,e){const n=$x();n.__VUE__=!0;const{insert:i,remove:s,patchProp:r,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:h,setScopeId:g=$s,insertStaticContent:p}=t,m=(S,O,K,U=null,oe=null,j=null,re=void 0,Q=null,ge=!!O.dynamicChildren)=>{if(S===O)return;S&&!Es(S,O)&&(U=$(S),ie(S,oe,j,!0),S=null),O.patchFlag===-2&&(ge=!1,O.dynamicChildren=null);const{type:be,ref:we,shapeFlag:Pe}=O;switch(be){case pf:v(S,O,K,U);break;case On:y(S,O,K,U);break;case rh:S==null&&x(O,K,U,re);break;case De:Y(S,O,K,U,oe,j,re,Q,ge);break;default:Pe&1?b(S,O,K,U,oe,j,re,Q,ge):Pe&6?ne(S,O,K,U,oe,j,re,Q,ge):(Pe&64||Pe&128)&&be.process(S,O,K,U,oe,j,re,Q,ge,xe)}we!=null&&oe&&Vp(we,S&&S.ref,j,O||S,!O)},v=(S,O,K,U)=>{if(S==null)i(O.el=a(O.children),K,U);else{const oe=O.el=S.el;O.children!==S.children&&c(oe,O.children)}},y=(S,O,K,U)=>{S==null?i(O.el=l(O.children||""),K,U):O.el=S.el},x=(S,O,K,U)=>{[S.el,S.anchor]=p(S.children,O,K,U,S.el,S.anchor)},E=({el:S,anchor:O},K,U)=>{let oe;for(;S&&S!==O;)oe=h(S),i(S,K,U),S=oe;i(O,K,U)},w=({el:S,anchor:O})=>{let K;for(;S&&S!==O;)K=h(S),s(S),S=K;s(O)},b=(S,O,K,U,oe,j,re,Q,ge)=>{O.type==="svg"?re="svg":O.type==="math"&&(re="mathml"),S==null?C(O,K,U,oe,j,re,Q,ge):A(S,O,oe,j,re,Q,ge)},C=(S,O,K,U,oe,j,re,Q)=>{let ge,be;const{props:we,shapeFlag:Pe,transition:Ie,dirs:We}=S;if(ge=S.el=o(S.type,j,we&&we.is,we),Pe&8?u(ge,S.children):Pe&16&&T(S.children,ge,null,U,oe,Sg(S,j),re,Q),We&&Ro(S,null,U,"created"),k(ge,S,S.scopeId,re,U),we){for(const nt in we)nt!=="value"&&!Lc(nt)&&r(ge,nt,null,we[nt],j,U);"value"in we&&r(ge,"value",null,we.value,j),(be=we.onVnodeBeforeMount)&&ys(be,U,S)}We&&Ro(S,null,U,"beforeMount");const je=eR(oe,Ie);je&&Ie.beforeEnter(ge),i(ge,O,K),((be=we&&we.onVnodeMounted)||je||We)&&fi(()=>{be&&ys(be,U,S),je&&Ie.enter(ge),We&&Ro(S,null,U,"mounted")},oe)},k=(S,O,K,U,oe)=>{if(K&&g(S,K),U)for(let j=0;j{for(let be=ge;be{const Q=O.el=S.el;let{patchFlag:ge,dynamicChildren:be,dirs:we}=O;ge|=S.patchFlag&16;const Pe=S.props||Mt,Ie=O.props||Mt;let We;if(K&&$o(K,!1),(We=Ie.onVnodeBeforeUpdate)&&ys(We,K,O,S),we&&Ro(O,S,K,"beforeUpdate"),K&&$o(K,!0),(Pe.innerHTML&&Ie.innerHTML==null||Pe.textContent&&Ie.textContent==null)&&u(Q,""),be?I(S.dynamicChildren,be,Q,K,U,Sg(O,oe),j):re||X(S,O,Q,null,K,U,Sg(O,oe),j,!1),ge>0){if(ge&16)V(Q,Pe,Ie,K,oe);else if(ge&2&&Pe.class!==Ie.class&&r(Q,"class",null,Ie.class,oe),ge&4&&r(Q,"style",Pe.style,Ie.style,oe),ge&8){const je=O.dynamicProps;for(let nt=0;nt{We&&ys(We,K,O,S),we&&Ro(O,S,K,"updated")},U)},I=(S,O,K,U,oe,j,re)=>{for(let Q=0;Q{if(O!==K){if(O!==Mt)for(const j in O)!Lc(j)&&!(j in K)&&r(S,j,O[j],null,oe,U);for(const j in K){if(Lc(j))continue;const re=K[j],Q=O[j];re!==Q&&j!=="value"&&r(S,j,Q,re,oe,U)}"value"in K&&r(S,"value",O.value,K.value,oe)}},Y=(S,O,K,U,oe,j,re,Q,ge)=>{const be=O.el=S?S.el:a(""),we=O.anchor=S?S.anchor:a("");let{patchFlag:Pe,dynamicChildren:Ie,slotScopeIds:We}=O;We&&(Q=Q?Q.concat(We):We),S==null?(i(be,K,U),i(we,K,U),T(O.children||[],K,we,oe,j,re,Q,ge)):Pe>0&&Pe&64&&Ie&&S.dynamicChildren?(I(S.dynamicChildren,Ie,K,oe,j,re,Q),(O.key!=null||oe&&O===oe.subTree)&&y_(S,O,!0)):X(S,O,K,we,oe,j,re,Q,ge)},ne=(S,O,K,U,oe,j,re,Q,ge)=>{O.slotScopeIds=Q,S==null?O.shapeFlag&512?oe.ctx.activate(O,K,U,re,ge):N(O,K,U,oe,j,re,ge):B(S,O,ge)},N=(S,O,K,U,oe,j,re)=>{const Q=S.component=xR(S,U,oe);if(hf(S)&&(Q.ctx.renderer=xe),ER(Q,!1,re),Q.asyncDep){if(oe&&oe.registerDep(Q,R,re),!S.el){const ge=Q.subTree=L(On);y(null,ge,O,K)}}else R(Q,S,O,K,oe,j,re)},B=(S,O,K)=>{const U=O.component=S.component;if(dR(S,O,K))if(U.asyncDep&&!U.asyncResolved){z(U,O,K);return}else U.next=O,U.update();else O.el=S.el,U.vnode=O},R=(S,O,K,U,oe,j,re)=>{const Q=()=>{if(S.isMounted){let{next:Pe,bu:Ie,u:We,parent:je,vnode:nt}=S;{const Ut=VE(S);if(Ut){Pe&&(Pe.el=nt.el,z(S,Pe,re)),Ut.asyncDep.then(()=>{S.isUnmounted||Q()});return}}let et=Pe,Jt;$o(S,!1),Pe?(Pe.el=nt.el,z(S,Pe,re)):Pe=nt,Ie&&nh(Ie),(Jt=Pe.props&&Pe.props.onVnodeBeforeUpdate)&&ys(Jt,je,Pe,nt),$o(S,!0);const zt=kg(S),gn=S.subTree;S.subTree=zt,m(gn,zt,d(gn.el),$(gn),S,oe,j),Pe.el=zt.el,et===null&&w_(S,zt.el),We&&fi(We,oe),(Jt=Pe.props&&Pe.props.onVnodeUpdated)&&fi(()=>ys(Jt,je,Pe,nt),oe)}else{let Pe;const{el:Ie,props:We}=O,{bm:je,m:nt,parent:et,root:Jt,type:zt}=S,gn=ll(O);if($o(S,!1),je&&nh(je),!gn&&(Pe=We&&We.onVnodeBeforeMount)&&ys(Pe,et,O),$o(S,!0),Ie&&fe){const Ut=()=>{S.subTree=kg(S),fe(Ie,S.subTree,S,oe,null)};gn&&zt.__asyncHydrate?zt.__asyncHydrate(Ie,S,Ut):Ut()}else{Jt.ce&&Jt.ce._injectChildStyle(zt);const Ut=S.subTree=kg(S);m(null,Ut,K,U,S,oe,j),O.el=Ut.el}if(nt&&fi(nt,oe),!gn&&(Pe=We&&We.onVnodeMounted)){const Ut=O;fi(()=>ys(Pe,et,Ut),oe)}(O.shapeFlag&256||et&&ll(et.vnode)&&et.vnode.shapeFlag&256)&&S.a&&fi(S.a,oe),S.isMounted=!0,O=K=U=null}};S.scope.on();const ge=S.effect=new Vx(Q);S.scope.off();const be=S.update=ge.run.bind(ge),we=S.job=ge.runIfDirty.bind(ge);we.i=S,we.id=S.uid,ge.scheduler=()=>p_(we),$o(S,!0),be()},z=(S,O,K)=>{O.component=S;const U=S.vnode.props;S.vnode=O,S.next=null,UD(S,O.props,U,K),ZD(S,O.children,K),po(),nb(S),mo()},X=(S,O,K,U,oe,j,re,Q,ge=!1)=>{const be=S&&S.children,we=S?S.shapeFlag:0,Pe=O.children,{patchFlag:Ie,shapeFlag:We}=O;if(Ie>0){if(Ie&128){H(be,Pe,K,U,oe,j,re,Q,ge);return}else if(Ie&256){J(be,Pe,K,U,oe,j,re,Q,ge);return}}We&8?(we&16&&ue(be,oe,j),Pe!==be&&u(K,Pe)):we&16?We&16?H(be,Pe,K,U,oe,j,re,Q,ge):ue(be,oe,j,!0):(we&8&&u(K,""),We&16&&T(Pe,K,U,oe,j,re,Q,ge))},J=(S,O,K,U,oe,j,re,Q,ge)=>{S=S||rl,O=O||rl;const be=S.length,we=O.length,Pe=Math.min(be,we);let Ie;for(Ie=0;Iewe?ue(S,oe,j,!0,!1,Pe):T(O,K,U,oe,j,re,Q,ge,Pe)},H=(S,O,K,U,oe,j,re,Q,ge)=>{let be=0;const we=O.length;let Pe=S.length-1,Ie=we-1;for(;be<=Pe&&be<=Ie;){const We=S[be],je=O[be]=ge?Wr(O[be]):is(O[be]);if(Es(We,je))m(We,je,K,null,oe,j,re,Q,ge);else break;be++}for(;be<=Pe&&be<=Ie;){const We=S[Pe],je=O[Ie]=ge?Wr(O[Ie]):is(O[Ie]);if(Es(We,je))m(We,je,K,null,oe,j,re,Q,ge);else break;Pe--,Ie--}if(be>Pe){if(be<=Ie){const We=Ie+1,je=WeIe)for(;be<=Pe;)ie(S[be],oe,j,!0),be++;else{const We=be,je=be,nt=new Map;for(be=je;be<=Ie;be++){const Qt=O[be]=ge?Wr(O[be]):is(O[be]);Qt.key!=null&&nt.set(Qt.key,be)}let et,Jt=0;const zt=Ie-je+1;let gn=!1,Ut=0;const Ci=new Array(zt);for(be=0;be=zt){ie(Qt,oe,j,!0);continue}let ae;if(Qt.key!=null)ae=nt.get(Qt.key);else for(et=je;et<=Ie;et++)if(Ci[et-je]===0&&Es(Qt,O[et])){ae=et;break}ae===void 0?ie(Qt,oe,j,!0):(Ci[ae-je]=be+1,ae>=Ut?Ut=ae:gn=!0,m(Qt,O[ae],K,null,oe,j,re,Q,ge),Jt++)}const qi=gn?tR(Ci):rl;for(et=qi.length-1,be=zt-1;be>=0;be--){const Qt=je+be,ae=O[Qt],Te=Qt+1{const{el:j,type:re,transition:Q,children:ge,shapeFlag:be}=S;if(be&6){ce(S.component.subTree,O,K,U);return}if(be&128){S.suspense.move(O,K,U);return}if(be&64){re.move(S,O,K,xe);return}if(re===De){i(j,O,K);for(let Pe=0;PeQ.enter(j),oe);else{const{leave:Pe,delayLeave:Ie,afterLeave:We}=Q,je=()=>i(j,O,K),nt=()=>{Pe(j,()=>{je(),We&&We()})};Ie?Ie(j,je,nt):nt()}else i(j,O,K)},ie=(S,O,K,U=!1,oe=!1)=>{const{type:j,props:re,ref:Q,children:ge,dynamicChildren:be,shapeFlag:we,patchFlag:Pe,dirs:Ie,cacheIndex:We}=S;if(Pe===-2&&(oe=!1),Q!=null&&Vp(Q,null,K,S,!0),We!=null&&(O.renderCache[We]=void 0),we&256){O.ctx.deactivate(S);return}const je=we&1&&Ie,nt=!ll(S);let et;if(nt&&(et=re&&re.onVnodeBeforeUnmount)&&ys(et,O,S),we&6)ee(S.component,K,U);else{if(we&128){S.suspense.unmount(K,U);return}je&&Ro(S,null,O,"beforeUnmount"),we&64?S.type.remove(S,O,K,xe,U):be&&!be.hasOnce&&(j!==De||Pe>0&&Pe&64)?ue(be,O,K,!1,!0):(j===De&&Pe&384||!oe&&we&16)&&ue(ge,O,K),U&&te(S)}(nt&&(et=re&&re.onVnodeUnmounted)||je)&&fi(()=>{et&&ys(et,O,S),je&&Ro(S,null,O,"unmounted")},K)},te=S=>{const{type:O,el:K,anchor:U,transition:oe}=S;if(O===De){D(K,U);return}if(O===rh){w(S);return}const j=()=>{s(K),oe&&!oe.persisted&&oe.afterLeave&&oe.afterLeave()};if(S.shapeFlag&1&&oe&&!oe.persisted){const{leave:re,delayLeave:Q}=oe,ge=()=>re(K,j);Q?Q(S.el,j,ge):ge()}else j()},D=(S,O)=>{let K;for(;S!==O;)K=h(S),s(S),S=K;s(O)},ee=(S,O,K)=>{const{bum:U,scope:oe,job:j,subTree:re,um:Q,m:ge,a:be}=S;hb(ge),hb(be),U&&nh(U),oe.stop(),j&&(j.flags|=8,ie(re,S,O,K)),Q&&fi(Q,O),fi(()=>{S.isUnmounted=!0},O),O&&O.pendingBranch&&!O.isUnmounted&&S.asyncDep&&!S.asyncResolved&&S.suspenseId===O.pendingId&&(O.deps--,O.deps===0&&O.resolve())},ue=(S,O,K,U=!1,oe=!1,j=0)=>{for(let re=j;re{if(S.shapeFlag&6)return $(S.component.subTree);if(S.shapeFlag&128)return S.suspense.next();const O=h(S.anchor||S.el),K=O&&O[uE];return K?h(K):O};let le=!1;const de=(S,O,K)=>{S==null?O._vnode&&ie(O._vnode,null,null,!0):m(O._vnode||null,S,O,null,null,null,K),O._vnode=S,le||(le=!0,nb(),aE(),le=!1)},xe={p:m,um:ie,m:ce,r:te,mt:N,mc:T,pc:X,pbc:I,n:$,o:t};let W,fe;return{render:de,hydrate:W,createApp:HD(de,W)}}function Sg({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function $o({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function eR(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function y_(t,e,n=!1){const i=t.children,s=e.children;if(Ke(i)&&Ke(s))for(let r=0;r>1,t[n[a]]0&&(e[i]=n[r-1]),n[r]=i)}}for(r=n.length,o=n[r-1];r-- >0;)n[r]=o,o=e[o];return n}function VE(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:VE(e)}function hb(t){if(t)for(let e=0;eji(nR);function sR(t,e){return b_(t,null,{flush:"post"})}function Zt(t,e,n){return b_(t,e,n)}function b_(t,e,n=Mt){const{immediate:i,deep:s,flush:r,once:o}=n,a=vn({},n);let l;if(mf)if(r==="sync"){const h=iR();l=h.__watcherHandles||(h.__watcherHandles=[])}else if(!e||i)a.once=!0;else{const h=()=>{};return h.stop=$s,h.resume=$s,h.pause=$s,h}const c=Pn;a.call=(h,g,p)=>fs(h,c,g,p);let u=!1;r==="post"?a.scheduler=h=>{fi(h,c&&c.suspense)}:r!=="sync"&&(u=!0,a.scheduler=(h,g)=>{g?h():p_(h)}),a.augmentJob=h=>{e&&(h.flags|=4),u&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const d=bD(t,e,a);return l&&l.push(d),d}function rR(t,e,n){const i=this.proxy,s=jt(t)?t.includes(".")?zE(i,t):()=>i[t]:t.bind(i,i);let r;Ze(e)?r=e:(r=e.handler,n=e);const o=Vu(this),a=b_(s,r.bind(i),n);return o(),a}function zE(t,e){const n=e.split(".");return()=>{let i=t;for(let s=0;se==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${Ui(e)}Modifiers`]||t[`${go(e)}Modifiers`];function aR(t,e,...n){if(t.isUnmounted)return;const i=t.vnode.props||Mt;let s=n;const r=e.startsWith("update:"),o=r&&oR(i,e.slice(7));o&&(o.trim&&(s=n.map(u=>jt(u)?u.trim():u)),o.number&&(s=n.map(ph)));let a,l=i[a=vg(e)]||i[a=vg(Ui(e))];!l&&r&&(l=i[a=vg(go(e))]),l&&fs(l,t,6,s);const c=i[a+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,fs(c,t,6,s)}}function WE(t,e,n=!1){const i=e.emitsCache,s=i.get(t);if(s!==void 0)return s;const r=t.emits;let o={},a=!1;if(!Ze(t)){const l=c=>{const u=WE(c,e,!0);u&&(a=!0,vn(o,u))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!r&&!a?(It(t)&&i.set(t,null),null):(Ke(r)?r.forEach(l=>o[l]=null):vn(o,r),It(t)&&i.set(t,o),o)}function gf(t,e){return!t||!sf(e)?!1:(e=e.slice(2).replace(/Once$/,""),wt(t,e[0].toLowerCase()+e.slice(1))||wt(t,go(e))||wt(t,e))}function kg(t){const{type:e,vnode:n,proxy:i,withProxy:s,propsOptions:[r],slots:o,attrs:a,emit:l,render:c,renderCache:u,props:d,data:h,setupState:g,ctx:p,inheritAttrs:m}=t,v=yh(t);let y,x;try{if(n.shapeFlag&4){const w=s||i,b=w;y=is(c.call(b,w,u,d,g,h,p)),x=a}else{const w=e;y=is(w.length>1?w(d,{attrs:a,slots:o,emit:l}):w(d,null)),x=e.props?a:cR(a)}}catch(w){Vc.length=0,Fu(w,t,1),y=L(On)}let E=y;if(x&&m!==!1){const w=Object.keys(x),{shapeFlag:b}=E;w.length&&b&7&&(r&&w.some(n_)&&(x=uR(x,r)),E=ro(E,x,!1,!0))}return n.dirs&&(E=ro(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&da(E,n.transition),y=E,yh(v),y}function lR(t,e=!0){let n;for(let i=0;i{let e;for(const n in t)(n==="class"||n==="style"||sf(n))&&((e||(e={}))[n]=t[n]);return e},uR=(t,e)=>{const n={};for(const i in t)(!n_(i)||!(i.slice(9)in e))&&(n[i]=t[i]);return n};function dR(t,e,n){const{props:i,children:s,component:r}=t,{props:o,children:a,patchFlag:l}=e,c=r.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return i?fb(i,o,c):!!o;if(l&8){const u=e.dynamicProps;for(let d=0;dt.__isSuspense;let jp=0;const hR={name:"Suspense",__isSuspense:!0,process(t,e,n,i,s,r,o,a,l,c){if(t==null)fR(e,n,i,s,r,o,a,l,c);else{if(r&&r.deps>0&&!t.suspense.isInFallback){e.suspense=t.suspense,e.suspense.vnode=e,e.el=t.el;return}gR(t,e,n,i,s,o,a,l,c)}},hydrate:pR,normalize:mR},x_=hR;function su(t,e){const n=t.props&&t.props[e];Ze(n)&&n()}function fR(t,e,n,i,s,r,o,a,l){const{p:c,o:{createElement:u}}=l,d=u("div"),h=t.suspense=HE(t,s,i,e,d,n,r,o,a,l);c(null,h.pendingBranch=t.ssContent,d,null,i,h,r,o),h.deps>0?(su(t,"onPending"),su(t,"onFallback"),c(null,t.ssFallback,e,n,i,null,r,o),cl(h,t.ssFallback)):h.resolve(!1,!0)}function gR(t,e,n,i,s,r,o,a,{p:l,um:c,o:{createElement:u}}){const d=e.suspense=t.suspense;d.vnode=e,e.el=t.el;const h=e.ssContent,g=e.ssFallback,{activeBranch:p,pendingBranch:m,isInFallback:v,isHydrating:y}=d;if(m)d.pendingBranch=h,Es(h,m)?(l(m,h,d.hiddenContainer,null,s,d,r,o,a),d.deps<=0?d.resolve():v&&(y||(l(p,g,n,i,s,null,r,o,a),cl(d,g)))):(d.pendingId=jp++,y?(d.isHydrating=!1,d.activeBranch=m):c(m,s,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),v?(l(null,h,d.hiddenContainer,null,s,d,r,o,a),d.deps<=0?d.resolve():(l(p,g,n,i,s,null,r,o,a),cl(d,g))):p&&Es(h,p)?(l(p,h,n,i,s,d,r,o,a),d.resolve(!0)):(l(null,h,d.hiddenContainer,null,s,d,r,o,a),d.deps<=0&&d.resolve()));else if(p&&Es(h,p))l(p,h,n,i,s,d,r,o,a),cl(d,h);else if(su(e,"onPending"),d.pendingBranch=h,h.shapeFlag&512?d.pendingId=h.component.suspenseId:d.pendingId=jp++,l(null,h,d.hiddenContainer,null,s,d,r,o,a),d.deps<=0)d.resolve();else{const{timeout:x,pendingId:E}=d;x>0?setTimeout(()=>{d.pendingId===E&&d.fallback(g)},x):x===0&&d.fallback(g)}}function HE(t,e,n,i,s,r,o,a,l,c,u=!1){const{p:d,m:h,um:g,n:p,o:{parentNode:m,remove:v}}=c;let y;const x=vR(t);x&&e&&e.pendingBranch&&(y=e.pendingId,e.deps++);const E=t.props?Rx(t.props.timeout):void 0,w=r,b={vnode:t,parent:e,parentComponent:n,namespace:o,container:i,hiddenContainer:s,deps:0,pendingId:jp++,timeout:typeof E=="number"?E:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(C=!1,k=!1){const{vnode:T,activeBranch:A,pendingBranch:I,pendingId:V,effects:Y,parentComponent:ne,container:N}=b;let B=!1;b.isHydrating?b.isHydrating=!1:C||(B=A&&I.transition&&I.transition.mode==="out-in",B&&(A.transition.afterLeave=()=>{V===b.pendingId&&(h(I,N,r===w?p(A):r,0),Np(Y))}),A&&(m(A.el)===N&&(r=p(A)),g(A,ne,b,!0)),B||h(I,N,r,0)),cl(b,I),b.pendingBranch=null,b.isInFallback=!1;let R=b.parent,z=!1;for(;R;){if(R.pendingBranch){R.effects.push(...Y),z=!0;break}R=R.parent}!z&&!B&&Np(Y),b.effects=[],x&&e&&e.pendingBranch&&y===e.pendingId&&(e.deps--,e.deps===0&&!k&&e.resolve()),su(T,"onResolve")},fallback(C){if(!b.pendingBranch)return;const{vnode:k,activeBranch:T,parentComponent:A,container:I,namespace:V}=b;su(k,"onFallback");const Y=p(T),ne=()=>{b.isInFallback&&(d(null,C,I,Y,A,null,V,a,l),cl(b,C))},N=C.transition&&C.transition.mode==="out-in";N&&(T.transition.afterLeave=ne),b.isInFallback=!0,g(T,A,null,!0),N||ne()},move(C,k,T){b.activeBranch&&h(b.activeBranch,C,k,T),b.container=C},next(){return b.activeBranch&&p(b.activeBranch)},registerDep(C,k,T){const A=!!b.pendingBranch;A&&b.deps++;const I=C.vnode.el;C.asyncDep.catch(V=>{Fu(V,C,0)}).then(V=>{if(C.isUnmounted||b.isUnmounted||b.pendingId!==C.suspenseId)return;C.asyncResolved=!0;const{vnode:Y}=C;Up(C,V,!1),I&&(Y.el=I);const ne=!I&&C.subTree.el;k(C,Y,m(I||C.subTree.el),I?null:p(C.subTree),b,o,T),ne&&v(ne),w_(C,Y.el),A&&--b.deps===0&&b.resolve()})},unmount(C,k){b.isUnmounted=!0,b.activeBranch&&g(b.activeBranch,n,C,k),b.pendingBranch&&g(b.pendingBranch,n,C,k)}};return b}function pR(t,e,n,i,s,r,o,a,l){const c=e.suspense=HE(e,i,n,t.parentNode,document.createElement("div"),null,s,r,o,a,!0),u=l(t,c.pendingBranch=e.ssContent,n,c,r,o);return c.deps===0&&c.resolve(!1,!0),u}function mR(t){const{shapeFlag:e,children:n}=t,i=e&32;t.ssContent=gb(i?n.default:n),t.ssFallback=i?gb(n.fallback):L(On)}function gb(t){let e;if(Ze(t)){const n=yl&&t._c;n&&(t._d=!1,P()),t=t(),n&&(t._d=!0,e=bi,jE())}return Ke(t)&&(t=lR(t)),t=is(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(n=>n!==t)),t}function _R(t,e){e&&e.pendingBranch?Ke(t)?e.effects.push(...t):e.effects.push(t):Np(t)}function cl(t,e){t.activeBranch=e;const{vnode:n,parentComponent:i}=t;let s=e.el;for(;!s&&e.component;)e=e.component.subTree,s=e.el;n.el=s,i&&i.subTree===n&&(i.vnode.el=s,w_(i,s))}function vR(t){const e=t.props&&t.props.suspensible;return e!=null&&e!==!1}const De=Symbol.for("v-fgt"),pf=Symbol.for("v-txt"),On=Symbol.for("v-cmt"),rh=Symbol.for("v-stc"),Vc=[];let bi=null;function P(t=!1){Vc.push(bi=t?null:[])}function jE(){Vc.pop(),bi=Vc[Vc.length-1]||null}let yl=1;function pb(t){yl+=t,t<0&&bi&&(bi.hasOnce=!0)}function KE(t){return t.dynamicChildren=yl>0?bi||rl:null,jE(),yl>0&&bi&&bi.push(t),t}function F(t,e,n,i,s,r){return KE(f(t,e,n,i,s,r,!0))}function Ee(t,e,n,i,s){return KE(L(t,e,n,i,s,!0))}function bl(t){return t?t.__v_isVNode===!0:!1}function Es(t,e){return t.type===e.type&&t.key===e.key}const UE=({key:t})=>t??null,oh=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?jt(t)||Ht(t)||Ze(t)?{i:wn,r:t,k:e,f:!!n}:t:null);function f(t,e=null,n=null,i=0,s=null,r=t===De?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&UE(e),ref:e&&oh(e),scopeId:cE,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:i,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:wn};return a?(E_(l,n),r&128&&t.normalize(l)):n&&(l.shapeFlag|=jt(n)?8:16),yl>0&&!o&&bi&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&bi.push(l),l}const L=yR;function yR(t,e=null,n=null,i=0,s=null,r=!1){if((!t||t===SE)&&(t=On),bl(t)){const a=ro(t,e,!0);return n&&E_(a,n),yl>0&&!r&&bi&&(a.shapeFlag&6?bi[bi.indexOf(t)]=a:bi.push(a)),a.patchFlag=-2,a}if(TR(t)&&(t=t.__vccOpts),e){e=ii(e);let{class:a,style:l}=e;a&&!jt(a)&&(e.class=Se(a)),It(l)&&(Ou(l)&&!Ke(l)&&(l=vn({},l)),e.style=Mn(l))}const o=jt(t)?1:YE(t)?128:dE(t)?64:It(t)?4:Ze(t)?2:0;return f(t,e,n,i,s,o,r,!0)}function ii(t){return t?Ou(t)||RE(t)?vn({},t):t:null}function ro(t,e,n=!1,i=!1){const{props:s,ref:r,patchFlag:o,children:a,transition:l}=t,c=e?xn(s||{},e):s,u={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&UE(c),ref:e&&e.ref?n&&r?Ke(r)?r.concat(oh(e)):[r,oh(e)]:oh(e):r,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==De?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ro(t.ssContent),ssFallback:t.ssFallback&&ro(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&i&&da(u,l.clone(u)),u}function Be(t=" ",e=0){return L(pf,null,t,e)}function se(t="",e=!1){return e?(P(),Ee(On,null,t)):L(On,null,t)}function is(t){return t==null||typeof t=="boolean"?L(On):Ke(t)?L(De,null,t.slice()):bl(t)?Wr(t):L(pf,null,String(t))}function Wr(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:ro(t)}function E_(t,e){let n=0;const{shapeFlag:i}=t;if(e==null)e=null;else if(Ke(e))n=16;else if(typeof e=="object")if(i&65){const s=e.default;s&&(s._c&&(s._d=!1),E_(t,s()),s._c&&(s._d=!0));return}else{n=32;const s=e._;!s&&!RE(e)?e._ctx=wn:s===3&&wn&&(wn.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Ze(e)?(e={default:e,_ctx:wn},n=32):(e=String(e),i&64?(n=16,e=[Be(e)]):n=8);t.children=e,t.shapeFlag|=n}function xn(...t){const e={};for(let n=0;nPn||wn;let wh,Kp;{const t=$x(),e=(n,i)=>{let s;return(s=t[n])||(s=t[n]=[]),s.push(i),r=>{s.length>1?s.forEach(o=>o(r)):s[0](r)}};wh=e("__VUE_INSTANCE_SETTERS__",n=>Pn=n),Kp=e("__VUE_SSR_SETTERS__",n=>mf=n)}const Vu=t=>{const e=Pn;return wh(t),t.scope.on(),()=>{t.scope.off(),wh(e)}},mb=()=>{Pn&&Pn.scope.off(),wh(null)};function GE(t){return t.vnode.shapeFlag&4}let mf=!1;function ER(t,e=!1,n=!1){e&&Kp(e);const{props:i,children:s}=t.vnode,r=GE(t);KD(t,i,r,e),qD(t,s,n);const o=r?CR(t,e):void 0;return e&&Kp(!1),o}function CR(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,OD);const{setup:i}=n;if(i){const s=t.setupContext=i.length>1?qE(t):null,r=Vu(t);po();const o=Nu(i,t,0,[t.props,s]);if(mo(),r(),Px(o)){if(ll(t)||vE(t),o.then(mb,mb),e)return o.then(a=>{Up(t,a,e)}).catch(a=>{Fu(a,t,0)});t.asyncDep=o}else Up(t,o,e)}else XE(t,e)}function Up(t,e,n){Ze(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:It(e)&&(t.setupState=iE(e)),XE(t,n)}let _b;function XE(t,e,n){const i=t.type;if(!t.render){if(!e&&_b&&!i.render){const s=i.template||__(t).template;if(s){const{isCustomElement:r,compilerOptions:o}=t.appContext.config,{delimiters:a,compilerOptions:l}=i,c=vn(vn({isCustomElement:r,delimiters:a},o),l);i.render=_b(s,c)}}t.render=i.render||$s}{const s=Vu(t);po();try{FD(t)}finally{mo(),s()}}}const SR={get(t,e){return qn(t,"get",""),t[e]}};function qE(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,SR),slots:t.slots,emit:t.emit,expose:e}}function _f(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(iE(uf(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Bc)return Bc[n](t)},has(e,n){return n in e||n in Bc}})):t.proxy}function kR(t,e=!0){return Ze(t)?t.displayName||t.name:t.name||e&&t.__name}function TR(t){return Ze(t)&&"__vccOpts"in t}const ye=(t,e)=>vD(t,e,mf);function ha(t,e,n){const i=arguments.length;return i===2?It(e)&&!Ke(e)?bl(e)?L(t,null,[e]):L(t,e):L(t,null,e):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&bl(n)&&(n=[n]),L(t,e,n))}const ZE="3.5.11";/** +**/function Nu(t,e,n,i){try{return i?t(...i):t()}catch(s){Fu(s,e,n)}}function fs(t,e,n,i){if(Je(t)){const s=Nu(t,e,n,i);return s&&Px(s)&&s.catch(r=>{Fu(r,e,n)}),s}if(Ke(t)){const s=[];for(let r=0;r>>1,s=ti[i],r=nu(s);r=nu(n)?ti.push(t):ti.splice(xD(e),0,t),t.flags|=1,oE()}}function oE(){vh||(vh=rE.then(lE))}function Np(t){Ke(t)?al.push(...t):Vr&&t.id===-1?Vr.splice(Ga+1,0,t):t.flags&1||(al.push(t),t.flags|=1),oE()}function nb(t,e,n=ws+1){for(;nnu(n)-nu(i));if(al.length=0,Vr){Vr.push(...e);return}for(Vr=e,Ga=0;Gat.id==null?t.flags&2?-1:1/0:t.id;function lE(t){try{for(ws=0;ws{i._d&&pb(-1);const r=yh(e);let o;try{o=t(...s)}finally{yh(r),i._d&&pb(1)}return o};return i._n=!0,i._c=!0,i._d=!0,i}function Re(t,e){if(wn===null)return t;const n=_f(wn),i=t.dirs||(t.dirs=[]);for(let s=0;st.__isTeleport,Fc=t=>t&&(t.disabled||t.disabled===""),ED=t=>t&&(t.defer||t.defer===""),ib=t=>typeof SVGElement<"u"&&t instanceof SVGElement,sb=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,Fp=(t,e)=>{const n=t&&t.to;return jt(n)?e?e(n):null:n},CD={name:"Teleport",__isTeleport:!0,process(t,e,n,i,s,r,o,a,l,c){const{mc:u,pc:d,pbc:f,o:{insert:g,querySelector:p,createText:m,createComment:v}}=c,y=Fc(e.props);let{shapeFlag:x,children:E,dynamicChildren:w}=e;if(t==null){const b=e.el=m(""),C=e.anchor=m("");g(b,n,i),g(C,n,i);const k=(A,I)=>{x&16&&(s&&s.isCE&&(s.ce._teleportTarget=A),u(E,A,I,s,r,o,a,l))},T=()=>{const A=e.target=Fp(e.props,p),I=hE(A,e,m,g);A&&(o!=="svg"&&ib(A)?o="svg":o!=="mathml"&&sb(A)&&(o="mathml"),y||(k(A,I),ih(e)))};y&&(k(n,C),ih(e)),ED(e.props)?fi(T,r):T()}else{e.el=t.el,e.targetStart=t.targetStart;const b=e.anchor=t.anchor,C=e.target=t.target,k=e.targetAnchor=t.targetAnchor,T=Fc(t.props),A=T?n:C,I=T?b:k;if(o==="svg"||ib(C)?o="svg":(o==="mathml"||sb(C))&&(o="mathml"),w?(f(t.dynamicChildren,w,A,s,r,o,a),y_(t,e,!0)):l||d(t,e,A,I,s,r,o,a,!1),y)T?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):xd(e,n,b,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const V=e.target=Fp(e.props,p);V&&xd(e,V,null,c,0)}else T&&xd(e,C,k,c,1);ih(e)}},remove(t,e,n,{um:i,o:{remove:s}},r){const{shapeFlag:o,children:a,anchor:l,targetStart:c,targetAnchor:u,target:d,props:f}=t;if(d&&(s(c),s(u)),r&&s(l),o&16){const g=r||!Fc(f);for(let p=0;p{t.isMounted=!0}),EE(()=>{t.isUnmounting=!0}),t}const Fi=[Function,Array],gE={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Fi,onEnter:Fi,onAfterEnter:Fi,onEnterCancelled:Fi,onBeforeLeave:Fi,onLeave:Fi,onAfterLeave:Fi,onLeaveCancelled:Fi,onBeforeAppear:Fi,onAppear:Fi,onAfterAppear:Fi,onAppearCancelled:Fi},pE=t=>{const e=t.subTree;return e.component?pE(e.component):e},TD={name:"BaseTransition",props:gE,setup(t,{slots:e}){const n=Bu(),i=fE();return()=>{const s=e.default&&m_(e.default(),!0);if(!s||!s.length)return;const r=mE(s),o=lt(t),{mode:a}=o;if(i.isLeaving)return Eg(r);const l=rb(r);if(!l)return Eg(r);let c=iu(l,o,i,n,f=>c=f);l.type!==Nn&&da(l,c);const u=n.subTree,d=u&&rb(u);if(d&&d.type!==Nn&&!Es(l,d)&&pE(n).type!==Nn){const f=iu(d,o,i,n);if(da(d,f),a==="out-in"&&l.type!==Nn)return i.isLeaving=!0,f.afterLeave=()=>{i.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave},Eg(r);a==="in-out"&&l.type!==Nn&&(f.delayLeave=(g,p,m)=>{const v=_E(i,d);v[String(d.key)]=d,g[zr]=()=>{p(),g[zr]=void 0,delete c.delayedLeave},c.delayedLeave=m})}return r}}};function mE(t){let e=t[0];if(t.length>1){for(const n of t)if(n.type!==Nn){e=n;break}}return e}const AD=TD;function _E(t,e){const{leavingVNodes:n}=t;let i=n.get(e.type);return i||(i=Object.create(null),n.set(e.type,i)),i}function iu(t,e,n,i,s){const{appear:r,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:g,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:v,onAppear:y,onAfterAppear:x,onAppearCancelled:E}=e,w=String(t.key),b=_E(n,t),C=(A,I)=>{A&&fs(A,i,9,I)},k=(A,I)=>{const V=I[1];C(A,I),Ke(A)?A.every(Y=>Y.length<=1)&&V():A.length<=1&&V()},T={mode:o,persisted:a,beforeEnter(A){let I=l;if(!n.isMounted)if(r)I=v||l;else return;A[zr]&&A[zr](!0);const V=b[w];V&&Es(t,V)&&V.el[zr]&&V.el[zr](),C(I,[A])},enter(A){let I=c,V=u,Y=d;if(!n.isMounted)if(r)I=y||c,V=x||u,Y=E||d;else return;let ne=!1;const N=A[Ed]=B=>{ne||(ne=!0,B?C(Y,[A]):C(V,[A]),T.delayedLeave&&T.delayedLeave(),A[Ed]=void 0)};I?k(I,[A,N]):N()},leave(A,I){const V=String(t.key);if(A[Ed]&&A[Ed](!0),n.isUnmounting)return I();C(f,[A]);let Y=!1;const ne=A[zr]=N=>{Y||(Y=!0,I(),N?C(m,[A]):C(p,[A]),A[zr]=void 0,b[V]===t&&delete b[V])};b[V]=t,g?k(g,[A,ne]):ne()},clone(A){const I=iu(A,e,n,i,s);return s&&s(I),I}};return T}function Eg(t){if(hf(t))return t=ro(t),t.children=null,t}function rb(t){if(!hf(t))return dE(t.type)&&t.children?mE(t.children):t;const{shapeFlag:e,children:n}=t;if(n){if(e&16)return n[0];if(e&32&&Je(n.default))return n.default()}}function da(t,e){t.shapeFlag&6&&t.component?(t.transition=e,da(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function m_(t,e=!1,n){let i=[],s=0;for(let r=0;r1)for(let r=0;rn.value,set:r=>n.value=r})}return n}function Vp(t,e,n,i,s=!1){if(Ke(t)){t.forEach((p,m)=>Vp(p,e&&(Ke(e)?e[m]:e),n,i,s));return}if(ll(i)&&!s)return;const r=i.shapeFlag&4?_f(i.component):i.el,o=s?null:r,{i:a,r:l}=t,c=e&&e.r,u=a.refs===Mt?a.refs={}:a.refs,d=a.setupState,f=lt(d),g=d===Mt?()=>!1:p=>wt(f,p);if(c!=null&&c!==l&&(jt(c)?(u[c]=null,g(c)&&(d[c]=null)):Ht(c)&&(c.value=null)),Je(l))Nu(l,a,12,[o,u]);else{const p=jt(l),m=Ht(l);if(p||m){const v=()=>{if(t.f){const y=p?g(l)?d[l]:u[l]:l.value;s?Ke(y)&&i_(y,r):Ke(y)?y.includes(r)||y.push(r):p?(u[l]=[r],g(l)&&(d[l]=u[l])):(l.value=[r],t.k&&(u[t.k]=l.value))}else p?(u[l]=o,g(l)&&(d[l]=o)):m&&(l.value=o,t.k&&(u[t.k]=o))};o?(v.id=-1,fi(v,n)):v()}}}const ll=t=>!!t.type.__asyncLoader,hf=t=>t.type.__isKeepAlive;function PD(t,e){yE(t,"a",e)}function MD(t,e){yE(t,"da",e)}function yE(t,e,n=Pn){const i=t.__wdc||(t.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return t()});if(ff(e,i,n),n){let s=n.parent;for(;s&&s.parent;)hf(s.parent.vnode)&&ID(i,e,n,s),s=s.parent}}function ID(t,e,n,i){const s=ff(e,t,i,!0);_o(()=>{i_(i[e],s)},n)}function ff(t,e,n=Pn,i=!1){if(n){const s=n[t]||(n[t]=[]),r=e.__weh||(e.__weh=(...o)=>{po();const a=Vu(n),l=fs(e,n,t,o);return a(),mo(),l});return i?s.unshift(r):s.push(r),r}}const wr=t=>(e,n=Pn)=>{(!mf||t==="sp")&&ff(t,(...i)=>e(...i),n)},bE=wr("bm"),Vt=wr("m"),wE=wr("bu"),xE=wr("u"),EE=wr("bum"),_o=wr("um"),DD=wr("sp"),RD=wr("rtg"),$D=wr("rtc");function LD(t,e=Pn){ff("ec",t,e)}const CE="components";function Ce(t,e){return kE(CE,t,!0,e)||t}const SE=Symbol.for("v-ndc");function _a(t){return jt(t)?kE(CE,t,!1)||t:t||SE}function kE(t,e,n=!0,i=!1){const s=wn||Pn;if(s){const r=s.type;{const a=kR(r,!1);if(a&&(a===e||a===Ui(e)||a===of(Ui(e))))return r}const o=ob(s[t]||r[t],e)||ob(s.appContext[t],e);return!o&&i?r:o}}function ob(t,e){return t&&(t[e]||t[Ui(e)]||t[of(Ui(e))])}function Ge(t,e,n,i){let s;const r=n,o=Ke(t);if(o||jt(t)){const a=o&&Qr(t);let l=!1;a&&(l=!Hi(t),t=lf(t)),s=new Array(t.length);for(let c=0,u=t.length;ce(a,l,void 0,r));else{const a=Object.keys(t);s=new Array(a.length);for(let l=0,c=a.length;l{const r=i.fn(...s);return r&&(r.key=i.key),r}:i.fn)}return t}function Be(t,e,n={},i,s){if(wn.ce||wn.parent&&ll(wn.parent)&&wn.parent.ce)return e!=="default"&&(n.name=e),P(),Ee(Ie,null,[$("slot",n,i)],64);let r=t[e];r&&r._c&&(r._d=!1),P();const o=r&&TE(r(n)),a=Ee(Ie,{key:(n.key||o&&o.key||`_${e}`)+(!o&&i?"_fb":"")},o||[],o&&t._===1?64:-2);return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function TE(t){return t.some(e=>bl(e)?!(e.type===Nn||e.type===Ie&&!TE(e.children)):!0)?t:null}const zp=t=>t?GE(t)?_f(t):zp(t.parent):null,Bc=vn(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>zp(t.parent),$root:t=>zp(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>__(t),$forceUpdate:t=>t.f||(t.f=()=>{p_(t.update)}),$nextTick:t=>t.n||(t.n=Rn.bind(t.proxy)),$watch:t=>rR.bind(t)}),Cg=(t,e)=>t!==Mt&&!t.__isScriptSetup&&wt(t,e),OD={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:i,data:s,props:r,accessCache:o,type:a,appContext:l}=t;let c;if(e[0]!=="$"){const g=o[e];if(g!==void 0)switch(g){case 1:return i[e];case 2:return s[e];case 4:return n[e];case 3:return r[e]}else{if(Cg(i,e))return o[e]=1,i[e];if(s!==Mt&&wt(s,e))return o[e]=2,s[e];if((c=t.propsOptions[0])&&wt(c,e))return o[e]=3,r[e];if(n!==Mt&&wt(n,e))return o[e]=4,n[e];Wp&&(o[e]=0)}}const u=Bc[e];let d,f;if(u)return e==="$attrs"&&qn(t.attrs,"get",""),u(t);if((d=a.__cssModules)&&(d=d[e]))return d;if(n!==Mt&&wt(n,e))return o[e]=4,n[e];if(f=l.config.globalProperties,wt(f,e))return f[e]},set({_:t},e,n){const{data:i,setupState:s,ctx:r}=t;return Cg(s,e)?(s[e]=n,!0):i!==Mt&&wt(i,e)?(i[e]=n,!0):wt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(r[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:i,appContext:s,propsOptions:r}},o){let a;return!!n[o]||t!==Mt&&wt(t,o)||Cg(e,o)||(a=r[0])&&wt(a,o)||wt(i,o)||wt(Bc,o)||wt(s.config.globalProperties,o)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:wt(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function va(){return AE().slots}function ND(){return AE().attrs}function AE(){const t=Bu();return t.setupContext||(t.setupContext=qE(t))}function ab(t){return Ke(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let Wp=!0;function FD(t){const e=__(t),n=t.proxy,i=t.ctx;Wp=!1,e.beforeCreate&&lb(e.beforeCreate,t,"bc");const{data:s,computed:r,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:g,updated:p,activated:m,deactivated:v,beforeDestroy:y,beforeUnmount:x,destroyed:E,unmounted:w,render:b,renderTracked:C,renderTriggered:k,errorCaptured:T,serverPrefetch:A,expose:I,inheritAttrs:V,components:Y,directives:ne,filters:N}=e;if(c&&BD(c,i,null),o)for(const z in o){const X=o[z];Je(X)&&(i[z]=X.bind(n))}if(s){const z=s.call(n,n);It(z)&&(t.data=Ei(z))}if(Wp=!0,r)for(const z in r){const X=r[z],J=Je(X)?X.bind(n,n):Je(X.get)?X.get.bind(n,n):$s,H=!Je(X)&&Je(X.set)?X.set.bind(n):$s,ce=ve({get:J,set:H});Object.defineProperty(i,z,{enumerable:!0,configurable:!0,get:()=>ce.value,set:ie=>ce.value=ie})}if(a)for(const z in a)PE(a[z],i,n,z);if(l){const z=Je(l)?l.call(n):l;Reflect.ownKeys(z).forEach(X=>{sh(X,z[X])})}u&&lb(u,t,"c");function R(z,X){Ke(X)?X.forEach(J=>z(J.bind(n))):X&&z(X.bind(n))}if(R(bE,d),R(Vt,f),R(wE,g),R(xE,p),R(PD,m),R(MD,v),R(LD,T),R($D,C),R(RD,k),R(EE,x),R(_o,w),R(DD,A),Ke(I))if(I.length){const z=t.exposed||(t.exposed={});I.forEach(X=>{Object.defineProperty(z,X,{get:()=>n[X],set:J=>n[X]=J})})}else t.exposed||(t.exposed={});b&&t.render===$s&&(t.render=b),V!=null&&(t.inheritAttrs=V),Y&&(t.components=Y),ne&&(t.directives=ne),A&&vE(t)}function BD(t,e,n=$s){Ke(t)&&(t=Yp(t));for(const i in t){const s=t[i];let r;It(s)?"default"in s?r=ji(s.from||i,s.default,!0):r=ji(s.from||i):r=ji(s),Ht(r)?Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):e[i]=r}}function lb(t,e,n){fs(Ke(t)?t.map(i=>i.bind(e.proxy)):t.bind(e.proxy),e,n)}function PE(t,e,n,i){let s=i.includes(".")?zE(n,i):()=>n[i];if(jt(t)){const r=e[t];Je(r)&&Zt(s,r)}else if(Je(t))Zt(s,t.bind(n));else if(It(t))if(Ke(t))t.forEach(r=>PE(r,e,n,i));else{const r=Je(t.handler)?t.handler.bind(n):e[t.handler];Je(r)&&Zt(s,r,t)}}function __(t){const e=t.type,{mixins:n,extends:i}=e,{mixins:s,optionsCache:r,config:{optionMergeStrategies:o}}=t.appContext,a=r.get(e);let l;return a?l=a:!s.length&&!n&&!i?l=e:(l={},s.length&&s.forEach(c=>bh(l,c,o,!0)),bh(l,e,o)),It(e)&&r.set(e,l),l}function bh(t,e,n,i=!1){const{mixins:s,extends:r}=e;r&&bh(t,r,n,!0),s&&s.forEach(o=>bh(t,o,n,!0));for(const o in e)if(!(i&&o==="expose")){const a=VD[o]||n&&n[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const VD={data:cb,props:ub,emits:ub,methods:wc,computed:wc,beforeCreate:Jn,created:Jn,beforeMount:Jn,mounted:Jn,beforeUpdate:Jn,updated:Jn,beforeDestroy:Jn,beforeUnmount:Jn,destroyed:Jn,unmounted:Jn,activated:Jn,deactivated:Jn,errorCaptured:Jn,serverPrefetch:Jn,components:wc,directives:wc,watch:WD,provide:cb,inject:zD};function cb(t,e){return e?t?function(){return vn(Je(t)?t.call(this,this):t,Je(e)?e.call(this,this):e)}:e:t}function zD(t,e){return wc(Yp(t),Yp(e))}function Yp(t){if(Ke(t)){const e={};for(let n=0;n1)return n&&Je(e)?e.call(i&&i.proxy):e}}function jD(){return!!(Pn||wn||na)}const IE={},DE=()=>Object.create(IE),RE=t=>Object.getPrototypeOf(t)===IE;function KD(t,e,n,i=!1){const s={},r=DE();t.propsDefaults=Object.create(null),$E(t,e,s,r);for(const o in t.propsOptions[0])o in s||(s[o]=void 0);n?t.props=i?s:eE(s):t.type.props?t.props=s:t.props=r,t.attrs=r}function UD(t,e,n,i){const{props:s,attrs:r,vnode:{patchFlag:o}}=t,a=lt(s),[l]=t.propsOptions;let c=!1;if((i||o>0)&&!(o&16)){if(o&8){const u=t.vnode.dynamicProps;for(let d=0;d{l=!0;const[f,g]=LE(d,e,!0);vn(o,f),g&&a.push(...g)};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!r&&!l)return It(t)&&i.set(t,rl),rl;if(Ke(r))for(let u=0;ut[0]==="_"||t==="$stable",v_=t=>Ke(t)?t.map(is):[is(t)],XD=(t,e,n)=>{if(e._n)return e;const i=Me((...s)=>v_(e(...s)),n);return i._c=!1,i},NE=(t,e,n)=>{const i=t._ctx;for(const s in t){if(OE(s))continue;const r=t[s];if(Je(r))e[s]=XD(s,r,i);else if(r!=null){const o=v_(r);e[s]=()=>o}}},FE=(t,e)=>{const n=v_(e);t.slots.default=()=>n},BE=(t,e,n)=>{for(const i in e)(n||i!=="_")&&(t[i]=e[i])},qD=(t,e,n)=>{const i=t.slots=DE();if(t.vnode.shapeFlag&32){const s=e._;s?(BE(i,e,n),n&&Dx(i,"_",s,!0)):NE(e,i)}else e&&FE(t,e)},ZD=(t,e,n)=>{const{vnode:i,slots:s}=t;let r=!0,o=Mt;if(i.shapeFlag&32){const a=e._;a?n&&a===1?r=!1:BE(s,e,n):(r=!e.$stable,NE(e,s)),o=e}else e&&(FE(t,e),o={default:1});if(r)for(const a in s)!OE(a)&&o[a]==null&&delete s[a]},fi=_R;function JD(t){return QD(t)}function QD(t,e){const n=$x();n.__VUE__=!0;const{insert:i,remove:s,patchProp:r,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:g=$s,insertStaticContent:p}=t,m=(S,O,K,U=null,oe=null,j=null,se=void 0,Q=null,ge=!!O.dynamicChildren)=>{if(S===O)return;S&&!Es(S,O)&&(U=L(S),ie(S,oe,j,!0),S=null),O.patchFlag===-2&&(ge=!1,O.dynamicChildren=null);const{type:be,ref:we,shapeFlag:Pe}=O;switch(be){case pf:v(S,O,K,U);break;case Nn:y(S,O,K,U);break;case rh:S==null&&x(O,K,U,se);break;case Ie:Y(S,O,K,U,oe,j,se,Q,ge);break;default:Pe&1?b(S,O,K,U,oe,j,se,Q,ge):Pe&6?ne(S,O,K,U,oe,j,se,Q,ge):(Pe&64||Pe&128)&&be.process(S,O,K,U,oe,j,se,Q,ge,xe)}we!=null&&oe&&Vp(we,S&&S.ref,j,O||S,!O)},v=(S,O,K,U)=>{if(S==null)i(O.el=a(O.children),K,U);else{const oe=O.el=S.el;O.children!==S.children&&c(oe,O.children)}},y=(S,O,K,U)=>{S==null?i(O.el=l(O.children||""),K,U):O.el=S.el},x=(S,O,K,U)=>{[S.el,S.anchor]=p(S.children,O,K,U,S.el,S.anchor)},E=({el:S,anchor:O},K,U)=>{let oe;for(;S&&S!==O;)oe=f(S),i(S,K,U),S=oe;i(O,K,U)},w=({el:S,anchor:O})=>{let K;for(;S&&S!==O;)K=f(S),s(S),S=K;s(O)},b=(S,O,K,U,oe,j,se,Q,ge)=>{O.type==="svg"?se="svg":O.type==="math"&&(se="mathml"),S==null?C(O,K,U,oe,j,se,Q,ge):A(S,O,oe,j,se,Q,ge)},C=(S,O,K,U,oe,j,se,Q)=>{let ge,be;const{props:we,shapeFlag:Pe,transition:De,dirs:We}=S;if(ge=S.el=o(S.type,j,we&&we.is,we),Pe&8?u(ge,S.children):Pe&16&&T(S.children,ge,null,U,oe,Sg(S,j),se,Q),We&&Ro(S,null,U,"created"),k(ge,S,S.scopeId,se,U),we){for(const nt in we)nt!=="value"&&!Lc(nt)&&r(ge,nt,null,we[nt],j,U);"value"in we&&r(ge,"value",null,we.value,j),(be=we.onVnodeBeforeMount)&&ys(be,U,S)}We&&Ro(S,null,U,"beforeMount");const je=eR(oe,De);je&&De.beforeEnter(ge),i(ge,O,K),((be=we&&we.onVnodeMounted)||je||We)&&fi(()=>{be&&ys(be,U,S),je&&De.enter(ge),We&&Ro(S,null,U,"mounted")},oe)},k=(S,O,K,U,oe)=>{if(K&&g(S,K),U)for(let j=0;j{for(let be=ge;be{const Q=O.el=S.el;let{patchFlag:ge,dynamicChildren:be,dirs:we}=O;ge|=S.patchFlag&16;const Pe=S.props||Mt,De=O.props||Mt;let We;if(K&&$o(K,!1),(We=De.onVnodeBeforeUpdate)&&ys(We,K,O,S),we&&Ro(O,S,K,"beforeUpdate"),K&&$o(K,!0),(Pe.innerHTML&&De.innerHTML==null||Pe.textContent&&De.textContent==null)&&u(Q,""),be?I(S.dynamicChildren,be,Q,K,U,Sg(O,oe),j):se||X(S,O,Q,null,K,U,Sg(O,oe),j,!1),ge>0){if(ge&16)V(Q,Pe,De,K,oe);else if(ge&2&&Pe.class!==De.class&&r(Q,"class",null,De.class,oe),ge&4&&r(Q,"style",Pe.style,De.style,oe),ge&8){const je=O.dynamicProps;for(let nt=0;nt{We&&ys(We,K,O,S),we&&Ro(O,S,K,"updated")},U)},I=(S,O,K,U,oe,j,se)=>{for(let Q=0;Q{if(O!==K){if(O!==Mt)for(const j in O)!Lc(j)&&!(j in K)&&r(S,j,O[j],null,oe,U);for(const j in K){if(Lc(j))continue;const se=K[j],Q=O[j];se!==Q&&j!=="value"&&r(S,j,Q,se,oe,U)}"value"in K&&r(S,"value",O.value,K.value,oe)}},Y=(S,O,K,U,oe,j,se,Q,ge)=>{const be=O.el=S?S.el:a(""),we=O.anchor=S?S.anchor:a("");let{patchFlag:Pe,dynamicChildren:De,slotScopeIds:We}=O;We&&(Q=Q?Q.concat(We):We),S==null?(i(be,K,U),i(we,K,U),T(O.children||[],K,we,oe,j,se,Q,ge)):Pe>0&&Pe&64&&De&&S.dynamicChildren?(I(S.dynamicChildren,De,K,oe,j,se,Q),(O.key!=null||oe&&O===oe.subTree)&&y_(S,O,!0)):X(S,O,K,we,oe,j,se,Q,ge)},ne=(S,O,K,U,oe,j,se,Q,ge)=>{O.slotScopeIds=Q,S==null?O.shapeFlag&512?oe.ctx.activate(O,K,U,se,ge):N(O,K,U,oe,j,se,ge):B(S,O,ge)},N=(S,O,K,U,oe,j,se)=>{const Q=S.component=xR(S,U,oe);if(hf(S)&&(Q.ctx.renderer=xe),ER(Q,!1,se),Q.asyncDep){if(oe&&oe.registerDep(Q,R,se),!S.el){const ge=Q.subTree=$(Nn);y(null,ge,O,K)}}else R(Q,S,O,K,oe,j,se)},B=(S,O,K)=>{const U=O.component=S.component;if(dR(S,O,K))if(U.asyncDep&&!U.asyncResolved){z(U,O,K);return}else U.next=O,U.update();else O.el=S.el,U.vnode=O},R=(S,O,K,U,oe,j,se)=>{const Q=()=>{if(S.isMounted){let{next:Pe,bu:De,u:We,parent:je,vnode:nt}=S;{const Ut=VE(S);if(Ut){Pe&&(Pe.el=nt.el,z(S,Pe,se)),Ut.asyncDep.then(()=>{S.isUnmounted||Q()});return}}let et=Pe,Jt;$o(S,!1),Pe?(Pe.el=nt.el,z(S,Pe,se)):Pe=nt,De&&nh(De),(Jt=Pe.props&&Pe.props.onVnodeBeforeUpdate)&&ys(Jt,je,Pe,nt),$o(S,!0);const zt=kg(S),gn=S.subTree;S.subTree=zt,m(gn,zt,d(gn.el),L(gn),S,oe,j),Pe.el=zt.el,et===null&&w_(S,zt.el),We&&fi(We,oe),(Jt=Pe.props&&Pe.props.onVnodeUpdated)&&fi(()=>ys(Jt,je,Pe,nt),oe)}else{let Pe;const{el:De,props:We}=O,{bm:je,m:nt,parent:et,root:Jt,type:zt}=S,gn=ll(O);if($o(S,!1),je&&nh(je),!gn&&(Pe=We&&We.onVnodeBeforeMount)&&ys(Pe,et,O),$o(S,!0),De&&fe){const Ut=()=>{S.subTree=kg(S),fe(De,S.subTree,S,oe,null)};gn&&zt.__asyncHydrate?zt.__asyncHydrate(De,S,Ut):Ut()}else{Jt.ce&&Jt.ce._injectChildStyle(zt);const Ut=S.subTree=kg(S);m(null,Ut,K,U,S,oe,j),O.el=Ut.el}if(nt&&fi(nt,oe),!gn&&(Pe=We&&We.onVnodeMounted)){const Ut=O;fi(()=>ys(Pe,et,Ut),oe)}(O.shapeFlag&256||et&&ll(et.vnode)&&et.vnode.shapeFlag&256)&&S.a&&fi(S.a,oe),S.isMounted=!0,O=K=U=null}};S.scope.on();const ge=S.effect=new Vx(Q);S.scope.off();const be=S.update=ge.run.bind(ge),we=S.job=ge.runIfDirty.bind(ge);we.i=S,we.id=S.uid,ge.scheduler=()=>p_(we),$o(S,!0),be()},z=(S,O,K)=>{O.component=S;const U=S.vnode.props;S.vnode=O,S.next=null,UD(S,O.props,U,K),ZD(S,O.children,K),po(),nb(S),mo()},X=(S,O,K,U,oe,j,se,Q,ge=!1)=>{const be=S&&S.children,we=S?S.shapeFlag:0,Pe=O.children,{patchFlag:De,shapeFlag:We}=O;if(De>0){if(De&128){H(be,Pe,K,U,oe,j,se,Q,ge);return}else if(De&256){J(be,Pe,K,U,oe,j,se,Q,ge);return}}We&8?(we&16&&ue(be,oe,j),Pe!==be&&u(K,Pe)):we&16?We&16?H(be,Pe,K,U,oe,j,se,Q,ge):ue(be,oe,j,!0):(we&8&&u(K,""),We&16&&T(Pe,K,U,oe,j,se,Q,ge))},J=(S,O,K,U,oe,j,se,Q,ge)=>{S=S||rl,O=O||rl;const be=S.length,we=O.length,Pe=Math.min(be,we);let De;for(De=0;Dewe?ue(S,oe,j,!0,!1,Pe):T(O,K,U,oe,j,se,Q,ge,Pe)},H=(S,O,K,U,oe,j,se,Q,ge)=>{let be=0;const we=O.length;let Pe=S.length-1,De=we-1;for(;be<=Pe&&be<=De;){const We=S[be],je=O[be]=ge?Wr(O[be]):is(O[be]);if(Es(We,je))m(We,je,K,null,oe,j,se,Q,ge);else break;be++}for(;be<=Pe&&be<=De;){const We=S[Pe],je=O[De]=ge?Wr(O[De]):is(O[De]);if(Es(We,je))m(We,je,K,null,oe,j,se,Q,ge);else break;Pe--,De--}if(be>Pe){if(be<=De){const We=De+1,je=WeDe)for(;be<=Pe;)ie(S[be],oe,j,!0),be++;else{const We=be,je=be,nt=new Map;for(be=je;be<=De;be++){const Qt=O[be]=ge?Wr(O[be]):is(O[be]);Qt.key!=null&&nt.set(Qt.key,be)}let et,Jt=0;const zt=De-je+1;let gn=!1,Ut=0;const Ci=new Array(zt);for(be=0;be=zt){ie(Qt,oe,j,!0);continue}let ae;if(Qt.key!=null)ae=nt.get(Qt.key);else for(et=je;et<=De;et++)if(Ci[et-je]===0&&Es(Qt,O[et])){ae=et;break}ae===void 0?ie(Qt,oe,j,!0):(Ci[ae-je]=be+1,ae>=Ut?Ut=ae:gn=!0,m(Qt,O[ae],K,null,oe,j,se,Q,ge),Jt++)}const qi=gn?tR(Ci):rl;for(et=qi.length-1,be=zt-1;be>=0;be--){const Qt=je+be,ae=O[Qt],Te=Qt+1{const{el:j,type:se,transition:Q,children:ge,shapeFlag:be}=S;if(be&6){ce(S.component.subTree,O,K,U);return}if(be&128){S.suspense.move(O,K,U);return}if(be&64){se.move(S,O,K,xe);return}if(se===Ie){i(j,O,K);for(let Pe=0;PeQ.enter(j),oe);else{const{leave:Pe,delayLeave:De,afterLeave:We}=Q,je=()=>i(j,O,K),nt=()=>{Pe(j,()=>{je(),We&&We()})};De?De(j,je,nt):nt()}else i(j,O,K)},ie=(S,O,K,U=!1,oe=!1)=>{const{type:j,props:se,ref:Q,children:ge,dynamicChildren:be,shapeFlag:we,patchFlag:Pe,dirs:De,cacheIndex:We}=S;if(Pe===-2&&(oe=!1),Q!=null&&Vp(Q,null,K,S,!0),We!=null&&(O.renderCache[We]=void 0),we&256){O.ctx.deactivate(S);return}const je=we&1&&De,nt=!ll(S);let et;if(nt&&(et=se&&se.onVnodeBeforeUnmount)&&ys(et,O,S),we&6)ee(S.component,K,U);else{if(we&128){S.suspense.unmount(K,U);return}je&&Ro(S,null,O,"beforeUnmount"),we&64?S.type.remove(S,O,K,xe,U):be&&!be.hasOnce&&(j!==Ie||Pe>0&&Pe&64)?ue(be,O,K,!1,!0):(j===Ie&&Pe&384||!oe&&we&16)&&ue(ge,O,K),U&&te(S)}(nt&&(et=se&&se.onVnodeUnmounted)||je)&&fi(()=>{et&&ys(et,O,S),je&&Ro(S,null,O,"unmounted")},K)},te=S=>{const{type:O,el:K,anchor:U,transition:oe}=S;if(O===Ie){D(K,U);return}if(O===rh){w(S);return}const j=()=>{s(K),oe&&!oe.persisted&&oe.afterLeave&&oe.afterLeave()};if(S.shapeFlag&1&&oe&&!oe.persisted){const{leave:se,delayLeave:Q}=oe,ge=()=>se(K,j);Q?Q(S.el,j,ge):ge()}else j()},D=(S,O)=>{let K;for(;S!==O;)K=f(S),s(S),S=K;s(O)},ee=(S,O,K)=>{const{bum:U,scope:oe,job:j,subTree:se,um:Q,m:ge,a:be}=S;hb(ge),hb(be),U&&nh(U),oe.stop(),j&&(j.flags|=8,ie(se,S,O,K)),Q&&fi(Q,O),fi(()=>{S.isUnmounted=!0},O),O&&O.pendingBranch&&!O.isUnmounted&&S.asyncDep&&!S.asyncResolved&&S.suspenseId===O.pendingId&&(O.deps--,O.deps===0&&O.resolve())},ue=(S,O,K,U=!1,oe=!1,j=0)=>{for(let se=j;se{if(S.shapeFlag&6)return L(S.component.subTree);if(S.shapeFlag&128)return S.suspense.next();const O=f(S.anchor||S.el),K=O&&O[uE];return K?f(K):O};let le=!1;const de=(S,O,K)=>{S==null?O._vnode&&ie(O._vnode,null,null,!0):m(O._vnode||null,S,O,null,null,null,K),O._vnode=S,le||(le=!0,nb(),aE(),le=!1)},xe={p:m,um:ie,m:ce,r:te,mt:N,mc:T,pc:X,pbc:I,n:L,o:t};let W,fe;return{render:de,hydrate:W,createApp:HD(de,W)}}function Sg({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function $o({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function eR(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function y_(t,e,n=!1){const i=t.children,s=e.children;if(Ke(i)&&Ke(s))for(let r=0;r>1,t[n[a]]0&&(e[i]=n[r-1]),n[r]=i)}}for(r=n.length,o=n[r-1];r-- >0;)n[r]=o,o=e[o];return n}function VE(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:VE(e)}function hb(t){if(t)for(let e=0;eji(nR);function sR(t,e){return b_(t,null,{flush:"post"})}function Zt(t,e,n){return b_(t,e,n)}function b_(t,e,n=Mt){const{immediate:i,deep:s,flush:r,once:o}=n,a=vn({},n);let l;if(mf)if(r==="sync"){const f=iR();l=f.__watcherHandles||(f.__watcherHandles=[])}else if(!e||i)a.once=!0;else{const f=()=>{};return f.stop=$s,f.resume=$s,f.pause=$s,f}const c=Pn;a.call=(f,g,p)=>fs(f,c,g,p);let u=!1;r==="post"?a.scheduler=f=>{fi(f,c&&c.suspense)}:r!=="sync"&&(u=!0,a.scheduler=(f,g)=>{g?f():p_(f)}),a.augmentJob=f=>{e&&(f.flags|=4),u&&(f.flags|=2,c&&(f.id=c.uid,f.i=c))};const d=bD(t,e,a);return l&&l.push(d),d}function rR(t,e,n){const i=this.proxy,s=jt(t)?t.includes(".")?zE(i,t):()=>i[t]:t.bind(i,i);let r;Je(e)?r=e:(r=e.handler,n=e);const o=Vu(this),a=b_(s,r.bind(i),n);return o(),a}function zE(t,e){const n=e.split(".");return()=>{let i=t;for(let s=0;se==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${Ui(e)}Modifiers`]||t[`${go(e)}Modifiers`];function aR(t,e,...n){if(t.isUnmounted)return;const i=t.vnode.props||Mt;let s=n;const r=e.startsWith("update:"),o=r&&oR(i,e.slice(7));o&&(o.trim&&(s=n.map(u=>jt(u)?u.trim():u)),o.number&&(s=n.map(ph)));let a,l=i[a=vg(e)]||i[a=vg(Ui(e))];!l&&r&&(l=i[a=vg(go(e))]),l&&fs(l,t,6,s);const c=i[a+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,fs(c,t,6,s)}}function WE(t,e,n=!1){const i=e.emitsCache,s=i.get(t);if(s!==void 0)return s;const r=t.emits;let o={},a=!1;if(!Je(t)){const l=c=>{const u=WE(c,e,!0);u&&(a=!0,vn(o,u))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!r&&!a?(It(t)&&i.set(t,null),null):(Ke(r)?r.forEach(l=>o[l]=null):vn(o,r),It(t)&&i.set(t,o),o)}function gf(t,e){return!t||!sf(e)?!1:(e=e.slice(2).replace(/Once$/,""),wt(t,e[0].toLowerCase()+e.slice(1))||wt(t,go(e))||wt(t,e))}function kg(t){const{type:e,vnode:n,proxy:i,withProxy:s,propsOptions:[r],slots:o,attrs:a,emit:l,render:c,renderCache:u,props:d,data:f,setupState:g,ctx:p,inheritAttrs:m}=t,v=yh(t);let y,x;try{if(n.shapeFlag&4){const w=s||i,b=w;y=is(c.call(b,w,u,d,g,f,p)),x=a}else{const w=e;y=is(w.length>1?w(d,{attrs:a,slots:o,emit:l}):w(d,null)),x=e.props?a:cR(a)}}catch(w){Vc.length=0,Fu(w,t,1),y=$(Nn)}let E=y;if(x&&m!==!1){const w=Object.keys(x),{shapeFlag:b}=E;w.length&&b&7&&(r&&w.some(n_)&&(x=uR(x,r)),E=ro(E,x,!1,!0))}return n.dirs&&(E=ro(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&da(E,n.transition),y=E,yh(v),y}function lR(t,e=!0){let n;for(let i=0;i{let e;for(const n in t)(n==="class"||n==="style"||sf(n))&&((e||(e={}))[n]=t[n]);return e},uR=(t,e)=>{const n={};for(const i in t)(!n_(i)||!(i.slice(9)in e))&&(n[i]=t[i]);return n};function dR(t,e,n){const{props:i,children:s,component:r}=t,{props:o,children:a,patchFlag:l}=e,c=r.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return i?fb(i,o,c):!!o;if(l&8){const u=e.dynamicProps;for(let d=0;dt.__isSuspense;let jp=0;const hR={name:"Suspense",__isSuspense:!0,process(t,e,n,i,s,r,o,a,l,c){if(t==null)fR(e,n,i,s,r,o,a,l,c);else{if(r&&r.deps>0&&!t.suspense.isInFallback){e.suspense=t.suspense,e.suspense.vnode=e,e.el=t.el;return}gR(t,e,n,i,s,o,a,l,c)}},hydrate:pR,normalize:mR},x_=hR;function su(t,e){const n=t.props&&t.props[e];Je(n)&&n()}function fR(t,e,n,i,s,r,o,a,l){const{p:c,o:{createElement:u}}=l,d=u("div"),f=t.suspense=HE(t,s,i,e,d,n,r,o,a,l);c(null,f.pendingBranch=t.ssContent,d,null,i,f,r,o),f.deps>0?(su(t,"onPending"),su(t,"onFallback"),c(null,t.ssFallback,e,n,i,null,r,o),cl(f,t.ssFallback)):f.resolve(!1,!0)}function gR(t,e,n,i,s,r,o,a,{p:l,um:c,o:{createElement:u}}){const d=e.suspense=t.suspense;d.vnode=e,e.el=t.el;const f=e.ssContent,g=e.ssFallback,{activeBranch:p,pendingBranch:m,isInFallback:v,isHydrating:y}=d;if(m)d.pendingBranch=f,Es(f,m)?(l(m,f,d.hiddenContainer,null,s,d,r,o,a),d.deps<=0?d.resolve():v&&(y||(l(p,g,n,i,s,null,r,o,a),cl(d,g)))):(d.pendingId=jp++,y?(d.isHydrating=!1,d.activeBranch=m):c(m,s,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),v?(l(null,f,d.hiddenContainer,null,s,d,r,o,a),d.deps<=0?d.resolve():(l(p,g,n,i,s,null,r,o,a),cl(d,g))):p&&Es(f,p)?(l(p,f,n,i,s,d,r,o,a),d.resolve(!0)):(l(null,f,d.hiddenContainer,null,s,d,r,o,a),d.deps<=0&&d.resolve()));else if(p&&Es(f,p))l(p,f,n,i,s,d,r,o,a),cl(d,f);else if(su(e,"onPending"),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=jp++,l(null,f,d.hiddenContainer,null,s,d,r,o,a),d.deps<=0)d.resolve();else{const{timeout:x,pendingId:E}=d;x>0?setTimeout(()=>{d.pendingId===E&&d.fallback(g)},x):x===0&&d.fallback(g)}}function HE(t,e,n,i,s,r,o,a,l,c,u=!1){const{p:d,m:f,um:g,n:p,o:{parentNode:m,remove:v}}=c;let y;const x=vR(t);x&&e&&e.pendingBranch&&(y=e.pendingId,e.deps++);const E=t.props?Rx(t.props.timeout):void 0,w=r,b={vnode:t,parent:e,parentComponent:n,namespace:o,container:i,hiddenContainer:s,deps:0,pendingId:jp++,timeout:typeof E=="number"?E:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(C=!1,k=!1){const{vnode:T,activeBranch:A,pendingBranch:I,pendingId:V,effects:Y,parentComponent:ne,container:N}=b;let B=!1;b.isHydrating?b.isHydrating=!1:C||(B=A&&I.transition&&I.transition.mode==="out-in",B&&(A.transition.afterLeave=()=>{V===b.pendingId&&(f(I,N,r===w?p(A):r,0),Np(Y))}),A&&(m(A.el)===N&&(r=p(A)),g(A,ne,b,!0)),B||f(I,N,r,0)),cl(b,I),b.pendingBranch=null,b.isInFallback=!1;let R=b.parent,z=!1;for(;R;){if(R.pendingBranch){R.effects.push(...Y),z=!0;break}R=R.parent}!z&&!B&&Np(Y),b.effects=[],x&&e&&e.pendingBranch&&y===e.pendingId&&(e.deps--,e.deps===0&&!k&&e.resolve()),su(T,"onResolve")},fallback(C){if(!b.pendingBranch)return;const{vnode:k,activeBranch:T,parentComponent:A,container:I,namespace:V}=b;su(k,"onFallback");const Y=p(T),ne=()=>{b.isInFallback&&(d(null,C,I,Y,A,null,V,a,l),cl(b,C))},N=C.transition&&C.transition.mode==="out-in";N&&(T.transition.afterLeave=ne),b.isInFallback=!0,g(T,A,null,!0),N||ne()},move(C,k,T){b.activeBranch&&f(b.activeBranch,C,k,T),b.container=C},next(){return b.activeBranch&&p(b.activeBranch)},registerDep(C,k,T){const A=!!b.pendingBranch;A&&b.deps++;const I=C.vnode.el;C.asyncDep.catch(V=>{Fu(V,C,0)}).then(V=>{if(C.isUnmounted||b.isUnmounted||b.pendingId!==C.suspenseId)return;C.asyncResolved=!0;const{vnode:Y}=C;Up(C,V,!1),I&&(Y.el=I);const ne=!I&&C.subTree.el;k(C,Y,m(I||C.subTree.el),I?null:p(C.subTree),b,o,T),ne&&v(ne),w_(C,Y.el),A&&--b.deps===0&&b.resolve()})},unmount(C,k){b.isUnmounted=!0,b.activeBranch&&g(b.activeBranch,n,C,k),b.pendingBranch&&g(b.pendingBranch,n,C,k)}};return b}function pR(t,e,n,i,s,r,o,a,l){const c=e.suspense=HE(e,i,n,t.parentNode,document.createElement("div"),null,s,r,o,a,!0),u=l(t,c.pendingBranch=e.ssContent,n,c,r,o);return c.deps===0&&c.resolve(!1,!0),u}function mR(t){const{shapeFlag:e,children:n}=t,i=e&32;t.ssContent=gb(i?n.default:n),t.ssFallback=i?gb(n.fallback):$(Nn)}function gb(t){let e;if(Je(t)){const n=yl&&t._c;n&&(t._d=!1,P()),t=t(),n&&(t._d=!0,e=bi,jE())}return Ke(t)&&(t=lR(t)),t=is(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(n=>n!==t)),t}function _R(t,e){e&&e.pendingBranch?Ke(t)?e.effects.push(...t):e.effects.push(t):Np(t)}function cl(t,e){t.activeBranch=e;const{vnode:n,parentComponent:i}=t;let s=e.el;for(;!s&&e.component;)e=e.component.subTree,s=e.el;n.el=s,i&&i.subTree===n&&(i.vnode.el=s,w_(i,s))}function vR(t){const e=t.props&&t.props.suspensible;return e!=null&&e!==!1}const Ie=Symbol.for("v-fgt"),pf=Symbol.for("v-txt"),Nn=Symbol.for("v-cmt"),rh=Symbol.for("v-stc"),Vc=[];let bi=null;function P(t=!1){Vc.push(bi=t?null:[])}function jE(){Vc.pop(),bi=Vc[Vc.length-1]||null}let yl=1;function pb(t){yl+=t,t<0&&bi&&(bi.hasOnce=!0)}function KE(t){return t.dynamicChildren=yl>0?bi||rl:null,jE(),yl>0&&bi&&bi.push(t),t}function F(t,e,n,i,s,r){return KE(h(t,e,n,i,s,r,!0))}function Ee(t,e,n,i,s){return KE($(t,e,n,i,s,!0))}function bl(t){return t?t.__v_isVNode===!0:!1}function Es(t,e){return t.type===e.type&&t.key===e.key}const UE=({key:t})=>t??null,oh=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?jt(t)||Ht(t)||Je(t)?{i:wn,r:t,k:e,f:!!n}:t:null);function h(t,e=null,n=null,i=0,s=null,r=t===Ie?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&UE(e),ref:e&&oh(e),scopeId:cE,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:i,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:wn};return a?(E_(l,n),r&128&&t.normalize(l)):n&&(l.shapeFlag|=jt(n)?8:16),yl>0&&!o&&bi&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&bi.push(l),l}const $=yR;function yR(t,e=null,n=null,i=0,s=null,r=!1){if((!t||t===SE)&&(t=Nn),bl(t)){const a=ro(t,e,!0);return n&&E_(a,n),yl>0&&!r&&bi&&(a.shapeFlag&6?bi[bi.indexOf(t)]=a:bi.push(a)),a.patchFlag=-2,a}if(TR(t)&&(t=t.__vccOpts),e){e=ii(e);let{class:a,style:l}=e;a&&!jt(a)&&(e.class=Se(a)),It(l)&&(Ou(l)&&!Ke(l)&&(l=vn({},l)),e.style=Mn(l))}const o=jt(t)?1:YE(t)?128:dE(t)?64:It(t)?4:Je(t)?2:0;return h(t,e,n,i,s,o,r,!0)}function ii(t){return t?Ou(t)||RE(t)?vn({},t):t:null}function ro(t,e,n=!1,i=!1){const{props:s,ref:r,patchFlag:o,children:a,transition:l}=t,c=e?xn(s||{},e):s,u={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&UE(c),ref:e&&e.ref?n&&r?Ke(r)?r.concat(oh(e)):[r,oh(e)]:oh(e):r,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Ie?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ro(t.ssContent),ssFallback:t.ssFallback&&ro(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&i&&da(u,l.clone(u)),u}function Fe(t=" ",e=0){return $(pf,null,t,e)}function re(t="",e=!1){return e?(P(),Ee(Nn,null,t)):$(Nn,null,t)}function is(t){return t==null||typeof t=="boolean"?$(Nn):Ke(t)?$(Ie,null,t.slice()):bl(t)?Wr(t):$(pf,null,String(t))}function Wr(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:ro(t)}function E_(t,e){let n=0;const{shapeFlag:i}=t;if(e==null)e=null;else if(Ke(e))n=16;else if(typeof e=="object")if(i&65){const s=e.default;s&&(s._c&&(s._d=!1),E_(t,s()),s._c&&(s._d=!0));return}else{n=32;const s=e._;!s&&!RE(e)?e._ctx=wn:s===3&&wn&&(wn.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Je(e)?(e={default:e,_ctx:wn},n=32):(e=String(e),i&64?(n=16,e=[Fe(e)]):n=8);t.children=e,t.shapeFlag|=n}function xn(...t){const e={};for(let n=0;nPn||wn;let wh,Kp;{const t=$x(),e=(n,i)=>{let s;return(s=t[n])||(s=t[n]=[]),s.push(i),r=>{s.length>1?s.forEach(o=>o(r)):s[0](r)}};wh=e("__VUE_INSTANCE_SETTERS__",n=>Pn=n),Kp=e("__VUE_SSR_SETTERS__",n=>mf=n)}const Vu=t=>{const e=Pn;return wh(t),t.scope.on(),()=>{t.scope.off(),wh(e)}},mb=()=>{Pn&&Pn.scope.off(),wh(null)};function GE(t){return t.vnode.shapeFlag&4}let mf=!1;function ER(t,e=!1,n=!1){e&&Kp(e);const{props:i,children:s}=t.vnode,r=GE(t);KD(t,i,r,e),qD(t,s,n);const o=r?CR(t,e):void 0;return e&&Kp(!1),o}function CR(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,OD);const{setup:i}=n;if(i){const s=t.setupContext=i.length>1?qE(t):null,r=Vu(t);po();const o=Nu(i,t,0,[t.props,s]);if(mo(),r(),Px(o)){if(ll(t)||vE(t),o.then(mb,mb),e)return o.then(a=>{Up(t,a,e)}).catch(a=>{Fu(a,t,0)});t.asyncDep=o}else Up(t,o,e)}else XE(t,e)}function Up(t,e,n){Je(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:It(e)&&(t.setupState=iE(e)),XE(t,n)}let _b;function XE(t,e,n){const i=t.type;if(!t.render){if(!e&&_b&&!i.render){const s=i.template||__(t).template;if(s){const{isCustomElement:r,compilerOptions:o}=t.appContext.config,{delimiters:a,compilerOptions:l}=i,c=vn(vn({isCustomElement:r,delimiters:a},o),l);i.render=_b(s,c)}}t.render=i.render||$s}{const s=Vu(t);po();try{FD(t)}finally{mo(),s()}}}const SR={get(t,e){return qn(t,"get",""),t[e]}};function qE(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,SR),slots:t.slots,emit:t.emit,expose:e}}function _f(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(iE(uf(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Bc)return Bc[n](t)},has(e,n){return n in e||n in Bc}})):t.proxy}function kR(t,e=!0){return Je(t)?t.displayName||t.name:t.name||e&&t.__name}function TR(t){return Je(t)&&"__vccOpts"in t}const ve=(t,e)=>vD(t,e,mf);function ha(t,e,n){const i=arguments.length;return i===2?It(e)&&!Ke(e)?bl(e)?$(t,null,[e]):$(t,e):$(t,null,e):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&bl(n)&&(n=[n]),$(t,e,n))}const ZE="3.5.11";/** * @vue/runtime-dom v3.5.11 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Gp;const vb=typeof window<"u"&&window.trustedTypes;if(vb)try{Gp=vb.createPolicy("vue",{createHTML:t=>t})}catch{}const JE=Gp?t=>Gp.createHTML(t):t=>t,AR="http://www.w3.org/2000/svg",PR="http://www.w3.org/1998/Math/MathML",tr=typeof document<"u"?document:null,yb=tr&&tr.createElement("template"),MR={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,i)=>{const s=e==="svg"?tr.createElementNS(AR,t):e==="mathml"?tr.createElementNS(PR,t):n?tr.createElement(t,{is:n}):tr.createElement(t);return t==="select"&&i&&i.multiple!=null&&s.setAttribute("multiple",i.multiple),s},createText:t=>tr.createTextNode(t),createComment:t=>tr.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>tr.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,i,s,r){const o=n?n.previousSibling:e.lastChild;if(s&&(s===r||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),n),!(s===r||!(s=s.nextSibling)););else{yb.innerHTML=JE(i==="svg"?`${t}`:i==="mathml"?`${t}`:t);const a=yb.content;if(i==="svg"||i==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},Tr="transition",oc="animation",wl=Symbol("_vtc"),QE={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},eC=vn({},gE,QE),IR=t=>(t.displayName="Transition",t.props=eC,t),xt=IR((t,{slots:e})=>ha(AD,tC(t),e)),Lo=(t,e=[])=>{Ke(t)?t.forEach(n=>n(...e)):t&&t(...e)},bb=t=>t?Ke(t)?t.some(e=>e.length>1):t.length>1:!1;function tC(t){const e={};for(const Y in t)Y in QE||(e[Y]=t[Y]);if(t.css===!1)return e;const{name:n="v",type:i,duration:s,enterFromClass:r=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=r,appearActiveClass:c=o,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=t,p=DR(s),m=p&&p[0],v=p&&p[1],{onBeforeEnter:y,onEnter:x,onEnterCancelled:E,onLeave:w,onLeaveCancelled:b,onBeforeAppear:C=y,onAppear:k=x,onAppearCancelled:T=E}=e,A=(Y,ne,N)=>{Or(Y,ne?u:a),Or(Y,ne?c:o),N&&N()},I=(Y,ne)=>{Y._isLeaving=!1,Or(Y,d),Or(Y,g),Or(Y,h),ne&&ne()},V=Y=>(ne,N)=>{const B=Y?k:x,R=()=>A(ne,Y,N);Lo(B,[ne,R]),wb(()=>{Or(ne,Y?l:r),qs(ne,Y?u:a),bb(B)||xb(ne,i,m,R)})};return vn(e,{onBeforeEnter(Y){Lo(y,[Y]),qs(Y,r),qs(Y,o)},onBeforeAppear(Y){Lo(C,[Y]),qs(Y,l),qs(Y,c)},onEnter:V(!1),onAppear:V(!0),onLeave(Y,ne){Y._isLeaving=!0;const N=()=>I(Y,ne);qs(Y,d),qs(Y,h),iC(),wb(()=>{Y._isLeaving&&(Or(Y,d),qs(Y,g),bb(w)||xb(Y,i,v,N))}),Lo(w,[Y,N])},onEnterCancelled(Y){A(Y,!1),Lo(E,[Y])},onAppearCancelled(Y){A(Y,!0),Lo(T,[Y])},onLeaveCancelled(Y){I(Y),Lo(b,[Y])}})}function DR(t){if(t==null)return null;if(It(t))return[Tg(t.enter),Tg(t.leave)];{const e=Tg(t);return[e,e]}}function Tg(t){return Rx(t)}function qs(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[wl]||(t[wl]=new Set)).add(e)}function Or(t,e){e.split(/\s+/).forEach(i=>i&&t.classList.remove(i));const n=t[wl];n&&(n.delete(e),n.size||(t[wl]=void 0))}function wb(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let RR=0;function xb(t,e,n,i){const s=t._endId=++RR,r=()=>{s===t._endId&&i()};if(n!=null)return setTimeout(r,n);const{type:o,timeout:a,propCount:l}=nC(t,e);if(!o)return i();const c=o+"end";let u=0;const d=()=>{t.removeEventListener(c,h),r()},h=g=>{g.target===t&&++u>=l&&d()};setTimeout(()=>{u(n[p]||"").split(", "),s=i(`${Tr}Delay`),r=i(`${Tr}Duration`),o=Eb(s,r),a=i(`${oc}Delay`),l=i(`${oc}Duration`),c=Eb(a,l);let u=null,d=0,h=0;e===Tr?o>0&&(u=Tr,d=o,h=r.length):e===oc?c>0&&(u=oc,d=c,h=l.length):(d=Math.max(o,c),u=d>0?o>c?Tr:oc:null,h=u?u===Tr?r.length:l.length:0);const g=u===Tr&&/\b(transform|all)(,|$)/.test(i(`${Tr}Property`).toString());return{type:u,timeout:d,propCount:h,hasTransform:g}}function Eb(t,e){for(;t.lengthCb(n)+Cb(t[i])))}function Cb(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function iC(){return document.body.offsetHeight}function $R(t,e,n){const i=t[wl];i&&(e=(e?[e,...i]:[...i]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const xh=Symbol("_vod"),sC=Symbol("_vsh"),ah={beforeMount(t,{value:e},{transition:n}){t[xh]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):ac(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:i}){!e!=!n&&(i?e?(i.beforeEnter(t),ac(t,!0),i.enter(t)):i.leave(t,()=>{ac(t,!1)}):ac(t,e))},beforeUnmount(t,{value:e}){ac(t,e)}};function ac(t,e){t.style.display=e?t[xh]:"none",t[sC]=!e}const rC=Symbol("");function oC(t){const e=Bu();if(!e)return;const n=e.ut=(s=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(r=>Eh(r,s))},i=()=>{const s=t(e.proxy);e.ce?Eh(e.ce,s):Xp(e.subTree,s),n(s)};bE(()=>{sR(i)}),Vt(()=>{const s=new MutationObserver(i);s.observe(e.subTree.el.parentNode,{childList:!0}),_o(()=>s.disconnect())})}function Xp(t,e){if(t.shapeFlag&128){const n=t.suspense;t=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Xp(n.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)Eh(t.el,e);else if(t.type===De)t.children.forEach(n=>Xp(n,e));else if(t.type===rh){let{el:n,anchor:i}=t;for(;n&&(Eh(n,e),n!==i);)n=n.nextSibling}}function Eh(t,e){if(t.nodeType===1){const n=t.style;let i="";for(const s in e)n.setProperty(`--${s}`,e[s]),i+=`--${s}: ${e[s]};`;n[rC]=i}}const LR=/(^|;)\s*display\s*:/;function OR(t,e,n){const i=t.style,s=jt(n);let r=!1;if(n&&!s){if(e)if(jt(e))for(const o of e.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&lh(i,a,"")}else for(const o in e)n[o]==null&&lh(i,o,"");for(const o in n)o==="display"&&(r=!0),lh(i,o,n[o])}else if(s){if(e!==n){const o=i[rC];o&&(n+=";"+o),i.cssText=n,r=LR.test(n)}}else e&&t.removeAttribute("style");xh in t&&(t[xh]=r?i.display:"",t[sC]&&(i.display="none"))}const Sb=/\s*!important$/;function lh(t,e,n){if(Ke(n))n.forEach(i=>lh(t,e,i));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const i=NR(t,e);Sb.test(n)?t.setProperty(go(i),n.replace(Sb,""),"important"):t[i]=n}}const kb=["Webkit","Moz","ms"],Ag={};function NR(t,e){const n=Ag[e];if(n)return n;let i=Ui(e);if(i!=="filter"&&i in t)return Ag[e]=i;i=of(i);for(let s=0;sPg||(zR.then(()=>Pg=0),Pg=Date.now());function YR(t,e){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;fs(HR(i,n.value),e,5,[i])};return n.value=t,n.attached=WR(),n}function HR(t,e){if(Ke(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(i=>s=>!s._stopped&&i&&i(s))}else return e}const Db=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,jR=(t,e,n,i,s,r)=>{const o=s==="svg";e==="class"?$R(t,i,o):e==="style"?OR(t,n,i):sf(e)?n_(e)||BR(t,e,n,i,r):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):KR(t,e,i,o))?(Pb(t,e,i),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Ab(t,e,i,o,r,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!jt(i))?Pb(t,Ui(e),i):(e==="true-value"?t._trueValue=i:e==="false-value"&&(t._falseValue=i),Ab(t,e,i,o))};function KR(t,e,n,i){if(i)return!!(e==="innerHTML"||e==="textContent"||e in t&&Db(e)&&Ze(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const s=t.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Db(e)&&jt(n)?!1:e in t}const aC=new WeakMap,lC=new WeakMap,Ch=Symbol("_moveCb"),Rb=Symbol("_enterCb"),UR=t=>(delete t.props.mode,t),GR=UR({name:"TransitionGroup",props:vn({},eC,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=Bu(),i=fE();let s,r;return xE(()=>{if(!s.length)return;const o=t.moveClass||`${t.name||"v"}-move`;if(!JR(s[0].el,n.vnode.el,o))return;s.forEach(XR),s.forEach(qR);const a=s.filter(ZR);iC(),a.forEach(l=>{const c=l.el,u=c.style;qs(c,o),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[Ch]=h=>{h&&h.target!==c||(!h||/transform$/.test(h.propertyName))&&(c.removeEventListener("transitionend",d),c[Ch]=null,Or(c,o))};c.addEventListener("transitionend",d)})}),()=>{const o=lt(t),a=tC(o);let l=o.tag||De;if(s=[],r)for(let c=0;c{a.split(/\s+/).forEach(l=>l&&i.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&i.classList.add(a)),i.style.display="none";const r=e.nodeType===1?e:e.parentNode;r.appendChild(i);const{hasTransform:o}=nC(i);return r.removeChild(i),o}const oo=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Ke(e)?n=>nh(e,n):e};function QR(t){t.target.composing=!0}function $b(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Ki=Symbol("_assign"),ze={created(t,{modifiers:{lazy:e,trim:n,number:i}},s){t[Ki]=oo(s);const r=i||s.props&&s.props.type==="number";or(t,e?"change":"input",o=>{if(o.target.composing)return;let a=t.value;n&&(a=a.trim()),r&&(a=ph(a)),t[Ki](a)}),n&&or(t,"change",()=>{t.value=t.value.trim()}),e||(or(t,"compositionstart",QR),or(t,"compositionend",$b),or(t,"change",$b))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:n,modifiers:{lazy:i,trim:s,number:r}},o){if(t[Ki]=oo(o),t.composing)return;const a=(r||t.type==="number")&&!/^0\d/.test(t.value)?ph(t.value):t.value,l=e??"";a!==l&&(document.activeElement===t&&t.type!=="range"&&(i&&e===n||s&&t.value.trim()===l)||(t.value=l))}},Gn={deep:!0,created(t,e,n){t[Ki]=oo(n),or(t,"change",()=>{const i=t._modelValue,s=xl(t),r=t.checked,o=t[Ki];if(Ke(i)){const a=r_(i,s),l=a!==-1;if(r&&!l)o(i.concat(s));else if(!r&&l){const c=[...i];c.splice(a,1),o(c)}}else if(Ul(i)){const a=new Set(i);r?a.add(s):a.delete(s),o(a)}else o(cC(t,r))})},mounted:Lb,beforeUpdate(t,e,n){t[Ki]=oo(n),Lb(t,e,n)}};function Lb(t,{value:e},n){t._modelValue=e;let i;Ke(e)?i=r_(e,n.props.value)>-1:Ul(e)?i=e.has(n.props.value):i=ca(e,cC(t,!0)),t.checked!==i&&(t.checked=i)}const e$={created(t,{value:e},n){t.checked=ca(e,n.props.value),t[Ki]=oo(n),or(t,"change",()=>{t[Ki](xl(t))})},beforeUpdate(t,{value:e,oldValue:n},i){t[Ki]=oo(i),e!==n&&(t.checked=ca(e,i.props.value))}},ch={deep:!0,created(t,{value:e,modifiers:{number:n}},i){const s=Ul(e);or(t,"change",()=>{const r=Array.prototype.filter.call(t.options,o=>o.selected).map(o=>n?ph(xl(o)):xl(o));t[Ki](t.multiple?s?new Set(r):r:r[0]),t._assigning=!0,Rn(()=>{t._assigning=!1})}),t[Ki]=oo(i)},mounted(t,{value:e}){Ob(t,e)},beforeUpdate(t,e,n){t[Ki]=oo(n)},updated(t,{value:e}){t._assigning||Ob(t,e)}};function Ob(t,e){const n=t.multiple,i=Ke(e);if(!(n&&!i&&!Ul(e))){for(let s=0,r=t.options.length;sString(c)===String(a)):o.selected=r_(e,a)>-1}else o.selected=e.has(a);else if(ca(xl(o),e)){t.selectedIndex!==s&&(t.selectedIndex=s);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function xl(t){return"_value"in t?t._value:t.value}function cC(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const uC={created(t,e,n){Cd(t,e,n,null,"created")},mounted(t,e,n){Cd(t,e,n,null,"mounted")},beforeUpdate(t,e,n,i){Cd(t,e,n,i,"beforeUpdate")},updated(t,e,n,i){Cd(t,e,n,i,"updated")}};function t$(t,e){switch(t){case"SELECT":return ch;case"TEXTAREA":return ze;default:switch(e){case"checkbox":return Gn;case"radio":return e$;default:return ze}}}function Cd(t,e,n,i,s){const o=t$(t.tagName,n.props&&n.props.type)[s];o&&o(t,e,n,i)}const n$=["ctrl","shift","alt","meta"],i$={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>n$.some(n=>t[`${n}Key`]&&!e.includes(n))},ru=(t,e)=>{const n=t._withMods||(t._withMods={}),i=e.join(".");return n[i]||(n[i]=(s,...r)=>{for(let o=0;o{const n=t._withKeys||(t._withKeys={}),i=e.join(".");return n[i]||(n[i]=s=>{if(!("key"in s))return;const r=go(s.key);if(e.some(o=>o===r||s$[o]===r))return t(s)})},r$=vn({patchProp:jR},MR);let Nb;function hC(){return Nb||(Nb=JD(r$))}const Fb=(...t)=>{hC().render(...t)},o$=(...t)=>{const e=hC().createApp(...t),{mount:n}=e;return e.mount=i=>{const s=l$(i);if(!s)return;const r=e._component;!Ze(r)&&!r.render&&!r.template&&(r.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,a$(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},e};function a$(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function l$(t){return jt(t)?document.querySelector(t):t}var c$=!1;/*! +**/let Gp;const vb=typeof window<"u"&&window.trustedTypes;if(vb)try{Gp=vb.createPolicy("vue",{createHTML:t=>t})}catch{}const JE=Gp?t=>Gp.createHTML(t):t=>t,AR="http://www.w3.org/2000/svg",PR="http://www.w3.org/1998/Math/MathML",tr=typeof document<"u"?document:null,yb=tr&&tr.createElement("template"),MR={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,i)=>{const s=e==="svg"?tr.createElementNS(AR,t):e==="mathml"?tr.createElementNS(PR,t):n?tr.createElement(t,{is:n}):tr.createElement(t);return t==="select"&&i&&i.multiple!=null&&s.setAttribute("multiple",i.multiple),s},createText:t=>tr.createTextNode(t),createComment:t=>tr.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>tr.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,i,s,r){const o=n?n.previousSibling:e.lastChild;if(s&&(s===r||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),n),!(s===r||!(s=s.nextSibling)););else{yb.innerHTML=JE(i==="svg"?`${t}`:i==="mathml"?`${t}`:t);const a=yb.content;if(i==="svg"||i==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},Tr="transition",oc="animation",wl=Symbol("_vtc"),QE={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},eC=vn({},gE,QE),IR=t=>(t.displayName="Transition",t.props=eC,t),xt=IR((t,{slots:e})=>ha(AD,tC(t),e)),Lo=(t,e=[])=>{Ke(t)?t.forEach(n=>n(...e)):t&&t(...e)},bb=t=>t?Ke(t)?t.some(e=>e.length>1):t.length>1:!1;function tC(t){const e={};for(const Y in t)Y in QE||(e[Y]=t[Y]);if(t.css===!1)return e;const{name:n="v",type:i,duration:s,enterFromClass:r=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=r,appearActiveClass:c=o,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=t,p=DR(s),m=p&&p[0],v=p&&p[1],{onBeforeEnter:y,onEnter:x,onEnterCancelled:E,onLeave:w,onLeaveCancelled:b,onBeforeAppear:C=y,onAppear:k=x,onAppearCancelled:T=E}=e,A=(Y,ne,N)=>{Or(Y,ne?u:a),Or(Y,ne?c:o),N&&N()},I=(Y,ne)=>{Y._isLeaving=!1,Or(Y,d),Or(Y,g),Or(Y,f),ne&&ne()},V=Y=>(ne,N)=>{const B=Y?k:x,R=()=>A(ne,Y,N);Lo(B,[ne,R]),wb(()=>{Or(ne,Y?l:r),qs(ne,Y?u:a),bb(B)||xb(ne,i,m,R)})};return vn(e,{onBeforeEnter(Y){Lo(y,[Y]),qs(Y,r),qs(Y,o)},onBeforeAppear(Y){Lo(C,[Y]),qs(Y,l),qs(Y,c)},onEnter:V(!1),onAppear:V(!0),onLeave(Y,ne){Y._isLeaving=!0;const N=()=>I(Y,ne);qs(Y,d),qs(Y,f),iC(),wb(()=>{Y._isLeaving&&(Or(Y,d),qs(Y,g),bb(w)||xb(Y,i,v,N))}),Lo(w,[Y,N])},onEnterCancelled(Y){A(Y,!1),Lo(E,[Y])},onAppearCancelled(Y){A(Y,!0),Lo(T,[Y])},onLeaveCancelled(Y){I(Y),Lo(b,[Y])}})}function DR(t){if(t==null)return null;if(It(t))return[Tg(t.enter),Tg(t.leave)];{const e=Tg(t);return[e,e]}}function Tg(t){return Rx(t)}function qs(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[wl]||(t[wl]=new Set)).add(e)}function Or(t,e){e.split(/\s+/).forEach(i=>i&&t.classList.remove(i));const n=t[wl];n&&(n.delete(e),n.size||(t[wl]=void 0))}function wb(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let RR=0;function xb(t,e,n,i){const s=t._endId=++RR,r=()=>{s===t._endId&&i()};if(n!=null)return setTimeout(r,n);const{type:o,timeout:a,propCount:l}=nC(t,e);if(!o)return i();const c=o+"end";let u=0;const d=()=>{t.removeEventListener(c,f),r()},f=g=>{g.target===t&&++u>=l&&d()};setTimeout(()=>{u(n[p]||"").split(", "),s=i(`${Tr}Delay`),r=i(`${Tr}Duration`),o=Eb(s,r),a=i(`${oc}Delay`),l=i(`${oc}Duration`),c=Eb(a,l);let u=null,d=0,f=0;e===Tr?o>0&&(u=Tr,d=o,f=r.length):e===oc?c>0&&(u=oc,d=c,f=l.length):(d=Math.max(o,c),u=d>0?o>c?Tr:oc:null,f=u?u===Tr?r.length:l.length:0);const g=u===Tr&&/\b(transform|all)(,|$)/.test(i(`${Tr}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:g}}function Eb(t,e){for(;t.lengthCb(n)+Cb(t[i])))}function Cb(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function iC(){return document.body.offsetHeight}function $R(t,e,n){const i=t[wl];i&&(e=(e?[e,...i]:[...i]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const xh=Symbol("_vod"),sC=Symbol("_vsh"),ah={beforeMount(t,{value:e},{transition:n}){t[xh]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):ac(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:i}){!e!=!n&&(i?e?(i.beforeEnter(t),ac(t,!0),i.enter(t)):i.leave(t,()=>{ac(t,!1)}):ac(t,e))},beforeUnmount(t,{value:e}){ac(t,e)}};function ac(t,e){t.style.display=e?t[xh]:"none",t[sC]=!e}const rC=Symbol("");function oC(t){const e=Bu();if(!e)return;const n=e.ut=(s=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(r=>Eh(r,s))},i=()=>{const s=t(e.proxy);e.ce?Eh(e.ce,s):Xp(e.subTree,s),n(s)};bE(()=>{sR(i)}),Vt(()=>{const s=new MutationObserver(i);s.observe(e.subTree.el.parentNode,{childList:!0}),_o(()=>s.disconnect())})}function Xp(t,e){if(t.shapeFlag&128){const n=t.suspense;t=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Xp(n.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)Eh(t.el,e);else if(t.type===Ie)t.children.forEach(n=>Xp(n,e));else if(t.type===rh){let{el:n,anchor:i}=t;for(;n&&(Eh(n,e),n!==i);)n=n.nextSibling}}function Eh(t,e){if(t.nodeType===1){const n=t.style;let i="";for(const s in e)n.setProperty(`--${s}`,e[s]),i+=`--${s}: ${e[s]};`;n[rC]=i}}const LR=/(^|;)\s*display\s*:/;function OR(t,e,n){const i=t.style,s=jt(n);let r=!1;if(n&&!s){if(e)if(jt(e))for(const o of e.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&lh(i,a,"")}else for(const o in e)n[o]==null&&lh(i,o,"");for(const o in n)o==="display"&&(r=!0),lh(i,o,n[o])}else if(s){if(e!==n){const o=i[rC];o&&(n+=";"+o),i.cssText=n,r=LR.test(n)}}else e&&t.removeAttribute("style");xh in t&&(t[xh]=r?i.display:"",t[sC]&&(i.display="none"))}const Sb=/\s*!important$/;function lh(t,e,n){if(Ke(n))n.forEach(i=>lh(t,e,i));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const i=NR(t,e);Sb.test(n)?t.setProperty(go(i),n.replace(Sb,""),"important"):t[i]=n}}const kb=["Webkit","Moz","ms"],Ag={};function NR(t,e){const n=Ag[e];if(n)return n;let i=Ui(e);if(i!=="filter"&&i in t)return Ag[e]=i;i=of(i);for(let s=0;sPg||(zR.then(()=>Pg=0),Pg=Date.now());function YR(t,e){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;fs(HR(i,n.value),e,5,[i])};return n.value=t,n.attached=WR(),n}function HR(t,e){if(Ke(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(i=>s=>!s._stopped&&i&&i(s))}else return e}const Db=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,jR=(t,e,n,i,s,r)=>{const o=s==="svg";e==="class"?$R(t,i,o):e==="style"?OR(t,n,i):sf(e)?n_(e)||BR(t,e,n,i,r):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):KR(t,e,i,o))?(Pb(t,e,i),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Ab(t,e,i,o,r,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!jt(i))?Pb(t,Ui(e),i):(e==="true-value"?t._trueValue=i:e==="false-value"&&(t._falseValue=i),Ab(t,e,i,o))};function KR(t,e,n,i){if(i)return!!(e==="innerHTML"||e==="textContent"||e in t&&Db(e)&&Je(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const s=t.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Db(e)&&jt(n)?!1:e in t}const aC=new WeakMap,lC=new WeakMap,Ch=Symbol("_moveCb"),Rb=Symbol("_enterCb"),UR=t=>(delete t.props.mode,t),GR=UR({name:"TransitionGroup",props:vn({},eC,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=Bu(),i=fE();let s,r;return xE(()=>{if(!s.length)return;const o=t.moveClass||`${t.name||"v"}-move`;if(!JR(s[0].el,n.vnode.el,o))return;s.forEach(XR),s.forEach(qR);const a=s.filter(ZR);iC(),a.forEach(l=>{const c=l.el,u=c.style;qs(c,o),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[Ch]=f=>{f&&f.target!==c||(!f||/transform$/.test(f.propertyName))&&(c.removeEventListener("transitionend",d),c[Ch]=null,Or(c,o))};c.addEventListener("transitionend",d)})}),()=>{const o=lt(t),a=tC(o);let l=o.tag||Ie;if(s=[],r)for(let c=0;c{a.split(/\s+/).forEach(l=>l&&i.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&i.classList.add(a)),i.style.display="none";const r=e.nodeType===1?e:e.parentNode;r.appendChild(i);const{hasTransform:o}=nC(i);return r.removeChild(i),o}const oo=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Ke(e)?n=>nh(e,n):e};function QR(t){t.target.composing=!0}function $b(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Ki=Symbol("_assign"),ze={created(t,{modifiers:{lazy:e,trim:n,number:i}},s){t[Ki]=oo(s);const r=i||s.props&&s.props.type==="number";or(t,e?"change":"input",o=>{if(o.target.composing)return;let a=t.value;n&&(a=a.trim()),r&&(a=ph(a)),t[Ki](a)}),n&&or(t,"change",()=>{t.value=t.value.trim()}),e||(or(t,"compositionstart",QR),or(t,"compositionend",$b),or(t,"change",$b))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:n,modifiers:{lazy:i,trim:s,number:r}},o){if(t[Ki]=oo(o),t.composing)return;const a=(r||t.type==="number")&&!/^0\d/.test(t.value)?ph(t.value):t.value,l=e??"";a!==l&&(document.activeElement===t&&t.type!=="range"&&(i&&e===n||s&&t.value.trim()===l)||(t.value=l))}},Gn={deep:!0,created(t,e,n){t[Ki]=oo(n),or(t,"change",()=>{const i=t._modelValue,s=xl(t),r=t.checked,o=t[Ki];if(Ke(i)){const a=r_(i,s),l=a!==-1;if(r&&!l)o(i.concat(s));else if(!r&&l){const c=[...i];c.splice(a,1),o(c)}}else if(Ul(i)){const a=new Set(i);r?a.add(s):a.delete(s),o(a)}else o(cC(t,r))})},mounted:Lb,beforeUpdate(t,e,n){t[Ki]=oo(n),Lb(t,e,n)}};function Lb(t,{value:e},n){t._modelValue=e;let i;Ke(e)?i=r_(e,n.props.value)>-1:Ul(e)?i=e.has(n.props.value):i=ca(e,cC(t,!0)),t.checked!==i&&(t.checked=i)}const e$={created(t,{value:e},n){t.checked=ca(e,n.props.value),t[Ki]=oo(n),or(t,"change",()=>{t[Ki](xl(t))})},beforeUpdate(t,{value:e,oldValue:n},i){t[Ki]=oo(i),e!==n&&(t.checked=ca(e,i.props.value))}},ch={deep:!0,created(t,{value:e,modifiers:{number:n}},i){const s=Ul(e);or(t,"change",()=>{const r=Array.prototype.filter.call(t.options,o=>o.selected).map(o=>n?ph(xl(o)):xl(o));t[Ki](t.multiple?s?new Set(r):r:r[0]),t._assigning=!0,Rn(()=>{t._assigning=!1})}),t[Ki]=oo(i)},mounted(t,{value:e}){Ob(t,e)},beforeUpdate(t,e,n){t[Ki]=oo(n)},updated(t,{value:e}){t._assigning||Ob(t,e)}};function Ob(t,e){const n=t.multiple,i=Ke(e);if(!(n&&!i&&!Ul(e))){for(let s=0,r=t.options.length;sString(c)===String(a)):o.selected=r_(e,a)>-1}else o.selected=e.has(a);else if(ca(xl(o),e)){t.selectedIndex!==s&&(t.selectedIndex=s);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function xl(t){return"_value"in t?t._value:t.value}function cC(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const uC={created(t,e,n){Cd(t,e,n,null,"created")},mounted(t,e,n){Cd(t,e,n,null,"mounted")},beforeUpdate(t,e,n,i){Cd(t,e,n,i,"beforeUpdate")},updated(t,e,n,i){Cd(t,e,n,i,"updated")}};function t$(t,e){switch(t){case"SELECT":return ch;case"TEXTAREA":return ze;default:switch(e){case"checkbox":return Gn;case"radio":return e$;default:return ze}}}function Cd(t,e,n,i,s){const o=t$(t.tagName,n.props&&n.props.type)[s];o&&o(t,e,n,i)}const n$=["ctrl","shift","alt","meta"],i$={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>n$.some(n=>t[`${n}Key`]&&!e.includes(n))},ru=(t,e)=>{const n=t._withMods||(t._withMods={}),i=e.join(".");return n[i]||(n[i]=(s,...r)=>{for(let o=0;o{const n=t._withKeys||(t._withKeys={}),i=e.join(".");return n[i]||(n[i]=s=>{if(!("key"in s))return;const r=go(s.key);if(e.some(o=>o===r||s$[o]===r))return t(s)})},r$=vn({patchProp:jR},MR);let Nb;function hC(){return Nb||(Nb=JD(r$))}const Fb=(...t)=>{hC().render(...t)},o$=(...t)=>{const e=hC().createApp(...t),{mount:n}=e;return e.mount=i=>{const s=l$(i);if(!s)return;const r=e._component;!Je(r)&&!r.render&&!r.template&&(r.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,a$(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},e};function a$(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function l$(t){return jt(t)?document.querySelector(t):t}var c$=!1;/*! * pinia v2.2.4 * (c) 2024 Eduardo San Martin Morote * @license MIT - */let fC;const vf=t=>fC=t,gC=Symbol();function qp(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var zc;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(zc||(zc={}));function u$(){const t=Bx(!0),e=t.run(()=>me({}));let n=[],i=[];const s=uf({install(r){vf(s),s._a=r,r.provide(gC,s),r.config.globalProperties.$pinia=s,i.forEach(o=>n.push(o)),i=[]},use(r){return!this._a&&!c$?i.push(r):n.push(r),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return s}const pC=()=>{};function Bb(t,e,n,i=pC){t.push(e);const s=()=>{const r=t.indexOf(e);r>-1&&(t.splice(r,1),i())};return!n&&af()&&o_(s),s}function Ra(t,...e){t.slice().forEach(n=>{n(...e)})}const d$=t=>t(),Vb=Symbol(),Mg=Symbol();function Zp(t,e){t instanceof Map&&e instanceof Map?e.forEach((n,i)=>t.set(i,n)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const i=e[n],s=t[n];qp(s)&&qp(i)&&t.hasOwnProperty(n)&&!Ht(i)&&!Qr(i)?t[n]=Zp(s,i):t[n]=i}return t}const h$=Symbol();function f$(t){return!qp(t)||!t.hasOwnProperty(h$)}const{assign:Nr}=Object;function g$(t){return!!(Ht(t)&&t.effect)}function p$(t,e,n,i){const{state:s,actions:r,getters:o}=e,a=n.state.value[t];let l;function c(){a||(n.state.value[t]=s?s():{});const u=gD(n.state.value[t]);return Nr(u,r,Object.keys(o||{}).reduce((d,h)=>(d[h]=uf(ye(()=>{vf(n);const g=n._s.get(t);return o[h].call(g,g)})),d),{}))}return l=mC(t,c,e,n,i,!0),l}function mC(t,e,n={},i,s,r){let o;const a=Nr({actions:{}},n),l={deep:!0};let c,u,d=[],h=[],g;const p=i.state.value[t];!r&&!p&&(i.state.value[t]={}),me({});let m;function v(T){let A;c=u=!1,typeof T=="function"?(T(i.state.value[t]),A={type:zc.patchFunction,storeId:t,events:g}):(Zp(i.state.value[t],T),A={type:zc.patchObject,payload:T,storeId:t,events:g});const I=m=Symbol();Rn().then(()=>{m===I&&(c=!0)}),u=!0,Ra(d,A,i.state.value[t])}const y=r?function(){const{state:A}=n,I=A?A():{};this.$patch(V=>{Nr(V,I)})}:pC;function x(){o.stop(),d=[],h=[],i._s.delete(t)}const E=(T,A="")=>{if(Vb in T)return T[Mg]=A,T;const I=function(){vf(i);const V=Array.from(arguments),Y=[],ne=[];function N(z){Y.push(z)}function B(z){ne.push(z)}Ra(h,{args:V,name:I[Mg],store:b,after:N,onError:B});let R;try{R=T.apply(this&&this.$id===t?this:b,V)}catch(z){throw Ra(ne,z),z}return R instanceof Promise?R.then(z=>(Ra(Y,z),z)).catch(z=>(Ra(ne,z),Promise.reject(z))):(Ra(Y,R),R)};return I[Vb]=!0,I[Mg]=A,I},w={_p:i,$id:t,$onAction:Bb.bind(null,h),$patch:v,$reset:y,$subscribe(T,A={}){const I=Bb(d,T,A.detached,()=>V()),V=o.run(()=>Zt(()=>i.state.value[t],Y=>{(A.flush==="sync"?u:c)&&T({storeId:t,type:zc.direct,events:g},Y)},Nr({},l,A)));return I},$dispose:x},b=Ei(w);i._s.set(t,b);const k=(i._a&&i._a.runWithContext||d$)(()=>i._e.run(()=>(o=Bx()).run(()=>e({action:E}))));for(const T in k){const A=k[T];if(Ht(A)&&!g$(A)||Qr(A))r||(p&&f$(A)&&(Ht(A)?A.value=p[T]:Zp(A,p[T])),i.state.value[t][T]=A);else if(typeof A=="function"){const I=E(A,T);k[T]=I,a.actions[T]=A}}return Nr(b,k),Nr(lt(b),k),Object.defineProperty(b,"$state",{get:()=>i.state.value[t],set:T=>{v(A=>{Nr(A,T)})}}),i._p.forEach(T=>{Nr(b,o.run(()=>T({store:b,app:i._a,pinia:i,options:a})))}),p&&r&&n.hydrate&&n.hydrate(b.$state,p),c=!0,u=!0,b}function _C(t,e,n){let i,s;const r=typeof e=="function";typeof t=="string"?(i=t,s=r?n:e):(s=t,i=t.id);function o(a,l){const c=jD();return a=a||(c?ji(gC,null):null),a&&vf(a),a=fC,a._s.has(i)||(r?mC(i,e,s,a):p$(i,s,a)),a._s.get(i)}return o.$id=i,o}/*! + */let fC;const vf=t=>fC=t,gC=Symbol();function qp(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var zc;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(zc||(zc={}));function u$(){const t=Bx(!0),e=t.run(()=>me({}));let n=[],i=[];const s=uf({install(r){vf(s),s._a=r,r.provide(gC,s),r.config.globalProperties.$pinia=s,i.forEach(o=>n.push(o)),i=[]},use(r){return!this._a&&!c$?i.push(r):n.push(r),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return s}const pC=()=>{};function Bb(t,e,n,i=pC){t.push(e);const s=()=>{const r=t.indexOf(e);r>-1&&(t.splice(r,1),i())};return!n&&af()&&o_(s),s}function Ra(t,...e){t.slice().forEach(n=>{n(...e)})}const d$=t=>t(),Vb=Symbol(),Mg=Symbol();function Zp(t,e){t instanceof Map&&e instanceof Map?e.forEach((n,i)=>t.set(i,n)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const i=e[n],s=t[n];qp(s)&&qp(i)&&t.hasOwnProperty(n)&&!Ht(i)&&!Qr(i)?t[n]=Zp(s,i):t[n]=i}return t}const h$=Symbol();function f$(t){return!qp(t)||!t.hasOwnProperty(h$)}const{assign:Nr}=Object;function g$(t){return!!(Ht(t)&&t.effect)}function p$(t,e,n,i){const{state:s,actions:r,getters:o}=e,a=n.state.value[t];let l;function c(){a||(n.state.value[t]=s?s():{});const u=gD(n.state.value[t]);return Nr(u,r,Object.keys(o||{}).reduce((d,f)=>(d[f]=uf(ve(()=>{vf(n);const g=n._s.get(t);return o[f].call(g,g)})),d),{}))}return l=mC(t,c,e,n,i,!0),l}function mC(t,e,n={},i,s,r){let o;const a=Nr({actions:{}},n),l={deep:!0};let c,u,d=[],f=[],g;const p=i.state.value[t];!r&&!p&&(i.state.value[t]={}),me({});let m;function v(T){let A;c=u=!1,typeof T=="function"?(T(i.state.value[t]),A={type:zc.patchFunction,storeId:t,events:g}):(Zp(i.state.value[t],T),A={type:zc.patchObject,payload:T,storeId:t,events:g});const I=m=Symbol();Rn().then(()=>{m===I&&(c=!0)}),u=!0,Ra(d,A,i.state.value[t])}const y=r?function(){const{state:A}=n,I=A?A():{};this.$patch(V=>{Nr(V,I)})}:pC;function x(){o.stop(),d=[],f=[],i._s.delete(t)}const E=(T,A="")=>{if(Vb in T)return T[Mg]=A,T;const I=function(){vf(i);const V=Array.from(arguments),Y=[],ne=[];function N(z){Y.push(z)}function B(z){ne.push(z)}Ra(f,{args:V,name:I[Mg],store:b,after:N,onError:B});let R;try{R=T.apply(this&&this.$id===t?this:b,V)}catch(z){throw Ra(ne,z),z}return R instanceof Promise?R.then(z=>(Ra(Y,z),z)).catch(z=>(Ra(ne,z),Promise.reject(z))):(Ra(Y,R),R)};return I[Vb]=!0,I[Mg]=A,I},w={_p:i,$id:t,$onAction:Bb.bind(null,f),$patch:v,$reset:y,$subscribe(T,A={}){const I=Bb(d,T,A.detached,()=>V()),V=o.run(()=>Zt(()=>i.state.value[t],Y=>{(A.flush==="sync"?u:c)&&T({storeId:t,type:zc.direct,events:g},Y)},Nr({},l,A)));return I},$dispose:x},b=Ei(w);i._s.set(t,b);const k=(i._a&&i._a.runWithContext||d$)(()=>i._e.run(()=>(o=Bx()).run(()=>e({action:E}))));for(const T in k){const A=k[T];if(Ht(A)&&!g$(A)||Qr(A))r||(p&&f$(A)&&(Ht(A)?A.value=p[T]:Zp(A,p[T])),i.state.value[t][T]=A);else if(typeof A=="function"){const I=E(A,T);k[T]=I,a.actions[T]=A}}return Nr(b,k),Nr(lt(b),k),Object.defineProperty(b,"$state",{get:()=>i.state.value[t],set:T=>{v(A=>{Nr(A,T)})}}),i._p.forEach(T=>{Nr(b,o.run(()=>T({store:b,app:i._a,pinia:i,options:a})))}),p&&r&&n.hydrate&&n.hydrate(b.$state,p),c=!0,u=!0,b}function _C(t,e,n){let i,s;const r=typeof e=="function";typeof t=="string"?(i=t,s=r?n:e):(s=t,i=t.id);function o(a,l){const c=jD();return a=a||(c?ji(gC,null):null),a&&vf(a),a=fC,a._s.has(i)||(r?mC(i,e,s,a):p$(i,s,a)),a._s.get(i)}return o.$id=i,o}/*! * vue-router v4.4.5 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const Xa=typeof document<"u";function vC(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function m$(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&vC(t.default)}const kt=Object.assign;function Ig(t,e){const n={};for(const i in e){const s=e[i];n[i]=gs(s)?s.map(t):t(s)}return n}const Wc=()=>{},gs=Array.isArray,yC=/#/g,_$=/&/g,v$=/\//g,y$=/=/g,b$=/\?/g,bC=/\+/g,w$=/%5B/g,x$=/%5D/g,wC=/%5E/g,E$=/%60/g,xC=/%7B/g,C$=/%7C/g,EC=/%7D/g,S$=/%20/g;function C_(t){return encodeURI(""+t).replace(C$,"|").replace(w$,"[").replace(x$,"]")}function k$(t){return C_(t).replace(xC,"{").replace(EC,"}").replace(wC,"^")}function Jp(t){return C_(t).replace(bC,"%2B").replace(S$,"+").replace(yC,"%23").replace(_$,"%26").replace(E$,"`").replace(xC,"{").replace(EC,"}").replace(wC,"^")}function T$(t){return Jp(t).replace(y$,"%3D")}function A$(t){return C_(t).replace(yC,"%23").replace(b$,"%3F")}function P$(t){return t==null?"":A$(t).replace(v$,"%2F")}function ou(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const M$=/\/$/,I$=t=>t.replace(M$,"");function Dg(t,e,n="/"){let i,s={},r="",o="";const a=e.indexOf("#");let l=e.indexOf("?");return a=0&&(l=-1),l>-1&&(i=e.slice(0,l),r=e.slice(l+1,a>-1?a:e.length),s=t(r)),a>-1&&(i=i||e.slice(0,a),o=e.slice(a,e.length)),i=L$(i??e,n),{fullPath:i+(r&&"?")+r+o,path:i,query:s,hash:ou(o)}}function D$(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function zb(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function R$(t,e,n){const i=e.matched.length-1,s=n.matched.length-1;return i>-1&&i===s&&El(e.matched[i],n.matched[s])&&CC(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function El(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function CC(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!$$(t[n],e[n]))return!1;return!0}function $$(t,e){return gs(t)?Wb(t,e):gs(e)?Wb(e,t):t===e}function Wb(t,e){return gs(e)?t.length===e.length&&t.every((n,i)=>n===e[i]):t.length===1&&t[0]===e}function L$(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),i=t.split("/"),s=i[i.length-1];(s===".."||s===".")&&i.push("");let r=n.length-1,o,a;for(o=0;o1&&r--;else break;return n.slice(0,r).join("/")+"/"+i.slice(o).join("/")}const Ar={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var au;(function(t){t.pop="pop",t.push="push"})(au||(au={}));var Yc;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Yc||(Yc={}));function O$(t){if(!t)if(Xa){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),I$(t)}const N$=/^[^#]+#/;function F$(t,e){return t.replace(N$,"#")+e}function B$(t,e){const n=document.documentElement.getBoundingClientRect(),i=t.getBoundingClientRect();return{behavior:e.behavior,left:i.left-n.left-(e.left||0),top:i.top-n.top-(e.top||0)}}const yf=()=>({left:window.scrollX,top:window.scrollY});function V$(t){let e;if("el"in t){const n=t.el,i=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;e=B$(s,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function Yb(t,e){return(history.state?history.state.position-e:-1)+t}const Qp=new Map;function z$(t,e){Qp.set(t,e)}function W$(t){const e=Qp.get(t);return Qp.delete(t),e}let Y$=()=>location.protocol+"//"+location.host;function SC(t,e){const{pathname:n,search:i,hash:s}=e,r=t.indexOf("#");if(r>-1){let a=s.includes(t.slice(r))?t.slice(r).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),zb(l,"")}return zb(n,t)+i+s}function H$(t,e,n,i){let s=[],r=[],o=null;const a=({state:h})=>{const g=SC(t,location),p=n.value,m=e.value;let v=0;if(h){if(n.value=g,e.value=h,o&&o===p){o=null;return}v=m?h.position-m.position:0}else i(g);s.forEach(y=>{y(n.value,p,{delta:v,type:au.pop,direction:v?v>0?Yc.forward:Yc.back:Yc.unknown})})};function l(){o=n.value}function c(h){s.push(h);const g=()=>{const p=s.indexOf(h);p>-1&&s.splice(p,1)};return r.push(g),g}function u(){const{history:h}=window;h.state&&h.replaceState(kt({},h.state,{scroll:yf()}),"")}function d(){for(const h of r)h();r=[],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 Hb(t,e,n,i=!1,s=!1){return{back:t,current:e,forward:n,replaced:i,position:window.history.length,scroll:s?yf():null}}function j$(t){const{history:e,location:n}=window,i={value:SC(t,n)},s={value:e.state};s.value||r(i.value,{back:null,current:i.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function r(l,c,u){const d=t.indexOf("#"),h=d>-1?(n.host&&document.querySelector("base")?t:t.slice(d))+l:Y$()+t+l;try{e[u?"replaceState":"pushState"](c,"",h),s.value=c}catch(g){console.error(g),n[u?"replace":"assign"](h)}}function o(l,c){const u=kt({},e.state,Hb(s.value.back,l,s.value.forward,!0),c,{position:s.value.position});r(l,u,!0),i.value=l}function a(l,c){const u=kt({},s.value,e.state,{forward:l,scroll:yf()});r(u.current,u,!0);const d=kt({},Hb(i.value,l,null),{position:u.position+1},c);r(l,d,!1),i.value=l}return{location:i,state:s,push:a,replace:o}}function K$(t){t=O$(t);const e=j$(t),n=H$(t,e.state,e.location,e.replace);function i(r,o=!0){o||n.pauseListeners(),history.go(r)}const s=kt({location:"",base:t,go:i,createHref:F$.bind(null,t)},e,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>e.state.value}),s}function U$(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),K$(t)}function G$(t){return typeof t=="string"||t&&typeof t=="object"}function kC(t){return typeof t=="string"||typeof t=="symbol"}const TC=Symbol("");var jb;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(jb||(jb={}));function Cl(t,e){return kt(new Error,{type:t,[TC]:!0},e)}function Ks(t,e){return t instanceof Error&&TC in t&&(e==null||!!(t.type&e))}const Kb="[^/]+?",X$={sensitive:!1,strict:!1,start:!0,end:!0},q$=/[.+*?^${}()[\]/\\]/g;function Z$(t,e){const n=kt({},X$,e),i=[];let s=n.start?"^":"";const r=[];for(const c of t){const u=c.length?[]:[90];n.strict&&!c.length&&(s+="/");for(let d=0;de.length?e.length===1&&e[0]===80?1:-1:0}function AC(t,e){let n=0;const i=t.score,s=e.score;for(;n0&&e[e.length-1]<0}const Q$={type:0,value:""},eL=/[a-zA-Z0-9_]/;function tL(t){if(!t)return[[]];if(t==="/")return[[Q$]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(g){throw new Error(`ERR (${n})/"${c}": ${g}`)}let n=0,i=n;const s=[];let r;function o(){r&&s.push(r),r=[]}let a=0,l,c="",u="";function d(){c&&(n===0?r.push({type:0,value:c}):n===1||n===2||n===3?(r.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;a{o(E)}:Wc}function o(d){if(kC(d)){const h=i.get(d);h&&(i.delete(d),n.splice(n.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=n.indexOf(d);h>-1&&(n.splice(h,1),d.record.name&&i.delete(d.record.name),d.children.forEach(o),d.alias.forEach(o))}}function a(){return n}function l(d){const h=oL(d,n);n.splice(h,0,d),d.record.name&&!qb(d)&&i.set(d.record.name,d)}function c(d,h){let g,p={},m,v;if("name"in d&&d.name){if(g=i.get(d.name),!g)throw Cl(1,{location:d});v=g.record.name,p=kt(Gb(h.params,g.keys.filter(E=>!E.optional).concat(g.parent?g.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),d.params&&Gb(d.params,g.keys.map(E=>E.name))),m=g.stringify(p)}else if(d.path!=null)m=d.path,g=n.find(E=>E.re.test(m)),g&&(p=g.parse(m),v=g.record.name);else{if(g=h.name?i.get(h.name):n.find(E=>E.re.test(h.path)),!g)throw Cl(1,{location:d,currentLocation:h});v=g.record.name,p=kt({},h.params,d.params),m=g.stringify(p)}const y=[];let x=g;for(;x;)y.unshift(x.record),x=x.parent;return{name:v,path:m,params:p,matched:y,meta:rL(y)}}t.forEach(d=>r(d));function u(){n.length=0,i.clear()}return{addRoute:r,resolve:c,removeRoute:o,clearRoutes:u,getRoutes:a,getRecordMatcher:s}}function Gb(t,e){const n={};for(const i of e)i in t&&(n[i]=t[i]);return n}function Xb(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:sL(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function sL(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const i in t.components)e[i]=typeof n=="object"?n[i]:n;return e}function qb(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function rL(t){return t.reduce((e,n)=>kt(e,n.meta),{})}function Zb(t,e){const n={};for(const i in t)n[i]=i in e?e[i]:t[i];return n}function oL(t,e){let n=0,i=e.length;for(;n!==i;){const r=n+i>>1;AC(t,e[r])<0?i=r:n=r+1}const s=aL(t);return s&&(i=e.lastIndexOf(s,i-1)),i}function aL(t){let e=t;for(;e=e.parent;)if(PC(e)&&AC(t,e)===0)return e}function PC({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function lL(t){const e={};if(t===""||t==="?")return e;const i=(t[0]==="?"?t.slice(1):t).split("&");for(let s=0;sr&&Jp(r)):[i&&Jp(i)]).forEach(r=>{r!==void 0&&(e+=(e.length?"&":"")+n,r!=null&&(e+="="+r))})}return e}function cL(t){const e={};for(const n in t){const i=t[n];i!==void 0&&(e[n]=gs(i)?i.map(s=>s==null?null:""+s):i==null?i:""+i)}return e}const uL=Symbol(""),Qb=Symbol(""),bf=Symbol(""),S_=Symbol(""),em=Symbol("");function lc(){let t=[];function e(i){return t.push(i),()=>{const s=t.indexOf(i);s>-1&&t.splice(s,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function Yr(t,e,n,i,s,r=o=>o()){const o=i&&(i.enterCallbacks[s]=i.enterCallbacks[s]||[]);return()=>new Promise((a,l)=>{const c=h=>{h===!1?l(Cl(4,{from:n,to:e})):h instanceof Error?l(h):G$(h)?l(Cl(2,{from:e,to:h})):(o&&i.enterCallbacks[s]===o&&typeof h=="function"&&o.push(h),a())},u=r(()=>t.call(i&&i.instances[s],e,n,c));let d=Promise.resolve(u);t.length<3&&(d=d.then(c)),d.catch(h=>l(h))})}function Rg(t,e,n,i,s=r=>r()){const r=[];for(const o of t)for(const a in o.components){let l=o.components[a];if(!(e!=="beforeRouteEnter"&&!o.instances[a]))if(vC(l)){const u=(l.__vccOpts||l)[e];u&&r.push(Yr(u,n,i,o,a,s))}else{let c=l();r.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const d=m$(u)?u.default:u;o.mods[a]=u,o.components[a]=d;const g=(d.__vccOpts||d)[e];return g&&Yr(g,n,i,o,a,s)()}))}}return r}function e0(t){const e=ji(bf),n=ji(S_),i=ye(()=>{const l=Z(t.to);return e.resolve(l)}),s=ye(()=>{const{matched:l}=i.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const h=d.findIndex(El.bind(null,u));if(h>-1)return h;const g=t0(l[c-2]);return c>1&&t0(u)===g&&d[d.length-1].path!==g?d.findIndex(El.bind(null,l[c-2])):h}),r=ye(()=>s.value>-1&&gL(n.params,i.value.params)),o=ye(()=>s.value>-1&&s.value===n.matched.length-1&&CC(n.params,i.value.params));function a(l={}){return fL(l)?e[Z(t.replace)?"replace":"push"](Z(t.to)).catch(Wc):Promise.resolve()}return{route:i,href:ye(()=>i.value.href),isActive:r,isExactActive:o,navigate:a}}const dL=fn({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:e0,setup(t,{slots:e}){const n=Ei(e0(t)),{options:i}=ji(bf),s=ye(()=>({[n0(t.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[n0(t.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=e.default&&e.default(n);return t.custom?r:ha("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},r)}}}),hL=dL;function fL(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function gL(t,e){for(const n in e){const i=e[n],s=t[n];if(typeof i=="string"){if(i!==s)return!1}else if(!gs(s)||s.length!==i.length||i.some((r,o)=>r!==s[o]))return!1}return!0}function t0(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const n0=(t,e,n)=>t??e??n,pL=fn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const i=ji(em),s=ye(()=>t.route||i.value),r=ji(Qb,0),o=ye(()=>{let c=Z(r);const{matched:u}=s.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=ye(()=>s.value.matched[o.value]);sh(Qb,ye(()=>o.value+1)),sh(uL,a),sh(em,s);const l=me();return Zt(()=>[l.value,a.value,t.name],([c,u,d],[h,g,p])=>{u&&(u.instances[d]=c,g&&g!==u&&c&&c===h&&(u.leaveGuards.size||(u.leaveGuards=g.leaveGuards),u.updateGuards.size||(u.updateGuards=g.updateGuards))),c&&u&&(!g||!El(u,g)||!h)&&(u.enterCallbacks[d]||[]).forEach(m=>m(c))},{flush:"post"}),()=>{const c=s.value,u=t.name,d=a.value,h=d&&d.components[u];if(!h)return i0(n.default,{Component:h,route:c});const g=d.props[u],p=g?g===!0?c.params:typeof g=="function"?g(c):g:null,v=ha(h,kt({},p,e,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return i0(n.default,{Component:v,route:c})||v}}});function i0(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const MC=pL;function mL(t){const e=iL(t.routes,t),n=t.parseQuery||lL,i=t.stringifyQuery||Jb,s=t.history,r=lc(),o=lc(),a=lc(),l=df(Ar);let c=Ar;Xa&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Ig.bind(null,$=>""+$),d=Ig.bind(null,P$),h=Ig.bind(null,ou);function g($,le){let de,xe;return kC($)?(de=e.getRecordMatcher($),xe=le):xe=$,e.addRoute(xe,de)}function p($){const le=e.getRecordMatcher($);le&&e.removeRoute(le)}function m(){return e.getRoutes().map($=>$.record)}function v($){return!!e.getRecordMatcher($)}function y($,le){if(le=kt({},le||l.value),typeof $=="string"){const O=Dg(n,$,le.path),K=e.resolve({path:O.path},le),U=s.createHref(O.fullPath);return kt(O,K,{params:h(K.params),hash:ou(O.hash),redirectedFrom:void 0,href:U})}let de;if($.path!=null)de=kt({},$,{path:Dg(n,$.path,le.path).path});else{const O=kt({},$.params);for(const K in O)O[K]==null&&delete O[K];de=kt({},$,{params:d(O)}),le.params=d(le.params)}const xe=e.resolve(de,le),W=$.hash||"";xe.params=u(h(xe.params));const fe=D$(i,kt({},$,{hash:k$(W),path:xe.path})),S=s.createHref(fe);return kt({fullPath:fe,hash:W,query:i===Jb?cL($.query):$.query||{}},xe,{redirectedFrom:void 0,href:S})}function x($){return typeof $=="string"?Dg(n,$,l.value.path):kt({},$)}function E($,le){if(c!==$)return Cl(8,{from:le,to:$})}function w($){return k($)}function b($){return w(kt(x($),{replace:!0}))}function C($){const le=$.matched[$.matched.length-1];if(le&&le.redirect){const{redirect:de}=le;let xe=typeof de=="function"?de($):de;return typeof xe=="string"&&(xe=xe.includes("?")||xe.includes("#")?xe=x(xe):{path:xe},xe.params={}),kt({query:$.query,hash:$.hash,params:xe.path!=null?{}:$.params},xe)}}function k($,le){const de=c=y($),xe=l.value,W=$.state,fe=$.force,S=$.replace===!0,O=C(de);if(O)return k(kt(x(O),{state:typeof O=="object"?kt({},W,O.state):W,force:fe,replace:S}),le||de);const K=de;K.redirectedFrom=le;let U;return!fe&&R$(i,xe,de)&&(U=Cl(16,{to:K,from:xe}),ce(xe,xe,!0,!1)),(U?Promise.resolve(U):I(K,xe)).catch(oe=>Ks(oe)?Ks(oe,2)?oe:H(oe):X(oe,K,xe)).then(oe=>{if(oe){if(Ks(oe,2))return k(kt({replace:S},x(oe.to),{state:typeof oe.to=="object"?kt({},W,oe.to.state):W,force:fe}),le||K)}else oe=Y(K,xe,!0,S,W);return V(K,xe,oe),oe})}function T($,le){const de=E($,le);return de?Promise.reject(de):Promise.resolve()}function A($){const le=D.values().next().value;return le&&typeof le.runWithContext=="function"?le.runWithContext($):$()}function I($,le){let de;const[xe,W,fe]=_L($,le);de=Rg(xe.reverse(),"beforeRouteLeave",$,le);for(const O of xe)O.leaveGuards.forEach(K=>{de.push(Yr(K,$,le))});const S=T.bind(null,$,le);return de.push(S),ue(de).then(()=>{de=[];for(const O of r.list())de.push(Yr(O,$,le));return de.push(S),ue(de)}).then(()=>{de=Rg(W,"beforeRouteUpdate",$,le);for(const O of W)O.updateGuards.forEach(K=>{de.push(Yr(K,$,le))});return de.push(S),ue(de)}).then(()=>{de=[];for(const O of fe)if(O.beforeEnter)if(gs(O.beforeEnter))for(const K of O.beforeEnter)de.push(Yr(K,$,le));else de.push(Yr(O.beforeEnter,$,le));return de.push(S),ue(de)}).then(()=>($.matched.forEach(O=>O.enterCallbacks={}),de=Rg(fe,"beforeRouteEnter",$,le,A),de.push(S),ue(de))).then(()=>{de=[];for(const O of o.list())de.push(Yr(O,$,le));return de.push(S),ue(de)}).catch(O=>Ks(O,8)?O:Promise.reject(O))}function V($,le,de){a.list().forEach(xe=>A(()=>xe($,le,de)))}function Y($,le,de,xe,W){const fe=E($,le);if(fe)return fe;const S=le===Ar,O=Xa?history.state:{};de&&(xe||S?s.replace($.fullPath,kt({scroll:S&&O&&O.scroll},W)):s.push($.fullPath,W)),l.value=$,ce($,le,de,S),H()}let ne;function N(){ne||(ne=s.listen(($,le,de)=>{if(!ee.listening)return;const xe=y($),W=C(xe);if(W){k(kt(W,{replace:!0}),xe).catch(Wc);return}c=xe;const fe=l.value;Xa&&z$(Yb(fe.fullPath,de.delta),yf()),I(xe,fe).catch(S=>Ks(S,12)?S:Ks(S,2)?(k(S.to,xe).then(O=>{Ks(O,20)&&!de.delta&&de.type===au.pop&&s.go(-1,!1)}).catch(Wc),Promise.reject()):(de.delta&&s.go(-de.delta,!1),X(S,xe,fe))).then(S=>{S=S||Y(xe,fe,!1),S&&(de.delta&&!Ks(S,8)?s.go(-de.delta,!1):de.type===au.pop&&Ks(S,20)&&s.go(-1,!1)),V(xe,fe,S)}).catch(Wc)}))}let B=lc(),R=lc(),z;function X($,le,de){H($);const xe=R.list();return xe.length?xe.forEach(W=>W($,le,de)):console.error($),Promise.reject($)}function J(){return z&&l.value!==Ar?Promise.resolve():new Promise(($,le)=>{B.add([$,le])})}function H($){return z||(z=!$,N(),B.list().forEach(([le,de])=>$?de($):le()),B.reset()),$}function ce($,le,de,xe){const{scrollBehavior:W}=t;if(!Xa||!W)return Promise.resolve();const fe=!de&&W$(Yb($.fullPath,0))||(xe||!de)&&history.state&&history.state.scroll||null;return Rn().then(()=>W($,le,fe)).then(S=>S&&V$(S)).catch(S=>X(S,$,le))}const ie=$=>s.go($);let te;const D=new Set,ee={currentRoute:l,listening:!0,addRoute:g,removeRoute:p,clearRoutes:e.clearRoutes,hasRoute:v,getRoutes:m,resolve:y,options:t,push:w,replace:b,go:ie,back:()=>ie(-1),forward:()=>ie(1),beforeEach:r.add,beforeResolve:o.add,afterEach:a.add,onError:R.add,isReady:J,install($){const le=this;$.component("RouterLink",hL),$.component("RouterView",MC),$.config.globalProperties.$router=le,Object.defineProperty($.config.globalProperties,"$route",{enumerable:!0,get:()=>Z(l)}),Xa&&!te&&l.value===Ar&&(te=!0,w(s.location).catch(W=>{}));const de={};for(const W in Ar)Object.defineProperty(de,W,{get:()=>l.value[W],enumerable:!0});$.provide(bf,le),$.provide(S_,eE(de)),$.provide(em,l);const xe=$.unmount;D.add($),$.unmount=function(){D.delete($),D.size<1&&(c=Ar,ne&&ne(),ne=null,l.value=Ar,te=!1,z=!1),xe()}}};function ue($){return $.reduce((le,de)=>le.then(()=>A(de)),Promise.resolve())}return ee}function _L(t,e){const n=[],i=[],s=[],r=Math.max(e.matched.length,t.matched.length);for(let o=0;oEl(c,a))?i.push(a):n.push(a));const l=t.matched[o];l&&(e.matched.find(c=>El(c,l))||s.push(l))}return[n,i,s]}function IC(){return ji(bf)}function zu(t){return ji(S_)}const vL={getCookie(t){const n=`; ${document.cookie}`.split(`; ${t}=`);if(n.length===2)return n.pop().split(";").shift()}},s0="[a-fA-F\\d:]",jr=t=>t&&t.includeBoundaries?`(?:(?<=\\s|^)(?=${s0})|(?<=${s0})(?=\\s|$))`:"",ns="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",_n="[a-fA-F\\d]{1,4}",wf=` + */const Xa=typeof document<"u";function vC(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function m$(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&vC(t.default)}const kt=Object.assign;function Ig(t,e){const n={};for(const i in e){const s=e[i];n[i]=gs(s)?s.map(t):t(s)}return n}const Wc=()=>{},gs=Array.isArray,yC=/#/g,_$=/&/g,v$=/\//g,y$=/=/g,b$=/\?/g,bC=/\+/g,w$=/%5B/g,x$=/%5D/g,wC=/%5E/g,E$=/%60/g,xC=/%7B/g,C$=/%7C/g,EC=/%7D/g,S$=/%20/g;function C_(t){return encodeURI(""+t).replace(C$,"|").replace(w$,"[").replace(x$,"]")}function k$(t){return C_(t).replace(xC,"{").replace(EC,"}").replace(wC,"^")}function Jp(t){return C_(t).replace(bC,"%2B").replace(S$,"+").replace(yC,"%23").replace(_$,"%26").replace(E$,"`").replace(xC,"{").replace(EC,"}").replace(wC,"^")}function T$(t){return Jp(t).replace(y$,"%3D")}function A$(t){return C_(t).replace(yC,"%23").replace(b$,"%3F")}function P$(t){return t==null?"":A$(t).replace(v$,"%2F")}function ou(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const M$=/\/$/,I$=t=>t.replace(M$,"");function Dg(t,e,n="/"){let i,s={},r="",o="";const a=e.indexOf("#");let l=e.indexOf("?");return a=0&&(l=-1),l>-1&&(i=e.slice(0,l),r=e.slice(l+1,a>-1?a:e.length),s=t(r)),a>-1&&(i=i||e.slice(0,a),o=e.slice(a,e.length)),i=L$(i??e,n),{fullPath:i+(r&&"?")+r+o,path:i,query:s,hash:ou(o)}}function D$(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function zb(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function R$(t,e,n){const i=e.matched.length-1,s=n.matched.length-1;return i>-1&&i===s&&El(e.matched[i],n.matched[s])&&CC(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function El(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function CC(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!$$(t[n],e[n]))return!1;return!0}function $$(t,e){return gs(t)?Wb(t,e):gs(e)?Wb(e,t):t===e}function Wb(t,e){return gs(e)?t.length===e.length&&t.every((n,i)=>n===e[i]):t.length===1&&t[0]===e}function L$(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),i=t.split("/"),s=i[i.length-1];(s===".."||s===".")&&i.push("");let r=n.length-1,o,a;for(o=0;o1&&r--;else break;return n.slice(0,r).join("/")+"/"+i.slice(o).join("/")}const Ar={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var au;(function(t){t.pop="pop",t.push="push"})(au||(au={}));var Yc;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Yc||(Yc={}));function O$(t){if(!t)if(Xa){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),I$(t)}const N$=/^[^#]+#/;function F$(t,e){return t.replace(N$,"#")+e}function B$(t,e){const n=document.documentElement.getBoundingClientRect(),i=t.getBoundingClientRect();return{behavior:e.behavior,left:i.left-n.left-(e.left||0),top:i.top-n.top-(e.top||0)}}const yf=()=>({left:window.scrollX,top:window.scrollY});function V$(t){let e;if("el"in t){const n=t.el,i=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;e=B$(s,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function Yb(t,e){return(history.state?history.state.position-e:-1)+t}const Qp=new Map;function z$(t,e){Qp.set(t,e)}function W$(t){const e=Qp.get(t);return Qp.delete(t),e}let Y$=()=>location.protocol+"//"+location.host;function SC(t,e){const{pathname:n,search:i,hash:s}=e,r=t.indexOf("#");if(r>-1){let a=s.includes(t.slice(r))?t.slice(r).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),zb(l,"")}return zb(n,t)+i+s}function H$(t,e,n,i){let s=[],r=[],o=null;const a=({state:f})=>{const g=SC(t,location),p=n.value,m=e.value;let v=0;if(f){if(n.value=g,e.value=f,o&&o===p){o=null;return}v=m?f.position-m.position:0}else i(g);s.forEach(y=>{y(n.value,p,{delta:v,type:au.pop,direction:v?v>0?Yc.forward:Yc.back:Yc.unknown})})};function l(){o=n.value}function c(f){s.push(f);const g=()=>{const p=s.indexOf(f);p>-1&&s.splice(p,1)};return r.push(g),g}function u(){const{history:f}=window;f.state&&f.replaceState(kt({},f.state,{scroll:yf()}),"")}function d(){for(const f of r)f();r=[],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 Hb(t,e,n,i=!1,s=!1){return{back:t,current:e,forward:n,replaced:i,position:window.history.length,scroll:s?yf():null}}function j$(t){const{history:e,location:n}=window,i={value:SC(t,n)},s={value:e.state};s.value||r(i.value,{back:null,current:i.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function r(l,c,u){const d=t.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?t:t.slice(d))+l:Y$()+t+l;try{e[u?"replaceState":"pushState"](c,"",f),s.value=c}catch(g){console.error(g),n[u?"replace":"assign"](f)}}function o(l,c){const u=kt({},e.state,Hb(s.value.back,l,s.value.forward,!0),c,{position:s.value.position});r(l,u,!0),i.value=l}function a(l,c){const u=kt({},s.value,e.state,{forward:l,scroll:yf()});r(u.current,u,!0);const d=kt({},Hb(i.value,l,null),{position:u.position+1},c);r(l,d,!1),i.value=l}return{location:i,state:s,push:a,replace:o}}function K$(t){t=O$(t);const e=j$(t),n=H$(t,e.state,e.location,e.replace);function i(r,o=!0){o||n.pauseListeners(),history.go(r)}const s=kt({location:"",base:t,go:i,createHref:F$.bind(null,t)},e,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>e.state.value}),s}function U$(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),K$(t)}function G$(t){return typeof t=="string"||t&&typeof t=="object"}function kC(t){return typeof t=="string"||typeof t=="symbol"}const TC=Symbol("");var jb;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(jb||(jb={}));function Cl(t,e){return kt(new Error,{type:t,[TC]:!0},e)}function Ks(t,e){return t instanceof Error&&TC in t&&(e==null||!!(t.type&e))}const Kb="[^/]+?",X$={sensitive:!1,strict:!1,start:!0,end:!0},q$=/[.+*?^${}()[\]/\\]/g;function Z$(t,e){const n=kt({},X$,e),i=[];let s=n.start?"^":"";const r=[];for(const c of t){const u=c.length?[]:[90];n.strict&&!c.length&&(s+="/");for(let d=0;de.length?e.length===1&&e[0]===80?1:-1:0}function AC(t,e){let n=0;const i=t.score,s=e.score;for(;n0&&e[e.length-1]<0}const Q$={type:0,value:""},eL=/[a-zA-Z0-9_]/;function tL(t){if(!t)return[[]];if(t==="/")return[[Q$]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(g){throw new Error(`ERR (${n})/"${c}": ${g}`)}let n=0,i=n;const s=[];let r;function o(){r&&s.push(r),r=[]}let a=0,l,c="",u="";function d(){c&&(n===0?r.push({type:0,value:c}):n===1||n===2||n===3?(r.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;a{o(E)}:Wc}function o(d){if(kC(d)){const f=i.get(d);f&&(i.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&i.delete(d.record.name),d.children.forEach(o),d.alias.forEach(o))}}function a(){return n}function l(d){const f=oL(d,n);n.splice(f,0,d),d.record.name&&!qb(d)&&i.set(d.record.name,d)}function c(d,f){let g,p={},m,v;if("name"in d&&d.name){if(g=i.get(d.name),!g)throw Cl(1,{location:d});v=g.record.name,p=kt(Gb(f.params,g.keys.filter(E=>!E.optional).concat(g.parent?g.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),d.params&&Gb(d.params,g.keys.map(E=>E.name))),m=g.stringify(p)}else if(d.path!=null)m=d.path,g=n.find(E=>E.re.test(m)),g&&(p=g.parse(m),v=g.record.name);else{if(g=f.name?i.get(f.name):n.find(E=>E.re.test(f.path)),!g)throw Cl(1,{location:d,currentLocation:f});v=g.record.name,p=kt({},f.params,d.params),m=g.stringify(p)}const y=[];let x=g;for(;x;)y.unshift(x.record),x=x.parent;return{name:v,path:m,params:p,matched:y,meta:rL(y)}}t.forEach(d=>r(d));function u(){n.length=0,i.clear()}return{addRoute:r,resolve:c,removeRoute:o,clearRoutes:u,getRoutes:a,getRecordMatcher:s}}function Gb(t,e){const n={};for(const i of e)i in t&&(n[i]=t[i]);return n}function Xb(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:sL(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function sL(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const i in t.components)e[i]=typeof n=="object"?n[i]:n;return e}function qb(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function rL(t){return t.reduce((e,n)=>kt(e,n.meta),{})}function Zb(t,e){const n={};for(const i in t)n[i]=i in e?e[i]:t[i];return n}function oL(t,e){let n=0,i=e.length;for(;n!==i;){const r=n+i>>1;AC(t,e[r])<0?i=r:n=r+1}const s=aL(t);return s&&(i=e.lastIndexOf(s,i-1)),i}function aL(t){let e=t;for(;e=e.parent;)if(PC(e)&&AC(t,e)===0)return e}function PC({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function lL(t){const e={};if(t===""||t==="?")return e;const i=(t[0]==="?"?t.slice(1):t).split("&");for(let s=0;sr&&Jp(r)):[i&&Jp(i)]).forEach(r=>{r!==void 0&&(e+=(e.length?"&":"")+n,r!=null&&(e+="="+r))})}return e}function cL(t){const e={};for(const n in t){const i=t[n];i!==void 0&&(e[n]=gs(i)?i.map(s=>s==null?null:""+s):i==null?i:""+i)}return e}const uL=Symbol(""),Qb=Symbol(""),bf=Symbol(""),S_=Symbol(""),em=Symbol("");function lc(){let t=[];function e(i){return t.push(i),()=>{const s=t.indexOf(i);s>-1&&t.splice(s,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function Yr(t,e,n,i,s,r=o=>o()){const o=i&&(i.enterCallbacks[s]=i.enterCallbacks[s]||[]);return()=>new Promise((a,l)=>{const c=f=>{f===!1?l(Cl(4,{from:n,to:e})):f instanceof Error?l(f):G$(f)?l(Cl(2,{from:e,to:f})):(o&&i.enterCallbacks[s]===o&&typeof f=="function"&&o.push(f),a())},u=r(()=>t.call(i&&i.instances[s],e,n,c));let d=Promise.resolve(u);t.length<3&&(d=d.then(c)),d.catch(f=>l(f))})}function Rg(t,e,n,i,s=r=>r()){const r=[];for(const o of t)for(const a in o.components){let l=o.components[a];if(!(e!=="beforeRouteEnter"&&!o.instances[a]))if(vC(l)){const u=(l.__vccOpts||l)[e];u&&r.push(Yr(u,n,i,o,a,s))}else{let c=l();r.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const d=m$(u)?u.default:u;o.mods[a]=u,o.components[a]=d;const g=(d.__vccOpts||d)[e];return g&&Yr(g,n,i,o,a,s)()}))}}return r}function e0(t){const e=ji(bf),n=ji(S_),i=ve(()=>{const l=Z(t.to);return e.resolve(l)}),s=ve(()=>{const{matched:l}=i.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(El.bind(null,u));if(f>-1)return f;const g=t0(l[c-2]);return c>1&&t0(u)===g&&d[d.length-1].path!==g?d.findIndex(El.bind(null,l[c-2])):f}),r=ve(()=>s.value>-1&&gL(n.params,i.value.params)),o=ve(()=>s.value>-1&&s.value===n.matched.length-1&&CC(n.params,i.value.params));function a(l={}){return fL(l)?e[Z(t.replace)?"replace":"push"](Z(t.to)).catch(Wc):Promise.resolve()}return{route:i,href:ve(()=>i.value.href),isActive:r,isExactActive:o,navigate:a}}const dL=fn({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:e0,setup(t,{slots:e}){const n=Ei(e0(t)),{options:i}=ji(bf),s=ve(()=>({[n0(t.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[n0(t.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=e.default&&e.default(n);return t.custom?r:ha("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},r)}}}),hL=dL;function fL(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function gL(t,e){for(const n in e){const i=e[n],s=t[n];if(typeof i=="string"){if(i!==s)return!1}else if(!gs(s)||s.length!==i.length||i.some((r,o)=>r!==s[o]))return!1}return!0}function t0(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const n0=(t,e,n)=>t??e??n,pL=fn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const i=ji(em),s=ve(()=>t.route||i.value),r=ji(Qb,0),o=ve(()=>{let c=Z(r);const{matched:u}=s.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=ve(()=>s.value.matched[o.value]);sh(Qb,ve(()=>o.value+1)),sh(uL,a),sh(em,s);const l=me();return Zt(()=>[l.value,a.value,t.name],([c,u,d],[f,g,p])=>{u&&(u.instances[d]=c,g&&g!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=g.leaveGuards),u.updateGuards.size||(u.updateGuards=g.updateGuards))),c&&u&&(!g||!El(u,g)||!f)&&(u.enterCallbacks[d]||[]).forEach(m=>m(c))},{flush:"post"}),()=>{const c=s.value,u=t.name,d=a.value,f=d&&d.components[u];if(!f)return i0(n.default,{Component:f,route:c});const g=d.props[u],p=g?g===!0?c.params:typeof g=="function"?g(c):g:null,v=ha(f,kt({},p,e,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return i0(n.default,{Component:v,route:c})||v}}});function i0(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const MC=pL;function mL(t){const e=iL(t.routes,t),n=t.parseQuery||lL,i=t.stringifyQuery||Jb,s=t.history,r=lc(),o=lc(),a=lc(),l=df(Ar);let c=Ar;Xa&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Ig.bind(null,L=>""+L),d=Ig.bind(null,P$),f=Ig.bind(null,ou);function g(L,le){let de,xe;return kC(L)?(de=e.getRecordMatcher(L),xe=le):xe=L,e.addRoute(xe,de)}function p(L){const le=e.getRecordMatcher(L);le&&e.removeRoute(le)}function m(){return e.getRoutes().map(L=>L.record)}function v(L){return!!e.getRecordMatcher(L)}function y(L,le){if(le=kt({},le||l.value),typeof L=="string"){const O=Dg(n,L,le.path),K=e.resolve({path:O.path},le),U=s.createHref(O.fullPath);return kt(O,K,{params:f(K.params),hash:ou(O.hash),redirectedFrom:void 0,href:U})}let de;if(L.path!=null)de=kt({},L,{path:Dg(n,L.path,le.path).path});else{const O=kt({},L.params);for(const K in O)O[K]==null&&delete O[K];de=kt({},L,{params:d(O)}),le.params=d(le.params)}const xe=e.resolve(de,le),W=L.hash||"";xe.params=u(f(xe.params));const fe=D$(i,kt({},L,{hash:k$(W),path:xe.path})),S=s.createHref(fe);return kt({fullPath:fe,hash:W,query:i===Jb?cL(L.query):L.query||{}},xe,{redirectedFrom:void 0,href:S})}function x(L){return typeof L=="string"?Dg(n,L,l.value.path):kt({},L)}function E(L,le){if(c!==L)return Cl(8,{from:le,to:L})}function w(L){return k(L)}function b(L){return w(kt(x(L),{replace:!0}))}function C(L){const le=L.matched[L.matched.length-1];if(le&&le.redirect){const{redirect:de}=le;let xe=typeof de=="function"?de(L):de;return typeof xe=="string"&&(xe=xe.includes("?")||xe.includes("#")?xe=x(xe):{path:xe},xe.params={}),kt({query:L.query,hash:L.hash,params:xe.path!=null?{}:L.params},xe)}}function k(L,le){const de=c=y(L),xe=l.value,W=L.state,fe=L.force,S=L.replace===!0,O=C(de);if(O)return k(kt(x(O),{state:typeof O=="object"?kt({},W,O.state):W,force:fe,replace:S}),le||de);const K=de;K.redirectedFrom=le;let U;return!fe&&R$(i,xe,de)&&(U=Cl(16,{to:K,from:xe}),ce(xe,xe,!0,!1)),(U?Promise.resolve(U):I(K,xe)).catch(oe=>Ks(oe)?Ks(oe,2)?oe:H(oe):X(oe,K,xe)).then(oe=>{if(oe){if(Ks(oe,2))return k(kt({replace:S},x(oe.to),{state:typeof oe.to=="object"?kt({},W,oe.to.state):W,force:fe}),le||K)}else oe=Y(K,xe,!0,S,W);return V(K,xe,oe),oe})}function T(L,le){const de=E(L,le);return de?Promise.reject(de):Promise.resolve()}function A(L){const le=D.values().next().value;return le&&typeof le.runWithContext=="function"?le.runWithContext(L):L()}function I(L,le){let de;const[xe,W,fe]=_L(L,le);de=Rg(xe.reverse(),"beforeRouteLeave",L,le);for(const O of xe)O.leaveGuards.forEach(K=>{de.push(Yr(K,L,le))});const S=T.bind(null,L,le);return de.push(S),ue(de).then(()=>{de=[];for(const O of r.list())de.push(Yr(O,L,le));return de.push(S),ue(de)}).then(()=>{de=Rg(W,"beforeRouteUpdate",L,le);for(const O of W)O.updateGuards.forEach(K=>{de.push(Yr(K,L,le))});return de.push(S),ue(de)}).then(()=>{de=[];for(const O of fe)if(O.beforeEnter)if(gs(O.beforeEnter))for(const K of O.beforeEnter)de.push(Yr(K,L,le));else de.push(Yr(O.beforeEnter,L,le));return de.push(S),ue(de)}).then(()=>(L.matched.forEach(O=>O.enterCallbacks={}),de=Rg(fe,"beforeRouteEnter",L,le,A),de.push(S),ue(de))).then(()=>{de=[];for(const O of o.list())de.push(Yr(O,L,le));return de.push(S),ue(de)}).catch(O=>Ks(O,8)?O:Promise.reject(O))}function V(L,le,de){a.list().forEach(xe=>A(()=>xe(L,le,de)))}function Y(L,le,de,xe,W){const fe=E(L,le);if(fe)return fe;const S=le===Ar,O=Xa?history.state:{};de&&(xe||S?s.replace(L.fullPath,kt({scroll:S&&O&&O.scroll},W)):s.push(L.fullPath,W)),l.value=L,ce(L,le,de,S),H()}let ne;function N(){ne||(ne=s.listen((L,le,de)=>{if(!ee.listening)return;const xe=y(L),W=C(xe);if(W){k(kt(W,{replace:!0}),xe).catch(Wc);return}c=xe;const fe=l.value;Xa&&z$(Yb(fe.fullPath,de.delta),yf()),I(xe,fe).catch(S=>Ks(S,12)?S:Ks(S,2)?(k(S.to,xe).then(O=>{Ks(O,20)&&!de.delta&&de.type===au.pop&&s.go(-1,!1)}).catch(Wc),Promise.reject()):(de.delta&&s.go(-de.delta,!1),X(S,xe,fe))).then(S=>{S=S||Y(xe,fe,!1),S&&(de.delta&&!Ks(S,8)?s.go(-de.delta,!1):de.type===au.pop&&Ks(S,20)&&s.go(-1,!1)),V(xe,fe,S)}).catch(Wc)}))}let B=lc(),R=lc(),z;function X(L,le,de){H(L);const xe=R.list();return xe.length?xe.forEach(W=>W(L,le,de)):console.error(L),Promise.reject(L)}function J(){return z&&l.value!==Ar?Promise.resolve():new Promise((L,le)=>{B.add([L,le])})}function H(L){return z||(z=!L,N(),B.list().forEach(([le,de])=>L?de(L):le()),B.reset()),L}function ce(L,le,de,xe){const{scrollBehavior:W}=t;if(!Xa||!W)return Promise.resolve();const fe=!de&&W$(Yb(L.fullPath,0))||(xe||!de)&&history.state&&history.state.scroll||null;return Rn().then(()=>W(L,le,fe)).then(S=>S&&V$(S)).catch(S=>X(S,L,le))}const ie=L=>s.go(L);let te;const D=new Set,ee={currentRoute:l,listening:!0,addRoute:g,removeRoute:p,clearRoutes:e.clearRoutes,hasRoute:v,getRoutes:m,resolve:y,options:t,push:w,replace:b,go:ie,back:()=>ie(-1),forward:()=>ie(1),beforeEach:r.add,beforeResolve:o.add,afterEach:a.add,onError:R.add,isReady:J,install(L){const le=this;L.component("RouterLink",hL),L.component("RouterView",MC),L.config.globalProperties.$router=le,Object.defineProperty(L.config.globalProperties,"$route",{enumerable:!0,get:()=>Z(l)}),Xa&&!te&&l.value===Ar&&(te=!0,w(s.location).catch(W=>{}));const de={};for(const W in Ar)Object.defineProperty(de,W,{get:()=>l.value[W],enumerable:!0});L.provide(bf,le),L.provide(S_,eE(de)),L.provide(em,l);const xe=L.unmount;D.add(L),L.unmount=function(){D.delete(L),D.size<1&&(c=Ar,ne&&ne(),ne=null,l.value=Ar,te=!1,z=!1),xe()}}};function ue(L){return L.reduce((le,de)=>le.then(()=>A(de)),Promise.resolve())}return ee}function _L(t,e){const n=[],i=[],s=[],r=Math.max(e.matched.length,t.matched.length);for(let o=0;oEl(c,a))?i.push(a):n.push(a));const l=t.matched[o];l&&(e.matched.find(c=>El(c,l))||s.push(l))}return[n,i,s]}function IC(){return ji(bf)}function zu(t){return ji(S_)}const vL={getCookie(t){const n=`; ${document.cookie}`.split(`; ${t}=`);if(n.length===2)return n.pop().split(";").shift()}},s0="[a-fA-F\\d:]",jr=t=>t&&t.includeBoundaries?`(?:(?<=\\s|^)(?=${s0})|(?<=${s0})(?=\\s|$))`:"",ns="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",_n="[a-fA-F\\d]{1,4}",wf=` (?: (?:${_n}:){7}(?:${_n}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8 (?:${_n}:){6}(?:${ns}|:${_n}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4 @@ -37,43 +37,43 @@ (?:${_n}:){1}(?:(?::${_n}){0,4}:${ns}|(?::${_n}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4 (?::(?:(?::${_n}){0,5}:${ns}|(?::${_n}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4 )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1 -`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),yL=new RegExp(`(?:^${ns}$)|(?:^${wf}$)`),bL=new RegExp(`^${ns}$`),wL=new RegExp(`^${wf}$`),xf=t=>t&&t.exact?yL:new RegExp(`(?:${jr(t)}${ns}${jr(t)})|(?:${jr(t)}${wf}${jr(t)})`,"g");xf.v4=t=>t&&t.exact?bL:new RegExp(`${jr(t)}${ns}${jr(t)}`,"g");xf.v6=t=>t&&t.exact?wL:new RegExp(`${jr(t)}${wf}${jr(t)}`,"g");const DC={exact:!1},RC=`${xf.v4().source}\\/(3[0-2]|[12]?[0-9])`,$C=`${xf.v6().source}\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])`,xL=new RegExp(`^${RC}$`),EL=new RegExp(`^${$C}$`),CL=({exact:t}=DC)=>t?xL:new RegExp(RC,"g"),SL=({exact:t}=DC)=>t?EL:new RegExp($C,"g"),LC=CL({exact:!0}),OC=SL({exact:!0}),k_=t=>LC.test(t)?4:OC.test(t)?6:0;k_.v4=t=>LC.test(t);k_.v6=t=>OC.test(t);const At=t=>{const e=Je();if(e.Locale===null)return t;const i=Object.keys(e.Locale).filter(s=>t.match(new RegExp("^"+s+"$","gi"))!==null);return i.length===0||i.length>1?t:t.replace(new RegExp(i[0],"gi"),e.Locale[i[0]])},Vn=_C("WireguardConfigurationsStore",{state:()=>({Configurations:void 0,searchString:"",ConfigurationListInterval:void 0,PeerScheduleJobs:{dropdowns:{Field:[{display:At("Total Received"),value:"total_receive",unit:"GB",type:"number"},{display:At("Total Sent"),value:"total_sent",unit:"GB",type:"number"},{display:At("Total Usage"),value:"total_data",unit:"GB",type:"number"},{display:At("Date"),value:"date",type:"date"}],Operator:[{display:At("larger than"),value:"lgt"}],Action:[{display:At("Restrict Peer"),value:"restrict"},{display:At("Delete Peer"),value:"delete"}]}}}),actions:{async getConfigurations(){await Pt("/api/getWireguardConfigurations",{},t=>{t.status&&(this.Configurations=t.data)})},regexCheckIP(t){return/((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))/.test(t)},checkCIDR(t){return k_(t)!==0},checkWGKeyLength(t){return console.log(t),/^[A-Za-z0-9+/]{43}=?=?$/.test(t)}}}),He=(t,e)=>{const n=t.__vccOpts||t;for(const[i,s]of e)n[i]=s;return n},kL={name:"localeText",props:{t:""},computed:{getLocaleText(){return At(this.t)}}};function TL(t,e,n,i,s,r){return pe(this.getLocaleText)}const Le=He(kL,[["render",TL]]),AL={name:"navbar",components:{LocaleText:Le},setup(){const t=Vn(),e=Je();return{wireguardConfigurationsStore:t,dashboardConfigurationStore:e}},data(){return{updateAvailable:!1,updateMessage:"Checking for update...",updateUrl:""}},mounted(){Pt("/api/getDashboardUpdate",{},t=>{t.status?(t.data&&(this.updateAvailable=!0,this.updateUrl=t.data),this.updateMessage=t.message):(this.updateMessage=At("Failed to check available update"),console.log(`Failed to get update: ${t.message}`))})}},PL=["data-bs-theme"],ML={id:"sidebarMenu",class:"bg-body-tertiary sidebar border h-100 rounded-3 shadow overflow-y-scroll"},IL={class:"sidebar-sticky"},DL={class:"nav flex-column px-2"},RL={class:"nav-item"},$L={class:"nav-item"},LL={class:"sidebar-heading px-3 mt-4 mb-1 text-muted text-center"},OL={class:"nav flex-column px-2"},NL={class:"nav-item"},FL={class:"sidebar-heading px-3 mt-4 mb-1 text-muted text-center"},BL={class:"nav flex-column px-2"},VL={class:"nav-item"},zL={class:"nav-item"},WL={class:"nav flex-column px-2 mb-3"},YL={class:"nav-item"},HL={class:"nav-item",style:{"font-size":"0.8rem"}},jL=["href"],KL={class:"nav-link text-muted rounded-3"},UL={key:1,class:"nav-link text-muted rounded-3"};function GL(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("RouterLink");return P(),F("div",{class:Se(["col-md-3 col-lg-2 d-md-block p-3 navbar-container",{active:this.dashboardConfigurationStore.ShowNavBar}]),"data-bs-theme":i.dashboardConfigurationStore.Configuration.Server.dashboard_theme},[f("nav",ML,[f("div",IL,[e[7]||(e[7]=f("h5",{class:"text-white text-center m-0 py-3 mb-3 btn-brand"},"WGDashboard",-1)),f("ul",DL,[f("li",RL,[L(a,{class:"nav-link rounded-3",to:"/","exact-active-class":"active"},{default:Me(()=>[e[1]||(e[1]=f("i",{class:"bi bi-house me-2"},null,-1)),L(o,{t:"Home"})]),_:1})]),f("li",$L,[L(a,{class:"nav-link rounded-3",to:"/settings","exact-active-class":"active"},{default:Me(()=>[e[2]||(e[2]=f("i",{class:"bi bi-gear me-2"},null,-1)),L(o,{t:"Settings"})]),_:1})])]),e[8]||(e[8]=f("hr",{class:"text-body"},null,-1)),f("h6",LL,[e[3]||(e[3]=f("i",{class:"bi bi-body-text me-2"},null,-1)),L(o,{t:"WireGuard Configurations"})]),f("ul",OL,[(P(!0),F(De,null,Ge(this.wireguardConfigurationsStore.Configurations,l=>(P(),F("li",NL,[L(a,{to:"/configuration/"+l.Name+"/peers",class:"nav-link nav-conf-link rounded-3","active-class":"active"},{default:Me(()=>[f("span",{class:Se(["dot me-2",{active:l.Status}])},null,2),Be(" "+pe(l.Name),1)]),_:2},1032,["to"])]))),256))]),e[9]||(e[9]=f("hr",{class:"text-body"},null,-1)),f("h6",FL,[e[4]||(e[4]=f("i",{class:"bi bi-tools me-2"},null,-1)),L(o,{t:"Tools"})]),f("ul",BL,[f("li",VL,[L(a,{to:"/ping",class:"nav-link rounded-3","active-class":"active"},{default:Me(()=>[L(o,{t:"Ping"})]),_:1})]),f("li",zL,[L(a,{to:"/traceroute",class:"nav-link rounded-3","active-class":"active"},{default:Me(()=>[L(o,{t:"Traceroute"})]),_:1})])]),e[10]||(e[10]=f("hr",{class:"text-body"},null,-1)),f("ul",WL,[f("li",YL,[f("a",{class:"nav-link text-danger rounded-3",onClick:e[0]||(e[0]=l=>this.dashboardConfigurationStore.signOut()),role:"button",style:{"font-weight":"bold"}},[e[5]||(e[5]=f("i",{class:"bi bi-box-arrow-left me-2"},null,-1)),L(o,{t:"Sign Out"})])]),f("li",HL,[this.updateAvailable?(P(),F("a",{key:0,href:this.updateUrl,class:"text-decoration-none rounded-3",target:"_blank"},[f("small",KL,[L(o,{t:this.updateMessage},null,8,["t"]),e[6]||(e[6]=Be(" (")),L(o,{t:"Current Version:"}),Be(" "+pe(i.dashboardConfigurationStore.Configuration.Server.version)+") ",1)])],8,jL)):(P(),F("small",UL,[L(o,{t:this.updateMessage},null,8,["t"]),Be(" ("+pe(i.dashboardConfigurationStore.Configuration.Server.version)+") ",1)]))])])])])],10,PL)}const XL=He(AL,[["render",GL],["__scopeId","data-v-6697a8cc"]]);var NC={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(sx,function(){var n=1e3,i=6e4,s=36e5,r="millisecond",o="second",a="minute",l="hour",c="day",u="week",d="month",h="quarter",g="year",p="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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,x={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(N){var B=["th","st","nd","rd"],R=N%100;return"["+N+(B[(R-20)%10]||B[R]||B[0])+"]"}},E=function(N,B,R){var z=String(N);return!z||z.length>=B?N:""+Array(B+1-z.length).join(R)+N},w={s:E,z:function(N){var B=-N.utcOffset(),R=Math.abs(B),z=Math.floor(R/60),X=R%60;return(B<=0?"+":"-")+E(z,2,"0")+":"+E(X,2,"0")},m:function N(B,R){if(B.date()1)return N(H[0])}else{var ce=B.name;C[ce]=B,X=ce}return!z&&X&&(b=X),X||!z&&b},I=function(N,B){if(T(N))return N.clone();var R=typeof B=="object"?B:{};return R.date=N,R.args=arguments,new Y(R)},V=w;V.l=A,V.i=T,V.w=function(N,B){return I(N,{locale:B.$L,utc:B.$u,x:B.$x,$offset:B.$offset})};var Y=function(){function N(R){this.$L=A(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[k]=!0}var B=N.prototype;return B.parse=function(R){this.$d=function(z){var X=z.date,J=z.utc;if(X===null)return new Date(NaN);if(V.u(X))return new Date;if(X instanceof Date)return new Date(X);if(typeof X=="string"&&!/Z$/i.test(X)){var H=X.match(v);if(H){var ce=H[2]-1||0,ie=(H[7]||"0").substring(0,3);return J?new Date(Date.UTC(H[1],ce,H[3]||1,H[4]||0,H[5]||0,H[6]||0,ie)):new Date(H[1],ce,H[3]||1,H[4]||0,H[5]||0,H[6]||0,ie)}}return new Date(X)}(R),this.init()},B.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()},B.$utils=function(){return V},B.isValid=function(){return this.$d.toString()!==m},B.isSame=function(R,z){var X=I(R);return this.startOf(z)<=X&&X<=this.endOf(z)},B.isAfter=function(R,z){return I(R){this.message.show=!1},5e3)}},JL=["id"],QL={class:"card-body"},eO={class:"d-flex"},tO={class:"fw-bold d-block",style:{"text-transform":"uppercase"}},nO={class:"ms-auto"};function iO(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",{class:Se(["card shadow rounded-3 position-relative message ms-auto",{"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},[f("div",QL,[f("div",eO,[f("small",tO,[L(o,{t:"FROM "}),Be(" "+pe(this.message.from),1)]),f("small",nO,pe(r.dayjs().format("hh:mm A")),1)]),Be(" "+pe(this.message.content),1)])],10,JL)}const FC=He(ZL,[["render",iO],["__scopeId","data-v-f50b8f0c"]]),sO={name:"index",components:{Message:FC,Navbar:XL},async setup(){return{dashboardConfigurationStore:Je()}},computed:{getMessages(){return this.dashboardConfigurationStore.Messages.filter(t=>t.show)}}},rO=["data-bs-theme"],oO={class:"row h-100"},aO={class:"col-md-9 ml-sm-auto col-lg-10 px-md-4 overflow-y-scroll mb-0"},lO={class:"messageCentre text-body position-fixed d-flex"};function cO(t,e,n,i,s,r){const o=Ce("Navbar"),a=Ce("RouterView"),l=Ce("Message");return P(),F("div",{class:"container-fluid flex-grow-1 main","data-bs-theme":this.dashboardConfigurationStore.Configuration.Server.dashboard_theme},[f("div",oO,[L(o),f("main",aO,[(P(),Ee(x_,null,{default:Me(()=>[L(a,null,{default:Me(({Component:c})=>[L(xt,{name:"fade2",mode:"out-in",appear:""},{default:Me(()=>[(P(),Ee(_a(c)))]),_:2},1024)]),_:1})]),_:1})),f("div",lO,[L(vo,{name:"message",tag:"div",class:"position-relative flex-sm-grow-0 flex-grow-1 d-flex align-items-end ms-sm-auto flex-column gap-2"},{default:Me(()=>[(P(!0),F(De,null,Ge(r.getMessages.slice().reverse(),c=>(P(),Ee(l,{message:c,key:c.id},null,8,["message"]))),128))]),_:1})])])])],8,rO)}const uO=He(sO,[["render",cO],["__scopeId","data-v-5627c522"]]),dO={name:"RemoteServer",props:{server:Object},data(){return{active:!1,startTime:void 0,endTime:void 0,errorMsg:"",refreshing:!1}},methods:{async handshake(){this.active=!1,this.server.host&&this.server.apiKey&&(this.refreshing=!0,this.startTime=void 0,this.endTime=void 0,this.startTime=Nn(),await fetch(`${this.server.host}/api/handshake`,{headers:{"content-type":"application/json","wg-dashboard-apikey":this.server.apiKey},method:"GET",signal:AbortSignal.timeout(5e3)}).then(t=>{if(t.status===200)return t.json();throw new Error(t.statusText)}).then(()=>{this.endTime=Nn(),this.active=!0}).catch(t=>{this.active=!1,this.errorMsg=t}),this.refreshing=!1)},async connect(){await fetch(`${this.server.host}/api/authenticate`,{headers:{"content-type":"application/json","wg-dashboard-apikey":this.server.apiKey},body:JSON.stringify({host:window.location.hostname}),method:"POST",signal:AbortSignal.timeout(5e3)}).then(t=>t.json()).then(t=>{this.$emit("setActiveServer"),this.$router.push("/")})}},mounted(){this.handshake()},computed:{getHandshakeTime(){return this.startTime&&this.endTime?`${Nn().subtract(this.startTime).millisecond()}ms`:this.refreshing?At("Pinging..."):this.errorMsg?this.errorMsg:"N/A"}}},hO={class:"card rounded-3"},fO={class:"card-body"},gO={class:"d-flex gap-3 w-100 remoteServerContainer"},pO={class:"d-flex gap-3 align-items-center flex-grow-1"},mO={class:"d-flex gap-3 align-items-center flex-grow-1"},_O={class:"d-flex gap-2 button-group"},vO={class:"card-footer gap-2 d-flex align-items-center"},yO={key:0,class:"spin ms-auto text-primary-emphasis"};function bO(t,e,n,i,s,r){return P(),F("div",hO,[f("div",fO,[f("div",gO,[f("div",pO,[e[7]||(e[7]=f("i",{class:"bi bi-server"},null,-1)),Re(f("input",{class:"form-control form-control-sm",onBlur:e[0]||(e[0]=o=>this.handshake()),"onUpdate:modelValue":e[1]||(e[1]=o=>this.server.host=o),type:"url"},null,544),[[ze,this.server.host]])]),f("div",mO,[e[8]||(e[8]=f("i",{class:"bi bi-key-fill"},null,-1)),Re(f("input",{class:"form-control form-control-sm",onBlur:e[2]||(e[2]=o=>this.handshake()),"onUpdate:modelValue":e[3]||(e[3]=o=>this.server.apiKey=o),type:"text"},null,544),[[ze,this.server.apiKey]])]),f("div",_O,[f("button",{onClick:e[4]||(e[4]=o=>this.$emit("delete")),class:"ms-auto btn btn-sm bg-danger-subtle text-danger-emphasis border-1 border-danger-subtle"},e[9]||(e[9]=[f("i",{class:"bi bi-trash"},null,-1)])),f("button",{onClick:e[5]||(e[5]=o=>this.connect()),class:Se([{disabled:!this.active},"ms-auto btn btn-sm bg-success-subtle text-success-emphasis border-1 border-success-subtle"])},e[10]||(e[10]=[f("i",{class:"bi bi-arrow-right-circle"},null,-1)]),2)])])]),f("div",vO,[f("span",{class:Se(["dot ms-0 me-2",[this.active?"active":"inactive"]])},null,2),f("small",null,pe(this.getHandshakeTime),1),this.refreshing?(P(),F("div",yO,e[11]||(e[11]=[f("i",{class:"bi bi-arrow-clockwise"},null,-1)]))):(P(),F("a",{key:1,role:"button",onClick:e[6]||(e[6]=o=>this.handshake()),class:"text-primary-emphasis text-decoration-none ms-auto disabled"},e[12]||(e[12]=[f("i",{class:"bi bi-arrow-clockwise me"},null,-1)])))])])}const wO=He(dO,[["render",bO],["__scopeId","data-v-ed7817c7"]]),xO={name:"RemoteServerList",setup(){return{store:Je()}},components:{LocaleText:Le,RemoteServer:wO}},EO={class:"w-100 mt-3"},CO={class:"d-flex align-items-center mb-3"},SO={class:"mb-0"},kO={class:"w-100 d-flex gap-3 flex-column p-3 border border-1 border-secondary-subtle rounded-3",style:{height:"400px","overflow-y":"scroll"}},TO={key:0,class:"text-muted m-auto"};function AO(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("RemoteServer");return P(),F("div",EO,[f("div",CO,[f("h5",SO,[L(o,{t:"Server List"})]),f("button",{onClick:e[0]||(e[0]=l=>this.store.addCrossServerConfiguration()),class:"btn bg-primary-subtle text-primary-emphasis border-1 border-primary-subtle shadow-sm ms-auto"},[e[1]||(e[1]=f("i",{class:"bi bi-plus-circle-fill me-2"},null,-1)),L(o,{t:"Server"})])]),f("div",kO,[(P(!0),F(De,null,Ge(this.store.CrossServerConfiguration.ServerList,(l,c)=>(P(),Ee(a,{onSetActiveServer:u=>this.store.setActiveCrossServer(c),onDelete:u=>this.store.deleteCrossServerConfiguration(c),key:c,server:l},null,8,["onSetActiveServer","onDelete","server"]))),128)),Object.keys(this.store.CrossServerConfiguration.ServerList).length===0?(P(),F("h6",TO,[L(o,{t:"Click"}),e[2]||(e[2]=f("i",{class:"bi bi-plus-circle-fill mx-1"},null,-1)),L(o,{t:"to add your server"})])):se("",!0)])])}const PO=He(xO,[["render",AO]]),MO={name:"signInInput",methods:{GetLocale:At},props:{id:"",data:"",type:"",placeholder:""},computed:{getLocaleText(){return At(this.placeholder)}}},IO=["type","id","name","placeholder"];function DO(t,e,n,i,s,r){return Re((P(),F("input",{type:n.type,"onUpdate:modelValue":e[0]||(e[0]=o=>this.data[this.id]=o),class:"form-control",id:this.id,name:this.id,autocomplete:"on",placeholder:this.getLocaleText,required:""},null,8,IO)),[[uC,this.data[this.id]]])}const RO=He(MO,[["render",DO]]),$O={name:"signInTOTP",methods:{GetLocale:At},props:{data:""},computed:{getLocaleText(){return At("OTP from your authenticator")}}},LO=["placeholder"];function OO(t,e,n,i,s,r){return Re((P(),F("input",{class:"form-control totp",required:"",id:"totp",maxlength:"6",type:"text",inputmode:"numeric",autocomplete:"one-time-code",placeholder:this.getLocaleText,"onUpdate:modelValue":e[0]||(e[0]=o=>this.data.totp=o)},null,8,LO)),[[ze,this.data.totp]])}const NO=He($O,[["render",OO]]),FO={name:"signin",components:{SignInTOTP:NO,SignInInput:RO,LocaleText:Le,RemoteServerList:PO,Message:FC},async setup(){const t=Je();let e="dark",n=!1,i;return t.IsElectronApp||await Promise.all([Pt("/api/getDashboardTheme",{},s=>{e=s.data}),Pt("/api/isTotpEnabled",{},s=>{n=s.data}),Pt("/api/getDashboardVersion",{},s=>{i=s.data})]),t.removeActiveCrossServer(),{store:t,theme:e,totpEnabled:n,version:i}},data(){return{data:{username:"",password:"",totp:""},loginError:!1,loginErrorMessage:"",loading:!1}},computed:{getMessages(){return this.store.Messages.filter(t=>t.show)},applyLocale(t){return At(t)}},methods:{GetLocale:At,async auth(){this.data.username&&this.data.password&&(this.totpEnabled&&this.data.totp||!this.totpEnabled)?(this.loading=!0,await ht("/api/authenticate",this.data,t=>{t.status?(this.loginError=!1,this.$refs.signInBtn.classList.add("signedIn"),t.message?this.$router.push("/welcome"):this.store.Redirect!==void 0?this.$router.push(this.store.Redirect):this.$router.push("/")):(this.loginError=!0,this.loginErrorMessage=t.message,document.querySelectorAll("input[required]").forEach(e=>{e.classList.remove("is-valid"),e.classList.add("is-invalid")}),this.loading=!1)})):document.querySelectorAll("input[required]").forEach(t=>{t.value.length===0?(t.classList.remove("is-valid"),t.classList.add("is-invalid")):(t.classList.remove("is-invalid"),t.classList.add("is-valid"))})}}},BO=["data-bs-theme"],VO={class:"login-box m-auto"},zO={class:"m-auto",style:{width:"700px"}},WO={class:"mb-0 text-body"},YO={key:0,class:"alert alert-danger mt-2 mb-0",role:"alert"},HO={class:"form-group text-body"},jO={class:"form-group text-body"},KO={key:0,class:"form-group text-body"},UO={class:"btn btn-lg btn-dark ms-auto mt-4 w-100 d-flex btn-brand signInBtn",ref:"signInBtn"},GO={key:0,class:"d-flex w-100"},XO={key:1,class:"d-flex w-100 align-items-center"},qO={key:3,class:"d-flex mt-3"},ZO={class:"form-check form-switch ms-auto"},JO={class:"form-check-label",for:"flexSwitchCheckChecked"},QO={class:"text-muted pb-3 d-block w-100 text-center mt-3"},e3={class:"messageCentre text-body position-absolute end-0 m-3"};function t3(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("SignInInput"),l=Ce("SignInTOTP"),c=Ce("RemoteServerList"),u=Ce("Message");return P(),F("div",{class:"container-fluid login-container-fluid d-flex main flex-column py-4 text-body",style:{"overflow-y":"scroll"},"data-bs-theme":this.theme},[f("div",VO,[f("div",zO,[f("h4",WO,[L(o,{t:"Welcome to"})]),e[7]||(e[7]=f("span",{class:"dashboardLogo display-3"},[f("strong",null,"WGDashboard")],-1)),s.loginError?(P(),F("div",YO,[L(o,{t:this.loginErrorMessage},null,8,["t"])])):se("",!0),this.store.CrossServerConfiguration.Enable?(P(),Ee(c,{key:2})):(P(),F("form",{key:1,onSubmit:e[0]||(e[0]=d=>{d.preventDefault(),this.auth()})},[f("div",HO,[e[2]||(e[2]=f("label",{for:"username",class:"text-left",style:{"font-size":"1rem"}},[f("i",{class:"bi bi-person-circle"})],-1)),L(a,{id:"username",data:this.data,type:"text",placeholder:"Username"},null,8,["data"])]),f("div",jO,[e[3]||(e[3]=f("label",{for:"password",class:"text-left",style:{"font-size":"1rem"}},[f("i",{class:"bi bi-key-fill"})],-1)),L(a,{id:"password",data:this.data,type:"password",placeholder:"Password"},null,8,["data"])]),i.totpEnabled?(P(),F("div",KO,[e[4]||(e[4]=f("label",{for:"totp",class:"text-left",style:{"font-size":"1rem"}},[f("i",{class:"bi bi-lock-fill"})],-1)),L(l,{data:this.data},null,8,["data"])])):se("",!0),f("button",UO,[this.loading?(P(),F("span",XO,[L(o,{t:"Signing In..."}),e[6]||(e[6]=f("span",{class:"spinner-border ms-auto spinner-border-sm",role:"status"},null,-1))])):(P(),F("span",GO,[L(o,{t:"Sign In"}),e[5]||(e[5]=f("i",{class:"ms-auto bi bi-chevron-right"},null,-1))]))],512)],32)),this.store.IsElectronApp?se("",!0):(P(),F("div",qO,[f("div",ZO,[Re(f("input",{"onUpdate:modelValue":e[1]||(e[1]=d=>this.store.CrossServerConfiguration.Enable=d),class:"form-check-input",type:"checkbox",role:"switch",id:"flexSwitchCheckChecked"},null,512),[[Gn,this.store.CrossServerConfiguration.Enable]]),f("label",JO,[L(o,{t:"Access Remote Server"})])])]))])]),f("small",QO,[Be(" WGDashboard "+pe(this.version)+" | Developed with ❤️ by ",1),e[8]||(e[8]=f("a",{href:"https://github.com/donaldzou",target:"_blank"},[f("strong",null,"Donald Zou")],-1))]),f("div",e3,[L(vo,{name:"message",tag:"div",class:"position-relative"},{default:Me(()=>[(P(!0),F(De,null,Ge(r.getMessages.slice().reverse(),d=>(P(),Ee(u,{message:d,key:d.id},null,8,["message"]))),128))]),_:1})])],8,BO)}const n3=He(FO,[["render",t3],["__scopeId","data-v-95530d22"]]),T_={name:"configurationCard",components:{LocaleText:Le},props:{c:{Name:String,Status:Boolean,PublicKey:String,PrivateKey:String},delay:String},data(){return{configurationToggling:!1}},setup(){return{dashboardConfigurationStore:Je()}},methods:{toggle(){this.configurationToggling=!0,Pt("/api/toggleWireguardConfiguration/",{configurationName:this.c.Name},t=>{t.status?this.dashboardConfigurationStore.newMessage("Server",`${this.c.Name} ${t.data?"is on":"is off"}`):this.dashboardConfigurationStore.newMessage("Server",t.message,"danger"),this.c.Status=t.data,this.configurationToggling=!1})}}},r0=()=>{oC(t=>({"1d5189b2":t.delay}))},o0=T_.setup;T_.setup=o0?(t,e)=>(r0(),o0(t,e)):r0;const i3={class:"card conf_card rounded-3 shadow text-decoration-none"},s3={class:"mb-0"},r3={class:"card-title mb-0"},o3={class:"card-footer d-flex gap-2 flex-column"},a3={class:"row"},l3={class:"col-6 col-md-3"},c3={class:"text-primary-emphasis col-6 col-md-3"},u3={class:"text-success-emphasis col-6 col-md-3"},d3={class:"text-md-end col-6 col-md-3"},h3={class:"d-flex align-items-center gap-2"},f3={class:"text-muted"},g3={style:{"word-break":"keep-all"}},p3={class:"mb-0 d-block d-lg-inline-block"},m3={style:{"line-break":"anywhere"}},_3={class:"form-check form-switch ms-auto"},v3=["for"],y3={key:4,class:"spinner-border spinner-border-sm ms-2","aria-hidden":"true"},b3=["disabled","id"];function w3(t,e,n,i,s,r){const o=Ce("RouterLink"),a=Ce("LocaleText");return P(),F("div",i3,[L(o,{to:"/configuration/"+n.c.Name+"/peers",class:"card-body d-flex align-items-center gap-3 flex-wrap text-decoration-none"},{default:Me(()=>[f("h6",s3,[f("span",{class:Se(["dot",{active:n.c.Status}])},null,2)]),f("h6",r3,[f("samp",null,pe(n.c.Name),1)]),e[2]||(e[2]=f("h6",{class:"mb-0 ms-auto"},[f("i",{class:"bi bi-chevron-right"})],-1))]),_:1},8,["to"]),f("div",o3,[f("div",a3,[f("small",l3,[e[3]||(e[3]=f("i",{class:"bi bi-arrow-down-up me-2"},null,-1)),Be(pe(n.c.DataUsage.Total>0?n.c.DataUsage.Total.toFixed(4):0)+" GB ",1)]),f("small",c3,[e[4]||(e[4]=f("i",{class:"bi bi-arrow-down me-2"},null,-1)),Be(pe(n.c.DataUsage.Receive>0?n.c.DataUsage.Receive.toFixed(4):0)+" GB ",1)]),f("small",u3,[e[5]||(e[5]=f("i",{class:"bi bi-arrow-up me-2"},null,-1)),Be(pe(n.c.DataUsage.Sent>0?n.c.DataUsage.Sent.toFixed(4):0)+" GB ",1)]),f("small",d3,[f("span",{class:Se(["dot me-2",{active:n.c.ConnectedPeers>0}])},null,2),Be(" "+pe(n.c.ConnectedPeers)+" / "+pe(n.c.TotalPeers)+" ",1),L(a,{t:"Peers"})])]),f("div",h3,[f("small",f3,[f("strong",g3,[L(a,{t:"Public Key"})])]),f("small",p3,[f("samp",m3,pe(n.c.PublicKey),1)]),f("div",_3,[f("label",{class:"form-check-label",style:{cursor:"pointer"},for:"switch"+n.c.PrivateKey},[!n.c.Status&&this.configurationToggling?(P(),Ee(a,{key:0,t:"Turning Off..."})):n.c.Status&&this.configurationToggling?(P(),Ee(a,{key:1,t:"Turning On..."})):n.c.Status&&!this.configurationToggling?(P(),Ee(a,{key:2,t:"On"})):!n.c.Status&&!this.configurationToggling?(P(),Ee(a,{key:3,t:"Off"})):se("",!0),this.configurationToggling?(P(),F("span",y3)):se("",!0)],8,v3),Re(f("input",{class:"form-check-input",style:{cursor:"pointer"},disabled:this.configurationToggling,type:"checkbox",role:"switch",id:"switch"+n.c.PrivateKey,onChange:e[0]||(e[0]=l=>this.toggle()),"onUpdate:modelValue":e[1]||(e[1]=l=>n.c.Status=l)},null,40,b3),[[Gn,n.c.Status]])])])])])}const x3=He(T_,[["render",w3],["__scopeId","data-v-a85a04a5"]]),E3={name:"configurationList",components:{LocaleText:Le,ConfigurationCard:x3},async setup(){return{wireguardConfigurationsStore:Vn()}},data(){return{configurationLoaded:!1}},async mounted(){await this.wireguardConfigurationsStore.getConfigurations(),this.configurationLoaded=!0,this.wireguardConfigurationsStore.ConfigurationListInterval=setInterval(()=>{this.wireguardConfigurationsStore.getConfigurations()},1e4)},beforeUnmount(){clearInterval(this.wireguardConfigurationsStore.ConfigurationListInterval)}},C3={class:"mt-md-5 mt-3"},S3={class:"container-md"},k3={class:"d-flex mb-4 configurationListTitle align-items-center gap-3"},T3={class:"text-body d-flex"},A3={class:"text-muted",key:"noConfiguration"};function P3(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("RouterLink"),l=Ce("ConfigurationCard");return P(),F("div",C3,[f("div",S3,[f("div",k3,[f("h2",T3,[f("span",null,[L(o,{t:"WireGuard Configurations"})])]),L(a,{to:"/new_configuration",class:"btn btn-dark btn-brand rounded-3 p-2 shadow ms-auto rounded-3"},{default:Me(()=>e[0]||(e[0]=[f("h2",{class:"mb-0",style:{"line-height":"0"}},[f("i",{class:"bi bi-plus-circle"})],-1)])),_:1})]),L(vo,{name:"fade",tag:"div",class:"d-flex flex-column gap-3 mb-4"},{default:Me(()=>[this.configurationLoaded&&this.wireguardConfigurationsStore.Configurations.length===0?(P(),F("p",A3,[L(o,{t:"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."})])):this.configurationLoaded?(P(!0),F(De,{key:1},Ge(this.wireguardConfigurationsStore.Configurations,(c,u)=>(P(),Ee(l,{delay:u*.05+"s",key:c.Name,c},null,8,["delay","c"]))),128)):se("",!0)]),_:1})])])}const M3=He(E3,[["render",P3],["__scopeId","data-v-9f9a5b86"]]);let Sd;const I3=new Uint8Array(16);function D3(){if(!Sd&&(Sd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Sd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Sd(I3)}const $n=[];for(let t=0;t<256;++t)$n.push((t+256).toString(16).slice(1));function R3(t,e=0){return $n[t[e+0]]+$n[t[e+1]]+$n[t[e+2]]+$n[t[e+3]]+"-"+$n[t[e+4]]+$n[t[e+5]]+"-"+$n[t[e+6]]+$n[t[e+7]]+"-"+$n[t[e+8]]+$n[t[e+9]]+"-"+$n[t[e+10]]+$n[t[e+11]]+$n[t[e+12]]+$n[t[e+13]]+$n[t[e+14]]+$n[t[e+15]]}const $3=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),a0={randomUUID:$3};function Bs(t,e,n){if(a0.randomUUID&&!e&&!t)return a0.randomUUID();t=t||{};const i=t.random||(t.rng||D3)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,R3(i)}const L3={components:{LocaleText:Le},props:{targetData:String,title:String,warning:!1,warningText:""},setup(){const t=Je(),e=`input_${Bs()}`;return{store:t,uuid:e}},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 ht("/api/updateDashboardConfigurationItem",{section:"Peers",key:this.targetData,value:this.value},t=>{t.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=t.message),this.changed=!1,this.updating=!1})}}},O3={class:"form-group mb-2"},N3=["for"],F3=["id","disabled"],B3={class:"invalid-feedback"},V3={key:0,class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block mt-1"};function z3(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",O3,[f("label",{for:this.uuid,class:"text-muted mb-1"},[f("strong",null,[f("small",null,[L(o,{t:this.title},null,8,["t"])])])],8,N3),Re(f("input",{type:"text",class:Se(["form-control",{"is-invalid":s.showInvalidFeedback,"is-valid":s.isValid}]),id:this.uuid,"onUpdate:modelValue":e[0]||(e[0]=a=>this.value=a),onKeydown:e[1]||(e[1]=a=>this.changed=!0),onBlur:e[2]||(e[2]=a=>r.useValidation()),disabled:this.updating},null,42,F3),[[ze,this.value]]),f("div",B3,pe(this.invalidFeedback),1),n.warning?(P(),F("div",V3,[f("small",null,[e[3]||(e[3]=f("i",{class:"bi bi-exclamation-triangle-fill me-2"},null,-1)),L(o,{t:n.warningText},null,8,["t"])])])):se("",!0)])}const W3=He(L3,[["render",z3]]),Y3=t=>{},H3={name:"accountSettingsInputUsername",components:{LocaleText:Le},props:{targetData:String,title:String},setup(){const t=Je(),e=`input_${Bs()}`;return{store:t,uuid:e}},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(t){this.changed&&(this.updating=!0,await ht("/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}))}}},j3={class:"form-group mb-2"},K3=["for"],U3=["id","disabled"],G3={class:"invalid-feedback"};function X3(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",j3,[f("label",{for:this.uuid,class:"text-muted mb-1"},[f("strong",null,[f("small",null,[L(o,{t:this.title},null,8,["t"])])])],8,K3),Re(f("input",{type:"text",class:Se(["form-control",{"is-invalid":s.showInvalidFeedback,"is-valid":s.isValid}]),id:this.uuid,"onUpdate:modelValue":e[0]||(e[0]=a=>this.value=a),onKeydown:e[1]||(e[1]=a=>this.changed=!0),onBlur:e[2]||(e[2]=a=>r.useValidation()),disabled:this.updating},null,42,U3),[[ze,this.value]]),f("div",G3,pe(this.invalidFeedback),1)])}const q3=He(H3,[["render",X3]]),Z3={name:"accountSettingsInputPassword",components:{LocaleText:Le},props:{targetData:String,warning:!1,warningText:""},setup(){const t=Je(),e=`input_${Bs()}`;return{store:t,uuid:e}},data(){return{value:{currentPassword:"",newPassword:"",repeatNewPassword:""},invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0}},methods:{async useValidation(){Object.values(this.value).find(t=>t.length===0)===void 0?this.value.newPassword===this.value.repeatNewPassword?await ht("/api/updateDashboardConfigurationItem",{section:"Account",key:this.targetData,value:this.value},t=>{t.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=t.message)}):(this.showInvalidFeedback=!0,this.invalidFeedback="New passwords does not match"):(this.showInvalidFeedback=!0,this.invalidFeedback="Please fill in all required fields.")}},computed:{passwordValid(){return Object.values(this.value).find(t=>t.length===0)===void 0&&this.value.newPassword===this.value.repeatNewPassword}}},J3={class:"d-flex flex-column"},Q3={class:"row"},eN={class:"col-sm"},tN={class:"form-group mb-2"},nN=["for"],iN=["id"],sN={key:0,class:"invalid-feedback d-block"},rN={class:"col-sm"},oN={class:"form-group mb-2"},aN=["for"],lN=["id"],cN={class:"col-sm"},uN={class:"form-group mb-2"},dN=["for"],hN=["id"],fN=["disabled"];function gN(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",J3,[f("div",Q3,[f("div",eN,[f("div",tN,[f("label",{for:"currentPassword_"+this.uuid,class:"text-muted mb-1"},[f("strong",null,[f("small",null,[L(o,{t:"Current Password"})])])],8,nN),Re(f("input",{type:"password",class:Se(["form-control mb-2",{"is-invalid":s.showInvalidFeedback,"is-valid":s.isValid}]),"onUpdate:modelValue":e[0]||(e[0]=a=>this.value.currentPassword=a),id:"currentPassword_"+this.uuid},null,10,iN),[[ze,this.value.currentPassword]]),s.showInvalidFeedback?(P(),F("div",sN,pe(this.invalidFeedback),1)):se("",!0)])]),f("div",rN,[f("div",oN,[f("label",{for:"newPassword_"+this.uuid,class:"text-muted mb-1"},[f("strong",null,[f("small",null,[L(o,{t:"New Password"})])])],8,aN),Re(f("input",{type:"password",class:Se(["form-control mb-2",{"is-invalid":s.showInvalidFeedback,"is-valid":s.isValid}]),"onUpdate:modelValue":e[1]||(e[1]=a=>this.value.newPassword=a),id:"newPassword_"+this.uuid},null,10,lN),[[ze,this.value.newPassword]])])]),f("div",cN,[f("div",uN,[f("label",{for:"repeatNewPassword_"+this.uuid,class:"text-muted mb-1"},[f("strong",null,[f("small",null,[L(o,{t:"Repeat New Password"})])])],8,dN),Re(f("input",{type:"password",class:Se(["form-control mb-2",{"is-invalid":s.showInvalidFeedback,"is-valid":s.isValid}]),"onUpdate:modelValue":e[2]||(e[2]=a=>this.value.repeatNewPassword=a),id:"repeatNewPassword_"+this.uuid},null,10,hN),[[ze,this.value.repeatNewPassword]])])])]),f("button",{disabled:!this.passwordValid,class:"ms-auto btn bg-success-subtle text-success-emphasis border-1 border-success-subtle rounded-3 shadow-sm",onClick:e[3]||(e[3]=a=>this.useValidation())},[e[4]||(e[4]=f("i",{class:"bi bi-save2-fill me-2"},null,-1)),L(o,{t:"Update Password"})],8,fN)])}const pN=He(Z3,[["render",gN]]),mN={name:"dashboardSettingsInputWireguardConfigurationPath",components:{LocaleText:Le},props:{targetData:String,title:String,warning:!1,warningText:""},setup(){const t=Je(),e=Vn(),n=`input_${Bs()}`;return{store:t,uuid:n,WireguardConfigurationStore:e}},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&&(this.updating=!0,await ht("/api/updateDashboardConfigurationItem",{section:"Server",key:this.targetData,value:this.value},t=>{t.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.WireguardConfigurationStore.getConfigurations(),this.store.newMessage("Server","WireGuard configuration path saved","success")):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=t.message),this.changed=!1,this.updating=!1}))}}},_N={class:"form-group"},vN=["for"],yN={class:"d-flex gap-2 align-items-start"},bN={class:"flex-grow-1"},wN=["id","disabled"],xN={class:"invalid-feedback fw-bold"},EN=["disabled"],CN={key:0,class:"bi bi-save2-fill"},SN={key:1,class:"spinner-border spinner-border-sm"},kN={key:0,class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block mt-1 mb-2"};function TN(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",_N,[f("label",{for:this.uuid,class:"text-muted mb-1"},[f("strong",null,[f("small",null,[L(o,{t:this.title},null,8,["t"])])])],8,vN),f("div",yN,[f("div",bN,[Re(f("input",{type:"text",class:Se(["form-control rounded-3",{"is-invalid":this.showInvalidFeedback,"is-valid":this.isValid}]),id:this.uuid,"onUpdate:modelValue":e[0]||(e[0]=a=>this.value=a),onKeydown:e[1]||(e[1]=a=>this.changed=!0),disabled:this.updating},null,42,wN),[[ze,this.value]]),f("div",xN,pe(this.invalidFeedback),1)]),f("button",{onClick:e[2]||(e[2]=a=>this.useValidation()),disabled:!this.changed,class:"ms-auto btn rounded-3 border-success-subtle bg-success-subtle text-success-emphasis"},[this.updating?(P(),F("span",SN)):(P(),F("i",CN))],8,EN)]),n.warning?(P(),F("div",kN,[f("small",null,[e[3]||(e[3]=f("i",{class:"bi bi-exclamation-triangle-fill me-2"},null,-1)),L(o,{t:n.warningText},null,8,["t"])])])):se("",!0)])}const AN=He(mN,[["render",TN]]),PN={name:"dashboardTheme",components:{LocaleText:Le},setup(){return{dashboardConfigurationStore:Je()}},methods:{async switchTheme(t){await ht("/api/updateDashboardConfigurationItem",{section:"Server",key:"dashboard_theme",value:t},e=>{e.status&&(this.dashboardConfigurationStore.Configuration.Server.dashboard_theme=t)})}}},MN={class:"card mb-4 shadow rounded-3"},IN={class:"card-header"},DN={class:"card-body d-flex gap-2"};function RN(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",MN,[f("p",IN,[L(o,{t:"Dashboard Theme"})]),f("div",DN,[f("button",{class:Se(["btn bg-primary-subtle text-primary-emphasis flex-grow-1",{active:this.dashboardConfigurationStore.Configuration.Server.dashboard_theme==="light"}]),onClick:e[0]||(e[0]=a=>this.switchTheme("light"))},[e[2]||(e[2]=f("i",{class:"bi bi-sun-fill me-2"},null,-1)),L(o,{t:"Light"})],2),f("button",{class:Se(["btn bg-primary-subtle text-primary-emphasis flex-grow-1",{active:this.dashboardConfigurationStore.Configuration.Server.dashboard_theme==="dark"}]),onClick:e[1]||(e[1]=a=>this.switchTheme("dark"))},[e[3]||(e[3]=f("i",{class:"bi bi-moon-fill me-2"},null,-1)),L(o,{t:"Dark"})],2)])])}const $N=He(PN,[["render",RN]]),LN={name:"dashboardSettingsInputIPAddressAndPort",props:{},setup(){const t=Je(),e=`input_${Bs()}`;return{store:t,uuid:e}},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 ht("/api/updateDashboardConfigurationItem",{section:"Server",key:this.targetData,value:this.value},t=>{t.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=t.message)})}}},ON={class:"invalid-feedback d-block mt-0"},NN={class:"row"},FN={class:"form-group mb-2 col-sm"},BN=["for"],VN=["id"],zN={class:"form-group col-sm"},WN=["for"],YN=["id"];function HN(t,e,n,i,s,r){return P(),F("div",null,[f("div",ON,pe(this.invalidFeedback),1),f("div",NN,[f("div",FN,[f("label",{for:"app_ip_"+this.uuid,class:"text-muted mb-1"},e[2]||(e[2]=[f("strong",null,[f("small",null,"Dashboard IP Address")],-1)]),8,BN),Re(f("input",{type:"text",class:"form-control mb-2",id:"app_ip_"+this.uuid,"onUpdate:modelValue":e[0]||(e[0]=o=>this.app_ip=o)},null,8,VN),[[ze,this.app_ip]]),e[3]||(e[3]=f("div",{class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block"},[f("small",null,[f("i",{class:"bi bi-exclamation-triangle-fill me-2"}),f("code",null,"0.0.0.0"),Be(" means it can be access by anyone with your server IP Address.")])],-1))]),f("div",zN,[f("label",{for:"app_port_"+this.uuid,class:"text-muted mb-1"},e[4]||(e[4]=[f("strong",null,[f("small",null,"Dashboard Port")],-1)]),8,WN),Re(f("input",{type:"text",class:"form-control mb-2",id:"app_port_"+this.uuid,"onUpdate:modelValue":e[1]||(e[1]=o=>this.app_port=o)},null,8,YN),[[ze,this.app_port]])])]),e[5]||(e[5]=f("button",{class:"btn btn-success btn-sm fw-bold rounded-3"},[f("i",{class:"bi bi-floppy-fill me-2"}),Be("Update Dashboard Settings & Restart ")],-1))])}const jN=He(LN,[["render",HN]]);function Ye(t){const e=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&e==="[object Date]"?new t.constructor(+t):typeof t=="number"||e==="[object Number]"||typeof t=="string"||e==="[object String]"?new Date(t):new Date(NaN)}function vt(t,e){return t instanceof Date?new t.constructor(e):new Date(e)}function rs(t,e){const n=Ye(t);return isNaN(e)?vt(t,NaN):(e&&n.setDate(n.getDate()+e),n)}function ds(t,e){const n=Ye(t);if(isNaN(e))return vt(t,NaN);if(!e)return n;const i=n.getDate(),s=vt(t,n.getTime());s.setMonth(n.getMonth()+e+1,0);const r=s.getDate();return i>=r?s:(n.setFullYear(s.getFullYear(),s.getMonth(),i),n)}function BC(t,e){const{years:n=0,months:i=0,weeks:s=0,days:r=0,hours:o=0,minutes:a=0,seconds:l=0}=e,c=Ye(t),u=i||n?ds(c,i+n*12):c,d=r||s?rs(u,r+s*7):u,h=a+o*60,p=(l+h*60)*1e3;return vt(t,d.getTime()+p)}function KN(t,e){const n=+Ye(t);return vt(t,n+e)}const VC=6048e5,UN=864e5,GN=6e4,zC=36e5,XN=1e3;function qN(t,e){return KN(t,e*zC)}let ZN={};function ya(){return ZN}function ps(t,e){const n=ya(),i=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=Ye(t),r=s.getDay(),o=(r=s.getTime()?n+1:e.getTime()>=o.getTime()?n:n-1}function l0(t){const e=Ye(t);return e.setHours(0,0,0,0),e}function Sh(t){const e=Ye(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function YC(t,e){const n=l0(t),i=l0(e),s=+n-Sh(n),r=+i-Sh(i);return Math.round((s-r)/UN)}function JN(t){const e=WC(t),n=vt(t,0);return n.setFullYear(e,0,4),n.setHours(0,0,0,0),Sl(n)}function QN(t,e){const n=e*3;return ds(t,n)}function A_(t,e){return ds(t,e*12)}function c0(t,e){const n=Ye(t),i=Ye(e),s=n.getTime()-i.getTime();return s<0?-1:s>0?1:s}function HC(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Hc(t){if(!HC(t)&&typeof t!="number")return!1;const e=Ye(t);return!isNaN(Number(e))}function u0(t){const e=Ye(t);return Math.trunc(e.getMonth()/3)+1}function eF(t,e){const n=Ye(t),i=Ye(e);return n.getFullYear()-i.getFullYear()}function tF(t,e){const n=Ye(t),i=Ye(e),s=c0(n,i),r=Math.abs(eF(n,i));n.setFullYear(1584),i.setFullYear(1584);const o=c0(n,i)===-s,a=s*(r-+o);return a===0?0:a}function jC(t,e){const n=Ye(t.start),i=Ye(t.end);let s=+n>+i;const r=s?+n:+i,o=s?i:n;o.setHours(0,0,0,0);let a=1;const l=[];for(;+o<=r;)l.push(Ye(o)),o.setDate(o.getDate()+a),o.setHours(0,0,0,0);return s?l.reverse():l}function Xo(t){const e=Ye(t),n=e.getMonth(),i=n-n%3;return e.setMonth(i,1),e.setHours(0,0,0,0),e}function nF(t,e){const n=Ye(t.start),i=Ye(t.end);let s=+n>+i;const r=s?+Xo(n):+Xo(i);let o=Xo(s?i:n),a=1;const l=[];for(;+o<=r;)l.push(Ye(o)),o=QN(o,a);return s?l.reverse():l}function iF(t){const e=Ye(t);return e.setDate(1),e.setHours(0,0,0,0),e}function KC(t){const e=Ye(t),n=e.getFullYear();return e.setFullYear(n+1,0,0),e.setHours(23,59,59,999),e}function lu(t){const e=Ye(t),n=vt(t,0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}function UC(t,e){const n=ya(),i=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=Ye(t),r=s.getDay(),o=(r{let i;const s=sF[t];return typeof s=="string"?i=s:e===1?i=s.one:i=s.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function $g(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const oF={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},aF={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},lF={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cF={date:$g({formats:oF,defaultWidth:"full"}),time:$g({formats:aF,defaultWidth:"full"}),dateTime:$g({formats:lF,defaultWidth:"full"})},uF={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},dF=(t,e,n,i)=>uF[t];function cc(t){return(e,n)=>{const i=n?.context?String(n.context):"standalone";let s;if(i==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,a=n?.width?String(n.width):o;s=t.formattingValues[a]||t.formattingValues[o]}else{const o=t.defaultWidth,a=n?.width?String(n.width):t.defaultWidth;s=t.values[a]||t.values[o]}const r=t.argumentCallback?t.argumentCallback(e):e;return s[r]}}const hF={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},fF={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},gF={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},pF={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},mF={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},_F={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},vF=(t,e)=>{const n=Number(t),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},yF={ordinalNumber:vF,era:cc({values:hF,defaultWidth:"wide"}),quarter:cc({values:fF,defaultWidth:"wide",argumentCallback:t=>t-1}),month:cc({values:gF,defaultWidth:"wide"}),day:cc({values:pF,defaultWidth:"wide"}),dayPeriod:cc({values:mF,defaultWidth:"wide",formattingValues:_F,defaultFormattingWidth:"wide"})};function uc(t){return(e,n={})=>{const i=n.width,s=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],r=e.match(s);if(!r)return null;const o=r[0],a=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?wF(a,d=>d.test(o)):bF(a,d=>d.test(o));let c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=e.slice(o.length);return{value:c,rest:u}}}function bF(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function wF(t,e){for(let n=0;n{const i=e.match(t.matchPattern);if(!i)return null;const s=i[0],r=e.match(t.parsePattern);if(!r)return null;let o=t.valueCallback?t.valueCallback(r[0]):r[0];o=n.valueCallback?n.valueCallback(o):o;const a=e.slice(s.length);return{value:o,rest:a}}}const EF=/^(\d+)(th|st|nd|rd)?/i,CF=/\d+/i,SF={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},kF={any:[/^b/i,/^(a|c)/i]},TF={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},AF={any:[/1/i,/2/i,/3/i,/4/i]},PF={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},MF={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},IF={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},DF={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},RF={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},$F={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},LF={ordinalNumber:xF({matchPattern:EF,parsePattern:CF,valueCallback:t=>parseInt(t,10)}),era:uc({matchPatterns:SF,defaultMatchWidth:"wide",parsePatterns:kF,defaultParseWidth:"any"}),quarter:uc({matchPatterns:TF,defaultMatchWidth:"wide",parsePatterns:AF,defaultParseWidth:"any",valueCallback:t=>t+1}),month:uc({matchPatterns:PF,defaultMatchWidth:"wide",parsePatterns:MF,defaultParseWidth:"any"}),day:uc({matchPatterns:IF,defaultMatchWidth:"wide",parsePatterns:DF,defaultParseWidth:"any"}),dayPeriod:uc({matchPatterns:RF,defaultMatchWidth:"any",parsePatterns:$F,defaultParseWidth:"any"})},GC={code:"en-US",formatDistance:rF,formatLong:cF,formatRelative:dF,localize:yF,match:LF,options:{weekStartsOn:0,firstWeekContainsDate:1}};function OF(t){const e=Ye(t);return YC(e,lu(e))+1}function P_(t){const e=Ye(t),n=+Sl(e)-+JN(e);return Math.round(n/VC)+1}function M_(t,e){const n=Ye(t),i=n.getFullYear(),s=ya(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,o=vt(t,0);o.setFullYear(i+1,0,r),o.setHours(0,0,0,0);const a=ps(o,e),l=vt(t,0);l.setFullYear(i,0,r),l.setHours(0,0,0,0);const c=ps(l,e);return n.getTime()>=a.getTime()?i+1:n.getTime()>=c.getTime()?i:i-1}function NF(t,e){const n=ya(),i=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=M_(t,e),r=vt(t,0);return r.setFullYear(s,0,i),r.setHours(0,0,0,0),ps(r,e)}function I_(t,e){const n=Ye(t),i=+ps(n,e)-+NF(n,e);return Math.round(i/VC)+1}function St(t,e){const n=t<0?"-":"",i=Math.abs(t).toString().padStart(e,"0");return n+i}const Pr={y(t,e){const n=t.getFullYear(),i=n>0?n:1-n;return St(e==="yy"?i%100:i,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):St(n+1,2)},d(t,e){return St(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,e){return St(t.getHours()%12||12,e.length)},H(t,e){return St(t.getHours(),e.length)},m(t,e){return St(t.getMinutes(),e.length)},s(t,e){return St(t.getSeconds(),e.length)},S(t,e){const n=e.length,i=t.getMilliseconds(),s=Math.trunc(i*Math.pow(10,n-3));return St(s,e.length)}},$a={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},h0={G:function(t,e,n){const i=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const i=t.getFullYear(),s=i>0?i:1-i;return n.ordinalNumber(s,{unit:"year"})}return Pr.y(t,e)},Y:function(t,e,n,i){const s=M_(t,i),r=s>0?s:1-s;if(e==="YY"){const o=r%100;return St(o,2)}return e==="Yo"?n.ordinalNumber(r,{unit:"year"}):St(r,e.length)},R:function(t,e){const n=WC(t);return St(n,e.length)},u:function(t,e){const n=t.getFullYear();return St(n,e.length)},Q:function(t,e,n){const i=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(i);case"QQ":return St(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,e,n){const i=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(i);case"qq":return St(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,e,n){const i=t.getMonth();switch(e){case"M":case"MM":return Pr.M(t,e);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(t,e,n){const i=t.getMonth();switch(e){case"L":return String(i+1);case"LL":return St(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(t,e,n,i){const s=I_(t,i);return e==="wo"?n.ordinalNumber(s,{unit:"week"}):St(s,e.length)},I:function(t,e,n){const i=P_(t);return e==="Io"?n.ordinalNumber(i,{unit:"week"}):St(i,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):Pr.d(t,e)},D:function(t,e,n){const i=OF(t);return e==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):St(i,e.length)},E:function(t,e,n){const i=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(t,e,n,i){const s=t.getDay(),r=(s-i.weekStartsOn+8)%7||7;switch(e){case"e":return String(r);case"ee":return St(r,2);case"eo":return n.ordinalNumber(r,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(t,e,n,i){const s=t.getDay(),r=(s-i.weekStartsOn+8)%7||7;switch(e){case"c":return String(r);case"cc":return St(r,e.length);case"co":return n.ordinalNumber(r,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(t,e,n){const i=t.getDay(),s=i===0?7:i;switch(e){case"i":return String(s);case"ii":return St(s,e.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(t,e,n){const s=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,e,n){const i=t.getHours();let s;switch(i===12?s=$a.noon:i===0?s=$a.midnight:s=i/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,e,n){const i=t.getHours();let s;switch(i>=17?s=$a.evening:i>=12?s=$a.afternoon:i>=4?s=$a.morning:s=$a.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let i=t.getHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return Pr.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):Pr.H(t,e)},K:function(t,e,n){const i=t.getHours()%12;return e==="Ko"?n.ordinalNumber(i,{unit:"hour"}):St(i,e.length)},k:function(t,e,n){let i=t.getHours();return i===0&&(i=24),e==="ko"?n.ordinalNumber(i,{unit:"hour"}):St(i,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):Pr.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):Pr.s(t,e)},S:function(t,e){return Pr.S(t,e)},X:function(t,e,n){const i=t.getTimezoneOffset();if(i===0)return"Z";switch(e){case"X":return g0(i);case"XXXX":case"XX":return Yo(i);case"XXXXX":case"XXX":default:return Yo(i,":")}},x:function(t,e,n){const i=t.getTimezoneOffset();switch(e){case"x":return g0(i);case"xxxx":case"xx":return Yo(i);case"xxxxx":case"xxx":default:return Yo(i,":")}},O:function(t,e,n){const i=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+f0(i,":");case"OOOO":default:return"GMT"+Yo(i,":")}},z:function(t,e,n){const i=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+f0(i,":");case"zzzz":default:return"GMT"+Yo(i,":")}},t:function(t,e,n){const i=Math.trunc(t.getTime()/1e3);return St(i,e.length)},T:function(t,e,n){const i=t.getTime();return St(i,e.length)}};function f0(t,e=""){const n=t>0?"-":"+",i=Math.abs(t),s=Math.trunc(i/60),r=i%60;return r===0?n+String(s):n+String(s)+e+St(r,2)}function g0(t,e){return t%60===0?(t>0?"-":"+")+St(Math.abs(t)/60,2):Yo(t,e)}function Yo(t,e=""){const n=t>0?"-":"+",i=Math.abs(t),s=St(Math.trunc(i/60),2),r=St(i%60,2);return n+s+e+r}const p0=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},XC=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},FF=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],i=n[1],s=n[2];if(!s)return p0(t,e);let r;switch(i){case"P":r=e.dateTime({width:"short"});break;case"PP":r=e.dateTime({width:"medium"});break;case"PPP":r=e.dateTime({width:"long"});break;case"PPPP":default:r=e.dateTime({width:"full"});break}return r.replace("{{date}}",p0(i,e)).replace("{{time}}",XC(s,e))},tm={p:XC,P:FF},BF=/^D+$/,VF=/^Y+$/,zF=["D","DD","YY","YYYY"];function qC(t){return BF.test(t)}function ZC(t){return VF.test(t)}function nm(t,e,n){const i=WF(t,e,n);if(console.warn(i),zF.includes(t))throw new RangeError(i)}function WF(t,e,n){const i=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${i} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const YF=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,HF=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,jF=/^'([^]*?)'?$/,KF=/''/g,UF=/[a-zA-Z]/;function Ls(t,e,n){const i=ya(),s=n?.locale??i.locale??GC,r=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,a=Ye(t);if(!Hc(a))throw new RangeError("Invalid time value");let l=e.match(HF).map(u=>{const d=u[0];if(d==="p"||d==="P"){const h=tm[d];return h(u,s.formatLong)}return u}).join("").match(YF).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const d=u[0];if(d==="'")return{isToken:!1,value:GF(u)};if(h0[d])return{isToken:!0,value:u};if(d.match(UF))throw new RangeError("Format string contains an unescaped latin alphabet character `"+d+"`");return{isToken:!1,value:u}});s.localize.preprocessor&&(l=s.localize.preprocessor(a,l));const c={firstWeekContainsDate:r,weekStartsOn:o,locale:s};return l.map(u=>{if(!u.isToken)return u.value;const d=u.value;(!n?.useAdditionalWeekYearTokens&&ZC(d)||!n?.useAdditionalDayOfYearTokens&&qC(d))&&nm(d,e,String(t));const h=h0[d[0]];return h(a,d,s.localize,c)}).join("")}function GF(t){const e=t.match(jF);return e?e[1].replace(KF,"'"):t}function XF(t){return Ye(t).getDay()}function qF(t){const e=Ye(t),n=e.getFullYear(),i=e.getMonth(),s=vt(t,0);return s.setFullYear(n,i+1,0),s.setHours(0,0,0,0),s.getDate()}function ZF(){return Object.assign({},ya())}function vr(t){return Ye(t).getHours()}function JF(t){let n=Ye(t).getDay();return n===0&&(n=7),n}function ao(t){return Ye(t).getMinutes()}function at(t){return Ye(t).getMonth()}function kl(t){return Ye(t).getSeconds()}function qe(t){return Ye(t).getFullYear()}function Tl(t,e){const n=Ye(t),i=Ye(e);return n.getTime()>i.getTime()}function cu(t,e){const n=Ye(t),i=Ye(e);return+n<+i}function tl(t,e){const n=Ye(t),i=Ye(e);return+n==+i}function QF(t,e){const n=e instanceof Date?vt(e,0):new e(0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}const e5=10;class JC{subPriority=0;validate(e,n){return!0}}class t5 extends JC{constructor(e,n,i,s,r){super(),this.value=e,this.validateValue=n,this.setValue=i,this.priority=s,r&&(this.subPriority=r)}validate(e,n){return this.validateValue(e,this.value,n)}set(e,n,i){return this.setValue(e,n,this.value,i)}}class n5 extends JC{priority=e5;subPriority=-1;set(e,n){return n.timestampIsSet?e:vt(e,QF(e,Date))}}class bt{run(e,n,i,s){const r=this.parse(e,n,i,s);return r?{setter:new t5(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}validate(e,n,i){return!0}}class i5 extends bt{priority=140;parse(e,n,i){switch(n){case"G":case"GG":case"GGG":return i.era(e,{width:"abbreviated"})||i.era(e,{width:"narrow"});case"GGGGG":return i.era(e,{width:"narrow"});case"GGGG":default:return i.era(e,{width:"wide"})||i.era(e,{width:"abbreviated"})||i.era(e,{width:"narrow"})}}set(e,n,i){return n.era=i,e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]}const cn={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Cs={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function un(t,e){return t&&{value:e(t.value),rest:t.rest}}function qt(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function Ss(t,e){const n=e.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:e.slice(1)};const i=n[1]==="+"?1:-1,s=n[2]?parseInt(n[2],10):0,r=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:i*(s*zC+r*GN+o*XN),rest:e.slice(n[0].length)}}function QC(t){return qt(cn.anyDigitsSigned,t)}function on(t,e){switch(t){case 1:return qt(cn.singleDigit,e);case 2:return qt(cn.twoDigits,e);case 3:return qt(cn.threeDigits,e);case 4:return qt(cn.fourDigits,e);default:return qt(new RegExp("^\\d{1,"+t+"}"),e)}}function kh(t,e){switch(t){case 1:return qt(cn.singleDigitSigned,e);case 2:return qt(cn.twoDigitsSigned,e);case 3:return qt(cn.threeDigitsSigned,e);case 4:return qt(cn.fourDigitsSigned,e);default:return qt(new RegExp("^-?\\d{1,"+t+"}"),e)}}function D_(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function eS(t,e){const n=e>0,i=n?e:1-e;let s;if(i<=50)s=t||100;else{const r=i+50,o=Math.trunc(r/100)*100,a=t>=r%100;s=t+o-(a?100:0)}return n?s:1-s}function tS(t){return t%400===0||t%4===0&&t%100!==0}class s5 extends bt{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,n,i){const s=r=>({year:r,isTwoDigitYear:n==="yy"});switch(n){case"y":return un(on(4,e),s);case"yo":return un(i.ordinalNumber(e,{unit:"year"}),s);default:return un(on(n.length,e),s)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,i){const s=e.getFullYear();if(i.isTwoDigitYear){const o=eS(i.year,s);return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}const r=!("era"in n)||n.era===1?i.year:1-i.year;return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}}class r5 extends bt{priority=130;parse(e,n,i){const s=r=>({year:r,isTwoDigitYear:n==="YY"});switch(n){case"Y":return un(on(4,e),s);case"Yo":return un(i.ordinalNumber(e,{unit:"year"}),s);default:return un(on(n.length,e),s)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,i,s){const r=M_(e,s);if(i.isTwoDigitYear){const a=eS(i.year,r);return e.setFullYear(a,0,s.firstWeekContainsDate),e.setHours(0,0,0,0),ps(e,s)}const o=!("era"in n)||n.era===1?i.year:1-i.year;return e.setFullYear(o,0,s.firstWeekContainsDate),e.setHours(0,0,0,0),ps(e,s)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class o5 extends bt{priority=130;parse(e,n){return kh(n==="R"?4:n.length,e)}set(e,n,i){const s=vt(e,0);return s.setFullYear(i,0,4),s.setHours(0,0,0,0),Sl(s)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class a5 extends bt{priority=130;parse(e,n){return kh(n==="u"?4:n.length,e)}set(e,n,i){return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class l5 extends bt{priority=120;parse(e,n,i){switch(n){case"Q":case"QQ":return on(n.length,e);case"Qo":return i.ordinalNumber(e,{unit:"quarter"});case"QQQ":return i.quarter(e,{width:"abbreviated",context:"formatting"})||i.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(e,{width:"wide",context:"formatting"})||i.quarter(e,{width:"abbreviated",context:"formatting"})||i.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=1&&n<=4}set(e,n,i){return e.setMonth((i-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class c5 extends bt{priority=120;parse(e,n,i){switch(n){case"q":case"qq":return on(n.length,e);case"qo":return i.ordinalNumber(e,{unit:"quarter"});case"qqq":return i.quarter(e,{width:"abbreviated",context:"standalone"})||i.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(e,{width:"wide",context:"standalone"})||i.quarter(e,{width:"abbreviated",context:"standalone"})||i.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=1&&n<=4}set(e,n,i){return e.setMonth((i-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class u5 extends bt{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,n,i){const s=r=>r-1;switch(n){case"M":return un(qt(cn.month,e),s);case"MM":return un(on(2,e),s);case"Mo":return un(i.ordinalNumber(e,{unit:"month"}),s);case"MMM":return i.month(e,{width:"abbreviated",context:"formatting"})||i.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(e,{width:"wide",context:"formatting"})||i.month(e,{width:"abbreviated",context:"formatting"})||i.month(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=11}set(e,n,i){return e.setMonth(i,1),e.setHours(0,0,0,0),e}}class d5 extends bt{priority=110;parse(e,n,i){const s=r=>r-1;switch(n){case"L":return un(qt(cn.month,e),s);case"LL":return un(on(2,e),s);case"Lo":return un(i.ordinalNumber(e,{unit:"month"}),s);case"LLL":return i.month(e,{width:"abbreviated",context:"standalone"})||i.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(e,{width:"wide",context:"standalone"})||i.month(e,{width:"abbreviated",context:"standalone"})||i.month(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=11}set(e,n,i){return e.setMonth(i,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function h5(t,e,n){const i=Ye(t),s=I_(i,n)-e;return i.setDate(i.getDate()-s*7),i}class f5 extends bt{priority=100;parse(e,n,i){switch(n){case"w":return qt(cn.week,e);case"wo":return i.ordinalNumber(e,{unit:"week"});default:return on(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,i,s){return ps(h5(e,i,s),s)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function g5(t,e){const n=Ye(t),i=P_(n)-e;return n.setDate(n.getDate()-i*7),n}class p5 extends bt{priority=100;parse(e,n,i){switch(n){case"I":return qt(cn.week,e);case"Io":return i.ordinalNumber(e,{unit:"week"});default:return on(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,i){return Sl(g5(e,i))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const m5=[31,28,31,30,31,30,31,31,30,31,30,31],_5=[31,29,31,30,31,30,31,31,30,31,30,31];class v5 extends bt{priority=90;subPriority=1;parse(e,n,i){switch(n){case"d":return qt(cn.date,e);case"do":return i.ordinalNumber(e,{unit:"date"});default:return on(n.length,e)}}validate(e,n){const i=e.getFullYear(),s=tS(i),r=e.getMonth();return s?n>=1&&n<=_5[r]:n>=1&&n<=m5[r]}set(e,n,i){return e.setDate(i),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class y5 extends bt{priority=90;subpriority=1;parse(e,n,i){switch(n){case"D":case"DD":return qt(cn.dayOfYear,e);case"Do":return i.ordinalNumber(e,{unit:"date"});default:return on(n.length,e)}}validate(e,n){const i=e.getFullYear();return tS(i)?n>=1&&n<=366:n>=1&&n<=365}set(e,n,i){return e.setMonth(0,i),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function R_(t,e,n){const i=ya(),s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,r=Ye(t),o=r.getDay(),l=(e%7+7)%7,c=7-s,u=e<0||e>6?e-(o+c)%7:(l+c)%7-(o+c)%7;return rs(r,u)}class b5 extends bt{priority=90;parse(e,n,i){switch(n){case"E":case"EE":case"EEE":return i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(e,{width:"wide",context:"formatting"})||i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,i,s){return e=R_(e,i,s),e.setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]}class w5 extends bt{priority=90;parse(e,n,i,s){const r=o=>{const a=Math.floor((o-1)/7)*7;return(o+s.weekStartsOn+6)%7+a};switch(n){case"e":case"ee":return un(on(n.length,e),r);case"eo":return un(i.ordinalNumber(e,{unit:"day"}),r);case"eee":return i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"});case"eeeee":return i.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(e,{width:"wide",context:"formatting"})||i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,i,s){return e=R_(e,i,s),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class x5 extends bt{priority=90;parse(e,n,i,s){const r=o=>{const a=Math.floor((o-1)/7)*7;return(o+s.weekStartsOn+6)%7+a};switch(n){case"c":case"cc":return un(on(n.length,e),r);case"co":return un(i.ordinalNumber(e,{unit:"day"}),r);case"ccc":return i.day(e,{width:"abbreviated",context:"standalone"})||i.day(e,{width:"short",context:"standalone"})||i.day(e,{width:"narrow",context:"standalone"});case"ccccc":return i.day(e,{width:"narrow",context:"standalone"});case"cccccc":return i.day(e,{width:"short",context:"standalone"})||i.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(e,{width:"wide",context:"standalone"})||i.day(e,{width:"abbreviated",context:"standalone"})||i.day(e,{width:"short",context:"standalone"})||i.day(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=6}set(e,n,i,s){return e=R_(e,i,s),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function E5(t,e){const n=Ye(t),i=JF(n),s=e-i;return rs(n,s)}class C5 extends bt{priority=90;parse(e,n,i){const s=r=>r===0?7:r;switch(n){case"i":case"ii":return on(n.length,e);case"io":return i.ordinalNumber(e,{unit:"day"});case"iii":return un(i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"}),s);case"iiiii":return un(i.day(e,{width:"narrow",context:"formatting"}),s);case"iiiiii":return un(i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"}),s);case"iiii":default:return un(i.day(e,{width:"wide",context:"formatting"})||i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"}),s)}}validate(e,n){return n>=1&&n<=7}set(e,n,i){return e=E5(e,i),e.setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class S5 extends bt{priority=80;parse(e,n,i){switch(n){case"a":case"aa":case"aaa":return i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(e,{width:"wide",context:"formatting"})||i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,i){return e.setHours(D_(i),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]}class k5 extends bt{priority=80;parse(e,n,i){switch(n){case"b":case"bb":case"bbb":return i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(e,{width:"wide",context:"formatting"})||i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,i){return e.setHours(D_(i),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]}class T5 extends bt{priority=80;parse(e,n,i){switch(n){case"B":case"BB":case"BBB":return i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(e,{width:"wide",context:"formatting"})||i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,i){return e.setHours(D_(i),0,0,0),e}incompatibleTokens=["a","b","t","T"]}class A5 extends bt{priority=70;parse(e,n,i){switch(n){case"h":return qt(cn.hour12h,e);case"ho":return i.ordinalNumber(e,{unit:"hour"});default:return on(n.length,e)}}validate(e,n){return n>=1&&n<=12}set(e,n,i){const s=e.getHours()>=12;return s&&i<12?e.setHours(i+12,0,0,0):!s&&i===12?e.setHours(0,0,0,0):e.setHours(i,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]}class P5 extends bt{priority=70;parse(e,n,i){switch(n){case"H":return qt(cn.hour23h,e);case"Ho":return i.ordinalNumber(e,{unit:"hour"});default:return on(n.length,e)}}validate(e,n){return n>=0&&n<=23}set(e,n,i){return e.setHours(i,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]}class M5 extends bt{priority=70;parse(e,n,i){switch(n){case"K":return qt(cn.hour11h,e);case"Ko":return i.ordinalNumber(e,{unit:"hour"});default:return on(n.length,e)}}validate(e,n){return n>=0&&n<=11}set(e,n,i){return e.getHours()>=12&&i<12?e.setHours(i+12,0,0,0):e.setHours(i,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]}class I5 extends bt{priority=70;parse(e,n,i){switch(n){case"k":return qt(cn.hour24h,e);case"ko":return i.ordinalNumber(e,{unit:"hour"});default:return on(n.length,e)}}validate(e,n){return n>=1&&n<=24}set(e,n,i){const s=i<=24?i%24:i;return e.setHours(s,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]}class D5 extends bt{priority=60;parse(e,n,i){switch(n){case"m":return qt(cn.minute,e);case"mo":return i.ordinalNumber(e,{unit:"minute"});default:return on(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,i){return e.setMinutes(i,0,0),e}incompatibleTokens=["t","T"]}class R5 extends bt{priority=50;parse(e,n,i){switch(n){case"s":return qt(cn.second,e);case"so":return i.ordinalNumber(e,{unit:"second"});default:return on(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,i){return e.setSeconds(i,0),e}incompatibleTokens=["t","T"]}class $5 extends bt{priority=30;parse(e,n){const i=s=>Math.trunc(s*Math.pow(10,-n.length+3));return un(on(n.length,e),i)}set(e,n,i){return e.setMilliseconds(i),e}incompatibleTokens=["t","T"]}class L5 extends bt{priority=10;parse(e,n){switch(n){case"X":return Ss(Cs.basicOptionalMinutes,e);case"XX":return Ss(Cs.basic,e);case"XXXX":return Ss(Cs.basicOptionalSeconds,e);case"XXXXX":return Ss(Cs.extendedOptionalSeconds,e);case"XXX":default:return Ss(Cs.extended,e)}}set(e,n,i){return n.timestampIsSet?e:vt(e,e.getTime()-Sh(e)-i)}incompatibleTokens=["t","T","x"]}class O5 extends bt{priority=10;parse(e,n){switch(n){case"x":return Ss(Cs.basicOptionalMinutes,e);case"xx":return Ss(Cs.basic,e);case"xxxx":return Ss(Cs.basicOptionalSeconds,e);case"xxxxx":return Ss(Cs.extendedOptionalSeconds,e);case"xxx":default:return Ss(Cs.extended,e)}}set(e,n,i){return n.timestampIsSet?e:vt(e,e.getTime()-Sh(e)-i)}incompatibleTokens=["t","T","X"]}class N5 extends bt{priority=40;parse(e){return QC(e)}set(e,n,i){return[vt(e,i*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class F5 extends bt{priority=20;parse(e){return QC(e)}set(e,n,i){return[vt(e,i),{timestampIsSet:!0}]}incompatibleTokens="*"}const B5={G:new i5,y:new s5,Y:new r5,R:new o5,u:new a5,Q:new l5,q:new c5,M:new u5,L:new d5,w:new f5,I:new p5,d:new v5,D:new y5,E:new b5,e:new w5,c:new x5,i:new C5,a:new S5,b:new k5,B:new T5,h:new A5,H:new P5,K:new M5,k:new I5,m:new D5,s:new R5,S:new $5,X:new L5,x:new O5,t:new N5,T:new F5},V5=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,z5=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,W5=/^'([^]*?)'?$/,Y5=/''/g,H5=/\S/,j5=/[a-zA-Z]/;function im(t,e,n,i){const s=ZF(),r=i?.locale??s.locale??GC,o=i?.firstWeekContainsDate??i?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,a=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0;if(e==="")return t===""?Ye(n):vt(n,NaN);const l={firstWeekContainsDate:o,weekStartsOn:a,locale:r},c=[new n5],u=e.match(z5).map(m=>{const v=m[0];if(v in tm){const y=tm[v];return y(m,r.formatLong)}return m}).join("").match(V5),d=[];for(let m of u){!i?.useAdditionalWeekYearTokens&&ZC(m)&&nm(m,e,t),!i?.useAdditionalDayOfYearTokens&&qC(m)&&nm(m,e,t);const v=m[0],y=B5[v];if(y){const{incompatibleTokens:x}=y;if(Array.isArray(x)){const w=d.find(b=>x.includes(b.token)||b.token===v);if(w)throw new RangeError(`The format string mustn't contain \`${w.fullToken}\` and \`${m}\` at the same time`)}else if(y.incompatibleTokens==="*"&&d.length>0)throw new RangeError(`The format string mustn't contain \`${m}\` and any other token at the same time`);d.push({token:v,fullToken:m});const E=y.run(t,m,r.match,l);if(!E)return vt(n,NaN);c.push(E.setter),t=E.rest}else{if(v.match(j5))throw new RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");if(m==="''"?m="'":v==="'"&&(m=K5(m)),t.indexOf(m)===0)t=t.slice(m.length);else return vt(n,NaN)}}if(t.length>0&&H5.test(t))return vt(n,NaN);const h=c.map(m=>m.priority).sort((m,v)=>v-m).filter((m,v,y)=>y.indexOf(m)===v).map(m=>c.filter(v=>v.priority===m).sort((v,y)=>y.subPriority-v.subPriority)).map(m=>m[0]);let g=Ye(n);if(isNaN(g.getTime()))return vt(n,NaN);const p={};for(const m of h){if(!m.validate(g,l))return vt(n,NaN);const v=m.set(g,p,l);Array.isArray(v)?(g=v[0],Object.assign(p,v[1])):g=v}return vt(n,g)}function K5(t){return t.match(W5)[1].replace(Y5,"'")}function m0(t,e){const n=Xo(t),i=Xo(e);return+n==+i}function U5(t,e){return rs(t,-e)}function nS(t,e){const n=Ye(t),i=n.getFullYear(),s=n.getDate(),r=vt(t,0);r.setFullYear(i,e,15),r.setHours(0,0,0,0);const o=qF(r);return n.setMonth(e,Math.min(s,o)),n}function Dt(t,e){let n=Ye(t);return isNaN(+n)?vt(t,NaN):(e.year!=null&&n.setFullYear(e.year),e.month!=null&&(n=nS(n,e.month)),e.date!=null&&n.setDate(e.date),e.hours!=null&&n.setHours(e.hours),e.minutes!=null&&n.setMinutes(e.minutes),e.seconds!=null&&n.setSeconds(e.seconds),e.milliseconds!=null&&n.setMilliseconds(e.milliseconds),n)}function G5(t,e){const n=Ye(t);return n.setHours(e),n}function iS(t,e){const n=Ye(t);return n.setMilliseconds(e),n}function X5(t,e){const n=Ye(t);return n.setMinutes(e),n}function sS(t,e){const n=Ye(t);return n.setSeconds(e),n}function As(t,e){const n=Ye(t);return isNaN(+n)?vt(t,NaN):(n.setFullYear(e),n)}function Al(t,e){return ds(t,-e)}function q5(t,e){const{years:n=0,months:i=0,weeks:s=0,days:r=0,hours:o=0,minutes:a=0,seconds:l=0}=e,c=Al(t,i+n*12),u=U5(c,r+s*7),d=a+o*60,g=(l+d*60)*1e3;return vt(t,u.getTime()-g)}function rS(t,e){return A_(t,-e)}function Gl(){const t=ND();return P(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img",...t},[f("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),f("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),f("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),f("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}Gl.compatConfig={MODE:3};function oS(){return P(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[f("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),f("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}oS.compatConfig={MODE:3};function $_(){return P(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[f("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}$_.compatConfig={MODE:3};function L_(){return P(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[f("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}L_.compatConfig={MODE:3};function O_(){return P(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[f("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),f("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}O_.compatConfig={MODE:3};function N_(){return P(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[f("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}N_.compatConfig={MODE:3};function F_(){return P(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[f("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}F_.compatConfig={MODE:3};const xi=(t,e)=>e?new Date(t.toLocaleString("en-US",{timeZone:e})):new Date(t),B_=(t,e,n)=>sm(t,e,n)||ke(),Z5=(t,e,n)=>{const i=e.dateInTz?xi(new Date(t),e.dateInTz):ke(t);return n?ai(i,!0):i},sm=(t,e,n)=>{if(!t)return null;const i=n?ai(ke(t),!0):ke(t);return e?e.exactMatch?Z5(t,e,n):xi(i,e.timezone):i},J5=t=>{if(!t)return 0;const e=new Date,n=new Date(e.toLocaleString("en-US",{timeZone:"UTC"})),i=new Date(e.toLocaleString("en-US",{timeZone:t})),s=i.getTimezoneOffset()/60;return(+n-+i)/(1e3*60*60)-s};var ts=(t=>(t.month="month",t.year="year",t))(ts||{}),Ho=(t=>(t.top="top",t.bottom="bottom",t))(Ho||{}),ia=(t=>(t.header="header",t.calendar="calendar",t.timePicker="timePicker",t))(ia||{}),jn=(t=>(t.month="month",t.year="year",t.calendar="calendar",t.time="time",t.minutes="minutes",t.hours="hours",t.seconds="seconds",t))(jn||{});const Q5=["timestamp","date","iso"];var Qn=(t=>(t.up="up",t.down="down",t.left="left",t.right="right",t))(Qn||{}),Nt=(t=>(t.arrowUp="ArrowUp",t.arrowDown="ArrowDown",t.arrowLeft="ArrowLeft",t.arrowRight="ArrowRight",t.enter="Enter",t.space=" ",t.esc="Escape",t.tab="Tab",t.home="Home",t.end="End",t.pageUp="PageUp",t.pageDown="PageDown",t))(Nt||{});function _0(t){return e=>new Intl.DateTimeFormat(t,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${e}T00:00:00+00:00`)).slice(0,2)}function e4(t){return e=>Ls(xi(new Date(`2017-01-0${e}T00:00:00+00:00`),"UTC"),"EEEEEE",{locale:t})}const t4=(t,e,n)=>{const i=[1,2,3,4,5,6,7];let s;if(t!==null)try{s=i.map(e4(t))}catch{s=i.map(_0(e))}else s=i.map(_0(e));const r=s.slice(0,n),o=s.slice(n+1,s.length);return[s[n]].concat(...o).concat(...r)},V_=(t,e,n)=>{const i=[];for(let s=+t[0];s<=+t[1];s++)i.push({value:+s,text:uS(s,e)});return n?i.reverse():i},aS=(t,e,n)=>{const i=[1,2,3,4,5,6,7,8,9,10,11,12].map(r=>{const o=r<10?`0${r}`:r;return new Date(`2017-${o}-01T00:00:00+00:00`)});if(t!==null)try{const r=n==="long"?"LLLL":"LLL";return i.map((o,a)=>{const l=Ls(xi(o,"UTC"),r,{locale:t});return{text:l.charAt(0).toUpperCase()+l.substring(1),value:a}})}catch{}const s=new Intl.DateTimeFormat(e,{month:n,timeZone:"UTC"});return i.map((r,o)=>{const a=s.format(r);return{text:a.charAt(0).toUpperCase()+a.substring(1),value:o}})},n4=t=>[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11][t],bn=t=>{const e=Z(t);return e!=null&&e.$el?e?.$el:e},i4=t=>({type:"dot",...t??{}}),lS=t=>Array.isArray(t)?!!t[0]&&!!t[1]:!1,z_={prop:t=>`"${t}" prop must be enabled!`,dateArr:t=>`You need to use array as "model-value" binding in order to support "${t}"`},Tn=t=>t,v0=t=>t===0?t:!t||isNaN(+t)?null:+t,y0=t=>t===null,cS=t=>{if(t)return[...t.querySelectorAll("input, button, select, textarea, a[href]")][0]},s4=t=>{const e=[],n=i=>i.filter(s=>s);for(let i=0;i{const i=n!=null,s=e!=null;if(!i&&!s)return!1;const r=+n,o=+e;return i&&s?+t>r||+tr:s?+ts4(t).map(n=>n.map(i=>{const{active:s,disabled:r,isBetween:o,highlighted:a}=e(i);return{...i,active:s,disabled:r,className:{dp__overlay_cell_active:s,dp__overlay_cell:!s,dp__overlay_cell_disabled:r,dp__overlay_cell_pad:!0,dp__overlay_cell_active_disabled:r&&s,dp__cell_in_between:o,"dp--highlighted":a}}})),eo=(t,e,n=!1)=>{t&&e.allowStopPropagation&&(n&&t.stopImmediatePropagation(),t.stopPropagation())},r4=()=>["a[href]","area[href]","input:not([disabled]):not([type='hidden'])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[tabindex]:not([tabindex='-1'])","[data-datepicker-instance]"].join(", ");function o4(t,e){let n=[...document.querySelectorAll(r4())];n=n.filter(s=>!t.contains(s)||s.hasAttribute("data-datepicker-instance"));const i=n.indexOf(t);if(i>=0&&(e?i-1>=0:i+1<=n.length))return n[i+(e?-1:1)]}const rm=(t,e)=>t?.querySelector(`[data-dp-element="${e}"]`),uS=(t,e)=>new Intl.NumberFormat(e,{useGrouping:!1,style:"decimal"}).format(t),W_=t=>Ls(t,"dd-MM-yyyy"),Lg=t=>Array.isArray(t),Th=(t,e)=>e.get(W_(t)),a4=(t,e)=>t?e?e instanceof Map?!!Th(t,e):e(ke(t)):!1:!0,si=(t,e,n=!1,i)=>{if(t.key===Nt.enter||t.key===Nt.space)return n&&t.preventDefault(),e();if(i)return i(t)},b0=()=>["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].some(t=>navigator.userAgent.includes(t))||navigator.userAgent.includes("Mac")&&"ontouchend"in document,w0=(t,e,n,i,s,r)=>{const o=im(t,e.slice(0,t.length),new Date,{locale:r});return Hc(o)&&HC(o)?i||s?o:Dt(o,{hours:+n.hours,minutes:+n?.minutes,seconds:+n?.seconds,milliseconds:0}):null},l4=(t,e,n,i,s,r)=>{const o=Array.isArray(n)?n[0]:n;if(typeof e=="string")return w0(t,e,o,i,s,r);if(Array.isArray(e)){let a=null;for(const l of e)if(a=w0(t,l,o,i,s,r),a)break;return a}return typeof e=="function"?e(t):null},ke=t=>t?new Date(t):new Date,c4=(t,e,n)=>{if(e){const s=(t.getMonth()+1).toString().padStart(2,"0"),r=t.getDate().toString().padStart(2,"0"),o=t.getHours().toString().padStart(2,"0"),a=t.getMinutes().toString().padStart(2,"0"),l=n?t.getSeconds().toString().padStart(2,"0"):"00";return`${t.getFullYear()}-${s}-${r}T${o}:${a}:${l}.000Z`}const i=Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds());return new Date(i).toISOString()},ai=(t,e)=>{const n=ke(JSON.parse(JSON.stringify(t))),i=Dt(n,{hours:0,minutes:0,seconds:0,milliseconds:0});return e?iF(i):i},to=(t,e,n,i)=>{let s=t?ke(t):ke();return(e||e===0)&&(s=G5(s,+e)),(n||n===0)&&(s=X5(s,+n)),(i||i===0)&&(s=sS(s,+i)),iS(s,0)},tn=(t,e)=>!t||!e?!1:cu(ai(t),ai(e)),ct=(t,e)=>!t||!e?!1:tl(ai(t),ai(e)),ln=(t,e)=>!t||!e?!1:Tl(ai(t),ai(e)),Ef=(t,e,n)=>t!=null&&t[0]&&t!=null&&t[1]?ln(n,t[0])&&tn(n,t[1]):t!=null&&t[0]&&e?ln(n,t[0])&&tn(n,e)||tn(n,t[0])&&ln(n,e):!1,os=t=>{const e=Dt(new Date(t),{date:1});return ai(e)},Og=(t,e,n)=>e&&(n||n===0)?Object.fromEntries(["hours","minutes","seconds"].map(i=>i===e?[i,n]:[i,isNaN(+t[i])?void 0:+t[i]])):{hours:isNaN(+t.hours)?void 0:+t.hours,minutes:isNaN(+t.minutes)?void 0:+t.minutes,seconds:isNaN(+t.seconds)?void 0:+t.seconds},sa=t=>({hours:vr(t),minutes:ao(t),seconds:kl(t)}),dS=(t,e)=>{if(e){const n=qe(ke(e));if(n>t)return 12;if(n===t)return at(ke(e))}},hS=(t,e)=>{if(e){const n=qe(ke(e));return n{if(t)return qe(ke(t))},fS=(t,e)=>{const n=ln(t,e)?e:t,i=ln(e,t)?e:t;return jC({start:n,end:i})},u4=t=>{const e=ds(t,1);return{month:at(e),year:qe(e)}},nr=(t,e)=>{const n=ps(t,{weekStartsOn:+e}),i=UC(t,{weekStartsOn:+e});return[n,i]},gS=(t,e)=>{const n={hours:vr(ke()),minutes:ao(ke()),seconds:e?kl(ke()):0};return Object.assign(n,t)},Kr=(t,e,n)=>[Dt(ke(t),{date:1}),Dt(ke(),{month:e,year:n,date:1})],ar=(t,e,n)=>{let i=t?ke(t):ke();return(e||e===0)&&(i=nS(i,e)),n&&(i=As(i,n)),i},pS=(t,e,n,i,s)=>{if(!i||s&&!e||!s&&!n)return!1;const r=s?ds(t,1):Al(t,1),o=[at(r),qe(r)];return s?!h4(...o,e):!d4(...o,n)},d4=(t,e,n)=>tn(...Kr(n,t,e))||ct(...Kr(n,t,e)),h4=(t,e,n)=>ln(...Kr(n,t,e))||ct(...Kr(n,t,e)),mS=(t,e,n,i,s,r,o)=>{if(typeof e=="function"&&!o)return e(t);const a=n?{locale:n}:void 0;return Array.isArray(t)?`${Ls(t[0],r,a)}${s&&!t[1]?"":i}${t[1]?Ls(t[1],r,a):""}`:Ls(t,r,a)},La=t=>{if(t)return null;throw new Error(z_.prop("partial-range"))},kd=(t,e)=>{if(e)return t();throw new Error(z_.prop("range"))},om=t=>Array.isArray(t)?Hc(t[0])&&(t[1]?Hc(t[1]):!0):t?Hc(t):!1,f4=(t,e)=>Dt(e??ke(),{hours:+t.hours||0,minutes:+t.minutes||0,seconds:+t.seconds||0}),Ng=(t,e,n,i)=>{if(!t)return!0;if(i){const s=n==="max"?cu(t,e):Tl(t,e),r={seconds:0,milliseconds:0};return s||tl(Dt(t,r),Dt(e,r))}return n==="max"?t.getTime()<=e.getTime():t.getTime()>=e.getTime()},Fg=(t,e,n)=>t?f4(t,e):ke(n??e),x0=(t,e,n,i,s)=>{if(Array.isArray(i)){const o=Fg(t,i[0],e),a=Fg(t,i[1],e);return Ng(i[0],o,n,!!e)&&Ng(i[1],a,n,!!e)&&s}const r=Fg(t,i,e);return Ng(i,r,n,!!e)&&s},Bg=t=>Dt(ke(),sa(t)),g4=(t,e)=>t instanceof Map?Array.from(t.values()).filter(n=>qe(ke(n))===e).map(n=>at(n)):[],_S=(t,e,n)=>typeof t=="function"?t({month:e,year:n}):!!t.months.find(i=>i.month===e&&i.year===n),Y_=(t,e)=>typeof t=="function"?t(e):t.years.includes(e),vS=t=>Ls(t,"yyyy-MM-dd"),dc=Ei({menuFocused:!1,shiftKeyInMenu:!1}),yS=()=>{const t=n=>{dc.menuFocused=n},e=n=>{dc.shiftKeyInMenu!==n&&(dc.shiftKeyInMenu=n)};return{control:ye(()=>({shiftKeyInMenu:dc.shiftKeyInMenu,menuFocused:dc.menuFocused})),setMenuFocused:t,setShiftKey:e}},Ot=Ei({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),Vg=me(null),Td=me(!1),zg=me(!1),Wg=me(!1),Yg=me(!1),zn=me(0),an=me(0),yo=()=>{const t=ye(()=>Td.value?[...Ot.selectionGrid,Ot.actionRow].filter(d=>d.length):zg.value?[...Ot.timePicker[0],...Ot.timePicker[1],Yg.value?[]:[Vg.value],Ot.actionRow].filter(d=>d.length):Wg.value?[...Ot.monthPicker,Ot.actionRow]:[Ot.monthYear,...Ot.calendar,Ot.time,Ot.actionRow].filter(d=>d.length)),e=d=>{zn.value=d?zn.value+1:zn.value-1;let h=null;t.value[an.value]&&(h=t.value[an.value][zn.value]),!h&&t.value[an.value+(d?1:-1)]?(an.value=an.value+(d?1:-1),zn.value=d?0:t.value[an.value].length-1):h||(zn.value=d?zn.value-1:zn.value+1)},n=d=>{an.value===0&&!d||an.value===t.value.length&&d||(an.value=d?an.value+1:an.value-1,t.value[an.value]?t.value[an.value]&&!t.value[an.value][zn.value]&&zn.value!==0&&(zn.value=t.value[an.value].length-1):an.value=d?an.value-1:an.value+1)},i=d=>{let h=null;t.value[an.value]&&(h=t.value[an.value][zn.value]),h?h.focus({preventScroll:!Td.value}):zn.value=d?zn.value-1:zn.value+1},s=()=>{e(!0),i(!0)},r=()=>{e(!1),i(!1)},o=()=>{n(!1),i(!0)},a=()=>{n(!0),i(!0)},l=(d,h)=>{Ot[h]=d},c=(d,h)=>{Ot[h]=d},u=()=>{zn.value=0,an.value=0};return{buildMatrix:l,buildMultiLevelMatrix:c,setTimePickerBackRef:d=>{Vg.value=d},setSelectionGrid:d=>{Td.value=d,u(),d||(Ot.selectionGrid=[])},setTimePicker:(d,h=!1)=>{zg.value=d,Yg.value=h,u(),d||(Ot.timePicker[0]=[],Ot.timePicker[1]=[])},setTimePickerElements:(d,h=0)=>{Ot.timePicker[h]=d},arrowRight:s,arrowLeft:r,arrowUp:o,arrowDown:a,clearArrowNav:()=>{Ot.monthYear=[],Ot.calendar=[],Ot.time=[],Ot.actionRow=[],Ot.selectionGrid=[],Ot.timePicker[0]=[],Ot.timePicker[1]=[],Td.value=!1,zg.value=!1,Yg.value=!1,Wg.value=!1,u(),Vg.value=null},setMonthPicker:d=>{Wg.value=d,u()},refSets:Ot}},E0=t=>({menuAppearTop:"dp-menu-appear-top",menuAppearBottom:"dp-menu-appear-bottom",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down",...t??{}}),p4=t=>({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:e=>`Increment ${e}`,decrementValue:e=>`Decrement ${e}`,openTpOverlay:e=>`Open ${e} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",nextYear:"Next year",prevYear:"Previous year",day:void 0,weekDay:void 0,clearInput:"Clear value",calendarIcon:"Calendar icon",timePicker:"Time picker",monthPicker:e=>`Month picker${e?" overlay":""}`,yearPicker:e=>`Year picker${e?" overlay":""}`,timeOverlay:e=>`${e} overlay`,...t??{}}),C0=t=>t?typeof t=="boolean"?t?2:0:+t>=2?+t:2:0,m4=t=>{const e=typeof t=="object"&&t,n={static:!0,solo:!1};if(!t)return{...n,count:C0(!1)};const i=e?t:{},s=e?i.count??!0:t,r=C0(s);return Object.assign(n,i,{count:r})},_4=(t,e,n)=>t||(typeof n=="string"?n:e),v4=t=>typeof t=="boolean"?t?E0({}):!1:E0(t),y4=t=>{const e={enterSubmit:!0,tabSubmit:!0,openMenu:"open",selectOnFocus:!1,rangeSeparator:" - "};return typeof t=="object"?{...e,...t??{},enabled:!0}:{...e,enabled:t}},b4=t=>({months:[],years:[],times:{hours:[],minutes:[],seconds:[]},...t??{}}),w4=t=>({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0,...t??{}}),x4=t=>{const e={input:!1};return typeof t=="object"?{...e,...t??{},enabled:!0}:{enabled:t,...e}},E4=t=>({allowStopPropagation:!0,closeOnScroll:!1,modeHeight:255,allowPreventDefault:!1,closeOnClearValue:!0,closeOnAutoApply:!0,noSwipe:!1,keepActionRow:!1,onClickOutside:void 0,tabOutClosesMenu:!0,arrowLeft:void 0,keepViewOnOffsetClick:!1,timeArrowHoldThreshold:0,shadowDom:!1,...t??{}}),C4=t=>{const e={dates:Array.isArray(t)?t.map(n=>ke(n)):[],years:[],months:[],quarters:[],weeks:[],weekdays:[],options:{highlightDisabled:!1}};return typeof t=="function"?t:{...e,...t??{}}},S4=t=>typeof t=="object"?{type:t?.type??"local",hideOnOffsetDates:t?.hideOnOffsetDates??!1}:{type:t,hideOnOffsetDates:!1},k4=t=>{const e={noDisabledRange:!1,showLastInRange:!0,minMaxRawRange:!1,partialRange:!0,disableTimeRangeValidation:!1,maxRange:void 0,minRange:void 0,autoRange:void 0,fixedStart:!1,fixedEnd:!1};return typeof t=="object"?{enabled:!0,...e,...t}:{enabled:t,...e}},T4=t=>t?typeof t=="string"?{timezone:t,exactMatch:!1,dateInTz:void 0,emitTimezone:void 0,convertModel:!0}:{timezone:t.timezone,exactMatch:t.exactMatch??!1,dateInTz:t.dateInTz??void 0,emitTimezone:t.emitTimezone??void 0,convertModel:t.convertModel??!0}:{timezone:void 0,exactMatch:!1,emitTimezone:void 0},Hg=(t,e,n)=>new Map(t.map(i=>{const s=B_(i,e,n);return[W_(s),s]})),A4=(t,e)=>t.length?new Map(t.map(n=>{const i=B_(n.date,e);return[W_(i),n]})):null,P4=t=>{var e;return{minDate:sm(t.minDate,t.timezone,t.isSpecific),maxDate:sm(t.maxDate,t.timezone,t.isSpecific),disabledDates:Lg(t.disabledDates)?Hg(t.disabledDates,t.timezone,t.isSpecific):t.disabledDates,allowedDates:Lg(t.allowedDates)?Hg(t.allowedDates,t.timezone,t.isSpecific):null,highlight:typeof t.highlight=="object"&&Lg((e=t.highlight)==null?void 0:e.dates)?Hg(t.highlight.dates,t.timezone):t.highlight,markers:A4(t.markers,t.timezone)}},M4=t=>typeof t=="boolean"?{enabled:t,dragSelect:!0,limit:null}:{enabled:!!t,limit:t.limit?+t.limit:null,dragSelect:t.dragSelect??!0},I4=t=>({...Object.fromEntries(Object.keys(t).map(e=>{const n=e,i=t[n],s=typeof t[n]=="string"?{[i]:!0}:Object.fromEntries(i.map(r=>[r,!0]));return[e,s]}))}),Kt=t=>{const e=()=>{const C=t.enableSeconds?":ss":"",k=t.enableMinutes?":mm":"";return t.is24?`HH${k}${C}`:`hh${k}${C} aa`},n=()=>{var C;return t.format?t.format:t.monthPicker?"MM/yyyy":t.timePicker?e():t.weekPicker?`${((C=v.value)==null?void 0:C.type)==="iso"?"RR":"ww"}-yyyy`:t.yearPicker?"yyyy":t.quarterPicker?"QQQ/yyyy":t.enableTimePicker?`MM/dd/yyyy, ${e()}`:"MM/dd/yyyy"},i=C=>gS(C,t.enableSeconds),s=()=>w.value.enabled?t.startTime&&Array.isArray(t.startTime)?[i(t.startTime[0]),i(t.startTime[1])]:null:t.startTime&&!Array.isArray(t.startTime)?i(t.startTime):null,r=ye(()=>m4(t.multiCalendars)),o=ye(()=>s()),a=ye(()=>p4(t.ariaLabels)),l=ye(()=>b4(t.filters)),c=ye(()=>v4(t.transitions)),u=ye(()=>w4(t.actionRow)),d=ye(()=>_4(t.previewFormat,t.format,n())),h=ye(()=>y4(t.textInput)),g=ye(()=>x4(t.inline)),p=ye(()=>E4(t.config)),m=ye(()=>C4(t.highlight)),v=ye(()=>S4(t.weekNumbers)),y=ye(()=>T4(t.timezone)),x=ye(()=>M4(t.multiDates)),E=ye(()=>P4({minDate:t.minDate,maxDate:t.maxDate,disabledDates:t.disabledDates,allowedDates:t.allowedDates,highlight:m.value,markers:t.markers,timezone:y.value,isSpecific:t.monthPicker||t.yearPicker||t.quarterPicker})),w=ye(()=>k4(t.range)),b=ye(()=>I4(t.ui));return{defaultedTransitions:c,defaultedMultiCalendars:r,defaultedStartTime:o,defaultedAriaLabels:a,defaultedFilters:l,defaultedActionRow:u,defaultedPreviewFormat:d,defaultedTextInput:h,defaultedInline:g,defaultedConfig:p,defaultedHighlight:m,defaultedWeekNumbers:v,defaultedRange:w,propDates:E,defaultedTz:y,defaultedMultiDates:x,defaultedUI:b,getDefaultPattern:n,getDefaultStartTime:s}},D4=(t,e,n)=>{const i=me(),{defaultedTextInput:s,defaultedRange:r,defaultedTz:o,defaultedMultiDates:a,getDefaultPattern:l}=Kt(e),c=me(""),u=tu(e,"format"),d=tu(e,"formatLocale");Zt(i,()=>{typeof e.onInternalModelChange=="function"&&t("internal-model-change",i.value,ue(!0))},{deep:!0}),Zt(r,($,le)=>{$.enabled!==le.enabled&&(i.value=null)}),Zt(u,()=>{X()});const h=$=>o.value.timezone&&o.value.convertModel?xi($,o.value.timezone):$,g=$=>{if(o.value.timezone&&o.value.convertModel){const le=J5(o.value.timezone);return qN($,le)}return $},p=($,le,de=!1)=>mS($,e.format,e.formatLocale,s.value.rangeSeparator,e.modelAuto,le??l(),de),m=$=>$?e.modelType?H($):{hours:vr($),minutes:ao($),seconds:e.enableSeconds?kl($):0}:null,v=$=>e.modelType?H($):{month:at($),year:qe($)},y=$=>Array.isArray($)?a.value.enabled?$.map(le=>x(le,As(ke(),le))):kd(()=>[As(ke(),$[0]),$[1]?As(ke(),$[1]):La(r.value.partialRange)],r.value.enabled):As(ke(),+$),x=($,le)=>(typeof $=="string"||typeof $=="number")&&e.modelType?J($):le,E=$=>Array.isArray($)?[x($[0],to(null,+$[0].hours,+$[0].minutes,$[0].seconds)),x($[1],to(null,+$[1].hours,+$[1].minutes,$[1].seconds))]:x($,to(null,$.hours,$.minutes,$.seconds)),w=$=>{const le=Dt(ke(),{date:1});return Array.isArray($)?a.value.enabled?$.map(de=>x(de,ar(le,+de.month,+de.year))):kd(()=>[x($[0],ar(le,+$[0].month,+$[0].year)),x($[1],$[1]?ar(le,+$[1].month,+$[1].year):La(r.value.partialRange))],r.value.enabled):x($,ar(le,+$.month,+$.year))},b=$=>{if(Array.isArray($))return $.map(le=>J(le));throw new Error(z_.dateArr("multi-dates"))},C=$=>{if(Array.isArray($)&&r.value.enabled){const le=$[0],de=$[1];return[ke(Array.isArray(le)?le[0]:null),Array.isArray(de)&&de.length?ke(de[0]):null]}return ke($[0])},k=$=>e.modelAuto?Array.isArray($)?[J($[0]),J($[1])]:e.autoApply?[J($)]:[J($),null]:Array.isArray($)?kd(()=>$[1]?[J($[0]),$[1]?J($[1]):La(r.value.partialRange)]:[J($[0])],r.value.enabled):J($),T=()=>{Array.isArray(i.value)&&r.value.enabled&&i.value.length===1&&i.value.push(La(r.value.partialRange))},A=()=>{const $=i.value;return[H($[0]),$[1]?H($[1]):La(r.value.partialRange)]},I=()=>i.value[1]?A():H(Tn(i.value[0])),V=()=>(i.value||[]).map($=>H($)),Y=($=!1)=>($||T(),e.modelAuto?I():a.value.enabled?V():Array.isArray(i.value)?kd(()=>A(),r.value.enabled):H(Tn(i.value))),ne=$=>!$||Array.isArray($)&&!$.length?null:e.timePicker?E(Tn($)):e.monthPicker?w(Tn($)):e.yearPicker?y(Tn($)):a.value.enabled?b(Tn($)):e.weekPicker?C(Tn($)):k(Tn($)),N=$=>{const le=ne($);om(Tn(le))?(i.value=Tn(le),X()):(i.value=null,c.value="")},B=()=>{const $=le=>Ls(le,s.value.format);return`${$(i.value[0])} ${s.value.rangeSeparator} ${i.value[1]?$(i.value[1]):""}`},R=()=>n.value&&i.value?Array.isArray(i.value)?B():Ls(i.value,s.value.format):p(i.value),z=()=>i.value?a.value.enabled?i.value.map($=>p($)).join("; "):s.value.enabled&&typeof s.value.format=="string"?R():p(i.value):"",X=()=>{!e.format||typeof e.format=="string"||s.value.enabled&&typeof s.value.format=="string"?c.value=z():c.value=e.format(i.value)},J=$=>{if(e.utc){const le=new Date($);return e.utc==="preserve"?new Date(le.getTime()+le.getTimezoneOffset()*6e4):le}return e.modelType?Q5.includes(e.modelType)?h(new Date($)):e.modelType==="format"&&(typeof e.format=="string"||!e.format)?h(im($,l(),new Date,{locale:d.value})):h(im($,e.modelType,new Date,{locale:d.value})):h(new Date($))},H=$=>$?e.utc?c4($,e.utc==="preserve",e.enableSeconds):e.modelType?e.modelType==="timestamp"?+g($):e.modelType==="iso"?g($).toISOString():e.modelType==="format"&&(typeof e.format=="string"||!e.format)?p(g($)):p(g($),e.modelType,!0):g($):"",ce=($,le=!1,de=!1)=>{if(de)return $;if(t("update:model-value",$),o.value.emitTimezone&&le){const xe=Array.isArray($)?$.map(W=>xi(Tn(W),o.value.emitTimezone)):xi(Tn($),o.value.emitTimezone);t("update:model-timezone-value",xe)}},ie=$=>Array.isArray(i.value)?a.value.enabled?i.value.map(le=>$(le)):[$(i.value[0]),i.value[1]?$(i.value[1]):La(r.value.partialRange)]:$(Tn(i.value)),te=()=>{if(Array.isArray(i.value)){const $=nr(i.value[0],e.weekStart),le=i.value[1]?nr(i.value[1],e.weekStart):[];return[$.map(de=>ke(de)),le.map(de=>ke(de))]}return nr(i.value,e.weekStart).map($=>ke($))},D=($,le)=>ce(Tn(ie($)),!1,le),ee=$=>{const le=te();return $?le:t("update:model-value",te())},ue=($=!1)=>($||X(),e.monthPicker?D(v,$):e.timePicker?D(m,$):e.yearPicker?D(qe,$):e.weekPicker?ee($):ce(Y($),!0,$));return{inputValue:c,internalModelValue:i,checkBeforeEmit:()=>i.value?r.value.enabled?r.value.partialRange?i.value.length>=1:i.value.length===2:!!i.value:!1,parseExternalModelValue:N,formatInputValue:X,emitModelValue:ue}},R4=(t,e)=>{const{defaultedFilters:n,propDates:i}=Kt(t),{validateMonthYearInRange:s}=bo(t),r=(u,d)=>{let h=u;return n.value.months.includes(at(h))?(h=d?ds(u,1):Al(u,1),r(h,d)):h},o=(u,d)=>{let h=u;return n.value.years.includes(qe(h))?(h=d?A_(u,1):rS(u,1),o(h,d)):h},a=(u,d=!1)=>{const h=Dt(ke(),{month:t.month,year:t.year});let g=u?ds(h,1):Al(h,1);t.disableYearSelect&&(g=As(g,t.year));let p=at(g),m=qe(g);n.value.months.includes(p)&&(g=r(g,u),p=at(g),m=qe(g)),n.value.years.includes(m)&&(g=o(g,u),m=qe(g)),s(p,m,u,t.preventMinMaxNavigation)&&l(p,m,d)},l=(u,d,h)=>{e("update-month-year",{month:u,year:d,fromNav:h})},c=ye(()=>u=>pS(Dt(ke(),{month:t.month,year:t.year}),i.value.maxDate,i.value.minDate,t.preventMinMaxNavigation,u));return{handleMonthYearChange:a,isDisabled:c,updateMonthYear:l}},Cf={multiCalendars:{type:[Boolean,Number,String,Object],default:void 0},modelValue:{type:[String,Date,Array,Object,Number],default:null},modelType:{type:String,default:null},position:{type:String,default:"center"},dark:{type:Boolean,default:!1},format:{type:[String,Function],default:()=>null},autoPosition:{type:Boolean,default:!0},altPosition:{type:Function,default:null},transitions:{type:[Boolean,Object],default:!0},formatLocale:{type:Object,default:null},utc:{type:[Boolean,String],default:!1},ariaLabels:{type:Object,default:()=>({})},offset:{type:[Number,String],default:10},hideNavigation:{type:Array,default:()=>[]},timezone:{type:[String,Object],default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},disableYearSelect:{type:Boolean,default:!1},dayClass:{type:Function,default:null},yearRange:{type:Array,default:()=>[1900,2100]},enableTimePicker:{type:Boolean,default:!0},autoApply:{type:Boolean,default:!1},disabledDates:{type:[Array,Function],default:()=>[]},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},hideOffsetDates:{type:Boolean,default:!1},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:()=>[]},allowedDates:{type:Array,default:null},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:()=>[]},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},presetDates:{type:Array,default:()=>[]},flow:{type:Array,default:()=>[]},partialFlow:{type:Boolean,default:!1},preventMinMaxNavigation:{type:Boolean,default:!1},reverseYears:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},arrowNavigation:{type:Boolean,default:!1},highlight:{type:[Function,Object],default:null},teleport:{type:[Boolean,String,Object],default:null},teleportCenter:{type:Boolean,default:!1},locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:[String,Function,Object],default:null},monthChangeOnScroll:{type:[Boolean,String],default:!0},dayNames:{type:[Function,Array],default:null},monthPicker:{type:Boolean,default:!1},customProps:{type:Object,default:null},yearPicker:{type:Boolean,default:!1},modelAuto:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:()=>""},multiDates:{type:[Object,Boolean],default:!1},ignoreTimeValidation:{type:Boolean,default:!1},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},name:{type:String,default:null},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},state:{type:Boolean,default:null},required:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},timePicker:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},range:{type:[Boolean,Object],default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:[Boolean,Object],default:!1},textInput:{type:[Boolean,Object],default:!1},sixWeeks:{type:[Boolean,String],default:!1},actionRow:{type:Object,default:()=>({})},focusStartDate:{type:Boolean,default:!1},disabledTimes:{type:[Function,Array],default:void 0},timePickerInline:{type:Boolean,default:!1},calendar:{type:Function,default:null},config:{type:Object,default:void 0},quarterPicker:{type:Boolean,default:!1},yearFirst:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},onInternalModelChange:{type:[Function,Object],default:null},enableMinutes:{type:Boolean,default:!0},ui:{type:Object,default:()=>({})}},_s={...Cf,shadow:{type:Boolean,default:!1},flowStep:{type:Number,default:0},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},menuWrapRef:{type:Object,default:null},getInputRect:{type:Function,default:()=>({})},isTextInputDate:{type:Boolean,default:!1}},$4=["title"],L4=["disabled"],O4=fn({compatConfig:{MODE:3},__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},calendarWidth:{type:Number,default:0},..._s},emits:["close-picker","select-date","select-now","invalid-select"],setup(t,{emit:e}){const n=e,i=t,{defaultedActionRow:s,defaultedPreviewFormat:r,defaultedMultiCalendars:o,defaultedTextInput:a,defaultedInline:l,defaultedRange:c,defaultedMultiDates:u}=Kt(i),{isTimeValid:d,isMonthValid:h}=bo(i),{buildMatrix:g}=yo(),p=me(null),m=me(null),v=me(!1),y=me({}),x=me(null),E=me(null);Vt(()=>{i.arrowNavigation&&g([bn(p),bn(m)],"actionRow"),w(),window.addEventListener("resize",w)}),_o(()=>{window.removeEventListener("resize",w)});const w=()=>{v.value=!1,setTimeout(()=>{var N,B;const R=(N=x.value)==null?void 0:N.getBoundingClientRect(),z=(B=E.value)==null?void 0:B.getBoundingClientRect();R&&z&&(y.value.maxWidth=`${z.width-R.width-20}px`),v.value=!0},0)},b=ye(()=>c.value.enabled&&!c.value.partialRange&&i.internalModelValue?i.internalModelValue.length===2:!0),C=ye(()=>!d.value(i.internalModelValue)||!h.value(i.internalModelValue)||!b.value),k=()=>{const N=r.value;return i.timePicker||i.monthPicker,N(Tn(i.internalModelValue))},T=()=>{const N=i.internalModelValue;return o.value.count>0?`${A(N[0])} - ${A(N[1])}`:[A(N[0]),A(N[1])]},A=N=>mS(N,r.value,i.formatLocale,a.value.rangeSeparator,i.modelAuto,r.value),I=ye(()=>!i.internalModelValue||!i.menuMount?"":typeof r.value=="string"?Array.isArray(i.internalModelValue)?i.internalModelValue.length===2&&i.internalModelValue[1]?T():u.value.enabled?i.internalModelValue.map(N=>`${A(N)}`):i.modelAuto?`${A(i.internalModelValue[0])}`:`${A(i.internalModelValue[0])} -`:A(i.internalModelValue):k()),V=()=>u.value.enabled?"; ":" - ",Y=ye(()=>Array.isArray(I.value)?I.value.join(V()):I.value),ne=()=>{d.value(i.internalModelValue)&&h.value(i.internalModelValue)&&b.value?n("select-date"):n("invalid-select")};return(N,B)=>(P(),F("div",{ref_key:"actionRowRef",ref:E,class:"dp__action_row"},[N.$slots["action-row"]?Fe(N.$slots,"action-row",In(xn({key:0},{internalModelValue:N.internalModelValue,disabled:C.value,selectDate:()=>N.$emit("select-date"),closePicker:()=>N.$emit("close-picker")}))):(P(),F(De,{key:1},[Z(s).showPreview?(P(),F("div",{key:0,class:"dp__selection_preview",title:Y.value,style:Mn(y.value)},[N.$slots["action-preview"]&&v.value?Fe(N.$slots,"action-preview",{key:0,value:N.internalModelValue}):se("",!0),!N.$slots["action-preview"]&&v.value?(P(),F(De,{key:1},[Be(pe(Y.value),1)],64)):se("",!0)],12,$4)):se("",!0),f("div",{ref_key:"actionBtnContainer",ref:x,class:"dp__action_buttons","data-dp-element":"action-row"},[N.$slots["action-buttons"]?Fe(N.$slots,"action-buttons",{key:0,value:N.internalModelValue}):se("",!0),N.$slots["action-buttons"]?se("",!0):(P(),F(De,{key:1},[!Z(l).enabled&&Z(s).showCancel?(P(),F("button",{key:0,ref_key:"cancelButtonRef",ref:p,type:"button",class:"dp__action_button dp__action_cancel",onClick:B[0]||(B[0]=R=>N.$emit("close-picker")),onKeydown:B[1]||(B[1]=R=>Z(si)(R,()=>N.$emit("close-picker")))},pe(N.cancelText),545)):se("",!0),Z(s).showNow?(P(),F("button",{key:1,type:"button",class:"dp__action_button dp__action_cancel",onClick:B[2]||(B[2]=R=>N.$emit("select-now")),onKeydown:B[3]||(B[3]=R=>Z(si)(R,()=>N.$emit("select-now")))},pe(N.nowButtonLabel),33)):se("",!0),Z(s).showSelect?(P(),F("button",{key:2,ref_key:"selectButtonRef",ref:m,type:"button",class:"dp__action_button dp__action_select",disabled:C.value,"data-test":"select-button",onKeydown:B[4]||(B[4]=R=>Z(si)(R,()=>ne())),onClick:ne},pe(N.selectText),41,L4)):se("",!0)],64))],512)],64))],512))}}),N4=["role","aria-label","tabindex"],F4={class:"dp__selection_grid_header"},B4=["aria-selected","aria-disabled","data-test","onClick","onKeydown","onMouseover"],V4=["aria-label"],Wu=fn({__name:"SelectionOverlay",props:{items:{},type:{},isLast:{type:Boolean},arrowNavigation:{type:Boolean},skipButtonRef:{type:Boolean},headerRefs:{},hideNavigation:{},escClose:{type:Boolean},useRelative:{type:Boolean},height:{},textInput:{type:[Boolean,Object]},config:{},noOverlayFocus:{type:Boolean},focusValue:{},menuWrapRef:{},ariaLabels:{},overlayLabel:{}},emits:["selected","toggle","reset-flow","hover-value"],setup(t,{expose:e,emit:n}){const{setSelectionGrid:i,buildMultiLevelMatrix:s,setMonthPicker:r}=yo(),o=n,a=t,{defaultedAriaLabels:l,defaultedTextInput:c,defaultedConfig:u}=Kt(a),{hideNavigationButtons:d}=Tf(),h=me(!1),g=me(null),p=me(null),m=me([]),v=me(),y=me(null),x=me(0),E=me(null);wE(()=>{g.value=null}),Vt(()=>{Rn().then(()=>V()),a.noOverlayFocus||b(),w(!0)}),_o(()=>w(!1));const w=ie=>{var te;a.arrowNavigation&&((te=a.headerRefs)!=null&&te.length?r(ie):i(ie))},b=()=>{var ie;const te=bn(p);te&&(c.value.enabled||(g.value?(ie=g.value)==null||ie.focus({preventScroll:!0}):te.focus({preventScroll:!0})),h.value=te.clientHeight({dp__overlay:!0,"dp--overlay-absolute":!a.useRelative,"dp--overlay-relative":a.useRelative})),k=ye(()=>a.useRelative?{height:`${a.height}px`,width:"var(--dp-menu-min-width)"}:void 0),T=ye(()=>({dp__overlay_col:!0})),A=ye(()=>({dp__btn:!0,dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:h.value,dp__button_bottom:a.isLast})),I=ye(()=>{var ie,te;return{dp__overlay_container:!0,dp__container_flex:((ie=a.items)==null?void 0:ie.length)<=6,dp__container_block:((te=a.items)==null?void 0:te.length)>6}});Zt(()=>a.items,()=>V(!1),{deep:!0});const V=(ie=!0)=>{Rn().then(()=>{const te=bn(g),D=bn(p),ee=bn(y),ue=bn(E),$=ee?ee.getBoundingClientRect().height:0;D&&(D.getBoundingClientRect().height?x.value=D.getBoundingClientRect().height-$:x.value=u.value.modeHeight-$),te&&ue&&ie&&(ue.scrollTop=te.offsetTop-ue.offsetTop-(x.value/2-te.getBoundingClientRect().height)-$)})},Y=ie=>{ie.disabled||o("selected",ie.value)},ne=()=>{o("toggle"),o("reset-flow")},N=()=>{a.escClose&&ne()},B=(ie,te,D,ee)=>{ie&&((te.active||te.value===a.focusValue)&&(g.value=ie),a.arrowNavigation&&(Array.isArray(m.value[D])?m.value[D][ee]=ie:m.value[D]=[ie],R()))},R=()=>{var ie,te;const D=(ie=a.headerRefs)!=null&&ie.length?[a.headerRefs].concat(m.value):m.value.concat([a.skipButtonRef?[]:[y.value]]);s(Tn(D),(te=a.headerRefs)!=null&&te.length?"monthPicker":"selectionGrid")},z=ie=>{a.arrowNavigation||eo(ie,u.value,!0)},X=ie=>{v.value=ie,o("hover-value",ie)},J=()=>{if(ne(),!a.isLast){const ie=rm(a.menuWrapRef??null,"action-row");if(ie){const te=cS(ie);te?.focus()}}},H=ie=>{switch(ie.key){case Nt.esc:return N();case Nt.arrowLeft:return z(ie);case Nt.arrowRight:return z(ie);case Nt.arrowUp:return z(ie);case Nt.arrowDown:return z(ie);default:return}},ce=ie=>{if(ie.key===Nt.enter)return ne();if(ie.key===Nt.tab)return J()};return e({focusGrid:b}),(ie,te)=>{var D;return P(),F("div",{ref_key:"gridWrapRef",ref:p,class:Se(C.value),style:Mn(k.value),role:ie.useRelative?void 0:"dialog","aria-label":ie.overlayLabel,tabindex:ie.useRelative?void 0:"0",onKeydown:H,onClick:te[0]||(te[0]=ru(()=>{},["prevent"]))},[f("div",{ref_key:"containerRef",ref:E,class:Se(I.value),style:Mn({"--dp-overlay-height":`${x.value}px`}),role:"grid"},[f("div",F4,[Fe(ie.$slots,"header")]),ie.$slots.overlay?Fe(ie.$slots,"overlay",{key:0}):(P(!0),F(De,{key:1},Ge(ie.items,(ee,ue)=>(P(),F("div",{key:ue,class:Se(["dp__overlay_row",{dp__flex_row:ie.items.length>=3}]),role:"row"},[(P(!0),F(De,null,Ge(ee,($,le)=>(P(),F("div",{key:$.value,ref_for:!0,ref:de=>B(de,$,ue,le),role:"gridcell",class:Se(T.value),"aria-selected":$.active||void 0,"aria-disabled":$.disabled||void 0,tabindex:"0","data-test":$.text,onClick:ru(de=>Y($),["prevent"]),onKeydown:de=>Z(si)(de,()=>Y($),!0),onMouseover:de=>X($.value)},[f("div",{class:Se($.className)},[ie.$slots.item?Fe(ie.$slots,"item",{key:0,item:$}):se("",!0),ie.$slots.item?se("",!0):(P(),F(De,{key:1},[Be(pe($.text),1)],64))],2)],42,B4))),128))],2))),128))],6),ie.$slots["button-icon"]?Re((P(),F("button",{key:0,ref_key:"toggleButton",ref:y,type:"button","aria-label":(D=Z(l))==null?void 0:D.toggleOverlay,class:Se(A.value),tabindex:"0",onClick:ne,onKeydown:ce},[Fe(ie.$slots,"button-icon")],42,V4)),[[ah,!Z(d)(ie.hideNavigation,ie.type)]]):se("",!0)],46,N4)}}}),Sf=fn({__name:"InstanceWrap",props:{multiCalendars:{},stretch:{type:Boolean},collapse:{type:Boolean}},setup(t){const e=t,n=ye(()=>e.multiCalendars>0?[...Array(e.multiCalendars).keys()]:[0]),i=ye(()=>({dp__instance_calendar:e.multiCalendars>0}));return(s,r)=>(P(),F("div",{class:Se({dp__menu_inner:!s.stretch,"dp--menu--inner-stretched":s.stretch,dp__flex_display:s.multiCalendars>0,"dp--flex-display-collapsed":s.collapse})},[(P(!0),F(De,null,Ge(n.value,(o,a)=>(P(),F("div",{key:o,class:Se(i.value)},[Fe(s.$slots,"default",{instance:o,index:a})],2))),128))],2))}}),z4=["data-dp-element","aria-label","aria-disabled"],jc=fn({compatConfig:{MODE:3},__name:"ArrowBtn",props:{ariaLabel:{},elName:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(t,{emit:e}){const n=e,i=me(null);return Vt(()=>n("set-ref",i)),(s,r)=>(P(),F("button",{ref_key:"elRef",ref:i,type:"button","data-dp-element":s.elName,class:"dp__btn dp--arrow-btn-nav",tabindex:"0","aria-label":s.ariaLabel,"aria-disabled":s.disabled||void 0,onClick:r[0]||(r[0]=o=>s.$emit("activate")),onKeydown:r[1]||(r[1]=o=>Z(si)(o,()=>s.$emit("activate"),!0))},[f("span",{class:Se(["dp__inner_nav",{dp__inner_nav_disabled:s.disabled}])},[Fe(s.$slots,"default")],2)],40,z4))}}),W4=["aria-label","data-test"],bS=fn({__name:"YearModePicker",props:{..._s,showYearPicker:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},instance:{type:Number,default:0},year:{type:Number,default:0},isDisabled:{type:Function,default:()=>!1}},emits:["toggle-year-picker","year-select","handle-year"],setup(t,{emit:e}){const n=e,i=t,{showRightIcon:s,showLeftIcon:r}=Tf(),{defaultedConfig:o,defaultedMultiCalendars:a,defaultedAriaLabels:l,defaultedTransitions:c,defaultedUI:u}=Kt(i),{showTransition:d,transitionName:h}=Yu(c),g=me(!1),p=(y=!1,x)=>{g.value=!g.value,n("toggle-year-picker",{flow:y,show:x})},m=y=>{g.value=!1,n("year-select",y)},v=(y=!1)=>{n("handle-year",y)};return(y,x)=>{var E,w,b,C,k;return P(),F(De,null,[f("div",{class:Se(["dp--year-mode-picker",{"dp--hidden-el":g.value}])},[Z(r)(Z(a),t.instance)?(P(),Ee(jc,{key:0,ref:"mpPrevIconRef","aria-label":(E=Z(l))==null?void 0:E.prevYear,disabled:t.isDisabled(!1),class:Se((w=Z(u))==null?void 0:w.navBtnPrev),onActivate:x[0]||(x[0]=T=>v(!1))},{default:Me(()=>[y.$slots["arrow-left"]?Fe(y.$slots,"arrow-left",{key:0}):se("",!0),y.$slots["arrow-left"]?se("",!0):(P(),Ee(Z($_),{key:1}))]),_:3},8,["aria-label","disabled","class"])):se("",!0),f("button",{ref:"mpYearButtonRef",class:"dp__btn dp--year-select",type:"button","aria-label":`${t.year}-${(b=Z(l))==null?void 0:b.openYearsOverlay}`,"data-test":`year-mode-btn-${t.instance}`,onClick:x[1]||(x[1]=()=>p(!1)),onKeydown:x[2]||(x[2]=dC(()=>p(!1),["enter"]))},[y.$slots.year?Fe(y.$slots,"year",{key:0,year:t.year}):se("",!0),y.$slots.year?se("",!0):(P(),F(De,{key:1},[Be(pe(t.year),1)],64))],40,W4),Z(s)(Z(a),t.instance)?(P(),Ee(jc,{key:1,ref:"mpNextIconRef","aria-label":(C=Z(l))==null?void 0:C.nextYear,disabled:t.isDisabled(!0),class:Se((k=Z(u))==null?void 0:k.navBtnNext),onActivate:x[3]||(x[3]=T=>v(!0))},{default:Me(()=>[y.$slots["arrow-right"]?Fe(y.$slots,"arrow-right",{key:0}):se("",!0),y.$slots["arrow-right"]?se("",!0):(P(),Ee(Z(L_),{key:1}))]),_:3},8,["aria-label","disabled","class"])):se("",!0)],2),L(xt,{name:Z(h)(t.showYearPicker),css:Z(d)},{default:Me(()=>{var T,A;return[t.showYearPicker?(P(),Ee(Wu,{key:0,items:t.items,"text-input":y.textInput,"esc-close":y.escClose,config:y.config,"is-last":y.autoApply&&!Z(o).keepActionRow,"hide-navigation":y.hideNavigation,"aria-labels":y.ariaLabels,"overlay-label":(A=(T=Z(l))==null?void 0:T.yearPicker)==null?void 0:A.call(T,!0),type:"year",onToggle:p,onSelected:x[4]||(x[4]=I=>m(I))},Xn({"button-icon":Me(()=>[y.$slots["calendar-icon"]?Fe(y.$slots,"calendar-icon",{key:0}):se("",!0),y.$slots["calendar-icon"]?se("",!0):(P(),Ee(Z(Gl),{key:1}))]),_:2},[y.$slots["year-overlay-value"]?{name:"item",fn:Me(({item:I})=>[Fe(y.$slots,"year-overlay-value",{text:I.text,value:I.value})]),key:"0"}:void 0]),1032,["items","text-input","esc-close","config","is-last","hide-navigation","aria-labels","overlay-label"])):se("",!0)]}),_:3},8,["name","css"])],64)}}}),H_=(t,e,n)=>{if(e.value&&Array.isArray(e.value))if(e.value.some(i=>ct(t,i))){const i=e.value.filter(s=>!ct(s,t));e.value=i.length?i:null}else(n&&+n>e.value.length||!n)&&e.value.push(t);else e.value=[t]},j_=(t,e,n)=>{let i=t.value?t.value.slice():[];return i.length===2&&i[1]!==null&&(i=[]),i.length?tn(e,i[0])?(i.unshift(e),n("range-start",i[0]),n("range-start",i[1])):(i[1]=e,n("range-end",e)):(i=[e],n("range-start",e)),i},kf=(t,e,n,i)=>{t&&(t[0]&&t[1]&&n&&e("auto-apply"),t[0]&&!t[1]&&i&&n&&e("auto-apply"))},wS=t=>{Array.isArray(t.value)&&t.value.length<=2&&t.range?t.modelValue.value=t.value.map(e=>xi(ke(e),t.timezone)):Array.isArray(t.value)||(t.modelValue.value=xi(ke(t.value),t.timezone))},xS=(t,e,n,i)=>Array.isArray(e.value)&&(e.value.length===2||e.value.length===1&&i.value.partialRange)?i.value.fixedStart&&(ln(t,e.value[0])||ct(t,e.value[0]))?[e.value[0],t]:i.value.fixedEnd&&(tn(t,e.value[1])||ct(t,e.value[1]))?[t,e.value[1]]:(n("invalid-fixed-range",t),e.value):[],ES=({multiCalendars:t,range:e,highlight:n,propDates:i,calendars:s,modelValue:r,props:o,filters:a,year:l,month:c,emit:u})=>{const d=ye(()=>V_(o.yearRange,o.locale,o.reverseYears)),h=me([!1]),g=ye(()=>(I,V)=>{const Y=Dt(os(new Date),{month:c.value(I),year:l.value(I)}),ne=V?KC(Y):lu(Y);return pS(ne,i.value.maxDate,i.value.minDate,o.preventMinMaxNavigation,V)}),p=()=>Array.isArray(r.value)&&t.value.solo&&r.value[1],m=()=>{for(let I=0;I{if(!I)return m();const V=Dt(ke(),s.value[I]);return s.value[0].year=qe(rS(V,t.value.count-1)),m()},y=(I,V)=>{const Y=tF(V,I);return e.value.showLastInRange&&Y>1?V:I},x=I=>o.focusStartDate||t.value.solo?I[0]:I[1]?y(I[0],I[1]):I[0],E=()=>{if(r.value){const I=Array.isArray(r.value)?x(r.value):r.value;s.value[0]={month:at(I),year:qe(I)}}},w=()=>{E(),t.value.count&&m()};Zt(r,(I,V)=>{o.isTextInputDate&&JSON.stringify(I??{})!==JSON.stringify(V??{})&&w()}),Vt(()=>{w()});const b=(I,V)=>{s.value[V].year=I,u("update-month-year",{instance:V,year:I,month:s.value[V].month}),t.value.count&&!t.value.solo&&v(V)},C=ye(()=>I=>Pl(d.value,V=>{var Y;const ne=l.value(I)===V.value,N=uu(V.value,Ml(i.value.minDate),Ml(i.value.maxDate))||((Y=a.value.years)==null?void 0:Y.includes(l.value(I))),B=Y_(n.value,V.value);return{active:ne,disabled:N,highlighted:B}})),k=(I,V)=>{b(I,V),A(V)},T=(I,V=!1)=>{if(!g.value(I,V)){const Y=V?l.value(I)+1:l.value(I)-1;b(Y,I)}},A=(I,V=!1,Y)=>{V||u("reset-flow"),Y!==void 0?h.value[I]=Y:h.value[I]=!h.value[I],h.value[I]?u("overlay-toggle",{open:!0,overlay:jn.year}):(u("overlay-closed"),u("overlay-toggle",{open:!1,overlay:jn.year}))};return{isDisabled:g,groupedYears:C,showYearPicker:h,selectYear:b,toggleYearPicker:A,handleYearSelect:k,handleYear:T}},Y4=(t,e)=>{const{defaultedMultiCalendars:n,defaultedAriaLabels:i,defaultedTransitions:s,defaultedConfig:r,defaultedRange:o,defaultedHighlight:a,propDates:l,defaultedTz:c,defaultedFilters:u,defaultedMultiDates:d}=Kt(t),h=()=>{t.isTextInputDate&&w(qe(ke(t.startDate)),0)},{modelValue:g,year:p,month:m,calendars:v}=Hu(t,e,h),y=ye(()=>aS(t.formatLocale,t.locale,t.monthNameFormat)),x=me(null),{checkMinMaxRange:E}=bo(t),{selectYear:w,groupedYears:b,showYearPicker:C,toggleYearPicker:k,handleYearSelect:T,handleYear:A,isDisabled:I}=ES({modelValue:g,multiCalendars:n,range:o,highlight:a,calendars:v,year:p,propDates:l,month:m,filters:u,props:t,emit:e});Vt(()=>{t.startDate&&(g.value&&t.focusStartDate||!g.value)&&w(qe(ke(t.startDate)),0)});const V=D=>D?{month:at(D),year:qe(D)}:{month:null,year:null},Y=()=>g.value?Array.isArray(g.value)?g.value.map(D=>V(D)):V(g.value):V(),ne=(D,ee)=>{const ue=v.value[D],$=Y();return Array.isArray($)?$.some(le=>le.year===ue?.year&&le.month===ee):ue?.year===$.year&&ee===$.month},N=(D,ee,ue)=>{var $,le;const de=Y();return Array.isArray(de)?p.value(ee)===(($=de[ue])==null?void 0:$.year)&&D===((le=de[ue])==null?void 0:le.month):!1},B=(D,ee)=>{if(o.value.enabled){const ue=Y();if(Array.isArray(g.value)&&Array.isArray(ue)){const $=N(D,ee,0)||N(D,ee,1),le=ar(os(ke()),D,p.value(ee));return Ef(g.value,x.value,le)&&!$}return!1}return!1},R=ye(()=>D=>Pl(y.value,ee=>{var ue;const $=ne(D,ee.value),le=uu(ee.value,dS(p.value(D),l.value.minDate),hS(p.value(D),l.value.maxDate))||g4(l.value.disabledDates,p.value(D)).includes(ee.value)||((ue=u.value.months)==null?void 0:ue.includes(ee.value)),de=B(ee.value,D),xe=_S(a.value,ee.value,p.value(D));return{active:$,disabled:le,isBetween:de,highlighted:xe}})),z=(D,ee)=>ar(os(ke()),D,p.value(ee)),X=(D,ee)=>{const ue=g.value?g.value:os(new Date);g.value=ar(ue,D,p.value(ee)),e("auto-apply"),e("update-flow-step")},J=(D,ee)=>{const ue=z(D,ee);o.value.fixedEnd||o.value.fixedStart?g.value=xS(ue,g,e,o):g.value?E(ue,g.value)&&(g.value=j_(g,z(D,ee),e)):g.value=[z(D,ee)],Rn().then(()=>{kf(g.value,e,t.autoApply,t.modelAuto)})},H=(D,ee)=>{H_(z(D,ee),g,d.value.limit),e("auto-apply",!0)},ce=(D,ee)=>(v.value[ee].month=D,te(ee,v.value[ee].year,D),d.value.enabled?H(D,ee):o.value.enabled?J(D,ee):X(D,ee)),ie=(D,ee)=>{w(D,ee),te(ee,D,null)},te=(D,ee,ue)=>{let $=ue;if(!$&&$!==0){const le=Y();$=Array.isArray(le)?le[D].month:le.month}e("update-month-year",{instance:D,year:ee,month:$})};return{groupedMonths:R,groupedYears:b,year:p,isDisabled:I,defaultedMultiCalendars:n,defaultedAriaLabels:i,defaultedTransitions:s,defaultedConfig:r,showYearPicker:C,modelValue:g,presetDate:(D,ee)=>{wS({value:D,modelValue:g,range:o.value.enabled,timezone:ee?void 0:c.value.timezone}),e("auto-apply")},setHoverDate:(D,ee)=>{x.value=z(D,ee)},selectMonth:ce,selectYear:ie,toggleYearPicker:k,handleYearSelect:T,handleYear:A,getModelMonthYear:Y}},H4=fn({compatConfig:{MODE:3},__name:"MonthPicker",props:{..._s},emits:["update:internal-model-value","overlay-closed","reset-flow","range-start","range-end","auto-apply","update-month-year","update-flow-step","mount","invalid-fixed-range","overlay-toggle"],setup(t,{expose:e,emit:n}){const i=n,s=va(),r=Pi(s,"yearMode"),o=t;Vt(()=>{o.shadow||i("mount",null)});const{groupedMonths:a,groupedYears:l,year:c,isDisabled:u,defaultedMultiCalendars:d,defaultedConfig:h,showYearPicker:g,modelValue:p,presetDate:m,setHoverDate:v,selectMonth:y,selectYear:x,toggleYearPicker:E,handleYearSelect:w,handleYear:b,getModelMonthYear:C}=Y4(o,i);return e({getSidebarProps:()=>({modelValue:p,year:c,getModelMonthYear:C,selectMonth:y,selectYear:x,handleYear:b}),presetDate:m,toggleYearPicker:k=>E(0,k)}),(k,T)=>(P(),Ee(Sf,{"multi-calendars":Z(d).count,collapse:k.collapse,stretch:""},{default:Me(({instance:A})=>[k.$slots["top-extra"]?Fe(k.$slots,"top-extra",{key:0,value:k.internalModelValue}):se("",!0),k.$slots["month-year"]?Fe(k.$slots,"month-year",In(xn({key:1},{year:Z(c),months:Z(a)(A),years:Z(l)(A),selectMonth:Z(y),selectYear:Z(x),instance:A}))):(P(),Ee(Wu,{key:2,items:Z(a)(A),"arrow-navigation":k.arrowNavigation,"is-last":k.autoApply&&!Z(h).keepActionRow,"esc-close":k.escClose,height:Z(h).modeHeight,config:k.config,"no-overlay-focus":!!(k.noOverlayFocus||k.textInput),"use-relative":"",type:"month",onSelected:I=>Z(y)(I,A),onHoverValue:I=>Z(v)(I,A)},Xn({header:Me(()=>[L(bS,xn(k.$props,{items:Z(l)(A),instance:A,"show-year-picker":Z(g)[A],year:Z(c)(A),"is-disabled":I=>Z(u)(A,I),onHandleYear:I=>Z(b)(A,I),onYearSelect:I=>Z(w)(I,A),onToggleYearPicker:I=>Z(E)(A,I?.flow,I?.show)}),Xn({_:2},[Ge(Z(r),(I,V)=>({name:I,fn:Me(Y=>[Fe(k.$slots,I,In(ii(Y)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),_:2},[k.$slots["month-overlay-value"]?{name:"item",fn:Me(({item:I})=>[Fe(k.$slots,"month-overlay-value",{text:I.text,value:I.value})]),key:"0"}:void 0]),1032,["items","arrow-navigation","is-last","esc-close","height","config","no-overlay-focus","onSelected","onHoverValue"]))]),_:3},8,["multi-calendars","collapse"]))}}),j4=(t,e)=>{const n=()=>{t.isTextInputDate&&(u.value=qe(ke(t.startDate)))},{modelValue:i}=Hu(t,e,n),s=me(null),{defaultedHighlight:r,defaultedMultiDates:o,defaultedFilters:a,defaultedRange:l,propDates:c}=Kt(t),u=me();Vt(()=>{t.startDate&&(i.value&&t.focusStartDate||!i.value)&&(u.value=qe(ke(t.startDate)))});const d=m=>Array.isArray(i.value)?i.value.some(v=>qe(v)===m):i.value?qe(i.value)===m:!1,h=m=>l.value.enabled&&Array.isArray(i.value)?Ef(i.value,s.value,p(m)):!1,g=ye(()=>Pl(V_(t.yearRange,t.locale,t.reverseYears),m=>{const v=d(m.value),y=uu(m.value,Ml(c.value.minDate),Ml(c.value.maxDate))||a.value.years.includes(m.value),x=h(m.value)&&!v,E=Y_(r.value,m.value);return{active:v,disabled:y,isBetween:x,highlighted:E}})),p=m=>As(os(lu(new Date)),m);return{groupedYears:g,modelValue:i,focusYear:u,setHoverValue:m=>{s.value=As(os(new Date),m)},selectYear:m=>{var v;if(e("update-month-year",{instance:0,year:m}),o.value.enabled)return i.value?Array.isArray(i.value)&&(((v=i.value)==null?void 0:v.map(y=>qe(y))).includes(m)?i.value=i.value.filter(y=>qe(y)!==m):i.value.push(As(ai(ke()),m))):i.value=[As(ai(lu(ke())),m)],e("auto-apply",!0);l.value.enabled?(i.value=j_(i,p(m),e),Rn().then(()=>{kf(i.value,e,t.autoApply,t.modelAuto)})):(i.value=p(m),e("auto-apply"))}}},K4=fn({compatConfig:{MODE:3},__name:"YearPicker",props:{..._s},emits:["update:internal-model-value","reset-flow","range-start","range-end","auto-apply","update-month-year"],setup(t,{expose:e,emit:n}){const i=n,s=t,{groupedYears:r,modelValue:o,focusYear:a,selectYear:l,setHoverValue:c}=j4(s,i),{defaultedConfig:u}=Kt(s);return e({getSidebarProps:()=>({modelValue:o,selectYear:l})}),(d,h)=>(P(),F("div",null,[d.$slots["top-extra"]?Fe(d.$slots,"top-extra",{key:0,value:d.internalModelValue}):se("",!0),d.$slots["month-year"]?Fe(d.$slots,"month-year",In(xn({key:1},{years:Z(r),selectYear:Z(l)}))):(P(),Ee(Wu,{key:2,items:Z(r),"is-last":d.autoApply&&!Z(u).keepActionRow,height:Z(u).modeHeight,config:d.config,"no-overlay-focus":!!(d.noOverlayFocus||d.textInput),"focus-value":Z(a),type:"year","use-relative":"",onSelected:Z(l),onHoverValue:Z(c)},Xn({_:2},[d.$slots["year-overlay-value"]?{name:"item",fn:Me(({item:g})=>[Fe(d.$slots,"year-overlay-value",{text:g.text,value:g.value})]),key:"0"}:void 0]),1032,["items","is-last","height","config","no-overlay-focus","focus-value","onSelected","onHoverValue"]))]))}}),U4={key:0,class:"dp__time_input"},G4=["data-test","aria-label","onKeydown","onClick","onMousedown"],X4=["aria-label","disabled","data-test","onKeydown","onClick"],q4=["data-test","aria-label","onKeydown","onClick","onMousedown"],Z4={key:0},J4=["aria-label"],Q4=fn({compatConfig:{MODE:3},__name:"TimeInput",props:{hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},closeTimePickerBtn:{type:Object,default:null},order:{type:Number,default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},..._s},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","overlay-opened","am-pm-change"],setup(t,{expose:e,emit:n}){const i=n,s=t,{setTimePickerElements:r,setTimePickerBackRef:o}=yo(),{defaultedAriaLabels:a,defaultedTransitions:l,defaultedFilters:c,defaultedConfig:u,defaultedRange:d}=Kt(s),{transitionName:h,showTransition:g}=Yu(l),p=Ei({hours:!1,minutes:!1,seconds:!1}),m=me("AM"),v=me(null),y=me([]),x=me(),E=me(!1);Vt(()=>{i("mounted")});const w=S=>Dt(new Date,{hours:S.hours,minutes:S.minutes,seconds:s.enableSeconds?S.seconds:0,milliseconds:0}),b=ye(()=>S=>z(S,s[S])||k(S,s[S])),C=ye(()=>({hours:s.hours,minutes:s.minutes,seconds:s.seconds})),k=(S,O)=>d.value.enabled&&!d.value.disableTimeRangeValidation?!s.validateTime(S,O):!1,T=(S,O)=>{if(d.value.enabled&&!d.value.disableTimeRangeValidation){const K=O?+s[`${S}Increment`]:-+s[`${S}Increment`],U=s[S]+K;return!s.validateTime(S,U)}return!1},A=ye(()=>S=>!ie(+s[S]+ +s[`${S}Increment`],S)||T(S,!0)),I=ye(()=>S=>!ie(+s[S]-+s[`${S}Increment`],S)||T(S,!1)),V=(S,O)=>BC(Dt(ke(),S),O),Y=(S,O)=>q5(Dt(ke(),S),O),ne=ye(()=>({dp__time_col:!0,dp__time_col_block:!s.timePickerInline,dp__time_col_reg_block:!s.enableSeconds&&s.is24&&!s.timePickerInline,dp__time_col_reg_inline:!s.enableSeconds&&s.is24&&s.timePickerInline,dp__time_col_reg_with_button:!s.enableSeconds&&!s.is24,dp__time_col_sec:s.enableSeconds&&s.is24,dp__time_col_sec_with_button:s.enableSeconds&&!s.is24})),N=ye(()=>{const S=[{type:"hours"}];return s.enableMinutes&&S.push({type:"",separator:!0},{type:"minutes"}),s.enableSeconds&&S.push({type:"",separator:!0},{type:"seconds"}),S}),B=ye(()=>N.value.filter(S=>!S.separator)),R=ye(()=>S=>{if(S==="hours"){const O=le(+s.hours);return{text:O<10?`0${O}`:`${O}`,value:O}}return{text:s[S]<10?`0${s[S]}`:`${s[S]}`,value:s[S]}}),z=(S,O)=>{var K;if(!s.disabledTimesConfig)return!1;const U=s.disabledTimesConfig(s.order,S==="hours"?O:void 0);return U[S]?!!((K=U[S])!=null&&K.includes(O)):!0},X=(S,O)=>O!=="hours"||m.value==="AM"?S:S+12,J=S=>{const O=s.is24?24:12,K=S==="hours"?O:60,U=+s[`${S}GridIncrement`],oe=S==="hours"&&!s.is24?U:0,j=[];for(let re=oe;re({active:!1,disabled:c.value.times[S].includes(re.value)||!ie(re.value,S)||z(S,re.value)||k(S,re.value)}))},H=S=>S>=0?S:59,ce=S=>S>=0?S:23,ie=(S,O)=>{const K=s.minTime?w(Og(s.minTime)):null,U=s.maxTime?w(Og(s.maxTime)):null,oe=w(Og(C.value,O,O==="minutes"||O==="seconds"?H(S):ce(S)));return K&&U?(cu(oe,U)||tl(oe,U))&&(Tl(oe,K)||tl(oe,K)):K?Tl(oe,K)||tl(oe,K):U?cu(oe,U)||tl(oe,U):!0},te=S=>s[`no${S[0].toUpperCase()+S.slice(1)}Overlay`],D=S=>{te(S)||(p[S]=!p[S],p[S]?(E.value=!0,i("overlay-opened",S)):(E.value=!1,i("overlay-closed",S)))},ee=S=>S==="hours"?vr:S==="minutes"?ao:kl,ue=()=>{x.value&&clearTimeout(x.value)},$=(S,O=!0,K)=>{const U=O?V:Y,oe=O?+s[`${S}Increment`]:-+s[`${S}Increment`];ie(+s[S]+oe,S)&&i(`update:${S}`,ee(S)(U({[S]:+s[S]},{[S]:+s[`${S}Increment`]}))),!(K!=null&&K.keyboard)&&u.value.timeArrowHoldThreshold&&(x.value=setTimeout(()=>{$(S,O)},u.value.timeArrowHoldThreshold))},le=S=>s.is24?S:(S>=12?m.value="PM":m.value="AM",n4(S)),de=()=>{m.value==="PM"?(m.value="AM",i("update:hours",s.hours-12)):(m.value="PM",i("update:hours",s.hours+12)),i("am-pm-change",m.value)},xe=S=>{p[S]=!0},W=(S,O,K)=>{if(S&&s.arrowNavigation){Array.isArray(y.value[O])?y.value[O][K]=S:y.value[O]=[S];const U=y.value.reduce((oe,j)=>j.map((re,Q)=>[...oe[Q]||[],j[Q]]),[]);o(s.closeTimePickerBtn),v.value&&(U[1]=U[1].concat(v.value)),r(U,s.order)}},fe=(S,O)=>(D(S),i(`update:${S}`,O));return e({openChildCmp:xe}),(S,O)=>{var K;return S.disabled?se("",!0):(P(),F("div",U4,[(P(!0),F(De,null,Ge(N.value,(U,oe)=>{var j,re,Q;return P(),F("div",{key:oe,class:Se(ne.value)},[U.separator?(P(),F(De,{key:0},[E.value?se("",!0):(P(),F(De,{key:0},[Be(":")],64))],64)):(P(),F(De,{key:1},[f("button",{ref_for:!0,ref:ge=>W(ge,oe,0),type:"button",class:Se({dp__btn:!0,dp__inc_dec_button:!S.timePickerInline,dp__inc_dec_button_inline:S.timePickerInline,dp__tp_inline_btn_top:S.timePickerInline,dp__inc_dec_button_disabled:A.value(U.type),"dp--hidden-el":E.value}),"data-test":`${U.type}-time-inc-btn-${s.order}`,"aria-label":(j=Z(a))==null?void 0:j.incrementValue(U.type),tabindex:"0",onKeydown:ge=>Z(si)(ge,()=>$(U.type,!0,{keyboard:!0}),!0),onClick:ge=>Z(u).timeArrowHoldThreshold?void 0:$(U.type,!0),onMousedown:ge=>Z(u).timeArrowHoldThreshold?$(U.type,!0):void 0,onMouseup:ue},[s.timePickerInline?(P(),F(De,{key:1},[S.$slots["tp-inline-arrow-up"]?Fe(S.$slots,"tp-inline-arrow-up",{key:0}):(P(),F(De,{key:1},[O[2]||(O[2]=f("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),O[3]||(O[3]=f("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))],64))],64)):(P(),F(De,{key:0},[S.$slots["arrow-up"]?Fe(S.$slots,"arrow-up",{key:0}):se("",!0),S.$slots["arrow-up"]?se("",!0):(P(),Ee(Z(N_),{key:1}))],64))],42,G4),f("button",{ref_for:!0,ref:ge=>W(ge,oe,1),type:"button","aria-label":`${R.value(U.type).text}-${(re=Z(a))==null?void 0:re.openTpOverlay(U.type)}`,class:Se({dp__time_display:!0,dp__time_display_block:!S.timePickerInline,dp__time_display_inline:S.timePickerInline,"dp--time-invalid":b.value(U.type),"dp--time-overlay-btn":!b.value(U.type),"dp--hidden-el":E.value}),disabled:te(U.type),tabindex:"0","data-test":`${U.type}-toggle-overlay-btn-${s.order}`,onKeydown:ge=>Z(si)(ge,()=>D(U.type),!0),onClick:ge=>D(U.type)},[S.$slots[U.type]?Fe(S.$slots,U.type,{key:0,text:R.value(U.type).text,value:R.value(U.type).value}):se("",!0),S.$slots[U.type]?se("",!0):(P(),F(De,{key:1},[Be(pe(R.value(U.type).text),1)],64))],42,X4),f("button",{ref_for:!0,ref:ge=>W(ge,oe,2),type:"button",class:Se({dp__btn:!0,dp__inc_dec_button:!S.timePickerInline,dp__inc_dec_button_inline:S.timePickerInline,dp__tp_inline_btn_bottom:S.timePickerInline,dp__inc_dec_button_disabled:I.value(U.type),"dp--hidden-el":E.value}),"data-test":`${U.type}-time-dec-btn-${s.order}`,"aria-label":(Q=Z(a))==null?void 0:Q.decrementValue(U.type),tabindex:"0",onKeydown:ge=>Z(si)(ge,()=>$(U.type,!1,{keyboard:!0}),!0),onClick:ge=>Z(u).timeArrowHoldThreshold?void 0:$(U.type,!1),onMousedown:ge=>Z(u).timeArrowHoldThreshold?$(U.type,!1):void 0,onMouseup:ue},[s.timePickerInline?(P(),F(De,{key:1},[S.$slots["tp-inline-arrow-down"]?Fe(S.$slots,"tp-inline-arrow-down",{key:0}):(P(),F(De,{key:1},[O[4]||(O[4]=f("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),O[5]||(O[5]=f("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))],64))],64)):(P(),F(De,{key:0},[S.$slots["arrow-down"]?Fe(S.$slots,"arrow-down",{key:0}):se("",!0),S.$slots["arrow-down"]?se("",!0):(P(),Ee(Z(F_),{key:1}))],64))],42,q4)],64))],2)}),128)),S.is24?se("",!0):(P(),F("div",Z4,[S.$slots["am-pm-button"]?Fe(S.$slots,"am-pm-button",{key:0,toggle:de,value:m.value}):se("",!0),S.$slots["am-pm-button"]?se("",!0):(P(),F("button",{key:1,ref_key:"amPmButton",ref:v,type:"button",class:"dp__pm_am_button",role:"button","aria-label":(K=Z(a))==null?void 0:K.amPmButton,tabindex:"0",onClick:de,onKeydown:O[0]||(O[0]=U=>Z(si)(U,()=>de(),!0))},pe(m.value),41,J4))])),(P(!0),F(De,null,Ge(B.value,(U,oe)=>(P(),Ee(xt,{key:oe,name:Z(h)(p[U.type]),css:Z(g)},{default:Me(()=>{var j,re;return[p[U.type]?(P(),Ee(Wu,{key:0,items:J(U.type),"is-last":S.autoApply&&!Z(u).keepActionRow,"esc-close":S.escClose,type:U.type,"text-input":S.textInput,config:S.config,"arrow-navigation":S.arrowNavigation,"aria-labels":S.ariaLabels,"overlay-label":(re=(j=Z(a)).timeOverlay)==null?void 0:re.call(j,U.type),onSelected:Q=>fe(U.type,Q),onToggle:Q=>D(U.type),onResetFlow:O[1]||(O[1]=Q=>S.$emit("reset-flow"))},Xn({"button-icon":Me(()=>[S.$slots["clock-icon"]?Fe(S.$slots,"clock-icon",{key:0}):se("",!0),S.$slots["clock-icon"]?se("",!0):(P(),Ee(_a(S.timePickerInline?Z(Gl):Z(O_)),{key:1}))]),_:2},[S.$slots[`${U.type}-overlay-value`]?{name:"item",fn:Me(({item:Q})=>[Fe(S.$slots,`${U.type}-overlay-value`,{text:Q.text,value:Q.value})]),key:"0"}:void 0,S.$slots[`${U.type}-overlay-header`]?{name:"header",fn:Me(()=>[Fe(S.$slots,`${U.type}-overlay-header`,{toggle:()=>D(U.type)})]),key:"1"}:void 0]),1032,["items","is-last","esc-close","type","text-input","config","arrow-navigation","aria-labels","overlay-label","onSelected","onToggle"])):se("",!0)]}),_:2},1032,["name","css"]))),128))]))}}}),eB={class:"dp--tp-wrap"},tB=["aria-label","tabindex"],nB=["role","aria-label","tabindex"],iB=["aria-label"],CS=fn({compatConfig:{MODE:3},__name:"TimePicker",props:{hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},..._s},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow","overlay-opened","overlay-closed","am-pm-change"],setup(t,{expose:e,emit:n}){const i=n,s=t,{buildMatrix:r,setTimePicker:o}=yo(),a=va(),{defaultedTransitions:l,defaultedAriaLabels:c,defaultedTextInput:u,defaultedConfig:d,defaultedRange:h}=Kt(s),{transitionName:g,showTransition:p}=Yu(l),{hideNavigationButtons:m}=Tf(),v=me(null),y=me(null),x=me([]),E=me(null),w=me(!1);Vt(()=>{i("mount"),!s.timePicker&&s.arrowNavigation?r([bn(v.value)],"time"):o(!0,s.timePicker)});const b=ye(()=>h.value.enabled&&s.modelAuto?lS(s.internalModelValue):!0),C=me(!1),k=J=>({hours:Array.isArray(s.hours)?s.hours[J]:s.hours,minutes:Array.isArray(s.minutes)?s.minutes[J]:s.minutes,seconds:Array.isArray(s.seconds)?s.seconds[J]:s.seconds}),T=ye(()=>{const J=[];if(h.value.enabled)for(let H=0;H<2;H++)J.push(k(H));else J.push(k(0));return J}),A=(J,H=!1,ce="")=>{H||i("reset-flow"),C.value=J,i(J?"overlay-opened":"overlay-closed",jn.time),s.arrowNavigation&&o(J),Rn(()=>{ce!==""&&x.value[0]&&x.value[0].openChildCmp(ce)})},I=ye(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:s.autoApply&&!d.value.keepActionRow})),V=Pi(a,"timePicker"),Y=(J,H,ce)=>h.value.enabled?H===0?[J,T.value[1][ce]]:[T.value[0][ce],J]:J,ne=J=>{i("update:hours",J)},N=J=>{i("update:minutes",J)},B=J=>{i("update:seconds",J)},R=()=>{if(E.value&&!u.value.enabled&&!s.noOverlayFocus){const J=cS(E.value);J&&J.focus({preventScroll:!0})}},z=J=>{w.value=!1,i("overlay-closed",J)},X=J=>{w.value=!0,i("overlay-opened",J)};return e({toggleTimePicker:A}),(J,H)=>{var ce;return P(),F("div",eB,[!J.timePicker&&!J.timePickerInline?Re((P(),F("button",{key:0,ref_key:"openTimePickerBtn",ref:v,type:"button",class:Se({...I.value,"dp--hidden-el":C.value}),"aria-label":(ce=Z(c))==null?void 0:ce.openTimePicker,tabindex:J.noOverlayFocus?void 0:0,"data-test":"open-time-picker-btn",onKeydown:H[0]||(H[0]=ie=>Z(si)(ie,()=>A(!0))),onClick:H[1]||(H[1]=ie=>A(!0))},[J.$slots["clock-icon"]?Fe(J.$slots,"clock-icon",{key:0}):se("",!0),J.$slots["clock-icon"]?se("",!0):(P(),Ee(Z(O_),{key:1}))],42,tB)),[[ah,!Z(m)(J.hideNavigation,"time")]]):se("",!0),L(xt,{name:Z(g)(C.value),css:Z(p)&&!J.timePickerInline},{default:Me(()=>{var ie,te;return[C.value||J.timePicker||J.timePickerInline?(P(),F("div",{key:0,ref_key:"overlayRef",ref:E,role:J.timePickerInline?void 0:"dialog",class:Se({dp__overlay:!J.timePickerInline,"dp--overlay-absolute":!s.timePicker&&!J.timePickerInline,"dp--overlay-relative":s.timePicker}),style:Mn(J.timePicker?{height:`${Z(d).modeHeight}px`}:void 0),"aria-label":(ie=Z(c))==null?void 0:ie.timePicker,tabindex:J.timePickerInline?void 0:0},[f("div",{class:Se(J.timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[J.$slots["time-picker-overlay"]?Fe(J.$slots,"time-picker-overlay",{key:0,hours:t.hours,minutes:t.minutes,seconds:t.seconds,setHours:ne,setMinutes:N,setSeconds:B}):se("",!0),J.$slots["time-picker-overlay"]?se("",!0):(P(),F("div",{key:1,class:Se(J.timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(P(!0),F(De,null,Ge(T.value,(D,ee)=>Re((P(),Ee(Q4,xn({key:ee,ref_for:!0},{...J.$props,order:ee,hours:D.hours,minutes:D.minutes,seconds:D.seconds,closeTimePickerBtn:y.value,disabledTimesConfig:t.disabledTimesConfig,disabled:ee===0?Z(h).fixedStart:Z(h).fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:x,"validate-time":(ue,$)=>t.validateTime(ue,Y($,ee,ue)),"onUpdate:hours":ue=>ne(Y(ue,ee,"hours")),"onUpdate:minutes":ue=>N(Y(ue,ee,"minutes")),"onUpdate:seconds":ue=>B(Y(ue,ee,"seconds")),onMounted:R,onOverlayClosed:z,onOverlayOpened:X,onAmPmChange:H[2]||(H[2]=ue=>J.$emit("am-pm-change",ue))}),Xn({_:2},[Ge(Z(V),(ue,$)=>({name:ue,fn:Me(le=>[Fe(J.$slots,ue,xn({ref_for:!0},le))])}))]),1040,["validate-time","onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[ah,ee===0?!0:b.value]])),128))],2)),!J.timePicker&&!J.timePickerInline?Re((P(),F("button",{key:2,ref_key:"closeTimePickerBtn",ref:y,type:"button",class:Se({...I.value,"dp--hidden-el":w.value}),"aria-label":(te=Z(c))==null?void 0:te.closeTimePicker,tabindex:"0",onKeydown:H[3]||(H[3]=D=>Z(si)(D,()=>A(!1))),onClick:H[4]||(H[4]=D=>A(!1))},[J.$slots["calendar-icon"]?Fe(J.$slots,"calendar-icon",{key:0}):se("",!0),J.$slots["calendar-icon"]?se("",!0):(P(),Ee(Z(Gl),{key:1}))],42,iB)),[[ah,!Z(m)(J.hideNavigation,"time")]]):se("",!0)],2)],14,nB)):se("",!0)]}),_:3},8,["name","css"])])}}}),SS=(t,e,n,i)=>{const{defaultedRange:s}=Kt(t),r=(E,w)=>Array.isArray(e[E])?e[E][w]:e[E],o=E=>t.enableSeconds?Array.isArray(e.seconds)?e.seconds[E]:e.seconds:0,a=(E,w)=>E?w!==void 0?to(E,r("hours",w),r("minutes",w),o(w)):to(E,e.hours,e.minutes,o()):sS(ke(),o(w)),l=(E,w)=>{e[E]=w},c=ye(()=>t.modelAuto&&s.value.enabled?Array.isArray(n.value)?n.value.length>1:!1:s.value.enabled),u=(E,w)=>{const b=Object.fromEntries(Object.keys(e).map(C=>C===E?[C,w]:[C,e[C]].slice()));if(c.value&&!s.value.disableTimeRangeValidation){const C=T=>n.value?to(n.value[T],b.hours[T],b.minutes[T],b.seconds[T]):null,k=T=>iS(n.value[T],0);return!(ct(C(0),C(1))&&(Tl(C(0),k(1))||cu(C(1),k(0))))}return!0},d=(E,w)=>{u(E,w)&&(l(E,w),i&&i())},h=E=>{d("hours",E)},g=E=>{d("minutes",E)},p=E=>{d("seconds",E)},m=(E,w,b,C)=>{w&&h(E),!w&&!b&&g(E),b&&p(E),n.value&&C(n.value)},v=E=>{if(E){const w=Array.isArray(E),b=w?[+E[0].hours,+E[1].hours]:+E.hours,C=w?[+E[0].minutes,+E[1].minutes]:+E.minutes,k=w?[+E[0].seconds,+E[1].seconds]:+E.seconds;l("hours",b),l("minutes",C),t.enableSeconds&&l("seconds",k)}},y=(E,w)=>{const b={hours:Array.isArray(e.hours)?e.hours[E]:e.hours,disabledArr:[]};return(w||w===0)&&(b.hours=w),Array.isArray(t.disabledTimes)&&(b.disabledArr=s.value.enabled&&Array.isArray(t.disabledTimes[E])?t.disabledTimes[E]:t.disabledTimes),b},x=ye(()=>(E,w)=>{var b;if(Array.isArray(t.disabledTimes)){const{disabledArr:C,hours:k}=y(E,w),T=C.filter(A=>+A.hours===k);return((b=T[0])==null?void 0:b.minutes)==="*"?{hours:[k],minutes:void 0,seconds:void 0}:{hours:[],minutes:T?.map(A=>+A.minutes)??[],seconds:T?.map(A=>A.seconds?+A.seconds:void 0)??[]}}return{hours:[],minutes:[],seconds:[]}});return{setTime:l,updateHours:h,updateMinutes:g,updateSeconds:p,getSetDateTime:a,updateTimeValues:m,getSecondsValue:o,assignStartTime:v,validateTime:u,disabledTimesConfig:x}},sB=(t,e)=>{const n=()=>{t.isTextInputDate&&w()},{modelValue:i,time:s}=Hu(t,e,n),{defaultedStartTime:r,defaultedRange:o,defaultedTz:a}=Kt(t),{updateTimeValues:l,getSetDateTime:c,setTime:u,assignStartTime:d,disabledTimesConfig:h,validateTime:g}=SS(t,s,i,p);function p(){e("update-flow-step")}const m=C=>{const{hours:k,minutes:T,seconds:A}=C;return{hours:+k,minutes:+T,seconds:A?+A:0}},v=()=>{if(t.startTime){if(Array.isArray(t.startTime)){const k=m(t.startTime[0]),T=m(t.startTime[1]);return[Dt(ke(),k),Dt(ke(),T)]}const C=m(t.startTime);return Dt(ke(),C)}return o.value.enabled?[null,null]:null},y=()=>{if(o.value.enabled){const[C,k]=v();i.value=[xi(c(C,0),a.value.timezone),xi(c(k,1),a.value.timezone)]}else i.value=xi(c(v()),a.value.timezone)},x=C=>Array.isArray(C)?[sa(ke(C[0])),sa(ke(C[1]))]:[sa(C??ke())],E=(C,k,T)=>{u("hours",C),u("minutes",k),u("seconds",t.enableSeconds?T:0)},w=()=>{const[C,k]=x(i.value);return o.value.enabled?E([C.hours,k.hours],[C.minutes,k.minutes],[C.seconds,k.seconds]):E(C.hours,C.minutes,C.seconds)};Vt(()=>{if(!t.shadow)return d(r.value),i.value?w():y()});const b=()=>{Array.isArray(i.value)?i.value=i.value.map((C,k)=>C&&c(C,k)):i.value=c(i.value),e("time-update")};return{modelValue:i,time:s,disabledTimesConfig:h,updateTime:(C,k=!0,T=!1)=>{l(C,k,T,b)},validateTime:g}},rB=fn({compatConfig:{MODE:3},__name:"TimePickerSolo",props:{..._s},emits:["update:internal-model-value","time-update","am-pm-change","mount","reset-flow","update-flow-step","overlay-toggle"],setup(t,{expose:e,emit:n}){const i=n,s=t,r=va(),o=Pi(r,"timePicker"),a=me(null),{time:l,modelValue:c,disabledTimesConfig:u,updateTime:d,validateTime:h}=sB(s,i);return Vt(()=>{s.shadow||i("mount",null)}),e({getSidebarProps:()=>({modelValue:c,time:l,updateTime:d}),toggleTimePicker:(g,p=!1,m="")=>{var v;(v=a.value)==null||v.toggleTimePicker(g,p,m)}}),(g,p)=>(P(),Ee(Sf,{"multi-calendars":0,stretch:""},{default:Me(()=>[L(CS,xn({ref_key:"tpRef",ref:a},g.$props,{hours:Z(l).hours,minutes:Z(l).minutes,seconds:Z(l).seconds,"internal-model-value":g.internalModelValue,"disabled-times-config":Z(u),"validate-time":Z(h),"onUpdate:hours":p[0]||(p[0]=m=>Z(d)(m)),"onUpdate:minutes":p[1]||(p[1]=m=>Z(d)(m,!1)),"onUpdate:seconds":p[2]||(p[2]=m=>Z(d)(m,!1,!0)),onAmPmChange:p[3]||(p[3]=m=>g.$emit("am-pm-change",m)),onResetFlow:p[4]||(p[4]=m=>g.$emit("reset-flow")),onOverlayClosed:p[5]||(p[5]=m=>g.$emit("overlay-toggle",{open:!1,overlay:m})),onOverlayOpened:p[6]||(p[6]=m=>g.$emit("overlay-toggle",{open:!0,overlay:m}))}),Xn({_:2},[Ge(Z(o),(m,v)=>({name:m,fn:Me(y=>[Fe(g.$slots,m,In(ii(y)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"])]),_:3}))}}),oB={class:"dp--header-wrap"},aB={key:0,class:"dp__month_year_wrap"},lB={key:0},cB={class:"dp__month_year_wrap"},uB=["data-dp-element","aria-label","data-test","onClick","onKeydown"],dB=fn({compatConfig:{MODE:3},__name:"DpHeader",props:{month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:()=>[]},months:{type:Array,default:()=>[]},..._s},emits:["update-month-year","mount","reset-flow","overlay-closed","overlay-opened"],setup(t,{expose:e,emit:n}){const i=n,s=t,{defaultedTransitions:r,defaultedAriaLabels:o,defaultedMultiCalendars:a,defaultedFilters:l,defaultedConfig:c,defaultedHighlight:u,propDates:d,defaultedUI:h}=Kt(s),{transitionName:g,showTransition:p}=Yu(r),{buildMatrix:m}=yo(),{handleMonthYearChange:v,isDisabled:y,updateMonthYear:x}=R4(s,i),{showLeftIcon:E,showRightIcon:w}=Tf(),b=me(!1),C=me(!1),k=me(!1),T=me([null,null,null,null]);Vt(()=>{i("mount")});const A=te=>({get:()=>s[te],set:D=>{const ee=te===ts.month?ts.year:ts.month;i("update-month-year",{[te]:D,[ee]:s[ee]}),te===ts.month?z(!0):X(!0)}}),I=ye(A(ts.month)),V=ye(A(ts.year)),Y=ye(()=>te=>({month:s.month,year:s.year,items:te===ts.month?s.months:s.years,instance:s.instance,updateMonthYear:x,toggle:te===ts.month?z:X})),ne=ye(()=>s.months.find(D=>D.value===s.month)||{text:"",value:0}),N=ye(()=>Pl(s.months,te=>{const D=s.month===te.value,ee=uu(te.value,dS(s.year,d.value.minDate),hS(s.year,d.value.maxDate))||l.value.months.includes(te.value),ue=_S(u.value,te.value,s.year);return{active:D,disabled:ee,highlighted:ue}})),B=ye(()=>Pl(s.years,te=>{const D=s.year===te.value,ee=uu(te.value,Ml(d.value.minDate),Ml(d.value.maxDate))||l.value.years.includes(te.value),ue=Y_(u.value,te.value);return{active:D,disabled:ee,highlighted:ue}})),R=(te,D,ee)=>{ee!==void 0?te.value=ee:te.value=!te.value,te.value?(k.value=!0,i("overlay-opened",D)):(k.value=!1,i("overlay-closed",D))},z=(te=!1,D)=>{J(te),R(b,jn.month,D)},X=(te=!1,D)=>{J(te),R(C,jn.year,D)},J=te=>{te||i("reset-flow")},H=(te,D)=>{s.arrowNavigation&&(T.value[D]=bn(te),m(T.value,"monthYear"))},ce=ye(()=>{var te,D,ee,ue,$,le;return[{type:ts.month,index:1,toggle:z,modelValue:I.value,updateModelValue:de=>I.value=de,text:ne.value.text,showSelectionGrid:b.value,items:N.value,ariaLabel:(te=o.value)==null?void 0:te.openMonthsOverlay,overlayLabel:((ee=(D=o.value).monthPicker)==null?void 0:ee.call(D,!0))??void 0},{type:ts.year,index:2,toggle:X,modelValue:V.value,updateModelValue:de=>V.value=de,text:uS(s.year,s.locale),showSelectionGrid:C.value,items:B.value,ariaLabel:(ue=o.value)==null?void 0:ue.openYearsOverlay,overlayLabel:((le=($=o.value).yearPicker)==null?void 0:le.call($,!0))??void 0}]}),ie=ye(()=>s.disableYearSelect?[ce.value[0]]:s.yearFirst?[...ce.value].reverse():ce.value);return e({toggleMonthPicker:z,toggleYearPicker:X,handleMonthYearChange:v}),(te,D)=>{var ee,ue,$,le,de,xe;return P(),F("div",oB,[te.$slots["month-year"]?(P(),F("div",aB,[Fe(te.$slots,"month-year",In(ii({month:t.month,year:t.year,months:t.months,years:t.years,updateMonthYear:Z(x),handleMonthYearChange:Z(v),instance:t.instance})))])):(P(),F(De,{key:1},[te.$slots["top-extra"]?(P(),F("div",lB,[Fe(te.$slots,"top-extra",{value:te.internalModelValue})])):se("",!0),f("div",cB,[Z(E)(Z(a),t.instance)&&!te.vertical?(P(),Ee(jc,{key:0,"aria-label":(ee=Z(o))==null?void 0:ee.prevMonth,disabled:Z(y)(!1),class:Se((ue=Z(h))==null?void 0:ue.navBtnPrev),"el-name":"action-prev",onActivate:D[0]||(D[0]=W=>Z(v)(!1,!0)),onSetRef:D[1]||(D[1]=W=>H(W,0))},{default:Me(()=>[te.$slots["arrow-left"]?Fe(te.$slots,"arrow-left",{key:0}):se("",!0),te.$slots["arrow-left"]?se("",!0):(P(),Ee(Z($_),{key:1}))]),_:3},8,["aria-label","disabled","class"])):se("",!0),f("div",{class:Se(["dp__month_year_wrap",{dp__year_disable_select:te.disableYearSelect}])},[(P(!0),F(De,null,Ge(ie.value,(W,fe)=>(P(),F(De,{key:W.type},[f("button",{ref_for:!0,ref:S=>H(S,fe+1),type:"button","data-dp-element":`overlay-${W.type}`,class:Se(["dp__btn dp__month_year_select",{"dp--hidden-el":k.value}]),"aria-label":`${W.text}-${W.ariaLabel}`,"data-test":`${W.type}-toggle-overlay-${t.instance}`,onClick:W.toggle,onKeydown:S=>Z(si)(S,()=>W.toggle(),!0)},[te.$slots[W.type]?Fe(te.$slots,W.type,{key:0,text:W.text,value:s[W.type]}):se("",!0),te.$slots[W.type]?se("",!0):(P(),F(De,{key:1},[Be(pe(W.text),1)],64))],42,uB),L(xt,{name:Z(g)(W.showSelectionGrid),css:Z(p)},{default:Me(()=>[W.showSelectionGrid?(P(),Ee(Wu,{key:0,items:W.items,"arrow-navigation":te.arrowNavigation,"hide-navigation":te.hideNavigation,"is-last":te.autoApply&&!Z(c).keepActionRow,"skip-button-ref":!1,config:te.config,type:W.type,"header-refs":[],"esc-close":te.escClose,"menu-wrap-ref":te.menuWrapRef,"text-input":te.textInput,"aria-labels":te.ariaLabels,"overlay-label":W.overlayLabel,onSelected:W.updateModelValue,onToggle:W.toggle},Xn({"button-icon":Me(()=>[te.$slots["calendar-icon"]?Fe(te.$slots,"calendar-icon",{key:0}):se("",!0),te.$slots["calendar-icon"]?se("",!0):(P(),Ee(Z(Gl),{key:1}))]),_:2},[te.$slots[`${W.type}-overlay-value`]?{name:"item",fn:Me(({item:S})=>[Fe(te.$slots,`${W.type}-overlay-value`,{text:S.text,value:S.value})]),key:"0"}:void 0,te.$slots[`${W.type}-overlay`]?{name:"overlay",fn:Me(()=>[Fe(te.$slots,`${W.type}-overlay`,xn({ref_for:!0},Y.value(W.type)))]),key:"1"}:void 0,te.$slots[`${W.type}-overlay-header`]?{name:"header",fn:Me(()=>[Fe(te.$slots,`${W.type}-overlay-header`,{toggle:W.toggle})]),key:"2"}:void 0]),1032,["items","arrow-navigation","hide-navigation","is-last","config","type","esc-close","menu-wrap-ref","text-input","aria-labels","overlay-label","onSelected","onToggle"])):se("",!0)]),_:2},1032,["name","css"])],64))),128))],2),Z(E)(Z(a),t.instance)&&te.vertical?(P(),Ee(jc,{key:1,"aria-label":($=Z(o))==null?void 0:$.prevMonth,"el-name":"action-prev",disabled:Z(y)(!1),class:Se((le=Z(h))==null?void 0:le.navBtnPrev),onActivate:D[2]||(D[2]=W=>Z(v)(!1,!0))},{default:Me(()=>[te.$slots["arrow-up"]?Fe(te.$slots,"arrow-up",{key:0}):se("",!0),te.$slots["arrow-up"]?se("",!0):(P(),Ee(Z(N_),{key:1}))]),_:3},8,["aria-label","disabled","class"])):se("",!0),Z(w)(Z(a),t.instance)?(P(),Ee(jc,{key:2,ref:"rightIcon","el-name":"action-next",disabled:Z(y)(!0),"aria-label":(de=Z(o))==null?void 0:de.nextMonth,class:Se((xe=Z(h))==null?void 0:xe.navBtnNext),onActivate:D[3]||(D[3]=W=>Z(v)(!0,!0)),onSetRef:D[4]||(D[4]=W=>H(W,te.disableYearSelect?2:3))},{default:Me(()=>[te.$slots[te.vertical?"arrow-down":"arrow-right"]?Fe(te.$slots,te.vertical?"arrow-down":"arrow-right",{key:0}):se("",!0),te.$slots[te.vertical?"arrow-down":"arrow-right"]?se("",!0):(P(),Ee(_a(te.vertical?Z(F_):Z(L_)),{key:1}))]),_:3},8,["disabled","aria-label","class"])):se("",!0)])],64))])}}}),hB={class:"dp__calendar_header",role:"row"},fB={key:0,class:"dp__calendar_header_item",role:"gridcell"},gB=["aria-label"],pB={key:0,class:"dp__calendar_item dp__week_num",role:"gridcell"},mB={class:"dp__cell_inner"},_B=["id","aria-pressed","aria-disabled","aria-label","tabindex","data-test","onClick","onTouchend","onKeydown","onMouseenter","onMouseleave","onMousedown"],vB=fn({compatConfig:{MODE:3},__name:"DpCalendar",props:{mappedDates:{type:Array,default:()=>[]},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0},..._s},emits:["select-date","set-hover-date","handle-scroll","mount","handle-swipe","handle-space","tooltip-open","tooltip-close"],setup(t,{expose:e,emit:n}){const i=n,s=t,{buildMultiLevelMatrix:r}=yo(),{defaultedTransitions:o,defaultedConfig:a,defaultedAriaLabels:l,defaultedMultiCalendars:c,defaultedWeekNumbers:u,defaultedMultiDates:d,defaultedUI:h}=Kt(s),g=me(null),p=me({bottom:"",left:"",transform:""}),m=me([]),v=me(null),y=me(!0),x=me(""),E=me({startX:0,endX:0,startY:0,endY:0}),w=me([]),b=me({left:"50%"}),C=me(!1),k=ye(()=>s.calendar?s.calendar(s.mappedDates):s.mappedDates),T=ye(()=>s.dayNames?Array.isArray(s.dayNames)?s.dayNames:s.dayNames(s.locale,+s.weekStart):t4(s.formatLocale,s.locale,+s.weekStart));Vt(()=>{i("mount",{cmp:"calendar",refs:m}),a.value.noSwipe||v.value&&(v.value.addEventListener("touchstart",H,{passive:!1}),v.value.addEventListener("touchend",ce,{passive:!1}),v.value.addEventListener("touchmove",ie,{passive:!1})),s.monthChangeOnScroll&&v.value&&v.value.addEventListener("wheel",ee,{passive:!1})});const A=W=>W?s.vertical?"vNext":"next":s.vertical?"vPrevious":"previous",I=(W,fe)=>{if(s.transitions){const S=ai(ar(ke(),s.month,s.year));x.value=ln(ai(ar(ke(),W,fe)),S)?o.value[A(!0)]:o.value[A(!1)],y.value=!1,Rn(()=>{y.value=!0})}},V=ye(()=>({...h.value.calendar??{}})),Y=ye(()=>W=>{const fe=i4(W);return{dp__marker_dot:fe.type==="dot",dp__marker_line:fe.type==="line"}}),ne=ye(()=>W=>ct(W,g.value)),N=ye(()=>({dp__calendar:!0,dp__calendar_next:c.value.count>0&&s.instance!==0})),B=ye(()=>W=>s.hideOffsetDates?W.current:!0),R=async(W,fe)=>{const{width:S,height:O}=W.getBoundingClientRect();g.value=fe.value;let K={left:`${S/2}px`},U=-50;if(await Rn(),w.value[0]){const{left:oe,width:j}=w.value[0].getBoundingClientRect();oe<0&&(K={left:"0"},U=0,b.value.left=`${S/2}px`),window.innerWidth{var O,K,U;const oe=bn(m.value[fe][S]);oe&&((O=W.marker)!=null&&O.customPosition&&(U=(K=W.marker)==null?void 0:K.tooltip)!=null&&U.length?p.value=W.marker.customPosition(oe):await R(oe,W),i("tooltip-open",W.marker))},X=async(W,fe,S)=>{var O,K;if(C.value&&d.value.enabled&&d.value.dragSelect)return i("select-date",W);i("set-hover-date",W),(K=(O=W.marker)==null?void 0:O.tooltip)!=null&&K.length&&await z(W,fe,S)},J=W=>{g.value&&(g.value=null,p.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),i("tooltip-close",W.marker))},H=W=>{E.value.startX=W.changedTouches[0].screenX,E.value.startY=W.changedTouches[0].screenY},ce=W=>{E.value.endX=W.changedTouches[0].screenX,E.value.endY=W.changedTouches[0].screenY,te()},ie=W=>{s.vertical&&!s.inline&&W.preventDefault()},te=()=>{const W=s.vertical?"Y":"X";Math.abs(E.value[`start${W}`]-E.value[`end${W}`])>10&&i("handle-swipe",E.value[`start${W}`]>E.value[`end${W}`]?"right":"left")},D=(W,fe,S)=>{W&&(Array.isArray(m.value[fe])?m.value[fe][S]=W:m.value[fe]=[W]),s.arrowNavigation&&r(m.value,"calendar")},ee=W=>{s.monthChangeOnScroll&&(W.preventDefault(),i("handle-scroll",W))},ue=W=>u.value.type==="local"?I_(W.value,{weekStartsOn:+s.weekStart}):u.value.type==="iso"?P_(W.value):typeof u.value.type=="function"?u.value.type(W.value):"",$=W=>{const fe=W[0];return u.value.hideOnOffsetDates?W.some(S=>S.current)?ue(fe):"":ue(fe)},le=(W,fe,S=!0)=>{S&&b0()||!S&&!b0()||d.value.enabled||(eo(W,a.value),i("select-date",fe))},de=W=>{eo(W,a.value)},xe=W=>{d.value.enabled&&d.value.dragSelect?(C.value=!0,i("select-date",W)):d.value.enabled&&i("select-date",W)};return e({triggerTransition:I}),(W,fe)=>(P(),F("div",{class:Se(N.value)},[f("div",{ref_key:"calendarWrapRef",ref:v,class:Se(V.value),role:"grid"},[f("div",hB,[W.weekNumbers?(P(),F("div",fB,pe(W.weekNumName),1)):se("",!0),(P(!0),F(De,null,Ge(T.value,(S,O)=>{var K,U;return P(),F("div",{key:O,class:"dp__calendar_header_item",role:"gridcell","data-test":"calendar-header","aria-label":(U=(K=Z(l))==null?void 0:K.weekDay)==null?void 0:U.call(K,O)},[W.$slots["calendar-header"]?Fe(W.$slots,"calendar-header",{key:0,day:S,index:O}):se("",!0),W.$slots["calendar-header"]?se("",!0):(P(),F(De,{key:1},[Be(pe(S),1)],64))],8,gB)}),128))]),fe[2]||(fe[2]=f("div",{class:"dp__calendar_header_separator"},null,-1)),L(xt,{name:x.value,css:!!W.transitions},{default:Me(()=>[y.value?(P(),F("div",{key:0,class:"dp__calendar",role:"rowgroup",onMouseleave:fe[1]||(fe[1]=S=>C.value=!1)},[(P(!0),F(De,null,Ge(k.value,(S,O)=>(P(),F("div",{key:O,class:"dp__calendar_row",role:"row"},[W.weekNumbers?(P(),F("div",pB,[f("div",mB,pe($(S.days)),1)])):se("",!0),(P(!0),F(De,null,Ge(S.days,(K,U)=>{var oe,j,re;return P(),F("div",{id:Z(vS)(K.value),ref_for:!0,ref:Q=>D(Q,O,U),key:U+O,role:"gridcell",class:"dp__calendar_item","aria-pressed":(K.classData.dp__active_date||K.classData.dp__range_start||K.classData.dp__range_start)??void 0,"aria-disabled":K.classData.dp__cell_disabled||void 0,"aria-label":(j=(oe=Z(l))==null?void 0:oe.day)==null?void 0:j.call(oe,K),tabindex:!K.current&&W.hideOffsetDates?void 0:0,"data-test":K.value,onClick:ru(Q=>le(Q,K),["prevent"]),onTouchend:Q=>le(Q,K,!1),onKeydown:Q=>Z(si)(Q,()=>W.$emit("select-date",K)),onMouseenter:Q=>X(K,O,U),onMouseleave:Q=>J(K),onMousedown:Q=>xe(K),onMouseup:fe[0]||(fe[0]=Q=>C.value=!1)},[f("div",{class:Se(["dp__cell_inner",K.classData])},[W.$slots.day&&B.value(K)?Fe(W.$slots,"day",{key:0,day:+K.text,date:K.value}):se("",!0),W.$slots.day?se("",!0):(P(),F(De,{key:1},[Be(pe(K.text),1)],64)),K.marker&&B.value(K)?(P(),F(De,{key:2},[W.$slots.marker?Fe(W.$slots,"marker",{key:0,marker:K.marker,day:+K.text,date:K.value}):(P(),F("div",{key:1,class:Se(Y.value(K.marker)),style:Mn(K.marker.color?{backgroundColor:K.marker.color}:{})},null,6))],64)):se("",!0),ne.value(K.value)?(P(),F("div",{key:3,ref_for:!0,ref_key:"activeTooltip",ref:w,class:"dp__marker_tooltip",style:Mn(p.value)},[(re=K.marker)!=null&&re.tooltip?(P(),F("div",{key:0,class:"dp__tooltip_content",onClick:de},[(P(!0),F(De,null,Ge(K.marker.tooltip,(Q,ge)=>(P(),F("div",{key:ge,class:"dp__tooltip_text"},[W.$slots["marker-tooltip"]?Fe(W.$slots,"marker-tooltip",{key:0,tooltip:Q,day:K.value}):se("",!0),W.$slots["marker-tooltip"]?se("",!0):(P(),F(De,{key:1},[f("div",{class:"dp__tooltip_mark",style:Mn(Q.color?{backgroundColor:Q.color}:{})},null,4),f("div",null,pe(Q.text),1)],64))]))),128)),f("div",{class:"dp__arrow_bottom_tp",style:Mn(b.value)},null,4)])):se("",!0)],4)):se("",!0)],2)],40,_B)}),128))]))),128))],32)):se("",!0)]),_:3},8,["name","css"])],2)],2))}}),S0=t=>Array.isArray(t),yB=(t,e,n,i)=>{const s=me([]),r=me(new Date),o=me(),a=()=>H(t.isTextInputDate),{modelValue:l,calendars:c,time:u,today:d}=Hu(t,e,a),{defaultedMultiCalendars:h,defaultedStartTime:g,defaultedRange:p,defaultedConfig:m,defaultedTz:v,propDates:y,defaultedMultiDates:x}=Kt(t),{validateMonthYearInRange:E,isDisabled:w,isDateRangeAllowed:b,checkMinMaxRange:C}=bo(t),{updateTimeValues:k,getSetDateTime:T,setTime:A,assignStartTime:I,validateTime:V,disabledTimesConfig:Y}=SS(t,u,l,i),ne=ye(()=>ae=>c.value[ae]?c.value[ae].month:0),N=ye(()=>ae=>c.value[ae]?c.value[ae].year:0),B=ae=>!m.value.keepViewOnOffsetClick||ae?!0:!o.value,R=(ae,Te,he,Ae=!1)=>{var Ne,Gt;B(Ae)&&(c.value[ae]||(c.value[ae]={month:0,year:0}),c.value[ae].month=y0(Te)?(Ne=c.value[ae])==null?void 0:Ne.month:Te,c.value[ae].year=y0(he)?(Gt=c.value[ae])==null?void 0:Gt.year:he)},z=()=>{t.autoApply&&e("select-date")};Vt(()=>{t.shadow||(l.value||(W(),g.value&&I(g.value)),H(!0),t.focusStartDate&&t.startDate&&W())});const X=ye(()=>{var ae;return(ae=t.flow)!=null&&ae.length&&!t.partialFlow?t.flowStep===t.flow.length:!0}),J=()=>{t.autoApply&&X.value&&e("auto-apply",t.partialFlow?t.flowStep!==t.flow.length:!1)},H=(ae=!1)=>{if(l.value)return Array.isArray(l.value)?(s.value=l.value,$(ae)):te(l.value,ae);if(h.value.count&&ae&&!t.startDate)return ie(ke(),ae)},ce=()=>Array.isArray(l.value)&&p.value.enabled?at(l.value[0])===at(l.value[1]??l.value[0]):!1,ie=(ae=new Date,Te=!1)=>{if((!h.value.count||!h.value.static||Te)&&R(0,at(ae),qe(ae)),h.value.count&&(!h.value.solo||!l.value||ce()))for(let he=1;he{ie(ae),A("hours",vr(ae)),A("minutes",ao(ae)),A("seconds",kl(ae)),h.value.count&&Te&&xe()},D=ae=>{if(h.value.count){if(h.value.solo)return 0;const Te=at(ae[0]),he=at(ae[1]);return Math.abs(he-Te){ae[1]&&p.value.showLastInRange?ie(ae[D(ae)],Te):ie(ae[0],Te);const he=(Ae,Ne)=>[Ae(ae[0]),ae[1]?Ae(ae[1]):u[Ne][1]];A("hours",he(vr,"hours")),A("minutes",he(ao,"minutes")),A("seconds",he(kl,"seconds"))},ue=(ae,Te)=>{if((p.value.enabled||t.weekPicker)&&!x.value.enabled)return ee(ae,Te);if(x.value.enabled&&Te){const he=ae[ae.length-1];return te(he,Te)}},$=ae=>{const Te=l.value;ue(Te,ae),h.value.count&&h.value.solo&&xe()},le=(ae,Te)=>{const he=Dt(ke(),{month:ne.value(Te),year:N.value(Te)}),Ae=ae<0?ds(he,1):Al(he,1);E(at(Ae),qe(Ae),ae<0,t.preventMinMaxNavigation)&&(R(Te,at(Ae),qe(Ae)),e("update-month-year",{instance:Te,month:at(Ae),year:qe(Ae)}),h.value.count&&!h.value.solo&&de(Te),n())},de=ae=>{for(let Te=ae-1;Te>=0;Te--){const he=Al(Dt(ke(),{month:ne.value(Te+1),year:N.value(Te+1)}),1);R(Te,at(he),qe(he))}for(let Te=ae+1;Te<=h.value.count-1;Te++){const he=ds(Dt(ke(),{month:ne.value(Te-1),year:N.value(Te-1)}),1);R(Te,at(he),qe(he))}},xe=()=>{if(Array.isArray(l.value)&&l.value.length===2){const ae=ke(ke(l.value[1]?l.value[1]:ds(l.value[0],1))),[Te,he]=[at(l.value[0]),qe(l.value[0])],[Ae,Ne]=[at(l.value[1]),qe(l.value[1])];(Te!==Ae||Te===Ae&&he!==Ne)&&h.value.solo&&R(1,at(ae),qe(ae))}else l.value&&!Array.isArray(l.value)&&(R(0,at(l.value),qe(l.value)),ie(ke()))},W=()=>{t.startDate&&(R(0,at(ke(t.startDate)),qe(ke(t.startDate))),h.value.count&&de(0))},fe=(ae,Te)=>{if(t.monthChangeOnScroll){const he=new Date().getTime()-r.value.getTime(),Ae=Math.abs(ae.deltaY);let Ne=500;Ae>1&&(Ne=100),Ae>100&&(Ne=0),he>Ne&&(r.value=new Date,le(t.monthChangeOnScroll!=="inverse"?-ae.deltaY:ae.deltaY,Te))}},S=(ae,Te,he=!1)=>{t.monthChangeOnArrows&&t.vertical===he&&O(ae,Te)},O=(ae,Te)=>{le(ae==="right"?-1:1,Te)},K=ae=>{if(y.value.markers)return Th(ae.value,y.value.markers)},U=(ae,Te)=>{switch(t.sixWeeks===!0?"append":t.sixWeeks){case"prepend":return[!0,!1];case"center":return[ae==0,!0];case"fair":return[ae==0||Te>ae,!0];case"append":return[!1,!1];default:return[!1,!1]}},oe=(ae,Te,he,Ae)=>{if(t.sixWeeks&&ae.length<6){const Ne=6-ae.length,Gt=(Te.getDay()+7-Ae)%7,pn=6-(he.getDay()+7-Ae)%7,[$i,Ws]=U(Gt,pn);for(let mn=1;mn<=Ne;mn++)if(Ws?!!(mn%2)==$i:$i){const Cn=ae[0].days[0],Sn=j(rs(Cn.value,-7),at(Te));ae.unshift({days:Sn})}else{const Cn=ae[ae.length-1],Sn=Cn.days[Cn.days.length-1],li=j(rs(Sn.value,1),at(Te));ae.push({days:li})}}return ae},j=(ae,Te)=>{const he=ke(ae),Ae=[];for(let Ne=0;Ne<7;Ne++){const Gt=rs(he,Ne),pn=at(Gt)!==Te;Ae.push({text:t.hideOffsetDates&&pn?"":Gt.getDate(),value:Gt,current:!pn,classData:{}})}return Ae},re=(ae,Te)=>{const he=[],Ae=new Date(Te,ae),Ne=new Date(Te,ae+1,0),Gt=t.weekStart,pn=ps(Ae,{weekStartsOn:Gt}),$i=Ws=>{const mn=j(Ws,ae);if(he.push({days:mn}),!he[he.length-1].days.some(Cn=>ct(ai(Cn.value),ai(Ne)))){const Cn=rs(Ws,7);$i(Cn)}};return $i(pn),oe(he,Ae,Ne,Gt)},Q=ae=>{const Te=to(ke(ae.value),u.hours,u.minutes,je());e("date-update",Te),x.value.enabled?H_(Te,l,x.value.limit):l.value=Te,i(),Rn().then(()=>{J()})},ge=ae=>p.value.noDisabledRange?fS(s.value[0],ae).some(Te=>w(Te)):!1,be=()=>{s.value=l.value?l.value.slice():[],s.value.length===2&&!(p.value.fixedStart||p.value.fixedEnd)&&(s.value=[])},we=(ae,Te)=>{const he=[ke(ae.value),rs(ke(ae.value),+p.value.autoRange)];b(he)?(Te&&Pe(ae.value),s.value=he):e("invalid-date",ae.value)},Pe=ae=>{const Te=at(ke(ae)),he=qe(ke(ae));if(R(0,Te,he),h.value.count>0)for(let Ae=1;Ae{if(ge(ae.value)||!C(ae.value,l.value,p.value.fixedStart?0:1))return e("invalid-date",ae.value);s.value=xS(ke(ae.value),l,e,p)},We=(ae,Te)=>{if(be(),p.value.autoRange)return we(ae,Te);if(p.value.fixedStart||p.value.fixedEnd)return Ie(ae);s.value[0]?C(ke(ae.value),l.value)&&!ge(ae.value)?tn(ke(ae.value),ke(s.value[0]))?(s.value.unshift(ke(ae.value)),e("range-end",s.value[0])):(s.value[1]=ke(ae.value),e("range-end",s.value[1])):(t.autoApply&&e("auto-apply-invalid",ae.value),e("invalid-date",ae.value)):(s.value[0]=ke(ae.value),e("range-start",s.value[0]))},je=(ae=!0)=>t.enableSeconds?Array.isArray(u.seconds)?ae?u.seconds[0]:u.seconds[1]:u.seconds:0,nt=ae=>{s.value[ae]=to(s.value[ae],u.hours[ae],u.minutes[ae],je(ae!==1))},et=()=>{var ae,Te;s.value[0]&&s.value[1]&&+((ae=s.value)==null?void 0:ae[0])>+((Te=s.value)==null?void 0:Te[1])&&(s.value.reverse(),e("range-start",s.value[0]),e("range-end",s.value[1]))},Jt=()=>{s.value.length&&(s.value[0]&&!s.value[1]?nt(0):(nt(0),nt(1),i()),et(),l.value=s.value.slice(),kf(s.value,e,t.autoApply,t.modelAuto))},zt=(ae,Te=!1)=>{if(w(ae.value)||!ae.current&&t.hideOffsetDates)return e("invalid-date",ae.value);if(o.value=JSON.parse(JSON.stringify(ae)),!p.value.enabled)return Q(ae);S0(u.hours)&&S0(u.minutes)&&!x.value.enabled&&(We(ae,Te),Jt())},gn=(ae,Te)=>{var he;R(ae,Te.month,Te.year,!0),h.value.count&&!h.value.solo&&de(ae),e("update-month-year",{instance:ae,month:Te.month,year:Te.year}),n(h.value.solo?ae:void 0);const Ae=(he=t.flow)!=null&&he.length?t.flow[t.flowStep]:void 0;!Te.fromNav&&(Ae===jn.month||Ae===jn.year)&&i()},Ut=(ae,Te)=>{wS({value:ae,modelValue:l,range:p.value.enabled,timezone:Te?void 0:v.value.timezone}),z(),t.multiCalendars&&Rn().then(()=>H(!0))},Ci=()=>{const ae=B_(ke(),v.value);p.value.enabled?l.value&&Array.isArray(l.value)&&l.value[0]?l.value=tn(ae,l.value[0])?[ae,l.value[0]]:[l.value[0],ae]:l.value=[ae]:l.value=ae,z()},qi=()=>{if(Array.isArray(l.value))if(x.value.enabled){const ae=Qt();l.value[l.value.length-1]=T(ae)}else l.value=l.value.map((ae,Te)=>ae&&T(ae,Te));else l.value=T(l.value);e("time-update")},Qt=()=>Array.isArray(l.value)&&l.value.length?l.value[l.value.length-1]:null;return{calendars:c,modelValue:l,month:ne,year:N,time:u,disabledTimesConfig:Y,today:d,validateTime:V,getCalendarDays:re,getMarker:K,handleScroll:fe,handleSwipe:O,handleArrow:S,selectDate:zt,updateMonthYear:gn,presetDate:Ut,selectCurrentDate:Ci,updateTime:(ae,Te=!0,he=!1)=>{k(ae,Te,he,qi)},assignMonthAndYear:ie}},bB={key:0},wB=fn({__name:"DatePicker",props:{..._s},emits:["tooltip-open","tooltip-close","mount","update:internal-model-value","update-flow-step","reset-flow","auto-apply","focus-menu","select-date","range-start","range-end","invalid-fixed-range","time-update","am-pm-change","time-picker-open","time-picker-close","recalculate-position","update-month-year","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(t,{expose:e,emit:n}){const i=n,s=t,{calendars:r,month:o,year:a,modelValue:l,time:c,disabledTimesConfig:u,today:d,validateTime:h,getCalendarDays:g,getMarker:p,handleArrow:m,handleScroll:v,handleSwipe:y,selectDate:x,updateMonthYear:E,presetDate:w,selectCurrentDate:b,updateTime:C,assignMonthAndYear:k}=yB(s,i,ce,ie),T=va(),{setHoverDate:A,getDayClassData:I,clearHoverDate:V}=OB(l,s),{defaultedMultiCalendars:Y}=Kt(s),ne=me([]),N=me([]),B=me(null),R=Pi(T,"calendar"),z=Pi(T,"monthYear"),X=Pi(T,"timePicker"),J=fe=>{s.shadow||i("mount",fe)};Zt(r,()=>{s.shadow||setTimeout(()=>{i("recalculate-position")},0)},{deep:!0}),Zt(Y,(fe,S)=>{fe.count-S.count>0&&k()},{deep:!0});const H=ye(()=>fe=>g(o.value(fe),a.value(fe)).map(S=>({...S,days:S.days.map(O=>(O.marker=p(O),O.classData=I(O),O))})));function ce(fe){var S;fe||fe===0?(S=N.value[fe])==null||S.triggerTransition(o.value(fe),a.value(fe)):N.value.forEach((O,K)=>O.triggerTransition(o.value(K),a.value(K)))}function ie(){i("update-flow-step")}const te=(fe,S=!1)=>{x(fe,S),s.spaceConfirm&&i("select-date")},D=(fe,S,O=0)=>{var K;(K=ne.value[O])==null||K.toggleMonthPicker(fe,S)},ee=(fe,S,O=0)=>{var K;(K=ne.value[O])==null||K.toggleYearPicker(fe,S)},ue=(fe,S,O)=>{var K;(K=B.value)==null||K.toggleTimePicker(fe,S,O)},$=(fe,S)=>{var O;if(!s.range){const K=l.value?l.value:d,U=S?new Date(S):K,oe=fe?ps(U,{weekStartsOn:1}):UC(U,{weekStartsOn:1});x({value:oe,current:at(U)===o.value(0),text:"",classData:{}}),(O=document.getElementById(vS(oe)))==null||O.focus()}},le=fe=>{var S;(S=ne.value[0])==null||S.handleMonthYearChange(fe,!0)},de=fe=>{E(0,{month:o.value(0),year:a.value(0)+(fe?1:-1),fromNav:!0})},xe=(fe,S)=>{fe===jn.time&&i(`time-picker-${S?"open":"close"}`),i("overlay-toggle",{open:S,overlay:fe})},W=fe=>{i("overlay-toggle",{open:!1,overlay:fe}),i("focus-menu")};return e({clearHoverDate:V,presetDate:w,selectCurrentDate:b,toggleMonthPicker:D,toggleYearPicker:ee,toggleTimePicker:ue,handleArrow:m,updateMonthYear:E,getSidebarProps:()=>({modelValue:l,month:o,year:a,time:c,updateTime:C,updateMonthYear:E,selectDate:x,presetDate:w}),changeMonth:le,changeYear:de,selectWeekDate:$}),(fe,S)=>(P(),F(De,null,[L(Sf,{"multi-calendars":Z(Y).count,collapse:fe.collapse},{default:Me(({instance:O,index:K})=>[fe.disableMonthYearSelect?se("",!0):(P(),Ee(dB,xn({key:0,ref:U=>{U&&(ne.value[K]=U)},months:Z(aS)(fe.formatLocale,fe.locale,fe.monthNameFormat),years:Z(V_)(fe.yearRange,fe.locale,fe.reverseYears),month:Z(o)(O),year:Z(a)(O),instance:O},fe.$props,{onMount:S[0]||(S[0]=U=>J(Z(ia).header)),onResetFlow:S[1]||(S[1]=U=>fe.$emit("reset-flow")),onUpdateMonthYear:U=>Z(E)(O,U),onOverlayClosed:W,onOverlayOpened:S[2]||(S[2]=U=>fe.$emit("overlay-toggle",{open:!0,overlay:U}))}),Xn({_:2},[Ge(Z(z),(U,oe)=>({name:U,fn:Me(j=>[Fe(fe.$slots,U,In(ii(j)))])}))]),1040,["months","years","month","year","instance","onUpdateMonthYear"])),L(vB,xn({ref:U=>{U&&(N.value[K]=U)},"mapped-dates":H.value(O),month:Z(o)(O),year:Z(a)(O),instance:O},fe.$props,{onSelectDate:U=>Z(x)(U,O!==1),onHandleSpace:U=>te(U,O!==1),onSetHoverDate:S[3]||(S[3]=U=>Z(A)(U)),onHandleScroll:U=>Z(v)(U,O),onHandleSwipe:U=>Z(y)(U,O),onMount:S[4]||(S[4]=U=>J(Z(ia).calendar)),onResetFlow:S[5]||(S[5]=U=>fe.$emit("reset-flow")),onTooltipOpen:S[6]||(S[6]=U=>fe.$emit("tooltip-open",U)),onTooltipClose:S[7]||(S[7]=U=>fe.$emit("tooltip-close",U))}),Xn({_:2},[Ge(Z(R),(U,oe)=>({name:U,fn:Me(j=>[Fe(fe.$slots,U,In(ii({...j})))])}))]),1040,["mapped-dates","month","year","instance","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])]),_:3},8,["multi-calendars","collapse"]),fe.enableTimePicker?(P(),F("div",bB,[fe.$slots["time-picker"]?Fe(fe.$slots,"time-picker",In(xn({key:0},{time:Z(c),updateTime:Z(C)}))):(P(),Ee(CS,xn({key:1,ref_key:"timePickerRef",ref:B},fe.$props,{hours:Z(c).hours,minutes:Z(c).minutes,seconds:Z(c).seconds,"internal-model-value":fe.internalModelValue,"disabled-times-config":Z(u),"validate-time":Z(h),onMount:S[8]||(S[8]=O=>J(Z(ia).timePicker)),"onUpdate:hours":S[9]||(S[9]=O=>Z(C)(O)),"onUpdate:minutes":S[10]||(S[10]=O=>Z(C)(O,!1)),"onUpdate:seconds":S[11]||(S[11]=O=>Z(C)(O,!1,!0)),onResetFlow:S[12]||(S[12]=O=>fe.$emit("reset-flow")),onOverlayClosed:S[13]||(S[13]=O=>xe(O,!1)),onOverlayOpened:S[14]||(S[14]=O=>xe(O,!0)),onAmPmChange:S[15]||(S[15]=O=>fe.$emit("am-pm-change",O))}),Xn({_:2},[Ge(Z(X),(O,K)=>({name:O,fn:Me(U=>[Fe(fe.$slots,O,In(ii(U)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"]))])):se("",!0)],64))}}),xB=(t,e)=>{const n=me(),{defaultedMultiCalendars:i,defaultedConfig:s,defaultedHighlight:r,defaultedRange:o,propDates:a,defaultedFilters:l,defaultedMultiDates:c}=Kt(t),{modelValue:u,year:d,month:h,calendars:g}=Hu(t,e),{isDisabled:p}=bo(t),{selectYear:m,groupedYears:v,showYearPicker:y,isDisabled:x,toggleYearPicker:E,handleYearSelect:w,handleYear:b}=ES({modelValue:u,multiCalendars:i,range:o,highlight:r,calendars:g,propDates:a,month:h,year:d,filters:l,props:t,emit:e}),C=(B,R)=>[B,R].map(z=>Ls(z,"MMMM",{locale:t.formatLocale})).join("-"),k=ye(()=>B=>u.value?Array.isArray(u.value)?u.value.some(R=>m0(B,R)):m0(u.value,B):!1),T=B=>{if(o.value.enabled){if(Array.isArray(u.value)){const R=ct(B,u.value[0])||ct(B,u.value[1]);return Ef(u.value,n.value,B)&&!R}return!1}return!1},A=(B,R)=>B.quarter===u0(R)&&B.year===qe(R),I=B=>typeof r.value=="function"?r.value({quarter:u0(B),year:qe(B)}):!!r.value.quarters.find(R=>A(R,B)),V=ye(()=>B=>{const R=Dt(new Date,{year:d.value(B)});return nF({start:lu(R),end:KC(R)}).map(z=>{const X=Xo(z),J=d0(z),H=p(z),ce=T(X),ie=I(X);return{text:C(X,J),value:X,active:k.value(X),highlighted:ie,disabled:H,isBetween:ce}})}),Y=B=>{H_(B,u,c.value.limit),e("auto-apply",!0)},ne=B=>{u.value=j_(u,B,e),kf(u.value,e,t.autoApply,t.modelAuto)},N=B=>{u.value=B,e("auto-apply")};return{defaultedConfig:s,defaultedMultiCalendars:i,groupedYears:v,year:d,isDisabled:x,quarters:V,showYearPicker:y,modelValue:u,setHoverDate:B=>{n.value=B},selectYear:m,selectQuarter:(B,R,z)=>{if(!z)return g.value[R].month=at(d0(B)),c.value.enabled?Y(B):o.value.enabled?ne(B):N(B)},toggleYearPicker:E,handleYearSelect:w,handleYear:b}},EB={class:"dp--quarter-items"},CB=["data-test","disabled","onClick","onMouseover"],SB=fn({compatConfig:{MODE:3},__name:"QuarterPicker",props:{..._s},emits:["update:internal-model-value","reset-flow","overlay-closed","auto-apply","range-start","range-end","overlay-toggle","update-month-year"],setup(t,{expose:e,emit:n}){const i=n,s=t,r=va(),o=Pi(r,"yearMode"),{defaultedMultiCalendars:a,defaultedConfig:l,groupedYears:c,year:u,isDisabled:d,quarters:h,modelValue:g,showYearPicker:p,setHoverDate:m,selectQuarter:v,toggleYearPicker:y,handleYearSelect:x,handleYear:E}=xB(s,i);return e({getSidebarProps:()=>({modelValue:g,year:u,selectQuarter:v,handleYearSelect:x,handleYear:E})}),(w,b)=>(P(),Ee(Sf,{"multi-calendars":Z(a).count,collapse:w.collapse,stretch:""},{default:Me(({instance:C})=>[f("div",{class:"dp-quarter-picker-wrap",style:Mn({minHeight:`${Z(l).modeHeight}px`})},[w.$slots["top-extra"]?Fe(w.$slots,"top-extra",{key:0,value:w.internalModelValue}):se("",!0),f("div",null,[L(bS,xn(w.$props,{items:Z(c)(C),instance:C,"show-year-picker":Z(p)[C],year:Z(u)(C),"is-disabled":k=>Z(d)(C,k),onHandleYear:k=>Z(E)(C,k),onYearSelect:k=>Z(x)(k,C),onToggleYearPicker:k=>Z(y)(C,k?.flow,k?.show)}),Xn({_:2},[Ge(Z(o),(k,T)=>({name:k,fn:Me(A=>[Fe(w.$slots,k,In(ii(A)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),f("div",EB,[(P(!0),F(De,null,Ge(Z(h)(C),(k,T)=>(P(),F("div",{key:T},[f("button",{type:"button",class:Se(["dp--qr-btn",{"dp--qr-btn-active":k.active,"dp--qr-btn-between":k.isBetween,"dp--qr-btn-disabled":k.disabled,"dp--highlighted":k.highlighted}]),"data-test":k.value,disabled:k.disabled,onClick:A=>Z(v)(k.value,C,k.disabled),onMouseover:A=>Z(m)(k.value)},[w.$slots.quarter?Fe(w.$slots,"quarter",{key:0,value:k.value,text:k.text}):(P(),F(De,{key:1},[Be(pe(k.text),1)],64))],42,CB)]))),128))])],4)]),_:3},8,["multi-calendars","collapse"]))}}),kB=["id","tabindex","role","aria-label"],TB={key:0,class:"dp--menu-load-container"},AB={key:1,class:"dp--menu-header"},PB={key:0,class:"dp__sidebar_left"},MB=["data-test","onClick","onKeydown"],IB={key:2,class:"dp__sidebar_right"},DB={key:3,class:"dp__action_extra"},k0=fn({compatConfig:{MODE:3},__name:"DatepickerMenu",props:{...Cf,shadow:{type:Boolean,default:!1},openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},getInputRect:{type:Function,default:()=>({})},isTextInputDate:{type:Boolean,default:!1}},emits:["close-picker","select-date","auto-apply","time-update","flow-step","update-month-year","invalid-select","update:internal-model-value","recalculate-position","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(t,{expose:e,emit:n}){const i=n,s=t,r=me(null),o=ye(()=>{const{openOnTop:j,...re}=s;return{...re,flowStep:A.value,collapse:s.collapse,noOverlayFocus:s.noOverlayFocus,menuWrapRef:r.value}}),{setMenuFocused:a,setShiftKey:l,control:c}=yS(),u=va(),{defaultedTextInput:d,defaultedInline:h,defaultedConfig:g,defaultedUI:p}=Kt(s),m=me(null),v=me(0),y=me(null),x=me(!1),E=me(null);Vt(()=>{if(!s.shadow){x.value=!0,w(),window.addEventListener("resize",w);const j=bn(r);if(j&&!d.value.enabled&&!h.value.enabled&&(a(!0),R()),j){const re=Q=>{g.value.allowPreventDefault&&Q.preventDefault(),eo(Q,g.value,!0)};j.addEventListener("pointerdown",re),j.addEventListener("mousedown",re)}}}),_o(()=>{window.removeEventListener("resize",w)});const w=()=>{const j=bn(y);j&&(v.value=j.getBoundingClientRect().width)},{arrowRight:b,arrowLeft:C,arrowDown:k,arrowUp:T}=yo(),{flowStep:A,updateFlowStep:I,childMount:V,resetFlow:Y,handleFlow:ne}=NB(s,i,E),N=ye(()=>s.monthPicker?H4:s.yearPicker?K4:s.timePicker?rB:s.quarterPicker?SB:wB),B=ye(()=>{var j;if(g.value.arrowLeft)return g.value.arrowLeft;const re=(j=r.value)==null?void 0:j.getBoundingClientRect(),Q=s.getInputRect();return Q?.width=(re?.right??0)&&Q?.width{const j=bn(r);j&&j.focus({preventScroll:!0})},z=ye(()=>{var j;return((j=E.value)==null?void 0:j.getSidebarProps())||{}}),X=()=>{s.openOnTop&&i("recalculate-position")},J=Pi(u,"action"),H=ye(()=>s.monthPicker||s.yearPicker?Pi(u,"monthYear"):s.timePicker?Pi(u,"timePicker"):Pi(u,"shared")),ce=ye(()=>s.openOnTop?"dp__arrow_bottom":"dp__arrow_top"),ie=ye(()=>({dp__menu_disabled:s.disabled,dp__menu_readonly:s.readonly,"dp-menu-loading":s.loading})),te=ye(()=>({dp__menu:!0,dp__menu_index:!h.value.enabled,dp__relative:h.value.enabled,...p.value.menu??{}})),D=j=>{eo(j,g.value,!0)},ee=()=>{s.escClose&&i("close-picker")},ue=j=>{if(s.arrowNavigation){if(j===Qn.up)return T();if(j===Qn.down)return k();if(j===Qn.left)return C();if(j===Qn.right)return b()}else j===Qn.left||j===Qn.up?W("handleArrow",Qn.left,0,j===Qn.up):W("handleArrow",Qn.right,0,j===Qn.down)},$=j=>{l(j.shiftKey),!s.disableMonthYearSelect&&j.code===Nt.tab&&j.target.classList.contains("dp__menu")&&c.value.shiftKeyInMenu&&(j.preventDefault(),eo(j,g.value,!0),i("close-picker"))},le=()=>{R(),i("time-picker-close")},de=j=>{var re,Q,ge;(re=E.value)==null||re.toggleTimePicker(!1,!1),(Q=E.value)==null||Q.toggleMonthPicker(!1,!1,j),(ge=E.value)==null||ge.toggleYearPicker(!1,!1,j)},xe=(j,re=0)=>{var Q,ge,be;return j==="month"?(Q=E.value)==null?void 0:Q.toggleMonthPicker(!1,!0,re):j==="year"?(ge=E.value)==null?void 0:ge.toggleYearPicker(!1,!0,re):j==="time"?(be=E.value)==null?void 0:be.toggleTimePicker(!0,!1):de(re)},W=(j,...re)=>{var Q,ge;(Q=E.value)!=null&&Q[j]&&((ge=E.value)==null||ge[j](...re))},fe=()=>{W("selectCurrentDate")},S=(j,re)=>{W("presetDate",j,re)},O=()=>{W("clearHoverDate")},K=(j,re)=>{W("updateMonthYear",j,re)},U=(j,re)=>{j.preventDefault(),ue(re)},oe=j=>{var re,Q,ge;if($(j),j.key===Nt.home||j.key===Nt.end)return W("selectWeekDate",j.key===Nt.home,j.target.getAttribute("id"));switch((j.key===Nt.pageUp||j.key===Nt.pageDown)&&(j.shiftKey?(W("changeYear",j.key===Nt.pageUp),(re=rm(r.value,"overlay-year"))==null||re.focus()):(W("changeMonth",j.key===Nt.pageUp),(Q=rm(r.value,j.key===Nt.pageUp?"action-prev":"action-next"))==null||Q.focus()),j.target.getAttribute("id")&&((ge=r.value)==null||ge.focus({preventScroll:!0}))),j.key){case Nt.esc:return ee();case Nt.arrowLeft:return U(j,Qn.left);case Nt.arrowRight:return U(j,Qn.right);case Nt.arrowUp:return U(j,Qn.up);case Nt.arrowDown:return U(j,Qn.down);default:return}};return e({updateMonthYear:K,switchView:xe,handleFlow:ne}),(j,re)=>{var Q,ge,be;return P(),F("div",{id:j.uid?`dp-menu-${j.uid}`:void 0,ref_key:"dpMenuRef",ref:r,tabindex:Z(h).enabled?void 0:"0",role:Z(h).enabled?void 0:"dialog","aria-label":(Q=j.ariaLabels)==null?void 0:Q.menu,class:Se(te.value),style:Mn({"--dp-arrow-left":B.value}),onMouseleave:O,onClick:D,onKeydown:oe},[(j.disabled||j.readonly)&&Z(h).enabled||j.loading?(P(),F("div",{key:0,class:Se(ie.value)},[j.loading?(P(),F("div",TB,re[19]||(re[19]=[f("span",{class:"dp--menu-loader"},null,-1)]))):se("",!0)],2)):se("",!0),j.$slots["menu-header"]?(P(),F("div",AB,[Fe(j.$slots,"menu-header")])):se("",!0),!Z(h).enabled&&!j.teleportCenter?(P(),F("div",{key:2,class:Se(ce.value)},null,2)):se("",!0),f("div",{ref_key:"innerMenuRef",ref:y,class:Se({dp__menu_content_wrapper:((ge=j.presetDates)==null?void 0:ge.length)||!!j.$slots["left-sidebar"]||!!j.$slots["right-sidebar"],"dp--menu-content-wrapper-collapsed":t.collapse&&(((be=j.presetDates)==null?void 0:be.length)||!!j.$slots["left-sidebar"]||!!j.$slots["right-sidebar"])}),style:Mn({"--dp-menu-width":`${v.value}px`})},[j.$slots["left-sidebar"]?(P(),F("div",PB,[Fe(j.$slots,"left-sidebar",In(ii(z.value)))])):se("",!0),j.presetDates.length?(P(),F("div",{key:1,class:Se({"dp--preset-dates-collapsed":t.collapse,"dp--preset-dates":!0})},[(P(!0),F(De,null,Ge(j.presetDates,(we,Pe)=>(P(),F(De,{key:Pe},[we.slot?Fe(j.$slots,we.slot,{key:0,presetDate:S,label:we.label,value:we.value}):(P(),F("button",{key:1,type:"button",style:Mn(we.style||{}),class:Se(["dp__btn dp--preset-range",{"dp--preset-range-collapsed":t.collapse}]),"data-test":we.testId??void 0,onClick:ru(Ie=>S(we.value,we.noTz),["prevent"]),onKeydown:Ie=>Z(si)(Ie,()=>S(we.value,we.noTz),!0)},pe(we.label),47,MB))],64))),128))],2)):se("",!0),f("div",{ref_key:"calendarWrapperRef",ref:m,class:"dp__instance_calendar",role:"document"},[(P(),Ee(_a(N.value),xn({ref_key:"dynCmpRef",ref:E},o.value,{"flow-step":Z(A),onMount:Z(V),onUpdateFlowStep:Z(I),onResetFlow:Z(Y),onFocusMenu:R,onSelectDate:re[0]||(re[0]=we=>j.$emit("select-date")),onDateUpdate:re[1]||(re[1]=we=>j.$emit("date-update",we)),onTooltipOpen:re[2]||(re[2]=we=>j.$emit("tooltip-open",we)),onTooltipClose:re[3]||(re[3]=we=>j.$emit("tooltip-close",we)),onAutoApply:re[4]||(re[4]=we=>j.$emit("auto-apply",we)),onRangeStart:re[5]||(re[5]=we=>j.$emit("range-start",we)),onRangeEnd:re[6]||(re[6]=we=>j.$emit("range-end",we)),onInvalidFixedRange:re[7]||(re[7]=we=>j.$emit("invalid-fixed-range",we)),onTimeUpdate:re[8]||(re[8]=we=>j.$emit("time-update")),onAmPmChange:re[9]||(re[9]=we=>j.$emit("am-pm-change",we)),onTimePickerOpen:re[10]||(re[10]=we=>j.$emit("time-picker-open",we)),onTimePickerClose:le,onRecalculatePosition:X,onUpdateMonthYear:re[11]||(re[11]=we=>j.$emit("update-month-year",we)),onAutoApplyInvalid:re[12]||(re[12]=we=>j.$emit("auto-apply-invalid",we)),onInvalidDate:re[13]||(re[13]=we=>j.$emit("invalid-date",we)),onOverlayToggle:re[14]||(re[14]=we=>j.$emit("overlay-toggle",we)),"onUpdate:internalModelValue":re[15]||(re[15]=we=>j.$emit("update:internal-model-value",we))}),Xn({_:2},[Ge(H.value,(we,Pe)=>({name:we,fn:Me(Ie=>[Fe(j.$slots,we,In(ii({...Ie})))])}))]),1040,["flow-step","onMount","onUpdateFlowStep","onResetFlow"]))],512),j.$slots["right-sidebar"]?(P(),F("div",IB,[Fe(j.$slots,"right-sidebar",In(ii(z.value)))])):se("",!0),j.$slots["action-extra"]?(P(),F("div",DB,[j.$slots["action-extra"]?Fe(j.$slots,"action-extra",{key:0,selectCurrentDate:fe}):se("",!0)])):se("",!0)],6),!j.autoApply||Z(g).keepActionRow?(P(),Ee(O4,xn({key:3,"menu-mount":x.value},o.value,{"calendar-width":v.value,onClosePicker:re[16]||(re[16]=we=>j.$emit("close-picker")),onSelectDate:re[17]||(re[17]=we=>j.$emit("select-date")),onInvalidSelect:re[18]||(re[18]=we=>j.$emit("invalid-select")),onSelectNow:fe}),Xn({_:2},[Ge(Z(J),(we,Pe)=>({name:we,fn:Me(Ie=>[Fe(j.$slots,we,In(ii({...Ie})))])}))]),1040,["menu-mount","calendar-width"])):se("",!0)],46,kB)}}});var qa=(t=>(t.center="center",t.left="left",t.right="right",t))(qa||{});const RB=({menuRef:t,menuRefInner:e,inputRef:n,pickerWrapperRef:i,inline:s,emit:r,props:o,slots:a})=>{const{defaultedConfig:l}=Kt(o),c=me({}),u=me(!1),d=me({top:"0",left:"0"}),h=me(!1),g=tu(o,"teleportCenter");Zt(g,()=>{d.value=JSON.parse(JSON.stringify({})),b()});const p=R=>{if(o.teleport){const z=R.getBoundingClientRect();return{left:z.left+window.scrollX,top:z.top+window.scrollY}}return{top:0,left:0}},m=(R,z)=>{d.value.left=`${R+z-c.value.width}px`},v=R=>{d.value.left=`${R}px`},y=(R,z)=>{o.position===qa.left&&v(R),o.position===qa.right&&m(R,z),o.position===qa.center&&(d.value.left=`${R+z/2-c.value.width/2}px`)},x=R=>{const{width:z,height:X}=R.getBoundingClientRect(),{top:J,left:H}=o.altPosition?o.altPosition(R):p(R);return{top:+J,left:+H,width:z,height:X}},E=()=>{d.value.left="50%",d.value.top="50%",d.value.transform="translate(-50%, -50%)",d.value.position="fixed",delete d.value.opacity},w=()=>{const R=bn(n),{top:z,left:X,transform:J}=o.altPosition(R);d.value={top:`${z}px`,left:`${X}px`,transform:J??""}},b=(R=!0)=>{var z;if(!s.value.enabled){if(g.value)return E();if(o.altPosition!==null)return w();if(R){const X=o.teleport?(z=e.value)==null?void 0:z.$el:t.value;X&&(c.value=X.getBoundingClientRect()),r("recalculate-position")}return Y()}},C=({inputEl:R,left:z,width:X})=>{window.screen.width>768&&!u.value&&y(z,X),A(R)},k=R=>{const{top:z,left:X,height:J,width:H}=x(R);d.value.top=`${J+z+ +o.offset}px`,h.value=!1,u.value||(d.value.left=`${X+H/2-c.value.width/2}px`),C({inputEl:R,left:X,width:H})},T=R=>{const{top:z,left:X,width:J}=x(R);d.value.top=`${z-+o.offset-c.value.height}px`,h.value=!0,C({inputEl:R,left:X,width:J})},A=R=>{if(o.autoPosition){const{left:z,width:X}=x(R),{left:J,right:H}=c.value;if(!u.value){if(Math.abs(J)!==Math.abs(H)){if(J<=0)return u.value=!0,v(z);if(H>=document.documentElement.clientWidth)return u.value=!0,m(z,X)}return y(z,X)}}},I=()=>{const R=bn(n);if(R){const{height:z}=c.value,{top:X,height:J}=R.getBoundingClientRect(),H=window.innerHeight-X-J,ce=X;return z<=H?Ho.bottom:z>H&&z<=ce?Ho.top:H>=ce?Ho.bottom:Ho.top}return Ho.bottom},V=R=>I()===Ho.bottom?k(R):T(R),Y=()=>{const R=bn(n);if(R)return o.autoPosition?V(R):k(R)},ne=function(R){if(R){const z=R.scrollHeight>R.clientHeight,X=window.getComputedStyle(R).overflowY.indexOf("hidden")!==-1;return z&&!X}return!0},N=function(R){return!R||R===document.body||R.nodeType===Node.DOCUMENT_FRAGMENT_NODE?window:ne(R)?R:N(R.assignedSlot&&l.value.shadowDom?R.assignedSlot.parentNode:R.parentNode)},B=R=>{if(R)switch(o.position){case qa.left:return{left:0,transform:"translateX(0)"};case qa.right:return{left:`${R.width}px`,transform:"translateX(-100%)"};default:return{left:`${R.width/2}px`,transform:"translateX(-50%)"}}return{}};return{openOnTop:h,menuStyle:d,xCorrect:u,setMenuPosition:b,getScrollableParent:N,shadowRender:(R,z)=>{var X,J,H;const ce=document.createElement("div"),ie=(X=bn(n))==null?void 0:X.getBoundingClientRect();ce.setAttribute("id","dp--temp-container");const te=(J=i.value)!=null&&J.clientWidth?i.value:document.body;te.append(ce);const D=B(ie),ee=l.value.shadowDom?Object.keys(a).filter($=>["right-sidebar","left-sidebar","top-extra","action-extra"].includes($)):Object.keys(a),ue=ha(R,{...z,shadow:!0,style:{opacity:0,position:"absolute",...D}},Object.fromEntries(ee.map($=>[$,a[$]])));Fb(ue,ce),c.value=(H=ue.el)==null?void 0:H.getBoundingClientRect(),Fb(null,ce),te.removeChild(ce)}}},Mr=[{name:"clock-icon",use:["time","calendar","shared"]},{name:"arrow-left",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-right",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-up",use:["time","calendar","month-year","shared"]},{name:"arrow-down",use:["time","calendar","month-year","shared"]},{name:"calendar-icon",use:["month-year","time","calendar","shared","year-mode"]},{name:"day",use:["calendar","shared"]},{name:"month-overlay-value",use:["calendar","month-year","shared"]},{name:"year-overlay-value",use:["calendar","month-year","shared","year-mode"]},{name:"year-overlay",use:["month-year","shared"]},{name:"month-overlay",use:["month-year","shared"]},{name:"month-overlay-header",use:["month-year","shared"]},{name:"year-overlay-header",use:["month-year","shared"]},{name:"hours-overlay-value",use:["calendar","time","shared"]},{name:"hours-overlay-header",use:["calendar","time","shared"]},{name:"minutes-overlay-value",use:["calendar","time","shared"]},{name:"minutes-overlay-header",use:["calendar","time","shared"]},{name:"seconds-overlay-value",use:["calendar","time","shared"]},{name:"seconds-overlay-header",use:["calendar","time","shared"]},{name:"hours",use:["calendar","time","shared"]},{name:"minutes",use:["calendar","time","shared"]},{name:"month",use:["calendar","month-year","shared"]},{name:"year",use:["calendar","month-year","shared","year-mode"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar","shared"]},{name:"marker-tooltip",use:["calendar","shared"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time","shared"]},{name:"am-pm-button",use:["calendar","time","shared"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year","shared"]},{name:"time-picker",use:["menu","shared"]},{name:"action-row",use:["action"]},{name:"marker",use:["calendar","shared"]},{name:"quarter",use:["shared"]},{name:"top-extra",use:["shared","month-year"]},{name:"tp-inline-arrow-up",use:["shared","time"]},{name:"tp-inline-arrow-down",use:["shared","time"]},{name:"menu-header",use:["menu"]}],$B=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],LB={all:()=>Mr,monthYear:()=>Mr.filter(t=>t.use.includes("month-year")),input:()=>$B,timePicker:()=>Mr.filter(t=>t.use.includes("time")),action:()=>Mr.filter(t=>t.use.includes("action")),calendar:()=>Mr.filter(t=>t.use.includes("calendar")),menu:()=>Mr.filter(t=>t.use.includes("menu")),shared:()=>Mr.filter(t=>t.use.includes("shared")),yearMode:()=>Mr.filter(t=>t.use.includes("year-mode"))},Pi=(t,e,n)=>{const i=[];return LB[e]().forEach(s=>{t[s.name]&&i.push(s.name)}),n!=null&&n.length&&n.forEach(s=>{s.slot&&i.push(s.slot)}),i},Yu=t=>{const e=ye(()=>i=>t.value?i?t.value.open:t.value.close:""),n=ye(()=>i=>t.value?i?t.value.menuAppearTop:t.value.menuAppearBottom:"");return{transitionName:e,showTransition:!!t.value,menuTransition:n}},Hu=(t,e,n)=>{const{defaultedRange:i,defaultedTz:s}=Kt(t),r=ke(xi(ke(),s.value.timezone)),o=me([{month:at(r),year:qe(r)}]),a=h=>{const g={hours:vr(r),minutes:ao(r),seconds:0};return i.value.enabled?[g[h],g[h]]:g[h]},l=Ei({hours:a("hours"),minutes:a("minutes"),seconds:a("seconds")});Zt(i,(h,g)=>{h.enabled!==g.enabled&&(l.hours=a("hours"),l.minutes=a("minutes"),l.seconds=a("seconds"))},{deep:!0});const c=ye({get:()=>t.internalModelValue,set:h=>{!t.readonly&&!t.disabled&&e("update:internal-model-value",h)}}),u=ye(()=>h=>o.value[h]?o.value[h].month:0),d=ye(()=>h=>o.value[h]?o.value[h].year:0);return Zt(c,(h,g)=>{n&&JSON.stringify(h??{})!==JSON.stringify(g??{})&&n()},{deep:!0}),{calendars:o,time:l,modelValue:c,month:u,year:d,today:r}},OB=(t,e)=>{const{defaultedMultiCalendars:n,defaultedMultiDates:i,defaultedUI:s,defaultedHighlight:r,defaultedTz:o,propDates:a,defaultedRange:l}=Kt(e),{isDisabled:c}=bo(e),u=me(null),d=me(xi(new Date,o.value.timezone)),h=D=>{!D.current&&e.hideOffsetDates||(u.value=D.value)},g=()=>{u.value=null},p=D=>Array.isArray(t.value)&&l.value.enabled&&t.value[0]&&u.value?D?ln(u.value,t.value[0]):tn(u.value,t.value[0]):!0,m=(D,ee)=>{const ue=()=>t.value?ee?t.value[0]||null:t.value[1]:null,$=t.value&&Array.isArray(t.value)?ue():null;return ct(ke(D.value),$)},v=D=>{const ee=Array.isArray(t.value)?t.value[0]:null;return D?!tn(u.value??null,ee):!0},y=(D,ee=!0)=>(l.value.enabled||e.weekPicker)&&Array.isArray(t.value)&&t.value.length===2?e.hideOffsetDates&&!D.current?!1:ct(ke(D.value),t.value[ee?0:1]):l.value.enabled?m(D,ee)&&v(ee)||ct(D.value,Array.isArray(t.value)?t.value[0]:null)&&p(ee):!1,x=(D,ee)=>{if(Array.isArray(t.value)&&t.value[0]&&t.value.length===1){const ue=ct(D.value,u.value);return ee?ln(t.value[0],D.value)&&ue:tn(t.value[0],D.value)&&ue}return!1},E=D=>!t.value||e.hideOffsetDates&&!D.current?!1:l.value.enabled?e.modelAuto&&Array.isArray(t.value)?ct(D.value,t.value[0]?t.value[0]:d.value):!1:i.value.enabled&&Array.isArray(t.value)?t.value.some(ee=>ct(ee,D.value)):ct(D.value,t.value?t.value:d.value),w=D=>{if(l.value.autoRange||e.weekPicker){if(u.value){if(e.hideOffsetDates&&!D.current)return!1;const ee=rs(u.value,+l.value.autoRange),ue=nr(ke(u.value),e.weekStart);return e.weekPicker?ct(ue[1],ke(D.value)):ct(ee,ke(D.value))}return!1}return!1},b=D=>{if(l.value.autoRange||e.weekPicker){if(u.value){const ee=rs(u.value,+l.value.autoRange);if(e.hideOffsetDates&&!D.current)return!1;const ue=nr(ke(u.value),e.weekStart);return e.weekPicker?ln(D.value,ue[0])&&tn(D.value,ue[1]):ln(D.value,u.value)&&tn(D.value,ee)}return!1}return!1},C=D=>{if(l.value.autoRange||e.weekPicker){if(u.value){if(e.hideOffsetDates&&!D.current)return!1;const ee=nr(ke(u.value),e.weekStart);return e.weekPicker?ct(ee[0],D.value):ct(u.value,D.value)}return!1}return!1},k=D=>Ef(t.value,u.value,D.value),T=()=>e.modelAuto&&Array.isArray(e.internalModelValue)?!!e.internalModelValue[0]:!1,A=()=>e.modelAuto?lS(e.internalModelValue):!0,I=D=>{if(e.weekPicker)return!1;const ee=l.value.enabled?!y(D)&&!y(D,!1):!0;return!c(D.value)&&!E(D)&&!(!D.current&&e.hideOffsetDates)&&ee},V=D=>l.value.enabled?e.modelAuto?T()&&E(D):!1:E(D),Y=D=>r.value?a4(D.value,a.value.highlight):!1,ne=D=>{const ee=c(D.value);return ee&&(typeof r.value=="function"?!r.value(D.value,ee):!r.value.options.highlightDisabled)},N=D=>{var ee;return typeof r.value=="function"?r.value(D.value):(ee=r.value.weekdays)==null?void 0:ee.includes(D.value.getDay())},B=D=>(l.value.enabled||e.weekPicker)&&(!(n.value.count>0)||D.current)&&A()&&!(!D.current&&e.hideOffsetDates)&&!E(D)?k(D):!1,R=D=>{const{isRangeStart:ee,isRangeEnd:ue}=H(D),$=l.value.enabled?ee||ue:!1;return{dp__cell_offset:!D.current,dp__pointer:!e.disabled&&!(!D.current&&e.hideOffsetDates)&&!c(D.value),dp__cell_disabled:c(D.value),dp__cell_highlight:!ne(D)&&(Y(D)||N(D))&&!V(D)&&!$&&!C(D)&&!(B(D)&&e.weekPicker)&&!ue,dp__cell_highlight_active:!ne(D)&&(Y(D)||N(D))&&V(D),dp__today:!e.noToday&&ct(D.value,d.value)&&D.current,"dp--past":tn(D.value,d.value),"dp--future":ln(D.value,d.value)}},z=D=>({dp__active_date:V(D),dp__date_hover:I(D)}),X=D=>{if(t.value&&!Array.isArray(t.value)){const ee=nr(t.value,e.weekStart);return{...ie(D),dp__range_start:ct(ee[0],D.value),dp__range_end:ct(ee[1],D.value),dp__range_between_week:ln(D.value,ee[0])&&tn(D.value,ee[1])}}return{...ie(D)}},J=D=>{if(t.value&&Array.isArray(t.value)){const ee=nr(t.value[0],e.weekStart),ue=t.value[1]?nr(t.value[1],e.weekStart):[];return{...ie(D),dp__range_start:ct(ee[0],D.value)||ct(ue[0],D.value),dp__range_end:ct(ee[1],D.value)||ct(ue[1],D.value),dp__range_between_week:ln(D.value,ee[0])&&tn(D.value,ee[1])||ln(D.value,ue[0])&&tn(D.value,ue[1]),dp__range_between:ln(D.value,ee[1])&&tn(D.value,ue[0])}}return{...ie(D)}},H=D=>{const ee=n.value.count>0?D.current&&y(D)&&A():y(D)&&A(),ue=n.value.count>0?D.current&&y(D,!1)&&A():y(D,!1)&&A();return{isRangeStart:ee,isRangeEnd:ue}},ce=D=>{const{isRangeStart:ee,isRangeEnd:ue}=H(D);return{dp__range_start:ee,dp__range_end:ue,dp__range_between:B(D),dp__date_hover:ct(D.value,u.value)&&!ee&&!ue&&!e.weekPicker,dp__date_hover_start:x(D,!0),dp__date_hover_end:x(D,!1)}},ie=D=>({...ce(D),dp__cell_auto_range:b(D),dp__cell_auto_range_start:C(D),dp__cell_auto_range_end:w(D)}),te=D=>l.value.enabled?l.value.autoRange?ie(D):e.modelAuto?{...z(D),...ce(D)}:e.weekPicker?J(D):ce(D):e.weekPicker?X(D):z(D);return{setHoverDate:h,clearHoverDate:g,getDayClassData:D=>e.hideOffsetDates&&!D.current?{}:{...R(D),...te(D),[e.dayClass?e.dayClass(D.value,e.internalModelValue):""]:!0,...s.value.calendarCell??{}}}},bo=t=>{const{defaultedFilters:e,defaultedRange:n,propDates:i,defaultedMultiDates:s}=Kt(t),r=N=>i.value.disabledDates?typeof i.value.disabledDates=="function"?i.value.disabledDates(ke(N)):!!Th(N,i.value.disabledDates):!1,o=N=>i.value.maxDate?t.yearPicker?qe(N)>qe(i.value.maxDate):ln(N,i.value.maxDate):!1,a=N=>i.value.minDate?t.yearPicker?qe(N){const B=o(N),R=a(N),z=r(N),X=e.value.months.map(te=>+te).includes(at(N)),J=t.disabledWeekDays.length?t.disabledWeekDays.some(te=>+te===XF(N)):!1,H=g(N),ce=qe(N),ie=ce<+t.yearRange[0]||ce>+t.yearRange[1];return!(B||R||z||X||ie||J||H)},c=(N,B)=>tn(...Kr(i.value.minDate,N,B))||ct(...Kr(i.value.minDate,N,B)),u=(N,B)=>ln(...Kr(i.value.maxDate,N,B))||ct(...Kr(i.value.maxDate,N,B)),d=(N,B,R)=>{let z=!1;return i.value.maxDate&&R&&u(N,B)&&(z=!0),i.value.minDate&&!R&&c(N,B)&&(z=!0),z},h=(N,B,R,z)=>{let X=!1;return z&&(i.value.minDate||i.value.maxDate)?i.value.minDate&&i.value.maxDate?X=d(N,B,R):(i.value.minDate&&c(N,B)||i.value.maxDate&&u(N,B))&&(X=!0):X=!0,X},g=N=>Array.isArray(i.value.allowedDates)&&!i.value.allowedDates.length?!0:i.value.allowedDates?!Th(N,i.value.allowedDates):!1,p=N=>!l(N),m=N=>n.value.noDisabledRange?!jC({start:N[0],end:N[1]}).some(B=>p(B)):!0,v=N=>{if(N){const B=qe(N);return B>=+t.yearRange[0]&&B<=t.yearRange[1]}return!0},y=(N,B)=>!!(Array.isArray(N)&&N[B]&&(n.value.maxRange||n.value.minRange)&&v(N[B])),x=(N,B,R=0)=>{if(y(B,R)&&v(N)){const z=YC(N,B[R]),X=fS(B[R],N),J=X.length===1?0:X.filter(ce=>p(ce)).length,H=Math.abs(z)-(n.value.minMaxRawRange?0:J);if(n.value.minRange&&n.value.maxRange)return H>=+n.value.minRange&&H<=+n.value.maxRange;if(n.value.minRange)return H>=+n.value.minRange;if(n.value.maxRange)return H<=+n.value.maxRange}return!0},E=()=>!t.enableTimePicker||t.monthPicker||t.yearPicker||t.ignoreTimeValidation,w=N=>Array.isArray(N)?[N[0]?Bg(N[0]):null,N[1]?Bg(N[1]):null]:Bg(N),b=(N,B,R)=>N.find(z=>+z.hours===vr(B)&&z.minutes==="*"?!0:+z.minutes===ao(B)&&+z.hours===vr(B))&&R,C=(N,B,R)=>{const[z,X]=N,[J,H]=B;return!b(z,J,R)&&!b(X,H,R)&&R},k=(N,B)=>{const R=Array.isArray(B)?B:[B];return Array.isArray(t.disabledTimes)?Array.isArray(t.disabledTimes[0])?C(t.disabledTimes,R,N):!R.some(z=>b(t.disabledTimes,z,N)):N},T=(N,B)=>{const R=Array.isArray(B)?[sa(B[0]),B[1]?sa(B[1]):void 0]:sa(B),z=!t.disabledTimes(R);return N&&z},A=(N,B)=>t.disabledTimes?Array.isArray(t.disabledTimes)?k(B,N):T(B,N):B,I=N=>{let B=!0;if(!N||E())return!0;const R=!i.value.minDate&&!i.value.maxDate?w(N):N;return(t.maxTime||i.value.maxDate)&&(B=x0(t.maxTime,i.value.maxDate,"max",Tn(R),B)),(t.minTime||i.value.minDate)&&(B=x0(t.minTime,i.value.minDate,"min",Tn(R),B)),A(N,B)},V=N=>{if(!t.monthPicker)return!0;let B=!0;const R=ke(os(N));if(i.value.minDate&&i.value.maxDate){const z=ke(os(i.value.minDate)),X=ke(os(i.value.maxDate));return ln(R,z)&&tn(R,X)||ct(R,z)||ct(R,X)}if(i.value.minDate){const z=ke(os(i.value.minDate));B=ln(R,z)||ct(R,z)}if(i.value.maxDate){const z=ke(os(i.value.maxDate));B=tn(R,z)||ct(R,z)}return B},Y=ye(()=>N=>!t.enableTimePicker||t.ignoreTimeValidation?!0:I(N)),ne=ye(()=>N=>t.monthPicker?Array.isArray(N)&&(n.value.enabled||s.value.enabled)?!N.filter(B=>!V(B)).length:V(N):!0);return{isDisabled:p,validateDate:l,validateMonthYearInRange:h,isDateRangeAllowed:m,checkMinMaxRange:x,isValidTime:I,isTimeValid:Y,isMonthValid:ne}},Tf=()=>{const t=ye(()=>(i,s)=>i?.includes(s)),e=ye(()=>(i,s)=>i.count?i.solo?!0:s===0:!0),n=ye(()=>(i,s)=>i.count?i.solo?!0:s===i.count-1:!0);return{hideNavigationButtons:t,showLeftIcon:e,showRightIcon:n}},NB=(t,e,n)=>{const i=me(0),s=Ei({[ia.timePicker]:!t.enableTimePicker||t.timePicker||t.monthPicker,[ia.calendar]:!1,[ia.header]:!1}),r=ye(()=>t.monthPicker||t.timePicker),o=d=>{var h;if((h=t.flow)!=null&&h.length){if(!d&&r.value)return u();s[d]=!0,Object.keys(s).filter(g=>!s[g]).length||u()}},a=()=>{var d,h;(d=t.flow)!=null&&d.length&&i.value!==-1&&(i.value+=1,e("flow-step",i.value),u()),((h=t.flow)==null?void 0:h.length)===i.value&&Rn().then(()=>l())},l=()=>{i.value=-1},c=(d,h,...g)=>{var p,m;t.flow[i.value]===d&&n.value&&((m=(p=n.value)[h])==null||m.call(p,...g))},u=(d=0)=>{d&&(i.value+=d),c(jn.month,"toggleMonthPicker",!0),c(jn.year,"toggleYearPicker",!0),c(jn.calendar,"toggleTimePicker",!1,!0),c(jn.time,"toggleTimePicker",!0,!0);const h=t.flow[i.value];(h===jn.hours||h===jn.minutes||h===jn.seconds)&&c(h,"toggleTimePicker",!0,!0,h)};return{childMount:o,updateFlowStep:a,resetFlow:l,handleFlow:u,flowStep:i}},FB={key:1,class:"dp__input_wrap"},BB=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","aria-disabled","aria-invalid"],VB={key:2,class:"dp--clear-btn"},zB=["aria-label"],WB=fn({compatConfig:{MODE:3},__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...Cf},emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur","real-blur","text-input"],setup(t,{expose:e,emit:n}){const i=n,s=t,{defaultedTextInput:r,defaultedAriaLabels:o,defaultedInline:a,defaultedConfig:l,defaultedRange:c,defaultedMultiDates:u,defaultedUI:d,getDefaultPattern:h,getDefaultStartTime:g}=Kt(s),{checkMinMaxRange:p}=bo(s),m=me(),v=me(null),y=me(!1),x=me(!1),E=ye(()=>({dp__pointer:!s.disabled&&!s.readonly&&!r.value.enabled,dp__disabled:s.disabled,dp__input_readonly:!r.value.enabled,dp__input:!0,dp__input_icon_pad:!s.hideInputIcon,dp__input_valid:typeof s.state=="boolean"?s.state:!1,dp__input_invalid:typeof s.state=="boolean"?!s.state:!1,dp__input_focus:y.value||s.isMenuOpen,dp__input_reg:!r.value.enabled,...d.value.input??{}})),w=()=>{i("set-input-date",null),s.clearable&&s.autoApply&&(i("set-empty-date"),m.value=null)},b=H=>{const ce=g();return l4(H,r.value.format??h(),ce??gS({},s.enableSeconds),s.inputValue,x.value,s.formatLocale)},C=H=>{const{rangeSeparator:ce}=r.value,[ie,te]=H.split(`${ce}`);if(ie){const D=b(ie.trim()),ee=te?b(te.trim()):null;if(Tl(D,ee))return;const ue=D&&ee?[D,ee]:[D];p(ee,ue,0)&&(m.value=D?ue:null)}},k=()=>{x.value=!0},T=H=>{if(c.value.enabled)C(H);else if(u.value.enabled){const ce=H.split(";");m.value=ce.map(ie=>b(ie.trim())).filter(ie=>ie)}else m.value=b(H)},A=H=>{var ce;const ie=typeof H=="string"?H:(ce=H.target)==null?void 0:ce.value;ie!==""?(r.value.openMenu&&!s.isMenuOpen&&i("open"),T(ie),i("set-input-date",m.value)):w(),x.value=!1,i("update:input-value",ie),i("text-input",H,m.value)},I=H=>{r.value.enabled?(T(H.target.value),r.value.enterSubmit&&om(m.value)&&s.inputValue!==""?(i("set-input-date",m.value,!0),m.value=null):r.value.enterSubmit&&s.inputValue===""&&(m.value=null,i("clear"))):ne(H)},V=(H,ce)=>{r.value.enabled&&r.value.tabSubmit&&!ce&&T(H.target.value),r.value.tabSubmit&&om(m.value)&&s.inputValue!==""?(i("set-input-date",m.value,!0,!0),m.value=null):r.value.tabSubmit&&s.inputValue===""&&(m.value=null,i("clear",!0))},Y=()=>{y.value=!0,i("focus"),Rn().then(()=>{var H;r.value.enabled&&r.value.selectOnFocus&&((H=v.value)==null||H.select())})},ne=H=>{if(eo(H,l.value,!0),r.value.enabled&&r.value.openMenu&&!a.value.input){if(r.value.openMenu==="open"&&!s.isMenuOpen)return i("open");if(r.value.openMenu==="toggle")return i("toggle")}else r.value.enabled||i("toggle")},N=()=>{i("real-blur"),y.value=!1,(!s.isMenuOpen||a.value.enabled&&a.value.input)&&i("blur"),s.autoApply&&r.value.enabled&&m.value&&!s.isMenuOpen&&(i("set-input-date",m.value),i("select-date"),m.value=null)},B=H=>{eo(H,l.value,!0),i("clear")},R=H=>{if(H.key==="Tab"&&V(H),H.key==="Enter"&&I(H),!r.value.enabled){if(H.code==="Tab")return;H.preventDefault()}},z=()=>{var H;(H=v.value)==null||H.focus({preventScroll:!0})},X=H=>{m.value=H},J=H=>{H.key===Nt.tab&&V(H,!0)};return e({focusInput:z,setParsedDate:X}),(H,ce)=>{var ie,te,D;return P(),F("div",{onClick:ne},[H.$slots.trigger&&!H.$slots["dp-input"]&&!Z(a).enabled?Fe(H.$slots,"trigger",{key:0}):se("",!0),!H.$slots.trigger&&(!Z(a).enabled||Z(a).input)?(P(),F("div",FB,[H.$slots["dp-input"]&&!H.$slots.trigger&&(!Z(a).enabled||Z(a).enabled&&Z(a).input)?Fe(H.$slots,"dp-input",{key:0,value:t.inputValue,isMenuOpen:t.isMenuOpen,onInput:A,onEnter:I,onTab:V,onClear:B,onBlur:N,onKeypress:R,onPaste:k,onFocus:Y,openMenu:()=>H.$emit("open"),closeMenu:()=>H.$emit("close"),toggleMenu:()=>H.$emit("toggle")}):se("",!0),H.$slots["dp-input"]?se("",!0):(P(),F("input",{key:1,id:H.uid?`dp-input-${H.uid}`:void 0,ref_key:"inputRef",ref:v,"data-test":"dp-input",name:H.name,class:Se(E.value),inputmode:Z(r).enabled?"text":"none",placeholder:H.placeholder,disabled:H.disabled,readonly:H.readonly,required:H.required,value:t.inputValue,autocomplete:H.autocomplete,"aria-label":(ie=Z(o))==null?void 0:ie.input,"aria-disabled":H.disabled||void 0,"aria-invalid":H.state===!1?!0:void 0,onInput:A,onBlur:N,onFocus:Y,onKeypress:R,onKeydown:ce[0]||(ce[0]=ee=>R(ee)),onPaste:k},null,42,BB)),f("div",{onClick:ce[3]||(ce[3]=ee=>i("toggle"))},[H.$slots["input-icon"]&&!H.hideInputIcon?(P(),F("span",{key:0,class:"dp__input_icon",onClick:ce[1]||(ce[1]=ee=>i("toggle"))},[Fe(H.$slots,"input-icon")])):se("",!0),!H.$slots["input-icon"]&&!H.hideInputIcon&&!H.$slots["dp-input"]?(P(),Ee(Z(Gl),{key:1,"aria-label":(te=Z(o))==null?void 0:te.calendarIcon,class:"dp__input_icon dp__input_icons",onClick:ce[2]||(ce[2]=ee=>i("toggle"))},null,8,["aria-label"])):se("",!0)]),H.$slots["clear-icon"]&&t.inputValue&&H.clearable&&!H.disabled&&!H.readonly?(P(),F("span",VB,[Fe(H.$slots,"clear-icon",{clear:B})])):se("",!0),H.clearable&&!H.$slots["clear-icon"]&&t.inputValue&&!H.disabled&&!H.readonly?(P(),F("button",{key:3,"aria-label":(D=Z(o))==null?void 0:D.clearInput,class:"dp--clear-btn",type:"button",onKeydown:ce[4]||(ce[4]=ee=>Z(si)(ee,()=>B(ee),!0,J)),onClick:ce[5]||(ce[5]=ru(ee=>B(ee),["prevent"]))},[L(Z(oS),{class:"dp__input_icons","data-test":"clear-icon"})],40,zB)):se("",!0)])):se("",!0)])}}}),YB=typeof window<"u"?window:void 0,jg=()=>{},HB=t=>af()?(o_(t),!0):!1,jB=(t,e,n,i)=>{if(!t)return jg;let s=jg;const r=Zt(()=>Z(t),a=>{s(),a&&(a.addEventListener(e,n,i),s=()=>{a.removeEventListener(e,n,i),s=jg})},{immediate:!0,flush:"post"}),o=()=>{r(),s()};return HB(o),o},KB=(t,e,n,i={})=>{const{window:s=YB,event:r="pointerdown"}=i;return s?jB(s,r,o=>{const a=bn(t),l=bn(e);!a||!l||a===o.target||o.composedPath().includes(a)||o.composedPath().includes(l)||n(o)},{passive:!0}):void 0},UB=fn({compatConfig:{MODE:3},__name:"VueDatePicker",props:{...Cf},emits:["update:model-value","update:model-timezone-value","text-submit","closed","cleared","open","focus","blur","internal-model-change","recalculate-position","flow-step","update-month-year","invalid-select","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","date-update","invalid-date","overlay-toggle","text-input"],setup(t,{expose:e,emit:n}){const i=n,s=t,r=va(),o=me(!1),a=tu(s,"modelValue"),l=tu(s,"timezone"),c=me(null),u=me(null),d=me(null),h=me(!1),g=me(null),p=me(!1),m=me(!1),v=me(!1),y=me(!1),{setMenuFocused:x,setShiftKey:E}=yS(),{clearArrowNav:w}=yo(),{validateDate:b,isValidTime:C}=bo(s),{defaultedTransitions:k,defaultedTextInput:T,defaultedInline:A,defaultedConfig:I,defaultedRange:V,defaultedMultiDates:Y}=Kt(s),{menuTransition:ne,showTransition:N}=Yu(k);Vt(()=>{ee(s.modelValue),Rn().then(()=>{if(!A.value.enabled){const he=ce(g.value);he?.addEventListener("scroll",K),window?.addEventListener("resize",U)}}),A.value.enabled&&(o.value=!0),window?.addEventListener("keyup",oe),window?.addEventListener("keydown",j)}),_o(()=>{if(!A.value.enabled){const he=ce(g.value);he?.removeEventListener("scroll",K),window?.removeEventListener("resize",U)}window?.removeEventListener("keyup",oe),window?.removeEventListener("keydown",j)});const B=Pi(r,"all",s.presetDates),R=Pi(r,"input");Zt([a,l],()=>{ee(a.value)},{deep:!0});const{openOnTop:z,menuStyle:X,xCorrect:J,setMenuPosition:H,getScrollableParent:ce,shadowRender:ie}=RB({menuRef:c,menuRefInner:u,inputRef:d,pickerWrapperRef:g,inline:A,emit:i,props:s,slots:r}),{inputValue:te,internalModelValue:D,parseExternalModelValue:ee,emitModelValue:ue,formatInputValue:$,checkBeforeEmit:le}=D4(i,s,h),de=ye(()=>({dp__main:!0,dp__theme_dark:s.dark,dp__theme_light:!s.dark,dp__flex_display:A.value.enabled,"dp--flex-display-collapsed":v.value,dp__flex_display_with_input:A.value.input})),xe=ye(()=>s.dark?"dp__theme_dark":"dp__theme_light"),W=ye(()=>s.teleport?{to:typeof s.teleport=="boolean"?"body":s.teleport,disabled:!s.teleport||A.value.enabled}:{}),fe=ye(()=>({class:"dp__outer_menu_wrap"})),S=ye(()=>A.value.enabled&&(s.timePicker||s.monthPicker||s.yearPicker||s.quarterPicker)),O=()=>{var he,Ae;return(Ae=(he=d.value)==null?void 0:he.$el)==null?void 0:Ae.getBoundingClientRect()},K=()=>{o.value&&(I.value.closeOnScroll?je():H())},U=()=>{var he;o.value&&H();const Ae=(he=u.value)==null?void 0:he.$el.getBoundingClientRect().width;v.value=document.body.offsetWidth<=Ae},oe=he=>{he.key==="Tab"&&!A.value.enabled&&!s.teleport&&I.value.tabOutClosesMenu&&(g.value.contains(document.activeElement)||je()),m.value=he.shiftKey},j=he=>{m.value=he.shiftKey},re=()=>{!s.disabled&&!s.readonly&&(ie(k0,s),H(!1),o.value=!0,o.value&&i("open"),o.value||We(),ee(s.modelValue))},Q=()=>{var he;te.value="",We(),(he=d.value)==null||he.setParsedDate(null),i("update:model-value",null),i("update:model-timezone-value",null),i("cleared"),I.value.closeOnClearValue&&je()},ge=()=>{const he=D.value;return!he||!Array.isArray(he)&&b(he)?!0:Array.isArray(he)?Y.value.enabled||he.length===2&&b(he[0])&&b(he[1])?!0:V.value.partialRange&&!s.timePicker?b(he[0]):!1:!1},be=()=>{le()&&ge()?(ue(),je()):i("invalid-select",D.value)},we=he=>{Pe(),ue(),I.value.closeOnAutoApply&&!he&&je()},Pe=()=>{d.value&&T.value.enabled&&d.value.setParsedDate(D.value)},Ie=(he=!1)=>{s.autoApply&&C(D.value)&&ge()&&(V.value.enabled&&Array.isArray(D.value)?(V.value.partialRange||D.value.length===2)&&we(he):we(he))},We=()=>{T.value.enabled||(D.value=null)},je=()=>{A.value.enabled||(o.value&&(o.value=!1,J.value=!1,x(!1),E(!1),w(),i("closed"),te.value&&ee(a.value)),We(),i("blur"))},nt=(he,Ae,Ne=!1)=>{if(!he){D.value=null;return}const Gt=Array.isArray(he)?!he.some($i=>!b($i)):b(he),pn=C(he);Gt&&pn?(y.value=!0,D.value=he,Ae&&(p.value=Ne,be(),i("text-submit")),Rn().then(()=>{y.value=!1})):i("invalid-date",he)},et=()=>{s.autoApply&&C(D.value)&&ue(),Pe()},Jt=()=>o.value?je():re(),zt=he=>{D.value=he},gn=()=>{T.value.enabled&&(h.value=!0,$()),i("focus")},Ut=()=>{if(T.value.enabled&&(h.value=!1,ee(s.modelValue),p.value)){const he=o4(g.value,m.value);he?.focus()}i("blur")},Ci=he=>{u.value&&u.value.updateMonthYear(0,{month:v0(he.month),year:v0(he.year)})},qi=he=>{ee(he??s.modelValue)},Qt=(he,Ae)=>{var Ne;(Ne=u.value)==null||Ne.switchView(he,Ae)},ae=he=>I.value.onClickOutside?I.value.onClickOutside(he):je(),Te=(he=0)=>{var Ae;(Ae=u.value)==null||Ae.handleFlow(he)};return KB(c,d,()=>ae(ge)),e({closeMenu:je,selectDate:be,clearValue:Q,openMenu:re,onScroll:K,formatInputValue:$,updateInternalModelValue:zt,setMonthYear:Ci,parseModel:qi,switchView:Qt,toggleMenu:Jt,handleFlow:Te,dpWrapMenuRef:c}),(he,Ae)=>(P(),F("div",{ref_key:"pickerWrapperRef",ref:g,class:Se(de.value),"data-datepicker-instance":""},[L(WB,xn({ref_key:"inputRef",ref:d,"input-value":Z(te),"onUpdate:inputValue":Ae[0]||(Ae[0]=Ne=>Ht(te)?te.value=Ne:null),"is-menu-open":o.value},he.$props,{onClear:Q,onOpen:re,onSetInputDate:nt,onSetEmptyDate:Z(ue),onSelectDate:be,onToggle:Jt,onClose:je,onFocus:gn,onBlur:Ut,onRealBlur:Ae[1]||(Ae[1]=Ne=>h.value=!1),onTextInput:Ae[2]||(Ae[2]=Ne=>he.$emit("text-input",Ne))}),Xn({_:2},[Ge(Z(R),(Ne,Gt)=>({name:Ne,fn:Me(pn=>[Fe(he.$slots,Ne,In(ii(pn)))])}))]),1040,["input-value","is-menu-open","onSetEmptyDate"]),(P(),Ee(_a(he.teleport?kD:"div"),In(ii(W.value)),{default:Me(()=>[L(xt,{name:Z(ne)(Z(z)),css:Z(N)&&!Z(A).enabled},{default:Me(()=>[o.value?(P(),F("div",xn({key:0,ref_key:"dpWrapMenuRef",ref:c},fe.value,{class:{"dp--menu-wrapper":!Z(A).enabled},style:Z(A).enabled?void 0:Z(X)}),[L(k0,xn({ref_key:"dpMenuRef",ref:u},he.$props,{"internal-model-value":Z(D),"onUpdate:internalModelValue":Ae[3]||(Ae[3]=Ne=>Ht(D)?D.value=Ne:null),class:{[xe.value]:!0,"dp--menu-wrapper":he.teleport},"open-on-top":Z(z),"no-overlay-focus":S.value,collapse:v.value,"get-input-rect":O,"is-text-input-date":y.value,onClosePicker:je,onSelectDate:be,onAutoApply:Ie,onTimeUpdate:et,onFlowStep:Ae[4]||(Ae[4]=Ne=>he.$emit("flow-step",Ne)),onUpdateMonthYear:Ae[5]||(Ae[5]=Ne=>he.$emit("update-month-year",Ne)),onInvalidSelect:Ae[6]||(Ae[6]=Ne=>he.$emit("invalid-select",Z(D))),onAutoApplyInvalid:Ae[7]||(Ae[7]=Ne=>he.$emit("invalid-select",Ne)),onInvalidFixedRange:Ae[8]||(Ae[8]=Ne=>he.$emit("invalid-fixed-range",Ne)),onRecalculatePosition:Z(H),onTooltipOpen:Ae[9]||(Ae[9]=Ne=>he.$emit("tooltip-open",Ne)),onTooltipClose:Ae[10]||(Ae[10]=Ne=>he.$emit("tooltip-close",Ne)),onTimePickerOpen:Ae[11]||(Ae[11]=Ne=>he.$emit("time-picker-open",Ne)),onTimePickerClose:Ae[12]||(Ae[12]=Ne=>he.$emit("time-picker-close",Ne)),onAmPmChange:Ae[13]||(Ae[13]=Ne=>he.$emit("am-pm-change",Ne)),onRangeStart:Ae[14]||(Ae[14]=Ne=>he.$emit("range-start",Ne)),onRangeEnd:Ae[15]||(Ae[15]=Ne=>he.$emit("range-end",Ne)),onDateUpdate:Ae[16]||(Ae[16]=Ne=>he.$emit("date-update",Ne)),onInvalidDate:Ae[17]||(Ae[17]=Ne=>he.$emit("invalid-date",Ne)),onOverlayToggle:Ae[18]||(Ae[18]=Ne=>he.$emit("overlay-toggle",Ne))}),Xn({_:2},[Ge(Z(B),(Ne,Gt)=>({name:Ne,fn:Me(pn=>[Fe(he.$slots,Ne,In(ii({...pn})))])}))]),1040,["internal-model-value","class","open-on-top","no-overlay-focus","collapse","is-text-input-date","onRecalculatePosition"])],16)):se("",!0)]),_:3},8,["name","css"])]),_:3},16))],2))}}),ju=(()=>{const t=UB;return t.install=e=>{e.component("Vue3DatePicker",t)},t})(),GB=Object.freeze(Object.defineProperty({__proto__:null,default:ju},Symbol.toStringTag,{value:"Module"}));Object.entries(GB).forEach(([t,e])=>{t!=="default"&&(ju[t]=e)});const XB={name:"newDashboardAPIKey",components:{LocaleText:Le,VueDatePicker:ju},data(){return{newKeyData:{ExpiredAt:Nn().add(7,"d").format("YYYY-MM-DD HH:mm:ss"),neverExpire:!1},submitting:!1}},setup(){return{store:Je()}},mounted(){console.log(this.newKeyData.ExpiredAt)},methods:{submitNewAPIKey(){this.submitting=!0,ht("/api/newDashboardAPIKey",this.newKeyData,t=>{t.status?(this.$emit("created",t.data),this.store.newMessage("Server","API Key created","success"),this.$emit("close")):this.store.newMessage("Server",t.message,"danger"),this.submitting=!1})},fixDate(t){return console.log(Nn(t).format("YYYY-MM-DDTHH:mm:ss")),Nn(t).format("YYYY-MM-DDTHH:mm:ss")},parseTime(t){t?this.newKeyData.ExpiredAt=Nn(t).format("YYYY-MM-DD HH:mm:ss"):this.newKeyData.ExpiredAt=void 0}}},qB={class:"position-absolute w-100 h-100 top-0 start-0 rounded-bottom-3 p-3 d-flex",style:{"background-color":"#00000060","backdrop-filter":"blur(3px)"}},ZB={class:"card m-auto rounded-3 mt-5"},JB={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4 pb-0"},QB={class:"mb-0"},eV={class:"card-body d-flex gap-2 p-4 flex-column"},tV={class:"text-muted"},nV={class:"d-flex align-items-center gap-2"},iV={class:"form-check"},sV=["disabled"],rV={class:"form-check-label",for:"neverExpire"},oV={key:0,class:"bi bi-check-lg me-2"};function aV(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("VueDatePicker");return P(),F("div",qB,[f("div",ZB,[f("div",JB,[f("h6",QB,[L(o,{t:"Create API Key"})]),f("button",{type:"button",class:"btn-close ms-auto",onClick:e[0]||(e[0]=l=>this.$emit("close"))})]),f("div",eV,[f("small",tV,[L(o,{t:"When should this API Key expire?"})]),f("div",nV,[L(a,{is24:!0,"min-date":new Date,"model-value":this.newKeyData.ExpiredAt,"onUpdate:modelValue":this.parseTime,"time-picker-inline":"",format:"yyyy-MM-dd HH:mm:ss","preview-format":"yyyy-MM-dd HH:mm:ss",clearable:!1,disabled:this.newKeyData.neverExpire||this.submitting,dark:this.store.Configuration.Server.dashboard_theme==="dark"},null,8,["min-date","model-value","onUpdate:modelValue","disabled","dark"])]),f("div",iV,[Re(f("input",{class:"form-check-input",type:"checkbox","onUpdate:modelValue":e[1]||(e[1]=l=>this.newKeyData.neverExpire=l),id:"neverExpire",disabled:this.submitting},null,8,sV),[[Gn,this.newKeyData.neverExpire]]),f("label",rV,[L(o,{t:"Never Expire"}),e[3]||(e[3]=Be(" (")),e[4]||(e[4]=f("i",{class:"bi bi-emoji-grimace-fill me-2"},null,-1)),L(o,{t:"Don't think that's a good idea"}),e[5]||(e[5]=Be(") "))])]),f("button",{class:Se(["ms-auto btn bg-success-subtle text-success-emphasis border-1 border-success-subtle rounded-3 shadow-sm",{disabled:this.submitting}]),onClick:e[2]||(e[2]=l=>this.submitNewAPIKey())},[this.submitting?se("",!0):(P(),F("i",oV)),this.submitting?(P(),Ee(o,{key:1,t:"Creating..."})):(P(),Ee(o,{key:2,t:"Create"}))],2)])])])}const lV=He(XB,[["render",aV]]),cV={name:"dashboardAPIKey",components:{LocaleText:Le},props:{apiKey:Object},setup(){return{store:Je()}},data(){return{confirmDelete:!1}},methods:{deleteAPIKey(){ht("/api/deleteDashboardAPIKey",{Key:this.apiKey.Key},t=>{t.status?(this.$emit("deleted",t.data),this.store.newMessage("Server","API Key deleted","success")):this.store.newMessage("Server",t.message,"danger")})}}},uV={class:"card rounded-3 shadow-sm"},dV={key:0,class:"card-body d-flex gap-3 align-items-center apiKey-card-body"},hV={class:"d-flex align-items-center gap-2"},fV={class:"text-muted"},gV={style:{"word-break":"break-all"}},pV={class:"d-flex align-items-center gap-2 ms-auto"},mV={class:"text-muted"},_V={key:0,class:"card-body d-flex gap-3 align-items-center justify-content-end"};function vV(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",uV,[this.confirmDelete?(P(),F(De,{key:1},[this.store.getActiveCrossServer()?se("",!0):(P(),F("div",_V,[L(o,{t:"Are you sure to delete this API key?"}),f("a",{role:"button",class:"btn btn-sm bg-success-subtle text-success-emphasis rounded-3",onClick:e[1]||(e[1]=a=>this.deleteAPIKey())},e[4]||(e[4]=[f("i",{class:"bi bi-check-lg"},null,-1)])),f("a",{role:"button",class:"btn btn-sm bg-secondary-subtle text-secondary-emphasis rounded-3",onClick:e[2]||(e[2]=a=>this.confirmDelete=!1)},e[5]||(e[5]=[f("i",{class:"bi bi-x-lg"},null,-1)]))]))],64)):(P(),F("div",dV,[f("div",hV,[f("small",fV,[L(o,{t:"Key"})]),f("span",gV,pe(this.apiKey.Key),1)]),f("div",pV,[f("small",mV,[L(o,{t:"Expire At"})]),this.apiKey.ExpiredAt?se("",!0):(P(),Ee(o,{key:0,t:"Never Expire"})),f("span",null,pe(this.apiKey.ExpiredAt),1)]),this.store.getActiveCrossServer()?se("",!0):(P(),F("a",{key:0,role:"button",class:"btn btn-sm bg-danger-subtle text-danger-emphasis rounded-3",onClick:e[0]||(e[0]=a=>this.confirmDelete=!0)},e[3]||(e[3]=[f("i",{class:"bi bi-trash-fill"},null,-1)])))]))])}const yV=He(cV,[["render",vV],["__scopeId","data-v-a76253c8"]]),bV={name:"dashboardAPIKeys",components:{LocaleText:Le,DashboardAPIKey:yV,NewDashboardAPIKey:lV},setup(){return{store:Je()}},data(){return{value:this.store.Configuration.Server.dashboard_api_key,apiKeys:[],newDashboardAPIKey:!1}},methods:{async toggleDashboardAPIKeys(){await ht("/api/updateDashboardConfigurationItem",{section:"Server",key:"dashboard_api_key",value:this.value},t=>{t.status?(this.store.Configuration.Peers[this.targetData]=this.value,this.store.newMessage("Server",`API Keys function is successfully ${this.value?"enabled":"disabled"}`,"success")):(this.value=this.store.Configuration.Peers[this.targetData],this.store.newMessage("Server",`API Keys function is failed to ${this.value?"enabled":"disabled"}`,"danger"))})}},watch:{value:{immediate:!0,handler(t){t?Pt("/api/getDashboardAPIKeys",{},e=>{console.log(e),e.status?this.apiKeys=e.data:(this.apiKeys=[],this.store.newMessage("Server",e.message,"danger"))}):this.apiKeys=[]}}}},wV={class:"card mb-4 shadow rounded-3"},xV={class:"card-header d-flex"},EV={key:0,class:"form-check form-switch ms-auto"},CV={class:"form-check-label",for:"allowAPIKeysSwitch"},SV={key:0,class:"card-body position-relative d-flex flex-column gap-2"},kV={key:1,class:"card",style:{height:"300px"}},TV={class:"card-body d-flex text-muted"},AV={class:"m-auto"},PV={key:2,class:"d-flex flex-column gap-2 position-relative",style:{"min-height":"300px"}};function MV(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("DashboardAPIKey"),l=Ce("NewDashboardAPIKey");return P(),F("div",wV,[f("div",xV,[L(o,{t:"API Keys"}),this.store.getActiveCrossServer()?se("",!0):(P(),F("div",EV,[Re(f("input",{class:"form-check-input",type:"checkbox","onUpdate:modelValue":e[0]||(e[0]=c=>this.value=c),onChange:e[1]||(e[1]=c=>this.toggleDashboardAPIKeys()),role:"switch",id:"allowAPIKeysSwitch"},null,544),[[Gn,this.value]]),f("label",CV,[this.value?(P(),Ee(o,{key:0,t:"Enabled"})):(P(),Ee(o,{key:1,t:"Disabled"}))])]))]),this.value?(P(),F("div",SV,[this.store.getActiveCrossServer()?se("",!0):(P(),F("button",{key:0,class:"ms-auto btn bg-primary-subtle text-primary-emphasis border-1 border-primary-subtle rounded-3 shadow-sm",onClick:e[2]||(e[2]=c=>this.newDashboardAPIKey=!0)},[e[6]||(e[6]=f("i",{class:"bi bi-plus-circle-fill me-2"},null,-1)),L(o,{t:"API Key"})])),this.apiKeys.length===0?(P(),F("div",kV,[f("div",TV,[f("span",AV,[L(o,{t:"No WGDashboard API Key"})])])])):(P(),F("div",PV,[L(vo,{name:"apiKey"},{default:Me(()=>[(P(!0),F(De,null,Ge(this.apiKeys,c=>(P(),Ee(a,{apiKey:c,key:c.Key,onDeleted:e[3]||(e[3]=u=>this.apiKeys=u)},null,8,["apiKey"]))),128))]),_:1})])),L(xt,{name:"zoomReversed"},{default:Me(()=>[this.newDashboardAPIKey?(P(),Ee(l,{key:0,onCreated:e[4]||(e[4]=c=>this.apiKeys=c),onClose:e[5]||(e[5]=c=>this.newDashboardAPIKey=!1)})):se("",!0)]),_:1})])):se("",!0)])}const IV=He(bV,[["render",MV],["__scopeId","data-v-167c06a6"]]),DV={name:"accountSettingsMFA",components:{LocaleText:Le},setup(){const t=Je(),e=`input_${Bs()}`;return{store:t,uuid:e}},data(){return{status:!1}},mounted(){this.status=this.store.Configuration.Account.enable_totp},methods:{async resetMFA(){await ht("/api/updateDashboardConfigurationItem",{section:"Account",key:"totp_verified",value:"false"},async t=>{await ht("/api/updateDashboardConfigurationItem",{section:"Account",key:"enable_totp",value:"false"},e=>{e.status&&this.$router.push("/2FASetup")})})}}},RV={class:"d-flex align-items-center"},$V={class:"form-check form-switch ms-3"};function LV(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",null,[f("div",RV,[f("strong",null,[L(o,{t:"Multi-Factor Authentication (MFA)"})]),f("div",$V,[Re(f("input",{class:"form-check-input",type:"checkbox","onUpdate:modelValue":e[0]||(e[0]=a=>this.status=a),role:"switch",id:"allowMFAKeysSwitch"},null,512),[[Gn,this.status]])]),this.status?(P(),F("button",{key:0,class:"btn bg-warning-subtle text-warning-emphasis border-1 border-warning-subtle ms-auto rounded-3 shadow-sm",onClick:e[1]||(e[1]=a=>this.resetMFA())},[e[2]||(e[2]=f("i",{class:"bi bi-shield-lock-fill me-2"},null,-1)),this.store.Configuration.Account.totp_verified?(P(),Ee(o,{key:0,t:"Reset"})):(P(),Ee(o,{key:1,t:"Setup"})),e[3]||(e[3]=Be(" MFA "))])):se("",!0)])])}const OV=He(DV,[["render",LV]]),NV={name:"dashboardLanguage",components:{LocaleText:Le},setup(){return{store:Je()}},data(){return{languages:void 0}},mounted(){Pt("/api/locale/available",{},t=>{this.languages=t.data})},methods:{changeLanguage(t){ht("/api/locale/update",{lang_id:t},e=>{e.status?(this.store.Configuration.Server.dashboard_language=t,this.store.Locale=e.data):this.store.newMessage("Server","Dashboard language update failed","danger")})}},computed:{currentLanguage(){let t=this.store.Configuration.Server.dashboard_language;return this.languages.find(e=>e.lang_id===t)}}},FV={class:"card mb-4 shadow rounded-3"},BV={class:"card-header"},VV={class:"card-body d-flex gap-2"},zV={class:"dropdown w-100"},WV=["disabled"],YV={key:1},HV={class:"dropdown-menu rounded-3 shadow"},jV=["onClick"],KV={class:"me-auto mb-0"},UV={class:"d-block",style:{"font-size":"0.8rem"}},GV={key:0,class:"bi bi-check text-primary fs-5"};function XV(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",FV,[f("p",BV,[L(o,{t:"Dashboard Language"})]),f("div",VV,[f("div",zV,[f("button",{class:"btn bg-primary-subtle text-primary-emphasis dropdown-toggle w-100 rounded-3",disabled:!this.languages,type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[this.languages?(P(),F("span",YV,pe(r.currentLanguage?.lang_name_localized),1)):(P(),Ee(o,{key:0,t:"Loading..."}))],8,WV),f("ul",HV,[(P(!0),F(De,null,Ge(this.languages,a=>(P(),F("li",null,[f("a",{class:"dropdown-item d-flex align-items-center",role:"button",onClick:l=>this.changeLanguage(a.lang_id)},[f("p",KV,[Be(pe(a.lang_name_localized)+" ",1),f("small",UV,pe(a.lang_name),1)]),r.currentLanguage?.lang_id===a.lang_id?(P(),F("i",GV)):se("",!0)],8,jV)]))),256))])])])])}const qV=He(NV,[["render",XV],["__scopeId","data-v-a8b77ad0"]]),ZV={name:"dashboardIPPortInput",components:{LocaleText:Le},setup(){return{store:Je()}},data(){return{ipAddress:"",port:0,invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0,changed:!1,updating:!1}},mounted(){this.ipAddress=this.store.Configuration.Server.app_ip,this.port=this.store.Configuration.Server.app_port},methods:{async useValidation(t,e,n){this.changed&&(this.updating=!0,await ht("/api/updateDashboardConfigurationItem",{section:"Server",key:e,value:n},i=>{i.status?(t.target.classList.add("is-valid"),this.showInvalidFeedback=!1,this.store.Configuration.Server[e]=n,clearTimeout(this.timeout),this.timeout=setTimeout(()=>{t.target.classList.remove("is-valid")},5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=i.message),this.changed=!1,this.updating=!1}))}}},JV={class:"card mb-4 shadow rounded-3"},QV={class:"card-header"},e6={class:"card-body"},t6={class:"row gx-3"},n6={class:"col-sm"},i6={class:"form-group mb-2"},s6={for:"input_dashboard_ip",class:"text-muted mb-1"},r6=["disabled"],o6={class:"invalid-feedback"},a6={class:"col-sm"},l6={class:"form-group mb-2"},c6={for:"input_dashboard_ip",class:"text-muted mb-1"},u6=["disabled"],d6={class:"invalid-feedback"},h6={class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block mt-1 mb-2"};function f6(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",JV,[f("p",QV,[L(o,{t:"Dashboard IP Address & Listen Port"})]),f("div",e6,[f("div",t6,[f("div",n6,[f("div",i6,[f("label",s6,[f("strong",null,[f("small",null,[L(o,{t:"IP Address / Hostname"})])])]),Re(f("input",{type:"text",class:Se(["form-control",{"is-invalid":s.showInvalidFeedback,"is-valid":s.isValid}]),id:"input_dashboard_ip","onUpdate:modelValue":e[0]||(e[0]=a=>this.ipAddress=a),onKeydown:e[1]||(e[1]=a=>this.changed=!0),onBlur:e[2]||(e[2]=a=>r.useValidation(a,"app_ip",this.ipAddress)),disabled:this.updating},null,42,r6),[[ze,this.ipAddress]]),f("div",o6,pe(this.invalidFeedback),1)])]),f("div",a6,[f("div",l6,[f("label",c6,[f("strong",null,[f("small",null,[L(o,{t:"Listen Port"})])])]),Re(f("input",{type:"number",class:Se(["form-control",{"is-invalid":s.showInvalidFeedback,"is-valid":s.isValid}]),id:"input_dashboard_ip","onUpdate:modelValue":e[3]||(e[3]=a=>this.port=a),onKeydown:e[4]||(e[4]=a=>this.changed=!0),onBlur:e[5]||(e[5]=a=>r.useValidation(a,"app_port",this.port)),disabled:this.updating},null,42,u6),[[ze,this.port]]),f("div",d6,pe(this.invalidFeedback),1)])])]),f("div",h6,[f("small",null,[e[6]||(e[6]=f("i",{class:"bi bi-exclamation-triangle-fill me-2"},null,-1)),L(o,{t:"Manual restart of WGDashboard is needed to apply changes on IP Address and Listen Port"})])])])])}const g6=He(ZV,[["render",f6]]),p6={name:"settings",methods:{ipV46RegexCheck:Y3},components:{DashboardIPPortInput:g6,DashboardLanguage:qV,LocaleText:Le,AccountSettingsMFA:OV,DashboardAPIKeys:IV,DashboardSettingsInputIPAddressAndPort:jN,DashboardTheme:$N,DashboardSettingsInputWireguardConfigurationPath:AN,AccountSettingsInputPassword:pN,AccountSettingsInputUsername:q3,PeersDefaultSettingsInput:W3},setup(){return{dashboardConfigurationStore:Je()}}},m6={class:"mt-md-5 mt-3"},_6={class:"container-md"},v6={class:"mb-4 text-body"},y6={class:"card mb-4 shadow rounded-3"},b6={class:"card-header"},w6={class:"card-body"},x6={class:"card mb-4 shadow rounded-3"},E6={class:"card-header"},C6={class:"card-body"},S6={class:"row gx-4"},k6={class:"col-sm"},T6={class:"col-sm"},A6={class:"card mb-4 shadow rounded-3"},P6={class:"card-header"},M6={class:"card-body d-flex gap-4 flex-column"},I6={key:0,class:"m-0"};function D6(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("PeersDefaultSettingsInput"),l=Ce("DashboardSettingsInputWireguardConfigurationPath"),c=Ce("DashboardTheme"),u=Ce("DashboardLanguage"),d=Ce("DashboardIPPortInput"),h=Ce("AccountSettingsInputUsername"),g=Ce("AccountSettingsInputPassword"),p=Ce("AccountSettingsMFA"),m=Ce("DashboardAPIKeys");return P(),F("div",m6,[f("div",_6,[f("h2",v6,[L(o,{t:"Settings"})]),f("div",y6,[f("p",b6,[L(o,{t:"Peers Default Settings"})]),f("div",w6,[L(a,{targetData:"peer_global_dns",title:"DNS"}),L(a,{targetData:"peer_endpoint_allowed_ip",title:"Endpoint Allowed IPs"}),L(a,{targetData:"peer_mtu",title:"MTU"}),L(a,{targetData:"peer_keep_alive",title:"Persistent Keepalive"}),L(a,{targetData:"remote_endpoint",title:"Peer Remote Endpoint",warning:!0,warningText:"This will be changed globally, and will be apply to all peer's QR code and configuration file."})])]),f("div",x6,[f("p",E6,[L(o,{t:"WireGuard Configurations Settings"})]),f("div",C6,[L(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"})])]),e[1]||(e[1]=f("hr",{class:"mb-4"},null,-1)),f("div",S6,[f("div",k6,[L(c)]),f("div",T6,[L(u)])]),L(d),f("div",A6,[f("p",P6,[L(o,{t:"WGDashboard Account Settings"})]),f("div",M6,[L(h,{targetData:"username",title:"Username"}),e[0]||(e[0]=f("hr",{class:"m-0"},null,-1)),L(g,{targetData:"password"}),this.dashboardConfigurationStore.getActiveCrossServer()?se("",!0):(P(),F("hr",I6)),this.dashboardConfigurationStore.getActiveCrossServer()?se("",!0):(P(),Ee(p,{key:1}))])]),L(m)])])}const R6=He(p6,[["render",D6]]),$6={name:"setup",components:{LocaleText:Le},setup(){return{store:Je()}},data(){return{setup:{username:"",newPassword:"",repeatNewPassword:"",enable_totp:!0},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}},methods:{submit(){this.loading=!0,ht("/api/Welcome_Finish",this.setup,t=>{t.status?(this.done=!0,this.$router.push("/2FASetup")):(document.querySelectorAll("#createAccount input").forEach(e=>e.classList.add("is-invalid")),this.errorMessage=t.message,document.querySelector(".login-container-fluid").scrollTo({top:0,left:0,behavior:"smooth"})),this.loading=!1})}}},L6=["data-bs-theme"],O6={class:"m-auto text-body",style:{width:"500px"}},N6={class:"dashboardLogo display-4"},F6={class:"mb-5"},B6={key:0,class:"alert alert-danger"},V6={class:"d-flex flex-column gap-3"},z6={id:"createAccount",class:"d-flex flex-column gap-2"},W6={class:"form-group text-body"},Y6={for:"username",class:"mb-1 text-muted"},H6={class:"form-group text-body"},j6={for:"password",class:"mb-1 text-muted"},K6={class:"form-group text-body"},U6={for:"confirmPassword",class:"mb-1 text-muted"},G6=["disabled"],X6={key:0,class:"d-flex align-items-center w-100"},q6={key:1,class:"d-flex align-items-center w-100"};function Z6(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",{class:"container-fluid login-container-fluid d-flex main pt-5 overflow-scroll","data-bs-theme":this.store.Configuration.Server.dashboard_theme},[f("div",O6,[f("span",N6,[L(o,{t:"Nice to meet you!"})]),f("p",F6,[L(o,{t:"Please fill in the following fields to finish setup"}),e[4]||(e[4]=Be(" 😊"))]),f("div",null,[f("h3",null,[L(o,{t:"Create an account"})]),this.errorMessage?(P(),F("div",B6,pe(this.errorMessage),1)):se("",!0),f("div",V6,[f("form",z6,[f("div",W6,[f("label",Y6,[f("small",null,[L(o,{t:"Enter an username you like"})])]),Re(f("input",{type:"text",autocomplete:"username","onUpdate:modelValue":e[0]||(e[0]=a=>this.setup.username=a),class:"form-control",id:"username",name:"username",required:""},null,512),[[ze,this.setup.username]])]),f("div",H6,[f("label",j6,[f("small",null,[L(o,{t:"Enter a password"}),f("code",null,[L(o,{t:"(At least 8 characters and make sure is strong enough!)"})])])]),Re(f("input",{type:"password",autocomplete:"new-password","onUpdate:modelValue":e[1]||(e[1]=a=>this.setup.newPassword=a),class:"form-control",id:"password",name:"password",required:""},null,512),[[ze,this.setup.newPassword]])]),f("div",K6,[f("label",U6,[f("small",null,[L(o,{t:"Confirm password"})])]),Re(f("input",{type:"password",autocomplete:"confirm-new-password","onUpdate:modelValue":e[2]||(e[2]=a=>this.setup.repeatNewPassword=a),class:"form-control",id:"confirmPassword",name:"confirmPassword",required:""},null,512),[[ze,this.setup.repeatNewPassword]])])]),f("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:e[3]||(e[3]=a=>this.submit())},[!this.loading&&!this.done?(P(),F("span",X6,[L(o,{t:"Next"}),e[5]||(e[5]=f("i",{class:"bi bi-chevron-right ms-auto"},null,-1))])):(P(),F("span",q6,[L(o,{t:"Saving..."}),e[6]||(e[6]=f("span",{class:"spinner-border ms-auto spinner-border-sm",role:"status"},[f("span",{class:"visually-hidden"},"Loading...")],-1))]))],8,G6)])])])],8,L6)}const J6=He($6,[["render",Z6]]);function K_(t){return t.includes(":")?6:t.includes(".")?4:0}function Q6(t){const e=K_(t);if(!e)throw new Error(`Invalid IP address: ${t}`);let n=0n,i=0n;const s=Object.create(null);if(e===4)for(const r of t.split(".").map(BigInt).reverse())n+=r*2n**i,i+=8n;else{if(t.includes(".")&&(s.ipv4mapped=!0,t=t.split(":").map(a=>{if(a.includes(".")){const[l,c,u,d]=a.split(".").map(h=>Number(h).toString(16).padStart(2,"0"));return`${l}${c}:${u}${d}`}else return a}).join(":")),t.includes("%")){let a;[,t,a]=/(.+)%(.+)/.exec(t)||[],s.scopeid=a}const r=t.split(":"),o=r.indexOf("");if(o!==-1)for(;r.length<8;)r.splice(o,0,"");for(const a of r.map(l=>BigInt(parseInt(l||"0",16))).reverse())n+=a*2n**i,i+=16n}return s.number=n,s.version=e,s}const Kg={4:32,6:128},e8=t=>t.includes("/")?K_(t):0;function am(t){const e=e8(t),n=Object.create(null);if(e)n.cidr=t,n.version=e;else{const d=K_(t);if(d)n.cidr=`${t}/${Kg[d]}`,n.version=d;else throw new Error(`Network is not a CIDR or IP: ${t}`)}const[i,s]=n.cidr.split("/");if(!/^[0-9]+$/.test(s))throw new Error(`Network is not a CIDR or IP: ${t}`);n.prefix=s,n.single=s===String(Kg[n.version]);const{number:r,version:o}=Q6(i),a=Kg[o],l=r.toString(2).padStart(a,"0"),c=Number(a-s),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 +`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),yL=new RegExp(`(?:^${ns}$)|(?:^${wf}$)`),bL=new RegExp(`^${ns}$`),wL=new RegExp(`^${wf}$`),xf=t=>t&&t.exact?yL:new RegExp(`(?:${jr(t)}${ns}${jr(t)})|(?:${jr(t)}${wf}${jr(t)})`,"g");xf.v4=t=>t&&t.exact?bL:new RegExp(`${jr(t)}${ns}${jr(t)}`,"g");xf.v6=t=>t&&t.exact?wL:new RegExp(`${jr(t)}${wf}${jr(t)}`,"g");const DC={exact:!1},RC=`${xf.v4().source}\\/(3[0-2]|[12]?[0-9])`,$C=`${xf.v6().source}\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])`,xL=new RegExp(`^${RC}$`),EL=new RegExp(`^${$C}$`),CL=({exact:t}=DC)=>t?xL:new RegExp(RC,"g"),SL=({exact:t}=DC)=>t?EL:new RegExp($C,"g"),LC=CL({exact:!0}),OC=SL({exact:!0}),k_=t=>LC.test(t)?4:OC.test(t)?6:0;k_.v4=t=>LC.test(t);k_.v6=t=>OC.test(t);const At=t=>{const e=Xe();if(e.Locale===null)return t;const i=Object.keys(e.Locale).filter(s=>t.match(new RegExp("^"+s+"$","gi"))!==null);return i.length===0||i.length>1?t:t.replace(new RegExp(i[0],"gi"),e.Locale[i[0]])},$n=_C("WireguardConfigurationsStore",{state:()=>({Configurations:void 0,searchString:"",ConfigurationListInterval:void 0,PeerScheduleJobs:{dropdowns:{Field:[{display:At("Total Received"),value:"total_receive",unit:"GB",type:"number"},{display:At("Total Sent"),value:"total_sent",unit:"GB",type:"number"},{display:At("Total Usage"),value:"total_data",unit:"GB",type:"number"},{display:At("Date"),value:"date",type:"date"}],Operator:[{display:At("larger than"),value:"lgt"}],Action:[{display:At("Restrict Peer"),value:"restrict"},{display:At("Delete Peer"),value:"delete"}]}}}),actions:{async getConfigurations(){await Pt("/api/getWireguardConfigurations",{},t=>{t.status&&(this.Configurations=t.data)})},regexCheckIP(t){return/((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))/.test(t)},checkCIDR(t){return k_(t)!==0},checkWGKeyLength(t){return console.log(t),/^[A-Za-z0-9+/]{43}=?=?$/.test(t)}}}),He=(t,e)=>{const n=t.__vccOpts||t;for(const[i,s]of e)n[i]=s;return n},kL={name:"localeText",props:{t:""},computed:{getLocaleText(){return At(this.t)}}};function TL(t,e,n,i,s,r){return pe(this.getLocaleText)}const Le=He(kL,[["render",TL]]),AL={name:"navbar",components:{LocaleText:Le},setup(){const t=$n(),e=Xe();return{wireguardConfigurationsStore:t,dashboardConfigurationStore:e}},data(){return{updateAvailable:!1,updateMessage:"Checking for update...",updateUrl:""}},mounted(){Pt("/api/getDashboardUpdate",{},t=>{t.status?(t.data&&(this.updateAvailable=!0,this.updateUrl=t.data),this.updateMessage=t.message):(this.updateMessage=At("Failed to check available update"),console.log(`Failed to get update: ${t.message}`))})}},PL=["data-bs-theme"],ML={id:"sidebarMenu",class:"bg-body-tertiary sidebar border h-100 rounded-3 shadow overflow-y-scroll"},IL={class:"sidebar-sticky"},DL={class:"nav flex-column px-2"},RL={class:"nav-item"},$L={class:"nav-item"},LL={class:"nav-item"},OL={class:"nav-link rounded-3",target:"_blank",href:"https://donaldzou.github.io/WGDashboard-Documentation/user-guides.html"},NL={class:"sidebar-heading px-3 mt-4 mb-1 text-muted text-center"},FL={class:"nav flex-column px-2"},BL={class:"nav-item"},VL={class:"sidebar-heading px-3 mt-4 mb-1 text-muted text-center"},zL={class:"nav flex-column px-2"},WL={class:"nav-item"},YL={class:"nav-item"},HL={class:"nav flex-column px-2 mb-3"},jL={class:"nav-item"},KL={class:"nav-item",style:{"font-size":"0.8rem"}},UL=["href"],GL={class:"nav-link text-muted rounded-3"},XL={key:1,class:"nav-link text-muted rounded-3"};function qL(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("RouterLink");return P(),F("div",{class:Se(["col-md-3 col-lg-2 d-md-block p-3 navbar-container",{active:this.dashboardConfigurationStore.ShowNavBar}]),"data-bs-theme":i.dashboardConfigurationStore.Configuration.Server.dashboard_theme},[h("nav",ML,[h("div",IL,[e[8]||(e[8]=h("h5",{class:"text-white text-center m-0 py-3 mb-3 btn-brand"},"WGDashboard",-1)),h("ul",DL,[h("li",RL,[$(a,{class:"nav-link rounded-3",to:"/","exact-active-class":"active"},{default:Me(()=>[e[1]||(e[1]=h("i",{class:"bi bi-house me-2"},null,-1)),$(o,{t:"Home"})]),_:1})]),h("li",$L,[$(a,{class:"nav-link rounded-3",to:"/settings","exact-active-class":"active"},{default:Me(()=>[e[2]||(e[2]=h("i",{class:"bi bi-gear me-2"},null,-1)),$(o,{t:"Settings"})]),_:1})]),h("li",LL,[h("a",OL,[e[3]||(e[3]=h("i",{class:"bi bi-question-circle me-2"},null,-1)),$(o,{t:"Help"})])])]),e[9]||(e[9]=h("hr",{class:"text-body"},null,-1)),h("h6",NL,[e[4]||(e[4]=h("i",{class:"bi bi-body-text me-2"},null,-1)),$(o,{t:"WireGuard Configurations"})]),h("ul",FL,[(P(!0),F(Ie,null,Ge(this.wireguardConfigurationsStore.Configurations,l=>(P(),F("li",BL,[$(a,{to:"/configuration/"+l.Name+"/peers",class:"nav-link nav-conf-link rounded-3","active-class":"active"},{default:Me(()=>[h("span",{class:Se(["dot me-2",{active:l.Status}])},null,2),Fe(" "+pe(l.Name),1)]),_:2},1032,["to"])]))),256))]),e[10]||(e[10]=h("hr",{class:"text-body"},null,-1)),h("h6",VL,[e[5]||(e[5]=h("i",{class:"bi bi-tools me-2"},null,-1)),$(o,{t:"Tools"})]),h("ul",zL,[h("li",WL,[$(a,{to:"/ping",class:"nav-link rounded-3","active-class":"active"},{default:Me(()=>[$(o,{t:"Ping"})]),_:1})]),h("li",YL,[$(a,{to:"/traceroute",class:"nav-link rounded-3","active-class":"active"},{default:Me(()=>[$(o,{t:"Traceroute"})]),_:1})])]),e[11]||(e[11]=h("hr",{class:"text-body"},null,-1)),h("ul",HL,[h("li",jL,[h("a",{class:"nav-link text-danger rounded-3",onClick:e[0]||(e[0]=l=>this.dashboardConfigurationStore.signOut()),role:"button",style:{"font-weight":"bold"}},[e[6]||(e[6]=h("i",{class:"bi bi-box-arrow-left me-2"},null,-1)),$(o,{t:"Sign Out"})])]),h("li",KL,[this.updateAvailable?(P(),F("a",{key:0,href:this.updateUrl,class:"text-decoration-none rounded-3",target:"_blank"},[h("small",GL,[$(o,{t:this.updateMessage},null,8,["t"]),e[7]||(e[7]=Fe(" (")),$(o,{t:"Current Version:"}),Fe(" "+pe(i.dashboardConfigurationStore.Configuration.Server.version)+") ",1)])],8,UL)):(P(),F("small",XL,[$(o,{t:this.updateMessage},null,8,["t"]),Fe(" ("+pe(i.dashboardConfigurationStore.Configuration.Server.version)+") ",1)]))])])])])],10,PL)}const ZL=He(AL,[["render",qL],["__scopeId","data-v-28358cc6"]]);var NC={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(sx,function(){var n=1e3,i=6e4,s=36e5,r="millisecond",o="second",a="minute",l="hour",c="day",u="week",d="month",f="quarter",g="year",p="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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,x={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(N){var B=["th","st","nd","rd"],R=N%100;return"["+N+(B[(R-20)%10]||B[R]||B[0])+"]"}},E=function(N,B,R){var z=String(N);return!z||z.length>=B?N:""+Array(B+1-z.length).join(R)+N},w={s:E,z:function(N){var B=-N.utcOffset(),R=Math.abs(B),z=Math.floor(R/60),X=R%60;return(B<=0?"+":"-")+E(z,2,"0")+":"+E(X,2,"0")},m:function N(B,R){if(B.date()1)return N(H[0])}else{var ce=B.name;C[ce]=B,X=ce}return!z&&X&&(b=X),X||!z&&b},I=function(N,B){if(T(N))return N.clone();var R=typeof B=="object"?B:{};return R.date=N,R.args=arguments,new Y(R)},V=w;V.l=A,V.i=T,V.w=function(N,B){return I(N,{locale:B.$L,utc:B.$u,x:B.$x,$offset:B.$offset})};var Y=function(){function N(R){this.$L=A(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[k]=!0}var B=N.prototype;return B.parse=function(R){this.$d=function(z){var X=z.date,J=z.utc;if(X===null)return new Date(NaN);if(V.u(X))return new Date;if(X instanceof Date)return new Date(X);if(typeof X=="string"&&!/Z$/i.test(X)){var H=X.match(v);if(H){var ce=H[2]-1||0,ie=(H[7]||"0").substring(0,3);return J?new Date(Date.UTC(H[1],ce,H[3]||1,H[4]||0,H[5]||0,H[6]||0,ie)):new Date(H[1],ce,H[3]||1,H[4]||0,H[5]||0,H[6]||0,ie)}}return new Date(X)}(R),this.init()},B.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()},B.$utils=function(){return V},B.isValid=function(){return this.$d.toString()!==m},B.isSame=function(R,z){var X=I(R);return this.startOf(z)<=X&&X<=this.endOf(z)},B.isAfter=function(R,z){return I(R){this.message.show=!1},5e3)}},eO=["id"],tO={class:"card-body"},nO={class:"d-flex"},iO={class:"fw-bold d-block",style:{"text-transform":"uppercase"}},sO={class:"ms-auto"};function rO(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",{class:Se(["card shadow rounded-3 position-relative message ms-auto",{"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},[h("div",tO,[h("div",nO,[h("small",iO,[$(o,{t:"FROM "}),Fe(" "+pe(this.message.from),1)]),h("small",sO,pe(r.dayjs().format("hh:mm A")),1)]),Fe(" "+pe(this.message.content),1)])],10,eO)}const FC=He(QL,[["render",rO],["__scopeId","data-v-f50b8f0c"]]),oO={name:"index",components:{Message:FC,Navbar:ZL},async setup(){return{dashboardConfigurationStore:Xe()}},computed:{getMessages(){return this.dashboardConfigurationStore.Messages.filter(t=>t.show)}}},aO=["data-bs-theme"],lO={class:"row h-100"},cO={class:"col-md-9 ml-sm-auto col-lg-10 px-md-4 overflow-y-scroll mb-0"},uO={class:"messageCentre text-body position-fixed d-flex"};function dO(t,e,n,i,s,r){const o=Ce("Navbar"),a=Ce("RouterView"),l=Ce("Message");return P(),F("div",{class:"container-fluid flex-grow-1 main","data-bs-theme":this.dashboardConfigurationStore.Configuration.Server.dashboard_theme},[h("div",lO,[$(o),h("main",cO,[(P(),Ee(x_,null,{default:Me(()=>[$(a,null,{default:Me(({Component:c})=>[$(xt,{name:"fade2",mode:"out-in",appear:""},{default:Me(()=>[(P(),Ee(_a(c)))]),_:2},1024)]),_:1})]),_:1})),h("div",uO,[$(vo,{name:"message",tag:"div",class:"position-relative flex-sm-grow-0 flex-grow-1 d-flex align-items-end ms-sm-auto flex-column gap-2"},{default:Me(()=>[(P(!0),F(Ie,null,Ge(r.getMessages.slice().reverse(),c=>(P(),Ee(l,{message:c,key:c.id},null,8,["message"]))),128))]),_:1})])])])],8,aO)}const hO=He(oO,[["render",dO],["__scopeId","data-v-5627c522"]]),fO={name:"RemoteServer",props:{server:Object},data(){return{active:!1,startTime:void 0,endTime:void 0,errorMsg:"",refreshing:!1}},methods:{async handshake(){this.active=!1,this.server.host&&this.server.apiKey&&(this.refreshing=!0,this.startTime=void 0,this.endTime=void 0,this.startTime=Fn(),await fetch(`${this.server.host}/api/handshake`,{headers:{"content-type":"application/json","wg-dashboard-apikey":this.server.apiKey},method:"GET",signal:AbortSignal.timeout(5e3)}).then(t=>{if(t.status===200)return t.json();throw new Error(t.statusText)}).then(()=>{this.endTime=Fn(),this.active=!0}).catch(t=>{this.active=!1,this.errorMsg=t}),this.refreshing=!1)},async connect(){await fetch(`${this.server.host}/api/authenticate`,{headers:{"content-type":"application/json","wg-dashboard-apikey":this.server.apiKey},body:JSON.stringify({host:window.location.hostname}),method:"POST",signal:AbortSignal.timeout(5e3)}).then(t=>t.json()).then(t=>{this.$emit("setActiveServer"),this.$router.push("/")})}},mounted(){this.handshake()},computed:{getHandshakeTime(){return this.startTime&&this.endTime?`${Fn().subtract(this.startTime).millisecond()}ms`:this.refreshing?At("Pinging..."):this.errorMsg?this.errorMsg:"N/A"}}},gO={class:"card rounded-3"},pO={class:"card-body"},mO={class:"d-flex gap-3 w-100 remoteServerContainer"},_O={class:"d-flex gap-3 align-items-center flex-grow-1"},vO={class:"d-flex gap-3 align-items-center flex-grow-1"},yO={class:"d-flex gap-2 button-group"},bO={class:"card-footer gap-2 d-flex align-items-center"},wO={key:0,class:"spin ms-auto text-primary-emphasis"};function xO(t,e,n,i,s,r){return P(),F("div",gO,[h("div",pO,[h("div",mO,[h("div",_O,[e[7]||(e[7]=h("i",{class:"bi bi-server"},null,-1)),Re(h("input",{class:"form-control form-control-sm",onBlur:e[0]||(e[0]=o=>this.handshake()),"onUpdate:modelValue":e[1]||(e[1]=o=>this.server.host=o),type:"url"},null,544),[[ze,this.server.host]])]),h("div",vO,[e[8]||(e[8]=h("i",{class:"bi bi-key-fill"},null,-1)),Re(h("input",{class:"form-control form-control-sm",onBlur:e[2]||(e[2]=o=>this.handshake()),"onUpdate:modelValue":e[3]||(e[3]=o=>this.server.apiKey=o),type:"text"},null,544),[[ze,this.server.apiKey]])]),h("div",yO,[h("button",{onClick:e[4]||(e[4]=o=>this.$emit("delete")),class:"ms-auto btn btn-sm bg-danger-subtle text-danger-emphasis border-1 border-danger-subtle"},e[9]||(e[9]=[h("i",{class:"bi bi-trash"},null,-1)])),h("button",{onClick:e[5]||(e[5]=o=>this.connect()),class:Se([{disabled:!this.active},"ms-auto btn btn-sm bg-success-subtle text-success-emphasis border-1 border-success-subtle"])},e[10]||(e[10]=[h("i",{class:"bi bi-arrow-right-circle"},null,-1)]),2)])])]),h("div",bO,[h("span",{class:Se(["dot ms-0 me-2",[this.active?"active":"inactive"]])},null,2),h("small",null,pe(this.getHandshakeTime),1),this.refreshing?(P(),F("div",wO,e[11]||(e[11]=[h("i",{class:"bi bi-arrow-clockwise"},null,-1)]))):(P(),F("a",{key:1,role:"button",onClick:e[6]||(e[6]=o=>this.handshake()),class:"text-primary-emphasis text-decoration-none ms-auto disabled"},e[12]||(e[12]=[h("i",{class:"bi bi-arrow-clockwise me"},null,-1)])))])])}const EO=He(fO,[["render",xO],["__scopeId","data-v-ed7817c7"]]),CO={name:"RemoteServerList",setup(){return{store:Xe()}},components:{LocaleText:Le,RemoteServer:EO}},SO={class:"w-100 mt-3"},kO={class:"d-flex align-items-center mb-3"},TO={class:"mb-0"},AO={class:"w-100 d-flex gap-3 flex-column p-3 border border-1 border-secondary-subtle rounded-3",style:{height:"400px","overflow-y":"scroll"}},PO={key:0,class:"text-muted m-auto"};function MO(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("RemoteServer");return P(),F("div",SO,[h("div",kO,[h("h5",TO,[$(o,{t:"Server List"})]),h("button",{onClick:e[0]||(e[0]=l=>this.store.addCrossServerConfiguration()),class:"btn bg-primary-subtle text-primary-emphasis border-1 border-primary-subtle shadow-sm ms-auto"},[e[1]||(e[1]=h("i",{class:"bi bi-plus-circle-fill me-2"},null,-1)),$(o,{t:"Server"})])]),h("div",AO,[(P(!0),F(Ie,null,Ge(this.store.CrossServerConfiguration.ServerList,(l,c)=>(P(),Ee(a,{onSetActiveServer:u=>this.store.setActiveCrossServer(c),onDelete:u=>this.store.deleteCrossServerConfiguration(c),key:c,server:l},null,8,["onSetActiveServer","onDelete","server"]))),128)),Object.keys(this.store.CrossServerConfiguration.ServerList).length===0?(P(),F("h6",PO,[$(o,{t:"Click"}),e[2]||(e[2]=h("i",{class:"bi bi-plus-circle-fill mx-1"},null,-1)),$(o,{t:"to add your server"})])):re("",!0)])])}const IO=He(CO,[["render",MO]]),DO={name:"signInInput",methods:{GetLocale:At},props:{id:"",data:"",type:"",placeholder:""},computed:{getLocaleText(){return At(this.placeholder)}}},RO=["type","id","name","placeholder"];function $O(t,e,n,i,s,r){return Re((P(),F("input",{type:n.type,"onUpdate:modelValue":e[0]||(e[0]=o=>this.data[this.id]=o),class:"form-control",id:this.id,name:this.id,autocomplete:"on",placeholder:this.getLocaleText,required:""},null,8,RO)),[[uC,this.data[this.id]]])}const LO=He(DO,[["render",$O]]),OO={name:"signInTOTP",methods:{GetLocale:At},props:{data:""},computed:{getLocaleText(){return At("OTP from your authenticator")}}},NO=["placeholder"];function FO(t,e,n,i,s,r){return Re((P(),F("input",{class:"form-control totp",required:"",id:"totp",maxlength:"6",type:"text",inputmode:"numeric",autocomplete:"one-time-code",placeholder:this.getLocaleText,"onUpdate:modelValue":e[0]||(e[0]=o=>this.data.totp=o)},null,8,NO)),[[ze,this.data.totp]])}const BO=He(OO,[["render",FO]]),VO={name:"signin",components:{SignInTOTP:BO,SignInInput:LO,LocaleText:Le,RemoteServerList:IO,Message:FC},async setup(){const t=Xe();let e="dark",n=!1,i;return t.IsElectronApp||await Promise.all([Pt("/api/getDashboardTheme",{},s=>{e=s.data}),Pt("/api/isTotpEnabled",{},s=>{n=s.data}),Pt("/api/getDashboardVersion",{},s=>{i=s.data})]),t.removeActiveCrossServer(),{store:t,theme:e,totpEnabled:n,version:i}},data(){return{data:{username:"",password:"",totp:""},loginError:!1,loginErrorMessage:"",loading:!1}},computed:{getMessages(){return this.store.Messages.filter(t=>t.show)},applyLocale(t){return At(t)}},methods:{GetLocale:At,async auth(){this.data.username&&this.data.password&&(this.totpEnabled&&this.data.totp||!this.totpEnabled)?(this.loading=!0,await ht("/api/authenticate",this.data,t=>{t.status?(this.loginError=!1,this.$refs.signInBtn.classList.add("signedIn"),t.message?this.$router.push("/welcome"):this.store.Redirect!==void 0?this.$router.push(this.store.Redirect):this.$router.push("/")):(this.loginError=!0,this.loginErrorMessage=t.message,document.querySelectorAll("input[required]").forEach(e=>{e.classList.remove("is-valid"),e.classList.add("is-invalid")}),this.loading=!1)})):document.querySelectorAll("input[required]").forEach(t=>{t.value.length===0?(t.classList.remove("is-valid"),t.classList.add("is-invalid")):(t.classList.remove("is-invalid"),t.classList.add("is-valid"))})}}},zO=["data-bs-theme"],WO={class:"login-box m-auto"},YO={class:"m-auto",style:{width:"700px"}},HO={class:"mb-0 text-body"},jO={key:0,class:"alert alert-danger mt-2 mb-0",role:"alert"},KO={class:"form-group text-body"},UO={class:"form-group text-body"},GO={key:0,class:"form-group text-body"},XO={class:"btn btn-lg btn-dark ms-auto mt-4 w-100 d-flex btn-brand signInBtn",ref:"signInBtn"},qO={key:0,class:"d-flex w-100"},ZO={key:1,class:"d-flex w-100 align-items-center"},JO={key:3,class:"d-flex mt-3"},QO={class:"form-check form-switch ms-auto"},e3={class:"form-check-label",for:"flexSwitchCheckChecked"},t3={class:"text-muted pb-3 d-block w-100 text-center mt-3"},n3={class:"messageCentre text-body position-absolute end-0 m-3"};function i3(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("SignInInput"),l=Ce("SignInTOTP"),c=Ce("RemoteServerList"),u=Ce("Message");return P(),F("div",{class:"container-fluid login-container-fluid d-flex main flex-column py-4 text-body",style:{"overflow-y":"scroll"},"data-bs-theme":this.theme},[h("div",WO,[h("div",YO,[h("h4",HO,[$(o,{t:"Welcome to"})]),e[7]||(e[7]=h("span",{class:"dashboardLogo display-3"},[h("strong",null,"WGDashboard")],-1)),s.loginError?(P(),F("div",jO,[$(o,{t:this.loginErrorMessage},null,8,["t"])])):re("",!0),this.store.CrossServerConfiguration.Enable?(P(),Ee(c,{key:2})):(P(),F("form",{key:1,onSubmit:e[0]||(e[0]=d=>{d.preventDefault(),this.auth()})},[h("div",KO,[e[2]||(e[2]=h("label",{for:"username",class:"text-left",style:{"font-size":"1rem"}},[h("i",{class:"bi bi-person-circle"})],-1)),$(a,{id:"username",data:this.data,type:"text",placeholder:"Username"},null,8,["data"])]),h("div",UO,[e[3]||(e[3]=h("label",{for:"password",class:"text-left",style:{"font-size":"1rem"}},[h("i",{class:"bi bi-key-fill"})],-1)),$(a,{id:"password",data:this.data,type:"password",placeholder:"Password"},null,8,["data"])]),i.totpEnabled?(P(),F("div",GO,[e[4]||(e[4]=h("label",{for:"totp",class:"text-left",style:{"font-size":"1rem"}},[h("i",{class:"bi bi-lock-fill"})],-1)),$(l,{data:this.data},null,8,["data"])])):re("",!0),h("button",XO,[this.loading?(P(),F("span",ZO,[$(o,{t:"Signing In..."}),e[6]||(e[6]=h("span",{class:"spinner-border ms-auto spinner-border-sm",role:"status"},null,-1))])):(P(),F("span",qO,[$(o,{t:"Sign In"}),e[5]||(e[5]=h("i",{class:"ms-auto bi bi-chevron-right"},null,-1))]))],512)],32)),this.store.IsElectronApp?re("",!0):(P(),F("div",JO,[h("div",QO,[Re(h("input",{"onUpdate:modelValue":e[1]||(e[1]=d=>this.store.CrossServerConfiguration.Enable=d),class:"form-check-input",type:"checkbox",role:"switch",id:"flexSwitchCheckChecked"},null,512),[[Gn,this.store.CrossServerConfiguration.Enable]]),h("label",e3,[$(o,{t:"Access Remote Server"})])])]))])]),h("small",t3,[Fe(" WGDashboard "+pe(this.version)+" | Developed with ❤️ by ",1),e[8]||(e[8]=h("a",{href:"https://github.com/donaldzou",target:"_blank"},[h("strong",null,"Donald Zou")],-1))]),h("div",n3,[$(vo,{name:"message",tag:"div",class:"position-relative"},{default:Me(()=>[(P(!0),F(Ie,null,Ge(r.getMessages.slice().reverse(),d=>(P(),Ee(u,{message:d,key:d.id},null,8,["message"]))),128))]),_:1})])],8,zO)}const s3=He(VO,[["render",i3],["__scopeId","data-v-95530d22"]]),T_={name:"configurationCard",components:{LocaleText:Le},props:{c:{Name:String,Status:Boolean,PublicKey:String,PrivateKey:String},delay:String},data(){return{configurationToggling:!1}},setup(){return{dashboardConfigurationStore:Xe()}},methods:{toggle(){this.configurationToggling=!0,Pt("/api/toggleWireguardConfiguration/",{configurationName:this.c.Name},t=>{t.status?this.dashboardConfigurationStore.newMessage("Server",`${this.c.Name} ${t.data?"is on":"is off"}`):this.dashboardConfigurationStore.newMessage("Server",t.message,"danger"),this.c.Status=t.data,this.configurationToggling=!1})}}},r0=()=>{oC(t=>({"1d5189b2":t.delay}))},o0=T_.setup;T_.setup=o0?(t,e)=>(r0(),o0(t,e)):r0;const r3={class:"card conf_card rounded-3 shadow text-decoration-none"},o3={class:"mb-0"},a3={class:"card-title mb-0"},l3={class:"card-footer d-flex gap-2 flex-column"},c3={class:"row"},u3={class:"col-6 col-md-3"},d3={class:"text-primary-emphasis col-6 col-md-3"},h3={class:"text-success-emphasis col-6 col-md-3"},f3={class:"text-md-end col-6 col-md-3"},g3={class:"d-flex align-items-center gap-2"},p3={class:"text-muted"},m3={style:{"word-break":"keep-all"}},_3={class:"mb-0 d-block d-lg-inline-block"},v3={style:{"line-break":"anywhere"}},y3={class:"form-check form-switch ms-auto"},b3=["for"],w3={key:4,class:"spinner-border spinner-border-sm ms-2","aria-hidden":"true"},x3=["disabled","id"];function E3(t,e,n,i,s,r){const o=Ce("RouterLink"),a=Ce("LocaleText");return P(),F("div",r3,[$(o,{to:"/configuration/"+n.c.Name+"/peers",class:"card-body d-flex align-items-center gap-3 flex-wrap text-decoration-none"},{default:Me(()=>[h("h6",o3,[h("span",{class:Se(["dot",{active:n.c.Status}])},null,2)]),h("h6",a3,[h("samp",null,pe(n.c.Name),1)]),e[2]||(e[2]=h("h6",{class:"mb-0 ms-auto"},[h("i",{class:"bi bi-chevron-right"})],-1))]),_:1},8,["to"]),h("div",l3,[h("div",c3,[h("small",u3,[e[3]||(e[3]=h("i",{class:"bi bi-arrow-down-up me-2"},null,-1)),Fe(pe(n.c.DataUsage.Total>0?n.c.DataUsage.Total.toFixed(4):0)+" GB ",1)]),h("small",d3,[e[4]||(e[4]=h("i",{class:"bi bi-arrow-down me-2"},null,-1)),Fe(pe(n.c.DataUsage.Receive>0?n.c.DataUsage.Receive.toFixed(4):0)+" GB ",1)]),h("small",h3,[e[5]||(e[5]=h("i",{class:"bi bi-arrow-up me-2"},null,-1)),Fe(pe(n.c.DataUsage.Sent>0?n.c.DataUsage.Sent.toFixed(4):0)+" GB ",1)]),h("small",f3,[h("span",{class:Se(["dot me-2",{active:n.c.ConnectedPeers>0}])},null,2),Fe(" "+pe(n.c.ConnectedPeers)+" / "+pe(n.c.TotalPeers)+" ",1),$(a,{t:"Peers"})])]),h("div",g3,[h("small",p3,[h("strong",m3,[$(a,{t:"Public Key"})])]),h("small",_3,[h("samp",v3,pe(n.c.PublicKey),1)]),h("div",y3,[h("label",{class:"form-check-label",style:{cursor:"pointer"},for:"switch"+n.c.PrivateKey},[!n.c.Status&&this.configurationToggling?(P(),Ee(a,{key:0,t:"Turning Off..."})):n.c.Status&&this.configurationToggling?(P(),Ee(a,{key:1,t:"Turning On..."})):n.c.Status&&!this.configurationToggling?(P(),Ee(a,{key:2,t:"On"})):!n.c.Status&&!this.configurationToggling?(P(),Ee(a,{key:3,t:"Off"})):re("",!0),this.configurationToggling?(P(),F("span",w3)):re("",!0)],8,b3),Re(h("input",{class:"form-check-input",style:{cursor:"pointer"},disabled:this.configurationToggling,type:"checkbox",role:"switch",id:"switch"+n.c.PrivateKey,onChange:e[0]||(e[0]=l=>this.toggle()),"onUpdate:modelValue":e[1]||(e[1]=l=>n.c.Status=l)},null,40,x3),[[Gn,n.c.Status]])])])])])}const C3=He(T_,[["render",E3],["__scopeId","data-v-a85a04a5"]]),S3={name:"configurationList",components:{LocaleText:Le,ConfigurationCard:C3},async setup(){return{wireguardConfigurationsStore:$n()}},data(){return{configurationLoaded:!1}},async mounted(){await this.wireguardConfigurationsStore.getConfigurations(),this.configurationLoaded=!0,this.wireguardConfigurationsStore.ConfigurationListInterval=setInterval(()=>{this.wireguardConfigurationsStore.getConfigurations()},1e4)},beforeUnmount(){clearInterval(this.wireguardConfigurationsStore.ConfigurationListInterval)}},k3={class:"mt-md-5 mt-3"},T3={class:"container-md"},A3={class:"d-flex mb-4 configurationListTitle align-items-center gap-3"},P3={class:"text-body d-flex"},M3={class:"text-muted",key:"noConfiguration"};function I3(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("RouterLink"),l=Ce("ConfigurationCard");return P(),F("div",k3,[h("div",T3,[h("div",A3,[h("h2",P3,[h("span",null,[$(o,{t:"WireGuard Configurations"})])]),$(a,{to:"/new_configuration",class:"btn btn-dark btn-brand rounded-3 p-2 shadow ms-auto rounded-3"},{default:Me(()=>e[0]||(e[0]=[h("h2",{class:"mb-0",style:{"line-height":"0"}},[h("i",{class:"bi bi-plus-circle"})],-1)])),_:1})]),$(vo,{name:"fade",tag:"div",class:"d-flex flex-column gap-3 mb-4"},{default:Me(()=>[this.configurationLoaded&&this.wireguardConfigurationsStore.Configurations.length===0?(P(),F("p",M3,[$(o,{t:"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."})])):this.configurationLoaded?(P(!0),F(Ie,{key:1},Ge(this.wireguardConfigurationsStore.Configurations,(c,u)=>(P(),Ee(l,{delay:u*.05+"s",key:c.Name,c},null,8,["delay","c"]))),128)):re("",!0)]),_:1})])])}const D3=He(S3,[["render",I3],["__scopeId","data-v-9f9a5b86"]]);let Sd;const R3=new Uint8Array(16);function $3(){if(!Sd&&(Sd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Sd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Sd(R3)}const Ln=[];for(let t=0;t<256;++t)Ln.push((t+256).toString(16).slice(1));function L3(t,e=0){return Ln[t[e+0]]+Ln[t[e+1]]+Ln[t[e+2]]+Ln[t[e+3]]+"-"+Ln[t[e+4]]+Ln[t[e+5]]+"-"+Ln[t[e+6]]+Ln[t[e+7]]+"-"+Ln[t[e+8]]+Ln[t[e+9]]+"-"+Ln[t[e+10]]+Ln[t[e+11]]+Ln[t[e+12]]+Ln[t[e+13]]+Ln[t[e+14]]+Ln[t[e+15]]}const O3=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),a0={randomUUID:O3};function Bs(t,e,n){if(a0.randomUUID&&!e&&!t)return a0.randomUUID();t=t||{};const i=t.random||(t.rng||$3)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,L3(i)}const N3={components:{LocaleText:Le},props:{targetData:String,title:String,warning:!1,warningText:""},setup(){const t=Xe(),e=`input_${Bs()}`;return{store:t,uuid:e}},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 ht("/api/updateDashboardConfigurationItem",{section:"Peers",key:this.targetData,value:this.value},t=>{t.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=t.message),this.changed=!1,this.updating=!1})}}},F3={class:"form-group mb-2"},B3=["for"],V3=["id","disabled"],z3={class:"invalid-feedback"},W3={key:0,class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block mt-1"};function Y3(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",F3,[h("label",{for:this.uuid,class:"text-muted mb-1"},[h("strong",null,[h("small",null,[$(o,{t:this.title},null,8,["t"])])])],8,B3),Re(h("input",{type:"text",class:Se(["form-control",{"is-invalid":s.showInvalidFeedback,"is-valid":s.isValid}]),id:this.uuid,"onUpdate:modelValue":e[0]||(e[0]=a=>this.value=a),onKeydown:e[1]||(e[1]=a=>this.changed=!0),onBlur:e[2]||(e[2]=a=>r.useValidation()),disabled:this.updating},null,42,V3),[[ze,this.value]]),h("div",z3,pe(this.invalidFeedback),1),n.warning?(P(),F("div",W3,[h("small",null,[e[3]||(e[3]=h("i",{class:"bi bi-exclamation-triangle-fill me-2"},null,-1)),$(o,{t:n.warningText},null,8,["t"])])])):re("",!0)])}const H3=He(N3,[["render",Y3]]),j3=t=>{},K3={name:"accountSettingsInputUsername",components:{LocaleText:Le},props:{targetData:String,title:String},setup(){const t=Xe(),e=`input_${Bs()}`;return{store:t,uuid:e}},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(t){this.changed&&(this.updating=!0,await ht("/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}))}}},U3={class:"form-group mb-2"},G3=["for"],X3=["id","disabled"],q3={class:"invalid-feedback"};function Z3(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",U3,[h("label",{for:this.uuid,class:"text-muted mb-1"},[h("strong",null,[h("small",null,[$(o,{t:this.title},null,8,["t"])])])],8,G3),Re(h("input",{type:"text",class:Se(["form-control",{"is-invalid":s.showInvalidFeedback,"is-valid":s.isValid}]),id:this.uuid,"onUpdate:modelValue":e[0]||(e[0]=a=>this.value=a),onKeydown:e[1]||(e[1]=a=>this.changed=!0),onBlur:e[2]||(e[2]=a=>r.useValidation()),disabled:this.updating},null,42,X3),[[ze,this.value]]),h("div",q3,pe(this.invalidFeedback),1)])}const J3=He(K3,[["render",Z3]]),Q3={name:"accountSettingsInputPassword",components:{LocaleText:Le},props:{targetData:String,warning:!1,warningText:""},setup(){const t=Xe(),e=`input_${Bs()}`;return{store:t,uuid:e}},data(){return{value:{currentPassword:"",newPassword:"",repeatNewPassword:""},invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0}},methods:{async useValidation(){Object.values(this.value).find(t=>t.length===0)===void 0?this.value.newPassword===this.value.repeatNewPassword?await ht("/api/updateDashboardConfigurationItem",{section:"Account",key:this.targetData,value:this.value},t=>{t.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=t.message)}):(this.showInvalidFeedback=!0,this.invalidFeedback="New passwords does not match"):(this.showInvalidFeedback=!0,this.invalidFeedback="Please fill in all required fields.")}},computed:{passwordValid(){return Object.values(this.value).find(t=>t.length===0)===void 0&&this.value.newPassword===this.value.repeatNewPassword}}},eN={class:"d-flex flex-column gap-2"},tN={class:"row g-2"},nN={class:"col-sm"},iN={class:"form-group"},sN=["for"],rN=["id"],oN={key:0,class:"invalid-feedback d-block"},aN={class:"col-sm"},lN={class:"form-group"},cN=["for"],uN=["id"],dN={class:"col-sm"},hN={class:"form-group"},fN=["for"],gN=["id"],pN=["disabled"];function mN(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",eN,[h("div",tN,[h("div",nN,[h("div",iN,[h("label",{for:"currentPassword_"+this.uuid,class:"text-muted mb-1"},[h("strong",null,[h("small",null,[$(o,{t:"Current Password"})])])],8,sN),Re(h("input",{type:"password",class:Se(["form-control",{"is-invalid":s.showInvalidFeedback,"is-valid":s.isValid}]),"onUpdate:modelValue":e[0]||(e[0]=a=>this.value.currentPassword=a),id:"currentPassword_"+this.uuid},null,10,rN),[[ze,this.value.currentPassword]]),s.showInvalidFeedback?(P(),F("div",oN,pe(this.invalidFeedback),1)):re("",!0)])]),h("div",aN,[h("div",lN,[h("label",{for:"newPassword_"+this.uuid,class:"text-muted mb-1"},[h("strong",null,[h("small",null,[$(o,{t:"New Password"})])])],8,cN),Re(h("input",{type:"password",class:Se(["form-control",{"is-invalid":s.showInvalidFeedback,"is-valid":s.isValid}]),"onUpdate:modelValue":e[1]||(e[1]=a=>this.value.newPassword=a),id:"newPassword_"+this.uuid},null,10,uN),[[ze,this.value.newPassword]])])]),h("div",dN,[h("div",hN,[h("label",{for:"repeatNewPassword_"+this.uuid,class:"text-muted mb-1"},[h("strong",null,[h("small",null,[$(o,{t:"Repeat New Password"})])])],8,fN),Re(h("input",{type:"password",class:Se(["form-control",{"is-invalid":s.showInvalidFeedback,"is-valid":s.isValid}]),"onUpdate:modelValue":e[2]||(e[2]=a=>this.value.repeatNewPassword=a),id:"repeatNewPassword_"+this.uuid},null,10,gN),[[ze,this.value.repeatNewPassword]])])])]),h("button",{disabled:!this.passwordValid,class:"ms-auto btn bg-success-subtle text-success-emphasis border-1 border-success-subtle rounded-3 shadow-sm",onClick:e[3]||(e[3]=a=>this.useValidation())},[e[4]||(e[4]=h("i",{class:"bi bi-save2-fill me-2"},null,-1)),$(o,{t:"Update Password"})],8,pN)])}const _N=He(Q3,[["render",mN]]),vN={name:"dashboardSettingsInputWireguardConfigurationPath",components:{LocaleText:Le},props:{targetData:String,title:String,warning:!1,warningText:""},setup(){const t=Xe(),e=$n(),n=`input_${Bs()}`;return{store:t,uuid:n,WireguardConfigurationStore:e}},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&&(this.updating=!0,await ht("/api/updateDashboardConfigurationItem",{section:"Server",key:this.targetData,value:this.value},t=>{t.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.WireguardConfigurationStore.getConfigurations(),this.store.newMessage("Server","WireGuard configuration path saved","success")):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=t.message),this.changed=!1,this.updating=!1}))}}},yN={class:"form-group"},bN=["for"],wN={class:"d-flex gap-2 align-items-start"},xN={class:"flex-grow-1"},EN=["id","disabled"],CN={class:"invalid-feedback fw-bold"},SN=["disabled"],kN={key:0,class:"bi bi-save2-fill"},TN={key:1,class:"spinner-border spinner-border-sm"},AN={key:0,class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block mt-1 mb-2"};function PN(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",yN,[h("label",{for:this.uuid,class:"text-muted mb-1"},[h("strong",null,[h("small",null,[$(o,{t:this.title},null,8,["t"])])])],8,bN),h("div",wN,[h("div",xN,[Re(h("input",{type:"text",class:Se(["form-control rounded-3",{"is-invalid":this.showInvalidFeedback,"is-valid":this.isValid}]),id:this.uuid,"onUpdate:modelValue":e[0]||(e[0]=a=>this.value=a),onKeydown:e[1]||(e[1]=a=>this.changed=!0),disabled:this.updating},null,42,EN),[[ze,this.value]]),h("div",CN,pe(this.invalidFeedback),1)]),h("button",{onClick:e[2]||(e[2]=a=>this.useValidation()),disabled:!this.changed,class:"ms-auto btn rounded-3 border-success-subtle bg-success-subtle text-success-emphasis"},[this.updating?(P(),F("span",TN)):(P(),F("i",kN))],8,SN)]),n.warning?(P(),F("div",AN,[h("small",null,[e[3]||(e[3]=h("i",{class:"bi bi-exclamation-triangle-fill me-2"},null,-1)),$(o,{t:n.warningText},null,8,["t"])])])):re("",!0)])}const MN=He(vN,[["render",PN]]),IN={name:"dashboardTheme",components:{LocaleText:Le},setup(){return{dashboardConfigurationStore:Xe()}},methods:{async switchTheme(t){await ht("/api/updateDashboardConfigurationItem",{section:"Server",key:"dashboard_theme",value:t},e=>{e.status&&(this.dashboardConfigurationStore.Configuration.Server.dashboard_theme=t)})}}},DN={class:"text-muted mb-1 d-block"},RN={class:"d-flex gap-1"};function $N(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",null,[h("small",DN,[h("strong",null,[$(o,{t:"Theme"})])]),h("div",RN,[h("button",{class:Se(["btn bg-primary-subtle text-primary-emphasis flex-grow-1",{active:this.dashboardConfigurationStore.Configuration.Server.dashboard_theme==="light"}]),onClick:e[0]||(e[0]=a=>this.switchTheme("light"))},[e[2]||(e[2]=h("i",{class:"bi bi-sun-fill me-2"},null,-1)),$(o,{t:"Light"})],2),h("button",{class:Se(["btn bg-primary-subtle text-primary-emphasis flex-grow-1",{active:this.dashboardConfigurationStore.Configuration.Server.dashboard_theme==="dark"}]),onClick:e[1]||(e[1]=a=>this.switchTheme("dark"))},[e[3]||(e[3]=h("i",{class:"bi bi-moon-fill me-2"},null,-1)),$(o,{t:"Dark"})],2)])])}const LN=He(IN,[["render",$N]]),ON={name:"dashboardSettingsInputIPAddressAndPort",props:{},setup(){const t=Xe(),e=`input_${Bs()}`;return{store:t,uuid:e}},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 ht("/api/updateDashboardConfigurationItem",{section:"Server",key:this.targetData,value:this.value},t=>{t.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=t.message)})}}},NN={class:"invalid-feedback d-block mt-0"},FN={class:"row"},BN={class:"form-group mb-2 col-sm"},VN=["for"],zN=["id"],WN={class:"form-group col-sm"},YN=["for"],HN=["id"];function jN(t,e,n,i,s,r){return P(),F("div",null,[h("div",NN,pe(this.invalidFeedback),1),h("div",FN,[h("div",BN,[h("label",{for:"app_ip_"+this.uuid,class:"text-muted mb-1"},e[2]||(e[2]=[h("strong",null,[h("small",null,"Dashboard IP Address")],-1)]),8,VN),Re(h("input",{type:"text",class:"form-control mb-2",id:"app_ip_"+this.uuid,"onUpdate:modelValue":e[0]||(e[0]=o=>this.app_ip=o)},null,8,zN),[[ze,this.app_ip]]),e[3]||(e[3]=h("div",{class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block"},[h("small",null,[h("i",{class:"bi bi-exclamation-triangle-fill me-2"}),h("code",null,"0.0.0.0"),Fe(" means it can be access by anyone with your server IP Address.")])],-1))]),h("div",WN,[h("label",{for:"app_port_"+this.uuid,class:"text-muted mb-1"},e[4]||(e[4]=[h("strong",null,[h("small",null,"Dashboard Port")],-1)]),8,YN),Re(h("input",{type:"text",class:"form-control mb-2",id:"app_port_"+this.uuid,"onUpdate:modelValue":e[1]||(e[1]=o=>this.app_port=o)},null,8,HN),[[ze,this.app_port]])])]),e[5]||(e[5]=h("button",{class:"btn btn-success btn-sm fw-bold rounded-3"},[h("i",{class:"bi bi-floppy-fill me-2"}),Fe("Update Dashboard Settings & Restart ")],-1))])}const KN=He(ON,[["render",jN]]);function Ye(t){const e=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&e==="[object Date]"?new t.constructor(+t):typeof t=="number"||e==="[object Number]"||typeof t=="string"||e==="[object String]"?new Date(t):new Date(NaN)}function vt(t,e){return t instanceof Date?new t.constructor(e):new Date(e)}function rs(t,e){const n=Ye(t);return isNaN(e)?vt(t,NaN):(e&&n.setDate(n.getDate()+e),n)}function ds(t,e){const n=Ye(t);if(isNaN(e))return vt(t,NaN);if(!e)return n;const i=n.getDate(),s=vt(t,n.getTime());s.setMonth(n.getMonth()+e+1,0);const r=s.getDate();return i>=r?s:(n.setFullYear(s.getFullYear(),s.getMonth(),i),n)}function BC(t,e){const{years:n=0,months:i=0,weeks:s=0,days:r=0,hours:o=0,minutes:a=0,seconds:l=0}=e,c=Ye(t),u=i||n?ds(c,i+n*12):c,d=r||s?rs(u,r+s*7):u,f=a+o*60,p=(l+f*60)*1e3;return vt(t,d.getTime()+p)}function UN(t,e){const n=+Ye(t);return vt(t,n+e)}const VC=6048e5,GN=864e5,XN=6e4,zC=36e5,qN=1e3;function ZN(t,e){return UN(t,e*zC)}let JN={};function ya(){return JN}function ps(t,e){const n=ya(),i=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=Ye(t),r=s.getDay(),o=(r=s.getTime()?n+1:e.getTime()>=o.getTime()?n:n-1}function l0(t){const e=Ye(t);return e.setHours(0,0,0,0),e}function Sh(t){const e=Ye(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function YC(t,e){const n=l0(t),i=l0(e),s=+n-Sh(n),r=+i-Sh(i);return Math.round((s-r)/GN)}function QN(t){const e=WC(t),n=vt(t,0);return n.setFullYear(e,0,4),n.setHours(0,0,0,0),Sl(n)}function eF(t,e){const n=e*3;return ds(t,n)}function A_(t,e){return ds(t,e*12)}function c0(t,e){const n=Ye(t),i=Ye(e),s=n.getTime()-i.getTime();return s<0?-1:s>0?1:s}function HC(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Hc(t){if(!HC(t)&&typeof t!="number")return!1;const e=Ye(t);return!isNaN(Number(e))}function u0(t){const e=Ye(t);return Math.trunc(e.getMonth()/3)+1}function tF(t,e){const n=Ye(t),i=Ye(e);return n.getFullYear()-i.getFullYear()}function nF(t,e){const n=Ye(t),i=Ye(e),s=c0(n,i),r=Math.abs(tF(n,i));n.setFullYear(1584),i.setFullYear(1584);const o=c0(n,i)===-s,a=s*(r-+o);return a===0?0:a}function jC(t,e){const n=Ye(t.start),i=Ye(t.end);let s=+n>+i;const r=s?+n:+i,o=s?i:n;o.setHours(0,0,0,0);let a=1;const l=[];for(;+o<=r;)l.push(Ye(o)),o.setDate(o.getDate()+a),o.setHours(0,0,0,0);return s?l.reverse():l}function Xo(t){const e=Ye(t),n=e.getMonth(),i=n-n%3;return e.setMonth(i,1),e.setHours(0,0,0,0),e}function iF(t,e){const n=Ye(t.start),i=Ye(t.end);let s=+n>+i;const r=s?+Xo(n):+Xo(i);let o=Xo(s?i:n),a=1;const l=[];for(;+o<=r;)l.push(Ye(o)),o=eF(o,a);return s?l.reverse():l}function sF(t){const e=Ye(t);return e.setDate(1),e.setHours(0,0,0,0),e}function KC(t){const e=Ye(t),n=e.getFullYear();return e.setFullYear(n+1,0,0),e.setHours(23,59,59,999),e}function lu(t){const e=Ye(t),n=vt(t,0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}function UC(t,e){const n=ya(),i=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=Ye(t),r=s.getDay(),o=(r{let i;const s=rF[t];return typeof s=="string"?i=s:e===1?i=s.one:i=s.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function $g(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const aF={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},lF={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},cF={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},uF={date:$g({formats:aF,defaultWidth:"full"}),time:$g({formats:lF,defaultWidth:"full"}),dateTime:$g({formats:cF,defaultWidth:"full"})},dF={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},hF=(t,e,n,i)=>dF[t];function cc(t){return(e,n)=>{const i=n?.context?String(n.context):"standalone";let s;if(i==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,a=n?.width?String(n.width):o;s=t.formattingValues[a]||t.formattingValues[o]}else{const o=t.defaultWidth,a=n?.width?String(n.width):t.defaultWidth;s=t.values[a]||t.values[o]}const r=t.argumentCallback?t.argumentCallback(e):e;return s[r]}}const fF={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},gF={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},pF={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},mF={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},_F={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},vF={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},yF=(t,e)=>{const n=Number(t),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},bF={ordinalNumber:yF,era:cc({values:fF,defaultWidth:"wide"}),quarter:cc({values:gF,defaultWidth:"wide",argumentCallback:t=>t-1}),month:cc({values:pF,defaultWidth:"wide"}),day:cc({values:mF,defaultWidth:"wide"}),dayPeriod:cc({values:_F,defaultWidth:"wide",formattingValues:vF,defaultFormattingWidth:"wide"})};function uc(t){return(e,n={})=>{const i=n.width,s=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],r=e.match(s);if(!r)return null;const o=r[0],a=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?xF(a,d=>d.test(o)):wF(a,d=>d.test(o));let c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=e.slice(o.length);return{value:c,rest:u}}}function wF(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function xF(t,e){for(let n=0;n{const i=e.match(t.matchPattern);if(!i)return null;const s=i[0],r=e.match(t.parsePattern);if(!r)return null;let o=t.valueCallback?t.valueCallback(r[0]):r[0];o=n.valueCallback?n.valueCallback(o):o;const a=e.slice(s.length);return{value:o,rest:a}}}const CF=/^(\d+)(th|st|nd|rd)?/i,SF=/\d+/i,kF={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},TF={any:[/^b/i,/^(a|c)/i]},AF={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},PF={any:[/1/i,/2/i,/3/i,/4/i]},MF={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},IF={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},DF={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},RF={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},$F={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},LF={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},OF={ordinalNumber:EF({matchPattern:CF,parsePattern:SF,valueCallback:t=>parseInt(t,10)}),era:uc({matchPatterns:kF,defaultMatchWidth:"wide",parsePatterns:TF,defaultParseWidth:"any"}),quarter:uc({matchPatterns:AF,defaultMatchWidth:"wide",parsePatterns:PF,defaultParseWidth:"any",valueCallback:t=>t+1}),month:uc({matchPatterns:MF,defaultMatchWidth:"wide",parsePatterns:IF,defaultParseWidth:"any"}),day:uc({matchPatterns:DF,defaultMatchWidth:"wide",parsePatterns:RF,defaultParseWidth:"any"}),dayPeriod:uc({matchPatterns:$F,defaultMatchWidth:"any",parsePatterns:LF,defaultParseWidth:"any"})},GC={code:"en-US",formatDistance:oF,formatLong:uF,formatRelative:hF,localize:bF,match:OF,options:{weekStartsOn:0,firstWeekContainsDate:1}};function NF(t){const e=Ye(t);return YC(e,lu(e))+1}function P_(t){const e=Ye(t),n=+Sl(e)-+QN(e);return Math.round(n/VC)+1}function M_(t,e){const n=Ye(t),i=n.getFullYear(),s=ya(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,o=vt(t,0);o.setFullYear(i+1,0,r),o.setHours(0,0,0,0);const a=ps(o,e),l=vt(t,0);l.setFullYear(i,0,r),l.setHours(0,0,0,0);const c=ps(l,e);return n.getTime()>=a.getTime()?i+1:n.getTime()>=c.getTime()?i:i-1}function FF(t,e){const n=ya(),i=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=M_(t,e),r=vt(t,0);return r.setFullYear(s,0,i),r.setHours(0,0,0,0),ps(r,e)}function I_(t,e){const n=Ye(t),i=+ps(n,e)-+FF(n,e);return Math.round(i/VC)+1}function St(t,e){const n=t<0?"-":"",i=Math.abs(t).toString().padStart(e,"0");return n+i}const Pr={y(t,e){const n=t.getFullYear(),i=n>0?n:1-n;return St(e==="yy"?i%100:i,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):St(n+1,2)},d(t,e){return St(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,e){return St(t.getHours()%12||12,e.length)},H(t,e){return St(t.getHours(),e.length)},m(t,e){return St(t.getMinutes(),e.length)},s(t,e){return St(t.getSeconds(),e.length)},S(t,e){const n=e.length,i=t.getMilliseconds(),s=Math.trunc(i*Math.pow(10,n-3));return St(s,e.length)}},$a={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},h0={G:function(t,e,n){const i=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const i=t.getFullYear(),s=i>0?i:1-i;return n.ordinalNumber(s,{unit:"year"})}return Pr.y(t,e)},Y:function(t,e,n,i){const s=M_(t,i),r=s>0?s:1-s;if(e==="YY"){const o=r%100;return St(o,2)}return e==="Yo"?n.ordinalNumber(r,{unit:"year"}):St(r,e.length)},R:function(t,e){const n=WC(t);return St(n,e.length)},u:function(t,e){const n=t.getFullYear();return St(n,e.length)},Q:function(t,e,n){const i=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(i);case"QQ":return St(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,e,n){const i=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(i);case"qq":return St(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,e,n){const i=t.getMonth();switch(e){case"M":case"MM":return Pr.M(t,e);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(t,e,n){const i=t.getMonth();switch(e){case"L":return String(i+1);case"LL":return St(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(t,e,n,i){const s=I_(t,i);return e==="wo"?n.ordinalNumber(s,{unit:"week"}):St(s,e.length)},I:function(t,e,n){const i=P_(t);return e==="Io"?n.ordinalNumber(i,{unit:"week"}):St(i,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):Pr.d(t,e)},D:function(t,e,n){const i=NF(t);return e==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):St(i,e.length)},E:function(t,e,n){const i=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(t,e,n,i){const s=t.getDay(),r=(s-i.weekStartsOn+8)%7||7;switch(e){case"e":return String(r);case"ee":return St(r,2);case"eo":return n.ordinalNumber(r,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(t,e,n,i){const s=t.getDay(),r=(s-i.weekStartsOn+8)%7||7;switch(e){case"c":return String(r);case"cc":return St(r,e.length);case"co":return n.ordinalNumber(r,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(t,e,n){const i=t.getDay(),s=i===0?7:i;switch(e){case"i":return String(s);case"ii":return St(s,e.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(t,e,n){const s=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,e,n){const i=t.getHours();let s;switch(i===12?s=$a.noon:i===0?s=$a.midnight:s=i/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,e,n){const i=t.getHours();let s;switch(i>=17?s=$a.evening:i>=12?s=$a.afternoon:i>=4?s=$a.morning:s=$a.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let i=t.getHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return Pr.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):Pr.H(t,e)},K:function(t,e,n){const i=t.getHours()%12;return e==="Ko"?n.ordinalNumber(i,{unit:"hour"}):St(i,e.length)},k:function(t,e,n){let i=t.getHours();return i===0&&(i=24),e==="ko"?n.ordinalNumber(i,{unit:"hour"}):St(i,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):Pr.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):Pr.s(t,e)},S:function(t,e){return Pr.S(t,e)},X:function(t,e,n){const i=t.getTimezoneOffset();if(i===0)return"Z";switch(e){case"X":return g0(i);case"XXXX":case"XX":return Yo(i);case"XXXXX":case"XXX":default:return Yo(i,":")}},x:function(t,e,n){const i=t.getTimezoneOffset();switch(e){case"x":return g0(i);case"xxxx":case"xx":return Yo(i);case"xxxxx":case"xxx":default:return Yo(i,":")}},O:function(t,e,n){const i=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+f0(i,":");case"OOOO":default:return"GMT"+Yo(i,":")}},z:function(t,e,n){const i=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+f0(i,":");case"zzzz":default:return"GMT"+Yo(i,":")}},t:function(t,e,n){const i=Math.trunc(t.getTime()/1e3);return St(i,e.length)},T:function(t,e,n){const i=t.getTime();return St(i,e.length)}};function f0(t,e=""){const n=t>0?"-":"+",i=Math.abs(t),s=Math.trunc(i/60),r=i%60;return r===0?n+String(s):n+String(s)+e+St(r,2)}function g0(t,e){return t%60===0?(t>0?"-":"+")+St(Math.abs(t)/60,2):Yo(t,e)}function Yo(t,e=""){const n=t>0?"-":"+",i=Math.abs(t),s=St(Math.trunc(i/60),2),r=St(i%60,2);return n+s+e+r}const p0=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},XC=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},BF=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],i=n[1],s=n[2];if(!s)return p0(t,e);let r;switch(i){case"P":r=e.dateTime({width:"short"});break;case"PP":r=e.dateTime({width:"medium"});break;case"PPP":r=e.dateTime({width:"long"});break;case"PPPP":default:r=e.dateTime({width:"full"});break}return r.replace("{{date}}",p0(i,e)).replace("{{time}}",XC(s,e))},tm={p:XC,P:BF},VF=/^D+$/,zF=/^Y+$/,WF=["D","DD","YY","YYYY"];function qC(t){return VF.test(t)}function ZC(t){return zF.test(t)}function nm(t,e,n){const i=YF(t,e,n);if(console.warn(i),WF.includes(t))throw new RangeError(i)}function YF(t,e,n){const i=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${i} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const HF=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,jF=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,KF=/^'([^]*?)'?$/,UF=/''/g,GF=/[a-zA-Z]/;function Ls(t,e,n){const i=ya(),s=n?.locale??i.locale??GC,r=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,a=Ye(t);if(!Hc(a))throw new RangeError("Invalid time value");let l=e.match(jF).map(u=>{const d=u[0];if(d==="p"||d==="P"){const f=tm[d];return f(u,s.formatLong)}return u}).join("").match(HF).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const d=u[0];if(d==="'")return{isToken:!1,value:XF(u)};if(h0[d])return{isToken:!0,value:u};if(d.match(GF))throw new RangeError("Format string contains an unescaped latin alphabet character `"+d+"`");return{isToken:!1,value:u}});s.localize.preprocessor&&(l=s.localize.preprocessor(a,l));const c={firstWeekContainsDate:r,weekStartsOn:o,locale:s};return l.map(u=>{if(!u.isToken)return u.value;const d=u.value;(!n?.useAdditionalWeekYearTokens&&ZC(d)||!n?.useAdditionalDayOfYearTokens&&qC(d))&&nm(d,e,String(t));const f=h0[d[0]];return f(a,d,s.localize,c)}).join("")}function XF(t){const e=t.match(KF);return e?e[1].replace(UF,"'"):t}function qF(t){return Ye(t).getDay()}function ZF(t){const e=Ye(t),n=e.getFullYear(),i=e.getMonth(),s=vt(t,0);return s.setFullYear(n,i+1,0),s.setHours(0,0,0,0),s.getDate()}function JF(){return Object.assign({},ya())}function vr(t){return Ye(t).getHours()}function QF(t){let n=Ye(t).getDay();return n===0&&(n=7),n}function ao(t){return Ye(t).getMinutes()}function at(t){return Ye(t).getMonth()}function kl(t){return Ye(t).getSeconds()}function Ze(t){return Ye(t).getFullYear()}function Tl(t,e){const n=Ye(t),i=Ye(e);return n.getTime()>i.getTime()}function cu(t,e){const n=Ye(t),i=Ye(e);return+n<+i}function tl(t,e){const n=Ye(t),i=Ye(e);return+n==+i}function e5(t,e){const n=e instanceof Date?vt(e,0):new e(0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}const t5=10;class JC{subPriority=0;validate(e,n){return!0}}class n5 extends JC{constructor(e,n,i,s,r){super(),this.value=e,this.validateValue=n,this.setValue=i,this.priority=s,r&&(this.subPriority=r)}validate(e,n){return this.validateValue(e,this.value,n)}set(e,n,i){return this.setValue(e,n,this.value,i)}}class i5 extends JC{priority=t5;subPriority=-1;set(e,n){return n.timestampIsSet?e:vt(e,e5(e,Date))}}class bt{run(e,n,i,s){const r=this.parse(e,n,i,s);return r?{setter:new n5(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}validate(e,n,i){return!0}}class s5 extends bt{priority=140;parse(e,n,i){switch(n){case"G":case"GG":case"GGG":return i.era(e,{width:"abbreviated"})||i.era(e,{width:"narrow"});case"GGGGG":return i.era(e,{width:"narrow"});case"GGGG":default:return i.era(e,{width:"wide"})||i.era(e,{width:"abbreviated"})||i.era(e,{width:"narrow"})}}set(e,n,i){return n.era=i,e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]}const cn={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Cs={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function un(t,e){return t&&{value:e(t.value),rest:t.rest}}function qt(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function Ss(t,e){const n=e.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:e.slice(1)};const i=n[1]==="+"?1:-1,s=n[2]?parseInt(n[2],10):0,r=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:i*(s*zC+r*XN+o*qN),rest:e.slice(n[0].length)}}function QC(t){return qt(cn.anyDigitsSigned,t)}function on(t,e){switch(t){case 1:return qt(cn.singleDigit,e);case 2:return qt(cn.twoDigits,e);case 3:return qt(cn.threeDigits,e);case 4:return qt(cn.fourDigits,e);default:return qt(new RegExp("^\\d{1,"+t+"}"),e)}}function kh(t,e){switch(t){case 1:return qt(cn.singleDigitSigned,e);case 2:return qt(cn.twoDigitsSigned,e);case 3:return qt(cn.threeDigitsSigned,e);case 4:return qt(cn.fourDigitsSigned,e);default:return qt(new RegExp("^-?\\d{1,"+t+"}"),e)}}function D_(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function eS(t,e){const n=e>0,i=n?e:1-e;let s;if(i<=50)s=t||100;else{const r=i+50,o=Math.trunc(r/100)*100,a=t>=r%100;s=t+o-(a?100:0)}return n?s:1-s}function tS(t){return t%400===0||t%4===0&&t%100!==0}class r5 extends bt{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,n,i){const s=r=>({year:r,isTwoDigitYear:n==="yy"});switch(n){case"y":return un(on(4,e),s);case"yo":return un(i.ordinalNumber(e,{unit:"year"}),s);default:return un(on(n.length,e),s)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,i){const s=e.getFullYear();if(i.isTwoDigitYear){const o=eS(i.year,s);return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}const r=!("era"in n)||n.era===1?i.year:1-i.year;return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}}class o5 extends bt{priority=130;parse(e,n,i){const s=r=>({year:r,isTwoDigitYear:n==="YY"});switch(n){case"Y":return un(on(4,e),s);case"Yo":return un(i.ordinalNumber(e,{unit:"year"}),s);default:return un(on(n.length,e),s)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,i,s){const r=M_(e,s);if(i.isTwoDigitYear){const a=eS(i.year,r);return e.setFullYear(a,0,s.firstWeekContainsDate),e.setHours(0,0,0,0),ps(e,s)}const o=!("era"in n)||n.era===1?i.year:1-i.year;return e.setFullYear(o,0,s.firstWeekContainsDate),e.setHours(0,0,0,0),ps(e,s)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class a5 extends bt{priority=130;parse(e,n){return kh(n==="R"?4:n.length,e)}set(e,n,i){const s=vt(e,0);return s.setFullYear(i,0,4),s.setHours(0,0,0,0),Sl(s)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class l5 extends bt{priority=130;parse(e,n){return kh(n==="u"?4:n.length,e)}set(e,n,i){return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class c5 extends bt{priority=120;parse(e,n,i){switch(n){case"Q":case"QQ":return on(n.length,e);case"Qo":return i.ordinalNumber(e,{unit:"quarter"});case"QQQ":return i.quarter(e,{width:"abbreviated",context:"formatting"})||i.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(e,{width:"wide",context:"formatting"})||i.quarter(e,{width:"abbreviated",context:"formatting"})||i.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=1&&n<=4}set(e,n,i){return e.setMonth((i-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class u5 extends bt{priority=120;parse(e,n,i){switch(n){case"q":case"qq":return on(n.length,e);case"qo":return i.ordinalNumber(e,{unit:"quarter"});case"qqq":return i.quarter(e,{width:"abbreviated",context:"standalone"})||i.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(e,{width:"wide",context:"standalone"})||i.quarter(e,{width:"abbreviated",context:"standalone"})||i.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=1&&n<=4}set(e,n,i){return e.setMonth((i-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class d5 extends bt{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,n,i){const s=r=>r-1;switch(n){case"M":return un(qt(cn.month,e),s);case"MM":return un(on(2,e),s);case"Mo":return un(i.ordinalNumber(e,{unit:"month"}),s);case"MMM":return i.month(e,{width:"abbreviated",context:"formatting"})||i.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(e,{width:"wide",context:"formatting"})||i.month(e,{width:"abbreviated",context:"formatting"})||i.month(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=11}set(e,n,i){return e.setMonth(i,1),e.setHours(0,0,0,0),e}}class h5 extends bt{priority=110;parse(e,n,i){const s=r=>r-1;switch(n){case"L":return un(qt(cn.month,e),s);case"LL":return un(on(2,e),s);case"Lo":return un(i.ordinalNumber(e,{unit:"month"}),s);case"LLL":return i.month(e,{width:"abbreviated",context:"standalone"})||i.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(e,{width:"wide",context:"standalone"})||i.month(e,{width:"abbreviated",context:"standalone"})||i.month(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=11}set(e,n,i){return e.setMonth(i,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function f5(t,e,n){const i=Ye(t),s=I_(i,n)-e;return i.setDate(i.getDate()-s*7),i}class g5 extends bt{priority=100;parse(e,n,i){switch(n){case"w":return qt(cn.week,e);case"wo":return i.ordinalNumber(e,{unit:"week"});default:return on(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,i,s){return ps(f5(e,i,s),s)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function p5(t,e){const n=Ye(t),i=P_(n)-e;return n.setDate(n.getDate()-i*7),n}class m5 extends bt{priority=100;parse(e,n,i){switch(n){case"I":return qt(cn.week,e);case"Io":return i.ordinalNumber(e,{unit:"week"});default:return on(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,i){return Sl(p5(e,i))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const _5=[31,28,31,30,31,30,31,31,30,31,30,31],v5=[31,29,31,30,31,30,31,31,30,31,30,31];class y5 extends bt{priority=90;subPriority=1;parse(e,n,i){switch(n){case"d":return qt(cn.date,e);case"do":return i.ordinalNumber(e,{unit:"date"});default:return on(n.length,e)}}validate(e,n){const i=e.getFullYear(),s=tS(i),r=e.getMonth();return s?n>=1&&n<=v5[r]:n>=1&&n<=_5[r]}set(e,n,i){return e.setDate(i),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class b5 extends bt{priority=90;subpriority=1;parse(e,n,i){switch(n){case"D":case"DD":return qt(cn.dayOfYear,e);case"Do":return i.ordinalNumber(e,{unit:"date"});default:return on(n.length,e)}}validate(e,n){const i=e.getFullYear();return tS(i)?n>=1&&n<=366:n>=1&&n<=365}set(e,n,i){return e.setMonth(0,i),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function R_(t,e,n){const i=ya(),s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,r=Ye(t),o=r.getDay(),l=(e%7+7)%7,c=7-s,u=e<0||e>6?e-(o+c)%7:(l+c)%7-(o+c)%7;return rs(r,u)}class w5 extends bt{priority=90;parse(e,n,i){switch(n){case"E":case"EE":case"EEE":return i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(e,{width:"wide",context:"formatting"})||i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,i,s){return e=R_(e,i,s),e.setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]}class x5 extends bt{priority=90;parse(e,n,i,s){const r=o=>{const a=Math.floor((o-1)/7)*7;return(o+s.weekStartsOn+6)%7+a};switch(n){case"e":case"ee":return un(on(n.length,e),r);case"eo":return un(i.ordinalNumber(e,{unit:"day"}),r);case"eee":return i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"});case"eeeee":return i.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(e,{width:"wide",context:"formatting"})||i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,i,s){return e=R_(e,i,s),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class E5 extends bt{priority=90;parse(e,n,i,s){const r=o=>{const a=Math.floor((o-1)/7)*7;return(o+s.weekStartsOn+6)%7+a};switch(n){case"c":case"cc":return un(on(n.length,e),r);case"co":return un(i.ordinalNumber(e,{unit:"day"}),r);case"ccc":return i.day(e,{width:"abbreviated",context:"standalone"})||i.day(e,{width:"short",context:"standalone"})||i.day(e,{width:"narrow",context:"standalone"});case"ccccc":return i.day(e,{width:"narrow",context:"standalone"});case"cccccc":return i.day(e,{width:"short",context:"standalone"})||i.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(e,{width:"wide",context:"standalone"})||i.day(e,{width:"abbreviated",context:"standalone"})||i.day(e,{width:"short",context:"standalone"})||i.day(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=6}set(e,n,i,s){return e=R_(e,i,s),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function C5(t,e){const n=Ye(t),i=QF(n),s=e-i;return rs(n,s)}class S5 extends bt{priority=90;parse(e,n,i){const s=r=>r===0?7:r;switch(n){case"i":case"ii":return on(n.length,e);case"io":return i.ordinalNumber(e,{unit:"day"});case"iii":return un(i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"}),s);case"iiiii":return un(i.day(e,{width:"narrow",context:"formatting"}),s);case"iiiiii":return un(i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"}),s);case"iiii":default:return un(i.day(e,{width:"wide",context:"formatting"})||i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"}),s)}}validate(e,n){return n>=1&&n<=7}set(e,n,i){return e=C5(e,i),e.setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class k5 extends bt{priority=80;parse(e,n,i){switch(n){case"a":case"aa":case"aaa":return i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(e,{width:"wide",context:"formatting"})||i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,i){return e.setHours(D_(i),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]}class T5 extends bt{priority=80;parse(e,n,i){switch(n){case"b":case"bb":case"bbb":return i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(e,{width:"wide",context:"formatting"})||i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,i){return e.setHours(D_(i),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]}class A5 extends bt{priority=80;parse(e,n,i){switch(n){case"B":case"BB":case"BBB":return i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(e,{width:"wide",context:"formatting"})||i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,i){return e.setHours(D_(i),0,0,0),e}incompatibleTokens=["a","b","t","T"]}class P5 extends bt{priority=70;parse(e,n,i){switch(n){case"h":return qt(cn.hour12h,e);case"ho":return i.ordinalNumber(e,{unit:"hour"});default:return on(n.length,e)}}validate(e,n){return n>=1&&n<=12}set(e,n,i){const s=e.getHours()>=12;return s&&i<12?e.setHours(i+12,0,0,0):!s&&i===12?e.setHours(0,0,0,0):e.setHours(i,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]}class M5 extends bt{priority=70;parse(e,n,i){switch(n){case"H":return qt(cn.hour23h,e);case"Ho":return i.ordinalNumber(e,{unit:"hour"});default:return on(n.length,e)}}validate(e,n){return n>=0&&n<=23}set(e,n,i){return e.setHours(i,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]}class I5 extends bt{priority=70;parse(e,n,i){switch(n){case"K":return qt(cn.hour11h,e);case"Ko":return i.ordinalNumber(e,{unit:"hour"});default:return on(n.length,e)}}validate(e,n){return n>=0&&n<=11}set(e,n,i){return e.getHours()>=12&&i<12?e.setHours(i+12,0,0,0):e.setHours(i,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]}class D5 extends bt{priority=70;parse(e,n,i){switch(n){case"k":return qt(cn.hour24h,e);case"ko":return i.ordinalNumber(e,{unit:"hour"});default:return on(n.length,e)}}validate(e,n){return n>=1&&n<=24}set(e,n,i){const s=i<=24?i%24:i;return e.setHours(s,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]}class R5 extends bt{priority=60;parse(e,n,i){switch(n){case"m":return qt(cn.minute,e);case"mo":return i.ordinalNumber(e,{unit:"minute"});default:return on(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,i){return e.setMinutes(i,0,0),e}incompatibleTokens=["t","T"]}class $5 extends bt{priority=50;parse(e,n,i){switch(n){case"s":return qt(cn.second,e);case"so":return i.ordinalNumber(e,{unit:"second"});default:return on(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,i){return e.setSeconds(i,0),e}incompatibleTokens=["t","T"]}class L5 extends bt{priority=30;parse(e,n){const i=s=>Math.trunc(s*Math.pow(10,-n.length+3));return un(on(n.length,e),i)}set(e,n,i){return e.setMilliseconds(i),e}incompatibleTokens=["t","T"]}class O5 extends bt{priority=10;parse(e,n){switch(n){case"X":return Ss(Cs.basicOptionalMinutes,e);case"XX":return Ss(Cs.basic,e);case"XXXX":return Ss(Cs.basicOptionalSeconds,e);case"XXXXX":return Ss(Cs.extendedOptionalSeconds,e);case"XXX":default:return Ss(Cs.extended,e)}}set(e,n,i){return n.timestampIsSet?e:vt(e,e.getTime()-Sh(e)-i)}incompatibleTokens=["t","T","x"]}class N5 extends bt{priority=10;parse(e,n){switch(n){case"x":return Ss(Cs.basicOptionalMinutes,e);case"xx":return Ss(Cs.basic,e);case"xxxx":return Ss(Cs.basicOptionalSeconds,e);case"xxxxx":return Ss(Cs.extendedOptionalSeconds,e);case"xxx":default:return Ss(Cs.extended,e)}}set(e,n,i){return n.timestampIsSet?e:vt(e,e.getTime()-Sh(e)-i)}incompatibleTokens=["t","T","X"]}class F5 extends bt{priority=40;parse(e){return QC(e)}set(e,n,i){return[vt(e,i*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class B5 extends bt{priority=20;parse(e){return QC(e)}set(e,n,i){return[vt(e,i),{timestampIsSet:!0}]}incompatibleTokens="*"}const V5={G:new s5,y:new r5,Y:new o5,R:new a5,u:new l5,Q:new c5,q:new u5,M:new d5,L:new h5,w:new g5,I:new m5,d:new y5,D:new b5,E:new w5,e:new x5,c:new E5,i:new S5,a:new k5,b:new T5,B:new A5,h:new P5,H:new M5,K:new I5,k:new D5,m:new R5,s:new $5,S:new L5,X:new O5,x:new N5,t:new F5,T:new B5},z5=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,W5=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Y5=/^'([^]*?)'?$/,H5=/''/g,j5=/\S/,K5=/[a-zA-Z]/;function im(t,e,n,i){const s=JF(),r=i?.locale??s.locale??GC,o=i?.firstWeekContainsDate??i?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,a=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0;if(e==="")return t===""?Ye(n):vt(n,NaN);const l={firstWeekContainsDate:o,weekStartsOn:a,locale:r},c=[new i5],u=e.match(W5).map(m=>{const v=m[0];if(v in tm){const y=tm[v];return y(m,r.formatLong)}return m}).join("").match(z5),d=[];for(let m of u){!i?.useAdditionalWeekYearTokens&&ZC(m)&&nm(m,e,t),!i?.useAdditionalDayOfYearTokens&&qC(m)&&nm(m,e,t);const v=m[0],y=V5[v];if(y){const{incompatibleTokens:x}=y;if(Array.isArray(x)){const w=d.find(b=>x.includes(b.token)||b.token===v);if(w)throw new RangeError(`The format string mustn't contain \`${w.fullToken}\` and \`${m}\` at the same time`)}else if(y.incompatibleTokens==="*"&&d.length>0)throw new RangeError(`The format string mustn't contain \`${m}\` and any other token at the same time`);d.push({token:v,fullToken:m});const E=y.run(t,m,r.match,l);if(!E)return vt(n,NaN);c.push(E.setter),t=E.rest}else{if(v.match(K5))throw new RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");if(m==="''"?m="'":v==="'"&&(m=U5(m)),t.indexOf(m)===0)t=t.slice(m.length);else return vt(n,NaN)}}if(t.length>0&&j5.test(t))return vt(n,NaN);const f=c.map(m=>m.priority).sort((m,v)=>v-m).filter((m,v,y)=>y.indexOf(m)===v).map(m=>c.filter(v=>v.priority===m).sort((v,y)=>y.subPriority-v.subPriority)).map(m=>m[0]);let g=Ye(n);if(isNaN(g.getTime()))return vt(n,NaN);const p={};for(const m of f){if(!m.validate(g,l))return vt(n,NaN);const v=m.set(g,p,l);Array.isArray(v)?(g=v[0],Object.assign(p,v[1])):g=v}return vt(n,g)}function U5(t){return t.match(Y5)[1].replace(H5,"'")}function m0(t,e){const n=Xo(t),i=Xo(e);return+n==+i}function G5(t,e){return rs(t,-e)}function nS(t,e){const n=Ye(t),i=n.getFullYear(),s=n.getDate(),r=vt(t,0);r.setFullYear(i,e,15),r.setHours(0,0,0,0);const o=ZF(r);return n.setMonth(e,Math.min(s,o)),n}function Dt(t,e){let n=Ye(t);return isNaN(+n)?vt(t,NaN):(e.year!=null&&n.setFullYear(e.year),e.month!=null&&(n=nS(n,e.month)),e.date!=null&&n.setDate(e.date),e.hours!=null&&n.setHours(e.hours),e.minutes!=null&&n.setMinutes(e.minutes),e.seconds!=null&&n.setSeconds(e.seconds),e.milliseconds!=null&&n.setMilliseconds(e.milliseconds),n)}function X5(t,e){const n=Ye(t);return n.setHours(e),n}function iS(t,e){const n=Ye(t);return n.setMilliseconds(e),n}function q5(t,e){const n=Ye(t);return n.setMinutes(e),n}function sS(t,e){const n=Ye(t);return n.setSeconds(e),n}function As(t,e){const n=Ye(t);return isNaN(+n)?vt(t,NaN):(n.setFullYear(e),n)}function Al(t,e){return ds(t,-e)}function Z5(t,e){const{years:n=0,months:i=0,weeks:s=0,days:r=0,hours:o=0,minutes:a=0,seconds:l=0}=e,c=Al(t,i+n*12),u=G5(c,r+s*7),d=a+o*60,g=(l+d*60)*1e3;return vt(t,u.getTime()-g)}function rS(t,e){return A_(t,-e)}function Gl(){const t=ND();return P(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img",...t},[h("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),h("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),h("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),h("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}Gl.compatConfig={MODE:3};function oS(){return P(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[h("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),h("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}oS.compatConfig={MODE:3};function $_(){return P(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[h("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}$_.compatConfig={MODE:3};function L_(){return P(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[h("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}L_.compatConfig={MODE:3};function O_(){return P(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[h("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),h("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}O_.compatConfig={MODE:3};function N_(){return P(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[h("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}N_.compatConfig={MODE:3};function F_(){return P(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[h("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}F_.compatConfig={MODE:3};const xi=(t,e)=>e?new Date(t.toLocaleString("en-US",{timeZone:e})):new Date(t),B_=(t,e,n)=>sm(t,e,n)||ke(),J5=(t,e,n)=>{const i=e.dateInTz?xi(new Date(t),e.dateInTz):ke(t);return n?ai(i,!0):i},sm=(t,e,n)=>{if(!t)return null;const i=n?ai(ke(t),!0):ke(t);return e?e.exactMatch?J5(t,e,n):xi(i,e.timezone):i},Q5=t=>{if(!t)return 0;const e=new Date,n=new Date(e.toLocaleString("en-US",{timeZone:"UTC"})),i=new Date(e.toLocaleString("en-US",{timeZone:t})),s=i.getTimezoneOffset()/60;return(+n-+i)/(1e3*60*60)-s};var ts=(t=>(t.month="month",t.year="year",t))(ts||{}),Ho=(t=>(t.top="top",t.bottom="bottom",t))(Ho||{}),ia=(t=>(t.header="header",t.calendar="calendar",t.timePicker="timePicker",t))(ia||{}),jn=(t=>(t.month="month",t.year="year",t.calendar="calendar",t.time="time",t.minutes="minutes",t.hours="hours",t.seconds="seconds",t))(jn||{});const eB=["timestamp","date","iso"];var Qn=(t=>(t.up="up",t.down="down",t.left="left",t.right="right",t))(Qn||{}),Nt=(t=>(t.arrowUp="ArrowUp",t.arrowDown="ArrowDown",t.arrowLeft="ArrowLeft",t.arrowRight="ArrowRight",t.enter="Enter",t.space=" ",t.esc="Escape",t.tab="Tab",t.home="Home",t.end="End",t.pageUp="PageUp",t.pageDown="PageDown",t))(Nt||{});function _0(t){return e=>new Intl.DateTimeFormat(t,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${e}T00:00:00+00:00`)).slice(0,2)}function tB(t){return e=>Ls(xi(new Date(`2017-01-0${e}T00:00:00+00:00`),"UTC"),"EEEEEE",{locale:t})}const nB=(t,e,n)=>{const i=[1,2,3,4,5,6,7];let s;if(t!==null)try{s=i.map(tB(t))}catch{s=i.map(_0(e))}else s=i.map(_0(e));const r=s.slice(0,n),o=s.slice(n+1,s.length);return[s[n]].concat(...o).concat(...r)},V_=(t,e,n)=>{const i=[];for(let s=+t[0];s<=+t[1];s++)i.push({value:+s,text:uS(s,e)});return n?i.reverse():i},aS=(t,e,n)=>{const i=[1,2,3,4,5,6,7,8,9,10,11,12].map(r=>{const o=r<10?`0${r}`:r;return new Date(`2017-${o}-01T00:00:00+00:00`)});if(t!==null)try{const r=n==="long"?"LLLL":"LLL";return i.map((o,a)=>{const l=Ls(xi(o,"UTC"),r,{locale:t});return{text:l.charAt(0).toUpperCase()+l.substring(1),value:a}})}catch{}const s=new Intl.DateTimeFormat(e,{month:n,timeZone:"UTC"});return i.map((r,o)=>{const a=s.format(r);return{text:a.charAt(0).toUpperCase()+a.substring(1),value:o}})},iB=t=>[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11][t],bn=t=>{const e=Z(t);return e!=null&&e.$el?e?.$el:e},sB=t=>({type:"dot",...t??{}}),lS=t=>Array.isArray(t)?!!t[0]&&!!t[1]:!1,z_={prop:t=>`"${t}" prop must be enabled!`,dateArr:t=>`You need to use array as "model-value" binding in order to support "${t}"`},Tn=t=>t,v0=t=>t===0?t:!t||isNaN(+t)?null:+t,y0=t=>t===null,cS=t=>{if(t)return[...t.querySelectorAll("input, button, select, textarea, a[href]")][0]},rB=t=>{const e=[],n=i=>i.filter(s=>s);for(let i=0;i{const i=n!=null,s=e!=null;if(!i&&!s)return!1;const r=+n,o=+e;return i&&s?+t>r||+tr:s?+trB(t).map(n=>n.map(i=>{const{active:s,disabled:r,isBetween:o,highlighted:a}=e(i);return{...i,active:s,disabled:r,className:{dp__overlay_cell_active:s,dp__overlay_cell:!s,dp__overlay_cell_disabled:r,dp__overlay_cell_pad:!0,dp__overlay_cell_active_disabled:r&&s,dp__cell_in_between:o,"dp--highlighted":a}}})),eo=(t,e,n=!1)=>{t&&e.allowStopPropagation&&(n&&t.stopImmediatePropagation(),t.stopPropagation())},oB=()=>["a[href]","area[href]","input:not([disabled]):not([type='hidden'])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[tabindex]:not([tabindex='-1'])","[data-datepicker-instance]"].join(", ");function aB(t,e){let n=[...document.querySelectorAll(oB())];n=n.filter(s=>!t.contains(s)||s.hasAttribute("data-datepicker-instance"));const i=n.indexOf(t);if(i>=0&&(e?i-1>=0:i+1<=n.length))return n[i+(e?-1:1)]}const rm=(t,e)=>t?.querySelector(`[data-dp-element="${e}"]`),uS=(t,e)=>new Intl.NumberFormat(e,{useGrouping:!1,style:"decimal"}).format(t),W_=t=>Ls(t,"dd-MM-yyyy"),Lg=t=>Array.isArray(t),Th=(t,e)=>e.get(W_(t)),lB=(t,e)=>t?e?e instanceof Map?!!Th(t,e):e(ke(t)):!1:!0,si=(t,e,n=!1,i)=>{if(t.key===Nt.enter||t.key===Nt.space)return n&&t.preventDefault(),e();if(i)return i(t)},b0=()=>["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].some(t=>navigator.userAgent.includes(t))||navigator.userAgent.includes("Mac")&&"ontouchend"in document,w0=(t,e,n,i,s,r)=>{const o=im(t,e.slice(0,t.length),new Date,{locale:r});return Hc(o)&&HC(o)?i||s?o:Dt(o,{hours:+n.hours,minutes:+n?.minutes,seconds:+n?.seconds,milliseconds:0}):null},cB=(t,e,n,i,s,r)=>{const o=Array.isArray(n)?n[0]:n;if(typeof e=="string")return w0(t,e,o,i,s,r);if(Array.isArray(e)){let a=null;for(const l of e)if(a=w0(t,l,o,i,s,r),a)break;return a}return typeof e=="function"?e(t):null},ke=t=>t?new Date(t):new Date,uB=(t,e,n)=>{if(e){const s=(t.getMonth()+1).toString().padStart(2,"0"),r=t.getDate().toString().padStart(2,"0"),o=t.getHours().toString().padStart(2,"0"),a=t.getMinutes().toString().padStart(2,"0"),l=n?t.getSeconds().toString().padStart(2,"0"):"00";return`${t.getFullYear()}-${s}-${r}T${o}:${a}:${l}.000Z`}const i=Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds());return new Date(i).toISOString()},ai=(t,e)=>{const n=ke(JSON.parse(JSON.stringify(t))),i=Dt(n,{hours:0,minutes:0,seconds:0,milliseconds:0});return e?sF(i):i},to=(t,e,n,i)=>{let s=t?ke(t):ke();return(e||e===0)&&(s=X5(s,+e)),(n||n===0)&&(s=q5(s,+n)),(i||i===0)&&(s=sS(s,+i)),iS(s,0)},tn=(t,e)=>!t||!e?!1:cu(ai(t),ai(e)),ct=(t,e)=>!t||!e?!1:tl(ai(t),ai(e)),ln=(t,e)=>!t||!e?!1:Tl(ai(t),ai(e)),Ef=(t,e,n)=>t!=null&&t[0]&&t!=null&&t[1]?ln(n,t[0])&&tn(n,t[1]):t!=null&&t[0]&&e?ln(n,t[0])&&tn(n,e)||tn(n,t[0])&&ln(n,e):!1,os=t=>{const e=Dt(new Date(t),{date:1});return ai(e)},Og=(t,e,n)=>e&&(n||n===0)?Object.fromEntries(["hours","minutes","seconds"].map(i=>i===e?[i,n]:[i,isNaN(+t[i])?void 0:+t[i]])):{hours:isNaN(+t.hours)?void 0:+t.hours,minutes:isNaN(+t.minutes)?void 0:+t.minutes,seconds:isNaN(+t.seconds)?void 0:+t.seconds},sa=t=>({hours:vr(t),minutes:ao(t),seconds:kl(t)}),dS=(t,e)=>{if(e){const n=Ze(ke(e));if(n>t)return 12;if(n===t)return at(ke(e))}},hS=(t,e)=>{if(e){const n=Ze(ke(e));return n{if(t)return Ze(ke(t))},fS=(t,e)=>{const n=ln(t,e)?e:t,i=ln(e,t)?e:t;return jC({start:n,end:i})},dB=t=>{const e=ds(t,1);return{month:at(e),year:Ze(e)}},nr=(t,e)=>{const n=ps(t,{weekStartsOn:+e}),i=UC(t,{weekStartsOn:+e});return[n,i]},gS=(t,e)=>{const n={hours:vr(ke()),minutes:ao(ke()),seconds:e?kl(ke()):0};return Object.assign(n,t)},Kr=(t,e,n)=>[Dt(ke(t),{date:1}),Dt(ke(),{month:e,year:n,date:1})],ar=(t,e,n)=>{let i=t?ke(t):ke();return(e||e===0)&&(i=nS(i,e)),n&&(i=As(i,n)),i},pS=(t,e,n,i,s)=>{if(!i||s&&!e||!s&&!n)return!1;const r=s?ds(t,1):Al(t,1),o=[at(r),Ze(r)];return s?!fB(...o,e):!hB(...o,n)},hB=(t,e,n)=>tn(...Kr(n,t,e))||ct(...Kr(n,t,e)),fB=(t,e,n)=>ln(...Kr(n,t,e))||ct(...Kr(n,t,e)),mS=(t,e,n,i,s,r,o)=>{if(typeof e=="function"&&!o)return e(t);const a=n?{locale:n}:void 0;return Array.isArray(t)?`${Ls(t[0],r,a)}${s&&!t[1]?"":i}${t[1]?Ls(t[1],r,a):""}`:Ls(t,r,a)},La=t=>{if(t)return null;throw new Error(z_.prop("partial-range"))},kd=(t,e)=>{if(e)return t();throw new Error(z_.prop("range"))},om=t=>Array.isArray(t)?Hc(t[0])&&(t[1]?Hc(t[1]):!0):t?Hc(t):!1,gB=(t,e)=>Dt(e??ke(),{hours:+t.hours||0,minutes:+t.minutes||0,seconds:+t.seconds||0}),Ng=(t,e,n,i)=>{if(!t)return!0;if(i){const s=n==="max"?cu(t,e):Tl(t,e),r={seconds:0,milliseconds:0};return s||tl(Dt(t,r),Dt(e,r))}return n==="max"?t.getTime()<=e.getTime():t.getTime()>=e.getTime()},Fg=(t,e,n)=>t?gB(t,e):ke(n??e),x0=(t,e,n,i,s)=>{if(Array.isArray(i)){const o=Fg(t,i[0],e),a=Fg(t,i[1],e);return Ng(i[0],o,n,!!e)&&Ng(i[1],a,n,!!e)&&s}const r=Fg(t,i,e);return Ng(i,r,n,!!e)&&s},Bg=t=>Dt(ke(),sa(t)),pB=(t,e)=>t instanceof Map?Array.from(t.values()).filter(n=>Ze(ke(n))===e).map(n=>at(n)):[],_S=(t,e,n)=>typeof t=="function"?t({month:e,year:n}):!!t.months.find(i=>i.month===e&&i.year===n),Y_=(t,e)=>typeof t=="function"?t(e):t.years.includes(e),vS=t=>Ls(t,"yyyy-MM-dd"),dc=Ei({menuFocused:!1,shiftKeyInMenu:!1}),yS=()=>{const t=n=>{dc.menuFocused=n},e=n=>{dc.shiftKeyInMenu!==n&&(dc.shiftKeyInMenu=n)};return{control:ve(()=>({shiftKeyInMenu:dc.shiftKeyInMenu,menuFocused:dc.menuFocused})),setMenuFocused:t,setShiftKey:e}},Ot=Ei({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),Vg=me(null),Td=me(!1),zg=me(!1),Wg=me(!1),Yg=me(!1),zn=me(0),an=me(0),yo=()=>{const t=ve(()=>Td.value?[...Ot.selectionGrid,Ot.actionRow].filter(d=>d.length):zg.value?[...Ot.timePicker[0],...Ot.timePicker[1],Yg.value?[]:[Vg.value],Ot.actionRow].filter(d=>d.length):Wg.value?[...Ot.monthPicker,Ot.actionRow]:[Ot.monthYear,...Ot.calendar,Ot.time,Ot.actionRow].filter(d=>d.length)),e=d=>{zn.value=d?zn.value+1:zn.value-1;let f=null;t.value[an.value]&&(f=t.value[an.value][zn.value]),!f&&t.value[an.value+(d?1:-1)]?(an.value=an.value+(d?1:-1),zn.value=d?0:t.value[an.value].length-1):f||(zn.value=d?zn.value-1:zn.value+1)},n=d=>{an.value===0&&!d||an.value===t.value.length&&d||(an.value=d?an.value+1:an.value-1,t.value[an.value]?t.value[an.value]&&!t.value[an.value][zn.value]&&zn.value!==0&&(zn.value=t.value[an.value].length-1):an.value=d?an.value-1:an.value+1)},i=d=>{let f=null;t.value[an.value]&&(f=t.value[an.value][zn.value]),f?f.focus({preventScroll:!Td.value}):zn.value=d?zn.value-1:zn.value+1},s=()=>{e(!0),i(!0)},r=()=>{e(!1),i(!1)},o=()=>{n(!1),i(!0)},a=()=>{n(!0),i(!0)},l=(d,f)=>{Ot[f]=d},c=(d,f)=>{Ot[f]=d},u=()=>{zn.value=0,an.value=0};return{buildMatrix:l,buildMultiLevelMatrix:c,setTimePickerBackRef:d=>{Vg.value=d},setSelectionGrid:d=>{Td.value=d,u(),d||(Ot.selectionGrid=[])},setTimePicker:(d,f=!1)=>{zg.value=d,Yg.value=f,u(),d||(Ot.timePicker[0]=[],Ot.timePicker[1]=[])},setTimePickerElements:(d,f=0)=>{Ot.timePicker[f]=d},arrowRight:s,arrowLeft:r,arrowUp:o,arrowDown:a,clearArrowNav:()=>{Ot.monthYear=[],Ot.calendar=[],Ot.time=[],Ot.actionRow=[],Ot.selectionGrid=[],Ot.timePicker[0]=[],Ot.timePicker[1]=[],Td.value=!1,zg.value=!1,Yg.value=!1,Wg.value=!1,u(),Vg.value=null},setMonthPicker:d=>{Wg.value=d,u()},refSets:Ot}},E0=t=>({menuAppearTop:"dp-menu-appear-top",menuAppearBottom:"dp-menu-appear-bottom",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down",...t??{}}),mB=t=>({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:e=>`Increment ${e}`,decrementValue:e=>`Decrement ${e}`,openTpOverlay:e=>`Open ${e} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",nextYear:"Next year",prevYear:"Previous year",day:void 0,weekDay:void 0,clearInput:"Clear value",calendarIcon:"Calendar icon",timePicker:"Time picker",monthPicker:e=>`Month picker${e?" overlay":""}`,yearPicker:e=>`Year picker${e?" overlay":""}`,timeOverlay:e=>`${e} overlay`,...t??{}}),C0=t=>t?typeof t=="boolean"?t?2:0:+t>=2?+t:2:0,_B=t=>{const e=typeof t=="object"&&t,n={static:!0,solo:!1};if(!t)return{...n,count:C0(!1)};const i=e?t:{},s=e?i.count??!0:t,r=C0(s);return Object.assign(n,i,{count:r})},vB=(t,e,n)=>t||(typeof n=="string"?n:e),yB=t=>typeof t=="boolean"?t?E0({}):!1:E0(t),bB=t=>{const e={enterSubmit:!0,tabSubmit:!0,openMenu:"open",selectOnFocus:!1,rangeSeparator:" - "};return typeof t=="object"?{...e,...t??{},enabled:!0}:{...e,enabled:t}},wB=t=>({months:[],years:[],times:{hours:[],minutes:[],seconds:[]},...t??{}}),xB=t=>({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0,...t??{}}),EB=t=>{const e={input:!1};return typeof t=="object"?{...e,...t??{},enabled:!0}:{enabled:t,...e}},CB=t=>({allowStopPropagation:!0,closeOnScroll:!1,modeHeight:255,allowPreventDefault:!1,closeOnClearValue:!0,closeOnAutoApply:!0,noSwipe:!1,keepActionRow:!1,onClickOutside:void 0,tabOutClosesMenu:!0,arrowLeft:void 0,keepViewOnOffsetClick:!1,timeArrowHoldThreshold:0,shadowDom:!1,...t??{}}),SB=t=>{const e={dates:Array.isArray(t)?t.map(n=>ke(n)):[],years:[],months:[],quarters:[],weeks:[],weekdays:[],options:{highlightDisabled:!1}};return typeof t=="function"?t:{...e,...t??{}}},kB=t=>typeof t=="object"?{type:t?.type??"local",hideOnOffsetDates:t?.hideOnOffsetDates??!1}:{type:t,hideOnOffsetDates:!1},TB=t=>{const e={noDisabledRange:!1,showLastInRange:!0,minMaxRawRange:!1,partialRange:!0,disableTimeRangeValidation:!1,maxRange:void 0,minRange:void 0,autoRange:void 0,fixedStart:!1,fixedEnd:!1};return typeof t=="object"?{enabled:!0,...e,...t}:{enabled:t,...e}},AB=t=>t?typeof t=="string"?{timezone:t,exactMatch:!1,dateInTz:void 0,emitTimezone:void 0,convertModel:!0}:{timezone:t.timezone,exactMatch:t.exactMatch??!1,dateInTz:t.dateInTz??void 0,emitTimezone:t.emitTimezone??void 0,convertModel:t.convertModel??!0}:{timezone:void 0,exactMatch:!1,emitTimezone:void 0},Hg=(t,e,n)=>new Map(t.map(i=>{const s=B_(i,e,n);return[W_(s),s]})),PB=(t,e)=>t.length?new Map(t.map(n=>{const i=B_(n.date,e);return[W_(i),n]})):null,MB=t=>{var e;return{minDate:sm(t.minDate,t.timezone,t.isSpecific),maxDate:sm(t.maxDate,t.timezone,t.isSpecific),disabledDates:Lg(t.disabledDates)?Hg(t.disabledDates,t.timezone,t.isSpecific):t.disabledDates,allowedDates:Lg(t.allowedDates)?Hg(t.allowedDates,t.timezone,t.isSpecific):null,highlight:typeof t.highlight=="object"&&Lg((e=t.highlight)==null?void 0:e.dates)?Hg(t.highlight.dates,t.timezone):t.highlight,markers:PB(t.markers,t.timezone)}},IB=t=>typeof t=="boolean"?{enabled:t,dragSelect:!0,limit:null}:{enabled:!!t,limit:t.limit?+t.limit:null,dragSelect:t.dragSelect??!0},DB=t=>({...Object.fromEntries(Object.keys(t).map(e=>{const n=e,i=t[n],s=typeof t[n]=="string"?{[i]:!0}:Object.fromEntries(i.map(r=>[r,!0]));return[e,s]}))}),Kt=t=>{const e=()=>{const C=t.enableSeconds?":ss":"",k=t.enableMinutes?":mm":"";return t.is24?`HH${k}${C}`:`hh${k}${C} aa`},n=()=>{var C;return t.format?t.format:t.monthPicker?"MM/yyyy":t.timePicker?e():t.weekPicker?`${((C=v.value)==null?void 0:C.type)==="iso"?"RR":"ww"}-yyyy`:t.yearPicker?"yyyy":t.quarterPicker?"QQQ/yyyy":t.enableTimePicker?`MM/dd/yyyy, ${e()}`:"MM/dd/yyyy"},i=C=>gS(C,t.enableSeconds),s=()=>w.value.enabled?t.startTime&&Array.isArray(t.startTime)?[i(t.startTime[0]),i(t.startTime[1])]:null:t.startTime&&!Array.isArray(t.startTime)?i(t.startTime):null,r=ve(()=>_B(t.multiCalendars)),o=ve(()=>s()),a=ve(()=>mB(t.ariaLabels)),l=ve(()=>wB(t.filters)),c=ve(()=>yB(t.transitions)),u=ve(()=>xB(t.actionRow)),d=ve(()=>vB(t.previewFormat,t.format,n())),f=ve(()=>bB(t.textInput)),g=ve(()=>EB(t.inline)),p=ve(()=>CB(t.config)),m=ve(()=>SB(t.highlight)),v=ve(()=>kB(t.weekNumbers)),y=ve(()=>AB(t.timezone)),x=ve(()=>IB(t.multiDates)),E=ve(()=>MB({minDate:t.minDate,maxDate:t.maxDate,disabledDates:t.disabledDates,allowedDates:t.allowedDates,highlight:m.value,markers:t.markers,timezone:y.value,isSpecific:t.monthPicker||t.yearPicker||t.quarterPicker})),w=ve(()=>TB(t.range)),b=ve(()=>DB(t.ui));return{defaultedTransitions:c,defaultedMultiCalendars:r,defaultedStartTime:o,defaultedAriaLabels:a,defaultedFilters:l,defaultedActionRow:u,defaultedPreviewFormat:d,defaultedTextInput:f,defaultedInline:g,defaultedConfig:p,defaultedHighlight:m,defaultedWeekNumbers:v,defaultedRange:w,propDates:E,defaultedTz:y,defaultedMultiDates:x,defaultedUI:b,getDefaultPattern:n,getDefaultStartTime:s}},RB=(t,e,n)=>{const i=me(),{defaultedTextInput:s,defaultedRange:r,defaultedTz:o,defaultedMultiDates:a,getDefaultPattern:l}=Kt(e),c=me(""),u=tu(e,"format"),d=tu(e,"formatLocale");Zt(i,()=>{typeof e.onInternalModelChange=="function"&&t("internal-model-change",i.value,ue(!0))},{deep:!0}),Zt(r,(L,le)=>{L.enabled!==le.enabled&&(i.value=null)}),Zt(u,()=>{X()});const f=L=>o.value.timezone&&o.value.convertModel?xi(L,o.value.timezone):L,g=L=>{if(o.value.timezone&&o.value.convertModel){const le=Q5(o.value.timezone);return ZN(L,le)}return L},p=(L,le,de=!1)=>mS(L,e.format,e.formatLocale,s.value.rangeSeparator,e.modelAuto,le??l(),de),m=L=>L?e.modelType?H(L):{hours:vr(L),minutes:ao(L),seconds:e.enableSeconds?kl(L):0}:null,v=L=>e.modelType?H(L):{month:at(L),year:Ze(L)},y=L=>Array.isArray(L)?a.value.enabled?L.map(le=>x(le,As(ke(),le))):kd(()=>[As(ke(),L[0]),L[1]?As(ke(),L[1]):La(r.value.partialRange)],r.value.enabled):As(ke(),+L),x=(L,le)=>(typeof L=="string"||typeof L=="number")&&e.modelType?J(L):le,E=L=>Array.isArray(L)?[x(L[0],to(null,+L[0].hours,+L[0].minutes,L[0].seconds)),x(L[1],to(null,+L[1].hours,+L[1].minutes,L[1].seconds))]:x(L,to(null,L.hours,L.minutes,L.seconds)),w=L=>{const le=Dt(ke(),{date:1});return Array.isArray(L)?a.value.enabled?L.map(de=>x(de,ar(le,+de.month,+de.year))):kd(()=>[x(L[0],ar(le,+L[0].month,+L[0].year)),x(L[1],L[1]?ar(le,+L[1].month,+L[1].year):La(r.value.partialRange))],r.value.enabled):x(L,ar(le,+L.month,+L.year))},b=L=>{if(Array.isArray(L))return L.map(le=>J(le));throw new Error(z_.dateArr("multi-dates"))},C=L=>{if(Array.isArray(L)&&r.value.enabled){const le=L[0],de=L[1];return[ke(Array.isArray(le)?le[0]:null),Array.isArray(de)&&de.length?ke(de[0]):null]}return ke(L[0])},k=L=>e.modelAuto?Array.isArray(L)?[J(L[0]),J(L[1])]:e.autoApply?[J(L)]:[J(L),null]:Array.isArray(L)?kd(()=>L[1]?[J(L[0]),L[1]?J(L[1]):La(r.value.partialRange)]:[J(L[0])],r.value.enabled):J(L),T=()=>{Array.isArray(i.value)&&r.value.enabled&&i.value.length===1&&i.value.push(La(r.value.partialRange))},A=()=>{const L=i.value;return[H(L[0]),L[1]?H(L[1]):La(r.value.partialRange)]},I=()=>i.value[1]?A():H(Tn(i.value[0])),V=()=>(i.value||[]).map(L=>H(L)),Y=(L=!1)=>(L||T(),e.modelAuto?I():a.value.enabled?V():Array.isArray(i.value)?kd(()=>A(),r.value.enabled):H(Tn(i.value))),ne=L=>!L||Array.isArray(L)&&!L.length?null:e.timePicker?E(Tn(L)):e.monthPicker?w(Tn(L)):e.yearPicker?y(Tn(L)):a.value.enabled?b(Tn(L)):e.weekPicker?C(Tn(L)):k(Tn(L)),N=L=>{const le=ne(L);om(Tn(le))?(i.value=Tn(le),X()):(i.value=null,c.value="")},B=()=>{const L=le=>Ls(le,s.value.format);return`${L(i.value[0])} ${s.value.rangeSeparator} ${i.value[1]?L(i.value[1]):""}`},R=()=>n.value&&i.value?Array.isArray(i.value)?B():Ls(i.value,s.value.format):p(i.value),z=()=>i.value?a.value.enabled?i.value.map(L=>p(L)).join("; "):s.value.enabled&&typeof s.value.format=="string"?R():p(i.value):"",X=()=>{!e.format||typeof e.format=="string"||s.value.enabled&&typeof s.value.format=="string"?c.value=z():c.value=e.format(i.value)},J=L=>{if(e.utc){const le=new Date(L);return e.utc==="preserve"?new Date(le.getTime()+le.getTimezoneOffset()*6e4):le}return e.modelType?eB.includes(e.modelType)?f(new Date(L)):e.modelType==="format"&&(typeof e.format=="string"||!e.format)?f(im(L,l(),new Date,{locale:d.value})):f(im(L,e.modelType,new Date,{locale:d.value})):f(new Date(L))},H=L=>L?e.utc?uB(L,e.utc==="preserve",e.enableSeconds):e.modelType?e.modelType==="timestamp"?+g(L):e.modelType==="iso"?g(L).toISOString():e.modelType==="format"&&(typeof e.format=="string"||!e.format)?p(g(L)):p(g(L),e.modelType,!0):g(L):"",ce=(L,le=!1,de=!1)=>{if(de)return L;if(t("update:model-value",L),o.value.emitTimezone&&le){const xe=Array.isArray(L)?L.map(W=>xi(Tn(W),o.value.emitTimezone)):xi(Tn(L),o.value.emitTimezone);t("update:model-timezone-value",xe)}},ie=L=>Array.isArray(i.value)?a.value.enabled?i.value.map(le=>L(le)):[L(i.value[0]),i.value[1]?L(i.value[1]):La(r.value.partialRange)]:L(Tn(i.value)),te=()=>{if(Array.isArray(i.value)){const L=nr(i.value[0],e.weekStart),le=i.value[1]?nr(i.value[1],e.weekStart):[];return[L.map(de=>ke(de)),le.map(de=>ke(de))]}return nr(i.value,e.weekStart).map(L=>ke(L))},D=(L,le)=>ce(Tn(ie(L)),!1,le),ee=L=>{const le=te();return L?le:t("update:model-value",te())},ue=(L=!1)=>(L||X(),e.monthPicker?D(v,L):e.timePicker?D(m,L):e.yearPicker?D(Ze,L):e.weekPicker?ee(L):ce(Y(L),!0,L));return{inputValue:c,internalModelValue:i,checkBeforeEmit:()=>i.value?r.value.enabled?r.value.partialRange?i.value.length>=1:i.value.length===2:!!i.value:!1,parseExternalModelValue:N,formatInputValue:X,emitModelValue:ue}},$B=(t,e)=>{const{defaultedFilters:n,propDates:i}=Kt(t),{validateMonthYearInRange:s}=bo(t),r=(u,d)=>{let f=u;return n.value.months.includes(at(f))?(f=d?ds(u,1):Al(u,1),r(f,d)):f},o=(u,d)=>{let f=u;return n.value.years.includes(Ze(f))?(f=d?A_(u,1):rS(u,1),o(f,d)):f},a=(u,d=!1)=>{const f=Dt(ke(),{month:t.month,year:t.year});let g=u?ds(f,1):Al(f,1);t.disableYearSelect&&(g=As(g,t.year));let p=at(g),m=Ze(g);n.value.months.includes(p)&&(g=r(g,u),p=at(g),m=Ze(g)),n.value.years.includes(m)&&(g=o(g,u),m=Ze(g)),s(p,m,u,t.preventMinMaxNavigation)&&l(p,m,d)},l=(u,d,f)=>{e("update-month-year",{month:u,year:d,fromNav:f})},c=ve(()=>u=>pS(Dt(ke(),{month:t.month,year:t.year}),i.value.maxDate,i.value.minDate,t.preventMinMaxNavigation,u));return{handleMonthYearChange:a,isDisabled:c,updateMonthYear:l}},Cf={multiCalendars:{type:[Boolean,Number,String,Object],default:void 0},modelValue:{type:[String,Date,Array,Object,Number],default:null},modelType:{type:String,default:null},position:{type:String,default:"center"},dark:{type:Boolean,default:!1},format:{type:[String,Function],default:()=>null},autoPosition:{type:Boolean,default:!0},altPosition:{type:Function,default:null},transitions:{type:[Boolean,Object],default:!0},formatLocale:{type:Object,default:null},utc:{type:[Boolean,String],default:!1},ariaLabels:{type:Object,default:()=>({})},offset:{type:[Number,String],default:10},hideNavigation:{type:Array,default:()=>[]},timezone:{type:[String,Object],default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},disableYearSelect:{type:Boolean,default:!1},dayClass:{type:Function,default:null},yearRange:{type:Array,default:()=>[1900,2100]},enableTimePicker:{type:Boolean,default:!0},autoApply:{type:Boolean,default:!1},disabledDates:{type:[Array,Function],default:()=>[]},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},hideOffsetDates:{type:Boolean,default:!1},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:()=>[]},allowedDates:{type:Array,default:null},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:()=>[]},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},presetDates:{type:Array,default:()=>[]},flow:{type:Array,default:()=>[]},partialFlow:{type:Boolean,default:!1},preventMinMaxNavigation:{type:Boolean,default:!1},reverseYears:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},arrowNavigation:{type:Boolean,default:!1},highlight:{type:[Function,Object],default:null},teleport:{type:[Boolean,String,Object],default:null},teleportCenter:{type:Boolean,default:!1},locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:[String,Function,Object],default:null},monthChangeOnScroll:{type:[Boolean,String],default:!0},dayNames:{type:[Function,Array],default:null},monthPicker:{type:Boolean,default:!1},customProps:{type:Object,default:null},yearPicker:{type:Boolean,default:!1},modelAuto:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:()=>""},multiDates:{type:[Object,Boolean],default:!1},ignoreTimeValidation:{type:Boolean,default:!1},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},name:{type:String,default:null},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},state:{type:Boolean,default:null},required:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},timePicker:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},range:{type:[Boolean,Object],default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:[Boolean,Object],default:!1},textInput:{type:[Boolean,Object],default:!1},sixWeeks:{type:[Boolean,String],default:!1},actionRow:{type:Object,default:()=>({})},focusStartDate:{type:Boolean,default:!1},disabledTimes:{type:[Function,Array],default:void 0},timePickerInline:{type:Boolean,default:!1},calendar:{type:Function,default:null},config:{type:Object,default:void 0},quarterPicker:{type:Boolean,default:!1},yearFirst:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},onInternalModelChange:{type:[Function,Object],default:null},enableMinutes:{type:Boolean,default:!0},ui:{type:Object,default:()=>({})}},_s={...Cf,shadow:{type:Boolean,default:!1},flowStep:{type:Number,default:0},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},menuWrapRef:{type:Object,default:null},getInputRect:{type:Function,default:()=>({})},isTextInputDate:{type:Boolean,default:!1}},LB=["title"],OB=["disabled"],NB=fn({compatConfig:{MODE:3},__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},calendarWidth:{type:Number,default:0},..._s},emits:["close-picker","select-date","select-now","invalid-select"],setup(t,{emit:e}){const n=e,i=t,{defaultedActionRow:s,defaultedPreviewFormat:r,defaultedMultiCalendars:o,defaultedTextInput:a,defaultedInline:l,defaultedRange:c,defaultedMultiDates:u}=Kt(i),{isTimeValid:d,isMonthValid:f}=bo(i),{buildMatrix:g}=yo(),p=me(null),m=me(null),v=me(!1),y=me({}),x=me(null),E=me(null);Vt(()=>{i.arrowNavigation&&g([bn(p),bn(m)],"actionRow"),w(),window.addEventListener("resize",w)}),_o(()=>{window.removeEventListener("resize",w)});const w=()=>{v.value=!1,setTimeout(()=>{var N,B;const R=(N=x.value)==null?void 0:N.getBoundingClientRect(),z=(B=E.value)==null?void 0:B.getBoundingClientRect();R&&z&&(y.value.maxWidth=`${z.width-R.width-20}px`),v.value=!0},0)},b=ve(()=>c.value.enabled&&!c.value.partialRange&&i.internalModelValue?i.internalModelValue.length===2:!0),C=ve(()=>!d.value(i.internalModelValue)||!f.value(i.internalModelValue)||!b.value),k=()=>{const N=r.value;return i.timePicker||i.monthPicker,N(Tn(i.internalModelValue))},T=()=>{const N=i.internalModelValue;return o.value.count>0?`${A(N[0])} - ${A(N[1])}`:[A(N[0]),A(N[1])]},A=N=>mS(N,r.value,i.formatLocale,a.value.rangeSeparator,i.modelAuto,r.value),I=ve(()=>!i.internalModelValue||!i.menuMount?"":typeof r.value=="string"?Array.isArray(i.internalModelValue)?i.internalModelValue.length===2&&i.internalModelValue[1]?T():u.value.enabled?i.internalModelValue.map(N=>`${A(N)}`):i.modelAuto?`${A(i.internalModelValue[0])}`:`${A(i.internalModelValue[0])} -`:A(i.internalModelValue):k()),V=()=>u.value.enabled?"; ":" - ",Y=ve(()=>Array.isArray(I.value)?I.value.join(V()):I.value),ne=()=>{d.value(i.internalModelValue)&&f.value(i.internalModelValue)&&b.value?n("select-date"):n("invalid-select")};return(N,B)=>(P(),F("div",{ref_key:"actionRowRef",ref:E,class:"dp__action_row"},[N.$slots["action-row"]?Be(N.$slots,"action-row",In(xn({key:0},{internalModelValue:N.internalModelValue,disabled:C.value,selectDate:()=>N.$emit("select-date"),closePicker:()=>N.$emit("close-picker")}))):(P(),F(Ie,{key:1},[Z(s).showPreview?(P(),F("div",{key:0,class:"dp__selection_preview",title:Y.value,style:Mn(y.value)},[N.$slots["action-preview"]&&v.value?Be(N.$slots,"action-preview",{key:0,value:N.internalModelValue}):re("",!0),!N.$slots["action-preview"]&&v.value?(P(),F(Ie,{key:1},[Fe(pe(Y.value),1)],64)):re("",!0)],12,LB)):re("",!0),h("div",{ref_key:"actionBtnContainer",ref:x,class:"dp__action_buttons","data-dp-element":"action-row"},[N.$slots["action-buttons"]?Be(N.$slots,"action-buttons",{key:0,value:N.internalModelValue}):re("",!0),N.$slots["action-buttons"]?re("",!0):(P(),F(Ie,{key:1},[!Z(l).enabled&&Z(s).showCancel?(P(),F("button",{key:0,ref_key:"cancelButtonRef",ref:p,type:"button",class:"dp__action_button dp__action_cancel",onClick:B[0]||(B[0]=R=>N.$emit("close-picker")),onKeydown:B[1]||(B[1]=R=>Z(si)(R,()=>N.$emit("close-picker")))},pe(N.cancelText),545)):re("",!0),Z(s).showNow?(P(),F("button",{key:1,type:"button",class:"dp__action_button dp__action_cancel",onClick:B[2]||(B[2]=R=>N.$emit("select-now")),onKeydown:B[3]||(B[3]=R=>Z(si)(R,()=>N.$emit("select-now")))},pe(N.nowButtonLabel),33)):re("",!0),Z(s).showSelect?(P(),F("button",{key:2,ref_key:"selectButtonRef",ref:m,type:"button",class:"dp__action_button dp__action_select",disabled:C.value,"data-test":"select-button",onKeydown:B[4]||(B[4]=R=>Z(si)(R,()=>ne())),onClick:ne},pe(N.selectText),41,OB)):re("",!0)],64))],512)],64))],512))}}),FB=["role","aria-label","tabindex"],BB={class:"dp__selection_grid_header"},VB=["aria-selected","aria-disabled","data-test","onClick","onKeydown","onMouseover"],zB=["aria-label"],Wu=fn({__name:"SelectionOverlay",props:{items:{},type:{},isLast:{type:Boolean},arrowNavigation:{type:Boolean},skipButtonRef:{type:Boolean},headerRefs:{},hideNavigation:{},escClose:{type:Boolean},useRelative:{type:Boolean},height:{},textInput:{type:[Boolean,Object]},config:{},noOverlayFocus:{type:Boolean},focusValue:{},menuWrapRef:{},ariaLabels:{},overlayLabel:{}},emits:["selected","toggle","reset-flow","hover-value"],setup(t,{expose:e,emit:n}){const{setSelectionGrid:i,buildMultiLevelMatrix:s,setMonthPicker:r}=yo(),o=n,a=t,{defaultedAriaLabels:l,defaultedTextInput:c,defaultedConfig:u}=Kt(a),{hideNavigationButtons:d}=Tf(),f=me(!1),g=me(null),p=me(null),m=me([]),v=me(),y=me(null),x=me(0),E=me(null);wE(()=>{g.value=null}),Vt(()=>{Rn().then(()=>V()),a.noOverlayFocus||b(),w(!0)}),_o(()=>w(!1));const w=ie=>{var te;a.arrowNavigation&&((te=a.headerRefs)!=null&&te.length?r(ie):i(ie))},b=()=>{var ie;const te=bn(p);te&&(c.value.enabled||(g.value?(ie=g.value)==null||ie.focus({preventScroll:!0}):te.focus({preventScroll:!0})),f.value=te.clientHeight({dp__overlay:!0,"dp--overlay-absolute":!a.useRelative,"dp--overlay-relative":a.useRelative})),k=ve(()=>a.useRelative?{height:`${a.height}px`,width:"var(--dp-menu-min-width)"}:void 0),T=ve(()=>({dp__overlay_col:!0})),A=ve(()=>({dp__btn:!0,dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:f.value,dp__button_bottom:a.isLast})),I=ve(()=>{var ie,te;return{dp__overlay_container:!0,dp__container_flex:((ie=a.items)==null?void 0:ie.length)<=6,dp__container_block:((te=a.items)==null?void 0:te.length)>6}});Zt(()=>a.items,()=>V(!1),{deep:!0});const V=(ie=!0)=>{Rn().then(()=>{const te=bn(g),D=bn(p),ee=bn(y),ue=bn(E),L=ee?ee.getBoundingClientRect().height:0;D&&(D.getBoundingClientRect().height?x.value=D.getBoundingClientRect().height-L:x.value=u.value.modeHeight-L),te&&ue&&ie&&(ue.scrollTop=te.offsetTop-ue.offsetTop-(x.value/2-te.getBoundingClientRect().height)-L)})},Y=ie=>{ie.disabled||o("selected",ie.value)},ne=()=>{o("toggle"),o("reset-flow")},N=()=>{a.escClose&&ne()},B=(ie,te,D,ee)=>{ie&&((te.active||te.value===a.focusValue)&&(g.value=ie),a.arrowNavigation&&(Array.isArray(m.value[D])?m.value[D][ee]=ie:m.value[D]=[ie],R()))},R=()=>{var ie,te;const D=(ie=a.headerRefs)!=null&&ie.length?[a.headerRefs].concat(m.value):m.value.concat([a.skipButtonRef?[]:[y.value]]);s(Tn(D),(te=a.headerRefs)!=null&&te.length?"monthPicker":"selectionGrid")},z=ie=>{a.arrowNavigation||eo(ie,u.value,!0)},X=ie=>{v.value=ie,o("hover-value",ie)},J=()=>{if(ne(),!a.isLast){const ie=rm(a.menuWrapRef??null,"action-row");if(ie){const te=cS(ie);te?.focus()}}},H=ie=>{switch(ie.key){case Nt.esc:return N();case Nt.arrowLeft:return z(ie);case Nt.arrowRight:return z(ie);case Nt.arrowUp:return z(ie);case Nt.arrowDown:return z(ie);default:return}},ce=ie=>{if(ie.key===Nt.enter)return ne();if(ie.key===Nt.tab)return J()};return e({focusGrid:b}),(ie,te)=>{var D;return P(),F("div",{ref_key:"gridWrapRef",ref:p,class:Se(C.value),style:Mn(k.value),role:ie.useRelative?void 0:"dialog","aria-label":ie.overlayLabel,tabindex:ie.useRelative?void 0:"0",onKeydown:H,onClick:te[0]||(te[0]=ru(()=>{},["prevent"]))},[h("div",{ref_key:"containerRef",ref:E,class:Se(I.value),style:Mn({"--dp-overlay-height":`${x.value}px`}),role:"grid"},[h("div",BB,[Be(ie.$slots,"header")]),ie.$slots.overlay?Be(ie.$slots,"overlay",{key:0}):(P(!0),F(Ie,{key:1},Ge(ie.items,(ee,ue)=>(P(),F("div",{key:ue,class:Se(["dp__overlay_row",{dp__flex_row:ie.items.length>=3}]),role:"row"},[(P(!0),F(Ie,null,Ge(ee,(L,le)=>(P(),F("div",{key:L.value,ref_for:!0,ref:de=>B(de,L,ue,le),role:"gridcell",class:Se(T.value),"aria-selected":L.active||void 0,"aria-disabled":L.disabled||void 0,tabindex:"0","data-test":L.text,onClick:ru(de=>Y(L),["prevent"]),onKeydown:de=>Z(si)(de,()=>Y(L),!0),onMouseover:de=>X(L.value)},[h("div",{class:Se(L.className)},[ie.$slots.item?Be(ie.$slots,"item",{key:0,item:L}):re("",!0),ie.$slots.item?re("",!0):(P(),F(Ie,{key:1},[Fe(pe(L.text),1)],64))],2)],42,VB))),128))],2))),128))],6),ie.$slots["button-icon"]?Re((P(),F("button",{key:0,ref_key:"toggleButton",ref:y,type:"button","aria-label":(D=Z(l))==null?void 0:D.toggleOverlay,class:Se(A.value),tabindex:"0",onClick:ne,onKeydown:ce},[Be(ie.$slots,"button-icon")],42,zB)),[[ah,!Z(d)(ie.hideNavigation,ie.type)]]):re("",!0)],46,FB)}}}),Sf=fn({__name:"InstanceWrap",props:{multiCalendars:{},stretch:{type:Boolean},collapse:{type:Boolean}},setup(t){const e=t,n=ve(()=>e.multiCalendars>0?[...Array(e.multiCalendars).keys()]:[0]),i=ve(()=>({dp__instance_calendar:e.multiCalendars>0}));return(s,r)=>(P(),F("div",{class:Se({dp__menu_inner:!s.stretch,"dp--menu--inner-stretched":s.stretch,dp__flex_display:s.multiCalendars>0,"dp--flex-display-collapsed":s.collapse})},[(P(!0),F(Ie,null,Ge(n.value,(o,a)=>(P(),F("div",{key:o,class:Se(i.value)},[Be(s.$slots,"default",{instance:o,index:a})],2))),128))],2))}}),WB=["data-dp-element","aria-label","aria-disabled"],jc=fn({compatConfig:{MODE:3},__name:"ArrowBtn",props:{ariaLabel:{},elName:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(t,{emit:e}){const n=e,i=me(null);return Vt(()=>n("set-ref",i)),(s,r)=>(P(),F("button",{ref_key:"elRef",ref:i,type:"button","data-dp-element":s.elName,class:"dp__btn dp--arrow-btn-nav",tabindex:"0","aria-label":s.ariaLabel,"aria-disabled":s.disabled||void 0,onClick:r[0]||(r[0]=o=>s.$emit("activate")),onKeydown:r[1]||(r[1]=o=>Z(si)(o,()=>s.$emit("activate"),!0))},[h("span",{class:Se(["dp__inner_nav",{dp__inner_nav_disabled:s.disabled}])},[Be(s.$slots,"default")],2)],40,WB))}}),YB=["aria-label","data-test"],bS=fn({__name:"YearModePicker",props:{..._s,showYearPicker:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},instance:{type:Number,default:0},year:{type:Number,default:0},isDisabled:{type:Function,default:()=>!1}},emits:["toggle-year-picker","year-select","handle-year"],setup(t,{emit:e}){const n=e,i=t,{showRightIcon:s,showLeftIcon:r}=Tf(),{defaultedConfig:o,defaultedMultiCalendars:a,defaultedAriaLabels:l,defaultedTransitions:c,defaultedUI:u}=Kt(i),{showTransition:d,transitionName:f}=Yu(c),g=me(!1),p=(y=!1,x)=>{g.value=!g.value,n("toggle-year-picker",{flow:y,show:x})},m=y=>{g.value=!1,n("year-select",y)},v=(y=!1)=>{n("handle-year",y)};return(y,x)=>{var E,w,b,C,k;return P(),F(Ie,null,[h("div",{class:Se(["dp--year-mode-picker",{"dp--hidden-el":g.value}])},[Z(r)(Z(a),t.instance)?(P(),Ee(jc,{key:0,ref:"mpPrevIconRef","aria-label":(E=Z(l))==null?void 0:E.prevYear,disabled:t.isDisabled(!1),class:Se((w=Z(u))==null?void 0:w.navBtnPrev),onActivate:x[0]||(x[0]=T=>v(!1))},{default:Me(()=>[y.$slots["arrow-left"]?Be(y.$slots,"arrow-left",{key:0}):re("",!0),y.$slots["arrow-left"]?re("",!0):(P(),Ee(Z($_),{key:1}))]),_:3},8,["aria-label","disabled","class"])):re("",!0),h("button",{ref:"mpYearButtonRef",class:"dp__btn dp--year-select",type:"button","aria-label":`${t.year}-${(b=Z(l))==null?void 0:b.openYearsOverlay}`,"data-test":`year-mode-btn-${t.instance}`,onClick:x[1]||(x[1]=()=>p(!1)),onKeydown:x[2]||(x[2]=dC(()=>p(!1),["enter"]))},[y.$slots.year?Be(y.$slots,"year",{key:0,year:t.year}):re("",!0),y.$slots.year?re("",!0):(P(),F(Ie,{key:1},[Fe(pe(t.year),1)],64))],40,YB),Z(s)(Z(a),t.instance)?(P(),Ee(jc,{key:1,ref:"mpNextIconRef","aria-label":(C=Z(l))==null?void 0:C.nextYear,disabled:t.isDisabled(!0),class:Se((k=Z(u))==null?void 0:k.navBtnNext),onActivate:x[3]||(x[3]=T=>v(!0))},{default:Me(()=>[y.$slots["arrow-right"]?Be(y.$slots,"arrow-right",{key:0}):re("",!0),y.$slots["arrow-right"]?re("",!0):(P(),Ee(Z(L_),{key:1}))]),_:3},8,["aria-label","disabled","class"])):re("",!0)],2),$(xt,{name:Z(f)(t.showYearPicker),css:Z(d)},{default:Me(()=>{var T,A;return[t.showYearPicker?(P(),Ee(Wu,{key:0,items:t.items,"text-input":y.textInput,"esc-close":y.escClose,config:y.config,"is-last":y.autoApply&&!Z(o).keepActionRow,"hide-navigation":y.hideNavigation,"aria-labels":y.ariaLabels,"overlay-label":(A=(T=Z(l))==null?void 0:T.yearPicker)==null?void 0:A.call(T,!0),type:"year",onToggle:p,onSelected:x[4]||(x[4]=I=>m(I))},Xn({"button-icon":Me(()=>[y.$slots["calendar-icon"]?Be(y.$slots,"calendar-icon",{key:0}):re("",!0),y.$slots["calendar-icon"]?re("",!0):(P(),Ee(Z(Gl),{key:1}))]),_:2},[y.$slots["year-overlay-value"]?{name:"item",fn:Me(({item:I})=>[Be(y.$slots,"year-overlay-value",{text:I.text,value:I.value})]),key:"0"}:void 0]),1032,["items","text-input","esc-close","config","is-last","hide-navigation","aria-labels","overlay-label"])):re("",!0)]}),_:3},8,["name","css"])],64)}}}),H_=(t,e,n)=>{if(e.value&&Array.isArray(e.value))if(e.value.some(i=>ct(t,i))){const i=e.value.filter(s=>!ct(s,t));e.value=i.length?i:null}else(n&&+n>e.value.length||!n)&&e.value.push(t);else e.value=[t]},j_=(t,e,n)=>{let i=t.value?t.value.slice():[];return i.length===2&&i[1]!==null&&(i=[]),i.length?tn(e,i[0])?(i.unshift(e),n("range-start",i[0]),n("range-start",i[1])):(i[1]=e,n("range-end",e)):(i=[e],n("range-start",e)),i},kf=(t,e,n,i)=>{t&&(t[0]&&t[1]&&n&&e("auto-apply"),t[0]&&!t[1]&&i&&n&&e("auto-apply"))},wS=t=>{Array.isArray(t.value)&&t.value.length<=2&&t.range?t.modelValue.value=t.value.map(e=>xi(ke(e),t.timezone)):Array.isArray(t.value)||(t.modelValue.value=xi(ke(t.value),t.timezone))},xS=(t,e,n,i)=>Array.isArray(e.value)&&(e.value.length===2||e.value.length===1&&i.value.partialRange)?i.value.fixedStart&&(ln(t,e.value[0])||ct(t,e.value[0]))?[e.value[0],t]:i.value.fixedEnd&&(tn(t,e.value[1])||ct(t,e.value[1]))?[t,e.value[1]]:(n("invalid-fixed-range",t),e.value):[],ES=({multiCalendars:t,range:e,highlight:n,propDates:i,calendars:s,modelValue:r,props:o,filters:a,year:l,month:c,emit:u})=>{const d=ve(()=>V_(o.yearRange,o.locale,o.reverseYears)),f=me([!1]),g=ve(()=>(I,V)=>{const Y=Dt(os(new Date),{month:c.value(I),year:l.value(I)}),ne=V?KC(Y):lu(Y);return pS(ne,i.value.maxDate,i.value.minDate,o.preventMinMaxNavigation,V)}),p=()=>Array.isArray(r.value)&&t.value.solo&&r.value[1],m=()=>{for(let I=0;I{if(!I)return m();const V=Dt(ke(),s.value[I]);return s.value[0].year=Ze(rS(V,t.value.count-1)),m()},y=(I,V)=>{const Y=nF(V,I);return e.value.showLastInRange&&Y>1?V:I},x=I=>o.focusStartDate||t.value.solo?I[0]:I[1]?y(I[0],I[1]):I[0],E=()=>{if(r.value){const I=Array.isArray(r.value)?x(r.value):r.value;s.value[0]={month:at(I),year:Ze(I)}}},w=()=>{E(),t.value.count&&m()};Zt(r,(I,V)=>{o.isTextInputDate&&JSON.stringify(I??{})!==JSON.stringify(V??{})&&w()}),Vt(()=>{w()});const b=(I,V)=>{s.value[V].year=I,u("update-month-year",{instance:V,year:I,month:s.value[V].month}),t.value.count&&!t.value.solo&&v(V)},C=ve(()=>I=>Pl(d.value,V=>{var Y;const ne=l.value(I)===V.value,N=uu(V.value,Ml(i.value.minDate),Ml(i.value.maxDate))||((Y=a.value.years)==null?void 0:Y.includes(l.value(I))),B=Y_(n.value,V.value);return{active:ne,disabled:N,highlighted:B}})),k=(I,V)=>{b(I,V),A(V)},T=(I,V=!1)=>{if(!g.value(I,V)){const Y=V?l.value(I)+1:l.value(I)-1;b(Y,I)}},A=(I,V=!1,Y)=>{V||u("reset-flow"),Y!==void 0?f.value[I]=Y:f.value[I]=!f.value[I],f.value[I]?u("overlay-toggle",{open:!0,overlay:jn.year}):(u("overlay-closed"),u("overlay-toggle",{open:!1,overlay:jn.year}))};return{isDisabled:g,groupedYears:C,showYearPicker:f,selectYear:b,toggleYearPicker:A,handleYearSelect:k,handleYear:T}},HB=(t,e)=>{const{defaultedMultiCalendars:n,defaultedAriaLabels:i,defaultedTransitions:s,defaultedConfig:r,defaultedRange:o,defaultedHighlight:a,propDates:l,defaultedTz:c,defaultedFilters:u,defaultedMultiDates:d}=Kt(t),f=()=>{t.isTextInputDate&&w(Ze(ke(t.startDate)),0)},{modelValue:g,year:p,month:m,calendars:v}=Hu(t,e,f),y=ve(()=>aS(t.formatLocale,t.locale,t.monthNameFormat)),x=me(null),{checkMinMaxRange:E}=bo(t),{selectYear:w,groupedYears:b,showYearPicker:C,toggleYearPicker:k,handleYearSelect:T,handleYear:A,isDisabled:I}=ES({modelValue:g,multiCalendars:n,range:o,highlight:a,calendars:v,year:p,propDates:l,month:m,filters:u,props:t,emit:e});Vt(()=>{t.startDate&&(g.value&&t.focusStartDate||!g.value)&&w(Ze(ke(t.startDate)),0)});const V=D=>D?{month:at(D),year:Ze(D)}:{month:null,year:null},Y=()=>g.value?Array.isArray(g.value)?g.value.map(D=>V(D)):V(g.value):V(),ne=(D,ee)=>{const ue=v.value[D],L=Y();return Array.isArray(L)?L.some(le=>le.year===ue?.year&&le.month===ee):ue?.year===L.year&&ee===L.month},N=(D,ee,ue)=>{var L,le;const de=Y();return Array.isArray(de)?p.value(ee)===((L=de[ue])==null?void 0:L.year)&&D===((le=de[ue])==null?void 0:le.month):!1},B=(D,ee)=>{if(o.value.enabled){const ue=Y();if(Array.isArray(g.value)&&Array.isArray(ue)){const L=N(D,ee,0)||N(D,ee,1),le=ar(os(ke()),D,p.value(ee));return Ef(g.value,x.value,le)&&!L}return!1}return!1},R=ve(()=>D=>Pl(y.value,ee=>{var ue;const L=ne(D,ee.value),le=uu(ee.value,dS(p.value(D),l.value.minDate),hS(p.value(D),l.value.maxDate))||pB(l.value.disabledDates,p.value(D)).includes(ee.value)||((ue=u.value.months)==null?void 0:ue.includes(ee.value)),de=B(ee.value,D),xe=_S(a.value,ee.value,p.value(D));return{active:L,disabled:le,isBetween:de,highlighted:xe}})),z=(D,ee)=>ar(os(ke()),D,p.value(ee)),X=(D,ee)=>{const ue=g.value?g.value:os(new Date);g.value=ar(ue,D,p.value(ee)),e("auto-apply"),e("update-flow-step")},J=(D,ee)=>{const ue=z(D,ee);o.value.fixedEnd||o.value.fixedStart?g.value=xS(ue,g,e,o):g.value?E(ue,g.value)&&(g.value=j_(g,z(D,ee),e)):g.value=[z(D,ee)],Rn().then(()=>{kf(g.value,e,t.autoApply,t.modelAuto)})},H=(D,ee)=>{H_(z(D,ee),g,d.value.limit),e("auto-apply",!0)},ce=(D,ee)=>(v.value[ee].month=D,te(ee,v.value[ee].year,D),d.value.enabled?H(D,ee):o.value.enabled?J(D,ee):X(D,ee)),ie=(D,ee)=>{w(D,ee),te(ee,D,null)},te=(D,ee,ue)=>{let L=ue;if(!L&&L!==0){const le=Y();L=Array.isArray(le)?le[D].month:le.month}e("update-month-year",{instance:D,year:ee,month:L})};return{groupedMonths:R,groupedYears:b,year:p,isDisabled:I,defaultedMultiCalendars:n,defaultedAriaLabels:i,defaultedTransitions:s,defaultedConfig:r,showYearPicker:C,modelValue:g,presetDate:(D,ee)=>{wS({value:D,modelValue:g,range:o.value.enabled,timezone:ee?void 0:c.value.timezone}),e("auto-apply")},setHoverDate:(D,ee)=>{x.value=z(D,ee)},selectMonth:ce,selectYear:ie,toggleYearPicker:k,handleYearSelect:T,handleYear:A,getModelMonthYear:Y}},jB=fn({compatConfig:{MODE:3},__name:"MonthPicker",props:{..._s},emits:["update:internal-model-value","overlay-closed","reset-flow","range-start","range-end","auto-apply","update-month-year","update-flow-step","mount","invalid-fixed-range","overlay-toggle"],setup(t,{expose:e,emit:n}){const i=n,s=va(),r=Pi(s,"yearMode"),o=t;Vt(()=>{o.shadow||i("mount",null)});const{groupedMonths:a,groupedYears:l,year:c,isDisabled:u,defaultedMultiCalendars:d,defaultedConfig:f,showYearPicker:g,modelValue:p,presetDate:m,setHoverDate:v,selectMonth:y,selectYear:x,toggleYearPicker:E,handleYearSelect:w,handleYear:b,getModelMonthYear:C}=HB(o,i);return e({getSidebarProps:()=>({modelValue:p,year:c,getModelMonthYear:C,selectMonth:y,selectYear:x,handleYear:b}),presetDate:m,toggleYearPicker:k=>E(0,k)}),(k,T)=>(P(),Ee(Sf,{"multi-calendars":Z(d).count,collapse:k.collapse,stretch:""},{default:Me(({instance:A})=>[k.$slots["top-extra"]?Be(k.$slots,"top-extra",{key:0,value:k.internalModelValue}):re("",!0),k.$slots["month-year"]?Be(k.$slots,"month-year",In(xn({key:1},{year:Z(c),months:Z(a)(A),years:Z(l)(A),selectMonth:Z(y),selectYear:Z(x),instance:A}))):(P(),Ee(Wu,{key:2,items:Z(a)(A),"arrow-navigation":k.arrowNavigation,"is-last":k.autoApply&&!Z(f).keepActionRow,"esc-close":k.escClose,height:Z(f).modeHeight,config:k.config,"no-overlay-focus":!!(k.noOverlayFocus||k.textInput),"use-relative":"",type:"month",onSelected:I=>Z(y)(I,A),onHoverValue:I=>Z(v)(I,A)},Xn({header:Me(()=>[$(bS,xn(k.$props,{items:Z(l)(A),instance:A,"show-year-picker":Z(g)[A],year:Z(c)(A),"is-disabled":I=>Z(u)(A,I),onHandleYear:I=>Z(b)(A,I),onYearSelect:I=>Z(w)(I,A),onToggleYearPicker:I=>Z(E)(A,I?.flow,I?.show)}),Xn({_:2},[Ge(Z(r),(I,V)=>({name:I,fn:Me(Y=>[Be(k.$slots,I,In(ii(Y)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),_:2},[k.$slots["month-overlay-value"]?{name:"item",fn:Me(({item:I})=>[Be(k.$slots,"month-overlay-value",{text:I.text,value:I.value})]),key:"0"}:void 0]),1032,["items","arrow-navigation","is-last","esc-close","height","config","no-overlay-focus","onSelected","onHoverValue"]))]),_:3},8,["multi-calendars","collapse"]))}}),KB=(t,e)=>{const n=()=>{t.isTextInputDate&&(u.value=Ze(ke(t.startDate)))},{modelValue:i}=Hu(t,e,n),s=me(null),{defaultedHighlight:r,defaultedMultiDates:o,defaultedFilters:a,defaultedRange:l,propDates:c}=Kt(t),u=me();Vt(()=>{t.startDate&&(i.value&&t.focusStartDate||!i.value)&&(u.value=Ze(ke(t.startDate)))});const d=m=>Array.isArray(i.value)?i.value.some(v=>Ze(v)===m):i.value?Ze(i.value)===m:!1,f=m=>l.value.enabled&&Array.isArray(i.value)?Ef(i.value,s.value,p(m)):!1,g=ve(()=>Pl(V_(t.yearRange,t.locale,t.reverseYears),m=>{const v=d(m.value),y=uu(m.value,Ml(c.value.minDate),Ml(c.value.maxDate))||a.value.years.includes(m.value),x=f(m.value)&&!v,E=Y_(r.value,m.value);return{active:v,disabled:y,isBetween:x,highlighted:E}})),p=m=>As(os(lu(new Date)),m);return{groupedYears:g,modelValue:i,focusYear:u,setHoverValue:m=>{s.value=As(os(new Date),m)},selectYear:m=>{var v;if(e("update-month-year",{instance:0,year:m}),o.value.enabled)return i.value?Array.isArray(i.value)&&(((v=i.value)==null?void 0:v.map(y=>Ze(y))).includes(m)?i.value=i.value.filter(y=>Ze(y)!==m):i.value.push(As(ai(ke()),m))):i.value=[As(ai(lu(ke())),m)],e("auto-apply",!0);l.value.enabled?(i.value=j_(i,p(m),e),Rn().then(()=>{kf(i.value,e,t.autoApply,t.modelAuto)})):(i.value=p(m),e("auto-apply"))}}},UB=fn({compatConfig:{MODE:3},__name:"YearPicker",props:{..._s},emits:["update:internal-model-value","reset-flow","range-start","range-end","auto-apply","update-month-year"],setup(t,{expose:e,emit:n}){const i=n,s=t,{groupedYears:r,modelValue:o,focusYear:a,selectYear:l,setHoverValue:c}=KB(s,i),{defaultedConfig:u}=Kt(s);return e({getSidebarProps:()=>({modelValue:o,selectYear:l})}),(d,f)=>(P(),F("div",null,[d.$slots["top-extra"]?Be(d.$slots,"top-extra",{key:0,value:d.internalModelValue}):re("",!0),d.$slots["month-year"]?Be(d.$slots,"month-year",In(xn({key:1},{years:Z(r),selectYear:Z(l)}))):(P(),Ee(Wu,{key:2,items:Z(r),"is-last":d.autoApply&&!Z(u).keepActionRow,height:Z(u).modeHeight,config:d.config,"no-overlay-focus":!!(d.noOverlayFocus||d.textInput),"focus-value":Z(a),type:"year","use-relative":"",onSelected:Z(l),onHoverValue:Z(c)},Xn({_:2},[d.$slots["year-overlay-value"]?{name:"item",fn:Me(({item:g})=>[Be(d.$slots,"year-overlay-value",{text:g.text,value:g.value})]),key:"0"}:void 0]),1032,["items","is-last","height","config","no-overlay-focus","focus-value","onSelected","onHoverValue"]))]))}}),GB={key:0,class:"dp__time_input"},XB=["data-test","aria-label","onKeydown","onClick","onMousedown"],qB=["aria-label","disabled","data-test","onKeydown","onClick"],ZB=["data-test","aria-label","onKeydown","onClick","onMousedown"],JB={key:0},QB=["aria-label"],e4=fn({compatConfig:{MODE:3},__name:"TimeInput",props:{hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},closeTimePickerBtn:{type:Object,default:null},order:{type:Number,default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},..._s},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","overlay-opened","am-pm-change"],setup(t,{expose:e,emit:n}){const i=n,s=t,{setTimePickerElements:r,setTimePickerBackRef:o}=yo(),{defaultedAriaLabels:a,defaultedTransitions:l,defaultedFilters:c,defaultedConfig:u,defaultedRange:d}=Kt(s),{transitionName:f,showTransition:g}=Yu(l),p=Ei({hours:!1,minutes:!1,seconds:!1}),m=me("AM"),v=me(null),y=me([]),x=me(),E=me(!1);Vt(()=>{i("mounted")});const w=S=>Dt(new Date,{hours:S.hours,minutes:S.minutes,seconds:s.enableSeconds?S.seconds:0,milliseconds:0}),b=ve(()=>S=>z(S,s[S])||k(S,s[S])),C=ve(()=>({hours:s.hours,minutes:s.minutes,seconds:s.seconds})),k=(S,O)=>d.value.enabled&&!d.value.disableTimeRangeValidation?!s.validateTime(S,O):!1,T=(S,O)=>{if(d.value.enabled&&!d.value.disableTimeRangeValidation){const K=O?+s[`${S}Increment`]:-+s[`${S}Increment`],U=s[S]+K;return!s.validateTime(S,U)}return!1},A=ve(()=>S=>!ie(+s[S]+ +s[`${S}Increment`],S)||T(S,!0)),I=ve(()=>S=>!ie(+s[S]-+s[`${S}Increment`],S)||T(S,!1)),V=(S,O)=>BC(Dt(ke(),S),O),Y=(S,O)=>Z5(Dt(ke(),S),O),ne=ve(()=>({dp__time_col:!0,dp__time_col_block:!s.timePickerInline,dp__time_col_reg_block:!s.enableSeconds&&s.is24&&!s.timePickerInline,dp__time_col_reg_inline:!s.enableSeconds&&s.is24&&s.timePickerInline,dp__time_col_reg_with_button:!s.enableSeconds&&!s.is24,dp__time_col_sec:s.enableSeconds&&s.is24,dp__time_col_sec_with_button:s.enableSeconds&&!s.is24})),N=ve(()=>{const S=[{type:"hours"}];return s.enableMinutes&&S.push({type:"",separator:!0},{type:"minutes"}),s.enableSeconds&&S.push({type:"",separator:!0},{type:"seconds"}),S}),B=ve(()=>N.value.filter(S=>!S.separator)),R=ve(()=>S=>{if(S==="hours"){const O=le(+s.hours);return{text:O<10?`0${O}`:`${O}`,value:O}}return{text:s[S]<10?`0${s[S]}`:`${s[S]}`,value:s[S]}}),z=(S,O)=>{var K;if(!s.disabledTimesConfig)return!1;const U=s.disabledTimesConfig(s.order,S==="hours"?O:void 0);return U[S]?!!((K=U[S])!=null&&K.includes(O)):!0},X=(S,O)=>O!=="hours"||m.value==="AM"?S:S+12,J=S=>{const O=s.is24?24:12,K=S==="hours"?O:60,U=+s[`${S}GridIncrement`],oe=S==="hours"&&!s.is24?U:0,j=[];for(let se=oe;se({active:!1,disabled:c.value.times[S].includes(se.value)||!ie(se.value,S)||z(S,se.value)||k(S,se.value)}))},H=S=>S>=0?S:59,ce=S=>S>=0?S:23,ie=(S,O)=>{const K=s.minTime?w(Og(s.minTime)):null,U=s.maxTime?w(Og(s.maxTime)):null,oe=w(Og(C.value,O,O==="minutes"||O==="seconds"?H(S):ce(S)));return K&&U?(cu(oe,U)||tl(oe,U))&&(Tl(oe,K)||tl(oe,K)):K?Tl(oe,K)||tl(oe,K):U?cu(oe,U)||tl(oe,U):!0},te=S=>s[`no${S[0].toUpperCase()+S.slice(1)}Overlay`],D=S=>{te(S)||(p[S]=!p[S],p[S]?(E.value=!0,i("overlay-opened",S)):(E.value=!1,i("overlay-closed",S)))},ee=S=>S==="hours"?vr:S==="minutes"?ao:kl,ue=()=>{x.value&&clearTimeout(x.value)},L=(S,O=!0,K)=>{const U=O?V:Y,oe=O?+s[`${S}Increment`]:-+s[`${S}Increment`];ie(+s[S]+oe,S)&&i(`update:${S}`,ee(S)(U({[S]:+s[S]},{[S]:+s[`${S}Increment`]}))),!(K!=null&&K.keyboard)&&u.value.timeArrowHoldThreshold&&(x.value=setTimeout(()=>{L(S,O)},u.value.timeArrowHoldThreshold))},le=S=>s.is24?S:(S>=12?m.value="PM":m.value="AM",iB(S)),de=()=>{m.value==="PM"?(m.value="AM",i("update:hours",s.hours-12)):(m.value="PM",i("update:hours",s.hours+12)),i("am-pm-change",m.value)},xe=S=>{p[S]=!0},W=(S,O,K)=>{if(S&&s.arrowNavigation){Array.isArray(y.value[O])?y.value[O][K]=S:y.value[O]=[S];const U=y.value.reduce((oe,j)=>j.map((se,Q)=>[...oe[Q]||[],j[Q]]),[]);o(s.closeTimePickerBtn),v.value&&(U[1]=U[1].concat(v.value)),r(U,s.order)}},fe=(S,O)=>(D(S),i(`update:${S}`,O));return e({openChildCmp:xe}),(S,O)=>{var K;return S.disabled?re("",!0):(P(),F("div",GB,[(P(!0),F(Ie,null,Ge(N.value,(U,oe)=>{var j,se,Q;return P(),F("div",{key:oe,class:Se(ne.value)},[U.separator?(P(),F(Ie,{key:0},[E.value?re("",!0):(P(),F(Ie,{key:0},[Fe(":")],64))],64)):(P(),F(Ie,{key:1},[h("button",{ref_for:!0,ref:ge=>W(ge,oe,0),type:"button",class:Se({dp__btn:!0,dp__inc_dec_button:!S.timePickerInline,dp__inc_dec_button_inline:S.timePickerInline,dp__tp_inline_btn_top:S.timePickerInline,dp__inc_dec_button_disabled:A.value(U.type),"dp--hidden-el":E.value}),"data-test":`${U.type}-time-inc-btn-${s.order}`,"aria-label":(j=Z(a))==null?void 0:j.incrementValue(U.type),tabindex:"0",onKeydown:ge=>Z(si)(ge,()=>L(U.type,!0,{keyboard:!0}),!0),onClick:ge=>Z(u).timeArrowHoldThreshold?void 0:L(U.type,!0),onMousedown:ge=>Z(u).timeArrowHoldThreshold?L(U.type,!0):void 0,onMouseup:ue},[s.timePickerInline?(P(),F(Ie,{key:1},[S.$slots["tp-inline-arrow-up"]?Be(S.$slots,"tp-inline-arrow-up",{key:0}):(P(),F(Ie,{key:1},[O[2]||(O[2]=h("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),O[3]||(O[3]=h("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))],64))],64)):(P(),F(Ie,{key:0},[S.$slots["arrow-up"]?Be(S.$slots,"arrow-up",{key:0}):re("",!0),S.$slots["arrow-up"]?re("",!0):(P(),Ee(Z(N_),{key:1}))],64))],42,XB),h("button",{ref_for:!0,ref:ge=>W(ge,oe,1),type:"button","aria-label":`${R.value(U.type).text}-${(se=Z(a))==null?void 0:se.openTpOverlay(U.type)}`,class:Se({dp__time_display:!0,dp__time_display_block:!S.timePickerInline,dp__time_display_inline:S.timePickerInline,"dp--time-invalid":b.value(U.type),"dp--time-overlay-btn":!b.value(U.type),"dp--hidden-el":E.value}),disabled:te(U.type),tabindex:"0","data-test":`${U.type}-toggle-overlay-btn-${s.order}`,onKeydown:ge=>Z(si)(ge,()=>D(U.type),!0),onClick:ge=>D(U.type)},[S.$slots[U.type]?Be(S.$slots,U.type,{key:0,text:R.value(U.type).text,value:R.value(U.type).value}):re("",!0),S.$slots[U.type]?re("",!0):(P(),F(Ie,{key:1},[Fe(pe(R.value(U.type).text),1)],64))],42,qB),h("button",{ref_for:!0,ref:ge=>W(ge,oe,2),type:"button",class:Se({dp__btn:!0,dp__inc_dec_button:!S.timePickerInline,dp__inc_dec_button_inline:S.timePickerInline,dp__tp_inline_btn_bottom:S.timePickerInline,dp__inc_dec_button_disabled:I.value(U.type),"dp--hidden-el":E.value}),"data-test":`${U.type}-time-dec-btn-${s.order}`,"aria-label":(Q=Z(a))==null?void 0:Q.decrementValue(U.type),tabindex:"0",onKeydown:ge=>Z(si)(ge,()=>L(U.type,!1,{keyboard:!0}),!0),onClick:ge=>Z(u).timeArrowHoldThreshold?void 0:L(U.type,!1),onMousedown:ge=>Z(u).timeArrowHoldThreshold?L(U.type,!1):void 0,onMouseup:ue},[s.timePickerInline?(P(),F(Ie,{key:1},[S.$slots["tp-inline-arrow-down"]?Be(S.$slots,"tp-inline-arrow-down",{key:0}):(P(),F(Ie,{key:1},[O[4]||(O[4]=h("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),O[5]||(O[5]=h("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))],64))],64)):(P(),F(Ie,{key:0},[S.$slots["arrow-down"]?Be(S.$slots,"arrow-down",{key:0}):re("",!0),S.$slots["arrow-down"]?re("",!0):(P(),Ee(Z(F_),{key:1}))],64))],42,ZB)],64))],2)}),128)),S.is24?re("",!0):(P(),F("div",JB,[S.$slots["am-pm-button"]?Be(S.$slots,"am-pm-button",{key:0,toggle:de,value:m.value}):re("",!0),S.$slots["am-pm-button"]?re("",!0):(P(),F("button",{key:1,ref_key:"amPmButton",ref:v,type:"button",class:"dp__pm_am_button",role:"button","aria-label":(K=Z(a))==null?void 0:K.amPmButton,tabindex:"0",onClick:de,onKeydown:O[0]||(O[0]=U=>Z(si)(U,()=>de(),!0))},pe(m.value),41,QB))])),(P(!0),F(Ie,null,Ge(B.value,(U,oe)=>(P(),Ee(xt,{key:oe,name:Z(f)(p[U.type]),css:Z(g)},{default:Me(()=>{var j,se;return[p[U.type]?(P(),Ee(Wu,{key:0,items:J(U.type),"is-last":S.autoApply&&!Z(u).keepActionRow,"esc-close":S.escClose,type:U.type,"text-input":S.textInput,config:S.config,"arrow-navigation":S.arrowNavigation,"aria-labels":S.ariaLabels,"overlay-label":(se=(j=Z(a)).timeOverlay)==null?void 0:se.call(j,U.type),onSelected:Q=>fe(U.type,Q),onToggle:Q=>D(U.type),onResetFlow:O[1]||(O[1]=Q=>S.$emit("reset-flow"))},Xn({"button-icon":Me(()=>[S.$slots["clock-icon"]?Be(S.$slots,"clock-icon",{key:0}):re("",!0),S.$slots["clock-icon"]?re("",!0):(P(),Ee(_a(S.timePickerInline?Z(Gl):Z(O_)),{key:1}))]),_:2},[S.$slots[`${U.type}-overlay-value`]?{name:"item",fn:Me(({item:Q})=>[Be(S.$slots,`${U.type}-overlay-value`,{text:Q.text,value:Q.value})]),key:"0"}:void 0,S.$slots[`${U.type}-overlay-header`]?{name:"header",fn:Me(()=>[Be(S.$slots,`${U.type}-overlay-header`,{toggle:()=>D(U.type)})]),key:"1"}:void 0]),1032,["items","is-last","esc-close","type","text-input","config","arrow-navigation","aria-labels","overlay-label","onSelected","onToggle"])):re("",!0)]}),_:2},1032,["name","css"]))),128))]))}}}),t4={class:"dp--tp-wrap"},n4=["aria-label","tabindex"],i4=["role","aria-label","tabindex"],s4=["aria-label"],CS=fn({compatConfig:{MODE:3},__name:"TimePicker",props:{hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},..._s},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow","overlay-opened","overlay-closed","am-pm-change"],setup(t,{expose:e,emit:n}){const i=n,s=t,{buildMatrix:r,setTimePicker:o}=yo(),a=va(),{defaultedTransitions:l,defaultedAriaLabels:c,defaultedTextInput:u,defaultedConfig:d,defaultedRange:f}=Kt(s),{transitionName:g,showTransition:p}=Yu(l),{hideNavigationButtons:m}=Tf(),v=me(null),y=me(null),x=me([]),E=me(null),w=me(!1);Vt(()=>{i("mount"),!s.timePicker&&s.arrowNavigation?r([bn(v.value)],"time"):o(!0,s.timePicker)});const b=ve(()=>f.value.enabled&&s.modelAuto?lS(s.internalModelValue):!0),C=me(!1),k=J=>({hours:Array.isArray(s.hours)?s.hours[J]:s.hours,minutes:Array.isArray(s.minutes)?s.minutes[J]:s.minutes,seconds:Array.isArray(s.seconds)?s.seconds[J]:s.seconds}),T=ve(()=>{const J=[];if(f.value.enabled)for(let H=0;H<2;H++)J.push(k(H));else J.push(k(0));return J}),A=(J,H=!1,ce="")=>{H||i("reset-flow"),C.value=J,i(J?"overlay-opened":"overlay-closed",jn.time),s.arrowNavigation&&o(J),Rn(()=>{ce!==""&&x.value[0]&&x.value[0].openChildCmp(ce)})},I=ve(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:s.autoApply&&!d.value.keepActionRow})),V=Pi(a,"timePicker"),Y=(J,H,ce)=>f.value.enabled?H===0?[J,T.value[1][ce]]:[T.value[0][ce],J]:J,ne=J=>{i("update:hours",J)},N=J=>{i("update:minutes",J)},B=J=>{i("update:seconds",J)},R=()=>{if(E.value&&!u.value.enabled&&!s.noOverlayFocus){const J=cS(E.value);J&&J.focus({preventScroll:!0})}},z=J=>{w.value=!1,i("overlay-closed",J)},X=J=>{w.value=!0,i("overlay-opened",J)};return e({toggleTimePicker:A}),(J,H)=>{var ce;return P(),F("div",t4,[!J.timePicker&&!J.timePickerInline?Re((P(),F("button",{key:0,ref_key:"openTimePickerBtn",ref:v,type:"button",class:Se({...I.value,"dp--hidden-el":C.value}),"aria-label":(ce=Z(c))==null?void 0:ce.openTimePicker,tabindex:J.noOverlayFocus?void 0:0,"data-test":"open-time-picker-btn",onKeydown:H[0]||(H[0]=ie=>Z(si)(ie,()=>A(!0))),onClick:H[1]||(H[1]=ie=>A(!0))},[J.$slots["clock-icon"]?Be(J.$slots,"clock-icon",{key:0}):re("",!0),J.$slots["clock-icon"]?re("",!0):(P(),Ee(Z(O_),{key:1}))],42,n4)),[[ah,!Z(m)(J.hideNavigation,"time")]]):re("",!0),$(xt,{name:Z(g)(C.value),css:Z(p)&&!J.timePickerInline},{default:Me(()=>{var ie,te;return[C.value||J.timePicker||J.timePickerInline?(P(),F("div",{key:0,ref_key:"overlayRef",ref:E,role:J.timePickerInline?void 0:"dialog",class:Se({dp__overlay:!J.timePickerInline,"dp--overlay-absolute":!s.timePicker&&!J.timePickerInline,"dp--overlay-relative":s.timePicker}),style:Mn(J.timePicker?{height:`${Z(d).modeHeight}px`}:void 0),"aria-label":(ie=Z(c))==null?void 0:ie.timePicker,tabindex:J.timePickerInline?void 0:0},[h("div",{class:Se(J.timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[J.$slots["time-picker-overlay"]?Be(J.$slots,"time-picker-overlay",{key:0,hours:t.hours,minutes:t.minutes,seconds:t.seconds,setHours:ne,setMinutes:N,setSeconds:B}):re("",!0),J.$slots["time-picker-overlay"]?re("",!0):(P(),F("div",{key:1,class:Se(J.timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(P(!0),F(Ie,null,Ge(T.value,(D,ee)=>Re((P(),Ee(e4,xn({key:ee,ref_for:!0},{...J.$props,order:ee,hours:D.hours,minutes:D.minutes,seconds:D.seconds,closeTimePickerBtn:y.value,disabledTimesConfig:t.disabledTimesConfig,disabled:ee===0?Z(f).fixedStart:Z(f).fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:x,"validate-time":(ue,L)=>t.validateTime(ue,Y(L,ee,ue)),"onUpdate:hours":ue=>ne(Y(ue,ee,"hours")),"onUpdate:minutes":ue=>N(Y(ue,ee,"minutes")),"onUpdate:seconds":ue=>B(Y(ue,ee,"seconds")),onMounted:R,onOverlayClosed:z,onOverlayOpened:X,onAmPmChange:H[2]||(H[2]=ue=>J.$emit("am-pm-change",ue))}),Xn({_:2},[Ge(Z(V),(ue,L)=>({name:ue,fn:Me(le=>[Be(J.$slots,ue,xn({ref_for:!0},le))])}))]),1040,["validate-time","onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[ah,ee===0?!0:b.value]])),128))],2)),!J.timePicker&&!J.timePickerInline?Re((P(),F("button",{key:2,ref_key:"closeTimePickerBtn",ref:y,type:"button",class:Se({...I.value,"dp--hidden-el":w.value}),"aria-label":(te=Z(c))==null?void 0:te.closeTimePicker,tabindex:"0",onKeydown:H[3]||(H[3]=D=>Z(si)(D,()=>A(!1))),onClick:H[4]||(H[4]=D=>A(!1))},[J.$slots["calendar-icon"]?Be(J.$slots,"calendar-icon",{key:0}):re("",!0),J.$slots["calendar-icon"]?re("",!0):(P(),Ee(Z(Gl),{key:1}))],42,s4)),[[ah,!Z(m)(J.hideNavigation,"time")]]):re("",!0)],2)],14,i4)):re("",!0)]}),_:3},8,["name","css"])])}}}),SS=(t,e,n,i)=>{const{defaultedRange:s}=Kt(t),r=(E,w)=>Array.isArray(e[E])?e[E][w]:e[E],o=E=>t.enableSeconds?Array.isArray(e.seconds)?e.seconds[E]:e.seconds:0,a=(E,w)=>E?w!==void 0?to(E,r("hours",w),r("minutes",w),o(w)):to(E,e.hours,e.minutes,o()):sS(ke(),o(w)),l=(E,w)=>{e[E]=w},c=ve(()=>t.modelAuto&&s.value.enabled?Array.isArray(n.value)?n.value.length>1:!1:s.value.enabled),u=(E,w)=>{const b=Object.fromEntries(Object.keys(e).map(C=>C===E?[C,w]:[C,e[C]].slice()));if(c.value&&!s.value.disableTimeRangeValidation){const C=T=>n.value?to(n.value[T],b.hours[T],b.minutes[T],b.seconds[T]):null,k=T=>iS(n.value[T],0);return!(ct(C(0),C(1))&&(Tl(C(0),k(1))||cu(C(1),k(0))))}return!0},d=(E,w)=>{u(E,w)&&(l(E,w),i&&i())},f=E=>{d("hours",E)},g=E=>{d("minutes",E)},p=E=>{d("seconds",E)},m=(E,w,b,C)=>{w&&f(E),!w&&!b&&g(E),b&&p(E),n.value&&C(n.value)},v=E=>{if(E){const w=Array.isArray(E),b=w?[+E[0].hours,+E[1].hours]:+E.hours,C=w?[+E[0].minutes,+E[1].minutes]:+E.minutes,k=w?[+E[0].seconds,+E[1].seconds]:+E.seconds;l("hours",b),l("minutes",C),t.enableSeconds&&l("seconds",k)}},y=(E,w)=>{const b={hours:Array.isArray(e.hours)?e.hours[E]:e.hours,disabledArr:[]};return(w||w===0)&&(b.hours=w),Array.isArray(t.disabledTimes)&&(b.disabledArr=s.value.enabled&&Array.isArray(t.disabledTimes[E])?t.disabledTimes[E]:t.disabledTimes),b},x=ve(()=>(E,w)=>{var b;if(Array.isArray(t.disabledTimes)){const{disabledArr:C,hours:k}=y(E,w),T=C.filter(A=>+A.hours===k);return((b=T[0])==null?void 0:b.minutes)==="*"?{hours:[k],minutes:void 0,seconds:void 0}:{hours:[],minutes:T?.map(A=>+A.minutes)??[],seconds:T?.map(A=>A.seconds?+A.seconds:void 0)??[]}}return{hours:[],minutes:[],seconds:[]}});return{setTime:l,updateHours:f,updateMinutes:g,updateSeconds:p,getSetDateTime:a,updateTimeValues:m,getSecondsValue:o,assignStartTime:v,validateTime:u,disabledTimesConfig:x}},r4=(t,e)=>{const n=()=>{t.isTextInputDate&&w()},{modelValue:i,time:s}=Hu(t,e,n),{defaultedStartTime:r,defaultedRange:o,defaultedTz:a}=Kt(t),{updateTimeValues:l,getSetDateTime:c,setTime:u,assignStartTime:d,disabledTimesConfig:f,validateTime:g}=SS(t,s,i,p);function p(){e("update-flow-step")}const m=C=>{const{hours:k,minutes:T,seconds:A}=C;return{hours:+k,minutes:+T,seconds:A?+A:0}},v=()=>{if(t.startTime){if(Array.isArray(t.startTime)){const k=m(t.startTime[0]),T=m(t.startTime[1]);return[Dt(ke(),k),Dt(ke(),T)]}const C=m(t.startTime);return Dt(ke(),C)}return o.value.enabled?[null,null]:null},y=()=>{if(o.value.enabled){const[C,k]=v();i.value=[xi(c(C,0),a.value.timezone),xi(c(k,1),a.value.timezone)]}else i.value=xi(c(v()),a.value.timezone)},x=C=>Array.isArray(C)?[sa(ke(C[0])),sa(ke(C[1]))]:[sa(C??ke())],E=(C,k,T)=>{u("hours",C),u("minutes",k),u("seconds",t.enableSeconds?T:0)},w=()=>{const[C,k]=x(i.value);return o.value.enabled?E([C.hours,k.hours],[C.minutes,k.minutes],[C.seconds,k.seconds]):E(C.hours,C.minutes,C.seconds)};Vt(()=>{if(!t.shadow)return d(r.value),i.value?w():y()});const b=()=>{Array.isArray(i.value)?i.value=i.value.map((C,k)=>C&&c(C,k)):i.value=c(i.value),e("time-update")};return{modelValue:i,time:s,disabledTimesConfig:f,updateTime:(C,k=!0,T=!1)=>{l(C,k,T,b)},validateTime:g}},o4=fn({compatConfig:{MODE:3},__name:"TimePickerSolo",props:{..._s},emits:["update:internal-model-value","time-update","am-pm-change","mount","reset-flow","update-flow-step","overlay-toggle"],setup(t,{expose:e,emit:n}){const i=n,s=t,r=va(),o=Pi(r,"timePicker"),a=me(null),{time:l,modelValue:c,disabledTimesConfig:u,updateTime:d,validateTime:f}=r4(s,i);return Vt(()=>{s.shadow||i("mount",null)}),e({getSidebarProps:()=>({modelValue:c,time:l,updateTime:d}),toggleTimePicker:(g,p=!1,m="")=>{var v;(v=a.value)==null||v.toggleTimePicker(g,p,m)}}),(g,p)=>(P(),Ee(Sf,{"multi-calendars":0,stretch:""},{default:Me(()=>[$(CS,xn({ref_key:"tpRef",ref:a},g.$props,{hours:Z(l).hours,minutes:Z(l).minutes,seconds:Z(l).seconds,"internal-model-value":g.internalModelValue,"disabled-times-config":Z(u),"validate-time":Z(f),"onUpdate:hours":p[0]||(p[0]=m=>Z(d)(m)),"onUpdate:minutes":p[1]||(p[1]=m=>Z(d)(m,!1)),"onUpdate:seconds":p[2]||(p[2]=m=>Z(d)(m,!1,!0)),onAmPmChange:p[3]||(p[3]=m=>g.$emit("am-pm-change",m)),onResetFlow:p[4]||(p[4]=m=>g.$emit("reset-flow")),onOverlayClosed:p[5]||(p[5]=m=>g.$emit("overlay-toggle",{open:!1,overlay:m})),onOverlayOpened:p[6]||(p[6]=m=>g.$emit("overlay-toggle",{open:!0,overlay:m}))}),Xn({_:2},[Ge(Z(o),(m,v)=>({name:m,fn:Me(y=>[Be(g.$slots,m,In(ii(y)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"])]),_:3}))}}),a4={class:"dp--header-wrap"},l4={key:0,class:"dp__month_year_wrap"},c4={key:0},u4={class:"dp__month_year_wrap"},d4=["data-dp-element","aria-label","data-test","onClick","onKeydown"],h4=fn({compatConfig:{MODE:3},__name:"DpHeader",props:{month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:()=>[]},months:{type:Array,default:()=>[]},..._s},emits:["update-month-year","mount","reset-flow","overlay-closed","overlay-opened"],setup(t,{expose:e,emit:n}){const i=n,s=t,{defaultedTransitions:r,defaultedAriaLabels:o,defaultedMultiCalendars:a,defaultedFilters:l,defaultedConfig:c,defaultedHighlight:u,propDates:d,defaultedUI:f}=Kt(s),{transitionName:g,showTransition:p}=Yu(r),{buildMatrix:m}=yo(),{handleMonthYearChange:v,isDisabled:y,updateMonthYear:x}=$B(s,i),{showLeftIcon:E,showRightIcon:w}=Tf(),b=me(!1),C=me(!1),k=me(!1),T=me([null,null,null,null]);Vt(()=>{i("mount")});const A=te=>({get:()=>s[te],set:D=>{const ee=te===ts.month?ts.year:ts.month;i("update-month-year",{[te]:D,[ee]:s[ee]}),te===ts.month?z(!0):X(!0)}}),I=ve(A(ts.month)),V=ve(A(ts.year)),Y=ve(()=>te=>({month:s.month,year:s.year,items:te===ts.month?s.months:s.years,instance:s.instance,updateMonthYear:x,toggle:te===ts.month?z:X})),ne=ve(()=>s.months.find(D=>D.value===s.month)||{text:"",value:0}),N=ve(()=>Pl(s.months,te=>{const D=s.month===te.value,ee=uu(te.value,dS(s.year,d.value.minDate),hS(s.year,d.value.maxDate))||l.value.months.includes(te.value),ue=_S(u.value,te.value,s.year);return{active:D,disabled:ee,highlighted:ue}})),B=ve(()=>Pl(s.years,te=>{const D=s.year===te.value,ee=uu(te.value,Ml(d.value.minDate),Ml(d.value.maxDate))||l.value.years.includes(te.value),ue=Y_(u.value,te.value);return{active:D,disabled:ee,highlighted:ue}})),R=(te,D,ee)=>{ee!==void 0?te.value=ee:te.value=!te.value,te.value?(k.value=!0,i("overlay-opened",D)):(k.value=!1,i("overlay-closed",D))},z=(te=!1,D)=>{J(te),R(b,jn.month,D)},X=(te=!1,D)=>{J(te),R(C,jn.year,D)},J=te=>{te||i("reset-flow")},H=(te,D)=>{s.arrowNavigation&&(T.value[D]=bn(te),m(T.value,"monthYear"))},ce=ve(()=>{var te,D,ee,ue,L,le;return[{type:ts.month,index:1,toggle:z,modelValue:I.value,updateModelValue:de=>I.value=de,text:ne.value.text,showSelectionGrid:b.value,items:N.value,ariaLabel:(te=o.value)==null?void 0:te.openMonthsOverlay,overlayLabel:((ee=(D=o.value).monthPicker)==null?void 0:ee.call(D,!0))??void 0},{type:ts.year,index:2,toggle:X,modelValue:V.value,updateModelValue:de=>V.value=de,text:uS(s.year,s.locale),showSelectionGrid:C.value,items:B.value,ariaLabel:(ue=o.value)==null?void 0:ue.openYearsOverlay,overlayLabel:((le=(L=o.value).yearPicker)==null?void 0:le.call(L,!0))??void 0}]}),ie=ve(()=>s.disableYearSelect?[ce.value[0]]:s.yearFirst?[...ce.value].reverse():ce.value);return e({toggleMonthPicker:z,toggleYearPicker:X,handleMonthYearChange:v}),(te,D)=>{var ee,ue,L,le,de,xe;return P(),F("div",a4,[te.$slots["month-year"]?(P(),F("div",l4,[Be(te.$slots,"month-year",In(ii({month:t.month,year:t.year,months:t.months,years:t.years,updateMonthYear:Z(x),handleMonthYearChange:Z(v),instance:t.instance})))])):(P(),F(Ie,{key:1},[te.$slots["top-extra"]?(P(),F("div",c4,[Be(te.$slots,"top-extra",{value:te.internalModelValue})])):re("",!0),h("div",u4,[Z(E)(Z(a),t.instance)&&!te.vertical?(P(),Ee(jc,{key:0,"aria-label":(ee=Z(o))==null?void 0:ee.prevMonth,disabled:Z(y)(!1),class:Se((ue=Z(f))==null?void 0:ue.navBtnPrev),"el-name":"action-prev",onActivate:D[0]||(D[0]=W=>Z(v)(!1,!0)),onSetRef:D[1]||(D[1]=W=>H(W,0))},{default:Me(()=>[te.$slots["arrow-left"]?Be(te.$slots,"arrow-left",{key:0}):re("",!0),te.$slots["arrow-left"]?re("",!0):(P(),Ee(Z($_),{key:1}))]),_:3},8,["aria-label","disabled","class"])):re("",!0),h("div",{class:Se(["dp__month_year_wrap",{dp__year_disable_select:te.disableYearSelect}])},[(P(!0),F(Ie,null,Ge(ie.value,(W,fe)=>(P(),F(Ie,{key:W.type},[h("button",{ref_for:!0,ref:S=>H(S,fe+1),type:"button","data-dp-element":`overlay-${W.type}`,class:Se(["dp__btn dp__month_year_select",{"dp--hidden-el":k.value}]),"aria-label":`${W.text}-${W.ariaLabel}`,"data-test":`${W.type}-toggle-overlay-${t.instance}`,onClick:W.toggle,onKeydown:S=>Z(si)(S,()=>W.toggle(),!0)},[te.$slots[W.type]?Be(te.$slots,W.type,{key:0,text:W.text,value:s[W.type]}):re("",!0),te.$slots[W.type]?re("",!0):(P(),F(Ie,{key:1},[Fe(pe(W.text),1)],64))],42,d4),$(xt,{name:Z(g)(W.showSelectionGrid),css:Z(p)},{default:Me(()=>[W.showSelectionGrid?(P(),Ee(Wu,{key:0,items:W.items,"arrow-navigation":te.arrowNavigation,"hide-navigation":te.hideNavigation,"is-last":te.autoApply&&!Z(c).keepActionRow,"skip-button-ref":!1,config:te.config,type:W.type,"header-refs":[],"esc-close":te.escClose,"menu-wrap-ref":te.menuWrapRef,"text-input":te.textInput,"aria-labels":te.ariaLabels,"overlay-label":W.overlayLabel,onSelected:W.updateModelValue,onToggle:W.toggle},Xn({"button-icon":Me(()=>[te.$slots["calendar-icon"]?Be(te.$slots,"calendar-icon",{key:0}):re("",!0),te.$slots["calendar-icon"]?re("",!0):(P(),Ee(Z(Gl),{key:1}))]),_:2},[te.$slots[`${W.type}-overlay-value`]?{name:"item",fn:Me(({item:S})=>[Be(te.$slots,`${W.type}-overlay-value`,{text:S.text,value:S.value})]),key:"0"}:void 0,te.$slots[`${W.type}-overlay`]?{name:"overlay",fn:Me(()=>[Be(te.$slots,`${W.type}-overlay`,xn({ref_for:!0},Y.value(W.type)))]),key:"1"}:void 0,te.$slots[`${W.type}-overlay-header`]?{name:"header",fn:Me(()=>[Be(te.$slots,`${W.type}-overlay-header`,{toggle:W.toggle})]),key:"2"}:void 0]),1032,["items","arrow-navigation","hide-navigation","is-last","config","type","esc-close","menu-wrap-ref","text-input","aria-labels","overlay-label","onSelected","onToggle"])):re("",!0)]),_:2},1032,["name","css"])],64))),128))],2),Z(E)(Z(a),t.instance)&&te.vertical?(P(),Ee(jc,{key:1,"aria-label":(L=Z(o))==null?void 0:L.prevMonth,"el-name":"action-prev",disabled:Z(y)(!1),class:Se((le=Z(f))==null?void 0:le.navBtnPrev),onActivate:D[2]||(D[2]=W=>Z(v)(!1,!0))},{default:Me(()=>[te.$slots["arrow-up"]?Be(te.$slots,"arrow-up",{key:0}):re("",!0),te.$slots["arrow-up"]?re("",!0):(P(),Ee(Z(N_),{key:1}))]),_:3},8,["aria-label","disabled","class"])):re("",!0),Z(w)(Z(a),t.instance)?(P(),Ee(jc,{key:2,ref:"rightIcon","el-name":"action-next",disabled:Z(y)(!0),"aria-label":(de=Z(o))==null?void 0:de.nextMonth,class:Se((xe=Z(f))==null?void 0:xe.navBtnNext),onActivate:D[3]||(D[3]=W=>Z(v)(!0,!0)),onSetRef:D[4]||(D[4]=W=>H(W,te.disableYearSelect?2:3))},{default:Me(()=>[te.$slots[te.vertical?"arrow-down":"arrow-right"]?Be(te.$slots,te.vertical?"arrow-down":"arrow-right",{key:0}):re("",!0),te.$slots[te.vertical?"arrow-down":"arrow-right"]?re("",!0):(P(),Ee(_a(te.vertical?Z(F_):Z(L_)),{key:1}))]),_:3},8,["disabled","aria-label","class"])):re("",!0)])],64))])}}}),f4={class:"dp__calendar_header",role:"row"},g4={key:0,class:"dp__calendar_header_item",role:"gridcell"},p4=["aria-label"],m4={key:0,class:"dp__calendar_item dp__week_num",role:"gridcell"},_4={class:"dp__cell_inner"},v4=["id","aria-pressed","aria-disabled","aria-label","tabindex","data-test","onClick","onTouchend","onKeydown","onMouseenter","onMouseleave","onMousedown"],y4=fn({compatConfig:{MODE:3},__name:"DpCalendar",props:{mappedDates:{type:Array,default:()=>[]},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0},..._s},emits:["select-date","set-hover-date","handle-scroll","mount","handle-swipe","handle-space","tooltip-open","tooltip-close"],setup(t,{expose:e,emit:n}){const i=n,s=t,{buildMultiLevelMatrix:r}=yo(),{defaultedTransitions:o,defaultedConfig:a,defaultedAriaLabels:l,defaultedMultiCalendars:c,defaultedWeekNumbers:u,defaultedMultiDates:d,defaultedUI:f}=Kt(s),g=me(null),p=me({bottom:"",left:"",transform:""}),m=me([]),v=me(null),y=me(!0),x=me(""),E=me({startX:0,endX:0,startY:0,endY:0}),w=me([]),b=me({left:"50%"}),C=me(!1),k=ve(()=>s.calendar?s.calendar(s.mappedDates):s.mappedDates),T=ve(()=>s.dayNames?Array.isArray(s.dayNames)?s.dayNames:s.dayNames(s.locale,+s.weekStart):nB(s.formatLocale,s.locale,+s.weekStart));Vt(()=>{i("mount",{cmp:"calendar",refs:m}),a.value.noSwipe||v.value&&(v.value.addEventListener("touchstart",H,{passive:!1}),v.value.addEventListener("touchend",ce,{passive:!1}),v.value.addEventListener("touchmove",ie,{passive:!1})),s.monthChangeOnScroll&&v.value&&v.value.addEventListener("wheel",ee,{passive:!1})});const A=W=>W?s.vertical?"vNext":"next":s.vertical?"vPrevious":"previous",I=(W,fe)=>{if(s.transitions){const S=ai(ar(ke(),s.month,s.year));x.value=ln(ai(ar(ke(),W,fe)),S)?o.value[A(!0)]:o.value[A(!1)],y.value=!1,Rn(()=>{y.value=!0})}},V=ve(()=>({...f.value.calendar??{}})),Y=ve(()=>W=>{const fe=sB(W);return{dp__marker_dot:fe.type==="dot",dp__marker_line:fe.type==="line"}}),ne=ve(()=>W=>ct(W,g.value)),N=ve(()=>({dp__calendar:!0,dp__calendar_next:c.value.count>0&&s.instance!==0})),B=ve(()=>W=>s.hideOffsetDates?W.current:!0),R=async(W,fe)=>{const{width:S,height:O}=W.getBoundingClientRect();g.value=fe.value;let K={left:`${S/2}px`},U=-50;if(await Rn(),w.value[0]){const{left:oe,width:j}=w.value[0].getBoundingClientRect();oe<0&&(K={left:"0"},U=0,b.value.left=`${S/2}px`),window.innerWidth{var O,K,U;const oe=bn(m.value[fe][S]);oe&&((O=W.marker)!=null&&O.customPosition&&(U=(K=W.marker)==null?void 0:K.tooltip)!=null&&U.length?p.value=W.marker.customPosition(oe):await R(oe,W),i("tooltip-open",W.marker))},X=async(W,fe,S)=>{var O,K;if(C.value&&d.value.enabled&&d.value.dragSelect)return i("select-date",W);i("set-hover-date",W),(K=(O=W.marker)==null?void 0:O.tooltip)!=null&&K.length&&await z(W,fe,S)},J=W=>{g.value&&(g.value=null,p.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),i("tooltip-close",W.marker))},H=W=>{E.value.startX=W.changedTouches[0].screenX,E.value.startY=W.changedTouches[0].screenY},ce=W=>{E.value.endX=W.changedTouches[0].screenX,E.value.endY=W.changedTouches[0].screenY,te()},ie=W=>{s.vertical&&!s.inline&&W.preventDefault()},te=()=>{const W=s.vertical?"Y":"X";Math.abs(E.value[`start${W}`]-E.value[`end${W}`])>10&&i("handle-swipe",E.value[`start${W}`]>E.value[`end${W}`]?"right":"left")},D=(W,fe,S)=>{W&&(Array.isArray(m.value[fe])?m.value[fe][S]=W:m.value[fe]=[W]),s.arrowNavigation&&r(m.value,"calendar")},ee=W=>{s.monthChangeOnScroll&&(W.preventDefault(),i("handle-scroll",W))},ue=W=>u.value.type==="local"?I_(W.value,{weekStartsOn:+s.weekStart}):u.value.type==="iso"?P_(W.value):typeof u.value.type=="function"?u.value.type(W.value):"",L=W=>{const fe=W[0];return u.value.hideOnOffsetDates?W.some(S=>S.current)?ue(fe):"":ue(fe)},le=(W,fe,S=!0)=>{S&&b0()||!S&&!b0()||d.value.enabled||(eo(W,a.value),i("select-date",fe))},de=W=>{eo(W,a.value)},xe=W=>{d.value.enabled&&d.value.dragSelect?(C.value=!0,i("select-date",W)):d.value.enabled&&i("select-date",W)};return e({triggerTransition:I}),(W,fe)=>(P(),F("div",{class:Se(N.value)},[h("div",{ref_key:"calendarWrapRef",ref:v,class:Se(V.value),role:"grid"},[h("div",f4,[W.weekNumbers?(P(),F("div",g4,pe(W.weekNumName),1)):re("",!0),(P(!0),F(Ie,null,Ge(T.value,(S,O)=>{var K,U;return P(),F("div",{key:O,class:"dp__calendar_header_item",role:"gridcell","data-test":"calendar-header","aria-label":(U=(K=Z(l))==null?void 0:K.weekDay)==null?void 0:U.call(K,O)},[W.$slots["calendar-header"]?Be(W.$slots,"calendar-header",{key:0,day:S,index:O}):re("",!0),W.$slots["calendar-header"]?re("",!0):(P(),F(Ie,{key:1},[Fe(pe(S),1)],64))],8,p4)}),128))]),fe[2]||(fe[2]=h("div",{class:"dp__calendar_header_separator"},null,-1)),$(xt,{name:x.value,css:!!W.transitions},{default:Me(()=>[y.value?(P(),F("div",{key:0,class:"dp__calendar",role:"rowgroup",onMouseleave:fe[1]||(fe[1]=S=>C.value=!1)},[(P(!0),F(Ie,null,Ge(k.value,(S,O)=>(P(),F("div",{key:O,class:"dp__calendar_row",role:"row"},[W.weekNumbers?(P(),F("div",m4,[h("div",_4,pe(L(S.days)),1)])):re("",!0),(P(!0),F(Ie,null,Ge(S.days,(K,U)=>{var oe,j,se;return P(),F("div",{id:Z(vS)(K.value),ref_for:!0,ref:Q=>D(Q,O,U),key:U+O,role:"gridcell",class:"dp__calendar_item","aria-pressed":(K.classData.dp__active_date||K.classData.dp__range_start||K.classData.dp__range_start)??void 0,"aria-disabled":K.classData.dp__cell_disabled||void 0,"aria-label":(j=(oe=Z(l))==null?void 0:oe.day)==null?void 0:j.call(oe,K),tabindex:!K.current&&W.hideOffsetDates?void 0:0,"data-test":K.value,onClick:ru(Q=>le(Q,K),["prevent"]),onTouchend:Q=>le(Q,K,!1),onKeydown:Q=>Z(si)(Q,()=>W.$emit("select-date",K)),onMouseenter:Q=>X(K,O,U),onMouseleave:Q=>J(K),onMousedown:Q=>xe(K),onMouseup:fe[0]||(fe[0]=Q=>C.value=!1)},[h("div",{class:Se(["dp__cell_inner",K.classData])},[W.$slots.day&&B.value(K)?Be(W.$slots,"day",{key:0,day:+K.text,date:K.value}):re("",!0),W.$slots.day?re("",!0):(P(),F(Ie,{key:1},[Fe(pe(K.text),1)],64)),K.marker&&B.value(K)?(P(),F(Ie,{key:2},[W.$slots.marker?Be(W.$slots,"marker",{key:0,marker:K.marker,day:+K.text,date:K.value}):(P(),F("div",{key:1,class:Se(Y.value(K.marker)),style:Mn(K.marker.color?{backgroundColor:K.marker.color}:{})},null,6))],64)):re("",!0),ne.value(K.value)?(P(),F("div",{key:3,ref_for:!0,ref_key:"activeTooltip",ref:w,class:"dp__marker_tooltip",style:Mn(p.value)},[(se=K.marker)!=null&&se.tooltip?(P(),F("div",{key:0,class:"dp__tooltip_content",onClick:de},[(P(!0),F(Ie,null,Ge(K.marker.tooltip,(Q,ge)=>(P(),F("div",{key:ge,class:"dp__tooltip_text"},[W.$slots["marker-tooltip"]?Be(W.$slots,"marker-tooltip",{key:0,tooltip:Q,day:K.value}):re("",!0),W.$slots["marker-tooltip"]?re("",!0):(P(),F(Ie,{key:1},[h("div",{class:"dp__tooltip_mark",style:Mn(Q.color?{backgroundColor:Q.color}:{})},null,4),h("div",null,pe(Q.text),1)],64))]))),128)),h("div",{class:"dp__arrow_bottom_tp",style:Mn(b.value)},null,4)])):re("",!0)],4)):re("",!0)],2)],40,v4)}),128))]))),128))],32)):re("",!0)]),_:3},8,["name","css"])],2)],2))}}),S0=t=>Array.isArray(t),b4=(t,e,n,i)=>{const s=me([]),r=me(new Date),o=me(),a=()=>H(t.isTextInputDate),{modelValue:l,calendars:c,time:u,today:d}=Hu(t,e,a),{defaultedMultiCalendars:f,defaultedStartTime:g,defaultedRange:p,defaultedConfig:m,defaultedTz:v,propDates:y,defaultedMultiDates:x}=Kt(t),{validateMonthYearInRange:E,isDisabled:w,isDateRangeAllowed:b,checkMinMaxRange:C}=bo(t),{updateTimeValues:k,getSetDateTime:T,setTime:A,assignStartTime:I,validateTime:V,disabledTimesConfig:Y}=SS(t,u,l,i),ne=ve(()=>ae=>c.value[ae]?c.value[ae].month:0),N=ve(()=>ae=>c.value[ae]?c.value[ae].year:0),B=ae=>!m.value.keepViewOnOffsetClick||ae?!0:!o.value,R=(ae,Te,he,Ae=!1)=>{var Ne,Gt;B(Ae)&&(c.value[ae]||(c.value[ae]={month:0,year:0}),c.value[ae].month=y0(Te)?(Ne=c.value[ae])==null?void 0:Ne.month:Te,c.value[ae].year=y0(he)?(Gt=c.value[ae])==null?void 0:Gt.year:he)},z=()=>{t.autoApply&&e("select-date")};Vt(()=>{t.shadow||(l.value||(W(),g.value&&I(g.value)),H(!0),t.focusStartDate&&t.startDate&&W())});const X=ve(()=>{var ae;return(ae=t.flow)!=null&&ae.length&&!t.partialFlow?t.flowStep===t.flow.length:!0}),J=()=>{t.autoApply&&X.value&&e("auto-apply",t.partialFlow?t.flowStep!==t.flow.length:!1)},H=(ae=!1)=>{if(l.value)return Array.isArray(l.value)?(s.value=l.value,L(ae)):te(l.value,ae);if(f.value.count&&ae&&!t.startDate)return ie(ke(),ae)},ce=()=>Array.isArray(l.value)&&p.value.enabled?at(l.value[0])===at(l.value[1]??l.value[0]):!1,ie=(ae=new Date,Te=!1)=>{if((!f.value.count||!f.value.static||Te)&&R(0,at(ae),Ze(ae)),f.value.count&&(!f.value.solo||!l.value||ce()))for(let he=1;he{ie(ae),A("hours",vr(ae)),A("minutes",ao(ae)),A("seconds",kl(ae)),f.value.count&&Te&&xe()},D=ae=>{if(f.value.count){if(f.value.solo)return 0;const Te=at(ae[0]),he=at(ae[1]);return Math.abs(he-Te){ae[1]&&p.value.showLastInRange?ie(ae[D(ae)],Te):ie(ae[0],Te);const he=(Ae,Ne)=>[Ae(ae[0]),ae[1]?Ae(ae[1]):u[Ne][1]];A("hours",he(vr,"hours")),A("minutes",he(ao,"minutes")),A("seconds",he(kl,"seconds"))},ue=(ae,Te)=>{if((p.value.enabled||t.weekPicker)&&!x.value.enabled)return ee(ae,Te);if(x.value.enabled&&Te){const he=ae[ae.length-1];return te(he,Te)}},L=ae=>{const Te=l.value;ue(Te,ae),f.value.count&&f.value.solo&&xe()},le=(ae,Te)=>{const he=Dt(ke(),{month:ne.value(Te),year:N.value(Te)}),Ae=ae<0?ds(he,1):Al(he,1);E(at(Ae),Ze(Ae),ae<0,t.preventMinMaxNavigation)&&(R(Te,at(Ae),Ze(Ae)),e("update-month-year",{instance:Te,month:at(Ae),year:Ze(Ae)}),f.value.count&&!f.value.solo&&de(Te),n())},de=ae=>{for(let Te=ae-1;Te>=0;Te--){const he=Al(Dt(ke(),{month:ne.value(Te+1),year:N.value(Te+1)}),1);R(Te,at(he),Ze(he))}for(let Te=ae+1;Te<=f.value.count-1;Te++){const he=ds(Dt(ke(),{month:ne.value(Te-1),year:N.value(Te-1)}),1);R(Te,at(he),Ze(he))}},xe=()=>{if(Array.isArray(l.value)&&l.value.length===2){const ae=ke(ke(l.value[1]?l.value[1]:ds(l.value[0],1))),[Te,he]=[at(l.value[0]),Ze(l.value[0])],[Ae,Ne]=[at(l.value[1]),Ze(l.value[1])];(Te!==Ae||Te===Ae&&he!==Ne)&&f.value.solo&&R(1,at(ae),Ze(ae))}else l.value&&!Array.isArray(l.value)&&(R(0,at(l.value),Ze(l.value)),ie(ke()))},W=()=>{t.startDate&&(R(0,at(ke(t.startDate)),Ze(ke(t.startDate))),f.value.count&&de(0))},fe=(ae,Te)=>{if(t.monthChangeOnScroll){const he=new Date().getTime()-r.value.getTime(),Ae=Math.abs(ae.deltaY);let Ne=500;Ae>1&&(Ne=100),Ae>100&&(Ne=0),he>Ne&&(r.value=new Date,le(t.monthChangeOnScroll!=="inverse"?-ae.deltaY:ae.deltaY,Te))}},S=(ae,Te,he=!1)=>{t.monthChangeOnArrows&&t.vertical===he&&O(ae,Te)},O=(ae,Te)=>{le(ae==="right"?-1:1,Te)},K=ae=>{if(y.value.markers)return Th(ae.value,y.value.markers)},U=(ae,Te)=>{switch(t.sixWeeks===!0?"append":t.sixWeeks){case"prepend":return[!0,!1];case"center":return[ae==0,!0];case"fair":return[ae==0||Te>ae,!0];case"append":return[!1,!1];default:return[!1,!1]}},oe=(ae,Te,he,Ae)=>{if(t.sixWeeks&&ae.length<6){const Ne=6-ae.length,Gt=(Te.getDay()+7-Ae)%7,pn=6-(he.getDay()+7-Ae)%7,[$i,Ws]=U(Gt,pn);for(let mn=1;mn<=Ne;mn++)if(Ws?!!(mn%2)==$i:$i){const Cn=ae[0].days[0],Sn=j(rs(Cn.value,-7),at(Te));ae.unshift({days:Sn})}else{const Cn=ae[ae.length-1],Sn=Cn.days[Cn.days.length-1],li=j(rs(Sn.value,1),at(Te));ae.push({days:li})}}return ae},j=(ae,Te)=>{const he=ke(ae),Ae=[];for(let Ne=0;Ne<7;Ne++){const Gt=rs(he,Ne),pn=at(Gt)!==Te;Ae.push({text:t.hideOffsetDates&&pn?"":Gt.getDate(),value:Gt,current:!pn,classData:{}})}return Ae},se=(ae,Te)=>{const he=[],Ae=new Date(Te,ae),Ne=new Date(Te,ae+1,0),Gt=t.weekStart,pn=ps(Ae,{weekStartsOn:Gt}),$i=Ws=>{const mn=j(Ws,ae);if(he.push({days:mn}),!he[he.length-1].days.some(Cn=>ct(ai(Cn.value),ai(Ne)))){const Cn=rs(Ws,7);$i(Cn)}};return $i(pn),oe(he,Ae,Ne,Gt)},Q=ae=>{const Te=to(ke(ae.value),u.hours,u.minutes,je());e("date-update",Te),x.value.enabled?H_(Te,l,x.value.limit):l.value=Te,i(),Rn().then(()=>{J()})},ge=ae=>p.value.noDisabledRange?fS(s.value[0],ae).some(Te=>w(Te)):!1,be=()=>{s.value=l.value?l.value.slice():[],s.value.length===2&&!(p.value.fixedStart||p.value.fixedEnd)&&(s.value=[])},we=(ae,Te)=>{const he=[ke(ae.value),rs(ke(ae.value),+p.value.autoRange)];b(he)?(Te&&Pe(ae.value),s.value=he):e("invalid-date",ae.value)},Pe=ae=>{const Te=at(ke(ae)),he=Ze(ke(ae));if(R(0,Te,he),f.value.count>0)for(let Ae=1;Ae{if(ge(ae.value)||!C(ae.value,l.value,p.value.fixedStart?0:1))return e("invalid-date",ae.value);s.value=xS(ke(ae.value),l,e,p)},We=(ae,Te)=>{if(be(),p.value.autoRange)return we(ae,Te);if(p.value.fixedStart||p.value.fixedEnd)return De(ae);s.value[0]?C(ke(ae.value),l.value)&&!ge(ae.value)?tn(ke(ae.value),ke(s.value[0]))?(s.value.unshift(ke(ae.value)),e("range-end",s.value[0])):(s.value[1]=ke(ae.value),e("range-end",s.value[1])):(t.autoApply&&e("auto-apply-invalid",ae.value),e("invalid-date",ae.value)):(s.value[0]=ke(ae.value),e("range-start",s.value[0]))},je=(ae=!0)=>t.enableSeconds?Array.isArray(u.seconds)?ae?u.seconds[0]:u.seconds[1]:u.seconds:0,nt=ae=>{s.value[ae]=to(s.value[ae],u.hours[ae],u.minutes[ae],je(ae!==1))},et=()=>{var ae,Te;s.value[0]&&s.value[1]&&+((ae=s.value)==null?void 0:ae[0])>+((Te=s.value)==null?void 0:Te[1])&&(s.value.reverse(),e("range-start",s.value[0]),e("range-end",s.value[1]))},Jt=()=>{s.value.length&&(s.value[0]&&!s.value[1]?nt(0):(nt(0),nt(1),i()),et(),l.value=s.value.slice(),kf(s.value,e,t.autoApply,t.modelAuto))},zt=(ae,Te=!1)=>{if(w(ae.value)||!ae.current&&t.hideOffsetDates)return e("invalid-date",ae.value);if(o.value=JSON.parse(JSON.stringify(ae)),!p.value.enabled)return Q(ae);S0(u.hours)&&S0(u.minutes)&&!x.value.enabled&&(We(ae,Te),Jt())},gn=(ae,Te)=>{var he;R(ae,Te.month,Te.year,!0),f.value.count&&!f.value.solo&&de(ae),e("update-month-year",{instance:ae,month:Te.month,year:Te.year}),n(f.value.solo?ae:void 0);const Ae=(he=t.flow)!=null&&he.length?t.flow[t.flowStep]:void 0;!Te.fromNav&&(Ae===jn.month||Ae===jn.year)&&i()},Ut=(ae,Te)=>{wS({value:ae,modelValue:l,range:p.value.enabled,timezone:Te?void 0:v.value.timezone}),z(),t.multiCalendars&&Rn().then(()=>H(!0))},Ci=()=>{const ae=B_(ke(),v.value);p.value.enabled?l.value&&Array.isArray(l.value)&&l.value[0]?l.value=tn(ae,l.value[0])?[ae,l.value[0]]:[l.value[0],ae]:l.value=[ae]:l.value=ae,z()},qi=()=>{if(Array.isArray(l.value))if(x.value.enabled){const ae=Qt();l.value[l.value.length-1]=T(ae)}else l.value=l.value.map((ae,Te)=>ae&&T(ae,Te));else l.value=T(l.value);e("time-update")},Qt=()=>Array.isArray(l.value)&&l.value.length?l.value[l.value.length-1]:null;return{calendars:c,modelValue:l,month:ne,year:N,time:u,disabledTimesConfig:Y,today:d,validateTime:V,getCalendarDays:se,getMarker:K,handleScroll:fe,handleSwipe:O,handleArrow:S,selectDate:zt,updateMonthYear:gn,presetDate:Ut,selectCurrentDate:Ci,updateTime:(ae,Te=!0,he=!1)=>{k(ae,Te,he,qi)},assignMonthAndYear:ie}},w4={key:0},x4=fn({__name:"DatePicker",props:{..._s},emits:["tooltip-open","tooltip-close","mount","update:internal-model-value","update-flow-step","reset-flow","auto-apply","focus-menu","select-date","range-start","range-end","invalid-fixed-range","time-update","am-pm-change","time-picker-open","time-picker-close","recalculate-position","update-month-year","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(t,{expose:e,emit:n}){const i=n,s=t,{calendars:r,month:o,year:a,modelValue:l,time:c,disabledTimesConfig:u,today:d,validateTime:f,getCalendarDays:g,getMarker:p,handleArrow:m,handleScroll:v,handleSwipe:y,selectDate:x,updateMonthYear:E,presetDate:w,selectCurrentDate:b,updateTime:C,assignMonthAndYear:k}=b4(s,i,ce,ie),T=va(),{setHoverDate:A,getDayClassData:I,clearHoverDate:V}=N4(l,s),{defaultedMultiCalendars:Y}=Kt(s),ne=me([]),N=me([]),B=me(null),R=Pi(T,"calendar"),z=Pi(T,"monthYear"),X=Pi(T,"timePicker"),J=fe=>{s.shadow||i("mount",fe)};Zt(r,()=>{s.shadow||setTimeout(()=>{i("recalculate-position")},0)},{deep:!0}),Zt(Y,(fe,S)=>{fe.count-S.count>0&&k()},{deep:!0});const H=ve(()=>fe=>g(o.value(fe),a.value(fe)).map(S=>({...S,days:S.days.map(O=>(O.marker=p(O),O.classData=I(O),O))})));function ce(fe){var S;fe||fe===0?(S=N.value[fe])==null||S.triggerTransition(o.value(fe),a.value(fe)):N.value.forEach((O,K)=>O.triggerTransition(o.value(K),a.value(K)))}function ie(){i("update-flow-step")}const te=(fe,S=!1)=>{x(fe,S),s.spaceConfirm&&i("select-date")},D=(fe,S,O=0)=>{var K;(K=ne.value[O])==null||K.toggleMonthPicker(fe,S)},ee=(fe,S,O=0)=>{var K;(K=ne.value[O])==null||K.toggleYearPicker(fe,S)},ue=(fe,S,O)=>{var K;(K=B.value)==null||K.toggleTimePicker(fe,S,O)},L=(fe,S)=>{var O;if(!s.range){const K=l.value?l.value:d,U=S?new Date(S):K,oe=fe?ps(U,{weekStartsOn:1}):UC(U,{weekStartsOn:1});x({value:oe,current:at(U)===o.value(0),text:"",classData:{}}),(O=document.getElementById(vS(oe)))==null||O.focus()}},le=fe=>{var S;(S=ne.value[0])==null||S.handleMonthYearChange(fe,!0)},de=fe=>{E(0,{month:o.value(0),year:a.value(0)+(fe?1:-1),fromNav:!0})},xe=(fe,S)=>{fe===jn.time&&i(`time-picker-${S?"open":"close"}`),i("overlay-toggle",{open:S,overlay:fe})},W=fe=>{i("overlay-toggle",{open:!1,overlay:fe}),i("focus-menu")};return e({clearHoverDate:V,presetDate:w,selectCurrentDate:b,toggleMonthPicker:D,toggleYearPicker:ee,toggleTimePicker:ue,handleArrow:m,updateMonthYear:E,getSidebarProps:()=>({modelValue:l,month:o,year:a,time:c,updateTime:C,updateMonthYear:E,selectDate:x,presetDate:w}),changeMonth:le,changeYear:de,selectWeekDate:L}),(fe,S)=>(P(),F(Ie,null,[$(Sf,{"multi-calendars":Z(Y).count,collapse:fe.collapse},{default:Me(({instance:O,index:K})=>[fe.disableMonthYearSelect?re("",!0):(P(),Ee(h4,xn({key:0,ref:U=>{U&&(ne.value[K]=U)},months:Z(aS)(fe.formatLocale,fe.locale,fe.monthNameFormat),years:Z(V_)(fe.yearRange,fe.locale,fe.reverseYears),month:Z(o)(O),year:Z(a)(O),instance:O},fe.$props,{onMount:S[0]||(S[0]=U=>J(Z(ia).header)),onResetFlow:S[1]||(S[1]=U=>fe.$emit("reset-flow")),onUpdateMonthYear:U=>Z(E)(O,U),onOverlayClosed:W,onOverlayOpened:S[2]||(S[2]=U=>fe.$emit("overlay-toggle",{open:!0,overlay:U}))}),Xn({_:2},[Ge(Z(z),(U,oe)=>({name:U,fn:Me(j=>[Be(fe.$slots,U,In(ii(j)))])}))]),1040,["months","years","month","year","instance","onUpdateMonthYear"])),$(y4,xn({ref:U=>{U&&(N.value[K]=U)},"mapped-dates":H.value(O),month:Z(o)(O),year:Z(a)(O),instance:O},fe.$props,{onSelectDate:U=>Z(x)(U,O!==1),onHandleSpace:U=>te(U,O!==1),onSetHoverDate:S[3]||(S[3]=U=>Z(A)(U)),onHandleScroll:U=>Z(v)(U,O),onHandleSwipe:U=>Z(y)(U,O),onMount:S[4]||(S[4]=U=>J(Z(ia).calendar)),onResetFlow:S[5]||(S[5]=U=>fe.$emit("reset-flow")),onTooltipOpen:S[6]||(S[6]=U=>fe.$emit("tooltip-open",U)),onTooltipClose:S[7]||(S[7]=U=>fe.$emit("tooltip-close",U))}),Xn({_:2},[Ge(Z(R),(U,oe)=>({name:U,fn:Me(j=>[Be(fe.$slots,U,In(ii({...j})))])}))]),1040,["mapped-dates","month","year","instance","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])]),_:3},8,["multi-calendars","collapse"]),fe.enableTimePicker?(P(),F("div",w4,[fe.$slots["time-picker"]?Be(fe.$slots,"time-picker",In(xn({key:0},{time:Z(c),updateTime:Z(C)}))):(P(),Ee(CS,xn({key:1,ref_key:"timePickerRef",ref:B},fe.$props,{hours:Z(c).hours,minutes:Z(c).minutes,seconds:Z(c).seconds,"internal-model-value":fe.internalModelValue,"disabled-times-config":Z(u),"validate-time":Z(f),onMount:S[8]||(S[8]=O=>J(Z(ia).timePicker)),"onUpdate:hours":S[9]||(S[9]=O=>Z(C)(O)),"onUpdate:minutes":S[10]||(S[10]=O=>Z(C)(O,!1)),"onUpdate:seconds":S[11]||(S[11]=O=>Z(C)(O,!1,!0)),onResetFlow:S[12]||(S[12]=O=>fe.$emit("reset-flow")),onOverlayClosed:S[13]||(S[13]=O=>xe(O,!1)),onOverlayOpened:S[14]||(S[14]=O=>xe(O,!0)),onAmPmChange:S[15]||(S[15]=O=>fe.$emit("am-pm-change",O))}),Xn({_:2},[Ge(Z(X),(O,K)=>({name:O,fn:Me(U=>[Be(fe.$slots,O,In(ii(U)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"]))])):re("",!0)],64))}}),E4=(t,e)=>{const n=me(),{defaultedMultiCalendars:i,defaultedConfig:s,defaultedHighlight:r,defaultedRange:o,propDates:a,defaultedFilters:l,defaultedMultiDates:c}=Kt(t),{modelValue:u,year:d,month:f,calendars:g}=Hu(t,e),{isDisabled:p}=bo(t),{selectYear:m,groupedYears:v,showYearPicker:y,isDisabled:x,toggleYearPicker:E,handleYearSelect:w,handleYear:b}=ES({modelValue:u,multiCalendars:i,range:o,highlight:r,calendars:g,propDates:a,month:f,year:d,filters:l,props:t,emit:e}),C=(B,R)=>[B,R].map(z=>Ls(z,"MMMM",{locale:t.formatLocale})).join("-"),k=ve(()=>B=>u.value?Array.isArray(u.value)?u.value.some(R=>m0(B,R)):m0(u.value,B):!1),T=B=>{if(o.value.enabled){if(Array.isArray(u.value)){const R=ct(B,u.value[0])||ct(B,u.value[1]);return Ef(u.value,n.value,B)&&!R}return!1}return!1},A=(B,R)=>B.quarter===u0(R)&&B.year===Ze(R),I=B=>typeof r.value=="function"?r.value({quarter:u0(B),year:Ze(B)}):!!r.value.quarters.find(R=>A(R,B)),V=ve(()=>B=>{const R=Dt(new Date,{year:d.value(B)});return iF({start:lu(R),end:KC(R)}).map(z=>{const X=Xo(z),J=d0(z),H=p(z),ce=T(X),ie=I(X);return{text:C(X,J),value:X,active:k.value(X),highlighted:ie,disabled:H,isBetween:ce}})}),Y=B=>{H_(B,u,c.value.limit),e("auto-apply",!0)},ne=B=>{u.value=j_(u,B,e),kf(u.value,e,t.autoApply,t.modelAuto)},N=B=>{u.value=B,e("auto-apply")};return{defaultedConfig:s,defaultedMultiCalendars:i,groupedYears:v,year:d,isDisabled:x,quarters:V,showYearPicker:y,modelValue:u,setHoverDate:B=>{n.value=B},selectYear:m,selectQuarter:(B,R,z)=>{if(!z)return g.value[R].month=at(d0(B)),c.value.enabled?Y(B):o.value.enabled?ne(B):N(B)},toggleYearPicker:E,handleYearSelect:w,handleYear:b}},C4={class:"dp--quarter-items"},S4=["data-test","disabled","onClick","onMouseover"],k4=fn({compatConfig:{MODE:3},__name:"QuarterPicker",props:{..._s},emits:["update:internal-model-value","reset-flow","overlay-closed","auto-apply","range-start","range-end","overlay-toggle","update-month-year"],setup(t,{expose:e,emit:n}){const i=n,s=t,r=va(),o=Pi(r,"yearMode"),{defaultedMultiCalendars:a,defaultedConfig:l,groupedYears:c,year:u,isDisabled:d,quarters:f,modelValue:g,showYearPicker:p,setHoverDate:m,selectQuarter:v,toggleYearPicker:y,handleYearSelect:x,handleYear:E}=E4(s,i);return e({getSidebarProps:()=>({modelValue:g,year:u,selectQuarter:v,handleYearSelect:x,handleYear:E})}),(w,b)=>(P(),Ee(Sf,{"multi-calendars":Z(a).count,collapse:w.collapse,stretch:""},{default:Me(({instance:C})=>[h("div",{class:"dp-quarter-picker-wrap",style:Mn({minHeight:`${Z(l).modeHeight}px`})},[w.$slots["top-extra"]?Be(w.$slots,"top-extra",{key:0,value:w.internalModelValue}):re("",!0),h("div",null,[$(bS,xn(w.$props,{items:Z(c)(C),instance:C,"show-year-picker":Z(p)[C],year:Z(u)(C),"is-disabled":k=>Z(d)(C,k),onHandleYear:k=>Z(E)(C,k),onYearSelect:k=>Z(x)(k,C),onToggleYearPicker:k=>Z(y)(C,k?.flow,k?.show)}),Xn({_:2},[Ge(Z(o),(k,T)=>({name:k,fn:Me(A=>[Be(w.$slots,k,In(ii(A)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),h("div",C4,[(P(!0),F(Ie,null,Ge(Z(f)(C),(k,T)=>(P(),F("div",{key:T},[h("button",{type:"button",class:Se(["dp--qr-btn",{"dp--qr-btn-active":k.active,"dp--qr-btn-between":k.isBetween,"dp--qr-btn-disabled":k.disabled,"dp--highlighted":k.highlighted}]),"data-test":k.value,disabled:k.disabled,onClick:A=>Z(v)(k.value,C,k.disabled),onMouseover:A=>Z(m)(k.value)},[w.$slots.quarter?Be(w.$slots,"quarter",{key:0,value:k.value,text:k.text}):(P(),F(Ie,{key:1},[Fe(pe(k.text),1)],64))],42,S4)]))),128))])],4)]),_:3},8,["multi-calendars","collapse"]))}}),T4=["id","tabindex","role","aria-label"],A4={key:0,class:"dp--menu-load-container"},P4={key:1,class:"dp--menu-header"},M4={key:0,class:"dp__sidebar_left"},I4=["data-test","onClick","onKeydown"],D4={key:2,class:"dp__sidebar_right"},R4={key:3,class:"dp__action_extra"},k0=fn({compatConfig:{MODE:3},__name:"DatepickerMenu",props:{...Cf,shadow:{type:Boolean,default:!1},openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},getInputRect:{type:Function,default:()=>({})},isTextInputDate:{type:Boolean,default:!1}},emits:["close-picker","select-date","auto-apply","time-update","flow-step","update-month-year","invalid-select","update:internal-model-value","recalculate-position","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(t,{expose:e,emit:n}){const i=n,s=t,r=me(null),o=ve(()=>{const{openOnTop:j,...se}=s;return{...se,flowStep:A.value,collapse:s.collapse,noOverlayFocus:s.noOverlayFocus,menuWrapRef:r.value}}),{setMenuFocused:a,setShiftKey:l,control:c}=yS(),u=va(),{defaultedTextInput:d,defaultedInline:f,defaultedConfig:g,defaultedUI:p}=Kt(s),m=me(null),v=me(0),y=me(null),x=me(!1),E=me(null);Vt(()=>{if(!s.shadow){x.value=!0,w(),window.addEventListener("resize",w);const j=bn(r);if(j&&!d.value.enabled&&!f.value.enabled&&(a(!0),R()),j){const se=Q=>{g.value.allowPreventDefault&&Q.preventDefault(),eo(Q,g.value,!0)};j.addEventListener("pointerdown",se),j.addEventListener("mousedown",se)}}}),_o(()=>{window.removeEventListener("resize",w)});const w=()=>{const j=bn(y);j&&(v.value=j.getBoundingClientRect().width)},{arrowRight:b,arrowLeft:C,arrowDown:k,arrowUp:T}=yo(),{flowStep:A,updateFlowStep:I,childMount:V,resetFlow:Y,handleFlow:ne}=F4(s,i,E),N=ve(()=>s.monthPicker?jB:s.yearPicker?UB:s.timePicker?o4:s.quarterPicker?k4:x4),B=ve(()=>{var j;if(g.value.arrowLeft)return g.value.arrowLeft;const se=(j=r.value)==null?void 0:j.getBoundingClientRect(),Q=s.getInputRect();return Q?.width=(se?.right??0)&&Q?.width{const j=bn(r);j&&j.focus({preventScroll:!0})},z=ve(()=>{var j;return((j=E.value)==null?void 0:j.getSidebarProps())||{}}),X=()=>{s.openOnTop&&i("recalculate-position")},J=Pi(u,"action"),H=ve(()=>s.monthPicker||s.yearPicker?Pi(u,"monthYear"):s.timePicker?Pi(u,"timePicker"):Pi(u,"shared")),ce=ve(()=>s.openOnTop?"dp__arrow_bottom":"dp__arrow_top"),ie=ve(()=>({dp__menu_disabled:s.disabled,dp__menu_readonly:s.readonly,"dp-menu-loading":s.loading})),te=ve(()=>({dp__menu:!0,dp__menu_index:!f.value.enabled,dp__relative:f.value.enabled,...p.value.menu??{}})),D=j=>{eo(j,g.value,!0)},ee=()=>{s.escClose&&i("close-picker")},ue=j=>{if(s.arrowNavigation){if(j===Qn.up)return T();if(j===Qn.down)return k();if(j===Qn.left)return C();if(j===Qn.right)return b()}else j===Qn.left||j===Qn.up?W("handleArrow",Qn.left,0,j===Qn.up):W("handleArrow",Qn.right,0,j===Qn.down)},L=j=>{l(j.shiftKey),!s.disableMonthYearSelect&&j.code===Nt.tab&&j.target.classList.contains("dp__menu")&&c.value.shiftKeyInMenu&&(j.preventDefault(),eo(j,g.value,!0),i("close-picker"))},le=()=>{R(),i("time-picker-close")},de=j=>{var se,Q,ge;(se=E.value)==null||se.toggleTimePicker(!1,!1),(Q=E.value)==null||Q.toggleMonthPicker(!1,!1,j),(ge=E.value)==null||ge.toggleYearPicker(!1,!1,j)},xe=(j,se=0)=>{var Q,ge,be;return j==="month"?(Q=E.value)==null?void 0:Q.toggleMonthPicker(!1,!0,se):j==="year"?(ge=E.value)==null?void 0:ge.toggleYearPicker(!1,!0,se):j==="time"?(be=E.value)==null?void 0:be.toggleTimePicker(!0,!1):de(se)},W=(j,...se)=>{var Q,ge;(Q=E.value)!=null&&Q[j]&&((ge=E.value)==null||ge[j](...se))},fe=()=>{W("selectCurrentDate")},S=(j,se)=>{W("presetDate",j,se)},O=()=>{W("clearHoverDate")},K=(j,se)=>{W("updateMonthYear",j,se)},U=(j,se)=>{j.preventDefault(),ue(se)},oe=j=>{var se,Q,ge;if(L(j),j.key===Nt.home||j.key===Nt.end)return W("selectWeekDate",j.key===Nt.home,j.target.getAttribute("id"));switch((j.key===Nt.pageUp||j.key===Nt.pageDown)&&(j.shiftKey?(W("changeYear",j.key===Nt.pageUp),(se=rm(r.value,"overlay-year"))==null||se.focus()):(W("changeMonth",j.key===Nt.pageUp),(Q=rm(r.value,j.key===Nt.pageUp?"action-prev":"action-next"))==null||Q.focus()),j.target.getAttribute("id")&&((ge=r.value)==null||ge.focus({preventScroll:!0}))),j.key){case Nt.esc:return ee();case Nt.arrowLeft:return U(j,Qn.left);case Nt.arrowRight:return U(j,Qn.right);case Nt.arrowUp:return U(j,Qn.up);case Nt.arrowDown:return U(j,Qn.down);default:return}};return e({updateMonthYear:K,switchView:xe,handleFlow:ne}),(j,se)=>{var Q,ge,be;return P(),F("div",{id:j.uid?`dp-menu-${j.uid}`:void 0,ref_key:"dpMenuRef",ref:r,tabindex:Z(f).enabled?void 0:"0",role:Z(f).enabled?void 0:"dialog","aria-label":(Q=j.ariaLabels)==null?void 0:Q.menu,class:Se(te.value),style:Mn({"--dp-arrow-left":B.value}),onMouseleave:O,onClick:D,onKeydown:oe},[(j.disabled||j.readonly)&&Z(f).enabled||j.loading?(P(),F("div",{key:0,class:Se(ie.value)},[j.loading?(P(),F("div",A4,se[19]||(se[19]=[h("span",{class:"dp--menu-loader"},null,-1)]))):re("",!0)],2)):re("",!0),j.$slots["menu-header"]?(P(),F("div",P4,[Be(j.$slots,"menu-header")])):re("",!0),!Z(f).enabled&&!j.teleportCenter?(P(),F("div",{key:2,class:Se(ce.value)},null,2)):re("",!0),h("div",{ref_key:"innerMenuRef",ref:y,class:Se({dp__menu_content_wrapper:((ge=j.presetDates)==null?void 0:ge.length)||!!j.$slots["left-sidebar"]||!!j.$slots["right-sidebar"],"dp--menu-content-wrapper-collapsed":t.collapse&&(((be=j.presetDates)==null?void 0:be.length)||!!j.$slots["left-sidebar"]||!!j.$slots["right-sidebar"])}),style:Mn({"--dp-menu-width":`${v.value}px`})},[j.$slots["left-sidebar"]?(P(),F("div",M4,[Be(j.$slots,"left-sidebar",In(ii(z.value)))])):re("",!0),j.presetDates.length?(P(),F("div",{key:1,class:Se({"dp--preset-dates-collapsed":t.collapse,"dp--preset-dates":!0})},[(P(!0),F(Ie,null,Ge(j.presetDates,(we,Pe)=>(P(),F(Ie,{key:Pe},[we.slot?Be(j.$slots,we.slot,{key:0,presetDate:S,label:we.label,value:we.value}):(P(),F("button",{key:1,type:"button",style:Mn(we.style||{}),class:Se(["dp__btn dp--preset-range",{"dp--preset-range-collapsed":t.collapse}]),"data-test":we.testId??void 0,onClick:ru(De=>S(we.value,we.noTz),["prevent"]),onKeydown:De=>Z(si)(De,()=>S(we.value,we.noTz),!0)},pe(we.label),47,I4))],64))),128))],2)):re("",!0),h("div",{ref_key:"calendarWrapperRef",ref:m,class:"dp__instance_calendar",role:"document"},[(P(),Ee(_a(N.value),xn({ref_key:"dynCmpRef",ref:E},o.value,{"flow-step":Z(A),onMount:Z(V),onUpdateFlowStep:Z(I),onResetFlow:Z(Y),onFocusMenu:R,onSelectDate:se[0]||(se[0]=we=>j.$emit("select-date")),onDateUpdate:se[1]||(se[1]=we=>j.$emit("date-update",we)),onTooltipOpen:se[2]||(se[2]=we=>j.$emit("tooltip-open",we)),onTooltipClose:se[3]||(se[3]=we=>j.$emit("tooltip-close",we)),onAutoApply:se[4]||(se[4]=we=>j.$emit("auto-apply",we)),onRangeStart:se[5]||(se[5]=we=>j.$emit("range-start",we)),onRangeEnd:se[6]||(se[6]=we=>j.$emit("range-end",we)),onInvalidFixedRange:se[7]||(se[7]=we=>j.$emit("invalid-fixed-range",we)),onTimeUpdate:se[8]||(se[8]=we=>j.$emit("time-update")),onAmPmChange:se[9]||(se[9]=we=>j.$emit("am-pm-change",we)),onTimePickerOpen:se[10]||(se[10]=we=>j.$emit("time-picker-open",we)),onTimePickerClose:le,onRecalculatePosition:X,onUpdateMonthYear:se[11]||(se[11]=we=>j.$emit("update-month-year",we)),onAutoApplyInvalid:se[12]||(se[12]=we=>j.$emit("auto-apply-invalid",we)),onInvalidDate:se[13]||(se[13]=we=>j.$emit("invalid-date",we)),onOverlayToggle:se[14]||(se[14]=we=>j.$emit("overlay-toggle",we)),"onUpdate:internalModelValue":se[15]||(se[15]=we=>j.$emit("update:internal-model-value",we))}),Xn({_:2},[Ge(H.value,(we,Pe)=>({name:we,fn:Me(De=>[Be(j.$slots,we,In(ii({...De})))])}))]),1040,["flow-step","onMount","onUpdateFlowStep","onResetFlow"]))],512),j.$slots["right-sidebar"]?(P(),F("div",D4,[Be(j.$slots,"right-sidebar",In(ii(z.value)))])):re("",!0),j.$slots["action-extra"]?(P(),F("div",R4,[j.$slots["action-extra"]?Be(j.$slots,"action-extra",{key:0,selectCurrentDate:fe}):re("",!0)])):re("",!0)],6),!j.autoApply||Z(g).keepActionRow?(P(),Ee(NB,xn({key:3,"menu-mount":x.value},o.value,{"calendar-width":v.value,onClosePicker:se[16]||(se[16]=we=>j.$emit("close-picker")),onSelectDate:se[17]||(se[17]=we=>j.$emit("select-date")),onInvalidSelect:se[18]||(se[18]=we=>j.$emit("invalid-select")),onSelectNow:fe}),Xn({_:2},[Ge(Z(J),(we,Pe)=>({name:we,fn:Me(De=>[Be(j.$slots,we,In(ii({...De})))])}))]),1040,["menu-mount","calendar-width"])):re("",!0)],46,T4)}}});var qa=(t=>(t.center="center",t.left="left",t.right="right",t))(qa||{});const $4=({menuRef:t,menuRefInner:e,inputRef:n,pickerWrapperRef:i,inline:s,emit:r,props:o,slots:a})=>{const{defaultedConfig:l}=Kt(o),c=me({}),u=me(!1),d=me({top:"0",left:"0"}),f=me(!1),g=tu(o,"teleportCenter");Zt(g,()=>{d.value=JSON.parse(JSON.stringify({})),b()});const p=R=>{if(o.teleport){const z=R.getBoundingClientRect();return{left:z.left+window.scrollX,top:z.top+window.scrollY}}return{top:0,left:0}},m=(R,z)=>{d.value.left=`${R+z-c.value.width}px`},v=R=>{d.value.left=`${R}px`},y=(R,z)=>{o.position===qa.left&&v(R),o.position===qa.right&&m(R,z),o.position===qa.center&&(d.value.left=`${R+z/2-c.value.width/2}px`)},x=R=>{const{width:z,height:X}=R.getBoundingClientRect(),{top:J,left:H}=o.altPosition?o.altPosition(R):p(R);return{top:+J,left:+H,width:z,height:X}},E=()=>{d.value.left="50%",d.value.top="50%",d.value.transform="translate(-50%, -50%)",d.value.position="fixed",delete d.value.opacity},w=()=>{const R=bn(n),{top:z,left:X,transform:J}=o.altPosition(R);d.value={top:`${z}px`,left:`${X}px`,transform:J??""}},b=(R=!0)=>{var z;if(!s.value.enabled){if(g.value)return E();if(o.altPosition!==null)return w();if(R){const X=o.teleport?(z=e.value)==null?void 0:z.$el:t.value;X&&(c.value=X.getBoundingClientRect()),r("recalculate-position")}return Y()}},C=({inputEl:R,left:z,width:X})=>{window.screen.width>768&&!u.value&&y(z,X),A(R)},k=R=>{const{top:z,left:X,height:J,width:H}=x(R);d.value.top=`${J+z+ +o.offset}px`,f.value=!1,u.value||(d.value.left=`${X+H/2-c.value.width/2}px`),C({inputEl:R,left:X,width:H})},T=R=>{const{top:z,left:X,width:J}=x(R);d.value.top=`${z-+o.offset-c.value.height}px`,f.value=!0,C({inputEl:R,left:X,width:J})},A=R=>{if(o.autoPosition){const{left:z,width:X}=x(R),{left:J,right:H}=c.value;if(!u.value){if(Math.abs(J)!==Math.abs(H)){if(J<=0)return u.value=!0,v(z);if(H>=document.documentElement.clientWidth)return u.value=!0,m(z,X)}return y(z,X)}}},I=()=>{const R=bn(n);if(R){const{height:z}=c.value,{top:X,height:J}=R.getBoundingClientRect(),H=window.innerHeight-X-J,ce=X;return z<=H?Ho.bottom:z>H&&z<=ce?Ho.top:H>=ce?Ho.bottom:Ho.top}return Ho.bottom},V=R=>I()===Ho.bottom?k(R):T(R),Y=()=>{const R=bn(n);if(R)return o.autoPosition?V(R):k(R)},ne=function(R){if(R){const z=R.scrollHeight>R.clientHeight,X=window.getComputedStyle(R).overflowY.indexOf("hidden")!==-1;return z&&!X}return!0},N=function(R){return!R||R===document.body||R.nodeType===Node.DOCUMENT_FRAGMENT_NODE?window:ne(R)?R:N(R.assignedSlot&&l.value.shadowDom?R.assignedSlot.parentNode:R.parentNode)},B=R=>{if(R)switch(o.position){case qa.left:return{left:0,transform:"translateX(0)"};case qa.right:return{left:`${R.width}px`,transform:"translateX(-100%)"};default:return{left:`${R.width/2}px`,transform:"translateX(-50%)"}}return{}};return{openOnTop:f,menuStyle:d,xCorrect:u,setMenuPosition:b,getScrollableParent:N,shadowRender:(R,z)=>{var X,J,H;const ce=document.createElement("div"),ie=(X=bn(n))==null?void 0:X.getBoundingClientRect();ce.setAttribute("id","dp--temp-container");const te=(J=i.value)!=null&&J.clientWidth?i.value:document.body;te.append(ce);const D=B(ie),ee=l.value.shadowDom?Object.keys(a).filter(L=>["right-sidebar","left-sidebar","top-extra","action-extra"].includes(L)):Object.keys(a),ue=ha(R,{...z,shadow:!0,style:{opacity:0,position:"absolute",...D}},Object.fromEntries(ee.map(L=>[L,a[L]])));Fb(ue,ce),c.value=(H=ue.el)==null?void 0:H.getBoundingClientRect(),Fb(null,ce),te.removeChild(ce)}}},Mr=[{name:"clock-icon",use:["time","calendar","shared"]},{name:"arrow-left",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-right",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-up",use:["time","calendar","month-year","shared"]},{name:"arrow-down",use:["time","calendar","month-year","shared"]},{name:"calendar-icon",use:["month-year","time","calendar","shared","year-mode"]},{name:"day",use:["calendar","shared"]},{name:"month-overlay-value",use:["calendar","month-year","shared"]},{name:"year-overlay-value",use:["calendar","month-year","shared","year-mode"]},{name:"year-overlay",use:["month-year","shared"]},{name:"month-overlay",use:["month-year","shared"]},{name:"month-overlay-header",use:["month-year","shared"]},{name:"year-overlay-header",use:["month-year","shared"]},{name:"hours-overlay-value",use:["calendar","time","shared"]},{name:"hours-overlay-header",use:["calendar","time","shared"]},{name:"minutes-overlay-value",use:["calendar","time","shared"]},{name:"minutes-overlay-header",use:["calendar","time","shared"]},{name:"seconds-overlay-value",use:["calendar","time","shared"]},{name:"seconds-overlay-header",use:["calendar","time","shared"]},{name:"hours",use:["calendar","time","shared"]},{name:"minutes",use:["calendar","time","shared"]},{name:"month",use:["calendar","month-year","shared"]},{name:"year",use:["calendar","month-year","shared","year-mode"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar","shared"]},{name:"marker-tooltip",use:["calendar","shared"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time","shared"]},{name:"am-pm-button",use:["calendar","time","shared"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year","shared"]},{name:"time-picker",use:["menu","shared"]},{name:"action-row",use:["action"]},{name:"marker",use:["calendar","shared"]},{name:"quarter",use:["shared"]},{name:"top-extra",use:["shared","month-year"]},{name:"tp-inline-arrow-up",use:["shared","time"]},{name:"tp-inline-arrow-down",use:["shared","time"]},{name:"menu-header",use:["menu"]}],L4=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],O4={all:()=>Mr,monthYear:()=>Mr.filter(t=>t.use.includes("month-year")),input:()=>L4,timePicker:()=>Mr.filter(t=>t.use.includes("time")),action:()=>Mr.filter(t=>t.use.includes("action")),calendar:()=>Mr.filter(t=>t.use.includes("calendar")),menu:()=>Mr.filter(t=>t.use.includes("menu")),shared:()=>Mr.filter(t=>t.use.includes("shared")),yearMode:()=>Mr.filter(t=>t.use.includes("year-mode"))},Pi=(t,e,n)=>{const i=[];return O4[e]().forEach(s=>{t[s.name]&&i.push(s.name)}),n!=null&&n.length&&n.forEach(s=>{s.slot&&i.push(s.slot)}),i},Yu=t=>{const e=ve(()=>i=>t.value?i?t.value.open:t.value.close:""),n=ve(()=>i=>t.value?i?t.value.menuAppearTop:t.value.menuAppearBottom:"");return{transitionName:e,showTransition:!!t.value,menuTransition:n}},Hu=(t,e,n)=>{const{defaultedRange:i,defaultedTz:s}=Kt(t),r=ke(xi(ke(),s.value.timezone)),o=me([{month:at(r),year:Ze(r)}]),a=f=>{const g={hours:vr(r),minutes:ao(r),seconds:0};return i.value.enabled?[g[f],g[f]]:g[f]},l=Ei({hours:a("hours"),minutes:a("minutes"),seconds:a("seconds")});Zt(i,(f,g)=>{f.enabled!==g.enabled&&(l.hours=a("hours"),l.minutes=a("minutes"),l.seconds=a("seconds"))},{deep:!0});const c=ve({get:()=>t.internalModelValue,set:f=>{!t.readonly&&!t.disabled&&e("update:internal-model-value",f)}}),u=ve(()=>f=>o.value[f]?o.value[f].month:0),d=ve(()=>f=>o.value[f]?o.value[f].year:0);return Zt(c,(f,g)=>{n&&JSON.stringify(f??{})!==JSON.stringify(g??{})&&n()},{deep:!0}),{calendars:o,time:l,modelValue:c,month:u,year:d,today:r}},N4=(t,e)=>{const{defaultedMultiCalendars:n,defaultedMultiDates:i,defaultedUI:s,defaultedHighlight:r,defaultedTz:o,propDates:a,defaultedRange:l}=Kt(e),{isDisabled:c}=bo(e),u=me(null),d=me(xi(new Date,o.value.timezone)),f=D=>{!D.current&&e.hideOffsetDates||(u.value=D.value)},g=()=>{u.value=null},p=D=>Array.isArray(t.value)&&l.value.enabled&&t.value[0]&&u.value?D?ln(u.value,t.value[0]):tn(u.value,t.value[0]):!0,m=(D,ee)=>{const ue=()=>t.value?ee?t.value[0]||null:t.value[1]:null,L=t.value&&Array.isArray(t.value)?ue():null;return ct(ke(D.value),L)},v=D=>{const ee=Array.isArray(t.value)?t.value[0]:null;return D?!tn(u.value??null,ee):!0},y=(D,ee=!0)=>(l.value.enabled||e.weekPicker)&&Array.isArray(t.value)&&t.value.length===2?e.hideOffsetDates&&!D.current?!1:ct(ke(D.value),t.value[ee?0:1]):l.value.enabled?m(D,ee)&&v(ee)||ct(D.value,Array.isArray(t.value)?t.value[0]:null)&&p(ee):!1,x=(D,ee)=>{if(Array.isArray(t.value)&&t.value[0]&&t.value.length===1){const ue=ct(D.value,u.value);return ee?ln(t.value[0],D.value)&&ue:tn(t.value[0],D.value)&&ue}return!1},E=D=>!t.value||e.hideOffsetDates&&!D.current?!1:l.value.enabled?e.modelAuto&&Array.isArray(t.value)?ct(D.value,t.value[0]?t.value[0]:d.value):!1:i.value.enabled&&Array.isArray(t.value)?t.value.some(ee=>ct(ee,D.value)):ct(D.value,t.value?t.value:d.value),w=D=>{if(l.value.autoRange||e.weekPicker){if(u.value){if(e.hideOffsetDates&&!D.current)return!1;const ee=rs(u.value,+l.value.autoRange),ue=nr(ke(u.value),e.weekStart);return e.weekPicker?ct(ue[1],ke(D.value)):ct(ee,ke(D.value))}return!1}return!1},b=D=>{if(l.value.autoRange||e.weekPicker){if(u.value){const ee=rs(u.value,+l.value.autoRange);if(e.hideOffsetDates&&!D.current)return!1;const ue=nr(ke(u.value),e.weekStart);return e.weekPicker?ln(D.value,ue[0])&&tn(D.value,ue[1]):ln(D.value,u.value)&&tn(D.value,ee)}return!1}return!1},C=D=>{if(l.value.autoRange||e.weekPicker){if(u.value){if(e.hideOffsetDates&&!D.current)return!1;const ee=nr(ke(u.value),e.weekStart);return e.weekPicker?ct(ee[0],D.value):ct(u.value,D.value)}return!1}return!1},k=D=>Ef(t.value,u.value,D.value),T=()=>e.modelAuto&&Array.isArray(e.internalModelValue)?!!e.internalModelValue[0]:!1,A=()=>e.modelAuto?lS(e.internalModelValue):!0,I=D=>{if(e.weekPicker)return!1;const ee=l.value.enabled?!y(D)&&!y(D,!1):!0;return!c(D.value)&&!E(D)&&!(!D.current&&e.hideOffsetDates)&&ee},V=D=>l.value.enabled?e.modelAuto?T()&&E(D):!1:E(D),Y=D=>r.value?lB(D.value,a.value.highlight):!1,ne=D=>{const ee=c(D.value);return ee&&(typeof r.value=="function"?!r.value(D.value,ee):!r.value.options.highlightDisabled)},N=D=>{var ee;return typeof r.value=="function"?r.value(D.value):(ee=r.value.weekdays)==null?void 0:ee.includes(D.value.getDay())},B=D=>(l.value.enabled||e.weekPicker)&&(!(n.value.count>0)||D.current)&&A()&&!(!D.current&&e.hideOffsetDates)&&!E(D)?k(D):!1,R=D=>{const{isRangeStart:ee,isRangeEnd:ue}=H(D),L=l.value.enabled?ee||ue:!1;return{dp__cell_offset:!D.current,dp__pointer:!e.disabled&&!(!D.current&&e.hideOffsetDates)&&!c(D.value),dp__cell_disabled:c(D.value),dp__cell_highlight:!ne(D)&&(Y(D)||N(D))&&!V(D)&&!L&&!C(D)&&!(B(D)&&e.weekPicker)&&!ue,dp__cell_highlight_active:!ne(D)&&(Y(D)||N(D))&&V(D),dp__today:!e.noToday&&ct(D.value,d.value)&&D.current,"dp--past":tn(D.value,d.value),"dp--future":ln(D.value,d.value)}},z=D=>({dp__active_date:V(D),dp__date_hover:I(D)}),X=D=>{if(t.value&&!Array.isArray(t.value)){const ee=nr(t.value,e.weekStart);return{...ie(D),dp__range_start:ct(ee[0],D.value),dp__range_end:ct(ee[1],D.value),dp__range_between_week:ln(D.value,ee[0])&&tn(D.value,ee[1])}}return{...ie(D)}},J=D=>{if(t.value&&Array.isArray(t.value)){const ee=nr(t.value[0],e.weekStart),ue=t.value[1]?nr(t.value[1],e.weekStart):[];return{...ie(D),dp__range_start:ct(ee[0],D.value)||ct(ue[0],D.value),dp__range_end:ct(ee[1],D.value)||ct(ue[1],D.value),dp__range_between_week:ln(D.value,ee[0])&&tn(D.value,ee[1])||ln(D.value,ue[0])&&tn(D.value,ue[1]),dp__range_between:ln(D.value,ee[1])&&tn(D.value,ue[0])}}return{...ie(D)}},H=D=>{const ee=n.value.count>0?D.current&&y(D)&&A():y(D)&&A(),ue=n.value.count>0?D.current&&y(D,!1)&&A():y(D,!1)&&A();return{isRangeStart:ee,isRangeEnd:ue}},ce=D=>{const{isRangeStart:ee,isRangeEnd:ue}=H(D);return{dp__range_start:ee,dp__range_end:ue,dp__range_between:B(D),dp__date_hover:ct(D.value,u.value)&&!ee&&!ue&&!e.weekPicker,dp__date_hover_start:x(D,!0),dp__date_hover_end:x(D,!1)}},ie=D=>({...ce(D),dp__cell_auto_range:b(D),dp__cell_auto_range_start:C(D),dp__cell_auto_range_end:w(D)}),te=D=>l.value.enabled?l.value.autoRange?ie(D):e.modelAuto?{...z(D),...ce(D)}:e.weekPicker?J(D):ce(D):e.weekPicker?X(D):z(D);return{setHoverDate:f,clearHoverDate:g,getDayClassData:D=>e.hideOffsetDates&&!D.current?{}:{...R(D),...te(D),[e.dayClass?e.dayClass(D.value,e.internalModelValue):""]:!0,...s.value.calendarCell??{}}}},bo=t=>{const{defaultedFilters:e,defaultedRange:n,propDates:i,defaultedMultiDates:s}=Kt(t),r=N=>i.value.disabledDates?typeof i.value.disabledDates=="function"?i.value.disabledDates(ke(N)):!!Th(N,i.value.disabledDates):!1,o=N=>i.value.maxDate?t.yearPicker?Ze(N)>Ze(i.value.maxDate):ln(N,i.value.maxDate):!1,a=N=>i.value.minDate?t.yearPicker?Ze(N){const B=o(N),R=a(N),z=r(N),X=e.value.months.map(te=>+te).includes(at(N)),J=t.disabledWeekDays.length?t.disabledWeekDays.some(te=>+te===qF(N)):!1,H=g(N),ce=Ze(N),ie=ce<+t.yearRange[0]||ce>+t.yearRange[1];return!(B||R||z||X||ie||J||H)},c=(N,B)=>tn(...Kr(i.value.minDate,N,B))||ct(...Kr(i.value.minDate,N,B)),u=(N,B)=>ln(...Kr(i.value.maxDate,N,B))||ct(...Kr(i.value.maxDate,N,B)),d=(N,B,R)=>{let z=!1;return i.value.maxDate&&R&&u(N,B)&&(z=!0),i.value.minDate&&!R&&c(N,B)&&(z=!0),z},f=(N,B,R,z)=>{let X=!1;return z&&(i.value.minDate||i.value.maxDate)?i.value.minDate&&i.value.maxDate?X=d(N,B,R):(i.value.minDate&&c(N,B)||i.value.maxDate&&u(N,B))&&(X=!0):X=!0,X},g=N=>Array.isArray(i.value.allowedDates)&&!i.value.allowedDates.length?!0:i.value.allowedDates?!Th(N,i.value.allowedDates):!1,p=N=>!l(N),m=N=>n.value.noDisabledRange?!jC({start:N[0],end:N[1]}).some(B=>p(B)):!0,v=N=>{if(N){const B=Ze(N);return B>=+t.yearRange[0]&&B<=t.yearRange[1]}return!0},y=(N,B)=>!!(Array.isArray(N)&&N[B]&&(n.value.maxRange||n.value.minRange)&&v(N[B])),x=(N,B,R=0)=>{if(y(B,R)&&v(N)){const z=YC(N,B[R]),X=fS(B[R],N),J=X.length===1?0:X.filter(ce=>p(ce)).length,H=Math.abs(z)-(n.value.minMaxRawRange?0:J);if(n.value.minRange&&n.value.maxRange)return H>=+n.value.minRange&&H<=+n.value.maxRange;if(n.value.minRange)return H>=+n.value.minRange;if(n.value.maxRange)return H<=+n.value.maxRange}return!0},E=()=>!t.enableTimePicker||t.monthPicker||t.yearPicker||t.ignoreTimeValidation,w=N=>Array.isArray(N)?[N[0]?Bg(N[0]):null,N[1]?Bg(N[1]):null]:Bg(N),b=(N,B,R)=>N.find(z=>+z.hours===vr(B)&&z.minutes==="*"?!0:+z.minutes===ao(B)&&+z.hours===vr(B))&&R,C=(N,B,R)=>{const[z,X]=N,[J,H]=B;return!b(z,J,R)&&!b(X,H,R)&&R},k=(N,B)=>{const R=Array.isArray(B)?B:[B];return Array.isArray(t.disabledTimes)?Array.isArray(t.disabledTimes[0])?C(t.disabledTimes,R,N):!R.some(z=>b(t.disabledTimes,z,N)):N},T=(N,B)=>{const R=Array.isArray(B)?[sa(B[0]),B[1]?sa(B[1]):void 0]:sa(B),z=!t.disabledTimes(R);return N&&z},A=(N,B)=>t.disabledTimes?Array.isArray(t.disabledTimes)?k(B,N):T(B,N):B,I=N=>{let B=!0;if(!N||E())return!0;const R=!i.value.minDate&&!i.value.maxDate?w(N):N;return(t.maxTime||i.value.maxDate)&&(B=x0(t.maxTime,i.value.maxDate,"max",Tn(R),B)),(t.minTime||i.value.minDate)&&(B=x0(t.minTime,i.value.minDate,"min",Tn(R),B)),A(N,B)},V=N=>{if(!t.monthPicker)return!0;let B=!0;const R=ke(os(N));if(i.value.minDate&&i.value.maxDate){const z=ke(os(i.value.minDate)),X=ke(os(i.value.maxDate));return ln(R,z)&&tn(R,X)||ct(R,z)||ct(R,X)}if(i.value.minDate){const z=ke(os(i.value.minDate));B=ln(R,z)||ct(R,z)}if(i.value.maxDate){const z=ke(os(i.value.maxDate));B=tn(R,z)||ct(R,z)}return B},Y=ve(()=>N=>!t.enableTimePicker||t.ignoreTimeValidation?!0:I(N)),ne=ve(()=>N=>t.monthPicker?Array.isArray(N)&&(n.value.enabled||s.value.enabled)?!N.filter(B=>!V(B)).length:V(N):!0);return{isDisabled:p,validateDate:l,validateMonthYearInRange:f,isDateRangeAllowed:m,checkMinMaxRange:x,isValidTime:I,isTimeValid:Y,isMonthValid:ne}},Tf=()=>{const t=ve(()=>(i,s)=>i?.includes(s)),e=ve(()=>(i,s)=>i.count?i.solo?!0:s===0:!0),n=ve(()=>(i,s)=>i.count?i.solo?!0:s===i.count-1:!0);return{hideNavigationButtons:t,showLeftIcon:e,showRightIcon:n}},F4=(t,e,n)=>{const i=me(0),s=Ei({[ia.timePicker]:!t.enableTimePicker||t.timePicker||t.monthPicker,[ia.calendar]:!1,[ia.header]:!1}),r=ve(()=>t.monthPicker||t.timePicker),o=d=>{var f;if((f=t.flow)!=null&&f.length){if(!d&&r.value)return u();s[d]=!0,Object.keys(s).filter(g=>!s[g]).length||u()}},a=()=>{var d,f;(d=t.flow)!=null&&d.length&&i.value!==-1&&(i.value+=1,e("flow-step",i.value),u()),((f=t.flow)==null?void 0:f.length)===i.value&&Rn().then(()=>l())},l=()=>{i.value=-1},c=(d,f,...g)=>{var p,m;t.flow[i.value]===d&&n.value&&((m=(p=n.value)[f])==null||m.call(p,...g))},u=(d=0)=>{d&&(i.value+=d),c(jn.month,"toggleMonthPicker",!0),c(jn.year,"toggleYearPicker",!0),c(jn.calendar,"toggleTimePicker",!1,!0),c(jn.time,"toggleTimePicker",!0,!0);const f=t.flow[i.value];(f===jn.hours||f===jn.minutes||f===jn.seconds)&&c(f,"toggleTimePicker",!0,!0,f)};return{childMount:o,updateFlowStep:a,resetFlow:l,handleFlow:u,flowStep:i}},B4={key:1,class:"dp__input_wrap"},V4=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","aria-disabled","aria-invalid"],z4={key:2,class:"dp--clear-btn"},W4=["aria-label"],Y4=fn({compatConfig:{MODE:3},__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...Cf},emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur","real-blur","text-input"],setup(t,{expose:e,emit:n}){const i=n,s=t,{defaultedTextInput:r,defaultedAriaLabels:o,defaultedInline:a,defaultedConfig:l,defaultedRange:c,defaultedMultiDates:u,defaultedUI:d,getDefaultPattern:f,getDefaultStartTime:g}=Kt(s),{checkMinMaxRange:p}=bo(s),m=me(),v=me(null),y=me(!1),x=me(!1),E=ve(()=>({dp__pointer:!s.disabled&&!s.readonly&&!r.value.enabled,dp__disabled:s.disabled,dp__input_readonly:!r.value.enabled,dp__input:!0,dp__input_icon_pad:!s.hideInputIcon,dp__input_valid:typeof s.state=="boolean"?s.state:!1,dp__input_invalid:typeof s.state=="boolean"?!s.state:!1,dp__input_focus:y.value||s.isMenuOpen,dp__input_reg:!r.value.enabled,...d.value.input??{}})),w=()=>{i("set-input-date",null),s.clearable&&s.autoApply&&(i("set-empty-date"),m.value=null)},b=H=>{const ce=g();return cB(H,r.value.format??f(),ce??gS({},s.enableSeconds),s.inputValue,x.value,s.formatLocale)},C=H=>{const{rangeSeparator:ce}=r.value,[ie,te]=H.split(`${ce}`);if(ie){const D=b(ie.trim()),ee=te?b(te.trim()):null;if(Tl(D,ee))return;const ue=D&&ee?[D,ee]:[D];p(ee,ue,0)&&(m.value=D?ue:null)}},k=()=>{x.value=!0},T=H=>{if(c.value.enabled)C(H);else if(u.value.enabled){const ce=H.split(";");m.value=ce.map(ie=>b(ie.trim())).filter(ie=>ie)}else m.value=b(H)},A=H=>{var ce;const ie=typeof H=="string"?H:(ce=H.target)==null?void 0:ce.value;ie!==""?(r.value.openMenu&&!s.isMenuOpen&&i("open"),T(ie),i("set-input-date",m.value)):w(),x.value=!1,i("update:input-value",ie),i("text-input",H,m.value)},I=H=>{r.value.enabled?(T(H.target.value),r.value.enterSubmit&&om(m.value)&&s.inputValue!==""?(i("set-input-date",m.value,!0),m.value=null):r.value.enterSubmit&&s.inputValue===""&&(m.value=null,i("clear"))):ne(H)},V=(H,ce)=>{r.value.enabled&&r.value.tabSubmit&&!ce&&T(H.target.value),r.value.tabSubmit&&om(m.value)&&s.inputValue!==""?(i("set-input-date",m.value,!0,!0),m.value=null):r.value.tabSubmit&&s.inputValue===""&&(m.value=null,i("clear",!0))},Y=()=>{y.value=!0,i("focus"),Rn().then(()=>{var H;r.value.enabled&&r.value.selectOnFocus&&((H=v.value)==null||H.select())})},ne=H=>{if(eo(H,l.value,!0),r.value.enabled&&r.value.openMenu&&!a.value.input){if(r.value.openMenu==="open"&&!s.isMenuOpen)return i("open");if(r.value.openMenu==="toggle")return i("toggle")}else r.value.enabled||i("toggle")},N=()=>{i("real-blur"),y.value=!1,(!s.isMenuOpen||a.value.enabled&&a.value.input)&&i("blur"),s.autoApply&&r.value.enabled&&m.value&&!s.isMenuOpen&&(i("set-input-date",m.value),i("select-date"),m.value=null)},B=H=>{eo(H,l.value,!0),i("clear")},R=H=>{if(H.key==="Tab"&&V(H),H.key==="Enter"&&I(H),!r.value.enabled){if(H.code==="Tab")return;H.preventDefault()}},z=()=>{var H;(H=v.value)==null||H.focus({preventScroll:!0})},X=H=>{m.value=H},J=H=>{H.key===Nt.tab&&V(H,!0)};return e({focusInput:z,setParsedDate:X}),(H,ce)=>{var ie,te,D;return P(),F("div",{onClick:ne},[H.$slots.trigger&&!H.$slots["dp-input"]&&!Z(a).enabled?Be(H.$slots,"trigger",{key:0}):re("",!0),!H.$slots.trigger&&(!Z(a).enabled||Z(a).input)?(P(),F("div",B4,[H.$slots["dp-input"]&&!H.$slots.trigger&&(!Z(a).enabled||Z(a).enabled&&Z(a).input)?Be(H.$slots,"dp-input",{key:0,value:t.inputValue,isMenuOpen:t.isMenuOpen,onInput:A,onEnter:I,onTab:V,onClear:B,onBlur:N,onKeypress:R,onPaste:k,onFocus:Y,openMenu:()=>H.$emit("open"),closeMenu:()=>H.$emit("close"),toggleMenu:()=>H.$emit("toggle")}):re("",!0),H.$slots["dp-input"]?re("",!0):(P(),F("input",{key:1,id:H.uid?`dp-input-${H.uid}`:void 0,ref_key:"inputRef",ref:v,"data-test":"dp-input",name:H.name,class:Se(E.value),inputmode:Z(r).enabled?"text":"none",placeholder:H.placeholder,disabled:H.disabled,readonly:H.readonly,required:H.required,value:t.inputValue,autocomplete:H.autocomplete,"aria-label":(ie=Z(o))==null?void 0:ie.input,"aria-disabled":H.disabled||void 0,"aria-invalid":H.state===!1?!0:void 0,onInput:A,onBlur:N,onFocus:Y,onKeypress:R,onKeydown:ce[0]||(ce[0]=ee=>R(ee)),onPaste:k},null,42,V4)),h("div",{onClick:ce[3]||(ce[3]=ee=>i("toggle"))},[H.$slots["input-icon"]&&!H.hideInputIcon?(P(),F("span",{key:0,class:"dp__input_icon",onClick:ce[1]||(ce[1]=ee=>i("toggle"))},[Be(H.$slots,"input-icon")])):re("",!0),!H.$slots["input-icon"]&&!H.hideInputIcon&&!H.$slots["dp-input"]?(P(),Ee(Z(Gl),{key:1,"aria-label":(te=Z(o))==null?void 0:te.calendarIcon,class:"dp__input_icon dp__input_icons",onClick:ce[2]||(ce[2]=ee=>i("toggle"))},null,8,["aria-label"])):re("",!0)]),H.$slots["clear-icon"]&&t.inputValue&&H.clearable&&!H.disabled&&!H.readonly?(P(),F("span",z4,[Be(H.$slots,"clear-icon",{clear:B})])):re("",!0),H.clearable&&!H.$slots["clear-icon"]&&t.inputValue&&!H.disabled&&!H.readonly?(P(),F("button",{key:3,"aria-label":(D=Z(o))==null?void 0:D.clearInput,class:"dp--clear-btn",type:"button",onKeydown:ce[4]||(ce[4]=ee=>Z(si)(ee,()=>B(ee),!0,J)),onClick:ce[5]||(ce[5]=ru(ee=>B(ee),["prevent"]))},[$(Z(oS),{class:"dp__input_icons","data-test":"clear-icon"})],40,W4)):re("",!0)])):re("",!0)])}}}),H4=typeof window<"u"?window:void 0,jg=()=>{},j4=t=>af()?(o_(t),!0):!1,K4=(t,e,n,i)=>{if(!t)return jg;let s=jg;const r=Zt(()=>Z(t),a=>{s(),a&&(a.addEventListener(e,n,i),s=()=>{a.removeEventListener(e,n,i),s=jg})},{immediate:!0,flush:"post"}),o=()=>{r(),s()};return j4(o),o},U4=(t,e,n,i={})=>{const{window:s=H4,event:r="pointerdown"}=i;return s?K4(s,r,o=>{const a=bn(t),l=bn(e);!a||!l||a===o.target||o.composedPath().includes(a)||o.composedPath().includes(l)||n(o)},{passive:!0}):void 0},G4=fn({compatConfig:{MODE:3},__name:"VueDatePicker",props:{...Cf},emits:["update:model-value","update:model-timezone-value","text-submit","closed","cleared","open","focus","blur","internal-model-change","recalculate-position","flow-step","update-month-year","invalid-select","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","date-update","invalid-date","overlay-toggle","text-input"],setup(t,{expose:e,emit:n}){const i=n,s=t,r=va(),o=me(!1),a=tu(s,"modelValue"),l=tu(s,"timezone"),c=me(null),u=me(null),d=me(null),f=me(!1),g=me(null),p=me(!1),m=me(!1),v=me(!1),y=me(!1),{setMenuFocused:x,setShiftKey:E}=yS(),{clearArrowNav:w}=yo(),{validateDate:b,isValidTime:C}=bo(s),{defaultedTransitions:k,defaultedTextInput:T,defaultedInline:A,defaultedConfig:I,defaultedRange:V,defaultedMultiDates:Y}=Kt(s),{menuTransition:ne,showTransition:N}=Yu(k);Vt(()=>{ee(s.modelValue),Rn().then(()=>{if(!A.value.enabled){const he=ce(g.value);he?.addEventListener("scroll",K),window?.addEventListener("resize",U)}}),A.value.enabled&&(o.value=!0),window?.addEventListener("keyup",oe),window?.addEventListener("keydown",j)}),_o(()=>{if(!A.value.enabled){const he=ce(g.value);he?.removeEventListener("scroll",K),window?.removeEventListener("resize",U)}window?.removeEventListener("keyup",oe),window?.removeEventListener("keydown",j)});const B=Pi(r,"all",s.presetDates),R=Pi(r,"input");Zt([a,l],()=>{ee(a.value)},{deep:!0});const{openOnTop:z,menuStyle:X,xCorrect:J,setMenuPosition:H,getScrollableParent:ce,shadowRender:ie}=$4({menuRef:c,menuRefInner:u,inputRef:d,pickerWrapperRef:g,inline:A,emit:i,props:s,slots:r}),{inputValue:te,internalModelValue:D,parseExternalModelValue:ee,emitModelValue:ue,formatInputValue:L,checkBeforeEmit:le}=RB(i,s,f),de=ve(()=>({dp__main:!0,dp__theme_dark:s.dark,dp__theme_light:!s.dark,dp__flex_display:A.value.enabled,"dp--flex-display-collapsed":v.value,dp__flex_display_with_input:A.value.input})),xe=ve(()=>s.dark?"dp__theme_dark":"dp__theme_light"),W=ve(()=>s.teleport?{to:typeof s.teleport=="boolean"?"body":s.teleport,disabled:!s.teleport||A.value.enabled}:{}),fe=ve(()=>({class:"dp__outer_menu_wrap"})),S=ve(()=>A.value.enabled&&(s.timePicker||s.monthPicker||s.yearPicker||s.quarterPicker)),O=()=>{var he,Ae;return(Ae=(he=d.value)==null?void 0:he.$el)==null?void 0:Ae.getBoundingClientRect()},K=()=>{o.value&&(I.value.closeOnScroll?je():H())},U=()=>{var he;o.value&&H();const Ae=(he=u.value)==null?void 0:he.$el.getBoundingClientRect().width;v.value=document.body.offsetWidth<=Ae},oe=he=>{he.key==="Tab"&&!A.value.enabled&&!s.teleport&&I.value.tabOutClosesMenu&&(g.value.contains(document.activeElement)||je()),m.value=he.shiftKey},j=he=>{m.value=he.shiftKey},se=()=>{!s.disabled&&!s.readonly&&(ie(k0,s),H(!1),o.value=!0,o.value&&i("open"),o.value||We(),ee(s.modelValue))},Q=()=>{var he;te.value="",We(),(he=d.value)==null||he.setParsedDate(null),i("update:model-value",null),i("update:model-timezone-value",null),i("cleared"),I.value.closeOnClearValue&&je()},ge=()=>{const he=D.value;return!he||!Array.isArray(he)&&b(he)?!0:Array.isArray(he)?Y.value.enabled||he.length===2&&b(he[0])&&b(he[1])?!0:V.value.partialRange&&!s.timePicker?b(he[0]):!1:!1},be=()=>{le()&&ge()?(ue(),je()):i("invalid-select",D.value)},we=he=>{Pe(),ue(),I.value.closeOnAutoApply&&!he&&je()},Pe=()=>{d.value&&T.value.enabled&&d.value.setParsedDate(D.value)},De=(he=!1)=>{s.autoApply&&C(D.value)&&ge()&&(V.value.enabled&&Array.isArray(D.value)?(V.value.partialRange||D.value.length===2)&&we(he):we(he))},We=()=>{T.value.enabled||(D.value=null)},je=()=>{A.value.enabled||(o.value&&(o.value=!1,J.value=!1,x(!1),E(!1),w(),i("closed"),te.value&&ee(a.value)),We(),i("blur"))},nt=(he,Ae,Ne=!1)=>{if(!he){D.value=null;return}const Gt=Array.isArray(he)?!he.some($i=>!b($i)):b(he),pn=C(he);Gt&&pn?(y.value=!0,D.value=he,Ae&&(p.value=Ne,be(),i("text-submit")),Rn().then(()=>{y.value=!1})):i("invalid-date",he)},et=()=>{s.autoApply&&C(D.value)&&ue(),Pe()},Jt=()=>o.value?je():se(),zt=he=>{D.value=he},gn=()=>{T.value.enabled&&(f.value=!0,L()),i("focus")},Ut=()=>{if(T.value.enabled&&(f.value=!1,ee(s.modelValue),p.value)){const he=aB(g.value,m.value);he?.focus()}i("blur")},Ci=he=>{u.value&&u.value.updateMonthYear(0,{month:v0(he.month),year:v0(he.year)})},qi=he=>{ee(he??s.modelValue)},Qt=(he,Ae)=>{var Ne;(Ne=u.value)==null||Ne.switchView(he,Ae)},ae=he=>I.value.onClickOutside?I.value.onClickOutside(he):je(),Te=(he=0)=>{var Ae;(Ae=u.value)==null||Ae.handleFlow(he)};return U4(c,d,()=>ae(ge)),e({closeMenu:je,selectDate:be,clearValue:Q,openMenu:se,onScroll:K,formatInputValue:L,updateInternalModelValue:zt,setMonthYear:Ci,parseModel:qi,switchView:Qt,toggleMenu:Jt,handleFlow:Te,dpWrapMenuRef:c}),(he,Ae)=>(P(),F("div",{ref_key:"pickerWrapperRef",ref:g,class:Se(de.value),"data-datepicker-instance":""},[$(Y4,xn({ref_key:"inputRef",ref:d,"input-value":Z(te),"onUpdate:inputValue":Ae[0]||(Ae[0]=Ne=>Ht(te)?te.value=Ne:null),"is-menu-open":o.value},he.$props,{onClear:Q,onOpen:se,onSetInputDate:nt,onSetEmptyDate:Z(ue),onSelectDate:be,onToggle:Jt,onClose:je,onFocus:gn,onBlur:Ut,onRealBlur:Ae[1]||(Ae[1]=Ne=>f.value=!1),onTextInput:Ae[2]||(Ae[2]=Ne=>he.$emit("text-input",Ne))}),Xn({_:2},[Ge(Z(R),(Ne,Gt)=>({name:Ne,fn:Me(pn=>[Be(he.$slots,Ne,In(ii(pn)))])}))]),1040,["input-value","is-menu-open","onSetEmptyDate"]),(P(),Ee(_a(he.teleport?kD:"div"),In(ii(W.value)),{default:Me(()=>[$(xt,{name:Z(ne)(Z(z)),css:Z(N)&&!Z(A).enabled},{default:Me(()=>[o.value?(P(),F("div",xn({key:0,ref_key:"dpWrapMenuRef",ref:c},fe.value,{class:{"dp--menu-wrapper":!Z(A).enabled},style:Z(A).enabled?void 0:Z(X)}),[$(k0,xn({ref_key:"dpMenuRef",ref:u},he.$props,{"internal-model-value":Z(D),"onUpdate:internalModelValue":Ae[3]||(Ae[3]=Ne=>Ht(D)?D.value=Ne:null),class:{[xe.value]:!0,"dp--menu-wrapper":he.teleport},"open-on-top":Z(z),"no-overlay-focus":S.value,collapse:v.value,"get-input-rect":O,"is-text-input-date":y.value,onClosePicker:je,onSelectDate:be,onAutoApply:De,onTimeUpdate:et,onFlowStep:Ae[4]||(Ae[4]=Ne=>he.$emit("flow-step",Ne)),onUpdateMonthYear:Ae[5]||(Ae[5]=Ne=>he.$emit("update-month-year",Ne)),onInvalidSelect:Ae[6]||(Ae[6]=Ne=>he.$emit("invalid-select",Z(D))),onAutoApplyInvalid:Ae[7]||(Ae[7]=Ne=>he.$emit("invalid-select",Ne)),onInvalidFixedRange:Ae[8]||(Ae[8]=Ne=>he.$emit("invalid-fixed-range",Ne)),onRecalculatePosition:Z(H),onTooltipOpen:Ae[9]||(Ae[9]=Ne=>he.$emit("tooltip-open",Ne)),onTooltipClose:Ae[10]||(Ae[10]=Ne=>he.$emit("tooltip-close",Ne)),onTimePickerOpen:Ae[11]||(Ae[11]=Ne=>he.$emit("time-picker-open",Ne)),onTimePickerClose:Ae[12]||(Ae[12]=Ne=>he.$emit("time-picker-close",Ne)),onAmPmChange:Ae[13]||(Ae[13]=Ne=>he.$emit("am-pm-change",Ne)),onRangeStart:Ae[14]||(Ae[14]=Ne=>he.$emit("range-start",Ne)),onRangeEnd:Ae[15]||(Ae[15]=Ne=>he.$emit("range-end",Ne)),onDateUpdate:Ae[16]||(Ae[16]=Ne=>he.$emit("date-update",Ne)),onInvalidDate:Ae[17]||(Ae[17]=Ne=>he.$emit("invalid-date",Ne)),onOverlayToggle:Ae[18]||(Ae[18]=Ne=>he.$emit("overlay-toggle",Ne))}),Xn({_:2},[Ge(Z(B),(Ne,Gt)=>({name:Ne,fn:Me(pn=>[Be(he.$slots,Ne,In(ii({...pn})))])}))]),1040,["internal-model-value","class","open-on-top","no-overlay-focus","collapse","is-text-input-date","onRecalculatePosition"])],16)):re("",!0)]),_:3},8,["name","css"])]),_:3},16))],2))}}),ju=(()=>{const t=G4;return t.install=e=>{e.component("Vue3DatePicker",t)},t})(),X4=Object.freeze(Object.defineProperty({__proto__:null,default:ju},Symbol.toStringTag,{value:"Module"}));Object.entries(X4).forEach(([t,e])=>{t!=="default"&&(ju[t]=e)});const q4={name:"newDashboardAPIKey",components:{LocaleText:Le,VueDatePicker:ju},data(){return{newKeyData:{ExpiredAt:Fn().add(7,"d").format("YYYY-MM-DD HH:mm:ss"),neverExpire:!1},submitting:!1}},setup(){return{store:Xe()}},mounted(){console.log(this.newKeyData.ExpiredAt)},methods:{submitNewAPIKey(){this.submitting=!0,ht("/api/newDashboardAPIKey",this.newKeyData,t=>{t.status?(this.$emit("created",t.data),this.store.newMessage("Server","API Key created","success"),this.$emit("close")):this.store.newMessage("Server",t.message,"danger"),this.submitting=!1})},fixDate(t){return console.log(Fn(t).format("YYYY-MM-DDTHH:mm:ss")),Fn(t).format("YYYY-MM-DDTHH:mm:ss")},parseTime(t){t?this.newKeyData.ExpiredAt=Fn(t).format("YYYY-MM-DD HH:mm:ss"):this.newKeyData.ExpiredAt=void 0}}},Z4={class:"position-absolute w-100 h-100 top-0 start-0 rounded-bottom-3 p-3 d-flex",style:{"background-color":"#00000060","backdrop-filter":"blur(3px)"}},J4={class:"card m-auto rounded-3 mt-5"},Q4={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4 pb-0"},eV={class:"mb-0"},tV={class:"card-body d-flex gap-2 p-4 flex-column"},nV={class:"text-muted"},iV={class:"d-flex align-items-center gap-2"},sV={class:"form-check"},rV=["disabled"],oV={class:"form-check-label",for:"neverExpire"},aV={key:0,class:"bi bi-check-lg me-2"};function lV(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("VueDatePicker");return P(),F("div",Z4,[h("div",J4,[h("div",Q4,[h("h6",eV,[$(o,{t:"Create API Key"})]),h("button",{type:"button",class:"btn-close ms-auto",onClick:e[0]||(e[0]=l=>this.$emit("close"))})]),h("div",tV,[h("small",nV,[$(o,{t:"When should this API Key expire?"})]),h("div",iV,[$(a,{is24:!0,"min-date":new Date,"model-value":this.newKeyData.ExpiredAt,"onUpdate:modelValue":this.parseTime,"time-picker-inline":"",format:"yyyy-MM-dd HH:mm:ss","preview-format":"yyyy-MM-dd HH:mm:ss",clearable:!1,disabled:this.newKeyData.neverExpire||this.submitting,dark:this.store.Configuration.Server.dashboard_theme==="dark"},null,8,["min-date","model-value","onUpdate:modelValue","disabled","dark"])]),h("div",sV,[Re(h("input",{class:"form-check-input",type:"checkbox","onUpdate:modelValue":e[1]||(e[1]=l=>this.newKeyData.neverExpire=l),id:"neverExpire",disabled:this.submitting},null,8,rV),[[Gn,this.newKeyData.neverExpire]]),h("label",oV,[$(o,{t:"Never Expire"}),e[3]||(e[3]=Fe(" (")),e[4]||(e[4]=h("i",{class:"bi bi-emoji-grimace-fill me-2"},null,-1)),$(o,{t:"Don't think that's a good idea"}),e[5]||(e[5]=Fe(") "))])]),h("button",{class:Se(["ms-auto btn bg-success-subtle text-success-emphasis border-1 border-success-subtle rounded-3 shadow-sm",{disabled:this.submitting}]),onClick:e[2]||(e[2]=l=>this.submitNewAPIKey())},[this.submitting?re("",!0):(P(),F("i",aV)),this.submitting?(P(),Ee(o,{key:1,t:"Creating..."})):(P(),Ee(o,{key:2,t:"Create"}))],2)])])])}const cV=He(q4,[["render",lV]]),uV={name:"dashboardAPIKey",components:{LocaleText:Le},props:{apiKey:Object},setup(){return{store:Xe()}},data(){return{confirmDelete:!1}},methods:{deleteAPIKey(){ht("/api/deleteDashboardAPIKey",{Key:this.apiKey.Key},t=>{t.status?(this.$emit("deleted",t.data),this.store.newMessage("Server","API Key deleted","success")):this.store.newMessage("Server",t.message,"danger")})}}},dV={class:"card rounded-3 shadow-sm"},hV={key:0,class:"card-body d-flex gap-3 align-items-center apiKey-card-body"},fV={class:"d-flex align-items-center gap-2"},gV={class:"text-muted"},pV={style:{"word-break":"break-all"}},mV={class:"d-flex align-items-center gap-2 ms-auto"},_V={class:"text-muted"},vV={key:0,class:"card-body d-flex gap-3 align-items-center justify-content-end"};function yV(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",dV,[this.confirmDelete?(P(),F(Ie,{key:1},[this.store.getActiveCrossServer()?re("",!0):(P(),F("div",vV,[$(o,{t:"Are you sure to delete this API key?"}),h("a",{role:"button",class:"btn btn-sm bg-success-subtle text-success-emphasis rounded-3",onClick:e[1]||(e[1]=a=>this.deleteAPIKey())},e[4]||(e[4]=[h("i",{class:"bi bi-check-lg"},null,-1)])),h("a",{role:"button",class:"btn btn-sm bg-secondary-subtle text-secondary-emphasis rounded-3",onClick:e[2]||(e[2]=a=>this.confirmDelete=!1)},e[5]||(e[5]=[h("i",{class:"bi bi-x-lg"},null,-1)]))]))],64)):(P(),F("div",hV,[h("div",fV,[h("small",gV,[$(o,{t:"Key"})]),h("span",pV,pe(this.apiKey.Key),1)]),h("div",mV,[h("small",_V,[$(o,{t:"Expire At"})]),this.apiKey.ExpiredAt?re("",!0):(P(),Ee(o,{key:0,t:"Never Expire"})),h("span",null,pe(this.apiKey.ExpiredAt),1)]),this.store.getActiveCrossServer()?re("",!0):(P(),F("a",{key:0,role:"button",class:"btn btn-sm bg-danger-subtle text-danger-emphasis rounded-3",onClick:e[0]||(e[0]=a=>this.confirmDelete=!0)},e[3]||(e[3]=[h("i",{class:"bi bi-trash-fill"},null,-1)])))]))])}const bV=He(uV,[["render",yV],["__scopeId","data-v-a76253c8"]]),wV={name:"dashboardAPIKeys",components:{LocaleText:Le,DashboardAPIKey:bV,NewDashboardAPIKey:cV},setup(){return{store:Xe()}},data(){return{value:this.store.Configuration.Server.dashboard_api_key,apiKeys:[],newDashboardAPIKey:!1}},methods:{async toggleDashboardAPIKeys(){await ht("/api/updateDashboardConfigurationItem",{section:"Server",key:"dashboard_api_key",value:this.value},t=>{t.status?(this.store.Configuration.Peers[this.targetData]=this.value,this.store.newMessage("Server",`API Keys function is successfully ${this.value?"enabled":"disabled"}`,"success")):(this.value=this.store.Configuration.Peers[this.targetData],this.store.newMessage("Server",`API Keys function is failed to ${this.value?"enabled":"disabled"}`,"danger"))})}},watch:{value:{immediate:!0,handler(t){t?Pt("/api/getDashboardAPIKeys",{},e=>{console.log(e),e.status?this.apiKeys=e.data:(this.apiKeys=[],this.store.newMessage("Server",e.message,"danger"))}):this.apiKeys=[]}}}},xV={class:"card rounded-3"},EV={class:"card-body position-relative d-flex flex-column gap-2"},CV={class:"d-flex align-items-center"},SV={class:"mb-0"},kV={key:0,class:"form-check form-switch ms-auto"},TV={class:"form-check-label",for:"allowAPIKeysSwitch"},AV={key:0,class:"d-flex flex-column gap-2"},PV={key:1,class:"card",style:{height:"300px"}},MV={class:"card-body d-flex text-muted"},IV={class:"m-auto"},DV={key:2,class:"d-flex flex-column gap-2 position-relative",style:{"min-height":"300px"}};function RV(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("DashboardAPIKey"),l=Ce("NewDashboardAPIKey");return P(),F("div",xV,[h("div",EV,[h("div",CV,[h("h5",SV,[$(o,{t:"API Keys"})]),this.store.getActiveCrossServer()?re("",!0):(P(),F("div",kV,[Re(h("input",{class:"form-check-input",type:"checkbox","onUpdate:modelValue":e[0]||(e[0]=c=>this.value=c),onChange:e[1]||(e[1]=c=>this.toggleDashboardAPIKeys()),role:"switch",id:"allowAPIKeysSwitch"},null,544),[[Gn,this.value]]),h("label",TV,[this.value?(P(),Ee(o,{key:0,t:"Enabled"})):(P(),Ee(o,{key:1,t:"Disabled"}))])]))]),this.value?(P(),F("div",AV,[this.store.getActiveCrossServer()?re("",!0):(P(),F("button",{key:0,class:"btn bg-primary-subtle text-primary-emphasis border-1 border-primary-subtle rounded-3 shadow-sm",onClick:e[2]||(e[2]=c=>this.newDashboardAPIKey=!0)},[e[6]||(e[6]=h("i",{class:"bi bi-plus-circle-fill me-2"},null,-1)),$(o,{t:"API Key"})])),this.apiKeys.length===0?(P(),F("div",PV,[h("div",MV,[h("span",IV,[$(o,{t:"No WGDashboard API Key"})])])])):(P(),F("div",DV,[$(vo,{name:"apiKey"},{default:Me(()=>[(P(!0),F(Ie,null,Ge(this.apiKeys,c=>(P(),Ee(a,{apiKey:c,key:c.Key,onDeleted:e[3]||(e[3]=u=>this.apiKeys=u)},null,8,["apiKey"]))),128))]),_:1})])),$(xt,{name:"zoomReversed"},{default:Me(()=>[this.newDashboardAPIKey?(P(),Ee(l,{key:0,onCreated:e[4]||(e[4]=c=>this.apiKeys=c),onClose:e[5]||(e[5]=c=>this.newDashboardAPIKey=!1)})):re("",!0)]),_:1})])):re("",!0)])])}const $V=He(wV,[["render",RV],["__scopeId","data-v-6a7e5e79"]]),LV={name:"accountSettingsMFA",components:{LocaleText:Le},setup(){const t=Xe(),e=`input_${Bs()}`;return{store:t,uuid:e}},data(){return{status:!1}},mounted(){this.status=this.store.Configuration.Account.enable_totp},methods:{async resetMFA(){await ht("/api/updateDashboardConfigurationItem",{section:"Account",key:"totp_verified",value:"false"},async t=>{await ht("/api/updateDashboardConfigurationItem",{section:"Account",key:"enable_totp",value:"false"},e=>{e.status&&this.$router.push("/2FASetup")})})}}},OV={class:"d-flex align-items-center"},NV={class:"form-check form-switch"},FV={for:"allowMFAKeysSwitch"};function BV(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",null,[h("h6",null,[$(o,{t:"Multi-Factor Authentication (MFA)"})]),h("div",OV,[h("div",NV,[Re(h("input",{class:"form-check-input",type:"checkbox","onUpdate:modelValue":e[0]||(e[0]=a=>this.status=a),role:"switch",id:"allowMFAKeysSwitch"},null,512),[[Gn,this.status]]),h("label",FV,[this.status?(P(),Ee(o,{key:0,t:"Enabled"})):(P(),Ee(o,{key:1,t:"Disabled"}))])]),this.status?(P(),F("button",{key:0,class:"btn bg-warning-subtle text-warning-emphasis border-1 border-warning-subtle ms-auto rounded-3 shadow-sm",onClick:e[1]||(e[1]=a=>this.resetMFA())},[e[2]||(e[2]=h("i",{class:"bi bi-shield-lock-fill me-2"},null,-1)),this.store.Configuration.Account.totp_verified?(P(),Ee(o,{key:0,t:"Reset"})):(P(),Ee(o,{key:1,t:"Setup"})),e[3]||(e[3]=Fe(" MFA "))])):re("",!0)])])}const VV=He(LV,[["render",BV]]),zV={name:"dashboardLanguage",components:{LocaleText:Le},setup(){return{store:Xe()}},data(){return{languages:void 0}},mounted(){Pt("/api/locale/available",{},t=>{this.languages=t.data})},methods:{changeLanguage(t){ht("/api/locale/update",{lang_id:t},e=>{e.status?(this.store.Configuration.Server.dashboard_language=t,this.store.Locale=e.data):this.store.newMessage("Server","Dashboard language update failed","danger")})}},computed:{currentLanguage(){let t=this.store.Configuration.Server.dashboard_language;return this.languages.find(e=>e.lang_id===t)}}},WV={class:"text-muted d-block mb-1"},YV={class:"d-flex gap-2"},HV={class:"dropdown w-100"},jV=["disabled"],KV={key:1},UV={class:"dropdown-menu rounded-3 shadow"},GV=["onClick"],XV={class:"me-auto mb-0"},qV={class:"d-block",style:{"font-size":"0.8rem"}},ZV={key:0,class:"bi bi-check text-primary fs-5"};function JV(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",null,[h("small",WV,[h("strong",null,[$(o,{t:"Language"})])]),h("div",YV,[h("div",HV,[h("button",{class:"btn bg-primary-subtle text-primary-emphasis dropdown-toggle w-100 rounded-3",disabled:!this.languages,type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[this.languages?(P(),F("span",KV,pe(r.currentLanguage?.lang_name_localized),1)):(P(),Ee(o,{key:0,t:"Loading..."}))],8,jV),h("ul",UV,[(P(!0),F(Ie,null,Ge(this.languages,a=>(P(),F("li",null,[h("a",{class:"dropdown-item d-flex align-items-center",role:"button",onClick:l=>this.changeLanguage(a.lang_id)},[h("p",XV,[Fe(pe(a.lang_name_localized)+" ",1),h("small",qV,pe(a.lang_name),1)]),r.currentLanguage?.lang_id===a.lang_id?(P(),F("i",ZV)):re("",!0)],8,GV)]))),256))])])])])}const QV=He(zV,[["render",JV],["__scopeId","data-v-08b165a8"]]),e6={name:"dashboardIPPortInput",components:{LocaleText:Le},setup(){return{store:Xe()}},data(){return{ipAddress:"",port:0,invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0,changed:!1,updating:!1}},mounted(){this.ipAddress=this.store.Configuration.Server.app_ip,this.port=this.store.Configuration.Server.app_port},methods:{async useValidation(t,e,n){this.changed&&(this.updating=!0,await ht("/api/updateDashboardConfigurationItem",{section:"Server",key:e,value:n},i=>{i.status?(t.target.classList.add("is-valid"),this.showInvalidFeedback=!1,this.store.Configuration.Server[e]=n,clearTimeout(this.timeout),this.timeout=setTimeout(()=>{t.target.classList.remove("is-valid")},5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=i.message),this.changed=!1,this.updating=!1}))}}},t6={class:"row g-2"},n6={class:"col-sm"},i6={class:"form-group"},s6={for:"input_dashboard_ip",class:"text-muted mb-1"},r6=["disabled"],o6={class:"invalid-feedback"},a6={class:"col-sm"},l6={class:"form-group"},c6={for:"input_dashboard_ip",class:"text-muted mb-1"},u6=["disabled"],d6={class:"invalid-feedback"},h6={class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block mb-2 mt-2"};function f6(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",null,[h("h5",null,[$(o,{t:"Dashboard IP Address & Listen Port"})]),h("div",t6,[h("div",n6,[h("div",i6,[h("label",s6,[h("strong",null,[h("small",null,[$(o,{t:"IP Address / Hostname"})])])]),Re(h("input",{type:"text",class:Se(["form-control",{"is-invalid":s.showInvalidFeedback,"is-valid":s.isValid}]),id:"input_dashboard_ip","onUpdate:modelValue":e[0]||(e[0]=a=>this.ipAddress=a),onKeydown:e[1]||(e[1]=a=>this.changed=!0),onBlur:e[2]||(e[2]=a=>r.useValidation(a,"app_ip",this.ipAddress)),disabled:this.updating},null,42,r6),[[ze,this.ipAddress]]),h("div",o6,pe(this.invalidFeedback),1)])]),h("div",a6,[h("div",l6,[h("label",c6,[h("strong",null,[h("small",null,[$(o,{t:"Listen Port"})])])]),Re(h("input",{type:"number",class:Se(["form-control",{"is-invalid":s.showInvalidFeedback,"is-valid":s.isValid}]),id:"input_dashboard_ip","onUpdate:modelValue":e[3]||(e[3]=a=>this.port=a),onKeydown:e[4]||(e[4]=a=>this.changed=!0),onBlur:e[5]||(e[5]=a=>r.useValidation(a,"app_port",this.port)),disabled:this.updating},null,42,u6),[[ze,this.port]]),h("div",d6,pe(this.invalidFeedback),1)])])]),h("div",h6,[h("small",null,[e[6]||(e[6]=h("i",{class:"bi bi-exclamation-triangle-fill me-2"},null,-1)),$(o,{t:"Manual restart of WGDashboard is needed to apply changes on IP Address and Listen Port"})])])])}const g6=He(e6,[["render",f6]]),p6={class:""},m6={class:"d-flex gap-2"},_6={class:"btn btn-outline-primary"},v6={__name:"dashboardSettingsWireguardConfigurationAutostart",setup(t){const e=Xe(),n=$n();me(e.Configuration.WireGuardConfiguration.autostart);const i=ve(()=>n.Configurations.map(s=>s.Name));return(s,r)=>(P(),F("div",p6,[h("h5",null,[$(Le,{t:"Autostart"})]),h("div",m6,[(P(!0),F(Ie,null,Ge(i.value,o=>(P(),F("button",_6,[r[0]||(r[0]=h("i",{class:"bi-circle me-2"},null,-1)),Fe(" "+pe(o),1)]))),256))])]))}},y6={name:"settings",methods:{ipV46RegexCheck:j3},components:{DashboardSettingsWireguardConfigurationAutostart:v6,DashboardIPPortInput:g6,DashboardLanguage:QV,LocaleText:Le,AccountSettingsMFA:VV,DashboardAPIKeys:$V,DashboardSettingsInputIPAddressAndPort:KN,DashboardTheme:LN,DashboardSettingsInputWireguardConfigurationPath:MN,AccountSettingsInputPassword:_N,AccountSettingsInputUsername:J3,PeersDefaultSettingsInput:H3},setup(){return{dashboardConfigurationStore:Xe()}}},b6={class:"mt-md-5 mt-3 text-body mb-3"},w6={class:"container-md d-flex flex-column gap-4"},x6={class:"card rounded-3 mb-3"},E6={class:"card-body"},C6={class:"card rounded-3 mb-3"},S6={class:"card-body"},k6={class:"card rounded-3 mb-3"},T6={class:"card-body"},A6={class:"d-flex flex-column gap-3"},P6={class:"card rounded-3"},M6={class:"card-body"},I6={class:"row g-2"},D6={class:"col-sm"},R6={class:"col-sm"},$6={class:"card"},L6={class:"card-body"},O6={class:"card"},N6={class:"card-body d-flex flex-column gap-3"};function F6(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("DashboardSettingsInputWireguardConfigurationPath"),l=Ce("DashboardSettingsWireguardConfigurationAutostart"),c=Ce("PeersDefaultSettingsInput"),u=Ce("DashboardTheme"),d=Ce("DashboardLanguage"),f=Ce("DashboardIPPortInput"),g=Ce("AccountSettingsInputUsername"),p=Ce("AccountSettingsInputPassword"),m=Ce("AccountSettingsMFA"),v=Ce("DashboardAPIKeys");return P(),F("div",b6,[h("div",w6,[h("div",null,[h("h2",null,[$(o,{t:"WireGuard Configuration Settings"})]),e[0]||(e[0]=h("hr",null,null,-1)),h("div",x6,[h("div",E6,[$(a,{targetData:"wg_conf_path",title:"Configurations Directory",warning:!0,"warning-text":"Remember to remove / at the end of your path. e.g /etc/wireguard"})])]),h("div",C6,[h("div",S6,[$(l)])]),h("div",k6,[h("div",T6,[h("h5",null,[$(o,{t:"Peer Default Settings"})]),h("div",null,[$(c,{targetData:"peer_global_dns",title:"DNS"}),$(c,{targetData:"peer_endpoint_allowed_ip",title:"Endpoint Allowed IPs"}),$(c,{targetData:"peer_mtu",title:"MTU"}),$(c,{targetData:"peer_keep_alive",title:"Persistent Keepalive"}),$(c,{targetData:"remote_endpoint",title:"Peer Remote Endpoint",warning:!0,warningText:"This will be changed globally, and will be apply to all peer's QR code and configuration file."})])])])]),h("div",null,[h("h2",null,[$(o,{t:"WGDashboard Settings"})]),e[1]||(e[1]=h("hr",null,null,-1)),h("div",A6,[h("div",P6,[h("div",M6,[h("div",I6,[h("div",D6,[$(u)]),h("div",R6,[$(d)])])])]),h("div",$6,[h("div",L6,[$(f)])]),h("div",O6,[h("div",N6,[h("div",null,[h("h5",null,[$(o,{t:"Account Settings"})]),$(g,{targetData:"username",title:"Username"})]),h("div",null,[h("h6",null,[$(o,{t:"Update Password"})]),$(p,{targetData:"password"})]),this.dashboardConfigurationStore.getActiveCrossServer()?re("",!0):(P(),Ee(m,{key:0}))])]),$(v)])])])])}const B6=He(y6,[["render",F6]]),V6={name:"setup",components:{LocaleText:Le},setup(){return{store:Xe()}},data(){return{setup:{username:"",newPassword:"",repeatNewPassword:"",enable_totp:!0},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}},methods:{submit(){this.loading=!0,ht("/api/Welcome_Finish",this.setup,t=>{t.status?(this.done=!0,this.$router.push("/2FASetup")):(document.querySelectorAll("#createAccount input").forEach(e=>e.classList.add("is-invalid")),this.errorMessage=t.message,document.querySelector(".login-container-fluid").scrollTo({top:0,left:0,behavior:"smooth"})),this.loading=!1})}}},z6=["data-bs-theme"],W6={class:"m-auto text-body",style:{width:"500px"}},Y6={class:"dashboardLogo display-4"},H6={class:"mb-5"},j6={key:0,class:"alert alert-danger"},K6={class:"d-flex flex-column gap-3"},U6={id:"createAccount",class:"d-flex flex-column gap-2"},G6={class:"form-group text-body"},X6={for:"username",class:"mb-1 text-muted"},q6={class:"form-group text-body"},Z6={for:"password",class:"mb-1 text-muted"},J6={class:"form-group text-body"},Q6={for:"confirmPassword",class:"mb-1 text-muted"},e8=["disabled"],t8={key:0,class:"d-flex align-items-center w-100"},n8={key:1,class:"d-flex align-items-center w-100"};function i8(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",{class:"container-fluid login-container-fluid d-flex main pt-5 overflow-scroll","data-bs-theme":this.store.Configuration.Server.dashboard_theme},[h("div",W6,[h("span",Y6,[$(o,{t:"Nice to meet you!"})]),h("p",H6,[$(o,{t:"Please fill in the following fields to finish setup"}),e[4]||(e[4]=Fe(" 😊"))]),h("div",null,[h("h3",null,[$(o,{t:"Create an account"})]),this.errorMessage?(P(),F("div",j6,pe(this.errorMessage),1)):re("",!0),h("div",K6,[h("form",U6,[h("div",G6,[h("label",X6,[h("small",null,[$(o,{t:"Enter an username you like"})])]),Re(h("input",{type:"text",autocomplete:"username","onUpdate:modelValue":e[0]||(e[0]=a=>this.setup.username=a),class:"form-control",id:"username",name:"username",required:""},null,512),[[ze,this.setup.username]])]),h("div",q6,[h("label",Z6,[h("small",null,[$(o,{t:"Enter a password"}),h("code",null,[$(o,{t:"(At least 8 characters and make sure is strong enough!)"})])])]),Re(h("input",{type:"password",autocomplete:"new-password","onUpdate:modelValue":e[1]||(e[1]=a=>this.setup.newPassword=a),class:"form-control",id:"password",name:"password",required:""},null,512),[[ze,this.setup.newPassword]])]),h("div",J6,[h("label",Q6,[h("small",null,[$(o,{t:"Confirm password"})])]),Re(h("input",{type:"password",autocomplete:"confirm-new-password","onUpdate:modelValue":e[2]||(e[2]=a=>this.setup.repeatNewPassword=a),class:"form-control",id:"confirmPassword",name:"confirmPassword",required:""},null,512),[[ze,this.setup.repeatNewPassword]])])]),h("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:e[3]||(e[3]=a=>this.submit())},[!this.loading&&!this.done?(P(),F("span",t8,[$(o,{t:"Next"}),e[5]||(e[5]=h("i",{class:"bi bi-chevron-right ms-auto"},null,-1))])):(P(),F("span",n8,[$(o,{t:"Saving..."}),e[6]||(e[6]=h("span",{class:"spinner-border ms-auto spinner-border-sm",role:"status"},[h("span",{class:"visually-hidden"},"Loading...")],-1))]))],8,e8)])])])],8,z6)}const s8=He(V6,[["render",i8]]);function K_(t){return t.includes(":")?6:t.includes(".")?4:0}function r8(t){const e=K_(t);if(!e)throw new Error(`Invalid IP address: ${t}`);let n=0n,i=0n;const s=Object.create(null);if(e===4)for(const r of t.split(".").map(BigInt).reverse())n+=r*2n**i,i+=8n;else{if(t.includes(".")&&(s.ipv4mapped=!0,t=t.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(":")),t.includes("%")){let a;[,t,a]=/(.+)%(.+)/.exec(t)||[],s.scopeid=a}const r=t.split(":"),o=r.indexOf("");if(o!==-1)for(;r.length<8;)r.splice(o,0,"");for(const a of r.map(l=>BigInt(parseInt(l||"0",16))).reverse())n+=a*2n**i,i+=16n}return s.number=n,s.version=e,s}const Kg={4:32,6:128},o8=t=>t.includes("/")?K_(t):0;function am(t){const e=o8(t),n=Object.create(null);if(e)n.cidr=t,n.version=e;else{const d=K_(t);if(d)n.cidr=`${t}/${Kg[d]}`,n.version=d;else throw new Error(`Network is not a CIDR or IP: ${t}`)}const[i,s]=n.cidr.split("/");if(!/^[0-9]+$/.test(s))throw new Error(`Network is not a CIDR or IP: ${t}`);n.prefix=s,n.single=s===String(Kg[n.version]);const{number:r,version:o}=r8(i),a=Kg[o],l=r.toString(2).padStart(a,"0"),c=Number(a-s),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 t(b){var C=new Float64Array(16);if(b)for(var k=0;k>16&1),T[I-1]&=65535;T[15]=A[15]-32767-(T[14]>>16&1),k=T[15]>>16&1,T[14]&=65535,i(A,T,1-k)}for(var I=0;I<16;++I)b[2*I]=A[I]&255,b[2*I+1]=A[I]>>8}function n(b){for(var C=0;C<16;++C)b[(C+1)%16]+=(C<15?1:38)*Math.floor(b[C]/65536),b[C]&=65535}function i(b,C,k){for(var T,A=~(k-1),I=0;I<16;++I)T=A&(b[I]^C[I]),b[I]^=T,C[I]^=T}function s(b,C,k){for(var T=0;T<16;++T)b[T]=C[T]+k[T]|0}function r(b,C,k){for(var T=0;T<16;++T)b[T]=C[T]-k[T]|0}function o(b,C,k){for(var T=new Float64Array(31),A=0;A<16;++A)for(var I=0;I<16;++I)T[A+I]+=C[A]*k[I];for(var A=0;A<15;++A)T[A]+=38*T[A+16];for(var A=0;A<16;++A)b[A]=T[A];n(b),n(b)}function a(b,C){for(var k=t(),T=0;T<16;++T)k[T]=C[T];for(var T=253;T>=0;--T)o(k,k,k),T!==2&&T!==4&&o(k,k,C);for(var T=0;T<16;++T)b[T]=k[T]}function l(b){b[31]=b[31]&127|64,b[0]&=248}function c(b){for(var C,k=new Uint8Array(32),T=t([1]),A=t([9]),I=t(),V=t([1]),Y=t(),ne=t(),N=t([56129,1]),B=t([9]),R=0;R<32;++R)k[R]=b[R];l(k);for(var R=254;R>=0;--R)C=k[R>>>3]>>>(R&7)&1,i(T,A,C),i(I,V,C),s(Y,T,I),r(T,T,I),s(I,A,V),r(A,A,V),o(V,Y,Y),o(ne,T,T),o(T,I,T),o(I,A,Y),s(Y,T,I),r(T,T,I),o(A,T,T),r(I,V,ne),o(T,I,N),s(T,T,V),o(I,I,T),o(T,V,ne),o(V,A,B),o(A,Y,Y),i(T,A,C),i(I,V,C);return a(I,I),o(T,T,I),e(k,T),k}function u(){var b=new Uint8Array(32);return window.crypto.getRandomValues(b),b}function d(){var b=u();return l(b),b}function h(b,C){for(var k=Uint8Array.from([C[0]>>2&63,(C[0]<<4|C[1]>>4)&63,(C[1]<<2|C[2]>>6)&63,C[2]&63]),T=0;T<4;++T)b[T]=k[T]+65+(25-k[T]>>8&6)-(51-k[T]>>8&75)-(61-k[T]>>8&15)+(62-k[T]>>8&3)}function g(b){var C,k=new Uint8Array(44);for(C=0;C<32/3;++C)h(k.subarray(C*4),b.subarray(C*3));return h(k.subarray(C*4),Uint8Array.from([b[C*3+0],b[C*3+1],0])),k[43]=61,String.fromCharCode.apply(null,k)}function p(b){let C=window.atob(b),k=C.length,T=new Uint8Array(k);for(let I=0;I>>8&255,C>>>16&255,C>>>24&255)}function v(b,C){b.push(C&255,C>>>8&255)}function y(b,C){for(var k=0;k>>1:C>>>1;E.table[k]=C}}for(var A=-1,I=0;I>>8^E.table[(A^b[I])&255];return(A^-1)>>>0}function w(b){for(var C=[],k=[],T=0,A=0;A{t.status?(this.success=!0,await this.store.getConfigurations(),this.$router.push(`/configuration/${this.newConfiguration.ConfigurationName}/peers`)):(this.error=!0,this.errorMessage=t.message,document.querySelector(`#${t.data}`).classList.remove("is-valid"),document.querySelector(`#${t.data}`).classList.add("is-invalid"),this.loading=!1)}))}},computed:{goodToSubmit(){let t=["ConfigurationName","Address","ListenPort","PrivateKey"],e=[...document.querySelectorAll("input[required]")];return t.find(n=>this.newConfiguration[n].length===0)===void 0&&e.find(n=>n.classList.contains("is-invalid"))===void 0}},watch:{"newConfiguration.Address"(t){let e=document.querySelector("#Address");e.classList.remove("is-invalid","is-valid");try{if(t.trim().split("/").filter(s=>s.length>0).length!==2)throw Error();let n=am(t),i=n.end-n.start;this.numberOfAvailableIPs=i.toLocaleString(),e.classList.add("is-valid")}catch{this.numberOfAvailableIPs="0",e.classList.add("is-invalid")}},"newConfiguration.ListenPort"(t){let e=document.querySelector("#ListenPort");e.classList.remove("is-invalid","is-valid"),t<0||t>65353||!Number.isInteger(t)?e.classList.add("is-invalid"):e.classList.add("is-valid")},"newConfiguration.ConfigurationName"(t){let e=document.querySelector("#ConfigurationName");e.classList.remove("is-invalid","is-valid"),!/^[a-zA-Z0-9_=+.-]{1,15}$/.test(t)||t.length===0||this.store.Configurations.find(n=>n.Name===t)?e.classList.add("is-invalid"):e.classList.add("is-valid")},"newConfiguration.PrivateKey"(t){let e=document.querySelector("#PrivateKey");e.classList.remove("is-invalid","is-valid");try{wireguard.generatePublicKey(t),e.classList.add("is-valid")}catch{e.classList.add("is-invalid")}}}},n8={class:"mt-5 text-body"},i8={class:"container mb-4"},s8={class:"mb-4 d-flex align-items-center gap-4"},r8={class:"mb-0"},o8={class:"card rounded-3 shadow"},a8={class:"card-header"},l8={class:"card-body"},c8=["disabled"],u8={class:"invalid-feedback"},d8={key:0},h8={key:1},f8={class:"mb-0"},g8={class:"card rounded-3 shadow"},p8={class:"card-header"},m8={class:"card-body",style:{"font-family":"var(--bs-font-monospace)"}},_8={class:"mb-2"},v8={class:"text-muted fw-bold mb-1"},y8={class:"input-group"},b8=["disabled"],w8={class:"text-muted fw-bold mb-1"},x8={class:"card rounded-3 shadow"},E8={class:"card-header"},C8={class:"card-body"},S8=["disabled"],k8={class:"invalid-feedback"},T8={key:0},A8={key:1},P8={class:"card rounded-3 shadow"},M8={class:"card-header d-flex align-items-center"},I8={class:"badge rounded-pill text-bg-success ms-auto"},D8={class:"card-body"},R8=["disabled"],$8={class:"invalid-feedback"},L8={key:0},O8={key:1},N8={class:"accordion",id:"newConfigurationOptionalAccordion"},F8={class:"accordion-item"},B8={class:"accordion-header"},V8={class:"accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#newConfigurationOptionalAccordionCollapse"},z8={id:"newConfigurationOptionalAccordionCollapse",class:"accordion-collapse collapse","data-bs-parent":"#newConfigurationOptionalAccordion"},W8={class:"accordion-body d-flex flex-column gap-3"},Y8={class:"card rounded-3"},H8={class:"card-body"},j8={class:"card rounded-3"},K8={class:"card-body"},U8={class:"card rounded-3"},G8={class:"card-body"},X8={class:"card rounded-3"},q8={class:"card-body"},Z8=["disabled"],J8={key:0,class:"d-flex w-100"},Q8={key:1,class:"d-flex w-100"},ez={key:2,class:"d-flex w-100 align-items-center"};function tz(t,e,n,i,s,r){const o=Ce("RouterLink"),a=Ce("LocaleText");return P(),F("div",n8,[f("div",i8,[f("div",s8,[L(o,{to:"/",class:"btn btn-dark btn-brand p-2 shadow",style:{"border-radius":"100%"}},{default:Me(()=>e[11]||(e[11]=[f("h2",{class:"mb-0",style:{"line-height":"0"}},[f("i",{class:"bi bi-arrow-left-circle"})],-1)])),_:1}),f("h2",r8,[L(a,{t:"New Configuration"})]),L(o,{to:"/restore_configuration",class:"btn btn-dark btn-brand p-2 shadow ms-auto",style:{"border-radius":"100%"}},{default:Me(()=>e[12]||(e[12]=[f("h2",{class:"mb-0",style:{"line-height":"0"}},[f("i",{class:"bi bi-clock-history"})],-1)])),_:1})]),f("form",{class:"text-body d-flex flex-column gap-3",onSubmit:e[10]||(e[10]=l=>{l.preventDefault(),this.saveNewConfiguration()})},[f("div",o8,[f("div",a8,[L(a,{t:"Configuration Name"})]),f("div",l8,[Re(f("input",{type:"text",class:"form-control",placeholder:"ex. wg1",id:"ConfigurationName","onUpdate:modelValue":e[0]||(e[0]=l=>this.newConfiguration.ConfigurationName=l),disabled:this.loading,required:""},null,8,c8),[[ze,this.newConfiguration.ConfigurationName]]),f("div",u8,[this.error?(P(),F("div",d8,pe(this.errorMessage),1)):(P(),F("div",h8,[L(a,{t:"Configuration name is invalid. Possible reasons:"}),f("ul",f8,[f("li",null,[L(a,{t:"Configuration name already exist."})]),f("li",null,[L(a,{t:"Configuration name can only contain 15 lower/uppercase alphabet, numbers, underscore, equal sign, plus sign, period and hyphen."})])])]))])])]),f("div",g8,[f("div",p8,[L(a,{t:"Private Key"}),e[13]||(e[13]=Be(" & ")),L(a,{t:"Public Key"})]),f("div",m8,[f("div",_8,[f("label",v8,[f("small",null,[L(a,{t:"Private Key"})])]),f("div",y8,[Re(f("input",{type:"text",class:"form-control",id:"PrivateKey",required:"",disabled:this.loading,"onUpdate:modelValue":e[1]||(e[1]=l=>this.newConfiguration.PrivateKey=l)},null,8,b8),[[ze,this.newConfiguration.PrivateKey]]),f("button",{class:"btn btn-outline-primary",type:"button",title:"Regenerate Private Key",onClick:e[2]||(e[2]=l=>r.wireguardGenerateKeypair())},e[14]||(e[14]=[f("i",{class:"bi bi-arrow-repeat"},null,-1)]))])]),f("div",null,[f("label",w8,[f("small",null,[L(a,{t:"Public Key"})])]),Re(f("input",{type:"text",class:"form-control",id:"PublicKey","onUpdate:modelValue":e[3]||(e[3]=l=>this.newConfiguration.PublicKey=l),disabled:""},null,512),[[ze,this.newConfiguration.PublicKey]])])])]),f("div",x8,[f("div",E8,[L(a,{t:"Listen Port"})]),f("div",C8,[Re(f("input",{type:"number",class:"form-control",placeholder:"0-65353",id:"ListenPort",min:"1",max:"65353","onUpdate:modelValue":e[4]||(e[4]=l=>this.newConfiguration.ListenPort=l),disabled:this.loading,required:""},null,8,S8),[[ze,this.newConfiguration.ListenPort]]),f("div",k8,[this.error?(P(),F("div",T8,pe(this.errorMessage),1)):(P(),F("div",A8,[L(a,{t:"Invalid port"})]))])])]),f("div",P8,[f("div",M8,[L(a,{t:"IP Address/CIDR"}),f("span",I8,pe(s.numberOfAvailableIPs)+" Available IPs",1)]),f("div",D8,[Re(f("input",{type:"text",class:"form-control",placeholder:"Ex: 10.0.0.1/24",id:"Address","onUpdate:modelValue":e[5]||(e[5]=l=>this.newConfiguration.Address=l),disabled:this.loading,required:""},null,8,R8),[[ze,this.newConfiguration.Address]]),f("div",$8,[this.error?(P(),F("div",L8,pe(this.errorMessage),1)):(P(),F("div",O8," IP Address/CIDR is invalid "))])])]),e[23]||(e[23]=f("hr",null,null,-1)),f("div",N8,[f("div",F8,[f("h2",B8,[f("button",V8,[L(a,{t:"Optional Settings"})])]),f("div",z8,[f("div",W8,[f("div",Y8,[e[15]||(e[15]=f("div",{class:"card-header"},"PreUp",-1)),f("div",H8,[Re(f("input",{type:"text",class:"form-control",id:"preUp","onUpdate:modelValue":e[6]||(e[6]=l=>this.newConfiguration.PreUp=l)},null,512),[[ze,this.newConfiguration.PreUp]])])]),f("div",j8,[e[16]||(e[16]=f("div",{class:"card-header"},"PreDown",-1)),f("div",K8,[Re(f("input",{type:"text",class:"form-control",id:"preDown","onUpdate:modelValue":e[7]||(e[7]=l=>this.newConfiguration.PreDown=l)},null,512),[[ze,this.newConfiguration.PreDown]])])]),f("div",U8,[e[17]||(e[17]=f("div",{class:"card-header"},"PostUp",-1)),f("div",G8,[Re(f("input",{type:"text",class:"form-control",id:"postUp","onUpdate:modelValue":e[8]||(e[8]=l=>this.newConfiguration.PostUp=l)},null,512),[[ze,this.newConfiguration.PostUp]])])]),f("div",X8,[e[18]||(e[18]=f("div",{class:"card-header"},"PostDown",-1)),f("div",q8,[Re(f("input",{type:"text",class:"form-control",id:"postDown","onUpdate:modelValue":e[9]||(e[9]=l=>this.newConfiguration.PostDown=l)},null,512),[[ze,this.newConfiguration.PostDown]])])])])])])]),f("button",{class:"btn btn-dark btn-brand rounded-3 px-3 py-2 shadow ms-auto",disabled:!this.goodToSubmit||this.loading||this.success},[this.success?(P(),F("span",J8,[L(a,{t:"Success"}),e[19]||(e[19]=Be("! ")),e[20]||(e[20]=f("i",{class:"bi bi-check-circle-fill ms-2"},null,-1))])):this.loading?(P(),F("span",ez,[L(a,{t:"Saving..."}),e[22]||(e[22]=f("span",{class:"ms-2 spinner-border spinner-border-sm",role:"status"},null,-1))])):(P(),F("span",Q8,[e[21]||(e[21]=f("i",{class:"bi bi-save-fill me-2"},null,-1)),L(a,{t:"Save"})]))],8,Z8)],32)])])}const nz=He(t8,[["render",tz]]),iz={name:"configuration"},sz={class:"mt-md-5 mt-3 text-body"};function rz(t,e,n,i,s,r){const o=Ce("RouterView");return P(),F("div",sz,[L(o,null,{default:Me(({Component:a,route:l})=>[L(xt,{name:"fade2",mode:"out-in"},{default:Me(()=>[(P(),Ee(x_,null,{default:Me(()=>[(P(),Ee(_a(a),{key:l.path}))]),_:2},1024))]),_:2},1024)]),_:1})])}const oz=He(iz,[["render",rz]]),az={name:"peerSearch",components:{LocaleText:Le},setup(){const t=Je(),e=Vn();return{store:t,wireguardConfigurationStore:e}},props:{configuration:Object},data(){return{sort:{status:At("Status"),name:At("Name"),allowed_ip:At("Allowed IPs"),restricted:At("Restricted")},interval:{5e3:At("5 Seconds"),1e4:At("10 Seconds"),3e4:At("30 Seconds"),6e4:At("1 Minutes")},searchString:"",searchStringTimeout:void 0,showDisplaySettings:!1,showMoreSettings:!1}},methods:{debounce(){this.searchStringTimeout?(clearTimeout(this.searchStringTimeout),this.searchStringTimeout=setTimeout(()=>{this.wireguardConfigurationStore.searchString=this.searchString},300)):this.searchStringTimeout=setTimeout(()=>{this.wireguardConfigurationStore.searchString=this.searchString},300)},updateSort(t){ht("/api/updateDashboardConfigurationItem",{section:"Server",key:"dashboard_sort",value:t},e=>{e.status&&this.store.getConfiguration()})},updateRefreshInterval(t){ht("/api/updateDashboardConfigurationItem",{section:"Server",key:"dashboard_refresh_interval",value:t},e=>{e.status&&this.store.getConfiguration()})},downloadAllPeer(){Pt(`/api/downloadAllPeers/${this.configuration.Name}`,{},t=>{console.log(t),window.wireguard.generateZipFiles(t,this.configuration.Name)})}},computed:{searchBarPlaceholder(){return At("Search Peers...")}}},lz={class:"mb-3"},cz={class:"d-flex gap-2 z-3 peerSearchContainer"},uz={class:"mt-3 mt-md-0 flex-grow-1"},dz=["placeholder"],hz={key:0,class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0 overflow-y-scroll displayModal"},fz={class:"container-md d-flex h-100 w-100"},gz={class:"m-auto modal-dialog-centered dashboardModal"},pz={class:"card rounded-3 shadow w-100"},mz={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4 pb-2"},_z={class:"mb-0 fw-normal"},vz={class:"card-body px-4 pb-4 d-flex gap-3 flex-column"},yz={class:"text-muted fw-bold mb-2"},bz={class:"list-group"},wz=["onClick"],xz={class:"me-auto"},Ez={key:0,class:"bi bi-check text-primary"},Cz={class:"text-muted fw-bold mb-2"},Sz={class:"list-group"},kz=["onClick"],Tz={class:"me-auto"},Az={key:0,class:"bi bi-check text-primary"},Pz={key:0,class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0 overflow-y-scroll displayModal"},Mz={class:"container-md d-flex h-100 w-100"},Iz={class:"m-auto modal-dialog-centered dashboardModal"},Dz={class:"card rounded-3 shadow w-100"},Rz={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4"},$z={class:"mb-0"},Lz={class:"card-body px-4 pb-4 d-flex gap-3 flex-column pt-0"},Oz={class:"text-muted fw-bold mb-2"},Nz={class:"list-group"},Fz={class:"text-muted fw-bold mb-2"},Bz={class:"list-group"};function Vz(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("RouterLink");return P(),F("div",lz,[f("div",cz,[L(a,{to:"create",class:"text-decoration-none btn text-primary-emphasis bg-primary-subtle rounded-3 border-1 border-primary-subtle shadow-sm"},{default:Me(()=>[e[13]||(e[13]=f("i",{class:"bi bi-plus-lg me-2"},null,-1)),L(o,{t:"Peer"})]),_:1}),f("button",{class:"btn text-primary-emphasis bg-primary-subtle rounded-3 border-1 border-primary-subtle shadow-sm",onClick:e[0]||(e[0]=l=>this.downloadAllPeer())},[e[14]||(e[14]=f("i",{class:"bi bi-download me-2"},null,-1)),L(o,{t:"Download All"})]),f("div",uz,[Re(f("input",{class:"form-control rounded-3 bg-secondary-subtle border-1 border-secondary-subtle shadow-sm w-100",placeholder:r.searchBarPlaceholder,id:"searchPeers",onKeyup:e[1]||(e[1]=l=>this.debounce()),"onUpdate:modelValue":e[2]||(e[2]=l=>this.searchString=l)},null,40,dz),[[ze,this.searchString]])]),f("button",{onClick:e[3]||(e[3]=l=>this.showDisplaySettings=!0),class:"btn text-secondary-emphasis bg-secondary-subtle rounded-3 border-1 border-secondary-subtle shadow-sm",type:"button","aria-expanded":"false"},[e[15]||(e[15]=f("i",{class:"bi bi-filter-circle me-2"},null,-1)),L(o,{t:"Display"})]),f("button",{class:"btn text-secondary-emphasis bg-secondary-subtle rounded-3 border-1 border-secondary-subtle shadow-sm",onClick:e[4]||(e[4]=l=>this.$emit("editConfiguration")),type:"button","aria-expanded":"false"},e[16]||(e[16]=[f("i",{class:"bi bi-gear-fill"},null,-1)])),f("button",{class:"btn text-secondary-emphasis bg-secondary-subtle rounded-3 border-1 border-secondary-subtle shadow-sm",onClick:e[5]||(e[5]=l=>this.showMoreSettings=!0),type:"button","aria-expanded":"false"},e[17]||(e[17]=[f("i",{class:"bi bi-three-dots"},null,-1)])),L(xt,{name:"zoom"},{default:Me(()=>[this.showDisplaySettings?(P(),F("div",hz,[f("div",fz,[f("div",gz,[f("div",pz,[f("div",mz,[f("h4",_z,[L(o,{t:"Display"})]),f("button",{type:"button",class:"btn-close ms-auto",onClick:e[6]||(e[6]=l=>this.showDisplaySettings=!1)})]),f("div",vz,[f("div",null,[f("p",yz,[f("small",null,[L(o,{t:"Sort by"})])]),f("div",bz,[(P(!0),F(De,null,Ge(this.sort,(l,c)=>(P(),F("a",{class:"list-group-item list-group-item-action d-flex",role:"button",onClick:u=>this.updateSort(c)},[f("span",xz,pe(l),1),i.store.Configuration.Server.dashboard_sort===c?(P(),F("i",Ez)):se("",!0)],8,wz))),256))])]),f("div",null,[f("p",Cz,[f("small",null,[L(o,{t:"Refresh Interval"})])]),f("div",Sz,[(P(!0),F(De,null,Ge(this.interval,(l,c)=>(P(),F("a",{class:"list-group-item list-group-item-action d-flex",role:"button",onClick:u=>this.updateRefreshInterval(c)},[f("span",Tz,pe(l),1),i.store.Configuration.Server.dashboard_refresh_interval===c?(P(),F("i",Az)):se("",!0)],8,kz))),256))])])])])])])])):se("",!0)]),_:1}),L(xt,{name:"zoom"},{default:Me(()=>[this.showMoreSettings?(P(),F("div",Pz,[f("div",Mz,[f("div",Iz,[f("div",Dz,[f("div",Rz,[f("h4",$z,[L(o,{t:"Other Settings"})]),f("button",{type:"button",class:"btn-close ms-auto",onClick:e[7]||(e[7]=l=>this.showMoreSettings=!1)})]),f("div",Lz,[f("div",null,[f("p",Oz,[f("small",null,[L(o,{t:"Peers"})])]),f("div",Nz,[f("a",{class:"list-group-item list-group-item-action d-flex",role:"button",onClick:e[8]||(e[8]=l=>this.$emit("selectPeers"))},[L(o,{t:"Select Peers"})]),f("a",{class:"list-group-item list-group-item-action d-flex",role:"button",onClick:e[9]||(e[9]=l=>this.$emit("jobsAll"))},[L(o,{t:"Active Jobs"})]),f("a",{class:"list-group-item list-group-item-action d-flex",role:"button",onClick:e[10]||(e[10]=l=>this.$emit("jobLogs"))},[L(o,{t:"Logs"})])])]),f("div",null,[f("p",Fz,[f("small",null,[L(o,{t:"Configuration"})])]),f("div",Bz,[f("a",{class:"list-group-item list-group-item-action d-flex",role:"button",onClick:e[11]||(e[11]=l=>this.$emit("backupRestore"))},[L(o,{t:"Backup & Restore"})]),f("a",{class:"list-group-item list-group-item-action d-flex text-danger fw-bold",role:"button",onClick:e[12]||(e[12]=l=>this.$emit("deleteConfiguration"))},[L(o,{t:"Delete"})])])])])])])])])):se("",!0)]),_:1})])])}const zz=He(az,[["render",Vz],["__scopeId","data-v-aaa147c4"]]);function Wz(t){return af()?(o_(t),!0):!1}function kS(t){return typeof t=="function"?t():Z(t)}const TS=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Yz=Object.prototype.toString,Hz=t=>Yz.call(t)==="[object Object]",uh=()=>{},jz=Kz();function Kz(){var t,e;return TS&&((t=window?.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((e=window?.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function xc(t){var e;const n=kS(t);return(e=n?.$el)!=null?e:n}const AS=TS?window:void 0;function Ug(...t){let e,n,i,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,i,s]=t,e=AS):[e,n,i,s]=t,!e)return uh;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const r=[],o=()=>{r.forEach(u=>u()),r.length=0},a=(u,d,h,g)=>(u.addEventListener(d,h,g),()=>u.removeEventListener(d,h,g)),l=Zt(()=>[xc(e),kS(s)],([u,d])=>{if(o(),!u)return;const h=Hz(d)?{...d}:d;r.push(...n.flatMap(g=>i.map(p=>a(u,g,p,h))))},{immediate:!0,flush:"post"}),c=()=>{l(),o()};return Wz(c),c}let T0=!1;function Uz(t,e,n={}){const{window:i=AS,ignore:s=[],capture:r=!0,detectIframe:o=!1}=n;if(!i)return uh;jz&&!T0&&(T0=!0,Array.from(i.document.body.children).forEach(h=>h.addEventListener("click",uh)),i.document.documentElement.addEventListener("click",uh));let a=!0;const l=h=>s.some(g=>{if(typeof g=="string")return Array.from(i.document.querySelectorAll(g)).some(p=>p===h.target||h.composedPath().includes(p));{const p=xc(g);return p&&(h.target===p||h.composedPath().includes(p))}}),u=[Ug(i,"click",h=>{const g=xc(t);if(!(!g||g===h.target||h.composedPath().includes(g))){if(h.detail===0&&(a=!l(h)),!a){a=!0;return}e(h)}},{passive:!0,capture:r}),Ug(i,"pointerdown",h=>{const g=xc(t);a=!l(h)&&!!(g&&!h.composedPath().includes(g))},{passive:!0}),o&&Ug(i,"blur",h=>{setTimeout(()=>{var g;const p=xc(t);((g=i.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!p?.contains(i.document.activeElement)&&e(h)},0)})].filter(Boolean);return()=>u.forEach(h=>h())}const Gz={name:"peerSettingsDropdown",components:{LocaleText:Le},setup(){return{dashboardStore:Je()}},props:{Peer:Object},data(){return{deleteBtnDisabled:!1,restrictBtnDisabled:!1,allowAccessBtnDisabled:!1,confirmDelete:!1}},methods:{downloadPeer(){Pt("/api/downloadPeer/"+this.$route.params.id,{id:this.Peer.id},t=>{if(t.status){const e=new Blob([t.data.file],{type:"text/plain"}),n=URL.createObjectURL(e),i=`${t.data.fileName}.conf`,s=document.createElement("a");s.href=n,s.download=i,s.click(),this.dashboardStore.newMessage("WGDashboard","Peer download started","success")}else this.dashboardStore.newMessage("Server",t.message,"danger")})},downloadQRCode(){Pt("/api/downloadPeer/"+this.$route.params.id,{id:this.Peer.id},t=>{t.status?this.$emit("qrcode",t.data.file):this.dashboardStore.newMessage("Server",t.message,"danger")})},deletePeer(){this.deleteBtnDisabled=!0,ht(`/api/deletePeers/${this.$route.params.id}`,{peers:[this.Peer.id]},t=>{this.dashboardStore.newMessage("Server",t.message,t.status?"success":"danger"),this.$emit("refresh"),this.deleteBtnDisabled=!1})},restrictPeer(){this.restrictBtnDisabled=!0,ht(`/api/restrictPeers/${this.$route.params.id}`,{peers:[this.Peer.id]},t=>{this.dashboardStore.newMessage("Server",t.message,t.status?"success":"danger"),this.$emit("refresh"),this.restrictBtnDisabled=!1})},allowAccessPeer(){this.allowAccessBtnDisabled=!0,ht(`/api/allowAccessPeers/${this.$route.params.id}`,{peers:[this.Peer.id]},t=>{this.dashboardStore.newMessage("Server",t.message,t.status?"success":"danger"),this.$emit("refresh"),this.allowAccessBtnDisabled=!1})}}},Xz={class:"dropdown-menu mt-2 shadow-lg d-block rounded-3",style:{"max-width":"200px"}},qz={style:{"font-size":"0.8rem","padding-left":"var(--bs-dropdown-item-padding-x)","padding-right":"var(--bs-dropdown-item-padding-x)"}},Zz={class:"text-body d-flex"},Jz={class:"ms-auto"},Qz={key:1},eW={class:"w-100 dropdown-item text-muted",style:{"white-space":"break-spaces","font-size":"0.7rem"}},tW={key:2,class:"d-flex",style:{"padding-left":"var(--bs-dropdown-item-padding-x)","padding-right":"var(--bs-dropdown-item-padding-x)"}},nW={key:1,class:"confirmDelete"},iW={class:"d-flex w-100 gap-2"},sW=["disabled"],rW=["disabled"],oW={key:1};function aW(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("ul",Xz,[this.Peer.restricted?(P(),F("li",oW,[f("a",{class:Se(["dropdown-item d-flex text-warning",{disabled:this.allowAccessBtnDisabled}]),onClick:e[9]||(e[9]=a=>this.allowAccessPeer()),role:"button"},[e[24]||(e[24]=f("i",{class:"me-auto bi bi-unlock"},null,-1)),this.allowAccessBtnDisabled?(P(),Ee(o,{key:1,t:"Allowing Access..."})):(P(),Ee(o,{key:0,t:"Allow Access"}))],2)])):(P(),F(De,{key:0},[this.confirmDelete?(P(),F("li",nW,[e[23]||(e[23]=f("small",{style:{"white-space":"break-spaces"},class:"mb-2 d-block fw-bold"},"Are you sure to delete this peer?",-1)),f("div",iW,[f("button",{disabled:this.deleteBtnDisabled,onClick:e[7]||(e[7]=a=>this.confirmDelete=!1),class:"flex-grow-1 btn btn-sm bg-secondary-subtle text-secondary-emphasis border border-secondary-subtle"},[L(o,{t:"No"})],8,sW),f("button",{onClick:e[8]||(e[8]=a=>this.deletePeer()),disabled:this.deleteBtnDisabled,class:"flex-grow-1 ms-auto btn btn-sm bg-danger"},[L(o,{t:"Yes"})],8,rW)])])):(P(),F(De,{key:0},[this.Peer.status==="running"?(P(),F(De,{key:0},[f("li",qz,[f("span",Zz,[e[10]||(e[10]=f("i",{class:"bi bi-box-arrow-in-right"},null,-1)),f("span",Jz,pe(this.Peer.endpoint),1)])]),e[11]||(e[11]=f("li",null,[f("hr",{class:"dropdown-divider"})],-1))],64)):se("",!0),this.Peer.private_key?(P(),F("li",tW,[f("a",{class:"dropdown-item text-center px-0 rounded-3",role:"button",onClick:e[0]||(e[0]=a=>this.downloadPeer())},e[12]||(e[12]=[f("i",{class:"me-auto bi bi-download"},null,-1)])),f("a",{class:"dropdown-item text-center px-0 rounded-3",role:"button",onClick:e[1]||(e[1]=a=>this.downloadQRCode())},e[13]||(e[13]=[f("i",{class:"me-auto bi bi-qr-code"},null,-1)])),f("a",{class:"dropdown-item text-center px-0 rounded-3",role:"button",onClick:e[2]||(e[2]=a=>this.$emit("share"))},e[14]||(e[14]=[f("i",{class:"me-auto bi bi-share"},null,-1)]))])):(P(),F("li",Qz,[f("small",eW,[L(o,{t:"Download & QR Code is not available due to no private key set for this peer"})])])),e[21]||(e[21]=f("li",null,[f("hr",{class:"dropdown-divider"})],-1)),f("li",null,[f("a",{class:"dropdown-item d-flex",role:"button",onClick:e[3]||(e[3]=a=>this.$emit("setting"))},[e[15]||(e[15]=f("i",{class:"me-auto bi bi-pen"},null,-1)),e[16]||(e[16]=Be()),L(o,{t:"Peer Settings"})])]),f("li",null,[f("a",{class:"dropdown-item d-flex",role:"button",onClick:e[4]||(e[4]=a=>this.$emit("jobs"))},[e[17]||(e[17]=f("i",{class:"me-auto bi bi-app-indicator"},null,-1)),e[18]||(e[18]=Be()),L(o,{t:"Schedule Jobs"})])]),e[22]||(e[22]=f("li",null,[f("hr",{class:"dropdown-divider"})],-1)),f("li",null,[f("a",{class:Se(["dropdown-item d-flex text-warning",{disabled:this.restrictBtnDisabled}]),onClick:e[5]||(e[5]=a=>this.restrictPeer()),role:"button"},[e[19]||(e[19]=f("i",{class:"me-auto bi bi-lock"},null,-1)),this.restrictBtnDisabled?(P(),Ee(o,{key:1,t:"Restricting..."})):(P(),Ee(o,{key:0,t:"Restrict Access"}))],2)]),f("li",null,[f("a",{class:Se(["dropdown-item d-flex fw-bold text-danger",{disabled:this.deleteBtnDisabled}]),onClick:e[6]||(e[6]=a=>this.confirmDelete=!0),role:"button"},[e[20]||(e[20]=f("i",{class:"me-auto bi bi-trash"},null,-1)),this.deleteBtnDisabled?(P(),Ee(o,{key:1,t:"Deleting..."})):(P(),Ee(o,{key:0,t:"Delete"}))],2)])],64))],64))])}const lW=He(Gz,[["render",aW],["__scopeId","data-v-3fa1c090"]]),cW={name:"peer",components:{LocaleText:Le,PeerSettingsDropdown:lW},props:{Peer:Object},data(){return{}},setup(){const t=me(null),e=me(!1);return Uz(t,n=>{e.value=!1}),{target:t,subMenuOpened:e}},computed:{getLatestHandshake(){return this.Peer.latest_handshake.includes(",")?this.Peer.latest_handshake.split(",")[0]:this.Peer.latest_handshake}}},uW={key:0,class:"card-header bg-transparent d-flex align-items-center gap-2 border-0"},dW={style:{"font-size":"0.8rem"},class:"ms-auto d-flex gap-2"},hW={class:"text-primary"},fW={class:"text-success"},gW={key:0,class:"text-secondary"},pW={key:1,class:"border-0 card-header bg-transparent text-warning fw-bold",style:{"font-size":"0.8rem"}},mW={class:"card-body pt-1",style:{"font-size":"0.9rem"}},_W={class:"mb-1"},vW={class:"d-block"},yW={class:"text-muted"},bW={class:"d-block"},wW={class:"d-flex align-items-end"};function xW(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("PeerSettingsDropdown");return P(),F("div",{class:Se(["card shadow-sm rounded-3 peerCard bg-transparent",{"border-warning":n.Peer.restricted}])},[f("div",null,[n.Peer.restricted?(P(),F("div",pW,[e[11]||(e[11]=f("i",{class:"bi-lock-fill me-2"},null,-1)),L(o,{t:"Access Restricted"})])):(P(),F("div",uW,[f("div",{class:Se(["dot ms-0",{active:n.Peer.status==="running"}])},null,2),f("div",dW,[f("span",hW,[e[6]||(e[6]=f("i",{class:"bi bi-arrow-down"},null,-1)),f("strong",null,pe((n.Peer.cumu_receive+n.Peer.total_receive).toFixed(4)),1),e[7]||(e[7]=Be(" GB "))]),f("span",fW,[e[8]||(e[8]=f("i",{class:"bi bi-arrow-up"},null,-1)),f("strong",null,pe((n.Peer.cumu_sent+n.Peer.total_sent).toFixed(4)),1),e[9]||(e[9]=Be(" GB "))]),n.Peer.latest_handshake!=="No Handshake"?(P(),F("span",gW,[e[10]||(e[10]=f("i",{class:"bi bi-arrows-angle-contract"},null,-1)),Be(" "+pe(r.getLatestHandshake)+" ago ",1)])):se("",!0)])]))]),f("div",mW,[f("h6",null,pe(n.Peer.name?n.Peer.name:"Untitled Peer"),1),f("div",_W,[e[12]||(e[12]=f("small",{class:"text-muted"}," Public Key ",-1)),f("small",vW,[f("samp",null,pe(n.Peer.id),1)])]),f("div",null,[f("small",yW,[L(o,{t:"Allowed IPs"})]),f("small",bW,[f("samp",null,pe(n.Peer.allowed_ip),1)])]),f("div",wW,[f("div",{class:Se(["ms-auto px-2 rounded-3 subMenuBtn",{active:this.subMenuOpened}])},[f("a",{role:"button",class:"text-body",onClick:e[0]||(e[0]=l=>this.subMenuOpened=!0)},e[13]||(e[13]=[f("h5",{class:"mb-0"},[f("i",{class:"bi bi-three-dots"})],-1)])),L(xt,{name:"slide-fade"},{default:Me(()=>[this.subMenuOpened?(P(),Ee(a,{key:0,onQrcode:e[1]||(e[1]=l=>this.$emit("qrcode",l)),onSetting:e[2]||(e[2]=l=>this.$emit("setting")),onJobs:e[3]||(e[3]=l=>this.$emit("jobs")),onRefresh:e[4]||(e[4]=l=>this.$emit("refresh")),onShare:e[5]||(e[5]=l=>this.$emit("share")),Peer:n.Peer,ref:"target"},null,8,["Peer"])):se("",!0)]),_:1})],2)])])],2)}const EW=He(cW,[["render",xW],["__scopeId","data-v-116e739e"]]);/*! + */(function(){function t(b){var C=new Float64Array(16);if(b)for(var k=0;k>16&1),T[I-1]&=65535;T[15]=A[15]-32767-(T[14]>>16&1),k=T[15]>>16&1,T[14]&=65535,i(A,T,1-k)}for(var I=0;I<16;++I)b[2*I]=A[I]&255,b[2*I+1]=A[I]>>8}function n(b){for(var C=0;C<16;++C)b[(C+1)%16]+=(C<15?1:38)*Math.floor(b[C]/65536),b[C]&=65535}function i(b,C,k){for(var T,A=~(k-1),I=0;I<16;++I)T=A&(b[I]^C[I]),b[I]^=T,C[I]^=T}function s(b,C,k){for(var T=0;T<16;++T)b[T]=C[T]+k[T]|0}function r(b,C,k){for(var T=0;T<16;++T)b[T]=C[T]-k[T]|0}function o(b,C,k){for(var T=new Float64Array(31),A=0;A<16;++A)for(var I=0;I<16;++I)T[A+I]+=C[A]*k[I];for(var A=0;A<15;++A)T[A]+=38*T[A+16];for(var A=0;A<16;++A)b[A]=T[A];n(b),n(b)}function a(b,C){for(var k=t(),T=0;T<16;++T)k[T]=C[T];for(var T=253;T>=0;--T)o(k,k,k),T!==2&&T!==4&&o(k,k,C);for(var T=0;T<16;++T)b[T]=k[T]}function l(b){b[31]=b[31]&127|64,b[0]&=248}function c(b){for(var C,k=new Uint8Array(32),T=t([1]),A=t([9]),I=t(),V=t([1]),Y=t(),ne=t(),N=t([56129,1]),B=t([9]),R=0;R<32;++R)k[R]=b[R];l(k);for(var R=254;R>=0;--R)C=k[R>>>3]>>>(R&7)&1,i(T,A,C),i(I,V,C),s(Y,T,I),r(T,T,I),s(I,A,V),r(A,A,V),o(V,Y,Y),o(ne,T,T),o(T,I,T),o(I,A,Y),s(Y,T,I),r(T,T,I),o(A,T,T),r(I,V,ne),o(T,I,N),s(T,T,V),o(I,I,T),o(T,V,ne),o(V,A,B),o(A,Y,Y),i(T,A,C),i(I,V,C);return a(I,I),o(T,T,I),e(k,T),k}function u(){var b=new Uint8Array(32);return window.crypto.getRandomValues(b),b}function d(){var b=u();return l(b),b}function f(b,C){for(var k=Uint8Array.from([C[0]>>2&63,(C[0]<<4|C[1]>>4)&63,(C[1]<<2|C[2]>>6)&63,C[2]&63]),T=0;T<4;++T)b[T]=k[T]+65+(25-k[T]>>8&6)-(51-k[T]>>8&75)-(61-k[T]>>8&15)+(62-k[T]>>8&3)}function g(b){var C,k=new Uint8Array(44);for(C=0;C<32/3;++C)f(k.subarray(C*4),b.subarray(C*3));return f(k.subarray(C*4),Uint8Array.from([b[C*3+0],b[C*3+1],0])),k[43]=61,String.fromCharCode.apply(null,k)}function p(b){let C=window.atob(b),k=C.length,T=new Uint8Array(k);for(let I=0;I>>8&255,C>>>16&255,C>>>24&255)}function v(b,C){b.push(C&255,C>>>8&255)}function y(b,C){for(var k=0;k>>1:C>>>1;E.table[k]=C}}for(var A=-1,I=0;I>>8^E.table[(A^b[I])&255];return(A^-1)>>>0}function w(b){for(var C=[],k=[],T=0,A=0;A{t.status?(this.success=!0,await this.store.getConfigurations(),this.$router.push(`/configuration/${this.newConfiguration.ConfigurationName}/peers`)):(this.error=!0,this.errorMessage=t.message,document.querySelector(`#${t.data}`).classList.remove("is-valid"),document.querySelector(`#${t.data}`).classList.add("is-invalid"),this.loading=!1)}))}},computed:{goodToSubmit(){let t=["ConfigurationName","Address","ListenPort","PrivateKey"],e=[...document.querySelectorAll("input[required]")];return t.find(n=>this.newConfiguration[n].length===0)===void 0&&e.find(n=>n.classList.contains("is-invalid"))===void 0}},watch:{"newConfiguration.Address"(t){let e=document.querySelector("#Address");e.classList.remove("is-invalid","is-valid");try{if(t.trim().split("/").filter(s=>s.length>0).length!==2)throw Error();let n=am(t),i=n.end-n.start;this.numberOfAvailableIPs=i.toLocaleString(),e.classList.add("is-valid")}catch{this.numberOfAvailableIPs="0",e.classList.add("is-invalid")}},"newConfiguration.ListenPort"(t){let e=document.querySelector("#ListenPort");e.classList.remove("is-invalid","is-valid"),t<0||t>65353||!Number.isInteger(t)?e.classList.add("is-invalid"):e.classList.add("is-valid")},"newConfiguration.ConfigurationName"(t){let e=document.querySelector("#ConfigurationName");e.classList.remove("is-invalid","is-valid"),!/^[a-zA-Z0-9_=+.-]{1,15}$/.test(t)||t.length===0||this.store.Configurations.find(n=>n.Name===t)?e.classList.add("is-invalid"):e.classList.add("is-valid")},"newConfiguration.PrivateKey"(t){let e=document.querySelector("#PrivateKey");e.classList.remove("is-invalid","is-valid");try{wireguard.generatePublicKey(t),e.classList.add("is-valid")}catch{e.classList.add("is-invalid")}}}},l8={class:"mt-5 text-body"},c8={class:"container mb-4"},u8={class:"mb-4 d-flex align-items-center gap-4"},d8={class:"mb-0"},h8={class:"card rounded-3 shadow"},f8={class:"card-header"},g8={class:"card-body"},p8=["disabled"],m8={class:"invalid-feedback"},_8={key:0},v8={key:1},y8={class:"mb-0"},b8={class:"card rounded-3 shadow"},w8={class:"card-header"},x8={class:"card-body",style:{"font-family":"var(--bs-font-monospace)"}},E8={class:"mb-2"},C8={class:"text-muted fw-bold mb-1"},S8={class:"input-group"},k8=["disabled"],T8={class:"text-muted fw-bold mb-1"},A8={class:"card rounded-3 shadow"},P8={class:"card-header"},M8={class:"card-body"},I8=["disabled"],D8={class:"invalid-feedback"},R8={key:0},$8={key:1},L8={class:"card rounded-3 shadow"},O8={class:"card-header d-flex align-items-center"},N8={class:"badge rounded-pill text-bg-success ms-auto"},F8={class:"card-body"},B8=["disabled"],V8={class:"invalid-feedback"},z8={key:0},W8={key:1},Y8={class:"accordion",id:"newConfigurationOptionalAccordion"},H8={class:"accordion-item"},j8={class:"accordion-header"},K8={class:"accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#newConfigurationOptionalAccordionCollapse"},U8={id:"newConfigurationOptionalAccordionCollapse",class:"accordion-collapse collapse","data-bs-parent":"#newConfigurationOptionalAccordion"},G8={class:"accordion-body d-flex flex-column gap-3"},X8={class:"card rounded-3"},q8={class:"card-body"},Z8={class:"card rounded-3"},J8={class:"card-body"},Q8={class:"card rounded-3"},ez={class:"card-body"},tz={class:"card rounded-3"},nz={class:"card-body"},iz=["disabled"],sz={key:0,class:"d-flex w-100"},rz={key:1,class:"d-flex w-100"},oz={key:2,class:"d-flex w-100 align-items-center"};function az(t,e,n,i,s,r){const o=Ce("RouterLink"),a=Ce("LocaleText");return P(),F("div",l8,[h("div",c8,[h("div",u8,[$(o,{to:"/",class:"btn btn-dark btn-brand p-2 shadow",style:{"border-radius":"100%"}},{default:Me(()=>e[11]||(e[11]=[h("h2",{class:"mb-0",style:{"line-height":"0"}},[h("i",{class:"bi bi-arrow-left-circle"})],-1)])),_:1}),h("h2",d8,[$(a,{t:"New Configuration"})]),$(o,{to:"/restore_configuration",class:"btn btn-dark btn-brand p-2 shadow ms-auto",style:{"border-radius":"100%"}},{default:Me(()=>e[12]||(e[12]=[h("h2",{class:"mb-0",style:{"line-height":"0"}},[h("i",{class:"bi bi-clock-history"})],-1)])),_:1})]),h("form",{class:"text-body d-flex flex-column gap-3",onSubmit:e[10]||(e[10]=l=>{l.preventDefault(),this.saveNewConfiguration()})},[h("div",h8,[h("div",f8,[$(a,{t:"Configuration Name"})]),h("div",g8,[Re(h("input",{type:"text",class:"form-control",placeholder:"ex. wg1",id:"ConfigurationName","onUpdate:modelValue":e[0]||(e[0]=l=>this.newConfiguration.ConfigurationName=l),disabled:this.loading,required:""},null,8,p8),[[ze,this.newConfiguration.ConfigurationName]]),h("div",m8,[this.error?(P(),F("div",_8,pe(this.errorMessage),1)):(P(),F("div",v8,[$(a,{t:"Configuration name is invalid. Possible reasons:"}),h("ul",y8,[h("li",null,[$(a,{t:"Configuration name already exist."})]),h("li",null,[$(a,{t:"Configuration name can only contain 15 lower/uppercase alphabet, numbers, underscore, equal sign, plus sign, period and hyphen."})])])]))])])]),h("div",b8,[h("div",w8,[$(a,{t:"Private Key"}),e[13]||(e[13]=Fe(" & ")),$(a,{t:"Public Key"})]),h("div",x8,[h("div",E8,[h("label",C8,[h("small",null,[$(a,{t:"Private Key"})])]),h("div",S8,[Re(h("input",{type:"text",class:"form-control",id:"PrivateKey",required:"",disabled:this.loading,"onUpdate:modelValue":e[1]||(e[1]=l=>this.newConfiguration.PrivateKey=l)},null,8,k8),[[ze,this.newConfiguration.PrivateKey]]),h("button",{class:"btn btn-outline-primary",type:"button",title:"Regenerate Private Key",onClick:e[2]||(e[2]=l=>r.wireguardGenerateKeypair())},e[14]||(e[14]=[h("i",{class:"bi bi-arrow-repeat"},null,-1)]))])]),h("div",null,[h("label",T8,[h("small",null,[$(a,{t:"Public Key"})])]),Re(h("input",{type:"text",class:"form-control",id:"PublicKey","onUpdate:modelValue":e[3]||(e[3]=l=>this.newConfiguration.PublicKey=l),disabled:""},null,512),[[ze,this.newConfiguration.PublicKey]])])])]),h("div",A8,[h("div",P8,[$(a,{t:"Listen Port"})]),h("div",M8,[Re(h("input",{type:"number",class:"form-control",placeholder:"0-65353",id:"ListenPort",min:"1",max:"65353","onUpdate:modelValue":e[4]||(e[4]=l=>this.newConfiguration.ListenPort=l),disabled:this.loading,required:""},null,8,I8),[[ze,this.newConfiguration.ListenPort]]),h("div",D8,[this.error?(P(),F("div",R8,pe(this.errorMessage),1)):(P(),F("div",$8,[$(a,{t:"Invalid port"})]))])])]),h("div",L8,[h("div",O8,[$(a,{t:"IP Address/CIDR"}),h("span",N8,pe(s.numberOfAvailableIPs)+" Available IPs",1)]),h("div",F8,[Re(h("input",{type:"text",class:"form-control",placeholder:"Ex: 10.0.0.1/24",id:"Address","onUpdate:modelValue":e[5]||(e[5]=l=>this.newConfiguration.Address=l),disabled:this.loading,required:""},null,8,B8),[[ze,this.newConfiguration.Address]]),h("div",V8,[this.error?(P(),F("div",z8,pe(this.errorMessage),1)):(P(),F("div",W8," IP Address/CIDR is invalid "))])])]),e[23]||(e[23]=h("hr",null,null,-1)),h("div",Y8,[h("div",H8,[h("h2",j8,[h("button",K8,[$(a,{t:"Optional Settings"})])]),h("div",U8,[h("div",G8,[h("div",X8,[e[15]||(e[15]=h("div",{class:"card-header"},"PreUp",-1)),h("div",q8,[Re(h("input",{type:"text",class:"form-control",id:"preUp","onUpdate:modelValue":e[6]||(e[6]=l=>this.newConfiguration.PreUp=l)},null,512),[[ze,this.newConfiguration.PreUp]])])]),h("div",Z8,[e[16]||(e[16]=h("div",{class:"card-header"},"PreDown",-1)),h("div",J8,[Re(h("input",{type:"text",class:"form-control",id:"preDown","onUpdate:modelValue":e[7]||(e[7]=l=>this.newConfiguration.PreDown=l)},null,512),[[ze,this.newConfiguration.PreDown]])])]),h("div",Q8,[e[17]||(e[17]=h("div",{class:"card-header"},"PostUp",-1)),h("div",ez,[Re(h("input",{type:"text",class:"form-control",id:"postUp","onUpdate:modelValue":e[8]||(e[8]=l=>this.newConfiguration.PostUp=l)},null,512),[[ze,this.newConfiguration.PostUp]])])]),h("div",tz,[e[18]||(e[18]=h("div",{class:"card-header"},"PostDown",-1)),h("div",nz,[Re(h("input",{type:"text",class:"form-control",id:"postDown","onUpdate:modelValue":e[9]||(e[9]=l=>this.newConfiguration.PostDown=l)},null,512),[[ze,this.newConfiguration.PostDown]])])])])])])]),h("button",{class:"btn btn-dark btn-brand rounded-3 px-3 py-2 shadow ms-auto",disabled:!this.goodToSubmit||this.loading||this.success},[this.success?(P(),F("span",sz,[$(a,{t:"Success"}),e[19]||(e[19]=Fe("! ")),e[20]||(e[20]=h("i",{class:"bi bi-check-circle-fill ms-2"},null,-1))])):this.loading?(P(),F("span",oz,[$(a,{t:"Saving..."}),e[22]||(e[22]=h("span",{class:"ms-2 spinner-border spinner-border-sm",role:"status"},null,-1))])):(P(),F("span",rz,[e[21]||(e[21]=h("i",{class:"bi bi-save-fill me-2"},null,-1)),$(a,{t:"Save"})]))],8,iz)],32)])])}const lz=He(a8,[["render",az]]),cz={name:"configuration"},uz={class:"mt-md-5 mt-3 text-body"};function dz(t,e,n,i,s,r){const o=Ce("RouterView");return P(),F("div",uz,[$(o,null,{default:Me(({Component:a,route:l})=>[$(xt,{name:"fade2",mode:"out-in"},{default:Me(()=>[(P(),Ee(x_,null,{default:Me(()=>[(P(),Ee(_a(a),{key:l.path}))]),_:2},1024))]),_:2},1024)]),_:1})])}const hz=He(cz,[["render",dz]]),fz={name:"peerSearch",components:{LocaleText:Le},setup(){const t=Xe(),e=$n();return{store:t,wireguardConfigurationStore:e}},props:{configuration:Object},data(){return{sort:{status:At("Status"),name:At("Name"),allowed_ip:At("Allowed IPs"),restricted:At("Restricted")},interval:{5e3:At("5 Seconds"),1e4:At("10 Seconds"),3e4:At("30 Seconds"),6e4:At("1 Minutes")},searchString:"",searchStringTimeout:void 0,showDisplaySettings:!1,showMoreSettings:!1}},methods:{debounce(){this.searchStringTimeout?(clearTimeout(this.searchStringTimeout),this.searchStringTimeout=setTimeout(()=>{this.wireguardConfigurationStore.searchString=this.searchString},300)):this.searchStringTimeout=setTimeout(()=>{this.wireguardConfigurationStore.searchString=this.searchString},300)},updateSort(t){ht("/api/updateDashboardConfigurationItem",{section:"Server",key:"dashboard_sort",value:t},e=>{e.status&&this.store.getConfiguration()})},updateRefreshInterval(t){ht("/api/updateDashboardConfigurationItem",{section:"Server",key:"dashboard_refresh_interval",value:t},e=>{e.status&&this.store.getConfiguration()})},downloadAllPeer(){Pt(`/api/downloadAllPeers/${this.configuration.Name}`,{},t=>{console.log(t),window.wireguard.generateZipFiles(t,this.configuration.Name)})}},computed:{searchBarPlaceholder(){return At("Search Peers...")}}},gz={class:"mb-3"},pz={class:"d-flex gap-2 z-3 peerSearchContainer"},mz={class:"mt-3 mt-md-0 flex-grow-1"},_z=["placeholder"],vz={key:0,class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0 overflow-y-scroll displayModal"},yz={class:"container-md d-flex h-100 w-100"},bz={class:"m-auto modal-dialog-centered dashboardModal"},wz={class:"card rounded-3 shadow w-100"},xz={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4 pb-2"},Ez={class:"mb-0 fw-normal"},Cz={class:"card-body px-4 pb-4 d-flex gap-3 flex-column"},Sz={class:"text-muted fw-bold mb-2"},kz={class:"list-group"},Tz=["onClick"],Az={class:"me-auto"},Pz={key:0,class:"bi bi-check text-primary"},Mz={class:"text-muted fw-bold mb-2"},Iz={class:"list-group"},Dz=["onClick"],Rz={class:"me-auto"},$z={key:0,class:"bi bi-check text-primary"},Lz={key:0,class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0 overflow-y-scroll displayModal"},Oz={class:"container-md d-flex h-100 w-100"},Nz={class:"m-auto modal-dialog-centered dashboardModal"},Fz={class:"card rounded-3 shadow w-100"},Bz={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4"},Vz={class:"mb-0"},zz={class:"card-body px-4 pb-4 d-flex gap-3 flex-column pt-0"},Wz={class:"text-muted fw-bold mb-2"},Yz={class:"list-group"},Hz={class:"text-muted fw-bold mb-2"},jz={class:"list-group"};function Kz(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("RouterLink");return P(),F("div",gz,[h("div",pz,[$(a,{to:"create",class:"text-decoration-none btn text-primary-emphasis bg-primary-subtle rounded-3 border-1 border-primary-subtle shadow-sm"},{default:Me(()=>[e[13]||(e[13]=h("i",{class:"bi bi-plus-lg me-2"},null,-1)),$(o,{t:"Peer"})]),_:1}),h("button",{class:"btn text-primary-emphasis bg-primary-subtle rounded-3 border-1 border-primary-subtle shadow-sm",onClick:e[0]||(e[0]=l=>this.downloadAllPeer())},[e[14]||(e[14]=h("i",{class:"bi bi-download me-2"},null,-1)),$(o,{t:"Download All"})]),h("div",mz,[Re(h("input",{class:"form-control rounded-3 bg-secondary-subtle border-1 border-secondary-subtle shadow-sm w-100",placeholder:r.searchBarPlaceholder,id:"searchPeers",onKeyup:e[1]||(e[1]=l=>this.debounce()),"onUpdate:modelValue":e[2]||(e[2]=l=>this.searchString=l)},null,40,_z),[[ze,this.searchString]])]),h("button",{onClick:e[3]||(e[3]=l=>this.showDisplaySettings=!0),class:"btn text-secondary-emphasis bg-secondary-subtle rounded-3 border-1 border-secondary-subtle shadow-sm",type:"button","aria-expanded":"false"},[e[15]||(e[15]=h("i",{class:"bi bi-filter-circle me-2"},null,-1)),$(o,{t:"Display"})]),h("button",{class:"btn text-secondary-emphasis bg-secondary-subtle rounded-3 border-1 border-secondary-subtle shadow-sm",onClick:e[4]||(e[4]=l=>this.$emit("editConfiguration")),type:"button","aria-expanded":"false"},e[16]||(e[16]=[h("i",{class:"bi bi-gear-fill"},null,-1)])),h("button",{class:"btn text-secondary-emphasis bg-secondary-subtle rounded-3 border-1 border-secondary-subtle shadow-sm",onClick:e[5]||(e[5]=l=>this.showMoreSettings=!0),type:"button","aria-expanded":"false"},e[17]||(e[17]=[h("i",{class:"bi bi-three-dots"},null,-1)])),$(xt,{name:"zoom"},{default:Me(()=>[this.showDisplaySettings?(P(),F("div",vz,[h("div",yz,[h("div",bz,[h("div",wz,[h("div",xz,[h("h4",Ez,[$(o,{t:"Display"})]),h("button",{type:"button",class:"btn-close ms-auto",onClick:e[6]||(e[6]=l=>this.showDisplaySettings=!1)})]),h("div",Cz,[h("div",null,[h("p",Sz,[h("small",null,[$(o,{t:"Sort by"})])]),h("div",kz,[(P(!0),F(Ie,null,Ge(this.sort,(l,c)=>(P(),F("a",{class:"list-group-item list-group-item-action d-flex",role:"button",onClick:u=>this.updateSort(c)},[h("span",Az,pe(l),1),i.store.Configuration.Server.dashboard_sort===c?(P(),F("i",Pz)):re("",!0)],8,Tz))),256))])]),h("div",null,[h("p",Mz,[h("small",null,[$(o,{t:"Refresh Interval"})])]),h("div",Iz,[(P(!0),F(Ie,null,Ge(this.interval,(l,c)=>(P(),F("a",{class:"list-group-item list-group-item-action d-flex",role:"button",onClick:u=>this.updateRefreshInterval(c)},[h("span",Rz,pe(l),1),i.store.Configuration.Server.dashboard_refresh_interval===c?(P(),F("i",$z)):re("",!0)],8,Dz))),256))])])])])])])])):re("",!0)]),_:1}),$(xt,{name:"zoom"},{default:Me(()=>[this.showMoreSettings?(P(),F("div",Lz,[h("div",Oz,[h("div",Nz,[h("div",Fz,[h("div",Bz,[h("h4",Vz,[$(o,{t:"Other Settings"})]),h("button",{type:"button",class:"btn-close ms-auto",onClick:e[7]||(e[7]=l=>this.showMoreSettings=!1)})]),h("div",zz,[h("div",null,[h("p",Wz,[h("small",null,[$(o,{t:"Peers"})])]),h("div",Yz,[h("a",{class:"list-group-item list-group-item-action d-flex",role:"button",onClick:e[8]||(e[8]=l=>this.$emit("selectPeers"))},[$(o,{t:"Select Peers"})]),h("a",{class:"list-group-item list-group-item-action d-flex",role:"button",onClick:e[9]||(e[9]=l=>this.$emit("jobsAll"))},[$(o,{t:"Active Jobs"})]),h("a",{class:"list-group-item list-group-item-action d-flex",role:"button",onClick:e[10]||(e[10]=l=>this.$emit("jobLogs"))},[$(o,{t:"Logs"})])])]),h("div",null,[h("p",Hz,[h("small",null,[$(o,{t:"Configuration"})])]),h("div",jz,[h("a",{class:"list-group-item list-group-item-action d-flex",role:"button",onClick:e[11]||(e[11]=l=>this.$emit("backupRestore"))},[$(o,{t:"Backup & Restore"})]),h("a",{class:"list-group-item list-group-item-action d-flex text-danger fw-bold",role:"button",onClick:e[12]||(e[12]=l=>this.$emit("deleteConfiguration"))},[$(o,{t:"Delete"})])])])])])])])])):re("",!0)]),_:1})])])}const Uz=He(fz,[["render",Kz],["__scopeId","data-v-aaa147c4"]]);function Gz(t){return af()?(o_(t),!0):!1}function kS(t){return typeof t=="function"?t():Z(t)}const TS=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Xz=Object.prototype.toString,qz=t=>Xz.call(t)==="[object Object]",uh=()=>{},Zz=Jz();function Jz(){var t,e;return TS&&((t=window?.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((e=window?.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function xc(t){var e;const n=kS(t);return(e=n?.$el)!=null?e:n}const AS=TS?window:void 0;function Ug(...t){let e,n,i,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,i,s]=t,e=AS):[e,n,i,s]=t,!e)return uh;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const r=[],o=()=>{r.forEach(u=>u()),r.length=0},a=(u,d,f,g)=>(u.addEventListener(d,f,g),()=>u.removeEventListener(d,f,g)),l=Zt(()=>[xc(e),kS(s)],([u,d])=>{if(o(),!u)return;const f=qz(d)?{...d}:d;r.push(...n.flatMap(g=>i.map(p=>a(u,g,p,f))))},{immediate:!0,flush:"post"}),c=()=>{l(),o()};return Gz(c),c}let T0=!1;function Qz(t,e,n={}){const{window:i=AS,ignore:s=[],capture:r=!0,detectIframe:o=!1}=n;if(!i)return uh;Zz&&!T0&&(T0=!0,Array.from(i.document.body.children).forEach(f=>f.addEventListener("click",uh)),i.document.documentElement.addEventListener("click",uh));let a=!0;const l=f=>s.some(g=>{if(typeof g=="string")return Array.from(i.document.querySelectorAll(g)).some(p=>p===f.target||f.composedPath().includes(p));{const p=xc(g);return p&&(f.target===p||f.composedPath().includes(p))}}),u=[Ug(i,"click",f=>{const g=xc(t);if(!(!g||g===f.target||f.composedPath().includes(g))){if(f.detail===0&&(a=!l(f)),!a){a=!0;return}e(f)}},{passive:!0,capture:r}),Ug(i,"pointerdown",f=>{const g=xc(t);a=!l(f)&&!!(g&&!f.composedPath().includes(g))},{passive:!0}),o&&Ug(i,"blur",f=>{setTimeout(()=>{var g;const p=xc(t);((g=i.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!p?.contains(i.document.activeElement)&&e(f)},0)})].filter(Boolean);return()=>u.forEach(f=>f())}const eW={name:"peerSettingsDropdown",components:{LocaleText:Le},setup(){return{dashboardStore:Xe()}},props:{Peer:Object},data(){return{deleteBtnDisabled:!1,restrictBtnDisabled:!1,allowAccessBtnDisabled:!1,confirmDelete:!1}},methods:{downloadPeer(){Pt("/api/downloadPeer/"+this.$route.params.id,{id:this.Peer.id},t=>{if(t.status){const e=new Blob([t.data.file],{type:"text/plain"}),n=URL.createObjectURL(e),i=`${t.data.fileName}.conf`,s=document.createElement("a");s.href=n,s.download=i,s.click(),this.dashboardStore.newMessage("WGDashboard","Peer download started","success")}else this.dashboardStore.newMessage("Server",t.message,"danger")})},downloadQRCode(){Pt("/api/downloadPeer/"+this.$route.params.id,{id:this.Peer.id},t=>{t.status?this.$emit("qrcode",t.data.file):this.dashboardStore.newMessage("Server",t.message,"danger")})},deletePeer(){this.deleteBtnDisabled=!0,ht(`/api/deletePeers/${this.$route.params.id}`,{peers:[this.Peer.id]},t=>{this.dashboardStore.newMessage("Server",t.message,t.status?"success":"danger"),this.$emit("refresh"),this.deleteBtnDisabled=!1})},restrictPeer(){this.restrictBtnDisabled=!0,ht(`/api/restrictPeers/${this.$route.params.id}`,{peers:[this.Peer.id]},t=>{this.dashboardStore.newMessage("Server",t.message,t.status?"success":"danger"),this.$emit("refresh"),this.restrictBtnDisabled=!1})},allowAccessPeer(){this.allowAccessBtnDisabled=!0,ht(`/api/allowAccessPeers/${this.$route.params.id}`,{peers:[this.Peer.id]},t=>{this.dashboardStore.newMessage("Server",t.message,t.status?"success":"danger"),this.$emit("refresh"),this.allowAccessBtnDisabled=!1})}}},tW={class:"dropdown-menu mt-2 shadow-lg d-block rounded-3",style:{"max-width":"200px"}},nW={style:{"font-size":"0.8rem","padding-left":"var(--bs-dropdown-item-padding-x)","padding-right":"var(--bs-dropdown-item-padding-x)"}},iW={class:"text-body d-flex"},sW={class:"ms-auto"},rW={key:1},oW={class:"w-100 dropdown-item text-muted",style:{"white-space":"break-spaces","font-size":"0.7rem"}},aW={key:2,class:"d-flex",style:{"padding-left":"var(--bs-dropdown-item-padding-x)","padding-right":"var(--bs-dropdown-item-padding-x)"}},lW={key:1,class:"confirmDelete"},cW={class:"d-flex w-100 gap-2"},uW=["disabled"],dW=["disabled"],hW={key:1};function fW(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("ul",tW,[this.Peer.restricted?(P(),F("li",hW,[h("a",{class:Se(["dropdown-item d-flex text-warning",{disabled:this.allowAccessBtnDisabled}]),onClick:e[9]||(e[9]=a=>this.allowAccessPeer()),role:"button"},[e[24]||(e[24]=h("i",{class:"me-auto bi bi-unlock"},null,-1)),this.allowAccessBtnDisabled?(P(),Ee(o,{key:1,t:"Allowing Access..."})):(P(),Ee(o,{key:0,t:"Allow Access"}))],2)])):(P(),F(Ie,{key:0},[this.confirmDelete?(P(),F("li",lW,[e[23]||(e[23]=h("small",{style:{"white-space":"break-spaces"},class:"mb-2 d-block fw-bold"},"Are you sure to delete this peer?",-1)),h("div",cW,[h("button",{disabled:this.deleteBtnDisabled,onClick:e[7]||(e[7]=a=>this.confirmDelete=!1),class:"flex-grow-1 btn btn-sm bg-secondary-subtle text-secondary-emphasis border border-secondary-subtle"},[$(o,{t:"No"})],8,uW),h("button",{onClick:e[8]||(e[8]=a=>this.deletePeer()),disabled:this.deleteBtnDisabled,class:"flex-grow-1 ms-auto btn btn-sm bg-danger"},[$(o,{t:"Yes"})],8,dW)])])):(P(),F(Ie,{key:0},[this.Peer.status==="running"?(P(),F(Ie,{key:0},[h("li",nW,[h("span",iW,[e[10]||(e[10]=h("i",{class:"bi bi-box-arrow-in-right"},null,-1)),h("span",sW,pe(this.Peer.endpoint),1)])]),e[11]||(e[11]=h("li",null,[h("hr",{class:"dropdown-divider"})],-1))],64)):re("",!0),this.Peer.private_key?(P(),F("li",aW,[h("a",{class:"dropdown-item text-center px-0 rounded-3",role:"button",onClick:e[0]||(e[0]=a=>this.downloadPeer())},e[12]||(e[12]=[h("i",{class:"me-auto bi bi-download"},null,-1)])),h("a",{class:"dropdown-item text-center px-0 rounded-3",role:"button",onClick:e[1]||(e[1]=a=>this.downloadQRCode())},e[13]||(e[13]=[h("i",{class:"me-auto bi bi-qr-code"},null,-1)])),h("a",{class:"dropdown-item text-center px-0 rounded-3",role:"button",onClick:e[2]||(e[2]=a=>this.$emit("share"))},e[14]||(e[14]=[h("i",{class:"me-auto bi bi-share"},null,-1)]))])):(P(),F("li",rW,[h("small",oW,[$(o,{t:"Download & QR Code is not available due to no private key set for this peer"})])])),e[21]||(e[21]=h("li",null,[h("hr",{class:"dropdown-divider"})],-1)),h("li",null,[h("a",{class:"dropdown-item d-flex",role:"button",onClick:e[3]||(e[3]=a=>this.$emit("setting"))},[e[15]||(e[15]=h("i",{class:"me-auto bi bi-pen"},null,-1)),e[16]||(e[16]=Fe()),$(o,{t:"Peer Settings"})])]),h("li",null,[h("a",{class:"dropdown-item d-flex",role:"button",onClick:e[4]||(e[4]=a=>this.$emit("jobs"))},[e[17]||(e[17]=h("i",{class:"me-auto bi bi-app-indicator"},null,-1)),e[18]||(e[18]=Fe()),$(o,{t:"Schedule Jobs"})])]),e[22]||(e[22]=h("li",null,[h("hr",{class:"dropdown-divider"})],-1)),h("li",null,[h("a",{class:Se(["dropdown-item d-flex text-warning",{disabled:this.restrictBtnDisabled}]),onClick:e[5]||(e[5]=a=>this.restrictPeer()),role:"button"},[e[19]||(e[19]=h("i",{class:"me-auto bi bi-lock"},null,-1)),this.restrictBtnDisabled?(P(),Ee(o,{key:1,t:"Restricting..."})):(P(),Ee(o,{key:0,t:"Restrict Access"}))],2)]),h("li",null,[h("a",{class:Se(["dropdown-item d-flex fw-bold text-danger",{disabled:this.deleteBtnDisabled}]),onClick:e[6]||(e[6]=a=>this.confirmDelete=!0),role:"button"},[e[20]||(e[20]=h("i",{class:"me-auto bi bi-trash"},null,-1)),this.deleteBtnDisabled?(P(),Ee(o,{key:1,t:"Deleting..."})):(P(),Ee(o,{key:0,t:"Delete"}))],2)])],64))],64))])}const gW=He(eW,[["render",fW],["__scopeId","data-v-3fa1c090"]]),pW={name:"peer",components:{LocaleText:Le,PeerSettingsDropdown:gW},props:{Peer:Object},data(){return{}},setup(){const t=me(null),e=me(!1);return Qz(t,n=>{e.value=!1}),{target:t,subMenuOpened:e}},computed:{getLatestHandshake(){return this.Peer.latest_handshake.includes(",")?this.Peer.latest_handshake.split(",")[0]:this.Peer.latest_handshake}}},mW={key:0,class:"card-header bg-transparent d-flex align-items-center gap-2 border-0"},_W={style:{"font-size":"0.8rem"},class:"ms-auto d-flex gap-2"},vW={class:"text-primary"},yW={class:"text-success"},bW={key:0,class:"text-secondary"},wW={key:1,class:"border-0 card-header bg-transparent text-warning fw-bold",style:{"font-size":"0.8rem"}},xW={class:"card-body pt-1",style:{"font-size":"0.9rem"}},EW={class:"mb-1"},CW={class:"d-block"},SW={class:"text-muted"},kW={class:"d-block"},TW={class:"d-flex align-items-end"};function AW(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("PeerSettingsDropdown");return P(),F("div",{class:Se(["card shadow-sm rounded-3 peerCard bg-transparent",{"border-warning":n.Peer.restricted}])},[h("div",null,[n.Peer.restricted?(P(),F("div",wW,[e[11]||(e[11]=h("i",{class:"bi-lock-fill me-2"},null,-1)),$(o,{t:"Access Restricted"})])):(P(),F("div",mW,[h("div",{class:Se(["dot ms-0",{active:n.Peer.status==="running"}])},null,2),h("div",_W,[h("span",vW,[e[6]||(e[6]=h("i",{class:"bi bi-arrow-down"},null,-1)),h("strong",null,pe((n.Peer.cumu_receive+n.Peer.total_receive).toFixed(4)),1),e[7]||(e[7]=Fe(" GB "))]),h("span",yW,[e[8]||(e[8]=h("i",{class:"bi bi-arrow-up"},null,-1)),h("strong",null,pe((n.Peer.cumu_sent+n.Peer.total_sent).toFixed(4)),1),e[9]||(e[9]=Fe(" GB "))]),n.Peer.latest_handshake!=="No Handshake"?(P(),F("span",bW,[e[10]||(e[10]=h("i",{class:"bi bi-arrows-angle-contract"},null,-1)),Fe(" "+pe(r.getLatestHandshake)+" ago ",1)])):re("",!0)])]))]),h("div",xW,[h("h6",null,pe(n.Peer.name?n.Peer.name:"Untitled Peer"),1),h("div",EW,[e[12]||(e[12]=h("small",{class:"text-muted"}," Public Key ",-1)),h("small",CW,[h("samp",null,pe(n.Peer.id),1)])]),h("div",null,[h("small",SW,[$(o,{t:"Allowed IPs"})]),h("small",kW,[h("samp",null,pe(n.Peer.allowed_ip),1)])]),h("div",TW,[h("div",{class:Se(["ms-auto px-2 rounded-3 subMenuBtn",{active:this.subMenuOpened}])},[h("a",{role:"button",class:"text-body",onClick:e[0]||(e[0]=l=>this.subMenuOpened=!0)},e[13]||(e[13]=[h("h5",{class:"mb-0"},[h("i",{class:"bi bi-three-dots"})],-1)])),$(xt,{name:"slide-fade"},{default:Me(()=>[this.subMenuOpened?(P(),Ee(a,{key:0,onQrcode:e[1]||(e[1]=l=>this.$emit("qrcode",l)),onSetting:e[2]||(e[2]=l=>this.$emit("setting")),onJobs:e[3]||(e[3]=l=>this.$emit("jobs")),onRefresh:e[4]||(e[4]=l=>this.$emit("refresh")),onShare:e[5]||(e[5]=l=>this.$emit("share")),Peer:n.Peer,ref:"target"},null,8,["Peer"])):re("",!0)]),_:1})],2)])])],2)}const PW=He(pW,[["render",AW],["__scopeId","data-v-116e739e"]]);/*! * @kurkle/color v0.3.2 * https://github.com/kurkle/color#readme * (c) 2023 Jukka Kurkela * Released under the MIT License - */function Ku(t){return t+.5|0}const Ur=(t,e,n)=>Math.max(Math.min(t,n),e);function Ec(t){return Ur(Ku(t*2.55),0,255)}function no(t){return Ur(Ku(t*255),0,255)}function ir(t){return Ur(Ku(t/2.55)/100,0,1)}function A0(t){return Ur(Ku(t*100),0,100)}const Bi={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},lm=[..."0123456789ABCDEF"],CW=t=>lm[t&15],SW=t=>lm[(t&240)>>4]+lm[t&15],Ad=t=>(t&240)>>4===(t&15),kW=t=>Ad(t.r)&&Ad(t.g)&&Ad(t.b)&&Ad(t.a);function TW(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&Bi[t[1]]*17,g:255&Bi[t[2]]*17,b:255&Bi[t[3]]*17,a:e===5?Bi[t[4]]*17:255}:(e===7||e===9)&&(n={r:Bi[t[1]]<<4|Bi[t[2]],g:Bi[t[3]]<<4|Bi[t[4]],b:Bi[t[5]]<<4|Bi[t[6]],a:e===9?Bi[t[7]]<<4|Bi[t[8]]:255})),n}const AW=(t,e)=>t<255?e(t):"";function PW(t){var e=kW(t)?CW:SW;return t?"#"+e(t.r)+e(t.g)+e(t.b)+AW(t.a,e):void 0}const MW=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function PS(t,e,n){const i=e*Math.min(n,1-n),s=(r,o=(r+t/30)%12)=>n-i*Math.max(Math.min(o-3,9-o,1),-1);return[s(0),s(8),s(4)]}function IW(t,e,n){const i=(s,r=(s+t/60)%6)=>n-n*e*Math.max(Math.min(r,4-r,1),0);return[i(5),i(3),i(1)]}function DW(t,e,n){const i=PS(t,1,.5);let s;for(e+n>1&&(s=1/(e+n),e*=s,n*=s),s=0;s<3;s++)i[s]*=1-e-n,i[s]+=e;return i}function RW(t,e,n,i,s){return t===s?(e-n)/i+(e.5?u/(2-r-o):u/(r+o),l=RW(n,i,s,u,r),l=l*60+.5),[l|0,c||0,a]}function G_(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(no)}function X_(t,e,n){return G_(PS,t,e,n)}function $W(t,e,n){return G_(DW,t,e,n)}function LW(t,e,n){return G_(IW,t,e,n)}function MS(t){return(t%360+360)%360}function OW(t){const e=MW.exec(t);let n=255,i;if(!e)return;e[5]!==i&&(n=e[6]?Ec(+e[5]):no(+e[5]));const s=MS(+e[2]),r=+e[3]/100,o=+e[4]/100;return e[1]==="hwb"?i=$W(s,r,o):e[1]==="hsv"?i=LW(s,r,o):i=X_(s,r,o),{r:i[0],g:i[1],b:i[2],a:n}}function NW(t,e){var n=U_(t);n[0]=MS(n[0]+e),n=X_(n),t.r=n[0],t.g=n[1],t.b=n[2]}function FW(t){if(!t)return;const e=U_(t),n=e[0],i=A0(e[1]),s=A0(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${s}%, ${ir(t.a)})`:`hsl(${n}, ${i}%, ${s}%)`}const P0={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"},M0={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 BW(){const t={},e=Object.keys(M0),n=Object.keys(P0);let i,s,r,o,a;for(i=0;i>16&255,r>>8&255,r&255]}return t}let Pd;function VW(t){Pd||(Pd=BW(),Pd.transparent=[0,0,0,0]);const e=Pd[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const zW=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function WW(t){const e=zW.exec(t);let n=255,i,s,r;if(e){if(e[7]!==i){const o=+e[7];n=e[8]?Ec(o):Ur(o*255,0,255)}return i=+e[1],s=+e[3],r=+e[5],i=255&(e[2]?Ec(i):Ur(i,0,255)),s=255&(e[4]?Ec(s):Ur(s,0,255)),r=255&(e[6]?Ec(r):Ur(r,0,255)),{r:i,g:s,b:r,a:n}}}function YW(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${ir(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const Gg=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,Oa=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function HW(t,e,n){const i=Oa(ir(t.r)),s=Oa(ir(t.g)),r=Oa(ir(t.b));return{r:no(Gg(i+n*(Oa(ir(e.r))-i))),g:no(Gg(s+n*(Oa(ir(e.g))-s))),b:no(Gg(r+n*(Oa(ir(e.b))-r))),a:t.a+n*(e.a-t.a)}}function Md(t,e,n){if(t){let i=U_(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,e===0?360:1)),i=X_(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function IS(t,e){return t&&Object.assign(e||{},t)}function I0(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=no(t[3]))):(e=IS(t,{r:0,g:0,b:0,a:1}),e.a=no(e.a)),e}function jW(t){return t.charAt(0)==="r"?WW(t):OW(t)}class du{constructor(e){if(e instanceof du)return e;const n=typeof e;let i;n==="object"?i=I0(e):n==="string"&&(i=TW(e)||VW(e)||jW(e)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var e=IS(this._rgb);return e&&(e.a=ir(e.a)),e}set rgb(e){this._rgb=I0(e)}rgbString(){return this._valid?YW(this._rgb):void 0}hexString(){return this._valid?PW(this._rgb):void 0}hslString(){return this._valid?FW(this._rgb):void 0}mix(e,n){if(e){const i=this.rgb,s=e.rgb;let r;const o=n===r?.5:n,a=2*o-1,l=i.a-s.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;r=1-c,i.r=255&c*i.r+r*s.r+.5,i.g=255&c*i.g+r*s.g+.5,i.b=255&c*i.b+r*s.b+.5,i.a=o*i.a+(1-o)*s.a,this.rgb=i}return this}interpolate(e,n){return e&&(this._rgb=HW(this._rgb,e._rgb,n)),this}clone(){return new du(this.rgb)}alpha(e){return this._rgb.a=no(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=Ku(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Md(this._rgb,2,e),this}darken(e){return Md(this._rgb,2,-e),this}saturate(e){return Md(this._rgb,1,e),this}desaturate(e){return Md(this._rgb,1,-e),this}rotate(e){return NW(this._rgb,e),this}}/*! + */function Ku(t){return t+.5|0}const Ur=(t,e,n)=>Math.max(Math.min(t,n),e);function Ec(t){return Ur(Ku(t*2.55),0,255)}function no(t){return Ur(Ku(t*255),0,255)}function ir(t){return Ur(Ku(t/2.55)/100,0,1)}function A0(t){return Ur(Ku(t*100),0,100)}const Bi={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},lm=[..."0123456789ABCDEF"],MW=t=>lm[t&15],IW=t=>lm[(t&240)>>4]+lm[t&15],Ad=t=>(t&240)>>4===(t&15),DW=t=>Ad(t.r)&&Ad(t.g)&&Ad(t.b)&&Ad(t.a);function RW(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&Bi[t[1]]*17,g:255&Bi[t[2]]*17,b:255&Bi[t[3]]*17,a:e===5?Bi[t[4]]*17:255}:(e===7||e===9)&&(n={r:Bi[t[1]]<<4|Bi[t[2]],g:Bi[t[3]]<<4|Bi[t[4]],b:Bi[t[5]]<<4|Bi[t[6]],a:e===9?Bi[t[7]]<<4|Bi[t[8]]:255})),n}const $W=(t,e)=>t<255?e(t):"";function LW(t){var e=DW(t)?MW:IW;return t?"#"+e(t.r)+e(t.g)+e(t.b)+$W(t.a,e):void 0}const OW=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function PS(t,e,n){const i=e*Math.min(n,1-n),s=(r,o=(r+t/30)%12)=>n-i*Math.max(Math.min(o-3,9-o,1),-1);return[s(0),s(8),s(4)]}function NW(t,e,n){const i=(s,r=(s+t/60)%6)=>n-n*e*Math.max(Math.min(r,4-r,1),0);return[i(5),i(3),i(1)]}function FW(t,e,n){const i=PS(t,1,.5);let s;for(e+n>1&&(s=1/(e+n),e*=s,n*=s),s=0;s<3;s++)i[s]*=1-e-n,i[s]+=e;return i}function BW(t,e,n,i,s){return t===s?(e-n)/i+(e.5?u/(2-r-o):u/(r+o),l=BW(n,i,s,u,r),l=l*60+.5),[l|0,c||0,a]}function G_(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(no)}function X_(t,e,n){return G_(PS,t,e,n)}function VW(t,e,n){return G_(FW,t,e,n)}function zW(t,e,n){return G_(NW,t,e,n)}function MS(t){return(t%360+360)%360}function WW(t){const e=OW.exec(t);let n=255,i;if(!e)return;e[5]!==i&&(n=e[6]?Ec(+e[5]):no(+e[5]));const s=MS(+e[2]),r=+e[3]/100,o=+e[4]/100;return e[1]==="hwb"?i=VW(s,r,o):e[1]==="hsv"?i=zW(s,r,o):i=X_(s,r,o),{r:i[0],g:i[1],b:i[2],a:n}}function YW(t,e){var n=U_(t);n[0]=MS(n[0]+e),n=X_(n),t.r=n[0],t.g=n[1],t.b=n[2]}function HW(t){if(!t)return;const e=U_(t),n=e[0],i=A0(e[1]),s=A0(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${s}%, ${ir(t.a)})`:`hsl(${n}, ${i}%, ${s}%)`}const P0={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"},M0={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 jW(){const t={},e=Object.keys(M0),n=Object.keys(P0);let i,s,r,o,a;for(i=0;i>16&255,r>>8&255,r&255]}return t}let Pd;function KW(t){Pd||(Pd=jW(),Pd.transparent=[0,0,0,0]);const e=Pd[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const UW=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function GW(t){const e=UW.exec(t);let n=255,i,s,r;if(e){if(e[7]!==i){const o=+e[7];n=e[8]?Ec(o):Ur(o*255,0,255)}return i=+e[1],s=+e[3],r=+e[5],i=255&(e[2]?Ec(i):Ur(i,0,255)),s=255&(e[4]?Ec(s):Ur(s,0,255)),r=255&(e[6]?Ec(r):Ur(r,0,255)),{r:i,g:s,b:r,a:n}}}function XW(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${ir(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const Gg=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,Oa=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function qW(t,e,n){const i=Oa(ir(t.r)),s=Oa(ir(t.g)),r=Oa(ir(t.b));return{r:no(Gg(i+n*(Oa(ir(e.r))-i))),g:no(Gg(s+n*(Oa(ir(e.g))-s))),b:no(Gg(r+n*(Oa(ir(e.b))-r))),a:t.a+n*(e.a-t.a)}}function Md(t,e,n){if(t){let i=U_(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,e===0?360:1)),i=X_(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function IS(t,e){return t&&Object.assign(e||{},t)}function I0(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=no(t[3]))):(e=IS(t,{r:0,g:0,b:0,a:1}),e.a=no(e.a)),e}function ZW(t){return t.charAt(0)==="r"?GW(t):WW(t)}class du{constructor(e){if(e instanceof du)return e;const n=typeof e;let i;n==="object"?i=I0(e):n==="string"&&(i=RW(e)||KW(e)||ZW(e)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var e=IS(this._rgb);return e&&(e.a=ir(e.a)),e}set rgb(e){this._rgb=I0(e)}rgbString(){return this._valid?XW(this._rgb):void 0}hexString(){return this._valid?LW(this._rgb):void 0}hslString(){return this._valid?HW(this._rgb):void 0}mix(e,n){if(e){const i=this.rgb,s=e.rgb;let r;const o=n===r?.5:n,a=2*o-1,l=i.a-s.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;r=1-c,i.r=255&c*i.r+r*s.r+.5,i.g=255&c*i.g+r*s.g+.5,i.b=255&c*i.b+r*s.b+.5,i.a=o*i.a+(1-o)*s.a,this.rgb=i}return this}interpolate(e,n){return e&&(this._rgb=qW(this._rgb,e._rgb,n)),this}clone(){return new du(this.rgb)}alpha(e){return this._rgb.a=no(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=Ku(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Md(this._rgb,2,e),this}darken(e){return Md(this._rgb,2,-e),this}saturate(e){return Md(this._rgb,1,e),this}desaturate(e){return Md(this._rgb,1,-e),this}rotate(e){return YW(this._rgb,e),this}}/*! * Chart.js v4.4.4 * https://www.chartjs.org * (c) 2024 Chart.js Contributors * Released under the MIT License - */function Us(){}const KW=(()=>{let t=0;return()=>t++})();function gt(t){return t===null||typeof t>"u"}function Yt(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function ut(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function nn(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function Si(t,e){return nn(t)?t:e}function it(t,e){return typeof t>"u"?e:t}const UW=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,DS=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function $t(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function Tt(t,e,n,i){let s,r,o;if(Yt(t))for(r=t.length,s=0;st,x:t=>t.x,y:t=>t.y};function qW(t){const e=t.split("."),n=[];let i="";for(const s of e)i+=s,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function ZW(t){const e=qW(t);return n=>{for(const i of e){if(i==="")break;n=n&&n[i]}return n}}function lo(t,e){return(D0[e]||(D0[e]=ZW(e)))(t)}function q_(t){return t.charAt(0).toUpperCase()+t.slice(1)}const fu=t=>typeof t<"u",co=t=>typeof t=="function",R0=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function JW(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const Bt=Math.PI,Ft=2*Bt,QW=Ft+Bt,Mh=Number.POSITIVE_INFINITY,eY=Bt/180,dn=Bt/2,Oo=Bt/4,$0=Bt*2/3,Gr=Math.log10,Os=Math.sign;function Uc(t,e,n){return Math.abs(t-e)s-r).pop(),e}function Il(t){return!isNaN(parseFloat(t))&&isFinite(t)}function nY(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function $S(t,e,n){let i,s,r;for(i=0,s=t.length;il&&c=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function J_(t,e,n){n=n||(o=>t[o]1;)r=s+i>>1,n(r)?s=r:i=r;return{lo:s,hi:i}}const cr=(t,e,n,i)=>J_(t,n,i?s=>{const r=t[s][e];return rt[s][e]J_(t,n,i=>t[i][e]>=n);function oY(t,e,n){let i=0,s=t.length;for(;ii&&t[s-1]>n;)s--;return i>0||s{const i="_onData"+q_(n),s=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...r){const o=s.apply(this,r);return t._chartjs.listeners.forEach(a=>{typeof a[i]=="function"&&a[i](...r)}),o}})})}function N0(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,s=i.indexOf(e);s!==-1&&i.splice(s,1),!(i.length>0)&&(OS.forEach(r=>{delete t[r]}),delete t._chartjs)}function NS(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const FS=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function BS(t,e){let n=[],i=!1;return function(...s){n=s,i||(i=!0,FS.call(window,()=>{i=!1,t.apply(e,n)}))}}function lY(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}const Q_=t=>t==="start"?"left":t==="end"?"right":"center",Yn=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,cY=(t,e,n,i)=>t===(i?"left":"right")?n:t==="center"?(e+n)/2:e;function VS(t,e,n){const i=e.length;let s=0,r=i;if(t._sorted){const{iScale:o,_parsed:a}=t,l=o.axis,{min:c,max:u,minDefined:d,maxDefined:h}=o.getUserBounds();d&&(s=Dn(Math.min(cr(a,l,c).lo,n?i:cr(e,l,o.getPixelForValue(c)).lo),0,i-1)),h?r=Dn(Math.max(cr(a,o.axis,u,!0).hi+1,n?0:cr(e,l,o.getPixelForValue(u),!0).hi+1),s,i)-s:r=i-s}return{start:s,count:r}}function zS(t){const{xScale:e,yScale:n,_scaleRanges:i}=t,s={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!i)return t._scaleRanges=s,!0;const r=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,s),r}const Id=t=>t===0||t===1,F0=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*Ft/n)),B0=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*Ft/n)+1,Gc={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*dn)+1,easeOutSine:t=>Math.sin(t*dn),easeInOutSine:t=>-.5*(Math.cos(Bt*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>Id(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Id(t)?t:F0(t,.075,.3),easeOutElastic:t=>Id(t)?t:B0(t,.075,.3),easeInOutElastic(t){return Id(t)?t:t<.5?.5*F0(t*2,.1125,.45):.5+.5*B0(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-Gc.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Gc.easeInBounce(t*2)*.5:Gc.easeOutBounce(t*2-1)*.5+.5};function ev(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function V0(t){return ev(t)?t:new du(t)}function Xg(t){return ev(t)?t:new du(t).saturate(.5).darken(.1).hexString()}const uY=["x","y","borderWidth","radius","tension"],dY=["color","borderColor","backgroundColor"];function hY(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:dY},numbers:{type:"number",properties:uY}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function fY(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const z0=new Map;function gY(t,e){e=e||{};const n=t+JSON.stringify(e);let i=z0.get(n);return i||(i=new Intl.NumberFormat(t,e),z0.set(n,i)),i}function Uu(t,e,n){return gY(e,n).format(t)}const WS={values(t){return Yt(t)?t:""+t},numeric(t,e,n){if(t===0)return"0";const i=this.chart.options.locale;let s,r=t;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)&&(s="scientific"),r=pY(t,n)}const o=Gr(Math.abs(r)),a=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:s,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Uu(t,i,l)},logarithmic(t,e,n){if(t===0)return"0";const i=n[e].significand||t/Math.pow(10,Math.floor(Gr(t)));return[1,2,3,5,10,15].includes(i)||e>.8*n.length?WS.numeric.call(this,t,e,n):""}};function pY(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}var Af={formatters:WS};function mY(t){t.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:(e,n)=>n.lineWidth,tickColor:(e,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Af.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const fa=Object.create(null),um=Object.create(null);function Xc(t,e){if(!e)return t;const n=e.split(".");for(let i=0,s=n.length;ii.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=(i,s)=>Xg(s.backgroundColor),this.hoverBorderColor=(i,s)=>Xg(s.borderColor),this.hoverColor=(i,s)=>Xg(s.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(n)}set(e,n){return qg(this,e,n)}get(e){return Xc(this,e)}describe(e,n){return qg(um,e,n)}override(e,n){return qg(fa,e,n)}route(e,n,i,s){const r=Xc(this,e),o=Xc(this,i),a="_"+n;Object.defineProperties(r,{[a]:{value:r[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=o[s];return ut(l)?Object.assign({},c,l):it(l,c)},set(l){this[a]=l}}})}apply(e){e.forEach(n=>n(this))}}var sn=new _Y({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[hY,fY,mY]);function vY(t){return!t||gt(t.size)||gt(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Ih(t,e,n,i,s){let r=e[s];return r||(r=e[s]=t.measureText(s).width,n.push(s)),r>i&&(i=r),i}function yY(t,e,n,i){i=i||{};let s=i.data=i.data||{},r=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(s=i.data={},r=i.garbageCollect=[],i.font=e),t.save(),t.font=e;let o=0;const a=n.length;let l,c,u,d,h;for(l=0;ln.length){for(l=0;l0&&t.stroke()}}function ur(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.xe.top-n&&t.y0&&r.strokeColor!=="";let l,c;for(t.save(),t.font=s.string,xY(t,r),l=0;l+t||0;function tv(t,e){const n={},i=ut(e),s=i?Object.keys(e):e,r=ut(t)?i?o=>it(t[o],t[e[o]]):o=>t[o]:()=>t;for(const o of s)n[o]=AY(r(o));return n}function HS(t){return tv(t,{top:"y",right:"x",bottom:"y",left:"x"})}function ra(t){return tv(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Zn(t){const e=HS(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function En(t,e){t=t||{},e=e||sn.font;let n=it(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let i=it(t.style,e.style);i&&!(""+i).match(kY)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const s={family:it(t.family,e.family),lineHeight:TY(it(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:it(t.weight,e.weight),string:""};return s.string=vY(s),s}function Cc(t,e,n,i){let s,r,o;for(s=0,r=t.length;sn&&a===0?0:a+l;return{min:o(i,-Math.abs(r)),max:o(s,r)}}function wo(t,e){return Object.assign(Object.create(t),e)}function nv(t,e=[""],n,i,s=()=>t[0]){const r=n||t;typeof i>"u"&&(i=GS("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:r,_fallback:i,_getTarget:s,override:a=>nv([a,...t],e,r,i)};return new Proxy(o,{deleteProperty(a,l){return delete a[l],delete a._keys,delete t[0][l],!0},get(a,l){return KS(a,l,()=>NY(l,e,t,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(a,l){return H0(a).includes(l)},ownKeys(a){return H0(a)},set(a,l,c){const u=a._storage||(a._storage=s());return a[l]=u[l]=c,delete a._keys,!0}})}function Dl(t,e,n,i){const s={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:jS(t,i),setContext:r=>Dl(t,r,n,i),override:r=>Dl(t.override(r),e,n,i)};return new Proxy(s,{deleteProperty(r,o){return delete r[o],delete t[o],!0},get(r,o,a){return KS(r,o,()=>IY(r,o,a))},getOwnPropertyDescriptor(r,o){return r._descriptors.allKeys?Reflect.has(t,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,o)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(r,o){return Reflect.has(t,o)},ownKeys(){return Reflect.ownKeys(t)},set(r,o,a){return t[o]=a,delete r[o],!0}})}function jS(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:s=e.allKeys}=t;return{allKeys:s,scriptable:n,indexable:i,isScriptable:co(n)?n:()=>n,isIndexable:co(i)?i:()=>i}}const MY=(t,e)=>t?t+q_(e):e,iv=(t,e)=>ut(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function KS(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const i=n();return t[e]=i,i}function IY(t,e,n){const{_proxy:i,_context:s,_subProxy:r,_descriptors:o}=t;let a=i[e];return co(a)&&o.isScriptable(e)&&(a=DY(e,a,t,n)),Yt(a)&&a.length&&(a=RY(e,a,t,o.isIndexable)),iv(e,a)&&(a=Dl(a,s,r&&r[e],o)),a}function DY(t,e,n,i){const{_proxy:s,_context:r,_subProxy:o,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(r,o||i);return a.delete(t),iv(t,l)&&(l=sv(s._scopes,s,t,l)),l}function RY(t,e,n,i){const{_proxy:s,_context:r,_subProxy:o,_descriptors:a}=n;if(typeof r.index<"u"&&i(t))return e[r.index%e.length];if(ut(e[0])){const l=e,c=s._scopes.filter(u=>u!==l);e=[];for(const u of l){const d=sv(c,s,t,u);e.push(Dl(d,r,o&&o[t],a))}}return e}function US(t,e,n){return co(t)?t(e,n):t}const $Y=(t,e)=>t===!0?e:typeof t=="string"?lo(e,t):void 0;function LY(t,e,n,i,s){for(const r of e){const o=$Y(n,r);if(o){t.add(o);const a=US(o._fallback,n,s);if(typeof a<"u"&&a!==n&&a!==i)return a}else if(o===!1&&typeof i<"u"&&n!==i)return null}return!1}function sv(t,e,n,i){const s=e._rootScopes,r=US(e._fallback,n,i),o=[...t,...s],a=new Set;a.add(i);let l=Y0(a,o,n,r||n,i);return l===null||typeof r<"u"&&r!==n&&(l=Y0(a,o,r,l,i),l===null)?!1:nv(Array.from(a),[""],s,r,()=>OY(e,n,i))}function Y0(t,e,n,i,s){for(;n;)n=LY(t,e,n,i,s);return n}function OY(t,e,n){const i=t._getTarget();e in i||(i[e]={});const s=i[e];return Yt(s)&&ut(n)?n:s||{}}function NY(t,e,n,i){let s;for(const r of e)if(s=GS(MY(r,t),n),typeof s<"u")return iv(t,s)?sv(n,i,t,s):s}function GS(t,e){for(const n of e){if(!n)continue;const i=n[t];if(typeof i<"u")return i}}function H0(t){let e=t._keys;return e||(e=t._keys=FY(t._scopes)),e}function FY(t){const e=new Set;for(const n of t)for(const i of Object.keys(n).filter(s=>!s.startsWith("_")))e.add(i);return Array.from(e)}function XS(t,e,n,i){const{iScale:s}=t,{key:r="r"}=this._parsing,o=new Array(i);let a,l,c,u;for(a=0,l=i;aet==="x"?"y":"x";function VY(t,e,n,i){const s=t.skip?e:t,r=e,o=n.skip?e:n,a=cm(r,s),l=cm(o,r);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=i*c,h=i*u;return{previous:{x:r.x-d*(o.x-s.x),y:r.y-d*(o.y-s.y)},next:{x:r.x+h*(o.x-s.x),y:r.y+h*(o.y-s.y)}}}function zY(t,e,n){const i=t.length;let s,r,o,a,l,c=Rl(t,0);for(let u=0;u!c.skip)),e.cubicInterpolationMode==="monotone")YY(t,s);else{let c=i?t[t.length-1]:t[0];for(r=0,o=t.length;rt.ownerDocument.defaultView.getComputedStyle(t,null);function KY(t,e){return If(t).getPropertyValue(e)}const UY=["top","right","bottom","left"];function oa(t,e,n){const i={};n=n?"-"+n:"";for(let s=0;s<4;s++){const r=UY[s];i[r]=parseFloat(t[e+"-"+r+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const GY=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function XY(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:s,offsetY:r}=i;let o=!1,a,l;if(GY(s,r,t.target))a=s,l=r;else{const c=e.getBoundingClientRect();a=i.clientX-c.left,l=i.clientY-c.top,o=!0}return{x:a,y:l,box:o}}function jo(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,s=If(n),r=s.boxSizing==="border-box",o=oa(s,"padding"),a=oa(s,"border","width"),{x:l,y:c,box:u}=XY(t,n),d=o.left+(u&&a.left),h=o.top+(u&&a.top);let{width:g,height:p}=e;return r&&(g-=o.width+a.width,p-=o.height+a.height),{x:Math.round((l-d)/g*n.width/i),y:Math.round((c-h)/p*n.height/i)}}function qY(t,e,n){let i,s;if(e===void 0||n===void 0){const r=t&&ov(t);if(!r)e=t.clientWidth,n=t.clientHeight;else{const o=r.getBoundingClientRect(),a=If(r),l=oa(a,"border","width"),c=oa(a,"padding");e=o.width-c.width-l.width,n=o.height-c.height-l.height,i=Dh(a.maxWidth,r,"clientWidth"),s=Dh(a.maxHeight,r,"clientHeight")}}return{width:e,height:n,maxWidth:i||Mh,maxHeight:s||Mh}}const Rd=t=>Math.round(t*10)/10;function ZY(t,e,n,i){const s=If(t),r=oa(s,"margin"),o=Dh(s.maxWidth,t,"clientWidth")||Mh,a=Dh(s.maxHeight,t,"clientHeight")||Mh,l=qY(t,e,n);let{width:c,height:u}=l;if(s.boxSizing==="content-box"){const h=oa(s,"border","width"),g=oa(s,"padding");c-=g.width+h.width,u-=g.height+h.height}return c=Math.max(0,c-r.width),u=Math.max(0,i?c/i:u-r.height),c=Rd(Math.min(c,o,l.maxWidth)),u=Rd(Math.min(u,a,l.maxHeight)),c&&!u&&(u=Rd(c/2)),(e!==void 0||n!==void 0)&&i&&l.height&&u>l.height&&(u=l.height,c=Rd(Math.floor(u*i))),{width:c,height:u}}function j0(t,e,n){const i=e||1,s=Math.floor(t.height*i),r=Math.floor(t.width*i);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const o=t.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),t.currentDevicePixelRatio!==i||o.height!==s||o.width!==r?(t.currentDevicePixelRatio=i,o.height=s,o.width=r,t.ctx.setTransform(i,0,0,i,0,0),!0):!1}const JY=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};rv()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function K0(t,e){const n=KY(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Ko(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function QY(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:i==="middle"?n<.5?t.y:e.y:i==="after"?n<1?t.y:e.y:n>0?e.y:t.y}}function eH(t,e,n,i){const s={x:t.cp2x,y:t.cp2y},r={x:e.cp1x,y:e.cp1y},o=Ko(t,s,n),a=Ko(s,r,n),l=Ko(r,e,n),c=Ko(o,a,n),u=Ko(a,l,n);return Ko(c,u,n)}const tH=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,i){return n-i},leftForLtr(n,i){return n-i}}},nH=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function ul(t,e,n){return t?tH(e,n):nH()}function ZS(t,e){let n,i;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}function JS(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function QS(t){return t==="angle"?{between:gu,compare:iY,normalize:ki}:{between:lr,compare:(e,n)=>e-n,normalize:e=>e}}function U0({start:t,end:e,count:n,loop:i,style:s}){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n===0,style:s}}function iH(t,e,n){const{property:i,start:s,end:r}=n,{between:o,normalize:a}=QS(i),l=e.length;let{start:c,end:u,loop:d}=t,h,g;if(d){for(c+=l,u+=l,h=0,g=l;hl(s,E,y)&&a(s,E)!==0,b=()=>a(r,y)===0||l(r,E,y),C=()=>m||w(),k=()=>!m||b();for(let T=u,A=u;T<=d;++T)x=e[T%o],!x.skip&&(y=c(x[i]),y!==E&&(m=l(y,s,r),v===null&&C()&&(v=a(y,s)===0?T:A),v!==null&&k()&&(p.push(U0({start:v,end:T,loop:h,count:o,style:g})),v=null),A=T,E=y));return v!==null&&p.push(U0({start:v,end:d,loop:h,count:o,style:g})),p}function tk(t,e){const n=[],i=t.segments;for(let s=0;ss&&t[r%e].skip;)r--;return r%=e,{start:s,end:r}}function rH(t,e,n,i){const s=t.length,r=[];let o=e,a=t[e],l;for(l=e+1;l<=n;++l){const c=t[l%s];c.skip||c.stop?a.skip||(i=!1,r.push({start:e%s,end:(l-1)%s,loop:i}),e=o=c.stop?l:null):(o=l,a.skip&&(e=l)),a=c}return o!==null&&r.push({start:e%s,end:o%s,loop:i}),r}function oH(t,e){const n=t.points,i=t.options.spanGaps,s=n.length;if(!s)return[];const r=!!t._loop,{start:o,end:a}=sH(n,s,r,i);if(i===!0)return G0(t,[{start:o,end:a,loop:r}],n,e);const l=a{let t=0;return()=>t++})();function gt(t){return t===null||typeof t>"u"}function Yt(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function ut(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function nn(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function Si(t,e){return nn(t)?t:e}function it(t,e){return typeof t>"u"?e:t}const QW=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,DS=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function $t(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function Tt(t,e,n,i){let s,r,o;if(Yt(t))for(r=t.length,s=0;st,x:t=>t.x,y:t=>t.y};function nY(t){const e=t.split("."),n=[];let i="";for(const s of e)i+=s,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function iY(t){const e=nY(t);return n=>{for(const i of e){if(i==="")break;n=n&&n[i]}return n}}function lo(t,e){return(D0[e]||(D0[e]=iY(e)))(t)}function q_(t){return t.charAt(0).toUpperCase()+t.slice(1)}const fu=t=>typeof t<"u",co=t=>typeof t=="function",R0=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function sY(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const Bt=Math.PI,Ft=2*Bt,rY=Ft+Bt,Mh=Number.POSITIVE_INFINITY,oY=Bt/180,dn=Bt/2,Oo=Bt/4,$0=Bt*2/3,Gr=Math.log10,Os=Math.sign;function Uc(t,e,n){return Math.abs(t-e)s-r).pop(),e}function Il(t){return!isNaN(parseFloat(t))&&isFinite(t)}function lY(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function $S(t,e,n){let i,s,r;for(i=0,s=t.length;il&&c=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function J_(t,e,n){n=n||(o=>t[o]1;)r=s+i>>1,n(r)?s=r:i=r;return{lo:s,hi:i}}const cr=(t,e,n,i)=>J_(t,n,i?s=>{const r=t[s][e];return rt[s][e]J_(t,n,i=>t[i][e]>=n);function hY(t,e,n){let i=0,s=t.length;for(;ii&&t[s-1]>n;)s--;return i>0||s{const i="_onData"+q_(n),s=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...r){const o=s.apply(this,r);return t._chartjs.listeners.forEach(a=>{typeof a[i]=="function"&&a[i](...r)}),o}})})}function N0(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,s=i.indexOf(e);s!==-1&&i.splice(s,1),!(i.length>0)&&(OS.forEach(r=>{delete t[r]}),delete t._chartjs)}function NS(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const FS=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function BS(t,e){let n=[],i=!1;return function(...s){n=s,i||(i=!0,FS.call(window,()=>{i=!1,t.apply(e,n)}))}}function gY(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}const Q_=t=>t==="start"?"left":t==="end"?"right":"center",Yn=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,pY=(t,e,n,i)=>t===(i?"left":"right")?n:t==="center"?(e+n)/2:e;function VS(t,e,n){const i=e.length;let s=0,r=i;if(t._sorted){const{iScale:o,_parsed:a}=t,l=o.axis,{min:c,max:u,minDefined:d,maxDefined:f}=o.getUserBounds();d&&(s=Dn(Math.min(cr(a,l,c).lo,n?i:cr(e,l,o.getPixelForValue(c)).lo),0,i-1)),f?r=Dn(Math.max(cr(a,o.axis,u,!0).hi+1,n?0:cr(e,l,o.getPixelForValue(u),!0).hi+1),s,i)-s:r=i-s}return{start:s,count:r}}function zS(t){const{xScale:e,yScale:n,_scaleRanges:i}=t,s={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!i)return t._scaleRanges=s,!0;const r=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,s),r}const Id=t=>t===0||t===1,F0=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*Ft/n)),B0=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*Ft/n)+1,Gc={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*dn)+1,easeOutSine:t=>Math.sin(t*dn),easeInOutSine:t=>-.5*(Math.cos(Bt*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>Id(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Id(t)?t:F0(t,.075,.3),easeOutElastic:t=>Id(t)?t:B0(t,.075,.3),easeInOutElastic(t){return Id(t)?t:t<.5?.5*F0(t*2,.1125,.45):.5+.5*B0(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-Gc.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Gc.easeInBounce(t*2)*.5:Gc.easeOutBounce(t*2-1)*.5+.5};function ev(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function V0(t){return ev(t)?t:new du(t)}function Xg(t){return ev(t)?t:new du(t).saturate(.5).darken(.1).hexString()}const mY=["x","y","borderWidth","radius","tension"],_Y=["color","borderColor","backgroundColor"];function vY(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:_Y},numbers:{type:"number",properties:mY}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function yY(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const z0=new Map;function bY(t,e){e=e||{};const n=t+JSON.stringify(e);let i=z0.get(n);return i||(i=new Intl.NumberFormat(t,e),z0.set(n,i)),i}function Uu(t,e,n){return bY(e,n).format(t)}const WS={values(t){return Yt(t)?t:""+t},numeric(t,e,n){if(t===0)return"0";const i=this.chart.options.locale;let s,r=t;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)&&(s="scientific"),r=wY(t,n)}const o=Gr(Math.abs(r)),a=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:s,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Uu(t,i,l)},logarithmic(t,e,n){if(t===0)return"0";const i=n[e].significand||t/Math.pow(10,Math.floor(Gr(t)));return[1,2,3,5,10,15].includes(i)||e>.8*n.length?WS.numeric.call(this,t,e,n):""}};function wY(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}var Af={formatters:WS};function xY(t){t.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:(e,n)=>n.lineWidth,tickColor:(e,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Af.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const fa=Object.create(null),um=Object.create(null);function Xc(t,e){if(!e)return t;const n=e.split(".");for(let i=0,s=n.length;ii.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=(i,s)=>Xg(s.backgroundColor),this.hoverBorderColor=(i,s)=>Xg(s.borderColor),this.hoverColor=(i,s)=>Xg(s.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(n)}set(e,n){return qg(this,e,n)}get(e){return Xc(this,e)}describe(e,n){return qg(um,e,n)}override(e,n){return qg(fa,e,n)}route(e,n,i,s){const r=Xc(this,e),o=Xc(this,i),a="_"+n;Object.defineProperties(r,{[a]:{value:r[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=o[s];return ut(l)?Object.assign({},c,l):it(l,c)},set(l){this[a]=l}}})}apply(e){e.forEach(n=>n(this))}}var sn=new EY({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[vY,yY,xY]);function CY(t){return!t||gt(t.size)||gt(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Ih(t,e,n,i,s){let r=e[s];return r||(r=e[s]=t.measureText(s).width,n.push(s)),r>i&&(i=r),i}function SY(t,e,n,i){i=i||{};let s=i.data=i.data||{},r=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(s=i.data={},r=i.garbageCollect=[],i.font=e),t.save(),t.font=e;let o=0;const a=n.length;let l,c,u,d,f;for(l=0;ln.length){for(l=0;l0&&t.stroke()}}function ur(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.xe.top-n&&t.y0&&r.strokeColor!=="";let l,c;for(t.save(),t.font=s.string,AY(t,r),l=0;l+t||0;function tv(t,e){const n={},i=ut(e),s=i?Object.keys(e):e,r=ut(t)?i?o=>it(t[o],t[e[o]]):o=>t[o]:()=>t;for(const o of s)n[o]=$Y(r(o));return n}function HS(t){return tv(t,{top:"y",right:"x",bottom:"y",left:"x"})}function ra(t){return tv(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Zn(t){const e=HS(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function En(t,e){t=t||{},e=e||sn.font;let n=it(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let i=it(t.style,e.style);i&&!(""+i).match(DY)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const s={family:it(t.family,e.family),lineHeight:RY(it(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:it(t.weight,e.weight),string:""};return s.string=CY(s),s}function Cc(t,e,n,i){let s,r,o;for(s=0,r=t.length;sn&&a===0?0:a+l;return{min:o(i,-Math.abs(r)),max:o(s,r)}}function wo(t,e){return Object.assign(Object.create(t),e)}function nv(t,e=[""],n,i,s=()=>t[0]){const r=n||t;typeof i>"u"&&(i=GS("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:r,_fallback:i,_getTarget:s,override:a=>nv([a,...t],e,r,i)};return new Proxy(o,{deleteProperty(a,l){return delete a[l],delete a._keys,delete t[0][l],!0},get(a,l){return KS(a,l,()=>YY(l,e,t,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(a,l){return H0(a).includes(l)},ownKeys(a){return H0(a)},set(a,l,c){const u=a._storage||(a._storage=s());return a[l]=u[l]=c,delete a._keys,!0}})}function Dl(t,e,n,i){const s={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:jS(t,i),setContext:r=>Dl(t,r,n,i),override:r=>Dl(t.override(r),e,n,i)};return new Proxy(s,{deleteProperty(r,o){return delete r[o],delete t[o],!0},get(r,o,a){return KS(r,o,()=>NY(r,o,a))},getOwnPropertyDescriptor(r,o){return r._descriptors.allKeys?Reflect.has(t,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,o)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(r,o){return Reflect.has(t,o)},ownKeys(){return Reflect.ownKeys(t)},set(r,o,a){return t[o]=a,delete r[o],!0}})}function jS(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:s=e.allKeys}=t;return{allKeys:s,scriptable:n,indexable:i,isScriptable:co(n)?n:()=>n,isIndexable:co(i)?i:()=>i}}const OY=(t,e)=>t?t+q_(e):e,iv=(t,e)=>ut(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function KS(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const i=n();return t[e]=i,i}function NY(t,e,n){const{_proxy:i,_context:s,_subProxy:r,_descriptors:o}=t;let a=i[e];return co(a)&&o.isScriptable(e)&&(a=FY(e,a,t,n)),Yt(a)&&a.length&&(a=BY(e,a,t,o.isIndexable)),iv(e,a)&&(a=Dl(a,s,r&&r[e],o)),a}function FY(t,e,n,i){const{_proxy:s,_context:r,_subProxy:o,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(r,o||i);return a.delete(t),iv(t,l)&&(l=sv(s._scopes,s,t,l)),l}function BY(t,e,n,i){const{_proxy:s,_context:r,_subProxy:o,_descriptors:a}=n;if(typeof r.index<"u"&&i(t))return e[r.index%e.length];if(ut(e[0])){const l=e,c=s._scopes.filter(u=>u!==l);e=[];for(const u of l){const d=sv(c,s,t,u);e.push(Dl(d,r,o&&o[t],a))}}return e}function US(t,e,n){return co(t)?t(e,n):t}const VY=(t,e)=>t===!0?e:typeof t=="string"?lo(e,t):void 0;function zY(t,e,n,i,s){for(const r of e){const o=VY(n,r);if(o){t.add(o);const a=US(o._fallback,n,s);if(typeof a<"u"&&a!==n&&a!==i)return a}else if(o===!1&&typeof i<"u"&&n!==i)return null}return!1}function sv(t,e,n,i){const s=e._rootScopes,r=US(e._fallback,n,i),o=[...t,...s],a=new Set;a.add(i);let l=Y0(a,o,n,r||n,i);return l===null||typeof r<"u"&&r!==n&&(l=Y0(a,o,r,l,i),l===null)?!1:nv(Array.from(a),[""],s,r,()=>WY(e,n,i))}function Y0(t,e,n,i,s){for(;n;)n=zY(t,e,n,i,s);return n}function WY(t,e,n){const i=t._getTarget();e in i||(i[e]={});const s=i[e];return Yt(s)&&ut(n)?n:s||{}}function YY(t,e,n,i){let s;for(const r of e)if(s=GS(OY(r,t),n),typeof s<"u")return iv(t,s)?sv(n,i,t,s):s}function GS(t,e){for(const n of e){if(!n)continue;const i=n[t];if(typeof i<"u")return i}}function H0(t){let e=t._keys;return e||(e=t._keys=HY(t._scopes)),e}function HY(t){const e=new Set;for(const n of t)for(const i of Object.keys(n).filter(s=>!s.startsWith("_")))e.add(i);return Array.from(e)}function XS(t,e,n,i){const{iScale:s}=t,{key:r="r"}=this._parsing,o=new Array(i);let a,l,c,u;for(a=0,l=i;aet==="x"?"y":"x";function KY(t,e,n,i){const s=t.skip?e:t,r=e,o=n.skip?e:n,a=cm(r,s),l=cm(o,r);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=i*c,f=i*u;return{previous:{x:r.x-d*(o.x-s.x),y:r.y-d*(o.y-s.y)},next:{x:r.x+f*(o.x-s.x),y:r.y+f*(o.y-s.y)}}}function UY(t,e,n){const i=t.length;let s,r,o,a,l,c=Rl(t,0);for(let u=0;u!c.skip)),e.cubicInterpolationMode==="monotone")XY(t,s);else{let c=i?t[t.length-1]:t[0];for(r=0,o=t.length;rt.ownerDocument.defaultView.getComputedStyle(t,null);function JY(t,e){return If(t).getPropertyValue(e)}const QY=["top","right","bottom","left"];function oa(t,e,n){const i={};n=n?"-"+n:"";for(let s=0;s<4;s++){const r=QY[s];i[r]=parseFloat(t[e+"-"+r+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const eH=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function tH(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:s,offsetY:r}=i;let o=!1,a,l;if(eH(s,r,t.target))a=s,l=r;else{const c=e.getBoundingClientRect();a=i.clientX-c.left,l=i.clientY-c.top,o=!0}return{x:a,y:l,box:o}}function jo(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,s=If(n),r=s.boxSizing==="border-box",o=oa(s,"padding"),a=oa(s,"border","width"),{x:l,y:c,box:u}=tH(t,n),d=o.left+(u&&a.left),f=o.top+(u&&a.top);let{width:g,height:p}=e;return r&&(g-=o.width+a.width,p-=o.height+a.height),{x:Math.round((l-d)/g*n.width/i),y:Math.round((c-f)/p*n.height/i)}}function nH(t,e,n){let i,s;if(e===void 0||n===void 0){const r=t&&ov(t);if(!r)e=t.clientWidth,n=t.clientHeight;else{const o=r.getBoundingClientRect(),a=If(r),l=oa(a,"border","width"),c=oa(a,"padding");e=o.width-c.width-l.width,n=o.height-c.height-l.height,i=Dh(a.maxWidth,r,"clientWidth"),s=Dh(a.maxHeight,r,"clientHeight")}}return{width:e,height:n,maxWidth:i||Mh,maxHeight:s||Mh}}const Rd=t=>Math.round(t*10)/10;function iH(t,e,n,i){const s=If(t),r=oa(s,"margin"),o=Dh(s.maxWidth,t,"clientWidth")||Mh,a=Dh(s.maxHeight,t,"clientHeight")||Mh,l=nH(t,e,n);let{width:c,height:u}=l;if(s.boxSizing==="content-box"){const f=oa(s,"border","width"),g=oa(s,"padding");c-=g.width+f.width,u-=g.height+f.height}return c=Math.max(0,c-r.width),u=Math.max(0,i?c/i:u-r.height),c=Rd(Math.min(c,o,l.maxWidth)),u=Rd(Math.min(u,a,l.maxHeight)),c&&!u&&(u=Rd(c/2)),(e!==void 0||n!==void 0)&&i&&l.height&&u>l.height&&(u=l.height,c=Rd(Math.floor(u*i))),{width:c,height:u}}function j0(t,e,n){const i=e||1,s=Math.floor(t.height*i),r=Math.floor(t.width*i);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const o=t.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),t.currentDevicePixelRatio!==i||o.height!==s||o.width!==r?(t.currentDevicePixelRatio=i,o.height=s,o.width=r,t.ctx.setTransform(i,0,0,i,0,0),!0):!1}const sH=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};rv()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function K0(t,e){const n=JY(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Ko(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function rH(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:i==="middle"?n<.5?t.y:e.y:i==="after"?n<1?t.y:e.y:n>0?e.y:t.y}}function oH(t,e,n,i){const s={x:t.cp2x,y:t.cp2y},r={x:e.cp1x,y:e.cp1y},o=Ko(t,s,n),a=Ko(s,r,n),l=Ko(r,e,n),c=Ko(o,a,n),u=Ko(a,l,n);return Ko(c,u,n)}const aH=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,i){return n-i},leftForLtr(n,i){return n-i}}},lH=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function ul(t,e,n){return t?aH(e,n):lH()}function ZS(t,e){let n,i;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}function JS(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function QS(t){return t==="angle"?{between:gu,compare:cY,normalize:ki}:{between:lr,compare:(e,n)=>e-n,normalize:e=>e}}function U0({start:t,end:e,count:n,loop:i,style:s}){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n===0,style:s}}function cH(t,e,n){const{property:i,start:s,end:r}=n,{between:o,normalize:a}=QS(i),l=e.length;let{start:c,end:u,loop:d}=t,f,g;if(d){for(c+=l,u+=l,f=0,g=l;fl(s,E,y)&&a(s,E)!==0,b=()=>a(r,y)===0||l(r,E,y),C=()=>m||w(),k=()=>!m||b();for(let T=u,A=u;T<=d;++T)x=e[T%o],!x.skip&&(y=c(x[i]),y!==E&&(m=l(y,s,r),v===null&&C()&&(v=a(y,s)===0?T:A),v!==null&&k()&&(p.push(U0({start:v,end:T,loop:f,count:o,style:g})),v=null),A=T,E=y));return v!==null&&p.push(U0({start:v,end:d,loop:f,count:o,style:g})),p}function tk(t,e){const n=[],i=t.segments;for(let s=0;ss&&t[r%e].skip;)r--;return r%=e,{start:s,end:r}}function dH(t,e,n,i){const s=t.length,r=[];let o=e,a=t[e],l;for(l=e+1;l<=n;++l){const c=t[l%s];c.skip||c.stop?a.skip||(i=!1,r.push({start:e%s,end:(l-1)%s,loop:i}),e=o=c.stop?l:null):(o=l,a.skip&&(e=l)),a=c}return o!==null&&r.push({start:e%s,end:o%s,loop:i}),r}function hH(t,e){const n=t.points,i=t.options.spanGaps,s=n.length;if(!s)return[];const r=!!t._loop,{start:o,end:a}=uH(n,s,r,i);if(i===!0)return G0(t,[{start:o,end:a,loop:r}],n,e);const l=aa({chart:e,initial:n.initial,numSteps:o,currentStep:Math.min(i-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=FS.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((i,s)=>{if(!i.running||!i.items.length)return;const r=i.items;let o=r.length-1,a=!1,l;for(;o>=0;--o)l=r[o],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(e),a=!0):(r[o]=r[r.length-1],r.pop());a&&(s.draw(),this._notify(s,i,e,"progress")),r.length||(i.running=!1,this._notify(s,i,e,"complete"),i.initial=!1),n+=r.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let i=n.get(e);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,i)),i}listen(e,n,i){this._getAnims(e).listeners[n].push(i)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((i,s)=>Math.max(i,s._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const i=n.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Zs=new cH;const q0="transparent",uH={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const i=V0(t||q0),s=i.valid&&V0(e||q0);return s&&s.valid?s.mix(i,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class dH{constructor(e,n,i,s){const r=n[i];s=Cc([e.to,s,r,e.from]);const o=Cc([e.from,r,s]);this._active=!0,this._fn=e.fn||uH[e.type||typeof o],this._easing=Gc[e.easing]||Gc.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=i,this._from=o,this._to=s,this._promises=void 0}active(){return this._active}update(e,n,i){if(this._active){this._notify(!1);const s=this._target[this._prop],r=i-this._start,o=this._duration-r;this._start=i,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=r,this._loop=!!e.loop,this._to=Cc([e.to,n,s,e.from]),this._from=Cc([e.from,s,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,i=this._duration,s=this._prop,r=this._from,o=this._loop,a=this._to;let l;if(this._active=r!==a&&(o||n1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[s]=this._fn(r,a,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,i)=>{e.push({res:n,rej:i})})}_notify(e){const n=e?"res":"rej",i=this._promises||[];for(let s=0;s{const r=e[s];if(!ut(r))return;const o={};for(const a of n)o[a]=r[a];(Yt(r.properties)&&r.properties||[s]).forEach(a=>{(a===s||!i.has(a))&&i.set(a,o)})})}_animateOptions(e,n){const i=n.options,s=fH(e,i);if(!s)return[];const r=this._createAnimations(s,i);return i.$shared&&hH(e.options.$animations,i).then(()=>{e.options=i},()=>{}),r}_createAnimations(e,n){const i=this._properties,s=[],r=e.$animations||(e.$animations={}),o=Object.keys(n),a=Date.now();let l;for(l=o.length-1;l>=0;--l){const c=o[l];if(c.charAt(0)==="$")continue;if(c==="options"){s.push(...this._animateOptions(e,n));continue}const u=n[c];let d=r[c];const h=i.get(c);if(d)if(h&&d.active()){d.update(h,u,a);continue}else d.cancel();if(!h||!h.duration){e[c]=u;continue}r[c]=d=new dH(h,e,c,u),s.push(d)}return s}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const i=this._createAnimations(e,n);if(i.length)return Zs.add(this._chart,i),!0}}function hH(t,e){const n=[],i=Object.keys(e);for(let s=0;s0||!n&&r<0)return s.index}return null}function t1(t,e){const{chart:n,_cachedMeta:i}=t,s=n._stacks||(n._stacks={}),{iScale:r,vScale:o,index:a}=i,l=r.axis,c=o.axis,u=_H(r,o,i),d=e.length;let h;for(let g=0;gn[i].axis===e).shift()}function bH(t,e){return wo(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function wH(t,e,n){return wo(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function hc(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const s of e){const r=s._stacks;if(!r||r[i]===void 0||r[i][n]===void 0)return;delete r[i][n],r[i]._visualValues!==void 0&&r[i]._visualValues[n]!==void 0&&delete r[i]._visualValues[n]}}}const Jg=t=>t==="reset"||t==="none",n1=(t,e)=>e?t:Object.assign({},t),xH=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:ik(n,!0),values:null};class xo{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Q0(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&hc(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,i=this.getDataset(),s=(d,h,g,p)=>d==="x"?h:d==="r"?p:g,r=n.xAxisID=it(i.xAxisID,Zg(e,"x")),o=n.yAxisID=it(i.yAxisID,Zg(e,"y")),a=n.rAxisID=it(i.rAxisID,Zg(e,"r")),l=n.indexAxis,c=n.iAxisID=s(l,r,o,a),u=n.vAxisID=s(l,o,r,a);n.xScale=this.getScaleForId(r),n.yScale=this.getScaleForId(o),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(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&N0(this._data,this),e._stacked&&hc(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),i=this._data;if(ut(n)){const s=this._cachedMeta;this._data=mH(n,s)}else if(i!==n){if(i){N0(i,this);const s=this._cachedMeta;hc(s),s._parsed=[]}n&&Object.isExtensible(n)&&aY(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,i=this.getDataset();let s=!1;this._dataCheck();const r=n._stacked;n._stacked=Q0(n.vScale,n),n.stack!==i.stack&&(s=!0,hc(n),n.stack=i.stack),this._resyncElements(e),(s||r!==n._stacked)&&t1(this,n._parsed)}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),i=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:i,_data:s}=this,{iScale:r,_stacked:o}=i,a=r.axis;let l=e===0&&n===s.length?!0:i._sorted,c=e>0&&i._parsed[e-1],u,d,h;if(this._parsing===!1)i._parsed=s,i._sorted=!0,h=s;else{Yt(s[e])?h=this.parseArrayData(i,s,e,n):ut(s[e])?h=this.parseObjectData(i,s,e,n):h=this.parsePrimitiveData(i,s,e,n);const g=()=>d[a]===null||c&&d[a]m||d=0;--h)if(!p()){this.updateRangeFromParsed(c,e,g,l);break}}return c}getAllParsedValues(e){const n=this._cachedMeta._parsed,i=[];let s,r,o;for(s=0,r=n.length;s=0&&ethis.getContext(i,s,n),m=c.resolveNamedOptions(h,g,p,d);return m.$shared&&(m.$shared=l,r[o]=Object.freeze(n1(m,l))),m}_resolveAnimations(e,n,i){const s=this.chart,r=this._cachedDataOpts,o=`animation-${n}`,a=r[o];if(a)return a;let l;if(s.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),h=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(h,this.getContext(e,i,n))}const c=new nk(s,l&&l.animations);return l&&l._cacheable&&(r[o]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||Jg(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const i=this.resolveDataElementOptions(e,n),s=this._sharedOptions,r=this.getSharedOptions(i),o=this.includeOptions(n,r)||r!==s;return this.updateSharedOptions(r,n,i),{sharedOptions:r,includeOptions:o}}updateElement(e,n,i,s){Jg(s)?Object.assign(e,i):this._resolveAnimations(n,s).update(e,i)}updateSharedOptions(e,n,i){e&&!Jg(n)&&this._resolveAnimations(void 0,n).update(e,i)}_setStyle(e,n,i,s){e.active=s;const r=this.getStyle(n,s);this._resolveAnimations(n,i,s).update(e,{options:!s&&this.getSharedOptions(r)||r})}removeHoverStyle(e,n,i){this._setStyle(e,i,"active",!1)}setHoverStyle(e,n,i){this._setStyle(e,i,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,i=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const s=i.length,r=n.length,o=Math.min(r,s);o&&this.parse(0,o),r>s?this._insertElements(s,r-s,e):r{for(c.length+=n,a=c.length-1;a>=o;a--)c[a]=c[a-n]};for(l(r),a=e;as-r))}return t._cache.$bar}function CH(t){const e=t.iScale,n=EH(e,t.type);let i=e._length,s,r,o,a;const l=()=>{o===32767||o===-32768||(fu(a)&&(i=Math.min(i,Math.abs(o-a)||i)),a=o)};for(s=0,r=n.length;s0?s[t-1]:null,a=tMath.abs(a)&&(l=a,c=o),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:s,end:r,min:o,max:a}}function sk(t,e,n,i){return Yt(t)?TH(t,e,n,i):e[n.axis]=n.parse(t,i),e}function i1(t,e,n,i){const s=t.iScale,r=t.vScale,o=s.getLabels(),a=s===r,l=[];let c,u,d,h;for(c=n,u=n+i;c=n?1:-1)}function PH(t){let e,n,i,s,r;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.baseu.controller.options.grouped),r=i.options.stacked,o=[],a=this._cachedMeta.controller.getParsed(n),l=a&&a[i.axis],c=u=>{const d=u._parsed.find(g=>g[i.axis]===l),h=d&&d[u.vScale.axis];if(gt(h)||isNaN(h))return!0};for(const u of s)if(!(n!==void 0&&c(u))&&((r===!1||o.indexOf(u.stack)===-1||r===void 0&&u.stack===void 0)&&o.push(u.stack),u.index===e))break;return o.length||o.push(void 0),o}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,n,i){const s=this._getStacks(e,i),r=n!==void 0?s.indexOf(n):-1;return r===-1?s.length-1:r}_getRuler(){const e=this.options,n=this._cachedMeta,i=n.iScale,s=[];let r,o;for(r=0,o=n.data.length;r=0;--i)n=Math.max(n,e[i].size(this.resolveDataElementOptions(i))/2);return n>0&&n}getLabelAndValue(e){const n=this._cachedMeta,i=this.chart.data.labels||[],{xScale:s,yScale:r}=n,o=this.getParsed(e),a=s.getLabelForValue(o.x),l=r.getLabelForValue(o.y),c=o._custom;return{label:i[e]||"",value:"("+a+", "+l+(c?", "+c:"")+")"}}update(e){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,e)}updateElements(e,n,i,s){const r=s==="reset",{iScale:o,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(n,s),u=o.axis,d=a.axis;for(let h=n;hgu(E,a,l,!0)?1:Math.max(w,w*n,b,b*n),p=(E,w,b)=>gu(E,a,l,!0)?-1:Math.min(w,w*n,b,b*n),m=g(0,c,d),v=g(dn,u,h),y=p(Bt,c,d),x=p(Bt+dn,u,h);i=(m-y)/2,s=(v-x)/2,r=-(m+y)/2,o=-(v+x)/2}return{ratioX:i,ratioY:s,offsetX:r,offsetY:o}}class ok extends xo{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:i,color:s}}=e.legend.options;return n.labels.map((r,o)=>{const l=e.getDatasetMeta(0).controller.getStyle(o);return{text:r,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:s,lineWidth:l.borderWidth,pointStyle:i,hidden:!e.getDataVisibility(o),index:o}})}return[]}},onClick(e,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}}};constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const i=this.getDataset().data,s=this._cachedMeta;if(this._parsing===!1)s._parsed=i;else{let r=l=>+i[l];if(ut(i[e])){const{key:l="value"}=this._parsing;r=c=>+lo(i[c],l)}let o,a;for(o=e,a=e+n;o0&&!isNaN(e)?Ft*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,i=this.chart,s=i.data.labels||[],r=Uu(n._parsed[e],i.options.locale);return{label:s[e]||"",value:r}}getMaxBorderWidth(e){let n=0;const i=this.chart;let s,r,o,a,l;if(!e){for(s=0,r=i.data.datasets.length;s0&&this.getParsed(n-1);for(let b=0;b=x){k.skip=!0;continue}const T=this.getParsed(b),A=gt(T[g]),I=k[h]=o.getPixelForValue(T[h],b),V=k[g]=r||A?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,T,l):T[g],b);k.skip=isNaN(I)||isNaN(V)||A,k.stop=b>0&&Math.abs(T[h]-w[h])>v,m&&(k.parsed=T,k.raw=c.data[b]),d&&(k.options=u||this.resolveDataElementOptions(b,C.active?"active":s)),y||this.updateElement(C,b,k,s),w=T}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,i=n.options&&n.options.borderWidth||0,s=e.data||[];if(!s.length)return i;const r=s[0].size(this.resolveDataElementOptions(0)),o=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,r,o)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}class LH extends xo{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:i,color:s}}=e.legend.options;return n.labels.map((r,o)=>{const l=e.getDatasetMeta(0).controller.getStyle(o);return{text:r,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:s,lineWidth:l.borderWidth,pointStyle:i,hidden:!e.getDataVisibility(o),index:o}})}return[]}},onClick(e,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,n){super(e,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const n=this._cachedMeta,i=this.chart,s=i.data.labels||[],r=Uu(n._parsed[e].r,i.options.locale);return{label:s[e]||"",value:r}}parseObjectData(e,n,i,s){return XS.bind(this)(e,n,i,s)}update(e){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,e)}getMinMax(){const e=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((i,s)=>{const r=this.getParsed(s).r;!isNaN(r)&&this.chart.getDataVisibility(s)&&(rn.max&&(n.max=r))}),n}_updateRadius(){const e=this.chart,n=e.chartArea,i=e.options,s=Math.min(n.right-n.left,n.bottom-n.top),r=Math.max(s/2,0),o=Math.max(i.cutoutPercentage?r/100*i.cutoutPercentage:1,0),a=(r-o)/e.getVisibleDatasetCount();this.outerRadius=r-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(e,n,i,s){const r=s==="reset",o=this.chart,l=o.options.animation,c=this._cachedMeta.rScale,u=c.xCenter,d=c.yCenter,h=c.getIndexAngle(0)-.5*Bt;let g=h,p;const m=360/this.countVisibleElements();for(p=0;p{!isNaN(this.getParsed(s).r)&&this.chart.getDataVisibility(s)&&n++}),n}_computeAngle(e,n,i){return this.chart.getDataVisibility(e)?ls(this.resolveDataElementOptions(e,n).angle||i):0}}class OH extends ok{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}class NH extends xo{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(e){const n=this._cachedMeta.vScale,i=this.getParsed(e);return{label:n.getLabels()[e],value:""+n.getLabelForValue(i[n.axis])}}parseObjectData(e,n,i,s){return XS.bind(this)(e,n,i,s)}update(e){const n=this._cachedMeta,i=n.dataset,s=n.data||[],r=n.iScale.getLabels();if(i.points=s,e!=="resize"){const o=this.resolveDatasetElementOptions(e);this.options.showLine||(o.borderWidth=0);const a={_loop:!0,_fullLoop:r.length===s.length,options:o};this.updateElement(i,void 0,a,e)}this.updateElements(s,0,s.length,e)}updateElements(e,n,i,s){const r=this._cachedMeta.rScale,o=s==="reset";for(let a=n;a0&&this.getParsed(n-1);for(let w=n;w0&&Math.abs(C[g]-E[g])>y,v&&(k.parsed=C,k.raw=c.data[w]),h&&(k.options=d||this.resolveDataElementOptions(w,b.active?"active":s)),x||this.updateElement(b,w,k,s),E=C}this.updateSharedOptions(d,s,u)}getMaxOverflow(){const e=this._cachedMeta,n=e.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 i=e.dataset,s=i.options&&i.options.borderWidth||0;if(!n.length)return s;const r=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(s,r,o)/2}}function Fo(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class av{static override(e){Object.assign(av.prototype,e)}options;constructor(e){this.options=e||{}}init(){}formats(){return Fo()}parse(){return Fo()}format(){return Fo()}add(){return Fo()}diff(){return Fo()}startOf(){return Fo()}endOf(){return Fo()}}var BH={_date:av};function VH(t,e,n,i){const{controller:s,data:r,_sorted:o}=t,a=s._cachedMeta.iScale;if(a&&e===a.axis&&e!=="r"&&o&&r.length){const l=a._reversePixels?rY:cr;if(i){if(s._sharedOptions){const c=r[0],u=typeof c.getRange=="function"&&c.getRange(e);if(u){const d=l(r,e,n-u),h=l(r,e,n+u);return{lo:d.lo,hi:h.hi}}}}else return l(r,e,n)}return{lo:0,hi:r.length-1}}function Gu(t,e,n,i,s){const r=t.getSortedVisibleDatasetMetas(),o=n[e];for(let a=0,l=r.length;a{l[o]&&l[o](e[n],s)&&(r.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(e.x,e.y,s))}),i&&!a?[]:r}var HH={evaluateInteractionItems:Gu,modes:{index(t,e,n,i){const s=jo(e,t),r=n.axis||"x",o=n.includeInvisible||!1,a=n.intersect?ep(t,s,r,i,o):tp(t,s,r,!1,i,o),l=[];return a.length?(t.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(t,e,n,i){const s=jo(e,t),r=n.axis||"xy",o=n.includeInvisible||!1;let a=n.intersect?ep(t,s,r,i,o):tp(t,s,r,!1,i,o);if(a.length>0){const l=a[0].datasetIndex,c=t.getDatasetMeta(l).data;a=[];for(let u=0;un.pos===e)}function a1(t,e){return t.filter(n=>lk.indexOf(n.pos)===-1&&n.box.axis===e)}function gc(t,e){return t.sort((n,i)=>{const s=e?i:n,r=e?n:i;return s.weight===r.weight?s.index-r.index:s.weight-r.weight})}function jH(t){const e=[];let n,i,s,r,o,a;for(n=0,i=(t||[]).length;nc.box.fullSize),!0),i=gc(fc(e,"left"),!0),s=gc(fc(e,"right")),r=gc(fc(e,"top"),!0),o=gc(fc(e,"bottom")),a=a1(e,"x"),l=a1(e,"y");return{fullSize:n,leftAndTop:i.concat(r),rightAndBottom:s.concat(l).concat(o).concat(a),chartArea:fc(e,"chartArea"),vertical:i.concat(s).concat(l),horizontal:r.concat(o).concat(a)}}function l1(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function ck(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function XH(t,e,n,i){const{pos:s,box:r}=n,o=t.maxPadding;if(!ut(s)){n.size&&(t[s]-=n.size);const d=i[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?r.height:r.width),n.size=d.size/d.count,t[s]+=n.size}r.getPadding&&ck(o,r.getPadding());const a=Math.max(0,e.outerWidth-l1(o,t,"left","right")),l=Math.max(0,e.outerHeight-l1(o,t,"top","bottom")),c=a!==t.w,u=l!==t.h;return t.w=a,t.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function qH(t){const e=t.maxPadding;function n(i){const s=Math.max(e[i]-t[i],0);return t[i]+=s,s}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function ZH(t,e){const n=e.maxPadding;function i(s){const r={left:0,top:0,right:0,bottom:0};return s.forEach(o=>{r[o]=Math.max(e[o],n[o])}),r}return i(t?["left","right"]:["top","bottom"])}function Sc(t,e,n,i){const s=[];let r,o,a,l,c,u;for(r=0,o=t.length,c=0;r{typeof m.beforeLayout=="function"&&m.beforeLayout()});const u=l.reduce((m,v)=>v.box.options&&v.box.options.display===!1?m:m+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:s,availableWidth:r,availableHeight:o,vBoxMaxWidth:r/2/u,hBoxMaxHeight:o/2}),h=Object.assign({},s);ck(h,Zn(i));const g=Object.assign({maxPadding:h,w:r,h:o,x:s.left,y:s.top},s),p=UH(l.concat(c),d);Sc(a.fullSize,g,d,p),Sc(l,g,d,p),Sc(c,g,d,p)&&Sc(l,g,d,p),qH(g),c1(a.leftAndTop,g,d,p),g.x+=g.w,g.y+=g.h,c1(a.rightAndBottom,g,d,p),t.chartArea={left:g.left,top:g.top,right:g.left+g.w,bottom:g.top+g.h,height:g.h,width:g.w},Tt(a.chartArea,m=>{const v=m.box;Object.assign(v,t.chartArea),v.update(g.w,g.h,{left:0,top:0,right:0,bottom:0})})}};class uk{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,i){}removeEventListener(e,n,i){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,i,s){return n=Math.max(0,n||e.width),i=i||e.height,{width:n,height:Math.max(0,s?Math.floor(n/s):i)}}isAttached(e){return!0}updateConfig(e){}}class JH extends uk{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const dh="$chartjs",QH={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},u1=t=>t===null||t==="";function ej(t,e){const n=t.style,i=t.getAttribute("height"),s=t.getAttribute("width");if(t[dh]={initial:{height:i,width:s,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",u1(s)){const r=K0(t,"width");r!==void 0&&(t.width=r)}if(u1(i))if(t.style.height==="")t.height=t.width/(e||2);else{const r=K0(t,"height");r!==void 0&&(t.height=r)}return t}const dk=JY?{passive:!0}:!1;function tj(t,e,n){t&&t.addEventListener(e,n,dk)}function nj(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,dk)}function ij(t,e){const n=QH[t.type]||t.type,{x:i,y:s}=jo(t,e);return{type:n,chart:e,native:t,x:i!==void 0?i:null,y:s!==void 0?s:null}}function Rh(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function sj(t,e,n){const i=t.canvas,s=new MutationObserver(r=>{let o=!1;for(const a of r)o=o||Rh(a.addedNodes,i),o=o&&!Rh(a.removedNodes,i);o&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}function rj(t,e,n){const i=t.canvas,s=new MutationObserver(r=>{let o=!1;for(const a of r)o=o||Rh(a.removedNodes,i),o=o&&!Rh(a.addedNodes,i);o&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}const mu=new Map;let d1=0;function hk(){const t=window.devicePixelRatio;t!==d1&&(d1=t,mu.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function oj(t,e){mu.size||window.addEventListener("resize",hk),mu.set(t,e)}function aj(t){mu.delete(t),mu.size||window.removeEventListener("resize",hk)}function lj(t,e,n){const i=t.canvas,s=i&&ov(i);if(!s)return;const r=BS((a,l)=>{const c=s.clientWidth;n(a,l),c{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||r(c,u)});return o.observe(s),oj(t,r),o}function np(t,e,n){n&&n.disconnect(),e==="resize"&&aj(t)}function cj(t,e,n){const i=t.canvas,s=BS(r=>{t.ctx!==null&&n(ij(r,t))},t);return tj(i,e,s),s}class uj extends uk{acquireContext(e,n){const i=e&&e.getContext&&e.getContext("2d");return i&&i.canvas===e?(ej(e,n),i):null}releaseContext(e){const n=e.canvas;if(!n[dh])return!1;const i=n[dh].initial;["height","width"].forEach(r=>{const o=i[r];gt(o)?n.removeAttribute(r):n.setAttribute(r,o)});const s=i.style||{};return Object.keys(s).forEach(r=>{n.style[r]=s[r]}),n.width=n.width,delete n[dh],!0}addEventListener(e,n,i){this.removeEventListener(e,n);const s=e.$proxies||(e.$proxies={}),o={attach:sj,detach:rj,resize:lj}[n]||cj;s[n]=o(e,n,i)}removeEventListener(e,n){const i=e.$proxies||(e.$proxies={}),s=i[n];if(!s)return;({attach:np,detach:np,resize:np}[n]||nj)(e,n,s),i[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,i,s){return ZY(e,n,i,s)}isAttached(e){const n=e&&ov(e);return!!(n&&n.isConnected)}}function dj(t){return!rv()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?JH:uj}let xr=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){const{x:n,y:i}=this.getProps(["x","y"],e);return{x:n,y:i}}hasValue(){return Il(this.x)&&Il(this.y)}getProps(e,n){const i=this.$animations;if(!n||!i)return this;const s={};return e.forEach(r=>{s[r]=i[r]&&i[r].active()?i[r]._to:this[r]}),s}};function hj(t,e){const n=t.options.ticks,i=fj(t),s=Math.min(n.maxTicksLimit||i,i),r=n.major.enabled?pj(e):[],o=r.length,a=r[0],l=r[o-1],c=[];if(o>s)return mj(e,c,r,o/s),c;const u=gj(r,e,s);if(o>0){let d,h;const g=o>1?Math.round((l-a)/(o-1)):null;for(Ld(e,c,u,gt(g)?0:a-g,a),d=0,h=o-1;ds)return l}return Math.max(s,1)}function pj(t){const e=[];let n,i;for(n=0,i=t.length;nt==="left"?"right":t==="right"?"left":t,h1=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,f1=(t,e)=>Math.min(e||t,t);function g1(t,e){const n=[],i=t.length/e,s=t.length;let r=0;for(;ro+a)))return l}function bj(t,e){Tt(t,n=>{const i=n.gc,s=i.length/2;let r;if(s>e){for(r=0;ri?i:n,i=s&&n>i?n:i,{min:Si(n,Si(i,n)),max:Si(i,Si(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){$t(this.options.beforeUpdate,[this])}update(e,n,i){const{beginAtZero:s,grace:r,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=PY(this,r,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a=r||i<=1||!this.isHorizontal()){this.labelRotation=s;return}const u=this._getLabelSizes(),d=u.widest.width,h=u.highest.height,g=Dn(this.chart.width-d,0,this.maxWidth);a=e.offset?this.maxWidth/i:g/(i-1),d+6>a&&(a=g/(i-(e.offset?.5:1)),l=this.maxHeight-pc(e.grid)-n.padding-p1(e.title,this.chart.options.font),c=Math.sqrt(d*d+h*h),o=Z_(Math.min(Math.asin(Dn((u.highest.height+6)/a,-1,1)),Math.asin(Dn(l/c,-1,1))-Math.asin(Dn(h/c,-1,1)))),o=Math.max(s,Math.min(r,o))),this.labelRotation=o}afterCalculateLabelRotation(){$t(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){$t(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:i,title:s,grid:r}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const l=p1(s,n.options.font);if(a?(e.width=this.maxWidth,e.height=pc(r)+l):(e.height=this.maxHeight,e.width=pc(r)+l),i.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:h}=this._getLabelSizes(),g=i.padding*2,p=ls(this.labelRotation),m=Math.cos(p),v=Math.sin(p);if(a){const y=i.mirror?0:v*d.width+m*h.height;e.height=Math.min(this.maxHeight,e.height+y+g)}else{const y=i.mirror?0:m*d.width+v*h.height;e.width=Math.min(this.maxWidth,e.width+y+g)}this._calculatePadding(c,u,v,m)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,i,s){const{ticks:{align:r,padding:o},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 h=0,g=0;l?c?(h=s*e.width,g=i*n.height):(h=i*e.height,g=s*n.width):r==="start"?g=n.width:r==="end"?h=e.width:r!=="inner"&&(h=e.width/2,g=n.width/2),this.paddingLeft=Math.max((h-u+o)*this.width/(this.width-u),0),this.paddingRight=Math.max((g-d+o)*this.width/(this.width-d),0)}else{let u=n.height/2,d=e.height/2;r==="start"?(u=0,d=e.height):r==="end"&&(u=n.height,d=0),this.paddingTop=u+o,this.paddingBottom=d+o}}_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(){$t(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,i;for(n=0,i=e.length;n({width:o[A]||0,height:a[A]||0});return{first:T(0),last:T(n-1),widest:T(C),highest:T(k),widths:o,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return sY(this._alignToPixels?No(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&ea*s?a/i:l/s:l*s0}_computeGridLineItems(e){const n=this.axis,i=this.chart,s=this.options,{grid:r,position:o,border:a}=s,l=r.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),h=pc(r),g=[],p=a.setContext(this.getContext()),m=p.display?p.width:0,v=m/2,y=function(R){return No(i,R,m)};let x,E,w,b,C,k,T,A,I,V,Y,ne;if(o==="top")x=y(this.bottom),k=this.bottom-h,A=x-v,V=y(e.top)+v,ne=e.bottom;else if(o==="bottom")x=y(this.top),V=e.top,ne=y(e.bottom)-v,k=x+v,A=this.top+h;else if(o==="left")x=y(this.right),C=this.right-h,T=x-v,I=y(e.left)+v,Y=e.right;else if(o==="right")x=y(this.left),I=e.left,Y=y(e.right)-v,C=x+v,T=this.left+h;else if(n==="x"){if(o==="center")x=y((e.top+e.bottom)/2+.5);else if(ut(o)){const R=Object.keys(o)[0],z=o[R];x=y(this.chart.scales[R].getPixelForValue(z))}V=e.top,ne=e.bottom,k=x+v,A=k+h}else if(n==="y"){if(o==="center")x=y((e.left+e.right)/2);else if(ut(o)){const R=Object.keys(o)[0],z=o[R];x=y(this.chart.scales[R].getPixelForValue(z))}C=x-v,T=C-h,I=e.left,Y=e.right}const N=it(s.ticks.maxTicksLimit,d),B=Math.max(1,Math.ceil(d/N));for(E=0;E0&&(ue-=D/2);break}ce={left:ue,top:ee,width:D+ie.width,height:te+ie.height,color:B.backdropColor}}v.push({label:w,font:A,textOffset:Y,options:{rotation:m,color:z,strokeColor:X,strokeWidth:J,textAlign:H,textBaseline:ne,translation:[b,C],backdrop:ce}})}return v}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-ls(this.labelRotation))return e==="top"?"left":"right";let s="center";return n.align==="start"?s="left":n.align==="end"?s="right":n.align==="inner"&&(s="inner"),s}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:i,mirror:s,padding:r}}=this.options,o=this._getLabelSizes(),a=e+r,l=o.widest.width;let c,u;return n==="left"?s?(u=this.right+r,i==="near"?c="left":i==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,i==="near"?c="right":i==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?s?(u=this.left+r,i==="near"?c="right":i==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,i==="near"?c="left":i==="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 e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:i,top:s,width:r,height:o}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(i,s,r,o),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const s=this.ticks.findIndex(r=>r.value===e);return s>=0?n.setContext(this.getContext(s)).lineWidth:0}drawGrid(e){const n=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let r,o;const a=(l,c,u)=>{!u.width||!u.color||(i.save(),i.lineWidth=u.width,i.strokeStyle=u.color,i.setLineDash(u.borderDash||[]),i.lineDashOffset=u.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(n.display)for(r=0,o=s.length;r{this.draw(r)}}]:[{z:i,draw:r=>{this.drawBackground(),this.drawGrid(r),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:n,draw:r=>{this.drawLabels(r)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",s=[];let r,o;for(r=0,o=n.length;r{const i=n.split("."),s=i.pop(),r=[t].concat(i).join("."),o=e[n].split("."),a=o.pop(),l=o.join(".");sn.route(r,s,l,a)})}function Tj(t){return"id"in t&&"defaults"in t}class Aj{constructor(){this.controllers=new Od(xo,"datasets",!0),this.elements=new Od(xr,"elements"),this.plugins=new Od(Object,"plugins"),this.scales=new Od(ba,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,i){[...n].forEach(s=>{const r=i||this._getRegistryForType(s);i||r.isForType(s)||r===this.plugins&&s.id?this._exec(e,r,s):Tt(s,o=>{const a=i||this._getRegistryForType(o);this._exec(e,a,o)})})}_exec(e,n,i){const s=q_(e);$t(i["before"+s],[],i),n[e](i),$t(i["after"+s],[],i)}_getRegistryForType(e){for(let n=0;nr.filter(a=>!o.some(l=>a.plugin.id===l.plugin.id));this._notify(s(n,i),e,"stop"),this._notify(s(i,n),e,"start")}}function Mj(t){const e={},n=[],i=Object.keys(xs.plugins.items);for(let r=0;r1&&m1(t[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function _1(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function Nj(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(i=>i.xAxisID===t||i.yAxisID===t);if(n.length)return _1(t,"x",n[0])||_1(t,"y",n[0])}return{}}function Fj(t,e){const n=fa[t.type]||{scales:{}},i=e.scales||{},s=hm(t.type,e),r=Object.create(null);return Object.keys(i).forEach(o=>{const a=i[o];if(!ut(a))return console.error(`Invalid scale configuration for scale: ${o}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=fm(o,a,Nj(o,t),sn.scales[a.type]),c=Lj(l,s),u=n.scales||{};r[o]=Kc(Object.create(null),[{axis:l},a,u[l],u[c]])}),t.data.datasets.forEach(o=>{const a=o.type||t.type,l=o.indexAxis||hm(a,e),u=(fa[a]||{}).scales||{};Object.keys(u).forEach(d=>{const h=$j(d,l),g=o[h+"AxisID"]||h;r[g]=r[g]||Object.create(null),Kc(r[g],[{axis:h},i[g],u[d]])})}),Object.keys(r).forEach(o=>{const a=r[o];Kc(a,[sn.scales[a.type],sn.scale])}),r}function fk(t){const e=t.options||(t.options={});e.plugins=it(e.plugins,{}),e.scales=Fj(t,e)}function gk(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function Bj(t){return t=t||{},t.data=gk(t.data),fk(t),t}const v1=new Map,pk=new Set;function Nd(t,e){let n=v1.get(t);return n||(n=e(),v1.set(t,n),pk.add(n)),n}const mc=(t,e,n)=>{const i=lo(e,n);i!==void 0&&t.add(i)};let Vj=class{constructor(e){this._config=Bj(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=gk(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),fk(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Nd(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return Nd(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return Nd(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,i=this.type;return Nd(`${i}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const i=this._scopeCache;let s=i.get(e);return(!s||n)&&(s=new Map,i.set(e,s)),s}getOptionScopes(e,n,i){const{options:s,type:r}=this,o=this._cachedScopes(e,i),a=o.get(n);if(a)return a;const l=new Set;n.forEach(u=>{e&&(l.add(e),u.forEach(d=>mc(l,e,d))),u.forEach(d=>mc(l,s,d)),u.forEach(d=>mc(l,fa[r]||{},d)),u.forEach(d=>mc(l,sn,d)),u.forEach(d=>mc(l,um,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),pk.has(n)&&o.set(n,c),c}chartOptionScopes(){const{options:e,type:n}=this;return[e,fa[n]||{},sn.datasets[n]||{},{type:n},sn,um]}resolveNamedOptions(e,n,i,s=[""]){const r={$shared:!0},{resolver:o,subPrefixes:a}=y1(this._resolverCache,e,s);let l=o;if(Wj(o,n)){r.$shared=!1,i=co(i)?i():i;const c=this.createResolver(e,i,a);l=Dl(o,i,c)}for(const c of n)r[c]=l[c];return r}createResolver(e,n,i=[""],s){const{resolver:r}=y1(this._resolverCache,e,i);return ut(n)?Dl(r,n,void 0,s):r}};function y1(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const s=n.join();let r=i.get(s);return r||(r={resolver:nv(e,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},i.set(s,r)),r}const zj=t=>ut(t)&&Object.getOwnPropertyNames(t).some(e=>co(t[e]));function Wj(t,e){const{isScriptable:n,isIndexable:i}=jS(t);for(const s of e){const r=n(s),o=i(s),a=(o||r)&&t[s];if(r&&(co(a)||zj(a))||o&&Yt(a))return!0}return!1}var Yj="4.4.4";const Hj=["top","bottom","left","right","chartArea"];function b1(t,e){return t==="top"||t==="bottom"||Hj.indexOf(t)===-1&&e==="x"}function w1(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function x1(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),$t(n&&n.onComplete,[t],e)}function jj(t){const e=t.chart,n=e.options.animation;$t(n&&n.onProgress,[t],e)}function mk(t){return rv()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const hh={},E1=t=>{const e=mk(t);return Object.values(hh).filter(n=>n.canvas===e).pop()};function Kj(t,e,n){const i=Object.keys(t);for(const s of i){const r=+s;if(r>=e){const o=t[s];delete t[s],(n>0||r>e)&&(t[r+n]=o)}}}function Uj(t,e,n,i){return!n||t.type==="mouseout"?null:i?e:t}function Fd(t,e,n){return t.options.clip?t[n]:e[n]}function Gj(t,e){const{xScale:n,yScale:i}=t;return n&&i?{left:Fd(n,e,"left"),right:Fd(n,e,"right"),top:Fd(i,e,"top"),bottom:Fd(i,e,"bottom")}:e}let Df=class{static defaults=sn;static instances=hh;static overrides=fa;static registry=xs;static version=Yj;static getChart=E1;static register(...e){xs.add(...e),C1()}static unregister(...e){xs.remove(...e),C1()}constructor(e,n){const i=this.config=new Vj(n),s=mk(e),r=E1(s);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const o=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||dj(s)),this.platform.updateConfig(i);const a=this.platform.acquireContext(s,o.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;if(this.id=KW(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Pj,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=lY(d=>this.update(d),o.resizeDelay||0),this._dataChanges=[],hh[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Zs.listen(this,"complete",x1),Zs.listen(this,"progress",jj),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:i,height:s,_aspectRatio:r}=this;return gt(e)?n&&r?r:s?i/s:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return xs}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():j0(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return W0(this.canvas,this.ctx),this}stop(){return Zs.stop(this),this}resize(e,n){Zs.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const i=this.options,s=this.canvas,r=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(s,e,n,r),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,j0(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),$t(i.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Tt(n,(i,s)=>{i.id=s})}buildOrUpdateScales(){const e=this.options,n=e.scales,i=this.scales,s=Object.keys(i).reduce((o,a)=>(o[a]=!1,o),{});let r=[];n&&(r=r.concat(Object.keys(n).map(o=>{const a=n[o],l=fm(o,a),c=l==="r",u=l==="x";return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),Tt(r,o=>{const a=o.options,l=a.id,c=fm(l,a),u=it(a.type,o.dtype);(a.position===void 0||b1(a.position,c)!==b1(o.dposition))&&(a.position=o.dposition),s[l]=!0;let d=null;if(l in i&&i[l].type===u)d=i[l];else{const h=xs.getScale(u);d=new h({id:l,type:u,ctx:this.ctx,chart:this}),i[d.id]=d}d.init(a,e)}),Tt(s,(o,a)=>{o||delete i[a]}),Tt(i,o=>{zi.configure(this,o,o.options),zi.addBox(this,o)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,i=e.length;if(e.sort((s,r)=>s.index-r.index),i>n){for(let s=n;sn.length&&delete this._stacks,e.forEach((i,s)=>{n.filter(r=>r===i._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let i,s;for(this._removeUnreferencedMetasets(),i=0,s=n.length;i{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const i=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let c=0,u=this.data.datasets.length;c{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(w1("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Tt(this.scales,e=>{zi.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),i=new Set(e.events);(!R0(n,i)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:r}of n){const o=i==="_removeElements"?-r:r;Kj(e,s,o)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,i=r=>new Set(e.filter(o=>o[0]===r).map((o,a)=>a+","+o.splice(1).join(","))),s=i(0);for(let r=1;rr.split(",")).map(r=>({method:r[1],start:+r[2],count:+r[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;zi.update(this,this.width,this.height,e);const n=this.chartArea,i=n.width<=0||n.height<=0;this._layers=[],Tt(this.boxes,s=>{i&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,r)=>{s._idx=r}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,i=this.data.datasets.length;n=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,i=e._clip,s=!i.disabled,r=Gj(e,this.chartArea),o={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(s&&Pf(n,{left:i.left===!1?0:r.left-i.left,right:i.right===!1?this.width:r.right+i.right,top:i.top===!1?0:r.top-i.top,bottom:i.bottom===!1?this.height:r.bottom+i.bottom}),e.controller.draw(),s&&Mf(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(e){return ur(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,i,s){const r=HH.modes[n];return typeof r=="function"?r(this,e,i,s):[]}getDatasetMeta(e){const n=this.data.datasets[e],i=this._metasets;let s=i.filter(r=>r&&r._dataset===n).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=wo(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const i=this.getDatasetMeta(e);return typeof i.hidden=="boolean"?!i.hidden:!n.hidden}setDatasetVisibility(e,n){const i=this.getDatasetMeta(e);i.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,i){const s=i?"show":"hide",r=this.getDatasetMeta(e),o=r.controller._resolveAnimations(void 0,s);fu(n)?(r.data[n].hidden=!i,this.update()):(this.setDatasetVisibility(e,i),o.update(r,{visible:i}),this.update(a=>a.datasetIndex===e?s:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),Zs.remove(this),e=0,n=this.data.datasets.length;e{n.addEventListener(this,r,o),e[r]=o},s=(r,o,a)=>{r.offsetX=o,r.offsetY=a,this._eventHandler(r)};Tt(this.options.events,r=>i(r,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,i=(l,c)=>{n.addEventListener(this,l,c),e[l]=c},s=(l,c)=>{e[l]&&(n.removeEventListener(this,l,c),delete e[l])},r=(l,c)=>{this.canvas&&this.resize(l,c)};let o;const a=()=>{s("attach",a),this.attached=!0,this.resize(),i("resize",r),i("detach",o)};o=()=>{this.attached=!1,s("resize",r),this._stop(),this._resize(0,0),i("attach",a)},n.isAttached(this.canvas)?a():o()}unbindEvents(){Tt(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},Tt(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,i){const s=i?"set":"remove";let r,o,a,l;for(n==="dataset"&&(r=this.getDatasetMeta(e[0].datasetIndex),r.controller["_"+s+"DatasetHoverStyle"]()),a=0,l=e.length;a{const a=this.getDatasetMeta(r);if(!a)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:a.data[o],index:o}});!Ah(i,n)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,n))}notifyPlugins(e,n,i){return this._plugins.notify(this,e,n,i)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,i){const s=this.options.hover,r=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),o=r(n,e),a=i?e:r(e,n);o.length&&this.updateHoverStyle(o,s.mode,!1),a.length&&s.mode&&this.updateHoverStyle(a,s.mode,!0)}_eventHandler(e,n){const i={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},s=o=>(o.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",i,s)===!1)return;const r=this._handleEvent(e,n,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(r||i.changed)&&this.render(),this}_handleEvent(e,n,i){const{_active:s=[],options:r}=this,o=n,a=this._getActiveElements(e,s,i,o),l=JW(e),c=Uj(e,this._lastEvent,i,l);i&&(this._lastEvent=null,$t(r.onHover,[e,a,this],this),l&&$t(r.onClick,[e,a,this],this));const u=!Ah(a,s);return(u||n)&&(this._active=a,this._updateHoverStyles(a,s,n)),this._lastEvent=c,u}_getActiveElements(e,n,i,s){if(e.type==="mouseout")return[];if(!i)return n;const r=this.options.hover;return this.getElementsAtEventForMode(e,r.mode,r,s)}};function C1(){return Tt(Df.instances,t=>t._plugins.invalidate())}function Xj(t,e,n){const{startAngle:i,pixelMargin:s,x:r,y:o,outerRadius:a,innerRadius:l}=e;let c=s/a;t.beginPath(),t.arc(r,o,a,i-c,n+c),l>s?(c=s/l,t.arc(r,o,l,n+c,i-c,!0)):t.arc(r,o,s,n+dn,i-dn),t.closePath(),t.clip()}function qj(t){return tv(t,["outerStart","outerEnd","innerStart","innerEnd"])}function Zj(t,e,n,i){const s=qj(t.options.borderRadius),r=(n-e)/2,o=Math.min(r,i*e/2),a=l=>{const c=(n-Math.min(r,l))*i/2;return Dn(l,0,Math.min(r,c))};return{outerStart:a(s.outerStart),outerEnd:a(s.outerEnd),innerStart:Dn(s.innerStart,0,o),innerEnd:Dn(s.innerEnd,0,o)}}function Na(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function $h(t,e,n,i,s,r){const{x:o,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=e,d=Math.max(e.outerRadius+i+n-c,0),h=u>0?u+i+n+c:0;let g=0;const p=s-l;if(i){const B=u>0?u-i:0,R=d>0?d-i:0,z=(B+R)/2,X=z!==0?p*z/(z+i):p;g=(p-X)/2}const m=Math.max(.001,p*d-n/Bt)/d,v=(p-m)/2,y=l+v+g,x=s-v-g,{outerStart:E,outerEnd:w,innerStart:b,innerEnd:C}=Zj(e,h,d,x-y),k=d-E,T=d-w,A=y+E/k,I=x-w/T,V=h+b,Y=h+C,ne=y+b/V,N=x-C/Y;if(t.beginPath(),r){const B=(A+I)/2;if(t.arc(o,a,d,A,B),t.arc(o,a,d,B,I),w>0){const J=Na(T,I,o,a);t.arc(J.x,J.y,w,I,x+dn)}const R=Na(Y,x,o,a);if(t.lineTo(R.x,R.y),C>0){const J=Na(Y,N,o,a);t.arc(J.x,J.y,C,x+dn,N+Math.PI)}const z=(x-C/h+(y+b/h))/2;if(t.arc(o,a,h,x-C/h,z,!0),t.arc(o,a,h,z,y+b/h,!0),b>0){const J=Na(V,ne,o,a);t.arc(J.x,J.y,b,ne+Math.PI,y-dn)}const X=Na(k,y,o,a);if(t.lineTo(X.x,X.y),E>0){const J=Na(k,A,o,a);t.arc(J.x,J.y,E,y-dn,A)}}else{t.moveTo(o,a);const B=Math.cos(A)*d+o,R=Math.sin(A)*d+a;t.lineTo(B,R);const z=Math.cos(I)*d+o,X=Math.sin(I)*d+a;t.lineTo(z,X)}t.closePath()}function Jj(t,e,n,i,s){const{fullCircles:r,startAngle:o,circumference:a}=e;let l=e.endAngle;if(r){$h(t,e,n,i,l,s);for(let c=0;ce!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,n,i){const s=this.getProps(["x","y"],i),{angle:r,distance:o}=LS(s,{x:e,y:n}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:u,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),h=(this.options.spacing+this.options.borderWidth)/2,g=it(d,l-a),p=gu(r,a,l)&&a!==l,m=g>=Ft||p,v=lr(o,c+h,u+h);return m&&v}getCenterPoint(e){const{x:n,y:i,startAngle:s,endAngle:r,innerRadius:o,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:l,spacing:c}=this.options,u=(s+r)/2,d=(o+a+c+l)/2;return{x:n+Math.cos(u)*d,y:i+Math.sin(u)*d}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:n,circumference:i}=this,s=(n.offset||0)/4,r=(n.spacing||0)/2,o=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=i>Ft?Math.floor(i/Ft):0,i===0||this.innerRadius<0||this.outerRadius<0)return;e.save();const a=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(a)*s,Math.sin(a)*s);const l=1-Math.sin(Math.min(Bt,i||0)),c=s*l;e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,Jj(e,this,c,r,o),Qj(e,this,c,r,o),e.restore()}}function _k(t,e,n=e){t.lineCap=it(n.borderCapStyle,e.borderCapStyle),t.setLineDash(it(n.borderDash,e.borderDash)),t.lineDashOffset=it(n.borderDashOffset,e.borderDashOffset),t.lineJoin=it(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=it(n.borderWidth,e.borderWidth),t.strokeStyle=it(n.borderColor,e.borderColor)}function tK(t,e,n){t.lineTo(n.x,n.y)}function nK(t){return t.stepped?bY:t.tension||t.cubicInterpolationMode==="monotone"?wY:tK}function vk(t,e,n={}){const i=t.length,{start:s=0,end:r=i-1}=n,{start:o,end:a}=e,l=Math.max(s,o),c=Math.min(r,a),u=sa&&r>a;return{count:i,start:l,loop:e.loop,ilen:c(o+(c?a-w:w))%r,E=()=>{m!==v&&(t.lineTo(u,v),t.lineTo(u,m),t.lineTo(u,y))};for(l&&(g=s[x(0)],t.moveTo(g.x,g.y)),h=0;h<=a;++h){if(g=s[x(h)],g.skip)continue;const w=g.x,b=g.y,C=w|0;C===p?(bv&&(v=b),u=(d*u+w)/++d):(E(),t.lineTo(w,b),p=C,d=0,m=v=b),y=b}E()}function gm(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!n?sK:iK}function rK(t){return t.stepped?QY:t.tension||t.cubicInterpolationMode==="monotone"?eH:Ko}function oK(t,e,n,i){let s=e._path;s||(s=e._path=new Path2D,e.path(s,n,i)&&s.closePath()),_k(t,e.options),t.stroke(s)}function aK(t,e,n,i){const{segments:s,options:r}=e,o=gm(e);for(const a of s)_k(t,r,a.style),t.beginPath(),o(t,e,a,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}const lK=typeof Path2D=="function";function cK(t,e,n,i){lK&&!e.options.segment?oK(t,e,n,i):aK(t,e,n,i)}class Rf extends xr{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,n){const i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){const s=i.spanGaps?this._loop:this._fullLoop;jY(this._points,i,e,s,n),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=oH(this,this.options.segment))}first(){const e=this.segments,n=this.points;return e.length&&n[e[0].start]}last(){const e=this.segments,n=this.points,i=e.length;return i&&n[e[i-1].end]}interpolate(e,n){const i=this.options,s=e[n],r=this.points,o=tk(this,{property:n,start:s,end:s});if(!o.length)return;const a=[],l=rK(i);let c,u;for(c=0,u=o.length;c=n)return t.slice(e,e+n);const o=[],a=(n-2)/(r-2);let l=0;const c=e+n-1;let u=e,d,h,g,p,m;for(o[l++]=t[u],d=0;dg&&(g=p,h=t[x],m=x);o[l++]=h,u=m}return o[l++]=t[c],o}function vK(t,e,n,i){let s=0,r=0,o,a,l,c,u,d,h,g,p,m;const v=[],y=e+n-1,x=t[e].x,w=t[y].x-x;for(o=e;om&&(m=c,h=o),s=(r*s+a.x)/++r;else{const C=o-1;if(!gt(d)&&!gt(h)){const k=Math.min(d,h),T=Math.max(d,h);k!==g&&k!==C&&v.push({...t[k],x:s}),T!==g&&T!==C&&v.push({...t[T],x:s})}o>0&&C!==g&&v.push(t[C]),v.push(a),u=b,r=0,p=m=c,d=h=g=o}}return v}function bk(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function k1(t){t.data.datasets.forEach(e=>{bk(e)})}function yK(t,e){const n=e.length;let i=0,s;const{iScale:r}=t,{min:o,max:a,minDefined:l,maxDefined:c}=r.getUserBounds();return l&&(i=Dn(cr(e,r.axis,o).lo,0,n-1)),c?s=Dn(cr(e,r.axis,a).hi+1,i,n)-i:s=n-i,{start:i,count:s}}var bK={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,n)=>{if(!n.enabled){k1(t);return}const i=t.width;t.data.datasets.forEach((s,r)=>{const{_data:o,indexAxis:a}=s,l=t.getDatasetMeta(r),c=o||s.data;if(Cc([a,t.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const u=t.scales[l.xAxisID];if(u.type!=="linear"&&u.type!=="time"||t.options.parsing)return;let{start:d,count:h}=yK(l,c);const g=n.threshold||4*i;if(h<=g){bk(s);return}gt(o)&&(s._data=c,delete s.data,Object.defineProperty(s,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(m){this._data=m}}));let p;switch(n.algorithm){case"lttb":p=_K(c,d,h,i,n);break;case"min-max":p=vK(c,d,h,i);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}s._decimated=p})},destroy(t){k1(t)}};function wK(t,e,n){const i=t.segments,s=t.points,r=e.points,o=[];for(const a of i){let{start:l,end:c}=a;c=lv(l,c,s);const u=pm(n,s[l],s[c],a.loop);if(!e.segments){o.push({source:a,target:u,start:s[l],end:s[c]});continue}const d=tk(e,u);for(const h of d){const g=pm(n,r[h.start],r[h.end],h.loop),p=ek(a,s,g);for(const m of p)o.push({source:m,target:h,start:{[n]:T1(u,g,"start",Math.max)},end:{[n]:T1(u,g,"end",Math.min)}})}}return o}function pm(t,e,n,i){if(i)return;let s=e[t],r=n[t];return t==="angle"&&(s=ki(s),r=ki(r)),{property:t,start:s,end:r}}function xK(t,e){const{x:n=null,y:i=null}=t||{},s=e.points,r=[];return e.segments.forEach(({start:o,end:a})=>{a=lv(o,a,s);const l=s[o],c=s[a];i!==null?(r.push({x:l.x,y:i}),r.push({x:c.x,y:i})):n!==null&&(r.push({x:n,y:l.y}),r.push({x:n,y:c.y}))}),r}function lv(t,e,n){for(;e>t;e--){const i=n[e];if(!isNaN(i.x)&&!isNaN(i.y))break}return e}function T1(t,e,n,i){return t&&e?i(t[n],e[n]):t?t[n]:e?e[n]:0}function wk(t,e){let n=[],i=!1;return Yt(t)?(i=!0,n=t):n=xK(t,e),n.length?new Rf({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function A1(t){return t&&t.fill!==!1}function EK(t,e,n){let s=t[e].fill;const r=[e];let o;if(!n)return s;for(;s!==!1&&r.indexOf(s)===-1;){if(!nn(s))return s;if(o=t[s],!o)return!1;if(o.visible)return s;r.push(s),s=o.fill}return!1}function CK(t,e,n){const i=AK(t);if(ut(i))return isNaN(i.value)?!1:i;let s=parseFloat(i);return nn(s)&&Math.floor(s)===s?SK(i[0],e,s,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function SK(t,e,n,i){return(t==="-"||t==="+")&&(n=e+n),n===e||n<0||n>=i?!1:n}function kK(t,e){let n=null;return t==="start"?n=e.bottom:t==="end"?n=e.top:ut(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}function TK(t,e,n){let i;return t==="start"?i=n:t==="end"?i=e.options.reverse?e.min:e.max:ut(t)?i=t.value:i=e.getBaseValue(),i}function AK(t){const e=t.options,n=e.fill;let i=it(n&&n.target,n);return i===void 0&&(i=!!e.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function PK(t){const{scale:e,index:n,line:i}=t,s=[],r=i.segments,o=i.points,a=MK(e,n);a.push(wk({x:null,y:e.bottom},i));for(let l=0;l=0;--o){const a=s[o].$filler;a&&(a.line.updateControlPoints(r,a.axis),i&&a.fill&&rp(t.ctx,a,r))}},beforeDatasetsDraw(t,e,n){if(n.drawTime!=="beforeDatasetsDraw")return;const i=t.getSortedVisibleDatasetMetas();for(let s=i.length-1;s>=0;--s){const r=i[s].$filler;A1(r)&&rp(t.ctx,r,t.chartArea)}},beforeDatasetDraw(t,e,n){const i=e.meta.$filler;!A1(i)||n.drawTime!=="beforeDatasetDraw"||rp(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const D1=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}},zK=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class R1 extends xr{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,i){this.maxWidth=e,this.maxHeight=n,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let n=$t(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(i=>e.filter(i,this.chart.data))),e.sort&&(n=n.sort((i,s)=>e.sort(i,s,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const i=e.labels,s=En(i.font),r=s.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=D1(i,r);let c,u;n.font=s.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(o,r,a,l)+10):(u=this.maxHeight,c=this._fitCols(o,s,a,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(u,e.maxHeight||this.maxHeight)}_fitRows(e,n,i,s){const{ctx:r,maxWidth:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=s+a;let d=e;r.textAlign="left",r.textBaseline="middle";let h=-1,g=-u;return this.legendItems.forEach((p,m)=>{const v=i+n/2+r.measureText(p.text).width;(m===0||c[c.length-1]+v+2*a>o)&&(d+=u,c[c.length-(m>0?0:1)]=0,g+=u,h++),l[m]={left:0,top:g,row:h,width:v,height:s},c[c.length-1]+=v+a}),d}_fitCols(e,n,i,s){const{ctx:r,maxHeight:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=o-e;let d=a,h=0,g=0,p=0,m=0;return this.legendItems.forEach((v,y)=>{const{itemWidth:x,itemHeight:E}=WK(i,n,r,v,s);y>0&&g+E+2*a>u&&(d+=h+a,c.push({width:h,height:g}),p+=h+a,m++,h=g=0),l[y]={left:p,top:g,col:m,width:x,height:E},h=Math.max(h,x),g+=E+a}),d+=h,c.push({width:h,height:g}),d}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:i,labels:{padding:s},rtl:r}}=this,o=ul(r,this.left,this.width);if(this.isHorizontal()){let a=0,l=Yn(i,this.left+s,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=Yn(i,this.left+s,this.right-this.lineWidths[a])),c.top+=this.top+e+s,c.left=o.leftForLtr(o.x(l),c.width),l+=c.width+s}else{let a=0,l=Yn(i,this.top+e+s,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=Yn(i,this.top+e+s,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+s,c.left=o.leftForLtr(o.x(c.left),c.width),l+=c.height+s}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;Pf(e,this),this._draw(),Mf(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:i,ctx:s}=this,{align:r,labels:o}=e,a=sn.color,l=ul(e.rtl,this.left,this.width),c=En(o.font),{padding:u}=o,d=c.size,h=d/2;let g;this.drawTitle(),s.textAlign=l.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=c.string;const{boxWidth:p,boxHeight:m,itemHeight:v}=D1(o,d),y=function(C,k,T){if(isNaN(p)||p<=0||isNaN(m)||m<0)return;s.save();const A=it(T.lineWidth,1);if(s.fillStyle=it(T.fillStyle,a),s.lineCap=it(T.lineCap,"butt"),s.lineDashOffset=it(T.lineDashOffset,0),s.lineJoin=it(T.lineJoin,"miter"),s.lineWidth=A,s.strokeStyle=it(T.strokeStyle,a),s.setLineDash(it(T.lineDash,[])),o.usePointStyle){const I={radius:m*Math.SQRT2/2,pointStyle:T.pointStyle,rotation:T.rotation,borderWidth:A},V=l.xPlus(C,p/2),Y=k+h;YS(s,I,V,Y,o.pointStyleWidth&&p)}else{const I=k+Math.max((d-m)/2,0),V=l.leftForLtr(C,p),Y=ra(T.borderRadius);s.beginPath(),Object.values(Y).some(ne=>ne!==0)?pu(s,{x:V,y:I,w:p,h:m,radius:Y}):s.rect(V,I,p,m),s.fill(),A!==0&&s.stroke()}s.restore()},x=function(C,k,T){ga(s,T.text,C,k+v/2,c,{strikethrough:T.hidden,textAlign:l.textAlign(T.textAlign)})},E=this.isHorizontal(),w=this._computeTitleHeight();E?g={x:Yn(r,this.left+u,this.right-i[0]),y:this.top+u+w,line:0}:g={x:this.left+u,y:Yn(r,this.top+w+u,this.bottom-n[0].height),line:0},ZS(this.ctx,e.textDirection);const b=v+u;this.legendItems.forEach((C,k)=>{s.strokeStyle=C.fontColor,s.fillStyle=C.fontColor;const T=s.measureText(C.text).width,A=l.textAlign(C.textAlign||(C.textAlign=o.textAlign)),I=p+h+T;let V=g.x,Y=g.y;l.setWidth(this.width),E?k>0&&V+I+u>this.right&&(Y=g.y+=b,g.line++,V=g.x=Yn(r,this.left+u,this.right-i[g.line])):k>0&&Y+b>this.bottom&&(V=g.x=V+n[g.line].width+u,g.line++,Y=g.y=Yn(r,this.top+w+u,this.bottom-n[g.line].height));const ne=l.x(V);if(y(ne,Y,C),V=cY(A,V+p+h,E?V+I:this.right,e.rtl),x(l.x(V),Y,C),E)g.x+=I+u;else if(typeof C.text!="string"){const N=c.lineHeight;g.y+=Ek(C,N)+u}else g.y+=b}),JS(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,i=En(n.font),s=Zn(n.padding);if(!n.display)return;const r=ul(e.rtl,this.left,this.width),o=this.ctx,a=n.position,l=i.size/2,c=s.top+l;let u,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),u=this.top+c,d=Yn(e.align,d,this.right-h);else{const p=this.columnSizes.reduce((m,v)=>Math.max(m,v.height),0);u=c+Yn(e.align,this.top,this.bottom-p-e.labels.padding-this._computeTitleHeight())}const g=Yn(a,d,d+h);o.textAlign=r.textAlign(Q_(a)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=i.string,ga(o,n.text,g,u,i)}_computeTitleHeight(){const e=this.options.title,n=En(e.font),i=Zn(e.padding);return e.display?n.lineHeight+i.height:0}_getLegendItemAt(e,n){let i,s,r;if(lr(e,this.left,this.right)&&lr(n,this.top,this.bottom)){for(r=this.legendHitBoxes,i=0;ir.length>o.length?r:o)),e+n.size/2+i.measureText(s).width}function HK(t,e,n){let i=t;return typeof e.text!="string"&&(i=Ek(e,n)),i}function Ek(t,e){const n=t.text?t.text.length:0;return e*n}function jK(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var KK={id:"legend",_element:R1,start(t,e,n){const i=t.legend=new R1({ctx:t.ctx,options:n,chart:t});zi.configure(t,i,n),zi.addBox(t,i)},stop(t){zi.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;zi.configure(t,i,n),i.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const i=e.datasetIndex,s=n.chart;s.isDatasetVisible(i)?(s.hide(i),e.hidden=!0):(s.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:s,color:r,useBorderRadius:o,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=Zn(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:r,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:i||c.pointStyle,rotation:c.rotation,textAlign:s||c.textAlign,borderRadius:o&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class Ck extends xr{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n){const i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=n;const s=Yt(i.text)?i.text.length:1;this._padding=Zn(i.padding);const r=s*En(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:n,left:i,bottom:s,right:r,options:o}=this,a=o.align;let l=0,c,u,d;return this.isHorizontal()?(u=Yn(a,i,r),d=n+e,c=r-i):(o.position==="left"?(u=i+e,d=Yn(a,s,n),l=Bt*-.5):(u=r-e,d=Yn(a,n,s),l=Bt*.5),c=s-n),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const i=En(n.font),r=i.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(r);ga(e,n.text,0,0,i,{color:n.color,maxWidth:l,rotation:c,textAlign:Q_(n.align),textBaseline:"middle",translation:[o,a]})}}function UK(t,e){const n=new Ck({ctx:t.ctx,options:e,chart:t});zi.configure(t,n,e),zi.addBox(t,n),t.titleBlock=n}var GK={id:"title",_element:Ck,start(t,e,n){UK(t,n)},stop(t){const e=t.titleBlock;zi.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const i=t.titleBlock;zi.configure(t,i,n),i.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 kc={average(t){if(!t.length)return!1;let e,n,i=new Set,s=0,r=0;for(e=0,n=t.length;ea+l)/i.size,y:s/r}},nearest(t,e){if(!t.length)return!1;let n=e.x,i=e.y,s=Number.POSITIVE_INFINITY,r,o,a;for(r=0,o=t.length;ra({chart:e,initial:n.initial,numSteps:o,currentStep:Math.min(i-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=FS.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((i,s)=>{if(!i.running||!i.items.length)return;const r=i.items;let o=r.length-1,a=!1,l;for(;o>=0;--o)l=r[o],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(e),a=!0):(r[o]=r[r.length-1],r.pop());a&&(s.draw(),this._notify(s,i,e,"progress")),r.length||(i.running=!1,this._notify(s,i,e,"complete"),i.initial=!1),n+=r.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let i=n.get(e);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,i)),i}listen(e,n,i){this._getAnims(e).listeners[n].push(i)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((i,s)=>Math.max(i,s._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const i=n.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Zs=new pH;const q0="transparent",mH={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const i=V0(t||q0),s=i.valid&&V0(e||q0);return s&&s.valid?s.mix(i,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class _H{constructor(e,n,i,s){const r=n[i];s=Cc([e.to,s,r,e.from]);const o=Cc([e.from,r,s]);this._active=!0,this._fn=e.fn||mH[e.type||typeof o],this._easing=Gc[e.easing]||Gc.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=i,this._from=o,this._to=s,this._promises=void 0}active(){return this._active}update(e,n,i){if(this._active){this._notify(!1);const s=this._target[this._prop],r=i-this._start,o=this._duration-r;this._start=i,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=r,this._loop=!!e.loop,this._to=Cc([e.to,n,s,e.from]),this._from=Cc([e.from,s,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,i=this._duration,s=this._prop,r=this._from,o=this._loop,a=this._to;let l;if(this._active=r!==a&&(o||n1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[s]=this._fn(r,a,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,i)=>{e.push({res:n,rej:i})})}_notify(e){const n=e?"res":"rej",i=this._promises||[];for(let s=0;s{const r=e[s];if(!ut(r))return;const o={};for(const a of n)o[a]=r[a];(Yt(r.properties)&&r.properties||[s]).forEach(a=>{(a===s||!i.has(a))&&i.set(a,o)})})}_animateOptions(e,n){const i=n.options,s=yH(e,i);if(!s)return[];const r=this._createAnimations(s,i);return i.$shared&&vH(e.options.$animations,i).then(()=>{e.options=i},()=>{}),r}_createAnimations(e,n){const i=this._properties,s=[],r=e.$animations||(e.$animations={}),o=Object.keys(n),a=Date.now();let l;for(l=o.length-1;l>=0;--l){const c=o[l];if(c.charAt(0)==="$")continue;if(c==="options"){s.push(...this._animateOptions(e,n));continue}const u=n[c];let d=r[c];const f=i.get(c);if(d)if(f&&d.active()){d.update(f,u,a);continue}else d.cancel();if(!f||!f.duration){e[c]=u;continue}r[c]=d=new _H(f,e,c,u),s.push(d)}return s}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const i=this._createAnimations(e,n);if(i.length)return Zs.add(this._chart,i),!0}}function vH(t,e){const n=[],i=Object.keys(e);for(let s=0;s0||!n&&r<0)return s.index}return null}function t1(t,e){const{chart:n,_cachedMeta:i}=t,s=n._stacks||(n._stacks={}),{iScale:r,vScale:o,index:a}=i,l=r.axis,c=o.axis,u=EH(r,o,i),d=e.length;let f;for(let g=0;gn[i].axis===e).shift()}function kH(t,e){return wo(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function TH(t,e,n){return wo(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function hc(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const s of e){const r=s._stacks;if(!r||r[i]===void 0||r[i][n]===void 0)return;delete r[i][n],r[i]._visualValues!==void 0&&r[i]._visualValues[n]!==void 0&&delete r[i]._visualValues[n]}}}const Jg=t=>t==="reset"||t==="none",n1=(t,e)=>e?t:Object.assign({},t),AH=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:ik(n,!0),values:null};class xo{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Q0(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&hc(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,i=this.getDataset(),s=(d,f,g,p)=>d==="x"?f:d==="r"?p:g,r=n.xAxisID=it(i.xAxisID,Zg(e,"x")),o=n.yAxisID=it(i.yAxisID,Zg(e,"y")),a=n.rAxisID=it(i.rAxisID,Zg(e,"r")),l=n.indexAxis,c=n.iAxisID=s(l,r,o,a),u=n.vAxisID=s(l,o,r,a);n.xScale=this.getScaleForId(r),n.yScale=this.getScaleForId(o),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(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&N0(this._data,this),e._stacked&&hc(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),i=this._data;if(ut(n)){const s=this._cachedMeta;this._data=xH(n,s)}else if(i!==n){if(i){N0(i,this);const s=this._cachedMeta;hc(s),s._parsed=[]}n&&Object.isExtensible(n)&&fY(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,i=this.getDataset();let s=!1;this._dataCheck();const r=n._stacked;n._stacked=Q0(n.vScale,n),n.stack!==i.stack&&(s=!0,hc(n),n.stack=i.stack),this._resyncElements(e),(s||r!==n._stacked)&&t1(this,n._parsed)}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),i=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:i,_data:s}=this,{iScale:r,_stacked:o}=i,a=r.axis;let l=e===0&&n===s.length?!0:i._sorted,c=e>0&&i._parsed[e-1],u,d,f;if(this._parsing===!1)i._parsed=s,i._sorted=!0,f=s;else{Yt(s[e])?f=this.parseArrayData(i,s,e,n):ut(s[e])?f=this.parseObjectData(i,s,e,n):f=this.parsePrimitiveData(i,s,e,n);const g=()=>d[a]===null||c&&d[a]m||d=0;--f)if(!p()){this.updateRangeFromParsed(c,e,g,l);break}}return c}getAllParsedValues(e){const n=this._cachedMeta._parsed,i=[];let s,r,o;for(s=0,r=n.length;s=0&&ethis.getContext(i,s,n),m=c.resolveNamedOptions(f,g,p,d);return m.$shared&&(m.$shared=l,r[o]=Object.freeze(n1(m,l))),m}_resolveAnimations(e,n,i){const s=this.chart,r=this._cachedDataOpts,o=`animation-${n}`,a=r[o];if(a)return a;let l;if(s.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(e,i,n))}const c=new nk(s,l&&l.animations);return l&&l._cacheable&&(r[o]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||Jg(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const i=this.resolveDataElementOptions(e,n),s=this._sharedOptions,r=this.getSharedOptions(i),o=this.includeOptions(n,r)||r!==s;return this.updateSharedOptions(r,n,i),{sharedOptions:r,includeOptions:o}}updateElement(e,n,i,s){Jg(s)?Object.assign(e,i):this._resolveAnimations(n,s).update(e,i)}updateSharedOptions(e,n,i){e&&!Jg(n)&&this._resolveAnimations(void 0,n).update(e,i)}_setStyle(e,n,i,s){e.active=s;const r=this.getStyle(n,s);this._resolveAnimations(n,i,s).update(e,{options:!s&&this.getSharedOptions(r)||r})}removeHoverStyle(e,n,i){this._setStyle(e,i,"active",!1)}setHoverStyle(e,n,i){this._setStyle(e,i,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,i=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const s=i.length,r=n.length,o=Math.min(r,s);o&&this.parse(0,o),r>s?this._insertElements(s,r-s,e):r{for(c.length+=n,a=c.length-1;a>=o;a--)c[a]=c[a-n]};for(l(r),a=e;as-r))}return t._cache.$bar}function MH(t){const e=t.iScale,n=PH(e,t.type);let i=e._length,s,r,o,a;const l=()=>{o===32767||o===-32768||(fu(a)&&(i=Math.min(i,Math.abs(o-a)||i)),a=o)};for(s=0,r=n.length;s0?s[t-1]:null,a=tMath.abs(a)&&(l=a,c=o),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:s,end:r,min:o,max:a}}function sk(t,e,n,i){return Yt(t)?RH(t,e,n,i):e[n.axis]=n.parse(t,i),e}function i1(t,e,n,i){const s=t.iScale,r=t.vScale,o=s.getLabels(),a=s===r,l=[];let c,u,d,f;for(c=n,u=n+i;c=n?1:-1)}function LH(t){let e,n,i,s,r;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.baseu.controller.options.grouped),r=i.options.stacked,o=[],a=this._cachedMeta.controller.getParsed(n),l=a&&a[i.axis],c=u=>{const d=u._parsed.find(g=>g[i.axis]===l),f=d&&d[u.vScale.axis];if(gt(f)||isNaN(f))return!0};for(const u of s)if(!(n!==void 0&&c(u))&&((r===!1||o.indexOf(u.stack)===-1||r===void 0&&u.stack===void 0)&&o.push(u.stack),u.index===e))break;return o.length||o.push(void 0),o}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,n,i){const s=this._getStacks(e,i),r=n!==void 0?s.indexOf(n):-1;return r===-1?s.length-1:r}_getRuler(){const e=this.options,n=this._cachedMeta,i=n.iScale,s=[];let r,o;for(r=0,o=n.data.length;r=0;--i)n=Math.max(n,e[i].size(this.resolveDataElementOptions(i))/2);return n>0&&n}getLabelAndValue(e){const n=this._cachedMeta,i=this.chart.data.labels||[],{xScale:s,yScale:r}=n,o=this.getParsed(e),a=s.getLabelForValue(o.x),l=r.getLabelForValue(o.y),c=o._custom;return{label:i[e]||"",value:"("+a+", "+l+(c?", "+c:"")+")"}}update(e){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,e)}updateElements(e,n,i,s){const r=s==="reset",{iScale:o,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(n,s),u=o.axis,d=a.axis;for(let f=n;fgu(E,a,l,!0)?1:Math.max(w,w*n,b,b*n),p=(E,w,b)=>gu(E,a,l,!0)?-1:Math.min(w,w*n,b,b*n),m=g(0,c,d),v=g(dn,u,f),y=p(Bt,c,d),x=p(Bt+dn,u,f);i=(m-y)/2,s=(v-x)/2,r=-(m+y)/2,o=-(v+x)/2}return{ratioX:i,ratioY:s,offsetX:r,offsetY:o}}class ok extends xo{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:i,color:s}}=e.legend.options;return n.labels.map((r,o)=>{const l=e.getDatasetMeta(0).controller.getStyle(o);return{text:r,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:s,lineWidth:l.borderWidth,pointStyle:i,hidden:!e.getDataVisibility(o),index:o}})}return[]}},onClick(e,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}}};constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const i=this.getDataset().data,s=this._cachedMeta;if(this._parsing===!1)s._parsed=i;else{let r=l=>+i[l];if(ut(i[e])){const{key:l="value"}=this._parsing;r=c=>+lo(i[c],l)}let o,a;for(o=e,a=e+n;o0&&!isNaN(e)?Ft*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,i=this.chart,s=i.data.labels||[],r=Uu(n._parsed[e],i.options.locale);return{label:s[e]||"",value:r}}getMaxBorderWidth(e){let n=0;const i=this.chart;let s,r,o,a,l;if(!e){for(s=0,r=i.data.datasets.length;s0&&this.getParsed(n-1);for(let b=0;b=x){k.skip=!0;continue}const T=this.getParsed(b),A=gt(T[g]),I=k[f]=o.getPixelForValue(T[f],b),V=k[g]=r||A?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,T,l):T[g],b);k.skip=isNaN(I)||isNaN(V)||A,k.stop=b>0&&Math.abs(T[f]-w[f])>v,m&&(k.parsed=T,k.raw=c.data[b]),d&&(k.options=u||this.resolveDataElementOptions(b,C.active?"active":s)),y||this.updateElement(C,b,k,s),w=T}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,i=n.options&&n.options.borderWidth||0,s=e.data||[];if(!s.length)return i;const r=s[0].size(this.resolveDataElementOptions(0)),o=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,r,o)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}class zH extends xo{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:i,color:s}}=e.legend.options;return n.labels.map((r,o)=>{const l=e.getDatasetMeta(0).controller.getStyle(o);return{text:r,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:s,lineWidth:l.borderWidth,pointStyle:i,hidden:!e.getDataVisibility(o),index:o}})}return[]}},onClick(e,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,n){super(e,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const n=this._cachedMeta,i=this.chart,s=i.data.labels||[],r=Uu(n._parsed[e].r,i.options.locale);return{label:s[e]||"",value:r}}parseObjectData(e,n,i,s){return XS.bind(this)(e,n,i,s)}update(e){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,e)}getMinMax(){const e=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((i,s)=>{const r=this.getParsed(s).r;!isNaN(r)&&this.chart.getDataVisibility(s)&&(rn.max&&(n.max=r))}),n}_updateRadius(){const e=this.chart,n=e.chartArea,i=e.options,s=Math.min(n.right-n.left,n.bottom-n.top),r=Math.max(s/2,0),o=Math.max(i.cutoutPercentage?r/100*i.cutoutPercentage:1,0),a=(r-o)/e.getVisibleDatasetCount();this.outerRadius=r-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(e,n,i,s){const r=s==="reset",o=this.chart,l=o.options.animation,c=this._cachedMeta.rScale,u=c.xCenter,d=c.yCenter,f=c.getIndexAngle(0)-.5*Bt;let g=f,p;const m=360/this.countVisibleElements();for(p=0;p{!isNaN(this.getParsed(s).r)&&this.chart.getDataVisibility(s)&&n++}),n}_computeAngle(e,n,i){return this.chart.getDataVisibility(e)?ls(this.resolveDataElementOptions(e,n).angle||i):0}}class WH extends ok{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}class YH extends xo{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(e){const n=this._cachedMeta.vScale,i=this.getParsed(e);return{label:n.getLabels()[e],value:""+n.getLabelForValue(i[n.axis])}}parseObjectData(e,n,i,s){return XS.bind(this)(e,n,i,s)}update(e){const n=this._cachedMeta,i=n.dataset,s=n.data||[],r=n.iScale.getLabels();if(i.points=s,e!=="resize"){const o=this.resolveDatasetElementOptions(e);this.options.showLine||(o.borderWidth=0);const a={_loop:!0,_fullLoop:r.length===s.length,options:o};this.updateElement(i,void 0,a,e)}this.updateElements(s,0,s.length,e)}updateElements(e,n,i,s){const r=this._cachedMeta.rScale,o=s==="reset";for(let a=n;a0&&this.getParsed(n-1);for(let w=n;w0&&Math.abs(C[g]-E[g])>y,v&&(k.parsed=C,k.raw=c.data[w]),f&&(k.options=d||this.resolveDataElementOptions(w,b.active?"active":s)),x||this.updateElement(b,w,k,s),E=C}this.updateSharedOptions(d,s,u)}getMaxOverflow(){const e=this._cachedMeta,n=e.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 i=e.dataset,s=i.options&&i.options.borderWidth||0;if(!n.length)return s;const r=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(s,r,o)/2}}function Fo(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class av{static override(e){Object.assign(av.prototype,e)}options;constructor(e){this.options=e||{}}init(){}formats(){return Fo()}parse(){return Fo()}format(){return Fo()}add(){return Fo()}diff(){return Fo()}startOf(){return Fo()}endOf(){return Fo()}}var jH={_date:av};function KH(t,e,n,i){const{controller:s,data:r,_sorted:o}=t,a=s._cachedMeta.iScale;if(a&&e===a.axis&&e!=="r"&&o&&r.length){const l=a._reversePixels?dY:cr;if(i){if(s._sharedOptions){const c=r[0],u=typeof c.getRange=="function"&&c.getRange(e);if(u){const d=l(r,e,n-u),f=l(r,e,n+u);return{lo:d.lo,hi:f.hi}}}}else return l(r,e,n)}return{lo:0,hi:r.length-1}}function Gu(t,e,n,i,s){const r=t.getSortedVisibleDatasetMetas(),o=n[e];for(let a=0,l=r.length;a{l[o]&&l[o](e[n],s)&&(r.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(e.x,e.y,s))}),i&&!a?[]:r}var qH={evaluateInteractionItems:Gu,modes:{index(t,e,n,i){const s=jo(e,t),r=n.axis||"x",o=n.includeInvisible||!1,a=n.intersect?ep(t,s,r,i,o):tp(t,s,r,!1,i,o),l=[];return a.length?(t.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(t,e,n,i){const s=jo(e,t),r=n.axis||"xy",o=n.includeInvisible||!1;let a=n.intersect?ep(t,s,r,i,o):tp(t,s,r,!1,i,o);if(a.length>0){const l=a[0].datasetIndex,c=t.getDatasetMeta(l).data;a=[];for(let u=0;un.pos===e)}function a1(t,e){return t.filter(n=>lk.indexOf(n.pos)===-1&&n.box.axis===e)}function gc(t,e){return t.sort((n,i)=>{const s=e?i:n,r=e?n:i;return s.weight===r.weight?s.index-r.index:s.weight-r.weight})}function ZH(t){const e=[];let n,i,s,r,o,a;for(n=0,i=(t||[]).length;nc.box.fullSize),!0),i=gc(fc(e,"left"),!0),s=gc(fc(e,"right")),r=gc(fc(e,"top"),!0),o=gc(fc(e,"bottom")),a=a1(e,"x"),l=a1(e,"y");return{fullSize:n,leftAndTop:i.concat(r),rightAndBottom:s.concat(l).concat(o).concat(a),chartArea:fc(e,"chartArea"),vertical:i.concat(s).concat(l),horizontal:r.concat(o).concat(a)}}function l1(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function ck(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function tj(t,e,n,i){const{pos:s,box:r}=n,o=t.maxPadding;if(!ut(s)){n.size&&(t[s]-=n.size);const d=i[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?r.height:r.width),n.size=d.size/d.count,t[s]+=n.size}r.getPadding&&ck(o,r.getPadding());const a=Math.max(0,e.outerWidth-l1(o,t,"left","right")),l=Math.max(0,e.outerHeight-l1(o,t,"top","bottom")),c=a!==t.w,u=l!==t.h;return t.w=a,t.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function nj(t){const e=t.maxPadding;function n(i){const s=Math.max(e[i]-t[i],0);return t[i]+=s,s}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function ij(t,e){const n=e.maxPadding;function i(s){const r={left:0,top:0,right:0,bottom:0};return s.forEach(o=>{r[o]=Math.max(e[o],n[o])}),r}return i(t?["left","right"]:["top","bottom"])}function Sc(t,e,n,i){const s=[];let r,o,a,l,c,u;for(r=0,o=t.length,c=0;r{typeof m.beforeLayout=="function"&&m.beforeLayout()});const u=l.reduce((m,v)=>v.box.options&&v.box.options.display===!1?m:m+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:s,availableWidth:r,availableHeight:o,vBoxMaxWidth:r/2/u,hBoxMaxHeight:o/2}),f=Object.assign({},s);ck(f,Zn(i));const g=Object.assign({maxPadding:f,w:r,h:o,x:s.left,y:s.top},s),p=QH(l.concat(c),d);Sc(a.fullSize,g,d,p),Sc(l,g,d,p),Sc(c,g,d,p)&&Sc(l,g,d,p),nj(g),c1(a.leftAndTop,g,d,p),g.x+=g.w,g.y+=g.h,c1(a.rightAndBottom,g,d,p),t.chartArea={left:g.left,top:g.top,right:g.left+g.w,bottom:g.top+g.h,height:g.h,width:g.w},Tt(a.chartArea,m=>{const v=m.box;Object.assign(v,t.chartArea),v.update(g.w,g.h,{left:0,top:0,right:0,bottom:0})})}};class uk{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,i){}removeEventListener(e,n,i){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,i,s){return n=Math.max(0,n||e.width),i=i||e.height,{width:n,height:Math.max(0,s?Math.floor(n/s):i)}}isAttached(e){return!0}updateConfig(e){}}class sj extends uk{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const dh="$chartjs",rj={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},u1=t=>t===null||t==="";function oj(t,e){const n=t.style,i=t.getAttribute("height"),s=t.getAttribute("width");if(t[dh]={initial:{height:i,width:s,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",u1(s)){const r=K0(t,"width");r!==void 0&&(t.width=r)}if(u1(i))if(t.style.height==="")t.height=t.width/(e||2);else{const r=K0(t,"height");r!==void 0&&(t.height=r)}return t}const dk=sH?{passive:!0}:!1;function aj(t,e,n){t&&t.addEventListener(e,n,dk)}function lj(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,dk)}function cj(t,e){const n=rj[t.type]||t.type,{x:i,y:s}=jo(t,e);return{type:n,chart:e,native:t,x:i!==void 0?i:null,y:s!==void 0?s:null}}function Rh(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function uj(t,e,n){const i=t.canvas,s=new MutationObserver(r=>{let o=!1;for(const a of r)o=o||Rh(a.addedNodes,i),o=o&&!Rh(a.removedNodes,i);o&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}function dj(t,e,n){const i=t.canvas,s=new MutationObserver(r=>{let o=!1;for(const a of r)o=o||Rh(a.removedNodes,i),o=o&&!Rh(a.addedNodes,i);o&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}const mu=new Map;let d1=0;function hk(){const t=window.devicePixelRatio;t!==d1&&(d1=t,mu.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function hj(t,e){mu.size||window.addEventListener("resize",hk),mu.set(t,e)}function fj(t){mu.delete(t),mu.size||window.removeEventListener("resize",hk)}function gj(t,e,n){const i=t.canvas,s=i&&ov(i);if(!s)return;const r=BS((a,l)=>{const c=s.clientWidth;n(a,l),c{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||r(c,u)});return o.observe(s),hj(t,r),o}function np(t,e,n){n&&n.disconnect(),e==="resize"&&fj(t)}function pj(t,e,n){const i=t.canvas,s=BS(r=>{t.ctx!==null&&n(cj(r,t))},t);return aj(i,e,s),s}class mj extends uk{acquireContext(e,n){const i=e&&e.getContext&&e.getContext("2d");return i&&i.canvas===e?(oj(e,n),i):null}releaseContext(e){const n=e.canvas;if(!n[dh])return!1;const i=n[dh].initial;["height","width"].forEach(r=>{const o=i[r];gt(o)?n.removeAttribute(r):n.setAttribute(r,o)});const s=i.style||{};return Object.keys(s).forEach(r=>{n.style[r]=s[r]}),n.width=n.width,delete n[dh],!0}addEventListener(e,n,i){this.removeEventListener(e,n);const s=e.$proxies||(e.$proxies={}),o={attach:uj,detach:dj,resize:gj}[n]||pj;s[n]=o(e,n,i)}removeEventListener(e,n){const i=e.$proxies||(e.$proxies={}),s=i[n];if(!s)return;({attach:np,detach:np,resize:np}[n]||lj)(e,n,s),i[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,i,s){return iH(e,n,i,s)}isAttached(e){const n=e&&ov(e);return!!(n&&n.isConnected)}}function _j(t){return!rv()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?sj:mj}let xr=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){const{x:n,y:i}=this.getProps(["x","y"],e);return{x:n,y:i}}hasValue(){return Il(this.x)&&Il(this.y)}getProps(e,n){const i=this.$animations;if(!n||!i)return this;const s={};return e.forEach(r=>{s[r]=i[r]&&i[r].active()?i[r]._to:this[r]}),s}};function vj(t,e){const n=t.options.ticks,i=yj(t),s=Math.min(n.maxTicksLimit||i,i),r=n.major.enabled?wj(e):[],o=r.length,a=r[0],l=r[o-1],c=[];if(o>s)return xj(e,c,r,o/s),c;const u=bj(r,e,s);if(o>0){let d,f;const g=o>1?Math.round((l-a)/(o-1)):null;for(Ld(e,c,u,gt(g)?0:a-g,a),d=0,f=o-1;ds)return l}return Math.max(s,1)}function wj(t){const e=[];let n,i;for(n=0,i=t.length;nt==="left"?"right":t==="right"?"left":t,h1=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,f1=(t,e)=>Math.min(e||t,t);function g1(t,e){const n=[],i=t.length/e,s=t.length;let r=0;for(;ro+a)))return l}function kj(t,e){Tt(t,n=>{const i=n.gc,s=i.length/2;let r;if(s>e){for(r=0;ri?i:n,i=s&&n>i?n:i,{min:Si(n,Si(i,n)),max:Si(i,Si(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){$t(this.options.beforeUpdate,[this])}update(e,n,i){const{beginAtZero:s,grace:r,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=LY(this,r,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a=r||i<=1||!this.isHorizontal()){this.labelRotation=s;return}const u=this._getLabelSizes(),d=u.widest.width,f=u.highest.height,g=Dn(this.chart.width-d,0,this.maxWidth);a=e.offset?this.maxWidth/i:g/(i-1),d+6>a&&(a=g/(i-(e.offset?.5:1)),l=this.maxHeight-pc(e.grid)-n.padding-p1(e.title,this.chart.options.font),c=Math.sqrt(d*d+f*f),o=Z_(Math.min(Math.asin(Dn((u.highest.height+6)/a,-1,1)),Math.asin(Dn(l/c,-1,1))-Math.asin(Dn(f/c,-1,1)))),o=Math.max(s,Math.min(r,o))),this.labelRotation=o}afterCalculateLabelRotation(){$t(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){$t(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:i,title:s,grid:r}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const l=p1(s,n.options.font);if(a?(e.width=this.maxWidth,e.height=pc(r)+l):(e.height=this.maxHeight,e.width=pc(r)+l),i.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:f}=this._getLabelSizes(),g=i.padding*2,p=ls(this.labelRotation),m=Math.cos(p),v=Math.sin(p);if(a){const y=i.mirror?0:v*d.width+m*f.height;e.height=Math.min(this.maxHeight,e.height+y+g)}else{const y=i.mirror?0:m*d.width+v*f.height;e.width=Math.min(this.maxWidth,e.width+y+g)}this._calculatePadding(c,u,v,m)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,i,s){const{ticks:{align:r,padding:o},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,g=0;l?c?(f=s*e.width,g=i*n.height):(f=i*e.height,g=s*n.width):r==="start"?g=n.width:r==="end"?f=e.width:r!=="inner"&&(f=e.width/2,g=n.width/2),this.paddingLeft=Math.max((f-u+o)*this.width/(this.width-u),0),this.paddingRight=Math.max((g-d+o)*this.width/(this.width-d),0)}else{let u=n.height/2,d=e.height/2;r==="start"?(u=0,d=e.height):r==="end"&&(u=n.height,d=0),this.paddingTop=u+o,this.paddingBottom=d+o}}_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(){$t(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,i;for(n=0,i=e.length;n({width:o[A]||0,height:a[A]||0});return{first:T(0),last:T(n-1),widest:T(C),highest:T(k),widths:o,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return uY(this._alignToPixels?No(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&ea*s?a/i:l/s:l*s0}_computeGridLineItems(e){const n=this.axis,i=this.chart,s=this.options,{grid:r,position:o,border:a}=s,l=r.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=pc(r),g=[],p=a.setContext(this.getContext()),m=p.display?p.width:0,v=m/2,y=function(R){return No(i,R,m)};let x,E,w,b,C,k,T,A,I,V,Y,ne;if(o==="top")x=y(this.bottom),k=this.bottom-f,A=x-v,V=y(e.top)+v,ne=e.bottom;else if(o==="bottom")x=y(this.top),V=e.top,ne=y(e.bottom)-v,k=x+v,A=this.top+f;else if(o==="left")x=y(this.right),C=this.right-f,T=x-v,I=y(e.left)+v,Y=e.right;else if(o==="right")x=y(this.left),I=e.left,Y=y(e.right)-v,C=x+v,T=this.left+f;else if(n==="x"){if(o==="center")x=y((e.top+e.bottom)/2+.5);else if(ut(o)){const R=Object.keys(o)[0],z=o[R];x=y(this.chart.scales[R].getPixelForValue(z))}V=e.top,ne=e.bottom,k=x+v,A=k+f}else if(n==="y"){if(o==="center")x=y((e.left+e.right)/2);else if(ut(o)){const R=Object.keys(o)[0],z=o[R];x=y(this.chart.scales[R].getPixelForValue(z))}C=x-v,T=C-f,I=e.left,Y=e.right}const N=it(s.ticks.maxTicksLimit,d),B=Math.max(1,Math.ceil(d/N));for(E=0;E0&&(ue-=D/2);break}ce={left:ue,top:ee,width:D+ie.width,height:te+ie.height,color:B.backdropColor}}v.push({label:w,font:A,textOffset:Y,options:{rotation:m,color:z,strokeColor:X,strokeWidth:J,textAlign:H,textBaseline:ne,translation:[b,C],backdrop:ce}})}return v}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-ls(this.labelRotation))return e==="top"?"left":"right";let s="center";return n.align==="start"?s="left":n.align==="end"?s="right":n.align==="inner"&&(s="inner"),s}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:i,mirror:s,padding:r}}=this.options,o=this._getLabelSizes(),a=e+r,l=o.widest.width;let c,u;return n==="left"?s?(u=this.right+r,i==="near"?c="left":i==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,i==="near"?c="right":i==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?s?(u=this.left+r,i==="near"?c="right":i==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,i==="near"?c="left":i==="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 e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:i,top:s,width:r,height:o}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(i,s,r,o),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const s=this.ticks.findIndex(r=>r.value===e);return s>=0?n.setContext(this.getContext(s)).lineWidth:0}drawGrid(e){const n=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let r,o;const a=(l,c,u)=>{!u.width||!u.color||(i.save(),i.lineWidth=u.width,i.strokeStyle=u.color,i.setLineDash(u.borderDash||[]),i.lineDashOffset=u.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(n.display)for(r=0,o=s.length;r{this.draw(r)}}]:[{z:i,draw:r=>{this.drawBackground(),this.drawGrid(r),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:n,draw:r=>{this.drawLabels(r)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",s=[];let r,o;for(r=0,o=n.length;r{const i=n.split("."),s=i.pop(),r=[t].concat(i).join("."),o=e[n].split("."),a=o.pop(),l=o.join(".");sn.route(r,s,l,a)})}function Rj(t){return"id"in t&&"defaults"in t}class $j{constructor(){this.controllers=new Od(xo,"datasets",!0),this.elements=new Od(xr,"elements"),this.plugins=new Od(Object,"plugins"),this.scales=new Od(ba,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,i){[...n].forEach(s=>{const r=i||this._getRegistryForType(s);i||r.isForType(s)||r===this.plugins&&s.id?this._exec(e,r,s):Tt(s,o=>{const a=i||this._getRegistryForType(o);this._exec(e,a,o)})})}_exec(e,n,i){const s=q_(e);$t(i["before"+s],[],i),n[e](i),$t(i["after"+s],[],i)}_getRegistryForType(e){for(let n=0;nr.filter(a=>!o.some(l=>a.plugin.id===l.plugin.id));this._notify(s(n,i),e,"stop"),this._notify(s(i,n),e,"start")}}function Oj(t){const e={},n=[],i=Object.keys(xs.plugins.items);for(let r=0;r1&&m1(t[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function _1(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function Yj(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(i=>i.xAxisID===t||i.yAxisID===t);if(n.length)return _1(t,"x",n[0])||_1(t,"y",n[0])}return{}}function Hj(t,e){const n=fa[t.type]||{scales:{}},i=e.scales||{},s=hm(t.type,e),r=Object.create(null);return Object.keys(i).forEach(o=>{const a=i[o];if(!ut(a))return console.error(`Invalid scale configuration for scale: ${o}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=fm(o,a,Yj(o,t),sn.scales[a.type]),c=zj(l,s),u=n.scales||{};r[o]=Kc(Object.create(null),[{axis:l},a,u[l],u[c]])}),t.data.datasets.forEach(o=>{const a=o.type||t.type,l=o.indexAxis||hm(a,e),u=(fa[a]||{}).scales||{};Object.keys(u).forEach(d=>{const f=Vj(d,l),g=o[f+"AxisID"]||f;r[g]=r[g]||Object.create(null),Kc(r[g],[{axis:f},i[g],u[d]])})}),Object.keys(r).forEach(o=>{const a=r[o];Kc(a,[sn.scales[a.type],sn.scale])}),r}function fk(t){const e=t.options||(t.options={});e.plugins=it(e.plugins,{}),e.scales=Hj(t,e)}function gk(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function jj(t){return t=t||{},t.data=gk(t.data),fk(t),t}const v1=new Map,pk=new Set;function Nd(t,e){let n=v1.get(t);return n||(n=e(),v1.set(t,n),pk.add(n)),n}const mc=(t,e,n)=>{const i=lo(e,n);i!==void 0&&t.add(i)};let Kj=class{constructor(e){this._config=jj(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=gk(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),fk(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Nd(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return Nd(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return Nd(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,i=this.type;return Nd(`${i}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const i=this._scopeCache;let s=i.get(e);return(!s||n)&&(s=new Map,i.set(e,s)),s}getOptionScopes(e,n,i){const{options:s,type:r}=this,o=this._cachedScopes(e,i),a=o.get(n);if(a)return a;const l=new Set;n.forEach(u=>{e&&(l.add(e),u.forEach(d=>mc(l,e,d))),u.forEach(d=>mc(l,s,d)),u.forEach(d=>mc(l,fa[r]||{},d)),u.forEach(d=>mc(l,sn,d)),u.forEach(d=>mc(l,um,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),pk.has(n)&&o.set(n,c),c}chartOptionScopes(){const{options:e,type:n}=this;return[e,fa[n]||{},sn.datasets[n]||{},{type:n},sn,um]}resolveNamedOptions(e,n,i,s=[""]){const r={$shared:!0},{resolver:o,subPrefixes:a}=y1(this._resolverCache,e,s);let l=o;if(Gj(o,n)){r.$shared=!1,i=co(i)?i():i;const c=this.createResolver(e,i,a);l=Dl(o,i,c)}for(const c of n)r[c]=l[c];return r}createResolver(e,n,i=[""],s){const{resolver:r}=y1(this._resolverCache,e,i);return ut(n)?Dl(r,n,void 0,s):r}};function y1(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const s=n.join();let r=i.get(s);return r||(r={resolver:nv(e,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},i.set(s,r)),r}const Uj=t=>ut(t)&&Object.getOwnPropertyNames(t).some(e=>co(t[e]));function Gj(t,e){const{isScriptable:n,isIndexable:i}=jS(t);for(const s of e){const r=n(s),o=i(s),a=(o||r)&&t[s];if(r&&(co(a)||Uj(a))||o&&Yt(a))return!0}return!1}var Xj="4.4.4";const qj=["top","bottom","left","right","chartArea"];function b1(t,e){return t==="top"||t==="bottom"||qj.indexOf(t)===-1&&e==="x"}function w1(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function x1(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),$t(n&&n.onComplete,[t],e)}function Zj(t){const e=t.chart,n=e.options.animation;$t(n&&n.onProgress,[t],e)}function mk(t){return rv()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const hh={},E1=t=>{const e=mk(t);return Object.values(hh).filter(n=>n.canvas===e).pop()};function Jj(t,e,n){const i=Object.keys(t);for(const s of i){const r=+s;if(r>=e){const o=t[s];delete t[s],(n>0||r>e)&&(t[r+n]=o)}}}function Qj(t,e,n,i){return!n||t.type==="mouseout"?null:i?e:t}function Fd(t,e,n){return t.options.clip?t[n]:e[n]}function eK(t,e){const{xScale:n,yScale:i}=t;return n&&i?{left:Fd(n,e,"left"),right:Fd(n,e,"right"),top:Fd(i,e,"top"),bottom:Fd(i,e,"bottom")}:e}let Df=class{static defaults=sn;static instances=hh;static overrides=fa;static registry=xs;static version=Xj;static getChart=E1;static register(...e){xs.add(...e),C1()}static unregister(...e){xs.remove(...e),C1()}constructor(e,n){const i=this.config=new Kj(n),s=mk(e),r=E1(s);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const o=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||_j(s)),this.platform.updateConfig(i);const a=this.platform.acquireContext(s,o.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;if(this.id=JW(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Lj,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=gY(d=>this.update(d),o.resizeDelay||0),this._dataChanges=[],hh[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Zs.listen(this,"complete",x1),Zs.listen(this,"progress",Zj),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:i,height:s,_aspectRatio:r}=this;return gt(e)?n&&r?r:s?i/s:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return xs}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():j0(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return W0(this.canvas,this.ctx),this}stop(){return Zs.stop(this),this}resize(e,n){Zs.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const i=this.options,s=this.canvas,r=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(s,e,n,r),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,j0(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),$t(i.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Tt(n,(i,s)=>{i.id=s})}buildOrUpdateScales(){const e=this.options,n=e.scales,i=this.scales,s=Object.keys(i).reduce((o,a)=>(o[a]=!1,o),{});let r=[];n&&(r=r.concat(Object.keys(n).map(o=>{const a=n[o],l=fm(o,a),c=l==="r",u=l==="x";return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),Tt(r,o=>{const a=o.options,l=a.id,c=fm(l,a),u=it(a.type,o.dtype);(a.position===void 0||b1(a.position,c)!==b1(o.dposition))&&(a.position=o.dposition),s[l]=!0;let d=null;if(l in i&&i[l].type===u)d=i[l];else{const f=xs.getScale(u);d=new f({id:l,type:u,ctx:this.ctx,chart:this}),i[d.id]=d}d.init(a,e)}),Tt(s,(o,a)=>{o||delete i[a]}),Tt(i,o=>{zi.configure(this,o,o.options),zi.addBox(this,o)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,i=e.length;if(e.sort((s,r)=>s.index-r.index),i>n){for(let s=n;sn.length&&delete this._stacks,e.forEach((i,s)=>{n.filter(r=>r===i._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let i,s;for(this._removeUnreferencedMetasets(),i=0,s=n.length;i{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const i=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let c=0,u=this.data.datasets.length;c{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(w1("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Tt(this.scales,e=>{zi.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),i=new Set(e.events);(!R0(n,i)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:r}of n){const o=i==="_removeElements"?-r:r;Jj(e,s,o)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,i=r=>new Set(e.filter(o=>o[0]===r).map((o,a)=>a+","+o.splice(1).join(","))),s=i(0);for(let r=1;rr.split(",")).map(r=>({method:r[1],start:+r[2],count:+r[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;zi.update(this,this.width,this.height,e);const n=this.chartArea,i=n.width<=0||n.height<=0;this._layers=[],Tt(this.boxes,s=>{i&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,r)=>{s._idx=r}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,i=this.data.datasets.length;n=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,i=e._clip,s=!i.disabled,r=eK(e,this.chartArea),o={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(s&&Pf(n,{left:i.left===!1?0:r.left-i.left,right:i.right===!1?this.width:r.right+i.right,top:i.top===!1?0:r.top-i.top,bottom:i.bottom===!1?this.height:r.bottom+i.bottom}),e.controller.draw(),s&&Mf(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(e){return ur(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,i,s){const r=qH.modes[n];return typeof r=="function"?r(this,e,i,s):[]}getDatasetMeta(e){const n=this.data.datasets[e],i=this._metasets;let s=i.filter(r=>r&&r._dataset===n).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=wo(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const i=this.getDatasetMeta(e);return typeof i.hidden=="boolean"?!i.hidden:!n.hidden}setDatasetVisibility(e,n){const i=this.getDatasetMeta(e);i.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,i){const s=i?"show":"hide",r=this.getDatasetMeta(e),o=r.controller._resolveAnimations(void 0,s);fu(n)?(r.data[n].hidden=!i,this.update()):(this.setDatasetVisibility(e,i),o.update(r,{visible:i}),this.update(a=>a.datasetIndex===e?s:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),Zs.remove(this),e=0,n=this.data.datasets.length;e{n.addEventListener(this,r,o),e[r]=o},s=(r,o,a)=>{r.offsetX=o,r.offsetY=a,this._eventHandler(r)};Tt(this.options.events,r=>i(r,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,i=(l,c)=>{n.addEventListener(this,l,c),e[l]=c},s=(l,c)=>{e[l]&&(n.removeEventListener(this,l,c),delete e[l])},r=(l,c)=>{this.canvas&&this.resize(l,c)};let o;const a=()=>{s("attach",a),this.attached=!0,this.resize(),i("resize",r),i("detach",o)};o=()=>{this.attached=!1,s("resize",r),this._stop(),this._resize(0,0),i("attach",a)},n.isAttached(this.canvas)?a():o()}unbindEvents(){Tt(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},Tt(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,i){const s=i?"set":"remove";let r,o,a,l;for(n==="dataset"&&(r=this.getDatasetMeta(e[0].datasetIndex),r.controller["_"+s+"DatasetHoverStyle"]()),a=0,l=e.length;a{const a=this.getDatasetMeta(r);if(!a)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:a.data[o],index:o}});!Ah(i,n)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,n))}notifyPlugins(e,n,i){return this._plugins.notify(this,e,n,i)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,i){const s=this.options.hover,r=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),o=r(n,e),a=i?e:r(e,n);o.length&&this.updateHoverStyle(o,s.mode,!1),a.length&&s.mode&&this.updateHoverStyle(a,s.mode,!0)}_eventHandler(e,n){const i={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},s=o=>(o.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",i,s)===!1)return;const r=this._handleEvent(e,n,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(r||i.changed)&&this.render(),this}_handleEvent(e,n,i){const{_active:s=[],options:r}=this,o=n,a=this._getActiveElements(e,s,i,o),l=sY(e),c=Qj(e,this._lastEvent,i,l);i&&(this._lastEvent=null,$t(r.onHover,[e,a,this],this),l&&$t(r.onClick,[e,a,this],this));const u=!Ah(a,s);return(u||n)&&(this._active=a,this._updateHoverStyles(a,s,n)),this._lastEvent=c,u}_getActiveElements(e,n,i,s){if(e.type==="mouseout")return[];if(!i)return n;const r=this.options.hover;return this.getElementsAtEventForMode(e,r.mode,r,s)}};function C1(){return Tt(Df.instances,t=>t._plugins.invalidate())}function tK(t,e,n){const{startAngle:i,pixelMargin:s,x:r,y:o,outerRadius:a,innerRadius:l}=e;let c=s/a;t.beginPath(),t.arc(r,o,a,i-c,n+c),l>s?(c=s/l,t.arc(r,o,l,n+c,i-c,!0)):t.arc(r,o,s,n+dn,i-dn),t.closePath(),t.clip()}function nK(t){return tv(t,["outerStart","outerEnd","innerStart","innerEnd"])}function iK(t,e,n,i){const s=nK(t.options.borderRadius),r=(n-e)/2,o=Math.min(r,i*e/2),a=l=>{const c=(n-Math.min(r,l))*i/2;return Dn(l,0,Math.min(r,c))};return{outerStart:a(s.outerStart),outerEnd:a(s.outerEnd),innerStart:Dn(s.innerStart,0,o),innerEnd:Dn(s.innerEnd,0,o)}}function Na(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function $h(t,e,n,i,s,r){const{x:o,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=e,d=Math.max(e.outerRadius+i+n-c,0),f=u>0?u+i+n+c:0;let g=0;const p=s-l;if(i){const B=u>0?u-i:0,R=d>0?d-i:0,z=(B+R)/2,X=z!==0?p*z/(z+i):p;g=(p-X)/2}const m=Math.max(.001,p*d-n/Bt)/d,v=(p-m)/2,y=l+v+g,x=s-v-g,{outerStart:E,outerEnd:w,innerStart:b,innerEnd:C}=iK(e,f,d,x-y),k=d-E,T=d-w,A=y+E/k,I=x-w/T,V=f+b,Y=f+C,ne=y+b/V,N=x-C/Y;if(t.beginPath(),r){const B=(A+I)/2;if(t.arc(o,a,d,A,B),t.arc(o,a,d,B,I),w>0){const J=Na(T,I,o,a);t.arc(J.x,J.y,w,I,x+dn)}const R=Na(Y,x,o,a);if(t.lineTo(R.x,R.y),C>0){const J=Na(Y,N,o,a);t.arc(J.x,J.y,C,x+dn,N+Math.PI)}const z=(x-C/f+(y+b/f))/2;if(t.arc(o,a,f,x-C/f,z,!0),t.arc(o,a,f,z,y+b/f,!0),b>0){const J=Na(V,ne,o,a);t.arc(J.x,J.y,b,ne+Math.PI,y-dn)}const X=Na(k,y,o,a);if(t.lineTo(X.x,X.y),E>0){const J=Na(k,A,o,a);t.arc(J.x,J.y,E,y-dn,A)}}else{t.moveTo(o,a);const B=Math.cos(A)*d+o,R=Math.sin(A)*d+a;t.lineTo(B,R);const z=Math.cos(I)*d+o,X=Math.sin(I)*d+a;t.lineTo(z,X)}t.closePath()}function sK(t,e,n,i,s){const{fullCircles:r,startAngle:o,circumference:a}=e;let l=e.endAngle;if(r){$h(t,e,n,i,l,s);for(let c=0;ce!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,n,i){const s=this.getProps(["x","y"],i),{angle:r,distance:o}=LS(s,{x:e,y:n}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:u,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),f=(this.options.spacing+this.options.borderWidth)/2,g=it(d,l-a),p=gu(r,a,l)&&a!==l,m=g>=Ft||p,v=lr(o,c+f,u+f);return m&&v}getCenterPoint(e){const{x:n,y:i,startAngle:s,endAngle:r,innerRadius:o,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:l,spacing:c}=this.options,u=(s+r)/2,d=(o+a+c+l)/2;return{x:n+Math.cos(u)*d,y:i+Math.sin(u)*d}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:n,circumference:i}=this,s=(n.offset||0)/4,r=(n.spacing||0)/2,o=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=i>Ft?Math.floor(i/Ft):0,i===0||this.innerRadius<0||this.outerRadius<0)return;e.save();const a=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(a)*s,Math.sin(a)*s);const l=1-Math.sin(Math.min(Bt,i||0)),c=s*l;e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,sK(e,this,c,r,o),rK(e,this,c,r,o),e.restore()}}function _k(t,e,n=e){t.lineCap=it(n.borderCapStyle,e.borderCapStyle),t.setLineDash(it(n.borderDash,e.borderDash)),t.lineDashOffset=it(n.borderDashOffset,e.borderDashOffset),t.lineJoin=it(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=it(n.borderWidth,e.borderWidth),t.strokeStyle=it(n.borderColor,e.borderColor)}function aK(t,e,n){t.lineTo(n.x,n.y)}function lK(t){return t.stepped?kY:t.tension||t.cubicInterpolationMode==="monotone"?TY:aK}function vk(t,e,n={}){const i=t.length,{start:s=0,end:r=i-1}=n,{start:o,end:a}=e,l=Math.max(s,o),c=Math.min(r,a),u=sa&&r>a;return{count:i,start:l,loop:e.loop,ilen:c(o+(c?a-w:w))%r,E=()=>{m!==v&&(t.lineTo(u,v),t.lineTo(u,m),t.lineTo(u,y))};for(l&&(g=s[x(0)],t.moveTo(g.x,g.y)),f=0;f<=a;++f){if(g=s[x(f)],g.skip)continue;const w=g.x,b=g.y,C=w|0;C===p?(bv&&(v=b),u=(d*u+w)/++d):(E(),t.lineTo(w,b),p=C,d=0,m=v=b),y=b}E()}function gm(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!n?uK:cK}function dK(t){return t.stepped?rH:t.tension||t.cubicInterpolationMode==="monotone"?oH:Ko}function hK(t,e,n,i){let s=e._path;s||(s=e._path=new Path2D,e.path(s,n,i)&&s.closePath()),_k(t,e.options),t.stroke(s)}function fK(t,e,n,i){const{segments:s,options:r}=e,o=gm(e);for(const a of s)_k(t,r,a.style),t.beginPath(),o(t,e,a,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}const gK=typeof Path2D=="function";function pK(t,e,n,i){gK&&!e.options.segment?hK(t,e,n,i):fK(t,e,n,i)}class Rf extends xr{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,n){const i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){const s=i.spanGaps?this._loop:this._fullLoop;ZY(this._points,i,e,s,n),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=hH(this,this.options.segment))}first(){const e=this.segments,n=this.points;return e.length&&n[e[0].start]}last(){const e=this.segments,n=this.points,i=e.length;return i&&n[e[i-1].end]}interpolate(e,n){const i=this.options,s=e[n],r=this.points,o=tk(this,{property:n,start:s,end:s});if(!o.length)return;const a=[],l=dK(i);let c,u;for(c=0,u=o.length;c=n)return t.slice(e,e+n);const o=[],a=(n-2)/(r-2);let l=0;const c=e+n-1;let u=e,d,f,g,p,m;for(o[l++]=t[u],d=0;dg&&(g=p,f=t[x],m=x);o[l++]=f,u=m}return o[l++]=t[c],o}function CK(t,e,n,i){let s=0,r=0,o,a,l,c,u,d,f,g,p,m;const v=[],y=e+n-1,x=t[e].x,w=t[y].x-x;for(o=e;om&&(m=c,f=o),s=(r*s+a.x)/++r;else{const C=o-1;if(!gt(d)&&!gt(f)){const k=Math.min(d,f),T=Math.max(d,f);k!==g&&k!==C&&v.push({...t[k],x:s}),T!==g&&T!==C&&v.push({...t[T],x:s})}o>0&&C!==g&&v.push(t[C]),v.push(a),u=b,r=0,p=m=c,d=f=g=o}}return v}function bk(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function k1(t){t.data.datasets.forEach(e=>{bk(e)})}function SK(t,e){const n=e.length;let i=0,s;const{iScale:r}=t,{min:o,max:a,minDefined:l,maxDefined:c}=r.getUserBounds();return l&&(i=Dn(cr(e,r.axis,o).lo,0,n-1)),c?s=Dn(cr(e,r.axis,a).hi+1,i,n)-i:s=n-i,{start:i,count:s}}var kK={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,n)=>{if(!n.enabled){k1(t);return}const i=t.width;t.data.datasets.forEach((s,r)=>{const{_data:o,indexAxis:a}=s,l=t.getDatasetMeta(r),c=o||s.data;if(Cc([a,t.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const u=t.scales[l.xAxisID];if(u.type!=="linear"&&u.type!=="time"||t.options.parsing)return;let{start:d,count:f}=SK(l,c);const g=n.threshold||4*i;if(f<=g){bk(s);return}gt(o)&&(s._data=c,delete s.data,Object.defineProperty(s,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(m){this._data=m}}));let p;switch(n.algorithm){case"lttb":p=EK(c,d,f,i,n);break;case"min-max":p=CK(c,d,f,i);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}s._decimated=p})},destroy(t){k1(t)}};function TK(t,e,n){const i=t.segments,s=t.points,r=e.points,o=[];for(const a of i){let{start:l,end:c}=a;c=lv(l,c,s);const u=pm(n,s[l],s[c],a.loop);if(!e.segments){o.push({source:a,target:u,start:s[l],end:s[c]});continue}const d=tk(e,u);for(const f of d){const g=pm(n,r[f.start],r[f.end],f.loop),p=ek(a,s,g);for(const m of p)o.push({source:m,target:f,start:{[n]:T1(u,g,"start",Math.max)},end:{[n]:T1(u,g,"end",Math.min)}})}}return o}function pm(t,e,n,i){if(i)return;let s=e[t],r=n[t];return t==="angle"&&(s=ki(s),r=ki(r)),{property:t,start:s,end:r}}function AK(t,e){const{x:n=null,y:i=null}=t||{},s=e.points,r=[];return e.segments.forEach(({start:o,end:a})=>{a=lv(o,a,s);const l=s[o],c=s[a];i!==null?(r.push({x:l.x,y:i}),r.push({x:c.x,y:i})):n!==null&&(r.push({x:n,y:l.y}),r.push({x:n,y:c.y}))}),r}function lv(t,e,n){for(;e>t;e--){const i=n[e];if(!isNaN(i.x)&&!isNaN(i.y))break}return e}function T1(t,e,n,i){return t&&e?i(t[n],e[n]):t?t[n]:e?e[n]:0}function wk(t,e){let n=[],i=!1;return Yt(t)?(i=!0,n=t):n=AK(t,e),n.length?new Rf({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function A1(t){return t&&t.fill!==!1}function PK(t,e,n){let s=t[e].fill;const r=[e];let o;if(!n)return s;for(;s!==!1&&r.indexOf(s)===-1;){if(!nn(s))return s;if(o=t[s],!o)return!1;if(o.visible)return s;r.push(s),s=o.fill}return!1}function MK(t,e,n){const i=$K(t);if(ut(i))return isNaN(i.value)?!1:i;let s=parseFloat(i);return nn(s)&&Math.floor(s)===s?IK(i[0],e,s,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function IK(t,e,n,i){return(t==="-"||t==="+")&&(n=e+n),n===e||n<0||n>=i?!1:n}function DK(t,e){let n=null;return t==="start"?n=e.bottom:t==="end"?n=e.top:ut(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}function RK(t,e,n){let i;return t==="start"?i=n:t==="end"?i=e.options.reverse?e.min:e.max:ut(t)?i=t.value:i=e.getBaseValue(),i}function $K(t){const e=t.options,n=e.fill;let i=it(n&&n.target,n);return i===void 0&&(i=!!e.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function LK(t){const{scale:e,index:n,line:i}=t,s=[],r=i.segments,o=i.points,a=OK(e,n);a.push(wk({x:null,y:e.bottom},i));for(let l=0;l=0;--o){const a=s[o].$filler;a&&(a.line.updateControlPoints(r,a.axis),i&&a.fill&&rp(t.ctx,a,r))}},beforeDatasetsDraw(t,e,n){if(n.drawTime!=="beforeDatasetsDraw")return;const i=t.getSortedVisibleDatasetMetas();for(let s=i.length-1;s>=0;--s){const r=i[s].$filler;A1(r)&&rp(t.ctx,r,t.chartArea)}},beforeDatasetDraw(t,e,n){const i=e.meta.$filler;!A1(i)||n.drawTime!=="beforeDatasetDraw"||rp(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const D1=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}},UK=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class R1 extends xr{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,i){this.maxWidth=e,this.maxHeight=n,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let n=$t(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(i=>e.filter(i,this.chart.data))),e.sort&&(n=n.sort((i,s)=>e.sort(i,s,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const i=e.labels,s=En(i.font),r=s.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=D1(i,r);let c,u;n.font=s.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(o,r,a,l)+10):(u=this.maxHeight,c=this._fitCols(o,s,a,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(u,e.maxHeight||this.maxHeight)}_fitRows(e,n,i,s){const{ctx:r,maxWidth:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=s+a;let d=e;r.textAlign="left",r.textBaseline="middle";let f=-1,g=-u;return this.legendItems.forEach((p,m)=>{const v=i+n/2+r.measureText(p.text).width;(m===0||c[c.length-1]+v+2*a>o)&&(d+=u,c[c.length-(m>0?0:1)]=0,g+=u,f++),l[m]={left:0,top:g,row:f,width:v,height:s},c[c.length-1]+=v+a}),d}_fitCols(e,n,i,s){const{ctx:r,maxHeight:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=o-e;let d=a,f=0,g=0,p=0,m=0;return this.legendItems.forEach((v,y)=>{const{itemWidth:x,itemHeight:E}=GK(i,n,r,v,s);y>0&&g+E+2*a>u&&(d+=f+a,c.push({width:f,height:g}),p+=f+a,m++,f=g=0),l[y]={left:p,top:g,col:m,width:x,height:E},f=Math.max(f,x),g+=E+a}),d+=f,c.push({width:f,height:g}),d}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:i,labels:{padding:s},rtl:r}}=this,o=ul(r,this.left,this.width);if(this.isHorizontal()){let a=0,l=Yn(i,this.left+s,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=Yn(i,this.left+s,this.right-this.lineWidths[a])),c.top+=this.top+e+s,c.left=o.leftForLtr(o.x(l),c.width),l+=c.width+s}else{let a=0,l=Yn(i,this.top+e+s,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=Yn(i,this.top+e+s,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+s,c.left=o.leftForLtr(o.x(c.left),c.width),l+=c.height+s}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;Pf(e,this),this._draw(),Mf(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:i,ctx:s}=this,{align:r,labels:o}=e,a=sn.color,l=ul(e.rtl,this.left,this.width),c=En(o.font),{padding:u}=o,d=c.size,f=d/2;let g;this.drawTitle(),s.textAlign=l.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=c.string;const{boxWidth:p,boxHeight:m,itemHeight:v}=D1(o,d),y=function(C,k,T){if(isNaN(p)||p<=0||isNaN(m)||m<0)return;s.save();const A=it(T.lineWidth,1);if(s.fillStyle=it(T.fillStyle,a),s.lineCap=it(T.lineCap,"butt"),s.lineDashOffset=it(T.lineDashOffset,0),s.lineJoin=it(T.lineJoin,"miter"),s.lineWidth=A,s.strokeStyle=it(T.strokeStyle,a),s.setLineDash(it(T.lineDash,[])),o.usePointStyle){const I={radius:m*Math.SQRT2/2,pointStyle:T.pointStyle,rotation:T.rotation,borderWidth:A},V=l.xPlus(C,p/2),Y=k+f;YS(s,I,V,Y,o.pointStyleWidth&&p)}else{const I=k+Math.max((d-m)/2,0),V=l.leftForLtr(C,p),Y=ra(T.borderRadius);s.beginPath(),Object.values(Y).some(ne=>ne!==0)?pu(s,{x:V,y:I,w:p,h:m,radius:Y}):s.rect(V,I,p,m),s.fill(),A!==0&&s.stroke()}s.restore()},x=function(C,k,T){ga(s,T.text,C,k+v/2,c,{strikethrough:T.hidden,textAlign:l.textAlign(T.textAlign)})},E=this.isHorizontal(),w=this._computeTitleHeight();E?g={x:Yn(r,this.left+u,this.right-i[0]),y:this.top+u+w,line:0}:g={x:this.left+u,y:Yn(r,this.top+w+u,this.bottom-n[0].height),line:0},ZS(this.ctx,e.textDirection);const b=v+u;this.legendItems.forEach((C,k)=>{s.strokeStyle=C.fontColor,s.fillStyle=C.fontColor;const T=s.measureText(C.text).width,A=l.textAlign(C.textAlign||(C.textAlign=o.textAlign)),I=p+f+T;let V=g.x,Y=g.y;l.setWidth(this.width),E?k>0&&V+I+u>this.right&&(Y=g.y+=b,g.line++,V=g.x=Yn(r,this.left+u,this.right-i[g.line])):k>0&&Y+b>this.bottom&&(V=g.x=V+n[g.line].width+u,g.line++,Y=g.y=Yn(r,this.top+w+u,this.bottom-n[g.line].height));const ne=l.x(V);if(y(ne,Y,C),V=pY(A,V+p+f,E?V+I:this.right,e.rtl),x(l.x(V),Y,C),E)g.x+=I+u;else if(typeof C.text!="string"){const N=c.lineHeight;g.y+=Ek(C,N)+u}else g.y+=b}),JS(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,i=En(n.font),s=Zn(n.padding);if(!n.display)return;const r=ul(e.rtl,this.left,this.width),o=this.ctx,a=n.position,l=i.size/2,c=s.top+l;let u,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),u=this.top+c,d=Yn(e.align,d,this.right-f);else{const p=this.columnSizes.reduce((m,v)=>Math.max(m,v.height),0);u=c+Yn(e.align,this.top,this.bottom-p-e.labels.padding-this._computeTitleHeight())}const g=Yn(a,d,d+f);o.textAlign=r.textAlign(Q_(a)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=i.string,ga(o,n.text,g,u,i)}_computeTitleHeight(){const e=this.options.title,n=En(e.font),i=Zn(e.padding);return e.display?n.lineHeight+i.height:0}_getLegendItemAt(e,n){let i,s,r;if(lr(e,this.left,this.right)&&lr(n,this.top,this.bottom)){for(r=this.legendHitBoxes,i=0;ir.length>o.length?r:o)),e+n.size/2+i.measureText(s).width}function qK(t,e,n){let i=t;return typeof e.text!="string"&&(i=Ek(e,n)),i}function Ek(t,e){const n=t.text?t.text.length:0;return e*n}function ZK(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var JK={id:"legend",_element:R1,start(t,e,n){const i=t.legend=new R1({ctx:t.ctx,options:n,chart:t});zi.configure(t,i,n),zi.addBox(t,i)},stop(t){zi.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;zi.configure(t,i,n),i.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const i=e.datasetIndex,s=n.chart;s.isDatasetVisible(i)?(s.hide(i),e.hidden=!0):(s.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:s,color:r,useBorderRadius:o,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=Zn(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:r,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:i||c.pointStyle,rotation:c.rotation,textAlign:s||c.textAlign,borderRadius:o&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class Ck extends xr{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n){const i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=n;const s=Yt(i.text)?i.text.length:1;this._padding=Zn(i.padding);const r=s*En(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:n,left:i,bottom:s,right:r,options:o}=this,a=o.align;let l=0,c,u,d;return this.isHorizontal()?(u=Yn(a,i,r),d=n+e,c=r-i):(o.position==="left"?(u=i+e,d=Yn(a,s,n),l=Bt*-.5):(u=r-e,d=Yn(a,n,s),l=Bt*.5),c=s-n),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const i=En(n.font),r=i.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(r);ga(e,n.text,0,0,i,{color:n.color,maxWidth:l,rotation:c,textAlign:Q_(n.align),textBaseline:"middle",translation:[o,a]})}}function QK(t,e){const n=new Ck({ctx:t.ctx,options:e,chart:t});zi.configure(t,n,e),zi.addBox(t,n),t.titleBlock=n}var eU={id:"title",_element:Ck,start(t,e,n){QK(t,n)},stop(t){const e=t.titleBlock;zi.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const i=t.titleBlock;zi.configure(t,i,n),i.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 kc={average(t){if(!t.length)return!1;let e,n,i=new Set,s=0,r=0;for(e=0,n=t.length;ea+l)/i.size,y:s/r}},nearest(t,e){if(!t.length)return!1;let n=e.x,i=e.y,s=Number.POSITIVE_INFINITY,r,o,a;for(r=0,o=t.length;r-1?t.split(` -`):t}function XK(t,e){const{element:n,datasetIndex:i,index:s}=e,r=t.getDatasetMeta(i).controller,{label:o,value:a}=r.getLabelAndValue(s);return{chart:t,label:o,parsed:r.getParsed(s),raw:t.data.datasets[i].data[s],formattedValue:a,dataset:r.getDataset(),dataIndex:s,datasetIndex:i,element:n}}function $1(t,e){const n=t.chart.ctx,{body:i,footer:s,title:r}=t,{boxWidth:o,boxHeight:a}=e,l=En(e.bodyFont),c=En(e.titleFont),u=En(e.footerFont),d=r.length,h=s.length,g=i.length,p=Zn(e.padding);let m=p.height,v=0,y=i.reduce((w,b)=>w+b.before.length+b.lines.length+b.after.length,0);if(y+=t.beforeBody.length+t.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),y){const w=e.displayColors?Math.max(a,l.lineHeight):l.lineHeight;m+=g*w+(y-g)*l.lineHeight+(y-1)*e.bodySpacing}h&&(m+=e.footerMarginTop+h*u.lineHeight+(h-1)*e.footerSpacing);let x=0;const E=function(w){v=Math.max(v,n.measureText(w).width+x)};return n.save(),n.font=c.string,Tt(t.title,E),n.font=l.string,Tt(t.beforeBody.concat(t.afterBody),E),x=e.displayColors?o+2+e.boxPadding:0,Tt(i,w=>{Tt(w.before,E),Tt(w.lines,E),Tt(w.after,E)}),x=0,n.font=u.string,Tt(t.footer,E),n.restore(),v+=p.width,{width:v,height:m}}function qK(t,e){const{y:n,height:i}=e;return nt.height-i/2?"bottom":"center"}function ZK(t,e,n,i){const{x:s,width:r}=i,o=n.caretSize+n.caretPadding;if(t==="left"&&s+r+o>e.width||t==="right"&&s-r-o<0)return!0}function JK(t,e,n,i){const{x:s,width:r}=n,{width:o,chartArea:{left:a,right:l}}=t;let c="center";return i==="center"?c=s<=(a+l)/2?"left":"right":s<=r/2?c="left":s>=o-r/2&&(c="right"),ZK(c,t,e,n)&&(c="center"),c}function L1(t,e,n){const i=n.yAlign||e.yAlign||qK(t,n);return{xAlign:n.xAlign||e.xAlign||JK(t,e,n,i),yAlign:i}}function QK(t,e){let{x:n,width:i}=t;return e==="right"?n-=i:e==="center"&&(n-=i/2),n}function eU(t,e,n){let{y:i,height:s}=t;return e==="top"?i+=n:e==="bottom"?i-=s+n:i-=s/2,i}function O1(t,e,n,i){const{caretSize:s,caretPadding:r,cornerRadius:o}=t,{xAlign:a,yAlign:l}=n,c=s+r,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:g}=ra(o);let p=QK(e,a);const m=eU(e,l,c);return l==="center"?a==="left"?p+=c:a==="right"&&(p-=c):a==="left"?p-=Math.max(u,h)+s:a==="right"&&(p+=Math.max(d,g)+s),{x:Dn(p,0,i.width-e.width),y:Dn(m,0,i.height-e.height)}}function Bd(t,e,n){const i=Zn(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-i.right:t.x+i.left}function N1(t){return bs([],Js(t))}function tU(t,e,n){return wo(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function F1(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const Sk={beforeTitle:Us,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex"u"?Sk[e].call(n,i):s}class B1 extends xr{static positioners=kc;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,i=this.options.setContext(this.getContext()),s=i.enabled&&n.options.animation&&i.animations,r=new nk(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=tU(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:i}=n,s=hi(i,"beforeTitle",this,e),r=hi(i,"title",this,e),o=hi(i,"afterTitle",this,e);let a=[];return a=bs(a,Js(s)),a=bs(a,Js(r)),a=bs(a,Js(o)),a}getBeforeBody(e,n){return N1(hi(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:i}=n,s=[];return Tt(e,r=>{const o={before:[],lines:[],after:[]},a=F1(i,r);bs(o.before,Js(hi(a,"beforeLabel",this,r))),bs(o.lines,hi(a,"label",this,r)),bs(o.after,Js(hi(a,"afterLabel",this,r))),s.push(o)}),s}getAfterBody(e,n){return N1(hi(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:i}=n,s=hi(i,"beforeFooter",this,e),r=hi(i,"footer",this,e),o=hi(i,"afterFooter",this,e);let a=[];return a=bs(a,Js(s)),a=bs(a,Js(r)),a=bs(a,Js(o)),a}_createItems(e){const n=this._active,i=this.chart.data,s=[],r=[],o=[];let a=[],l,c;for(l=0,c=n.length;le.filter(u,d,h,i))),e.itemSort&&(a=a.sort((u,d)=>e.itemSort(u,d,i))),Tt(a,u=>{const d=F1(e.callbacks,u);s.push(hi(d,"labelColor",this,u)),r.push(hi(d,"labelPointStyle",this,u)),o.push(hi(d,"labelTextColor",this,u))}),this.labelColors=s,this.labelPointStyles=r,this.labelTextColors=o,this.dataPoints=a,a}update(e,n){const i=this.options.setContext(this.getContext()),s=this._active;let r,o=[];if(!s.length)this.opacity!==0&&(r={opacity:0});else{const a=kc[i.position].call(this,s,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const l=this._size=$1(this,i),c=Object.assign({},a,l),u=L1(this.chart,i,c),d=O1(i,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,r={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=o,this.$context=void 0,r&&this._resolveAnimations().update(this,r),e&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,i,s){const r=this.getCaretPosition(e,i,s);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)}getCaretPosition(e,n,i){const{xAlign:s,yAlign:r}=this,{caretSize:o,cornerRadius:a}=i,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=ra(a),{x:h,y:g}=e,{width:p,height:m}=n;let v,y,x,E,w,b;return r==="center"?(w=g+m/2,s==="left"?(v=h,y=v-o,E=w+o,b=w-o):(v=h+p,y=v+o,E=w-o,b=w+o),x=v):(s==="left"?y=h+Math.max(l,u)+o:s==="right"?y=h+p-Math.max(c,d)-o:y=this.caretX,r==="top"?(E=g,w=E-o,v=y-o,x=y+o):(E=g+m,w=E+o,v=y+o,x=y-o),b=E),{x1:v,x2:y,x3:x,y1:E,y2:w,y3:b}}drawTitle(e,n,i){const s=this.title,r=s.length;let o,a,l;if(r){const c=ul(i.rtl,this.x,this.width);for(e.x=Bd(this,i.titleAlign,i),n.textAlign=c.textAlign(i.titleAlign),n.textBaseline="middle",o=En(i.titleFont),a=i.titleSpacing,n.fillStyle=i.titleColor,n.font=o.string,l=0;lx!==0)?(e.beginPath(),e.fillStyle=r.multiKeyBackground,pu(e,{x:m,y:p,w:c,h:l,radius:y}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),pu(e,{x:v,y:p+1,w:c-2,h:l-2,radius:y}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(m,p,c,l),e.strokeRect(m,p,c,l),e.fillStyle=o.backgroundColor,e.fillRect(v,p+1,c-2,l-2))}e.fillStyle=this.labelTextColors[i]}drawBody(e,n,i){const{body:s}=this,{bodySpacing:r,bodyAlign:o,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:u}=i,d=En(i.bodyFont);let h=d.lineHeight,g=0;const p=ul(i.rtl,this.x,this.width),m=function(T){n.fillText(T,p.x(e.x+g),e.y+h/2),e.y+=h+r},v=p.textAlign(o);let y,x,E,w,b,C,k;for(n.textAlign=o,n.textBaseline="middle",n.font=d.string,e.x=Bd(this,v,i),n.fillStyle=i.bodyColor,Tt(this.beforeBody,m),g=a&&v!=="right"?o==="center"?c/2+u:c+2+u:0,w=0,C=s.length;w0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,i=this.$animations,s=i&&i.x,r=i&&i.y;if(s||r){const o=kc[e.position].call(this,this._active,this._eventPosition);if(!o)return;const a=this._size=$1(this,e),l=Object.assign({},o,this._size),c=L1(n,e,l),u=O1(e,l,c,n);(s._to!==u.x||r._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(n);const s={width:this.width,height:this.height},r={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=Zn(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(e.save(),e.globalAlpha=i,this.drawBackground(r,e,s,n),ZS(e,n.textDirection),r.y+=o.top,this.drawTitle(r,e,n),this.drawBody(r,e,n),this.drawFooter(r,e,n),JS(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const i=this._active,s=e.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}}),r=!Ah(i,s),o=this._positionChanged(s,n);(r||o)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,i=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,r=this._active||[],o=this._getActiveElements(e,r,n,i),a=this._positionChanged(o,e),l=n||!Ah(o,r)||a;return l&&(this._active=o,(s.enabled||s.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,i,s){const r=this.options;if(e.type==="mouseout")return[];if(!s)return n.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const o=this.chart.getElementsAtEventForMode(e,r.mode,r,i);return r.reverse&&o.reverse(),o}_positionChanged(e,n){const{caretX:i,caretY:s,options:r}=this,o=kc[r.position].call(this,e,n);return o!==!1&&(i!==o.x||s!==o.y)}}var nU={id:"tooltip",_element:B1,positioners:kc,afterInit(t,e,n){n&&(t.tooltip=new B1({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Sk},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const iU=(t,e,n,i)=>(typeof e=="string"?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function sU(t,e,n,i){const s=t.indexOf(e);if(s===-1)return iU(t,e,n,i);const r=t.lastIndexOf(e);return s!==r?n:s}const rU=(t,e)=>t===null?null:Dn(Math.round(t),0,e);function V1(t){const e=this.getLabels();return t>=0&&tn.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}function aU(t,e){const n=[],{bounds:s,step:r,min:o,max:a,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:h}=t,g=r||1,p=u-1,{min:m,max:v}=e,y=!gt(o),x=!gt(a),E=!gt(c),w=(v-m)/(d+1);let b=L0((v-m)/p/g)*g,C,k,T,A;if(b<1e-14&&!y&&!x)return[{value:m},{value:v}];A=Math.ceil(v/b)-Math.floor(m/b),A>p&&(b=L0(A*b/p/g)*g),gt(l)||(C=Math.pow(10,l),b=Math.ceil(b*C)/C),s==="ticks"?(k=Math.floor(m/b)*b,T=Math.ceil(v/b)*b):(k=m,T=v),y&&x&&r&&nY((a-o)/r,b/1e3)?(A=Math.round(Math.min((a-o)/b,u)),b=(a-o)/A,k=o,T=a):E?(k=y?o:k,T=x?a:T,A=c-1,b=(T-k)/A):(A=(T-k)/b,Uc(A,Math.round(A),b/1e3)?A=Math.round(A):A=Math.ceil(A));const I=Math.max(O0(b),O0(k));C=Math.pow(10,gt(l)?I:l),k=Math.round(k*C)/C,T=Math.round(T*C)/C;let V=0;for(y&&(h&&k!==o?(n.push({value:o}),ka)break;n.push({value:Y})}return x&&h&&T!==a?n.length&&Uc(n[n.length-1].value,a,z1(a,w,t))?n[n.length-1].value=a:n.push({value:a}):(!x||T===a)&&n.push({value:T}),n}function z1(t,e,{horizontal:n,minRotation:i}){const s=ls(i),r=(n?Math.sin(s):Math.cos(s))||.001,o=.75*e*(""+t).length;return Math.min(e/r,o)}class Lh extends ba{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return gt(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:i}=this.getUserBounds();let{min:s,max:r}=this;const o=l=>s=n?s:l,a=l=>r=i?r:l;if(e){const l=Os(s),c=Os(r);l<0&&c<0?a(0):l>0&&c>0&&o(0)}if(s===r){let l=r===0?1:Math.abs(r*.05);a(r+l),e||o(s-l)}this.min=s,this.max=r}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:i}=e,s;return i?(s=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,s>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${s} ticks. Limiting to 1000.`),s=1e3)):(s=this.computeTickLimit(),n=n||11),n&&(s=Math.min(n,s)),s}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let i=this.getTickLimit();i=Math.max(2,i);const s={maxTicks:i,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},r=this._range||this,o=aU(s,r);return e.bounds==="ticks"&&$S(o,this,"value"),e.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const e=this.ticks;let n=this.min,i=this.max;if(super.configure(),this.options.offset&&e.length){const s=(i-n)/Math.max(e.length-1,1)/2;n-=s,i+=s}this._startValue=n,this._endValue=i,this._valueRange=i-n}getLabelForValue(e){return Uu(e,this.chart.options.locale,this.options.ticks.format)}}class lU extends Lh{static id="linear";static defaults={ticks:{callback:Af.formatters.numeric}};determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=nn(e)?e:0,this.max=nn(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,i=ls(this.options.ticks.minRotation),s=(e?Math.sin(i):Math.cos(i))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,r.lineHeight/s))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}const _u=t=>Math.floor(Gr(t)),Bo=(t,e)=>Math.pow(10,_u(t)+e);function W1(t){return t/Math.pow(10,_u(t))===1}function Y1(t,e,n){const i=Math.pow(10,n),s=Math.floor(t/i);return Math.ceil(e/i)-s}function cU(t,e){const n=e-t;let i=_u(n);for(;Y1(t,e,i)>10;)i++;for(;Y1(t,e,i)<10;)i--;return Math.min(i,_u(t))}function uU(t,{min:e,max:n}){e=Si(t.min,e);const i=[],s=_u(e);let r=cU(e,n),o=r<0?Math.pow(10,Math.abs(r)):1;const a=Math.pow(10,r),l=s>r?Math.pow(10,s):0,c=Math.round((e-l)*o)/o,u=Math.floor((e-l)/a/10)*a*10;let d=Math.floor((c-u)/Math.pow(10,r)),h=Si(t.min,Math.round((l+u+d*Math.pow(10,r))*o)/o);for(;h=10?d=d<15?15:20:d++,d>=20&&(r++,d=2,o=r>=0?1:o),h=Math.round((l+u+d*Math.pow(10,r))*o)/o;const g=Si(t.max,h);return i.push({value:g,major:W1(g),significand:d}),i}class dU extends ba{static id="logarithmic";static defaults={ticks:{callback:Af.formatters.logarithmic,major:{enabled:!0}}};constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,n){const i=Lh.prototype.parse.apply(this,[e,n]);if(i===0){this._zero=!0;return}return nn(i)&&i>0?i:null}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=nn(e)?Math.max(0,e):null,this.max=nn(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!nn(this._userMin)&&(this.min=e===Bo(this.min,0)?Bo(this.min,-1):Bo(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let i=this.min,s=this.max;const r=a=>i=e?i:a,o=a=>s=n?s:a;i===s&&(i<=0?(r(1),o(10)):(r(Bo(i,-1)),o(Bo(s,1)))),i<=0&&r(Bo(s,-1)),s<=0&&o(Bo(i,1)),this.min=i,this.max=s}buildTicks(){const e=this.options,n={min:this._userMin,max:this._userMax},i=uU(n,this);return e.bounds==="ticks"&&$S(i,this,"value"),e.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(e){return e===void 0?"0":Uu(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=Gr(e),this._valueRange=Gr(this.max)-Gr(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(Gr(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const n=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+n*this._valueRange)}}function mm(t){const e=t.ticks;if(e.display&&t.display){const n=Zn(e.backdropPadding);return it(e.font&&e.font.size,sn.font.size)+n.height}return 0}function hU(t,e,n){return n=Yt(n)?n:[n],{w:yY(t,e.string,n),h:n.length*e.lineHeight}}function H1(t,e,n,i,s){return t===i||t===s?{start:e-n/2,end:e+n/2}:ts?{start:e-n,end:e}:{start:e,end:e+n}}function fU(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),i=[],s=[],r=t._pointLabels.length,o=t.options.pointLabels,a=o.centerPointLabels?Bt/r:0;for(let l=0;le.r&&(a=(i.end-e.r)/r,t.r=Math.max(t.r,e.r+a)),s.starte.b&&(l=(s.end-e.b)/o,t.b=Math.max(t.b,e.b+l))}function pU(t,e,n){const i=t.drawingArea,{extra:s,additionalAngle:r,padding:o,size:a}=n,l=t.getPointPosition(e,i+s+o,r),c=Math.round(Z_(ki(l.angle+dn))),u=bU(l.y,a.h,c),d=vU(c),h=yU(l.x,a.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:h,top:u,right:h+a.w,bottom:u+a.h}}function mU(t,e){if(!e)return!0;const{left:n,top:i,right:s,bottom:r}=t;return!(ur({x:n,y:i},e)||ur({x:n,y:r},e)||ur({x:s,y:i},e)||ur({x:s,y:r},e))}function _U(t,e,n){const i=[],s=t._pointLabels.length,r=t.options,{centerPointLabels:o,display:a}=r.pointLabels,l={extra:mm(r)/2,additionalAngle:o?Bt/s:0};let c;for(let u=0;u270||n<90)&&(t-=e),t}function wU(t,e,n){const{left:i,top:s,right:r,bottom:o}=n,{backdropColor:a}=e;if(!gt(a)){const l=ra(e.borderRadius),c=Zn(e.backdropPadding);t.fillStyle=a;const u=i-c.left,d=s-c.top,h=r-i+c.width,g=o-s+c.height;Object.values(l).some(p=>p!==0)?(t.beginPath(),pu(t,{x:u,y:d,w:h,h:g,radius:l}),t.fill()):t.fillRect(u,d,h,g)}}function xU(t,e){const{ctx:n,options:{pointLabels:i}}=t;for(let s=e-1;s>=0;s--){const r=t._pointLabelItems[s];if(!r.visible)continue;const o=i.setContext(t.getPointLabelContext(s));wU(n,o,r);const a=En(o.font),{x:l,y:c,textAlign:u}=r;ga(n,t._pointLabels[s],l,c+a.lineHeight/2,a,{color:o.color,textAlign:u,textBaseline:"middle"})}}function kk(t,e,n,i){const{ctx:s}=t;if(n)s.arc(t.xCenter,t.yCenter,e,0,Ft);else{let r=t.getPointPosition(0,e);s.moveTo(r.x,r.y);for(let o=1;o{const s=$t(this.options.pointLabels.callback,[n,i],this);return s||s===0?s:""}).filter((n,i)=>this.chart.getDataVisibility(i))}fit(){const e=this.options;e.display&&e.pointLabels.display?fU(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,n,i,s){this.xCenter+=Math.floor((e-n)/2),this.yCenter+=Math.floor((i-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,n,i,s))}getIndexAngle(e){const n=Ft/(this._pointLabels.length||1),i=this.options.startAngle||0;return ki(e*n+ls(i))}getDistanceFromCenterForValue(e){if(gt(e))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*n:(e-this.min)*n}getValueForDistanceFromCenter(e){if(gt(e))return NaN;const n=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(e){const n=this._pointLabels||[];if(e>=0&&e{if(d!==0||d===0&&this.min<0){l=this.getDistanceFromCenterForValue(u.value);const h=this.getContext(d),g=s.setContext(h),p=r.setContext(h);EU(this,g,l,o,p)}}),i.display){for(e.save(),a=o-1;a>=0;a--){const u=i.setContext(this.getPointLabelContext(a)),{color:d,lineWidth:h}=u;!h||!d||(e.lineWidth=h,e.strokeStyle=d,e.setLineDash(u.borderDash),e.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(n.reverse?this.min:this.max),c=this.getPointPosition(a,l),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(c.x,c.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,n=this.options,i=n.ticks;if(!i.display)return;const s=this.getIndexAngle(0);let r,o;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(s),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&this.min>=0&&!n.reverse)return;const c=i.setContext(this.getContext(l)),u=En(c.font);if(r=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){e.font=u.string,o=e.measureText(a.label).width,e.fillStyle=c.backdropColor;const d=Zn(c.backdropPadding);e.fillRect(-o/2-d.left,-r-u.size/2-d.top,o+d.width,u.size+d.height)}ga(e,a.label,0,-r,u,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),e.restore()}drawTitle(){}}const $f={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}},_i=Object.keys($f);function j1(t,e){return t-e}function K1(t,e){if(gt(e))return null;const n=t._adapter,{parser:i,round:s,isoWeekday:r}=t._parseOpts;let o=e;return typeof i=="function"&&(o=i(o)),nn(o)||(o=typeof i=="string"?n.parse(o,i):n.parse(o)),o===null?null:(s&&(o=s==="week"&&(Il(r)||r===!0)?n.startOf(o,"isoWeek",r):n.startOf(o,s)),+o)}function U1(t,e,n,i){const s=_i.length;for(let r=_i.indexOf(t);r=_i.indexOf(n);r--){const o=_i[r];if($f[o].common&&t._adapter.diff(s,i,o)>=e-1)return o}return _i[n?_i.indexOf(n):0]}function TU(t){for(let e=_i.indexOf(t)+1,n=_i.length;e=e?n[i]:n[s];t[r]=!0}}function AU(t,e,n,i){const s=t._adapter,r=+s.startOf(e[0].value,i),o=e[e.length-1].value;let a,l;for(a=r;a<=o;a=+s.add(a,1,i))l=n[a],l>=0&&(e[l].major=!0);return e}function X1(t,e,n){const i=[],s={},r=e.length;let o,a;for(o=0;o+e.value))}initOffsets(e=[]){let n=0,i=0,s,r;this.options.offset&&e.length&&(s=this.getDecimalForValue(e[0]),e.length===1?n=1-s:n=(this.getDecimalForValue(e[1])-s)/2,r=this.getDecimalForValue(e[e.length-1]),e.length===1?i=r:i=(r-this.getDecimalForValue(e[e.length-2]))/2);const o=e.length<3?.5:.25;n=Dn(n,0,o),i=Dn(i,0,o),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){const e=this._adapter,n=this.min,i=this.max,s=this.options,r=s.time,o=r.unit||U1(r.minUnit,n,i,this._getLabelCapacity(n)),a=it(s.ticks.stepSize,1),l=o==="week"?r.isoWeekday:!1,c=Il(l)||l===!0,u={};let d=n,h,g;if(c&&(d=+e.startOf(d,"isoWeek",l)),d=+e.startOf(d,c?"day":o),e.diff(i,n,o)>1e5*a)throw new Error(n+" and "+i+" are too far apart with stepSize of "+a+" "+o);const p=s.ticks.source==="data"&&this.getDataTimestamps();for(h=d,g=0;h+m)}getLabelForValue(e){const n=this._adapter,i=this.options.time;return i.tooltipFormat?n.format(e,i.tooltipFormat):n.format(e,i.displayFormats.datetime)}format(e,n){const s=this.options.time.displayFormats,r=this._unit,o=n||s[r];return this._adapter.format(e,o)}_tickFormatFunction(e,n,i,s){const r=this.options,o=r.ticks.callback;if(o)return $t(o,[e,n,i],this);const a=r.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&a[l],d=c&&a[c],h=i[n],g=c&&d&&h&&h.major;return this._adapter.format(e,s||(g?d:u))}generateTickLabels(e){let n,i,s;for(n=0,i=e.length;n0?a:1}getDataTimestamps(){let e=this._cache.data||[],n,i;if(e.length)return e;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,i=s.length;n=t[i].pos&&e<=t[s].pos&&({lo:i,hi:s}=cr(t,"pos",e)),{pos:r,time:a}=t[i],{pos:o,time:l}=t[s]):(e>=t[i].time&&e<=t[s].time&&({lo:i,hi:s}=cr(t,"time",e)),{time:r,pos:a}=t[i],{time:o,pos:l}=t[s]);const c=o-r;return c?a+(l-a)*(e-r)/c:a}class PU extends _m{static id="timeseries";static defaults=_m.defaults;constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=Vd(n,this.min),this._tableRange=Vd(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:i}=this,s=[],r=[];let o,a,l,c,u;for(o=0,a=e.length;o=n&&c<=i&&s.push(c);if(s.length<2)return[{time:n,pos:0},{time:i,pos:1}];for(o=0,a=s.length;os-r)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),i=this.getLabelTimestamps();return n.length&&i.length?e=this.normalize(n.concat(i)):e=n.length?n:i,e=this._cache.all=e,e}getDecimalForValue(e){return(Vd(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,i=this.getDecimalForPixel(e)/n.factor-n.end;return Vd(this._table,i*this._tableRange+this._minPos,!0)}}const Tk={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},MU={ariaLabel:{type:String},ariaDescribedby:{type:String}},IU={type:{type:String,required:!0},destroyDelay:{type:Number,default:0},...Tk,...MU},DU=ZE[0]==="2"?(t,e)=>Object.assign(t,{attrs:e}):(t,e)=>Object.assign(t,e);function Fa(t){return Ou(t)?lt(t):t}function RU(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t;return Ou(e)?new Proxy(t,{}):t}function $U(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function Ak(t,e){t.labels=e}function Pk(t,e,n){const i=[];t.datasets=e.map(s=>{const r=t.datasets.find(o=>o[n]===s[n]);return!r||!s.data||i.includes(r)?{...s}:(i.push(r),Object.assign(r,s),r)})}function LU(t,e){const n={labels:[],datasets:[]};return Ak(n,t.labels),Pk(n,t.datasets,e),n}const OU=fn({props:IU,setup(t,e){let{expose:n,slots:i}=e;const s=me(null),r=df(null);n({chart:r});const o=()=>{if(!s.value)return;const{type:c,data:u,options:d,plugins:h,datasetIdKey:g}=t,p=LU(u,g),m=RU(p,u);r.value=new Df(s.value,{type:c,data:m,options:{...d},plugins:h})},a=()=>{const c=lt(r.value);c&&(t.destroyDelay>0?setTimeout(()=>{c.destroy(),r.value=null},t.destroyDelay):(c.destroy(),r.value=null))},l=c=>{c.update(t.updateMode)};return Vt(o),_o(a),Zt([()=>t.options,()=>t.data],(c,u)=>{let[d,h]=c,[g,p]=u;const m=lt(r.value);if(!m)return;let v=!1;if(d){const y=Fa(d),x=Fa(g);y&&y!==x&&($U(m,y),v=!0)}if(h){const y=Fa(h.labels),x=Fa(p.labels),E=Fa(h.datasets),w=Fa(p.datasets);y!==x&&(Ak(m.config.data,y),v=!0),E&&E!==w&&(Pk(m.config.data,E,t.datasetIdKey),v=!0)}v&&Rn(()=>{l(m)})},{deep:!0}),()=>ha("canvas",{role:"img",ariaLabel:t.ariaLabel,ariaDescribedby:t.ariaDescribedby,ref:s},[ha("p",{},[i.default?i.default():""])])}});function Mk(t,e){return Df.register(e),fn({props:Tk,setup(n,i){let{expose:s}=i;const r=df(null),o=a=>{r.value=a?.chart};return s({chart:r}),()=>ha(OU,DU({ref:o},{type:t,...n}))}})}const NU=Mk("bar",rk),FU=Mk("line",ak);function yr(t){return Array.isArray?Array.isArray(t):Rk(t)==="[object Array]"}const BU=1/0;function VU(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-BU?"-0":e}function zU(t){return t==null?"":VU(t)}function Ps(t){return typeof t=="string"}function Ik(t){return typeof t=="number"}function WU(t){return t===!0||t===!1||YU(t)&&Rk(t)=="[object Boolean]"}function Dk(t){return typeof t=="object"}function YU(t){return Dk(t)&&t!==null}function Ti(t){return t!=null}function op(t){return!t.trim().length}function Rk(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const HU="Incorrect 'index' type",jU=t=>`Invalid value for key ${t}`,KU=t=>`Pattern length exceeds max of ${t}.`,UU=t=>`Missing ${t} property in key`,GU=t=>`Property 'weight' in key '${t}' must be a positive integer`,q1=Object.prototype.hasOwnProperty;class XU{constructor(e){this._keys=[],this._keyMap={};let n=0;e.forEach(i=>{let s=$k(i);this._keys.push(s),this._keyMap[s.id]=s,n+=s.weight}),this._keys.forEach(i=>{i.weight/=n})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function $k(t){let e=null,n=null,i=null,s=1,r=null;if(Ps(t)||yr(t))i=t,e=Z1(t),n=vm(t);else{if(!q1.call(t,"name"))throw new Error(UU("name"));const o=t.name;if(i=o,q1.call(t,"weight")&&(s=t.weight,s<=0))throw new Error(GU(o));e=Z1(o),n=vm(o),r=t.getFn}return{path:e,id:n,weight:s,src:i,getFn:r}}function Z1(t){return yr(t)?t:t.split(".")}function vm(t){return yr(t)?t.join("."):t}function qU(t,e){let n=[],i=!1;const s=(r,o,a)=>{if(Ti(r))if(!o[a])n.push(r);else{let l=o[a];const c=r[l];if(!Ti(c))return;if(a===o.length-1&&(Ps(c)||Ik(c)||WU(c)))n.push(zU(c));else if(yr(c)){i=!0;for(let u=0,d=c.length;ut.score===e.score?t.idx{this._keysMap[n.id]=i})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Ps(this.docs[0])?this.docs.forEach((e,n)=>{this._addString(e,n)}):this.docs.forEach((e,n)=>{this._addObject(e,n)}),this.norm.clear())}add(e){const n=this.size();Ps(e)?this._addString(e,n):this._addObject(e,n)}removeAt(e){this.records.splice(e,1);for(let n=e,i=this.size();n{let o=s.getFn?s.getFn(e):this.getFn(e,s.path);if(Ti(o)){if(yr(o)){let a=[];const l=[{nestedArrIndex:-1,value:o}];for(;l.length;){const{nestedArrIndex:c,value:u}=l.pop();if(Ti(u))if(Ps(u)&&!op(u)){let d={v:u,i:c,n:this.norm.get(u)};a.push(d)}else yr(u)&&u.forEach((d,h)=>{l.push({nestedArrIndex:h,value:d})})}i.$[r]=a}else if(Ps(o)&&!op(o)){let a={v:o,n:this.norm.get(o)};i.$[r]=a}}}),this.records.push(i)}toJSON(){return{keys:this.keys,records:this.records}}}function Lk(t,e,{getFn:n=Qe.getFn,fieldNormWeight:i=Qe.fieldNormWeight}={}){const s=new cv({getFn:n,fieldNormWeight:i});return s.setKeys(t.map($k)),s.setSources(e),s.create(),s}function iG(t,{getFn:e=Qe.getFn,fieldNormWeight:n=Qe.fieldNormWeight}={}){const{keys:i,records:s}=t,r=new cv({getFn:e,fieldNormWeight:n});return r.setKeys(i),r.setIndexRecords(s),r}function zd(t,{errors:e=0,currentLocation:n=0,expectedLocation:i=0,distance:s=Qe.distance,ignoreLocation:r=Qe.ignoreLocation}={}){const o=e/t.length;if(r)return o;const a=Math.abs(i-n);return s?o+a/s:a?1:o}function sG(t=[],e=Qe.minMatchCharLength){let n=[],i=-1,s=-1,r=0;for(let o=t.length;r=e&&n.push([i,s]),i=-1)}return t[r-1]&&r-i>=e&&n.push([i,r-1]),n}const Go=32;function rG(t,e,n,{location:i=Qe.location,distance:s=Qe.distance,threshold:r=Qe.threshold,findAllMatches:o=Qe.findAllMatches,minMatchCharLength:a=Qe.minMatchCharLength,includeMatches:l=Qe.includeMatches,ignoreLocation:c=Qe.ignoreLocation}={}){if(e.length>Go)throw new Error(KU(Go));const u=e.length,d=t.length,h=Math.max(0,Math.min(i,d));let g=r,p=h;const m=a>1||l,v=m?Array(d):[];let y;for(;(y=t.indexOf(e,p))>-1;){let k=zd(e,{currentLocation:y,expectedLocation:h,distance:s,ignoreLocation:c});if(g=Math.min(k,g),p=y+u,m){let T=0;for(;T=I;N-=1){let B=N-1,R=n[t.charAt(B)];if(m&&(v[B]=+!!R),Y[N]=(Y[N+1]<<1|1)&R,k&&(Y[N]|=(x[N+1]|x[N])<<1|1|x[N+1]),Y[N]&b&&(E=zd(e,{errors:k,currentLocation:B,expectedLocation:h,distance:s,ignoreLocation:c}),E<=g)){if(g=E,p=B,p<=h)break;I=Math.max(1,2*h-p)}}if(zd(e,{errors:k+1,currentLocation:h,expectedLocation:h,distance:s,ignoreLocation:c})>g)break;x=Y}const C={isMatch:p>=0,score:Math.max(.001,E)};if(m){const k=sG(v,a);k.length?l&&(C.indices=k):C.isMatch=!1}return C}function oG(t){let e={};for(let n=0,i=t.length;n{this.chunks.push({pattern:h,alphabet:oG(h),startIndex:g})},d=this.pattern.length;if(d>Go){let h=0;const g=d%Go,p=d-g;for(;h{const{isMatch:y,score:x,indices:E}=rG(e,p,m,{location:s+v,distance:r,threshold:o,findAllMatches:a,minMatchCharLength:l,includeMatches:i,ignoreLocation:c});y&&(h=!0),d+=x,y&&E&&(u=[...u,...E])});let g={isMatch:h,score:h?d/this.chunks.length:1};return h&&i&&(g.indices=u),g}}class Eo{constructor(e){this.pattern=e}static isMultiMatch(e){return J1(e,this.multiRegex)}static isSingleMatch(e){return J1(e,this.singleRegex)}search(){}}function J1(t,e){const n=t.match(e);return n?n[1]:null}class aG extends Eo{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const n=e===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class lG extends Eo{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const i=e.indexOf(this.pattern)===-1;return{isMatch:i,score:i?0:1,indices:[0,e.length-1]}}}class cG extends Eo{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const n=e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class uG extends Eo{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const n=!e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class dG extends Eo{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const n=e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class hG extends Eo{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const n=!e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class Nk extends Eo{constructor(e,{location:n=Qe.location,threshold:i=Qe.threshold,distance:s=Qe.distance,includeMatches:r=Qe.includeMatches,findAllMatches:o=Qe.findAllMatches,minMatchCharLength:a=Qe.minMatchCharLength,isCaseSensitive:l=Qe.isCaseSensitive,ignoreLocation:c=Qe.ignoreLocation}={}){super(e),this._bitapSearch=new Ok(e,{location:n,threshold:i,distance:s,includeMatches:r,findAllMatches:o,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class Fk extends Eo{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let n=0,i;const s=[],r=this.pattern.length;for(;(i=e.indexOf(this.pattern,n))>-1;)n=i+r,s.push([i,n-1]);const o=!!s.length;return{isMatch:o,score:o?0:1,indices:s}}}const ym=[aG,Fk,cG,uG,hG,dG,lG,Nk],Q1=ym.length,fG=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,gG="|";function pG(t,e={}){return t.split(gG).map(n=>{let i=n.trim().split(fG).filter(r=>r&&!!r.trim()),s=[];for(let r=0,o=i.length;r!!(t[Oh.AND]||t[Oh.OR]),yG=t=>!!t[xm.PATH],bG=t=>!yr(t)&&Dk(t)&&!Em(t),ew=t=>({[Oh.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function Bk(t,e,{auto:n=!0}={}){const i=s=>{let r=Object.keys(s);const o=yG(s);if(!o&&r.length>1&&!Em(s))return i(ew(s));if(bG(s)){const l=o?s[xm.PATH]:r[0],c=o?s[xm.PATTERN]:s[l];if(!Ps(c))throw new Error(jU(l));const u={keyId:vm(l),pattern:c};return n&&(u.searcher=wm(c,e)),u}let a={children:[],operator:r[0]};return r.forEach(l=>{const c=s[l];yr(c)&&c.forEach(u=>{a.children.push(i(u))})}),a};return Em(t)||(t=ew(t)),i(t)}function wG(t,{ignoreFieldNorm:e=Qe.ignoreFieldNorm}){t.forEach(n=>{let i=1;n.matches.forEach(({key:s,norm:r,score:o})=>{const a=s?s.weight:null;i*=Math.pow(o===0&&a?Number.EPSILON:o,(a||1)*(e?1:r))}),n.score=i})}function xG(t,e){const n=t.matches;e.matches=[],Ti(n)&&n.forEach(i=>{if(!Ti(i.indices)||!i.indices.length)return;const{indices:s,value:r}=i;let o={indices:s,value:r};i.key&&(o.key=i.key.src),i.idx>-1&&(o.refIndex=i.idx),e.matches.push(o)})}function EG(t,e){e.score=t.score}function CG(t,e,{includeMatches:n=Qe.includeMatches,includeScore:i=Qe.includeScore}={}){const s=[];return n&&s.push(xG),i&&s.push(EG),t.map(r=>{const{idx:o}=r,a={item:e[o],refIndex:o};return s.length&&s.forEach(l=>{l(r,a)}),a})}class Xl{constructor(e,n={},i){this.options={...Qe,...n},this.options.useExtendedSearch,this._keyStore=new XU(this.options.keys),this.setCollection(e,i)}setCollection(e,n){if(this._docs=e,n&&!(n instanceof cv))throw new Error(HU);this._myIndex=n||Lk(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){Ti(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const n=[];for(let i=0,s=this._docs.length;i-1&&(l=l.slice(0,n)),CG(l,this._docs,{includeMatches:i,includeScore:s})}_searchStringList(e){const n=wm(e,this.options),{records:i}=this._myIndex,s=[];return i.forEach(({v:r,i:o,n:a})=>{if(!Ti(r))return;const{isMatch:l,score:c,indices:u}=n.searchIn(r);l&&s.push({item:r,idx:o,matches:[{score:c,value:r,norm:a,indices:u}]})}),s}_searchLogical(e){const n=Bk(e,this.options),i=(a,l,c)=>{if(!a.children){const{keyId:d,searcher:h}=a,g=this._findMatches({key:this._keyStore.get(d),value:this._myIndex.getValueForItemAtKeyId(l,d),searcher:h});return g&&g.length?[{idx:c,item:l,matches:g}]:[]}const u=[];for(let d=0,h=a.children.length;d{if(Ti(a)){let c=i(n,a,l);c.length&&(r[l]||(r[l]={idx:l,item:a,matches:[]},o.push(r[l])),c.forEach(({matches:u})=>{r[l].matches.push(...u)}))}}),o}_searchObjectList(e){const n=wm(e,this.options),{keys:i,records:s}=this._myIndex,r=[];return s.forEach(({$:o,i:a})=>{if(!Ti(o))return;let l=[];i.forEach((c,u)=>{l.push(...this._findMatches({key:c,value:o[u],searcher:n}))}),l.length&&r.push({idx:a,item:o,matches:l})}),r}_findMatches({key:e,value:n,searcher:i}){if(!Ti(n))return[];let s=[];if(yr(n))n.forEach(({v:r,i:o,n:a})=>{if(!Ti(r))return;const{isMatch:l,score:c,indices:u}=i.searchIn(r);l&&s.push({score:c,key:e,value:r,idx:o,norm:a,indices:u})});else{const{v:r,n:o}=n,{isMatch:a,score:l,indices:c}=i.searchIn(r);a&&s.push({score:l,key:e,value:r,norm:o,indices:c})}return s}}Xl.version="7.0.0";Xl.createIndex=Lk;Xl.parseIndex=iG;Xl.config=Qe;Xl.parseQuery=Bk;vG(_G);const SG={name:"peerSettings",components:{LocaleText:Le},props:{selectedPeer:Object},data(){return{data:void 0,dataChanged:!1,showKey:!1,saving:!1}},setup(){return{dashboardConfigurationStore:Je()}},methods:{reset(){this.selectedPeer&&(this.data=JSON.parse(JSON.stringify(this.selectedPeer)),this.dataChanged=!1)},savePeer(){this.saving=!0,ht(`/api/updatePeerSettings/${this.$route.params.id}`,this.data,t=>{this.saving=!1,t.status?this.dashboardConfigurationStore.newMessage("Server","Peer saved","success"):this.dashboardConfigurationStore.newMessage("Server",t.message,"danger"),this.$emit("refresh")})},resetPeerData(t){this.saving=!0,ht(`/api/resetPeerData/${this.$route.params.id}`,{id:this.data.id,type:t},e=>{this.saving=!1,e.status?this.dashboardConfigurationStore.newMessage("Server","Peer data usage reset successfully","success"):this.dashboardConfigurationStore.newMessage("Server",e.message,"danger"),this.$emit("refresh")})}},beforeMount(){this.reset()},mounted(){this.$el.querySelectorAll("input").forEach(t=>{t.addEventListener("keyup",()=>{this.dataChanged=!0})})}},kG={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0 overflow-y-scroll"},TG={class:"container d-flex h-100 w-100"},AG={class:"m-auto modal-dialog-centered dashboardModal"},PG={class:"card rounded-3 shadow flex-grow-1"},MG={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4 pb-2"},IG={class:"mb-0"},DG={key:0,class:"card-body px-4 pb-4"},RG={class:"d-flex flex-column gap-2 mb-4"},$G={class:"d-flex align-items-center"},LG={class:"text-muted"},OG={class:"ms-auto"},NG={for:"peer_name_textbox",class:"form-label"},FG={class:"text-muted"},BG=["disabled"],VG={class:"d-flex position-relative"},zG={for:"peer_private_key_textbox",class:"form-label"},WG={class:"text-muted"},YG=["type","disabled"],HG={for:"peer_allowed_ip_textbox",class:"form-label"},jG={class:"text-muted"},KG=["disabled"],UG={for:"peer_endpoint_allowed_ips",class:"form-label"},GG={class:"text-muted"},XG=["disabled"],qG={for:"peer_DNS_textbox",class:"form-label"},ZG={class:"text-muted"},JG=["disabled"],QG={class:"accordion mt-3",id:"peerSettingsAccordion"},e7={class:"accordion-item"},t7={class:"accordion-header"},n7={class:"accordion-button rounded-3 collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#peerSettingsAccordionOptional"},i7={id:"peerSettingsAccordionOptional",class:"accordion-collapse collapse","data-bs-parent":"#peerSettingsAccordion"},s7={class:"accordion-body d-flex flex-column gap-2 mb-2"},r7={for:"peer_preshared_key_textbox",class:"form-label"},o7={class:"text-muted"},a7=["disabled"],l7={for:"peer_mtu",class:"form-label"},c7={class:"text-muted"},u7=["disabled"],d7={for:"peer_keep_alive",class:"form-label"},h7={class:"text-muted"},f7=["disabled"],g7={class:"d-flex gap-2 align-items-center"},p7={class:"d-flex gap-2 ms-auto"},m7={class:"d-flex align-items-center gap-2"},_7=["disabled"],v7=["disabled"];function y7(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",kG,[f("div",TG,[f("div",AG,[f("div",PG,[f("div",MG,[f("h4",IG,[L(o,{t:"Peer Settings"})]),f("button",{type:"button",class:"btn-close ms-auto",onClick:e[0]||(e[0]=a=>this.$emit("close"))})]),this.data?(P(),F("div",DG,[f("div",RG,[f("div",$G,[f("small",LG,[L(o,{t:"Public Key"})]),f("small",OG,[f("samp",null,pe(this.data.id),1)])]),f("div",null,[f("label",NG,[f("small",FG,[L(o,{t:"Name"})])]),Re(f("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":e[1]||(e[1]=a=>this.data.name=a),id:"peer_name_textbox",placeholder:""},null,8,BG),[[ze,this.data.name]])]),f("div",null,[f("div",VG,[f("label",zG,[f("small",WG,[L(o,{t:"Private Key"}),f("code",null,[L(o,{t:"(Required for QR Code and Download)"})])])]),f("a",{role:"button",class:"ms-auto text-decoration-none toggleShowKey",onClick:e[2]||(e[2]=a=>this.showKey=!this.showKey)},[f("i",{class:Se(["bi",[this.showKey?"bi-eye-slash-fill":"bi-eye-fill"]])},null,2)])]),Re(f("input",{type:[this.showKey?"text":"password"],class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":e[3]||(e[3]=a=>this.data.private_key=a),id:"peer_private_key_textbox",style:{"padding-right":"40px"}},null,8,YG),[[uC,this.data.private_key]])]),f("div",null,[f("label",HG,[f("small",jG,[L(o,{t:"Allowed IPs"}),f("code",null,[L(o,{t:"(Required)"})])])]),Re(f("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":e[4]||(e[4]=a=>this.data.allowed_ip=a),id:"peer_allowed_ip_textbox"},null,8,KG),[[ze,this.data.allowed_ip]])]),f("div",null,[f("label",UG,[f("small",GG,[L(o,{t:"Endpoint Allowed IPs"}),f("code",null,[L(o,{t:"(Required)"})])])]),Re(f("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":e[5]||(e[5]=a=>this.data.endpoint_allowed_ip=a),id:"peer_endpoint_allowed_ips"},null,8,XG),[[ze,this.data.endpoint_allowed_ip]])]),f("div",null,[f("label",qG,[f("small",ZG,[L(o,{t:"DNS"})])]),Re(f("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":e[6]||(e[6]=a=>this.data.DNS=a),id:"peer_DNS_textbox"},null,8,JG),[[ze,this.data.DNS]])]),f("div",QG,[f("div",e7,[f("h2",t7,[f("button",n7,[L(o,{t:"Optional Settings"})])]),f("div",i7,[f("div",s7,[f("div",null,[f("label",r7,[f("small",o7,[L(o,{t:"Pre-Shared Key"})])]),Re(f("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":e[7]||(e[7]=a=>this.data.preshared_key=a),id:"peer_preshared_key_textbox"},null,8,a7),[[ze,this.data.preshared_key]])]),f("div",null,[f("label",l7,[f("small",c7,[L(o,{t:"MTU"})])]),Re(f("input",{type:"number",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":e[8]||(e[8]=a=>this.data.mtu=a),id:"peer_mtu"},null,8,u7),[[ze,this.data.mtu]])]),f("div",null,[f("label",d7,[f("small",h7,[L(o,{t:"Persistent Keepalive"})])]),Re(f("input",{type:"number",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":e[9]||(e[9]=a=>this.data.keepalive=a),id:"peer_keep_alive"},null,8,f7),[[ze,this.data.keepalive]])])])])])]),e[18]||(e[18]=f("hr",null,null,-1)),f("div",g7,[f("strong",null,[L(o,{t:"Reset Data Usage"})]),f("div",p7,[f("button",{class:"btn bg-primary-subtle text-primary-emphasis rounded-3 flex-grow-1 shadow-sm",onClick:e[10]||(e[10]=a=>this.resetPeerData("total"))},[e[15]||(e[15]=f("i",{class:"bi bi-arrow-down-up me-2"},null,-1)),L(o,{t:"Total"})]),f("button",{class:"btn bg-primary-subtle text-primary-emphasis rounded-3 flex-grow-1 shadow-sm",onClick:e[11]||(e[11]=a=>this.resetPeerData("receive"))},[e[16]||(e[16]=f("i",{class:"bi bi-arrow-down me-2"},null,-1)),L(o,{t:"Received"})]),f("button",{class:"btn bg-primary-subtle text-primary-emphasis rounded-3 flex-grow-1 shadow-sm",onClick:e[12]||(e[12]=a=>this.resetPeerData("sent"))},[e[17]||(e[17]=f("i",{class:"bi bi-arrow-up me-2"},null,-1)),L(o,{t:"Sent"})])])])]),f("div",m7,[f("button",{class:"btn bg-secondary-subtle border-secondary-subtle text-secondary-emphasis rounded-3 shadow ms-auto px-3 py-2",onClick:e[13]||(e[13]=a=>this.reset()),disabled:!this.dataChanged||this.saving},e[19]||(e[19]=[f("i",{class:"bi bi-arrow-clockwise"},null,-1)]),8,_7),f("button",{class:"btn bg-primary-subtle border-primary-subtle text-primary-emphasis rounded-3 px-3 py-2 shadow",disabled:!this.dataChanged||this.saving,onClick:e[14]||(e[14]=a=>this.savePeer())},e[20]||(e[20]=[f("i",{class:"bi bi-save-fill"},null,-1)]),8,v7)])])):se("",!0)])])])])}const b7=He(SG,[["render",y7],["__scopeId","data-v-a63ae8cb"]]);var wa={},w7=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Vk={},Ri={};let uv;const x7=[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];Ri.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};Ri.getSymbolTotalCodewords=function(e){return x7[e]};Ri.getBCHDigit=function(t){let e=0;for(;t!==0;)e++,t>>>=1;return e};Ri.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');uv=e};Ri.isKanjiModeEnabled=function(){return typeof uv<"u"};Ri.toSJIS=function(e){return uv(e)};var Lf={};(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+n)}}t.isValid=function(i){return i&&typeof i.bit<"u"&&i.bit>=0&&i.bit<4},t.from=function(i,s){if(t.isValid(i))return i;try{return e(i)}catch{return s}}})(Lf);function zk(){this.buffer=[],this.length=0}zk.prototype={get:function(t){const e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(let n=0;n>>e-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var E7=zk;function Xu(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}Xu.prototype.set=function(t,e,n,i){const s=t*this.size+e;this.data[s]=n,i&&(this.reservedBit[s]=!0)};Xu.prototype.get=function(t,e){return this.data[t*this.size+e]};Xu.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n};Xu.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var C7=Xu,Wk={};(function(t){const e=Ri.getSymbolSize;t.getRowColCoords=function(i){if(i===1)return[];const s=Math.floor(i/7)+2,r=e(i),o=r===145?26:Math.ceil((r-13)/(2*s-2))*2,a=[r-7];for(let l=1;l=0&&s<=7},t.from=function(s){return t.isValid(s)?parseInt(s,10):void 0},t.getPenaltyN1=function(s){const r=s.size;let o=0,a=0,l=0,c=null,u=null;for(let d=0;d=5&&(o+=e.N1+(a-5)),c=g,a=1),g=s.get(h,d),g===u?l++:(l>=5&&(o+=e.N1+(l-5)),u=g,l=1)}a>=5&&(o+=e.N1+(a-5)),l>=5&&(o+=e.N1+(l-5))}return o},t.getPenaltyN2=function(s){const r=s.size;let o=0;for(let a=0;a=10&&(a===1488||a===93)&&o++,l=l<<1&2047|s.get(u,c),u>=10&&(l===1488||l===93)&&o++}return o*e.N3},t.getPenaltyN4=function(s){let r=0;const o=s.data.length;for(let l=0;l=0;){const o=r[0];for(let l=0;l0){const r=new Uint8Array(this.degree);return r.set(i,s),r}return i};var k7=dv,Uk={},Co={},hv={};hv.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var Vs={};const Gk="[0-9]+",T7="[A-Z $%*+\\-./:]+";let vu="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";vu=vu.replace(/u/g,"\\u");const A7="(?:(?![A-Z0-9 $%*+\\-./:]|"+vu+`)(?:.|[\r -]))+`;Vs.KANJI=new RegExp(vu,"g");Vs.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Vs.BYTE=new RegExp(A7,"g");Vs.NUMERIC=new RegExp(Gk,"g");Vs.ALPHANUMERIC=new RegExp(T7,"g");const P7=new RegExp("^"+vu+"$"),M7=new RegExp("^"+Gk+"$"),I7=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Vs.testKanji=function(e){return P7.test(e)};Vs.testNumeric=function(e){return M7.test(e)};Vs.testAlphanumeric=function(e){return I7.test(e)};(function(t){const e=hv,n=Vs;t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(r,o){if(!r.ccBits)throw new Error("Invalid mode: "+r);if(!e.isValid(o))throw new Error("Invalid version: "+o);return o>=1&&o<10?r.ccBits[0]:o<27?r.ccBits[1]:r.ccBits[2]},t.getBestModeForData=function(r){return n.testNumeric(r)?t.NUMERIC:n.testAlphanumeric(r)?t.ALPHANUMERIC:n.testKanji(r)?t.KANJI:t.BYTE},t.toString=function(r){if(r&&r.id)return r.id;throw new Error("Invalid mode")},t.isValid=function(r){return r&&r.bit&&r.ccBits};function i(s){if(typeof s!="string")throw new Error("Param is not a string");switch(s.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+s)}}t.from=function(r,o){if(t.isValid(r))return r;try{return i(r)}catch{return o}}})(Co);(function(t){const e=Ri,n=Of,i=Lf,s=Co,r=hv,o=7973,a=e.getBCHDigit(o);function l(h,g,p){for(let m=1;m<=40;m++)if(g<=t.getCapacity(m,p,h))return m}function c(h,g){return s.getCharCountIndicator(h,g)+4}function u(h,g){let p=0;return h.forEach(function(m){const v=c(m.mode,g);p+=v+m.getBitsLength()}),p}function d(h,g){for(let p=1;p<=40;p++)if(u(h,p)<=t.getCapacity(p,g,s.MIXED))return p}t.from=function(g,p){return r.isValid(g)?parseInt(g,10):p},t.getCapacity=function(g,p,m){if(!r.isValid(g))throw new Error("Invalid QR Code version");typeof m>"u"&&(m=s.BYTE);const v=e.getSymbolTotalCodewords(g),y=n.getTotalCodewordsCount(g,p),x=(v-y)*8;if(m===s.MIXED)return x;const E=x-c(m,g);switch(m){case s.NUMERIC:return Math.floor(E/10*3);case s.ALPHANUMERIC:return Math.floor(E/11*2);case s.KANJI:return Math.floor(E/13);case s.BYTE:default:return Math.floor(E/8)}},t.getBestVersionForData=function(g,p){let m;const v=i.from(p,i.M);if(Array.isArray(g)){if(g.length>1)return d(g,v);if(g.length===0)return 1;m=g[0]}else m=g;return l(m.mode,m.getLength(),v)},t.getEncodedBits=function(g){if(!r.isValid(g)||g<7)throw new Error("Invalid QR Code version");let p=g<<12;for(;e.getBCHDigit(p)-a>=0;)p^=o<=0;)s^=qk<0&&(i=this.data.substr(n),s=parseInt(i,10),e.put(s,r*3+1))};var $7=$l;const L7=Co,ap=["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 Ll(t){this.mode=L7.ALPHANUMERIC,this.data=t}Ll.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};Ll.prototype.getLength=function(){return this.data.length};Ll.prototype.getBitsLength=function(){return Ll.getBitsLength(this.data.length)};Ll.prototype.write=function(e){let n;for(n=0;n+2<=this.data.length;n+=2){let i=ap.indexOf(this.data[n])*45;i+=ap.indexOf(this.data[n+1]),e.put(i,11)}this.data.length%2&&e.put(ap.indexOf(this.data[n]),6)};var O7=Ll;const N7=Co;function Ol(t){this.mode=N7.BYTE,typeof t=="string"?this.data=new TextEncoder().encode(t):this.data=new Uint8Array(t)}Ol.getBitsLength=function(e){return e*8};Ol.prototype.getLength=function(){return this.data.length};Ol.prototype.getBitsLength=function(){return Ol.getBitsLength(this.data.length)};Ol.prototype.write=function(t){for(let e=0,n=this.data.length;e=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+` -Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),t.put(n,13)}};var z7=Nl,Jk={exports:{}};(function(t){var e={single_source_shortest_paths:function(n,i,s){var r={},o={};o[i]=0;var a=e.PriorityQueue.make();a.push(i,0);for(var l,c,u,d,h,g,p,m,v;!a.empty();){l=a.pop(),c=l.value,d=l.cost,h=n[c]||{};for(u in h)h.hasOwnProperty(u)&&(g=h[u],p=d+g,m=o[u],v=typeof o[u]>"u",(v||m>p)&&(o[u]=p,a.push(u,p),r[u]=c))}if(typeof s<"u"&&typeof o[s]>"u"){var y=["Could not find a path from ",i," to ",s,"."].join("");throw new Error(y)}return r},extract_shortest_path_from_predecessor_list:function(n,i){for(var s=[],r=i;r;)s.push(r),n[r],r=n[r];return s.reverse(),s},find_path:function(n,i,s){var r=e.single_source_shortest_paths(n,i,s);return e.extract_shortest_path_from_predecessor_list(r,s)},PriorityQueue:{make:function(n){var i=e.PriorityQueue,s={},r;n=n||{};for(r in i)i.hasOwnProperty(r)&&(s[r]=i[r]);return s.queue=[],s.sorter=n.sorter||i.default_sorter,s},default_sorter:function(n,i){return n.cost-i.cost},push:function(n,i){var s={value:n,cost:i};this.queue.push(s),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t.exports=e})(Jk);var W7=Jk.exports;(function(t){const e=Co,n=$7,i=O7,s=F7,r=z7,o=Vs,a=Ri,l=W7;function c(y){return unescape(encodeURIComponent(y)).length}function u(y,x,E){const w=[];let b;for(;(b=y.exec(E))!==null;)w.push({data:b[0],index:b.index,mode:x,length:b[0].length});return w}function d(y){const x=u(o.NUMERIC,e.NUMERIC,y),E=u(o.ALPHANUMERIC,e.ALPHANUMERIC,y);let w,b;return a.isKanjiModeEnabled()?(w=u(o.BYTE,e.BYTE,y),b=u(o.KANJI,e.KANJI,y)):(w=u(o.BYTE_KANJI,e.BYTE,y),b=[]),x.concat(E,w,b).sort(function(k,T){return k.index-T.index}).map(function(k){return{data:k.data,mode:k.mode,length:k.length}})}function h(y,x){switch(x){case e.NUMERIC:return n.getBitsLength(y);case e.ALPHANUMERIC:return i.getBitsLength(y);case e.KANJI:return r.getBitsLength(y);case e.BYTE:return s.getBitsLength(y)}}function g(y){return y.reduce(function(x,E){const w=x.length-1>=0?x[x.length-1]:null;return w&&w.mode===E.mode?(x[x.length-1].data+=E.data,x):(x.push(E),x)},[])}function p(y){const x=[];for(let E=0;E=0&&a<=6&&(l===0||l===6)||l>=0&&l<=6&&(a===0||a===6)||a>=2&&a<=4&&l>=2&&l<=4?t.set(r+a,o+l,!0,!0):t.set(r+a,o+l,!1,!0))}}function Z7(t){const e=t.size;for(let n=8;n>a&1)===1,t.set(s,r,o,!0),t.set(r,s,o,!0)}function up(t,e,n){const i=t.size,s=G7.getEncodedBits(e,n);let r,o;for(r=0;r<15;r++)o=(s>>r&1)===1,r<6?t.set(r,8,o,!0):r<8?t.set(r+1,8,o,!0):t.set(i-15+r,8,o,!0),r<8?t.set(8,i-r-1,o,!0):r<9?t.set(8,15-r-1+1,o,!0):t.set(8,15-r-1,o,!0);t.set(i-8,8,1,!0)}function e9(t,e){const n=t.size;let i=-1,s=n-1,r=7,o=0;for(let a=n-1;a>0;a-=2)for(a===6&&a--;;){for(let l=0;l<2;l++)if(!t.isReserved(s,a-l)){let c=!1;o>>r&1)===1),t.set(s,a-l,c),r--,r===-1&&(o++,r=7)}if(s+=i,s<0||n<=s){s-=i,i=-i;break}}}function t9(t,e,n){const i=new Y7;n.forEach(function(l){i.put(l.mode.bit,4),i.put(l.getLength(),X7.getCharCountIndicator(l.mode,t)),l.write(i)});const s=Ff.getSymbolTotalCodewords(t),r=km.getTotalCodewordsCount(t,e),o=(s-r)*8;for(i.getLengthInBits()+4<=o&&i.put(0,4);i.getLengthInBits()%8!==0;)i.putBit(0);const a=(o-i.getLengthInBits())/8;for(let l=0;lw+b.before.length+b.lines.length+b.after.length,0);if(y+=t.beforeBody.length+t.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),y){const w=e.displayColors?Math.max(a,l.lineHeight):l.lineHeight;m+=g*w+(y-g)*l.lineHeight+(y-1)*e.bodySpacing}f&&(m+=e.footerMarginTop+f*u.lineHeight+(f-1)*e.footerSpacing);let x=0;const E=function(w){v=Math.max(v,n.measureText(w).width+x)};return n.save(),n.font=c.string,Tt(t.title,E),n.font=l.string,Tt(t.beforeBody.concat(t.afterBody),E),x=e.displayColors?o+2+e.boxPadding:0,Tt(i,w=>{Tt(w.before,E),Tt(w.lines,E),Tt(w.after,E)}),x=0,n.font=u.string,Tt(t.footer,E),n.restore(),v+=p.width,{width:v,height:m}}function nU(t,e){const{y:n,height:i}=e;return nt.height-i/2?"bottom":"center"}function iU(t,e,n,i){const{x:s,width:r}=i,o=n.caretSize+n.caretPadding;if(t==="left"&&s+r+o>e.width||t==="right"&&s-r-o<0)return!0}function sU(t,e,n,i){const{x:s,width:r}=n,{width:o,chartArea:{left:a,right:l}}=t;let c="center";return i==="center"?c=s<=(a+l)/2?"left":"right":s<=r/2?c="left":s>=o-r/2&&(c="right"),iU(c,t,e,n)&&(c="center"),c}function L1(t,e,n){const i=n.yAlign||e.yAlign||nU(t,n);return{xAlign:n.xAlign||e.xAlign||sU(t,e,n,i),yAlign:i}}function rU(t,e){let{x:n,width:i}=t;return e==="right"?n-=i:e==="center"&&(n-=i/2),n}function oU(t,e,n){let{y:i,height:s}=t;return e==="top"?i+=n:e==="bottom"?i-=s+n:i-=s/2,i}function O1(t,e,n,i){const{caretSize:s,caretPadding:r,cornerRadius:o}=t,{xAlign:a,yAlign:l}=n,c=s+r,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:g}=ra(o);let p=rU(e,a);const m=oU(e,l,c);return l==="center"?a==="left"?p+=c:a==="right"&&(p-=c):a==="left"?p-=Math.max(u,f)+s:a==="right"&&(p+=Math.max(d,g)+s),{x:Dn(p,0,i.width-e.width),y:Dn(m,0,i.height-e.height)}}function Bd(t,e,n){const i=Zn(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-i.right:t.x+i.left}function N1(t){return bs([],Js(t))}function aU(t,e,n){return wo(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function F1(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const Sk={beforeTitle:Us,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex"u"?Sk[e].call(n,i):s}class B1 extends xr{static positioners=kc;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,i=this.options.setContext(this.getContext()),s=i.enabled&&n.options.animation&&i.animations,r=new nk(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=aU(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:i}=n,s=hi(i,"beforeTitle",this,e),r=hi(i,"title",this,e),o=hi(i,"afterTitle",this,e);let a=[];return a=bs(a,Js(s)),a=bs(a,Js(r)),a=bs(a,Js(o)),a}getBeforeBody(e,n){return N1(hi(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:i}=n,s=[];return Tt(e,r=>{const o={before:[],lines:[],after:[]},a=F1(i,r);bs(o.before,Js(hi(a,"beforeLabel",this,r))),bs(o.lines,hi(a,"label",this,r)),bs(o.after,Js(hi(a,"afterLabel",this,r))),s.push(o)}),s}getAfterBody(e,n){return N1(hi(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:i}=n,s=hi(i,"beforeFooter",this,e),r=hi(i,"footer",this,e),o=hi(i,"afterFooter",this,e);let a=[];return a=bs(a,Js(s)),a=bs(a,Js(r)),a=bs(a,Js(o)),a}_createItems(e){const n=this._active,i=this.chart.data,s=[],r=[],o=[];let a=[],l,c;for(l=0,c=n.length;le.filter(u,d,f,i))),e.itemSort&&(a=a.sort((u,d)=>e.itemSort(u,d,i))),Tt(a,u=>{const d=F1(e.callbacks,u);s.push(hi(d,"labelColor",this,u)),r.push(hi(d,"labelPointStyle",this,u)),o.push(hi(d,"labelTextColor",this,u))}),this.labelColors=s,this.labelPointStyles=r,this.labelTextColors=o,this.dataPoints=a,a}update(e,n){const i=this.options.setContext(this.getContext()),s=this._active;let r,o=[];if(!s.length)this.opacity!==0&&(r={opacity:0});else{const a=kc[i.position].call(this,s,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const l=this._size=$1(this,i),c=Object.assign({},a,l),u=L1(this.chart,i,c),d=O1(i,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,r={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=o,this.$context=void 0,r&&this._resolveAnimations().update(this,r),e&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,i,s){const r=this.getCaretPosition(e,i,s);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)}getCaretPosition(e,n,i){const{xAlign:s,yAlign:r}=this,{caretSize:o,cornerRadius:a}=i,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=ra(a),{x:f,y:g}=e,{width:p,height:m}=n;let v,y,x,E,w,b;return r==="center"?(w=g+m/2,s==="left"?(v=f,y=v-o,E=w+o,b=w-o):(v=f+p,y=v+o,E=w-o,b=w+o),x=v):(s==="left"?y=f+Math.max(l,u)+o:s==="right"?y=f+p-Math.max(c,d)-o:y=this.caretX,r==="top"?(E=g,w=E-o,v=y-o,x=y+o):(E=g+m,w=E+o,v=y+o,x=y-o),b=E),{x1:v,x2:y,x3:x,y1:E,y2:w,y3:b}}drawTitle(e,n,i){const s=this.title,r=s.length;let o,a,l;if(r){const c=ul(i.rtl,this.x,this.width);for(e.x=Bd(this,i.titleAlign,i),n.textAlign=c.textAlign(i.titleAlign),n.textBaseline="middle",o=En(i.titleFont),a=i.titleSpacing,n.fillStyle=i.titleColor,n.font=o.string,l=0;lx!==0)?(e.beginPath(),e.fillStyle=r.multiKeyBackground,pu(e,{x:m,y:p,w:c,h:l,radius:y}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),pu(e,{x:v,y:p+1,w:c-2,h:l-2,radius:y}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(m,p,c,l),e.strokeRect(m,p,c,l),e.fillStyle=o.backgroundColor,e.fillRect(v,p+1,c-2,l-2))}e.fillStyle=this.labelTextColors[i]}drawBody(e,n,i){const{body:s}=this,{bodySpacing:r,bodyAlign:o,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:u}=i,d=En(i.bodyFont);let f=d.lineHeight,g=0;const p=ul(i.rtl,this.x,this.width),m=function(T){n.fillText(T,p.x(e.x+g),e.y+f/2),e.y+=f+r},v=p.textAlign(o);let y,x,E,w,b,C,k;for(n.textAlign=o,n.textBaseline="middle",n.font=d.string,e.x=Bd(this,v,i),n.fillStyle=i.bodyColor,Tt(this.beforeBody,m),g=a&&v!=="right"?o==="center"?c/2+u:c+2+u:0,w=0,C=s.length;w0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,i=this.$animations,s=i&&i.x,r=i&&i.y;if(s||r){const o=kc[e.position].call(this,this._active,this._eventPosition);if(!o)return;const a=this._size=$1(this,e),l=Object.assign({},o,this._size),c=L1(n,e,l),u=O1(e,l,c,n);(s._to!==u.x||r._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(n);const s={width:this.width,height:this.height},r={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=Zn(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(e.save(),e.globalAlpha=i,this.drawBackground(r,e,s,n),ZS(e,n.textDirection),r.y+=o.top,this.drawTitle(r,e,n),this.drawBody(r,e,n),this.drawFooter(r,e,n),JS(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const i=this._active,s=e.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}}),r=!Ah(i,s),o=this._positionChanged(s,n);(r||o)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,i=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,r=this._active||[],o=this._getActiveElements(e,r,n,i),a=this._positionChanged(o,e),l=n||!Ah(o,r)||a;return l&&(this._active=o,(s.enabled||s.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,i,s){const r=this.options;if(e.type==="mouseout")return[];if(!s)return n.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const o=this.chart.getElementsAtEventForMode(e,r.mode,r,i);return r.reverse&&o.reverse(),o}_positionChanged(e,n){const{caretX:i,caretY:s,options:r}=this,o=kc[r.position].call(this,e,n);return o!==!1&&(i!==o.x||s!==o.y)}}var lU={id:"tooltip",_element:B1,positioners:kc,afterInit(t,e,n){n&&(t.tooltip=new B1({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Sk},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const cU=(t,e,n,i)=>(typeof e=="string"?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function uU(t,e,n,i){const s=t.indexOf(e);if(s===-1)return cU(t,e,n,i);const r=t.lastIndexOf(e);return s!==r?n:s}const dU=(t,e)=>t===null?null:Dn(Math.round(t),0,e);function V1(t){const e=this.getLabels();return t>=0&&tn.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}function fU(t,e){const n=[],{bounds:s,step:r,min:o,max:a,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:f}=t,g=r||1,p=u-1,{min:m,max:v}=e,y=!gt(o),x=!gt(a),E=!gt(c),w=(v-m)/(d+1);let b=L0((v-m)/p/g)*g,C,k,T,A;if(b<1e-14&&!y&&!x)return[{value:m},{value:v}];A=Math.ceil(v/b)-Math.floor(m/b),A>p&&(b=L0(A*b/p/g)*g),gt(l)||(C=Math.pow(10,l),b=Math.ceil(b*C)/C),s==="ticks"?(k=Math.floor(m/b)*b,T=Math.ceil(v/b)*b):(k=m,T=v),y&&x&&r&&lY((a-o)/r,b/1e3)?(A=Math.round(Math.min((a-o)/b,u)),b=(a-o)/A,k=o,T=a):E?(k=y?o:k,T=x?a:T,A=c-1,b=(T-k)/A):(A=(T-k)/b,Uc(A,Math.round(A),b/1e3)?A=Math.round(A):A=Math.ceil(A));const I=Math.max(O0(b),O0(k));C=Math.pow(10,gt(l)?I:l),k=Math.round(k*C)/C,T=Math.round(T*C)/C;let V=0;for(y&&(f&&k!==o?(n.push({value:o}),ka)break;n.push({value:Y})}return x&&f&&T!==a?n.length&&Uc(n[n.length-1].value,a,z1(a,w,t))?n[n.length-1].value=a:n.push({value:a}):(!x||T===a)&&n.push({value:T}),n}function z1(t,e,{horizontal:n,minRotation:i}){const s=ls(i),r=(n?Math.sin(s):Math.cos(s))||.001,o=.75*e*(""+t).length;return Math.min(e/r,o)}class Lh extends ba{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return gt(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:i}=this.getUserBounds();let{min:s,max:r}=this;const o=l=>s=n?s:l,a=l=>r=i?r:l;if(e){const l=Os(s),c=Os(r);l<0&&c<0?a(0):l>0&&c>0&&o(0)}if(s===r){let l=r===0?1:Math.abs(r*.05);a(r+l),e||o(s-l)}this.min=s,this.max=r}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:i}=e,s;return i?(s=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,s>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${s} ticks. Limiting to 1000.`),s=1e3)):(s=this.computeTickLimit(),n=n||11),n&&(s=Math.min(n,s)),s}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let i=this.getTickLimit();i=Math.max(2,i);const s={maxTicks:i,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},r=this._range||this,o=fU(s,r);return e.bounds==="ticks"&&$S(o,this,"value"),e.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const e=this.ticks;let n=this.min,i=this.max;if(super.configure(),this.options.offset&&e.length){const s=(i-n)/Math.max(e.length-1,1)/2;n-=s,i+=s}this._startValue=n,this._endValue=i,this._valueRange=i-n}getLabelForValue(e){return Uu(e,this.chart.options.locale,this.options.ticks.format)}}class gU extends Lh{static id="linear";static defaults={ticks:{callback:Af.formatters.numeric}};determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=nn(e)?e:0,this.max=nn(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,i=ls(this.options.ticks.minRotation),s=(e?Math.sin(i):Math.cos(i))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,r.lineHeight/s))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}const _u=t=>Math.floor(Gr(t)),Bo=(t,e)=>Math.pow(10,_u(t)+e);function W1(t){return t/Math.pow(10,_u(t))===1}function Y1(t,e,n){const i=Math.pow(10,n),s=Math.floor(t/i);return Math.ceil(e/i)-s}function pU(t,e){const n=e-t;let i=_u(n);for(;Y1(t,e,i)>10;)i++;for(;Y1(t,e,i)<10;)i--;return Math.min(i,_u(t))}function mU(t,{min:e,max:n}){e=Si(t.min,e);const i=[],s=_u(e);let r=pU(e,n),o=r<0?Math.pow(10,Math.abs(r)):1;const a=Math.pow(10,r),l=s>r?Math.pow(10,s):0,c=Math.round((e-l)*o)/o,u=Math.floor((e-l)/a/10)*a*10;let d=Math.floor((c-u)/Math.pow(10,r)),f=Si(t.min,Math.round((l+u+d*Math.pow(10,r))*o)/o);for(;f=10?d=d<15?15:20:d++,d>=20&&(r++,d=2,o=r>=0?1:o),f=Math.round((l+u+d*Math.pow(10,r))*o)/o;const g=Si(t.max,f);return i.push({value:g,major:W1(g),significand:d}),i}class _U extends ba{static id="logarithmic";static defaults={ticks:{callback:Af.formatters.logarithmic,major:{enabled:!0}}};constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,n){const i=Lh.prototype.parse.apply(this,[e,n]);if(i===0){this._zero=!0;return}return nn(i)&&i>0?i:null}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=nn(e)?Math.max(0,e):null,this.max=nn(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!nn(this._userMin)&&(this.min=e===Bo(this.min,0)?Bo(this.min,-1):Bo(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let i=this.min,s=this.max;const r=a=>i=e?i:a,o=a=>s=n?s:a;i===s&&(i<=0?(r(1),o(10)):(r(Bo(i,-1)),o(Bo(s,1)))),i<=0&&r(Bo(s,-1)),s<=0&&o(Bo(i,1)),this.min=i,this.max=s}buildTicks(){const e=this.options,n={min:this._userMin,max:this._userMax},i=mU(n,this);return e.bounds==="ticks"&&$S(i,this,"value"),e.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(e){return e===void 0?"0":Uu(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=Gr(e),this._valueRange=Gr(this.max)-Gr(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(Gr(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const n=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+n*this._valueRange)}}function mm(t){const e=t.ticks;if(e.display&&t.display){const n=Zn(e.backdropPadding);return it(e.font&&e.font.size,sn.font.size)+n.height}return 0}function vU(t,e,n){return n=Yt(n)?n:[n],{w:SY(t,e.string,n),h:n.length*e.lineHeight}}function H1(t,e,n,i,s){return t===i||t===s?{start:e-n/2,end:e+n/2}:ts?{start:e-n,end:e}:{start:e,end:e+n}}function yU(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),i=[],s=[],r=t._pointLabels.length,o=t.options.pointLabels,a=o.centerPointLabels?Bt/r:0;for(let l=0;le.r&&(a=(i.end-e.r)/r,t.r=Math.max(t.r,e.r+a)),s.starte.b&&(l=(s.end-e.b)/o,t.b=Math.max(t.b,e.b+l))}function wU(t,e,n){const i=t.drawingArea,{extra:s,additionalAngle:r,padding:o,size:a}=n,l=t.getPointPosition(e,i+s+o,r),c=Math.round(Z_(ki(l.angle+dn))),u=kU(l.y,a.h,c),d=CU(c),f=SU(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 xU(t,e){if(!e)return!0;const{left:n,top:i,right:s,bottom:r}=t;return!(ur({x:n,y:i},e)||ur({x:n,y:r},e)||ur({x:s,y:i},e)||ur({x:s,y:r},e))}function EU(t,e,n){const i=[],s=t._pointLabels.length,r=t.options,{centerPointLabels:o,display:a}=r.pointLabels,l={extra:mm(r)/2,additionalAngle:o?Bt/s:0};let c;for(let u=0;u270||n<90)&&(t-=e),t}function TU(t,e,n){const{left:i,top:s,right:r,bottom:o}=n,{backdropColor:a}=e;if(!gt(a)){const l=ra(e.borderRadius),c=Zn(e.backdropPadding);t.fillStyle=a;const u=i-c.left,d=s-c.top,f=r-i+c.width,g=o-s+c.height;Object.values(l).some(p=>p!==0)?(t.beginPath(),pu(t,{x:u,y:d,w:f,h:g,radius:l}),t.fill()):t.fillRect(u,d,f,g)}}function AU(t,e){const{ctx:n,options:{pointLabels:i}}=t;for(let s=e-1;s>=0;s--){const r=t._pointLabelItems[s];if(!r.visible)continue;const o=i.setContext(t.getPointLabelContext(s));TU(n,o,r);const a=En(o.font),{x:l,y:c,textAlign:u}=r;ga(n,t._pointLabels[s],l,c+a.lineHeight/2,a,{color:o.color,textAlign:u,textBaseline:"middle"})}}function kk(t,e,n,i){const{ctx:s}=t;if(n)s.arc(t.xCenter,t.yCenter,e,0,Ft);else{let r=t.getPointPosition(0,e);s.moveTo(r.x,r.y);for(let o=1;o{const s=$t(this.options.pointLabels.callback,[n,i],this);return s||s===0?s:""}).filter((n,i)=>this.chart.getDataVisibility(i))}fit(){const e=this.options;e.display&&e.pointLabels.display?yU(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,n,i,s){this.xCenter+=Math.floor((e-n)/2),this.yCenter+=Math.floor((i-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,n,i,s))}getIndexAngle(e){const n=Ft/(this._pointLabels.length||1),i=this.options.startAngle||0;return ki(e*n+ls(i))}getDistanceFromCenterForValue(e){if(gt(e))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*n:(e-this.min)*n}getValueForDistanceFromCenter(e){if(gt(e))return NaN;const n=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(e){const n=this._pointLabels||[];if(e>=0&&e{if(d!==0||d===0&&this.min<0){l=this.getDistanceFromCenterForValue(u.value);const f=this.getContext(d),g=s.setContext(f),p=r.setContext(f);PU(this,g,l,o,p)}}),i.display){for(e.save(),a=o-1;a>=0;a--){const u=i.setContext(this.getPointLabelContext(a)),{color:d,lineWidth:f}=u;!f||!d||(e.lineWidth=f,e.strokeStyle=d,e.setLineDash(u.borderDash),e.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(n.reverse?this.min:this.max),c=this.getPointPosition(a,l),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(c.x,c.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,n=this.options,i=n.ticks;if(!i.display)return;const s=this.getIndexAngle(0);let r,o;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(s),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&this.min>=0&&!n.reverse)return;const c=i.setContext(this.getContext(l)),u=En(c.font);if(r=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){e.font=u.string,o=e.measureText(a.label).width,e.fillStyle=c.backdropColor;const d=Zn(c.backdropPadding);e.fillRect(-o/2-d.left,-r-u.size/2-d.top,o+d.width,u.size+d.height)}ga(e,a.label,0,-r,u,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),e.restore()}drawTitle(){}}const $f={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}},_i=Object.keys($f);function j1(t,e){return t-e}function K1(t,e){if(gt(e))return null;const n=t._adapter,{parser:i,round:s,isoWeekday:r}=t._parseOpts;let o=e;return typeof i=="function"&&(o=i(o)),nn(o)||(o=typeof i=="string"?n.parse(o,i):n.parse(o)),o===null?null:(s&&(o=s==="week"&&(Il(r)||r===!0)?n.startOf(o,"isoWeek",r):n.startOf(o,s)),+o)}function U1(t,e,n,i){const s=_i.length;for(let r=_i.indexOf(t);r=_i.indexOf(n);r--){const o=_i[r];if($f[o].common&&t._adapter.diff(s,i,o)>=e-1)return o}return _i[n?_i.indexOf(n):0]}function RU(t){for(let e=_i.indexOf(t)+1,n=_i.length;e=e?n[i]:n[s];t[r]=!0}}function $U(t,e,n,i){const s=t._adapter,r=+s.startOf(e[0].value,i),o=e[e.length-1].value;let a,l;for(a=r;a<=o;a=+s.add(a,1,i))l=n[a],l>=0&&(e[l].major=!0);return e}function X1(t,e,n){const i=[],s={},r=e.length;let o,a;for(o=0;o+e.value))}initOffsets(e=[]){let n=0,i=0,s,r;this.options.offset&&e.length&&(s=this.getDecimalForValue(e[0]),e.length===1?n=1-s:n=(this.getDecimalForValue(e[1])-s)/2,r=this.getDecimalForValue(e[e.length-1]),e.length===1?i=r:i=(r-this.getDecimalForValue(e[e.length-2]))/2);const o=e.length<3?.5:.25;n=Dn(n,0,o),i=Dn(i,0,o),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){const e=this._adapter,n=this.min,i=this.max,s=this.options,r=s.time,o=r.unit||U1(r.minUnit,n,i,this._getLabelCapacity(n)),a=it(s.ticks.stepSize,1),l=o==="week"?r.isoWeekday:!1,c=Il(l)||l===!0,u={};let d=n,f,g;if(c&&(d=+e.startOf(d,"isoWeek",l)),d=+e.startOf(d,c?"day":o),e.diff(i,n,o)>1e5*a)throw new Error(n+" and "+i+" are too far apart with stepSize of "+a+" "+o);const p=s.ticks.source==="data"&&this.getDataTimestamps();for(f=d,g=0;f+m)}getLabelForValue(e){const n=this._adapter,i=this.options.time;return i.tooltipFormat?n.format(e,i.tooltipFormat):n.format(e,i.displayFormats.datetime)}format(e,n){const s=this.options.time.displayFormats,r=this._unit,o=n||s[r];return this._adapter.format(e,o)}_tickFormatFunction(e,n,i,s){const r=this.options,o=r.ticks.callback;if(o)return $t(o,[e,n,i],this);const a=r.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&a[l],d=c&&a[c],f=i[n],g=c&&d&&f&&f.major;return this._adapter.format(e,s||(g?d:u))}generateTickLabels(e){let n,i,s;for(n=0,i=e.length;n0?a:1}getDataTimestamps(){let e=this._cache.data||[],n,i;if(e.length)return e;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,i=s.length;n=t[i].pos&&e<=t[s].pos&&({lo:i,hi:s}=cr(t,"pos",e)),{pos:r,time:a}=t[i],{pos:o,time:l}=t[s]):(e>=t[i].time&&e<=t[s].time&&({lo:i,hi:s}=cr(t,"time",e)),{time:r,pos:a}=t[i],{time:o,pos:l}=t[s]);const c=o-r;return c?a+(l-a)*(e-r)/c:a}class LU extends _m{static id="timeseries";static defaults=_m.defaults;constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=Vd(n,this.min),this._tableRange=Vd(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:i}=this,s=[],r=[];let o,a,l,c,u;for(o=0,a=e.length;o=n&&c<=i&&s.push(c);if(s.length<2)return[{time:n,pos:0},{time:i,pos:1}];for(o=0,a=s.length;os-r)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),i=this.getLabelTimestamps();return n.length&&i.length?e=this.normalize(n.concat(i)):e=n.length?n:i,e=this._cache.all=e,e}getDecimalForValue(e){return(Vd(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,i=this.getDecimalForPixel(e)/n.factor-n.end;return Vd(this._table,i*this._tableRange+this._minPos,!0)}}const Tk={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},OU={ariaLabel:{type:String},ariaDescribedby:{type:String}},NU={type:{type:String,required:!0},destroyDelay:{type:Number,default:0},...Tk,...OU},FU=ZE[0]==="2"?(t,e)=>Object.assign(t,{attrs:e}):(t,e)=>Object.assign(t,e);function Fa(t){return Ou(t)?lt(t):t}function BU(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t;return Ou(e)?new Proxy(t,{}):t}function VU(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function Ak(t,e){t.labels=e}function Pk(t,e,n){const i=[];t.datasets=e.map(s=>{const r=t.datasets.find(o=>o[n]===s[n]);return!r||!s.data||i.includes(r)?{...s}:(i.push(r),Object.assign(r,s),r)})}function zU(t,e){const n={labels:[],datasets:[]};return Ak(n,t.labels),Pk(n,t.datasets,e),n}const WU=fn({props:NU,setup(t,e){let{expose:n,slots:i}=e;const s=me(null),r=df(null);n({chart:r});const o=()=>{if(!s.value)return;const{type:c,data:u,options:d,plugins:f,datasetIdKey:g}=t,p=zU(u,g),m=BU(p,u);r.value=new Df(s.value,{type:c,data:m,options:{...d},plugins:f})},a=()=>{const c=lt(r.value);c&&(t.destroyDelay>0?setTimeout(()=>{c.destroy(),r.value=null},t.destroyDelay):(c.destroy(),r.value=null))},l=c=>{c.update(t.updateMode)};return Vt(o),_o(a),Zt([()=>t.options,()=>t.data],(c,u)=>{let[d,f]=c,[g,p]=u;const m=lt(r.value);if(!m)return;let v=!1;if(d){const y=Fa(d),x=Fa(g);y&&y!==x&&(VU(m,y),v=!0)}if(f){const y=Fa(f.labels),x=Fa(p.labels),E=Fa(f.datasets),w=Fa(p.datasets);y!==x&&(Ak(m.config.data,y),v=!0),E&&E!==w&&(Pk(m.config.data,E,t.datasetIdKey),v=!0)}v&&Rn(()=>{l(m)})},{deep:!0}),()=>ha("canvas",{role:"img",ariaLabel:t.ariaLabel,ariaDescribedby:t.ariaDescribedby,ref:s},[ha("p",{},[i.default?i.default():""])])}});function Mk(t,e){return Df.register(e),fn({props:Tk,setup(n,i){let{expose:s}=i;const r=df(null),o=a=>{r.value=a?.chart};return s({chart:r}),()=>ha(WU,FU({ref:o},{type:t,...n}))}})}const YU=Mk("bar",rk),HU=Mk("line",ak);function yr(t){return Array.isArray?Array.isArray(t):Rk(t)==="[object Array]"}const jU=1/0;function KU(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-jU?"-0":e}function UU(t){return t==null?"":KU(t)}function Ps(t){return typeof t=="string"}function Ik(t){return typeof t=="number"}function GU(t){return t===!0||t===!1||XU(t)&&Rk(t)=="[object Boolean]"}function Dk(t){return typeof t=="object"}function XU(t){return Dk(t)&&t!==null}function Ti(t){return t!=null}function op(t){return!t.trim().length}function Rk(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const qU="Incorrect 'index' type",ZU=t=>`Invalid value for key ${t}`,JU=t=>`Pattern length exceeds max of ${t}.`,QU=t=>`Missing ${t} property in key`,eG=t=>`Property 'weight' in key '${t}' must be a positive integer`,q1=Object.prototype.hasOwnProperty;class tG{constructor(e){this._keys=[],this._keyMap={};let n=0;e.forEach(i=>{let s=$k(i);this._keys.push(s),this._keyMap[s.id]=s,n+=s.weight}),this._keys.forEach(i=>{i.weight/=n})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function $k(t){let e=null,n=null,i=null,s=1,r=null;if(Ps(t)||yr(t))i=t,e=Z1(t),n=vm(t);else{if(!q1.call(t,"name"))throw new Error(QU("name"));const o=t.name;if(i=o,q1.call(t,"weight")&&(s=t.weight,s<=0))throw new Error(eG(o));e=Z1(o),n=vm(o),r=t.getFn}return{path:e,id:n,weight:s,src:i,getFn:r}}function Z1(t){return yr(t)?t:t.split(".")}function vm(t){return yr(t)?t.join("."):t}function nG(t,e){let n=[],i=!1;const s=(r,o,a)=>{if(Ti(r))if(!o[a])n.push(r);else{let l=o[a];const c=r[l];if(!Ti(c))return;if(a===o.length-1&&(Ps(c)||Ik(c)||GU(c)))n.push(UU(c));else if(yr(c)){i=!0;for(let u=0,d=c.length;ut.score===e.score?t.idx{this._keysMap[n.id]=i})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Ps(this.docs[0])?this.docs.forEach((e,n)=>{this._addString(e,n)}):this.docs.forEach((e,n)=>{this._addObject(e,n)}),this.norm.clear())}add(e){const n=this.size();Ps(e)?this._addString(e,n):this._addObject(e,n)}removeAt(e){this.records.splice(e,1);for(let n=e,i=this.size();n{let o=s.getFn?s.getFn(e):this.getFn(e,s.path);if(Ti(o)){if(yr(o)){let a=[];const l=[{nestedArrIndex:-1,value:o}];for(;l.length;){const{nestedArrIndex:c,value:u}=l.pop();if(Ti(u))if(Ps(u)&&!op(u)){let d={v:u,i:c,n:this.norm.get(u)};a.push(d)}else yr(u)&&u.forEach((d,f)=>{l.push({nestedArrIndex:f,value:d})})}i.$[r]=a}else if(Ps(o)&&!op(o)){let a={v:o,n:this.norm.get(o)};i.$[r]=a}}}),this.records.push(i)}toJSON(){return{keys:this.keys,records:this.records}}}function Lk(t,e,{getFn:n=Qe.getFn,fieldNormWeight:i=Qe.fieldNormWeight}={}){const s=new cv({getFn:n,fieldNormWeight:i});return s.setKeys(t.map($k)),s.setSources(e),s.create(),s}function cG(t,{getFn:e=Qe.getFn,fieldNormWeight:n=Qe.fieldNormWeight}={}){const{keys:i,records:s}=t,r=new cv({getFn:e,fieldNormWeight:n});return r.setKeys(i),r.setIndexRecords(s),r}function zd(t,{errors:e=0,currentLocation:n=0,expectedLocation:i=0,distance:s=Qe.distance,ignoreLocation:r=Qe.ignoreLocation}={}){const o=e/t.length;if(r)return o;const a=Math.abs(i-n);return s?o+a/s:a?1:o}function uG(t=[],e=Qe.minMatchCharLength){let n=[],i=-1,s=-1,r=0;for(let o=t.length;r=e&&n.push([i,s]),i=-1)}return t[r-1]&&r-i>=e&&n.push([i,r-1]),n}const Go=32;function dG(t,e,n,{location:i=Qe.location,distance:s=Qe.distance,threshold:r=Qe.threshold,findAllMatches:o=Qe.findAllMatches,minMatchCharLength:a=Qe.minMatchCharLength,includeMatches:l=Qe.includeMatches,ignoreLocation:c=Qe.ignoreLocation}={}){if(e.length>Go)throw new Error(JU(Go));const u=e.length,d=t.length,f=Math.max(0,Math.min(i,d));let g=r,p=f;const m=a>1||l,v=m?Array(d):[];let y;for(;(y=t.indexOf(e,p))>-1;){let k=zd(e,{currentLocation:y,expectedLocation:f,distance:s,ignoreLocation:c});if(g=Math.min(k,g),p=y+u,m){let T=0;for(;T=I;N-=1){let B=N-1,R=n[t.charAt(B)];if(m&&(v[B]=+!!R),Y[N]=(Y[N+1]<<1|1)&R,k&&(Y[N]|=(x[N+1]|x[N])<<1|1|x[N+1]),Y[N]&b&&(E=zd(e,{errors:k,currentLocation:B,expectedLocation:f,distance:s,ignoreLocation:c}),E<=g)){if(g=E,p=B,p<=f)break;I=Math.max(1,2*f-p)}}if(zd(e,{errors:k+1,currentLocation:f,expectedLocation:f,distance:s,ignoreLocation:c})>g)break;x=Y}const C={isMatch:p>=0,score:Math.max(.001,E)};if(m){const k=uG(v,a);k.length?l&&(C.indices=k):C.isMatch=!1}return C}function hG(t){let e={};for(let n=0,i=t.length;n{this.chunks.push({pattern:f,alphabet:hG(f),startIndex:g})},d=this.pattern.length;if(d>Go){let f=0;const g=d%Go,p=d-g;for(;f{const{isMatch:y,score:x,indices:E}=dG(e,p,m,{location:s+v,distance:r,threshold:o,findAllMatches:a,minMatchCharLength:l,includeMatches:i,ignoreLocation:c});y&&(f=!0),d+=x,y&&E&&(u=[...u,...E])});let g={isMatch:f,score:f?d/this.chunks.length:1};return f&&i&&(g.indices=u),g}}class Eo{constructor(e){this.pattern=e}static isMultiMatch(e){return J1(e,this.multiRegex)}static isSingleMatch(e){return J1(e,this.singleRegex)}search(){}}function J1(t,e){const n=t.match(e);return n?n[1]:null}class fG extends Eo{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const n=e===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class gG extends Eo{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const i=e.indexOf(this.pattern)===-1;return{isMatch:i,score:i?0:1,indices:[0,e.length-1]}}}class pG extends Eo{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const n=e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class mG extends Eo{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const n=!e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class _G extends Eo{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const n=e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class vG extends Eo{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const n=!e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class Nk extends Eo{constructor(e,{location:n=Qe.location,threshold:i=Qe.threshold,distance:s=Qe.distance,includeMatches:r=Qe.includeMatches,findAllMatches:o=Qe.findAllMatches,minMatchCharLength:a=Qe.minMatchCharLength,isCaseSensitive:l=Qe.isCaseSensitive,ignoreLocation:c=Qe.ignoreLocation}={}){super(e),this._bitapSearch=new Ok(e,{location:n,threshold:i,distance:s,includeMatches:r,findAllMatches:o,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class Fk extends Eo{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let n=0,i;const s=[],r=this.pattern.length;for(;(i=e.indexOf(this.pattern,n))>-1;)n=i+r,s.push([i,n-1]);const o=!!s.length;return{isMatch:o,score:o?0:1,indices:s}}}const ym=[fG,Fk,pG,mG,vG,_G,gG,Nk],Q1=ym.length,yG=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,bG="|";function wG(t,e={}){return t.split(bG).map(n=>{let i=n.trim().split(yG).filter(r=>r&&!!r.trim()),s=[];for(let r=0,o=i.length;r!!(t[Oh.AND]||t[Oh.OR]),SG=t=>!!t[xm.PATH],kG=t=>!yr(t)&&Dk(t)&&!Em(t),ew=t=>({[Oh.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function Bk(t,e,{auto:n=!0}={}){const i=s=>{let r=Object.keys(s);const o=SG(s);if(!o&&r.length>1&&!Em(s))return i(ew(s));if(kG(s)){const l=o?s[xm.PATH]:r[0],c=o?s[xm.PATTERN]:s[l];if(!Ps(c))throw new Error(ZU(l));const u={keyId:vm(l),pattern:c};return n&&(u.searcher=wm(c,e)),u}let a={children:[],operator:r[0]};return r.forEach(l=>{const c=s[l];yr(c)&&c.forEach(u=>{a.children.push(i(u))})}),a};return Em(t)||(t=ew(t)),i(t)}function TG(t,{ignoreFieldNorm:e=Qe.ignoreFieldNorm}){t.forEach(n=>{let i=1;n.matches.forEach(({key:s,norm:r,score:o})=>{const a=s?s.weight:null;i*=Math.pow(o===0&&a?Number.EPSILON:o,(a||1)*(e?1:r))}),n.score=i})}function AG(t,e){const n=t.matches;e.matches=[],Ti(n)&&n.forEach(i=>{if(!Ti(i.indices)||!i.indices.length)return;const{indices:s,value:r}=i;let o={indices:s,value:r};i.key&&(o.key=i.key.src),i.idx>-1&&(o.refIndex=i.idx),e.matches.push(o)})}function PG(t,e){e.score=t.score}function MG(t,e,{includeMatches:n=Qe.includeMatches,includeScore:i=Qe.includeScore}={}){const s=[];return n&&s.push(AG),i&&s.push(PG),t.map(r=>{const{idx:o}=r,a={item:e[o],refIndex:o};return s.length&&s.forEach(l=>{l(r,a)}),a})}class Xl{constructor(e,n={},i){this.options={...Qe,...n},this.options.useExtendedSearch,this._keyStore=new tG(this.options.keys),this.setCollection(e,i)}setCollection(e,n){if(this._docs=e,n&&!(n instanceof cv))throw new Error(qU);this._myIndex=n||Lk(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){Ti(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const n=[];for(let i=0,s=this._docs.length;i-1&&(l=l.slice(0,n)),MG(l,this._docs,{includeMatches:i,includeScore:s})}_searchStringList(e){const n=wm(e,this.options),{records:i}=this._myIndex,s=[];return i.forEach(({v:r,i:o,n:a})=>{if(!Ti(r))return;const{isMatch:l,score:c,indices:u}=n.searchIn(r);l&&s.push({item:r,idx:o,matches:[{score:c,value:r,norm:a,indices:u}]})}),s}_searchLogical(e){const n=Bk(e,this.options),i=(a,l,c)=>{if(!a.children){const{keyId:d,searcher:f}=a,g=this._findMatches({key:this._keyStore.get(d),value:this._myIndex.getValueForItemAtKeyId(l,d),searcher:f});return g&&g.length?[{idx:c,item:l,matches:g}]:[]}const u=[];for(let d=0,f=a.children.length;d{if(Ti(a)){let c=i(n,a,l);c.length&&(r[l]||(r[l]={idx:l,item:a,matches:[]},o.push(r[l])),c.forEach(({matches:u})=>{r[l].matches.push(...u)}))}}),o}_searchObjectList(e){const n=wm(e,this.options),{keys:i,records:s}=this._myIndex,r=[];return s.forEach(({$:o,i:a})=>{if(!Ti(o))return;let l=[];i.forEach((c,u)=>{l.push(...this._findMatches({key:c,value:o[u],searcher:n}))}),l.length&&r.push({idx:a,item:o,matches:l})}),r}_findMatches({key:e,value:n,searcher:i}){if(!Ti(n))return[];let s=[];if(yr(n))n.forEach(({v:r,i:o,n:a})=>{if(!Ti(r))return;const{isMatch:l,score:c,indices:u}=i.searchIn(r);l&&s.push({score:c,key:e,value:r,idx:o,norm:a,indices:u})});else{const{v:r,n:o}=n,{isMatch:a,score:l,indices:c}=i.searchIn(r);a&&s.push({score:l,key:e,value:r,norm:o,indices:c})}return s}}Xl.version="7.0.0";Xl.createIndex=Lk;Xl.parseIndex=cG;Xl.config=Qe;Xl.parseQuery=Bk;CG(EG);const IG={name:"peerSettings",components:{LocaleText:Le},props:{selectedPeer:Object},data(){return{data:void 0,dataChanged:!1,showKey:!1,saving:!1}},setup(){return{dashboardConfigurationStore:Xe()}},methods:{reset(){this.selectedPeer&&(this.data=JSON.parse(JSON.stringify(this.selectedPeer)),this.dataChanged=!1)},savePeer(){this.saving=!0,ht(`/api/updatePeerSettings/${this.$route.params.id}`,this.data,t=>{this.saving=!1,t.status?this.dashboardConfigurationStore.newMessage("Server","Peer saved","success"):this.dashboardConfigurationStore.newMessage("Server",t.message,"danger"),this.$emit("refresh")})},resetPeerData(t){this.saving=!0,ht(`/api/resetPeerData/${this.$route.params.id}`,{id:this.data.id,type:t},e=>{this.saving=!1,e.status?this.dashboardConfigurationStore.newMessage("Server","Peer data usage reset successfully","success"):this.dashboardConfigurationStore.newMessage("Server",e.message,"danger"),this.$emit("refresh")})}},beforeMount(){this.reset()},mounted(){this.$el.querySelectorAll("input").forEach(t=>{t.addEventListener("keyup",()=>{this.dataChanged=!0})})}},DG={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0 overflow-y-scroll"},RG={class:"container d-flex h-100 w-100"},$G={class:"m-auto modal-dialog-centered dashboardModal"},LG={class:"card rounded-3 shadow flex-grow-1"},OG={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4 pb-2"},NG={class:"mb-0"},FG={key:0,class:"card-body px-4 pb-4"},BG={class:"d-flex flex-column gap-2 mb-4"},VG={class:"d-flex align-items-center"},zG={class:"text-muted"},WG={class:"ms-auto"},YG={for:"peer_name_textbox",class:"form-label"},HG={class:"text-muted"},jG=["disabled"],KG={class:"d-flex position-relative"},UG={for:"peer_private_key_textbox",class:"form-label"},GG={class:"text-muted"},XG=["type","disabled"],qG={for:"peer_allowed_ip_textbox",class:"form-label"},ZG={class:"text-muted"},JG=["disabled"],QG={for:"peer_endpoint_allowed_ips",class:"form-label"},e7={class:"text-muted"},t7=["disabled"],n7={for:"peer_DNS_textbox",class:"form-label"},i7={class:"text-muted"},s7=["disabled"],r7={class:"accordion mt-3",id:"peerSettingsAccordion"},o7={class:"accordion-item"},a7={class:"accordion-header"},l7={class:"accordion-button rounded-3 collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#peerSettingsAccordionOptional"},c7={id:"peerSettingsAccordionOptional",class:"accordion-collapse collapse","data-bs-parent":"#peerSettingsAccordion"},u7={class:"accordion-body d-flex flex-column gap-2 mb-2"},d7={for:"peer_preshared_key_textbox",class:"form-label"},h7={class:"text-muted"},f7=["disabled"],g7={for:"peer_mtu",class:"form-label"},p7={class:"text-muted"},m7=["disabled"],_7={for:"peer_keep_alive",class:"form-label"},v7={class:"text-muted"},y7=["disabled"],b7={class:"d-flex gap-2 align-items-center"},w7={class:"d-flex gap-2 ms-auto"},x7={class:"d-flex align-items-center gap-2"},E7=["disabled"],C7=["disabled"];function S7(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",DG,[h("div",RG,[h("div",$G,[h("div",LG,[h("div",OG,[h("h4",NG,[$(o,{t:"Peer Settings"})]),h("button",{type:"button",class:"btn-close ms-auto",onClick:e[0]||(e[0]=a=>this.$emit("close"))})]),this.data?(P(),F("div",FG,[h("div",BG,[h("div",VG,[h("small",zG,[$(o,{t:"Public Key"})]),h("small",WG,[h("samp",null,pe(this.data.id),1)])]),h("div",null,[h("label",YG,[h("small",HG,[$(o,{t:"Name"})])]),Re(h("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":e[1]||(e[1]=a=>this.data.name=a),id:"peer_name_textbox",placeholder:""},null,8,jG),[[ze,this.data.name]])]),h("div",null,[h("div",KG,[h("label",UG,[h("small",GG,[$(o,{t:"Private Key"}),h("code",null,[$(o,{t:"(Required for QR Code and Download)"})])])]),h("a",{role:"button",class:"ms-auto text-decoration-none toggleShowKey",onClick:e[2]||(e[2]=a=>this.showKey=!this.showKey)},[h("i",{class:Se(["bi",[this.showKey?"bi-eye-slash-fill":"bi-eye-fill"]])},null,2)])]),Re(h("input",{type:[this.showKey?"text":"password"],class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":e[3]||(e[3]=a=>this.data.private_key=a),id:"peer_private_key_textbox",style:{"padding-right":"40px"}},null,8,XG),[[uC,this.data.private_key]])]),h("div",null,[h("label",qG,[h("small",ZG,[$(o,{t:"Allowed IPs"}),h("code",null,[$(o,{t:"(Required)"})])])]),Re(h("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":e[4]||(e[4]=a=>this.data.allowed_ip=a),id:"peer_allowed_ip_textbox"},null,8,JG),[[ze,this.data.allowed_ip]])]),h("div",null,[h("label",QG,[h("small",e7,[$(o,{t:"Endpoint Allowed IPs"}),h("code",null,[$(o,{t:"(Required)"})])])]),Re(h("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":e[5]||(e[5]=a=>this.data.endpoint_allowed_ip=a),id:"peer_endpoint_allowed_ips"},null,8,t7),[[ze,this.data.endpoint_allowed_ip]])]),h("div",null,[h("label",n7,[h("small",i7,[$(o,{t:"DNS"})])]),Re(h("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":e[6]||(e[6]=a=>this.data.DNS=a),id:"peer_DNS_textbox"},null,8,s7),[[ze,this.data.DNS]])]),h("div",r7,[h("div",o7,[h("h2",a7,[h("button",l7,[$(o,{t:"Optional Settings"})])]),h("div",c7,[h("div",u7,[h("div",null,[h("label",d7,[h("small",h7,[$(o,{t:"Pre-Shared Key"})])]),Re(h("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":e[7]||(e[7]=a=>this.data.preshared_key=a),id:"peer_preshared_key_textbox"},null,8,f7),[[ze,this.data.preshared_key]])]),h("div",null,[h("label",g7,[h("small",p7,[$(o,{t:"MTU"})])]),Re(h("input",{type:"number",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":e[8]||(e[8]=a=>this.data.mtu=a),id:"peer_mtu"},null,8,m7),[[ze,this.data.mtu]])]),h("div",null,[h("label",_7,[h("small",v7,[$(o,{t:"Persistent Keepalive"})])]),Re(h("input",{type:"number",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":e[9]||(e[9]=a=>this.data.keepalive=a),id:"peer_keep_alive"},null,8,y7),[[ze,this.data.keepalive]])])])])])]),e[18]||(e[18]=h("hr",null,null,-1)),h("div",b7,[h("strong",null,[$(o,{t:"Reset Data Usage"})]),h("div",w7,[h("button",{class:"btn bg-primary-subtle text-primary-emphasis rounded-3 flex-grow-1 shadow-sm",onClick:e[10]||(e[10]=a=>this.resetPeerData("total"))},[e[15]||(e[15]=h("i",{class:"bi bi-arrow-down-up me-2"},null,-1)),$(o,{t:"Total"})]),h("button",{class:"btn bg-primary-subtle text-primary-emphasis rounded-3 flex-grow-1 shadow-sm",onClick:e[11]||(e[11]=a=>this.resetPeerData("receive"))},[e[16]||(e[16]=h("i",{class:"bi bi-arrow-down me-2"},null,-1)),$(o,{t:"Received"})]),h("button",{class:"btn bg-primary-subtle text-primary-emphasis rounded-3 flex-grow-1 shadow-sm",onClick:e[12]||(e[12]=a=>this.resetPeerData("sent"))},[e[17]||(e[17]=h("i",{class:"bi bi-arrow-up me-2"},null,-1)),$(o,{t:"Sent"})])])])]),h("div",x7,[h("button",{class:"btn bg-secondary-subtle border-secondary-subtle text-secondary-emphasis rounded-3 shadow ms-auto px-3 py-2",onClick:e[13]||(e[13]=a=>this.reset()),disabled:!this.dataChanged||this.saving},e[19]||(e[19]=[h("i",{class:"bi bi-arrow-clockwise"},null,-1)]),8,E7),h("button",{class:"btn bg-primary-subtle border-primary-subtle text-primary-emphasis rounded-3 px-3 py-2 shadow",disabled:!this.dataChanged||this.saving,onClick:e[14]||(e[14]=a=>this.savePeer())},e[20]||(e[20]=[h("i",{class:"bi bi-save-fill"},null,-1)]),8,C7)])])):re("",!0)])])])])}const k7=He(IG,[["render",S7],["__scopeId","data-v-a63ae8cb"]]);var wa={},T7=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Vk={},Ri={};let uv;const A7=[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];Ri.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};Ri.getSymbolTotalCodewords=function(e){return A7[e]};Ri.getBCHDigit=function(t){let e=0;for(;t!==0;)e++,t>>>=1;return e};Ri.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');uv=e};Ri.isKanjiModeEnabled=function(){return typeof uv<"u"};Ri.toSJIS=function(e){return uv(e)};var Lf={};(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+n)}}t.isValid=function(i){return i&&typeof i.bit<"u"&&i.bit>=0&&i.bit<4},t.from=function(i,s){if(t.isValid(i))return i;try{return e(i)}catch{return s}}})(Lf);function zk(){this.buffer=[],this.length=0}zk.prototype={get:function(t){const e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(let n=0;n>>e-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var P7=zk;function Xu(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}Xu.prototype.set=function(t,e,n,i){const s=t*this.size+e;this.data[s]=n,i&&(this.reservedBit[s]=!0)};Xu.prototype.get=function(t,e){return this.data[t*this.size+e]};Xu.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n};Xu.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var M7=Xu,Wk={};(function(t){const e=Ri.getSymbolSize;t.getRowColCoords=function(i){if(i===1)return[];const s=Math.floor(i/7)+2,r=e(i),o=r===145?26:Math.ceil((r-13)/(2*s-2))*2,a=[r-7];for(let l=1;l=0&&s<=7},t.from=function(s){return t.isValid(s)?parseInt(s,10):void 0},t.getPenaltyN1=function(s){const r=s.size;let o=0,a=0,l=0,c=null,u=null;for(let d=0;d=5&&(o+=e.N1+(a-5)),c=g,a=1),g=s.get(f,d),g===u?l++:(l>=5&&(o+=e.N1+(l-5)),u=g,l=1)}a>=5&&(o+=e.N1+(a-5)),l>=5&&(o+=e.N1+(l-5))}return o},t.getPenaltyN2=function(s){const r=s.size;let o=0;for(let a=0;a=10&&(a===1488||a===93)&&o++,l=l<<1&2047|s.get(u,c),u>=10&&(l===1488||l===93)&&o++}return o*e.N3},t.getPenaltyN4=function(s){let r=0;const o=s.data.length;for(let l=0;l=0;){const o=r[0];for(let l=0;l0){const r=new Uint8Array(this.degree);return r.set(i,s),r}return i};var D7=dv,Uk={},Co={},hv={};hv.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var Vs={};const Gk="[0-9]+",R7="[A-Z $%*+\\-./:]+";let vu="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";vu=vu.replace(/u/g,"\\u");const $7="(?:(?![A-Z0-9 $%*+\\-./:]|"+vu+`)(?:.|[\r +]))+`;Vs.KANJI=new RegExp(vu,"g");Vs.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Vs.BYTE=new RegExp($7,"g");Vs.NUMERIC=new RegExp(Gk,"g");Vs.ALPHANUMERIC=new RegExp(R7,"g");const L7=new RegExp("^"+vu+"$"),O7=new RegExp("^"+Gk+"$"),N7=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Vs.testKanji=function(e){return L7.test(e)};Vs.testNumeric=function(e){return O7.test(e)};Vs.testAlphanumeric=function(e){return N7.test(e)};(function(t){const e=hv,n=Vs;t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(r,o){if(!r.ccBits)throw new Error("Invalid mode: "+r);if(!e.isValid(o))throw new Error("Invalid version: "+o);return o>=1&&o<10?r.ccBits[0]:o<27?r.ccBits[1]:r.ccBits[2]},t.getBestModeForData=function(r){return n.testNumeric(r)?t.NUMERIC:n.testAlphanumeric(r)?t.ALPHANUMERIC:n.testKanji(r)?t.KANJI:t.BYTE},t.toString=function(r){if(r&&r.id)return r.id;throw new Error("Invalid mode")},t.isValid=function(r){return r&&r.bit&&r.ccBits};function i(s){if(typeof s!="string")throw new Error("Param is not a string");switch(s.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+s)}}t.from=function(r,o){if(t.isValid(r))return r;try{return i(r)}catch{return o}}})(Co);(function(t){const e=Ri,n=Of,i=Lf,s=Co,r=hv,o=7973,a=e.getBCHDigit(o);function l(f,g,p){for(let m=1;m<=40;m++)if(g<=t.getCapacity(m,p,f))return m}function c(f,g){return s.getCharCountIndicator(f,g)+4}function u(f,g){let p=0;return f.forEach(function(m){const v=c(m.mode,g);p+=v+m.getBitsLength()}),p}function d(f,g){for(let p=1;p<=40;p++)if(u(f,p)<=t.getCapacity(p,g,s.MIXED))return p}t.from=function(g,p){return r.isValid(g)?parseInt(g,10):p},t.getCapacity=function(g,p,m){if(!r.isValid(g))throw new Error("Invalid QR Code version");typeof m>"u"&&(m=s.BYTE);const v=e.getSymbolTotalCodewords(g),y=n.getTotalCodewordsCount(g,p),x=(v-y)*8;if(m===s.MIXED)return x;const E=x-c(m,g);switch(m){case s.NUMERIC:return Math.floor(E/10*3);case s.ALPHANUMERIC:return Math.floor(E/11*2);case s.KANJI:return Math.floor(E/13);case s.BYTE:default:return Math.floor(E/8)}},t.getBestVersionForData=function(g,p){let m;const v=i.from(p,i.M);if(Array.isArray(g)){if(g.length>1)return d(g,v);if(g.length===0)return 1;m=g[0]}else m=g;return l(m.mode,m.getLength(),v)},t.getEncodedBits=function(g){if(!r.isValid(g)||g<7)throw new Error("Invalid QR Code version");let p=g<<12;for(;e.getBCHDigit(p)-a>=0;)p^=o<=0;)s^=qk<0&&(i=this.data.substr(n),s=parseInt(i,10),e.put(s,r*3+1))};var V7=$l;const z7=Co,ap=["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 Ll(t){this.mode=z7.ALPHANUMERIC,this.data=t}Ll.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};Ll.prototype.getLength=function(){return this.data.length};Ll.prototype.getBitsLength=function(){return Ll.getBitsLength(this.data.length)};Ll.prototype.write=function(e){let n;for(n=0;n+2<=this.data.length;n+=2){let i=ap.indexOf(this.data[n])*45;i+=ap.indexOf(this.data[n+1]),e.put(i,11)}this.data.length%2&&e.put(ap.indexOf(this.data[n]),6)};var W7=Ll;const Y7=Co;function Ol(t){this.mode=Y7.BYTE,typeof t=="string"?this.data=new TextEncoder().encode(t):this.data=new Uint8Array(t)}Ol.getBitsLength=function(e){return e*8};Ol.prototype.getLength=function(){return this.data.length};Ol.prototype.getBitsLength=function(){return Ol.getBitsLength(this.data.length)};Ol.prototype.write=function(t){for(let e=0,n=this.data.length;e=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+` +Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),t.put(n,13)}};var U7=Nl,Jk={exports:{}};(function(t){var e={single_source_shortest_paths:function(n,i,s){var r={},o={};o[i]=0;var a=e.PriorityQueue.make();a.push(i,0);for(var l,c,u,d,f,g,p,m,v;!a.empty();){l=a.pop(),c=l.value,d=l.cost,f=n[c]||{};for(u in f)f.hasOwnProperty(u)&&(g=f[u],p=d+g,m=o[u],v=typeof o[u]>"u",(v||m>p)&&(o[u]=p,a.push(u,p),r[u]=c))}if(typeof s<"u"&&typeof o[s]>"u"){var y=["Could not find a path from ",i," to ",s,"."].join("");throw new Error(y)}return r},extract_shortest_path_from_predecessor_list:function(n,i){for(var s=[],r=i;r;)s.push(r),n[r],r=n[r];return s.reverse(),s},find_path:function(n,i,s){var r=e.single_source_shortest_paths(n,i,s);return e.extract_shortest_path_from_predecessor_list(r,s)},PriorityQueue:{make:function(n){var i=e.PriorityQueue,s={},r;n=n||{};for(r in i)i.hasOwnProperty(r)&&(s[r]=i[r]);return s.queue=[],s.sorter=n.sorter||i.default_sorter,s},default_sorter:function(n,i){return n.cost-i.cost},push:function(n,i){var s={value:n,cost:i};this.queue.push(s),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t.exports=e})(Jk);var G7=Jk.exports;(function(t){const e=Co,n=V7,i=W7,s=H7,r=U7,o=Vs,a=Ri,l=G7;function c(y){return unescape(encodeURIComponent(y)).length}function u(y,x,E){const w=[];let b;for(;(b=y.exec(E))!==null;)w.push({data:b[0],index:b.index,mode:x,length:b[0].length});return w}function d(y){const x=u(o.NUMERIC,e.NUMERIC,y),E=u(o.ALPHANUMERIC,e.ALPHANUMERIC,y);let w,b;return a.isKanjiModeEnabled()?(w=u(o.BYTE,e.BYTE,y),b=u(o.KANJI,e.KANJI,y)):(w=u(o.BYTE_KANJI,e.BYTE,y),b=[]),x.concat(E,w,b).sort(function(k,T){return k.index-T.index}).map(function(k){return{data:k.data,mode:k.mode,length:k.length}})}function f(y,x){switch(x){case e.NUMERIC:return n.getBitsLength(y);case e.ALPHANUMERIC:return i.getBitsLength(y);case e.KANJI:return r.getBitsLength(y);case e.BYTE:return s.getBitsLength(y)}}function g(y){return y.reduce(function(x,E){const w=x.length-1>=0?x[x.length-1]:null;return w&&w.mode===E.mode?(x[x.length-1].data+=E.data,x):(x.push(E),x)},[])}function p(y){const x=[];for(let E=0;E=0&&a<=6&&(l===0||l===6)||l>=0&&l<=6&&(a===0||a===6)||a>=2&&a<=4&&l>=2&&l<=4?t.set(r+a,o+l,!0,!0):t.set(r+a,o+l,!1,!0))}}function i9(t){const e=t.size;for(let n=8;n>a&1)===1,t.set(s,r,o,!0),t.set(r,s,o,!0)}function up(t,e,n){const i=t.size,s=e9.getEncodedBits(e,n);let r,o;for(r=0;r<15;r++)o=(s>>r&1)===1,r<6?t.set(r,8,o,!0):r<8?t.set(r+1,8,o,!0):t.set(i-15+r,8,o,!0),r<8?t.set(8,i-r-1,o,!0):r<9?t.set(8,15-r-1+1,o,!0):t.set(8,15-r-1,o,!0);t.set(i-8,8,1,!0)}function o9(t,e){const n=t.size;let i=-1,s=n-1,r=7,o=0;for(let a=n-1;a>0;a-=2)for(a===6&&a--;;){for(let l=0;l<2;l++)if(!t.isReserved(s,a-l)){let c=!1;o>>r&1)===1),t.set(s,a-l,c),r--,r===-1&&(o++,r=7)}if(s+=i,s<0||n<=s){s-=i,i=-i;break}}}function a9(t,e,n){const i=new X7;n.forEach(function(l){i.put(l.mode.bit,4),i.put(l.getLength(),t9.getCharCountIndicator(l.mode,t)),l.write(i)});const s=Ff.getSymbolTotalCodewords(t),r=km.getTotalCodewordsCount(t,e),o=(s-r)*8;for(i.getLengthInBits()+4<=o&&i.put(0,4);i.getLengthInBits()%8!==0;)i.putBit(0);const a=(o-i.getLengthInBits())/8;for(let l=0;l=7&&Q7(l,e),e9(l,o),isNaN(i)&&(i=Sm.getBestMask(l,up.bind(null,l,n))),Sm.applyMask(i,l),up(l,n,i),{modules:l,version:e,errorCorrectionLevel:n,maskPattern:i,segments:s}}Vk.create=function(e,n){if(typeof e>"u"||e==="")throw new Error("No input text");let i=lp.M,s,r;return typeof n<"u"&&(i=lp.from(n.errorCorrectionLevel,lp.M),s=Fh.from(n.version),r=Sm.from(n.maskPattern),n.toSJISFunc&&Ff.setToSJISFunction(n.toSJISFunc)),i9(e,s,i,r)};var Qk={},fv={};(function(t){function e(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let i=n.slice().replace("#","").split("");if(i.length<3||i.length===5||i.length>8)throw new Error("Invalid hex color: "+n);(i.length===3||i.length===4)&&(i=Array.prototype.concat.apply([],i.map(function(r){return[r,r]}))),i.length===6&&i.push("F","F");const s=parseInt(i.join(""),16);return{r:s>>24&255,g:s>>16&255,b:s>>8&255,a:s&255,hex:"#"+i.slice(0,6).join("")}}t.getOptions=function(i){i||(i={}),i.color||(i.color={});const s=typeof i.margin>"u"||i.margin===null||i.margin<0?4:i.margin,r=i.width&&i.width>=21?i.width:void 0,o=i.scale||4;return{width:r,scale:r?4:o,margin:s,color:{dark:e(i.color.dark||"#000000ff"),light:e(i.color.light||"#ffffffff")},type:i.type,rendererOpts:i.rendererOpts||{}}},t.getScale=function(i,s){return s.width&&s.width>=i+s.margin*2?s.width/(i+s.margin*2):s.scale},t.getImageWidth=function(i,s){const r=t.getScale(i,s);return Math.floor((i+s.margin*2)*r)},t.qrToImageData=function(i,s,r){const o=s.modules.size,a=s.modules.data,l=t.getScale(o,r),c=Math.floor((o+r.margin*2)*l),u=r.margin*l,d=[r.color.light,r.color.dark];for(let h=0;h=u&&g>=u&&h"u"&&(!o||!o.getContext)&&(l=o,o=void 0),o||(c=i()),l=e.getOptions(l);const u=e.getImageWidth(r.modules.size,l),d=c.getContext("2d"),h=d.createImageData(u,u);return e.qrToImageData(h.data,r,l),n(d,c,u),d.putImageData(h,0,0),c},t.renderToDataURL=function(r,o,a){let l=a;typeof l>"u"&&(!o||!o.getContext)&&(l=o,o=void 0),l||(l={});const c=t.render(r,o,l),u=l.type||"image/png",d=l.rendererOpts||{};return c.toDataURL(u,d.quality)}})(Qk);var eT={};const s9=fv;function iw(t,e){const n=t.a/255,i=e+'="'+t.hex+'"';return n<1?i+" "+e+'-opacity="'+n.toFixed(2).slice(1)+'"':i}function dp(t,e,n){let i=t+e;return typeof n<"u"&&(i+=" "+n),i}function r9(t,e,n){let i="",s=0,r=!1,o=0;for(let a=0;a0&&l>0&&t[a-1]||(i+=r?dp("M",l+n,.5+c+n):dp("m",s,0),s=0,r=!1),l+1':"",c="',u='viewBox="0 0 '+a+" "+a+'"',h=''+l+c+` -`;return typeof i=="function"&&i(null,h),h};const o9=w7,Tm=Vk,tT=Qk,a9=eT;function gv(t,e,n,i,s){const r=[].slice.call(arguments,1),o=r.length,a=typeof r[o-1]=="function";if(!a&&!o9())throw new Error("Callback required as last argument");if(a){if(o<2)throw new Error("Too few arguments provided");o===2?(s=n,n=e,e=i=void 0):o===3&&(e.getContext&&typeof s>"u"?(s=i,i=void 0):(s=i,i=n,n=e,e=void 0))}else{if(o<1)throw new Error("Too few arguments provided");return o===1?(n=e,e=i=void 0):o===2&&!e.getContext&&(i=n,n=e,e=void 0),new Promise(function(l,c){try{const u=Tm.create(n,i);l(t(u,e,i))}catch(u){c(u)}})}try{const l=Tm.create(n,i);s(null,t(l,e,i))}catch(l){s(l)}}wa.create=Tm.create;wa.toCanvas=gv.bind(null,tT.render);wa.toDataURL=gv.bind(null,tT.renderToDataURL);wa.toString=gv.bind(null,function(t,e,n){return a9.render(t,n)});const l9={name:"peerQRCode",components:{LocaleText:Le},props:{peerConfigData:String},mounted(){wa.toCanvas(document.querySelector("#qrcode"),this.peerConfigData,t=>{t&&console.error(t)})}},c9={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0"},u9={class:"container d-flex h-100 w-100"},d9={class:"m-auto modal-dialog-centered dashboardModal justify-content-center"},h9={class:"card rounded-3 shadow"},f9={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4 pb-0"},g9={class:"mb-0"},p9={class:"card-body"},m9={id:"qrcode",class:"rounded-3 shadow",ref:"qrcode"};function _9(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",c9,[f("div",u9,[f("div",d9,[f("div",h9,[f("div",f9,[f("h4",g9,[L(o,{t:"QR Code"})]),f("button",{type:"button",class:"btn-close ms-auto",onClick:e[0]||(e[0]=a=>this.$emit("close"))})]),f("div",p9,[f("canvas",m9,null,512)])])])])])}const v9=He(l9,[["render",_9]]),y9={name:"nameInput",components:{LocaleText:Le},props:{bulk:Boolean,data:Object,saving:Boolean}},b9={for:"peer_name_textbox",class:"form-label"},w9={class:"text-muted"},x9=["disabled"];function E9(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",{class:Se({inactiveField:this.bulk})},[f("label",b9,[f("small",w9,[L(o,{t:"Name"})])]),Re(f("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving||this.bulk,"onUpdate:modelValue":e[0]||(e[0]=a=>this.data.name=a),id:"peer_name_textbox",placeholder:""},null,8,x9),[[ze,this.data.name]])],2)}const C9=He(y9,[["render",E9]]),S9={name:"privatePublicKeyInput",components:{LocaleText:Le},props:{data:Object,saving:Boolean,bulk:Boolean},setup(){const t=Je(),e=Vn();return{dashboardStore:t,wgStore:e}},data(){return{keypair:{publicKey:"",privateKey:"",presharedKey:""},editKey:!1,error:!1}},methods:{genKeyPair(){this.editKey=!1,this.keypair=window.wireguard.generateKeypair(),this.data.private_key=this.keypair.privateKey,this.data.public_key=this.keypair.publicKey},testKey(t){return/^[A-Za-z0-9+/]{43}=?=?$/.test(t)},checkMatching(){try{this.keypair.privateKey&&this.wgStore.checkWGKeyLength(this.keypair.privateKey)&&(this.keypair.publicKey=window.wireguard.generatePublicKey(this.keypair.privateKey),window.wireguard.generatePublicKey(this.keypair.privateKey)!==this.keypair.publicKey?(this.error=!0,this.dashboardStore.newMessage("WGDashboard","Private key does not match with the public key","danger")):(this.data.private_key=this.keypair.privateKey,this.data.public_key=this.keypair.publicKey))}catch{this.error=!0,this.data.private_key="",this.data.public_key=""}}},mounted(){this.genKeyPair()},watch:{keypair:{deep:!0,handler(){this.error=!1,this.checkMatching()}}}},k9={for:"peer_private_key_textbox",class:"form-label"},T9={class:"text-muted"},A9={class:"input-group"},P9=["disabled"],M9=["disabled"],I9={class:"d-flex"},D9={for:"public_key",class:"form-label"},R9={class:"text-muted"},$9={class:"form-check form-switch ms-auto"},L9=["disabled"],O9={class:"form-check-label",for:"enablePublicKeyEdit"},N9=["disabled"];function F9(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",{class:Se(["d-flex gap-2 flex-column",{inactiveField:this.bulk}])},[f("div",null,[f("label",k9,[f("small",T9,[L(o,{t:"Private Key"}),f("code",null,[L(o,{t:"(Required for QR Code and Download)"})])])]),f("div",A9,[Re(f("input",{type:"text",class:Se(["form-control form-control-sm rounded-start-3",{"is-invalid":this.error}]),"onUpdate:modelValue":e[0]||(e[0]=a=>this.keypair.privateKey=a),disabled:!this.editKey||this.bulk,onBlur:e[1]||(e[1]=a=>this.checkMatching()),id:"peer_private_key_textbox"},null,42,P9),[[ze,this.keypair.privateKey]]),f("button",{class:"btn btn-outline-info btn-sm rounded-end-3",onClick:e[2]||(e[2]=a=>this.genKeyPair()),disabled:this.bulk,type:"button",id:"button-addon2"},e[6]||(e[6]=[f("i",{class:"bi bi-arrow-repeat"},null,-1)]),8,M9)])]),f("div",null,[f("div",I9,[f("label",D9,[f("small",R9,[L(o,{t:"Public Key"}),f("code",null,[L(o,{t:"(Required)"})])])]),f("div",$9,[Re(f("input",{class:"form-check-input",type:"checkbox",role:"switch",disabled:this.bulk,id:"enablePublicKeyEdit","onUpdate:modelValue":e[3]||(e[3]=a=>this.editKey=a)},null,8,L9),[[Gn,this.editKey]]),f("label",O9,[f("small",null,[L(o,{t:"Use your own Private and Public Key"})])])])]),Re(f("input",{class:Se(["form-control-sm form-control rounded-3",{"is-invalid":this.error}]),"onUpdate:modelValue":e[4]||(e[4]=a=>this.keypair.publicKey=a),onBlur:e[5]||(e[5]=a=>this.checkMatching()),disabled:!this.editKey||this.bulk,type:"text",id:"public_key"},null,42,N9),[[ze,this.keypair.publicKey]])])],2)}const B9=He(S9,[["render",F9]]),V9={name:"allowedIPsInput",components:{LocaleText:Le},props:{data:Object,saving:Boolean,bulk:Boolean,availableIp:void 0},data(){return{allowedIp:[],availableIpSearchString:"",customAvailableIp:"",allowedIpFormatError:!1}},setup(){const t=Vn(),e=Je();return{store:t,dashboardStore:e}},computed:{searchAvailableIps(){return this.availableIpSearchString?this.availableIp.filter(t=>t.includes(this.availableIpSearchString)&&!this.data.allowed_ips.includes(t)):this.availableIp.filter(t=>!this.data.allowed_ips.includes(t))},inputGetLocale(){return At("Enter IP Address/CIDR")}},methods:{addAllowedIp(t){return this.store.checkCIDR(t)?(this.data.allowed_ips.push(t),this.customAvailableIp="",!0):(this.allowedIpFormatError=!0,this.dashboardStore.newMessage("WGDashboard","Allowed IPs is invalid","danger"),!1)}},watch:{customAvailableIp(){this.allowedIpFormatError=!1},availableIp(){this.availableIp!==void 0&&this.availableIp.length>0&&this.addAllowedIp(this.availableIp[0])}},mounted(){}},z9={for:"peer_allowed_ip_textbox",class:"form-label"},W9={class:"text-muted"},Y9=["onClick"],H9={class:"d-flex gap-2 align-items-center"},j9={class:"input-group"},K9=["placeholder","disabled"],U9=["disabled"],G9={class:"text-muted"},X9={class:"dropdown flex-grow-1"},q9=["disabled"],Z9={key:0,class:"dropdown-menu mt-2 shadow w-100 dropdown-menu-end rounded-3",style:{"overflow-y":"scroll","max-height":"270px",width:"300px !important"}},J9={class:"px-3 pb-2 pt-1 d-flex gap-3 align-items-center"},Q9=["onClick"],eX={class:"me-auto"},tX={key:0},nX={class:"px-3 text-muted"};function iX(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",{class:Se({inactiveField:this.bulk})},[f("label",z9,[f("small",W9,[L(o,{t:"Allowed IPs"}),f("code",null,[L(o,{t:"(Required)"})])])]),f("div",{class:Se(["d-flex gap-2 flex-wrap",{"mb-2":this.data.allowed_ips.length>0}])},[L(vo,{name:"list"},{default:Me(()=>[(P(!0),F(De,null,Ge(this.data.allowed_ips,(a,l)=>(P(),F("span",{class:"badge rounded-pill text-bg-success",key:a},[Be(pe(a)+" ",1),f("a",{role:"button",onClick:c=>this.data.allowed_ips.splice(l,1)},e[3]||(e[3]=[f("i",{class:"bi bi-x-circle-fill ms-1"},null,-1)]),8,Y9)]))),128))]),_:1})],2),f("div",H9,[f("div",j9,[Re(f("input",{type:"text",class:Se(["form-control form-control-sm rounded-start-3",{"is-invalid":this.allowedIpFormatError}]),placeholder:this.inputGetLocale,"onUpdate:modelValue":e[0]||(e[0]=a=>s.customAvailableIp=a),disabled:n.bulk},null,10,K9),[[ze,s.customAvailableIp]]),f("button",{class:"btn btn-outline-success btn-sm rounded-end-3",disabled:n.bulk||!this.customAvailableIp,onClick:e[1]||(e[1]=a=>this.addAllowedIp(this.customAvailableIp)),type:"button",id:"button-addon2"},e[4]||(e[4]=[f("i",{class:"bi bi-plus-lg"},null,-1)]),8,U9)]),f("small",G9,[L(o,{t:"or"})]),f("div",X9,[f("button",{class:"btn btn-outline-secondary btn-sm dropdown-toggle rounded-3 w-100",disabled:!n.availableIp||n.bulk,"data-bs-auto-close":"outside",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[e[5]||(e[5]=f("i",{class:"bi bi-filter-circle me-2"},null,-1)),L(o,{t:"Pick Available IP"})],8,q9),this.availableIp?(P(),F("ul",Z9,[f("li",null,[f("div",J9,[e[6]||(e[6]=f("label",{for:"availableIpSearchString",class:"text-muted"},[f("i",{class:"bi bi-search"})],-1)),Re(f("input",{id:"availableIpSearchString",class:"form-control form-control-sm rounded-3","onUpdate:modelValue":e[2]||(e[2]=a=>this.availableIpSearchString=a)},null,512),[[ze,this.availableIpSearchString]])])]),(P(!0),F(De,null,Ge(this.searchAvailableIps,a=>(P(),F("li",null,[f("a",{class:"dropdown-item d-flex",role:"button",onClick:l=>this.addAllowedIp(a)},[f("span",eX,[f("small",null,pe(a),1)])],8,Q9)]))),256)),this.searchAvailableIps.length===0?(P(),F("li",tX,[f("small",nX,[L(o,{t:"No available IP containing"}),Be(' "'+pe(this.availableIpSearchString)+'"',1)])])):se("",!0)])):se("",!0)])])],2)}const sX=He(V9,[["render",iX],["__scopeId","data-v-6d5fc831"]]),rX={name:"dnsInput",components:{LocaleText:Le},props:{data:Object,saving:Boolean},data(){return{error:!1,dns:JSON.parse(JSON.stringify(this.data.DNS))}},setup(){const t=Vn(),e=Je();return{store:t,dashboardStore:e}},methods:{checkDNS(){if(this.dns){let t=this.dns.split(",").map(e=>e.replaceAll(" ",""));for(let e in t)if(!this.store.regexCheckIP(t[e])){this.error||this.dashboardStore.newMessage("WGDashboard","DNS format is incorrect","danger"),this.error=!0,this.data.DNS="";return}this.error=!1,this.data.DNS=this.dns}}},watch:{dns(){this.checkDNS()}}},oX={for:"peer_DNS_textbox",class:"form-label"},aX={class:"text-muted"},lX=["disabled"];function cX(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",null,[f("label",oX,[f("small",aX,[L(o,{t:"DNS"})])]),Re(f("input",{type:"text",class:Se(["form-control form-control-sm rounded-3",{"is-invalid":this.error}]),disabled:this.saving,"onUpdate:modelValue":e[0]||(e[0]=a=>this.dns=a),id:"peer_DNS_textbox"},null,10,lX),[[ze,this.dns]])])}const uX=He(rX,[["render",cX]]),dX={name:"endpointAllowedIps",components:{LocaleText:Le},props:{data:Object,saving:Boolean},setup(){const t=Vn(),e=Je();return{store:t,dashboardStore:e}},data(){return{endpointAllowedIps:JSON.parse(JSON.stringify(this.data.endpoint_allowed_ip)),error:!1}},methods:{checkAllowedIP(){let t=this.endpointAllowedIps.split(",").map(e=>e.replaceAll(" ",""));for(let e in t)if(!this.store.checkCIDR(t[e])){this.error||this.dashboardStore.newMessage("WGDashboard","Endpoint Allowed IPs format is incorrect","danger"),this.data.endpoint_allowed_ip="",this.error=!0;return}this.error=!1,this.data.endpoint_allowed_ip=this.endpointAllowedIps}},watch:{endpointAllowedIps(){this.checkAllowedIP()}}},hX={for:"peer_endpoint_allowed_ips",class:"form-label"},fX={class:"text-muted"},gX=["disabled"];function pX(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",null,[f("label",hX,[f("small",fX,[L(o,{t:"Endpoint Allowed IPs"}),f("code",null,[L(o,{t:"(Required)"})])])]),Re(f("input",{type:"text",class:Se(["form-control form-control-sm rounded-3",{"is-invalid":s.error}]),disabled:this.saving,"onUpdate:modelValue":e[0]||(e[0]=a=>this.endpointAllowedIps=a),onBlur:e[1]||(e[1]=a=>this.checkAllowedIP()),id:"peer_endpoint_allowed_ips"},null,42,gX),[[ze,this.endpointAllowedIps]])])}const mX=He(dX,[["render",pX]]),_X={name:"presharedKeyInput",components:{LocaleText:Le},props:{data:Object,saving:Boolean},data(){return{enable:!1}},watch:{enable(){this.enable?this.data.preshared_key=window.wireguard.generateKeypair().presharedKey:this.data.preshared_key=""}}},vX={class:"d-flex align-items-start"},yX={for:"peer_preshared_key_textbox",class:"form-label"},bX={class:"text-muted"},wX={class:"form-check form-switch ms-auto"},xX=["disabled"];function EX(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",null,[f("div",vX,[f("label",yX,[f("small",bX,[L(o,{t:"Pre-Shared Key"})])]),f("div",wX,[Re(f("input",{class:"form-check-input",type:"checkbox",role:"switch","onUpdate:modelValue":e[0]||(e[0]=a=>this.enable=a),id:"peer_preshared_key_switch"},null,512),[[Gn,this.enable]])])]),Re(f("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving||!this.enable,"onUpdate:modelValue":e[1]||(e[1]=a=>this.data.preshared_key=a),id:"peer_preshared_key_textbox"},null,8,xX),[[ze,this.data.preshared_key]])])}const CX=He(_X,[["render",EX]]),SX={name:"mtuInput",components:{LocaleText:Le},props:{data:Object,saving:Boolean}},kX={for:"peer_mtu",class:"form-label"},TX={class:"text-muted"},AX=["disabled"];function PX(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",null,[f("label",kX,[f("small",TX,[L(o,{t:"MTU"})])]),Re(f("input",{type:"number",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":e[0]||(e[0]=a=>this.data.mtu=a),min:"0",id:"peer_mtu"},null,8,AX),[[ze,this.data.mtu]])])}const MX=He(SX,[["render",PX]]),IX={name:"persistentKeepAliveInput",components:{LocaleText:Le},props:{data:Object,saving:Boolean}},DX={for:"peer_keep_alive",class:"form-label"},RX={class:"text-muted"},$X=["disabled"];function LX(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",null,[f("label",DX,[f("small",RX,[L(o,{t:"Persistent Keepalive"})])]),Re(f("input",{type:"number",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":e[0]||(e[0]=a=>this.data.keepalive=a),id:"peer_keep_alive"},null,8,$X),[[ze,this.data.keepalive]])])}const OX=He(IX,[["render",LX]]),NX={name:"bulkAdd",components:{LocaleText:Le},props:{saving:Boolean,data:Object,availableIp:void 0},computed:{bulkAddGetLocale(){return At("How many peers you want to add?")}}},FX={class:"form-check form-switch"},BX=["disabled"],VX={class:"form-check-label me-2",for:"bulk_add"},zX={class:"text-muted d-block"},WX={key:0,class:"form-group"},YX=["max","placeholder"],HX={class:"text-muted"};function jX(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",null,[f("div",FX,[Re(f("input",{class:"form-check-input",type:"checkbox",role:"switch",disabled:!this.availableIp,id:"bulk_add","onUpdate:modelValue":e[0]||(e[0]=a=>this.data.bulkAdd=a)},null,8,BX),[[Gn,this.data.bulkAdd]]),f("label",VX,[f("small",null,[f("strong",null,[L(o,{t:"Bulk Add"})])])])]),f("p",{class:Se({"mb-0":!this.data.bulkAdd})},[f("small",zX,[L(o,{t:"By adding peers by bulk, each peer's name will be auto generated, and Allowed IP will be assign to the next available IP."})])],2),this.data.bulkAdd?(P(),F("div",WX,[Re(f("input",{class:"form-control form-control-sm rounded-3 mb-1",type:"number",min:"1",max:this.availableIp.length,"onUpdate:modelValue":e[1]||(e[1]=a=>this.data.bulkAddAmount=a),placeholder:this.bulkAddGetLocale},null,8,YX),[[ze,this.data.bulkAddAmount]]),f("small",HX,[L(o,{t:"You can add up to "+this.availableIp.length+" peers"},null,8,["t"])])])):se("",!0)])}const KX=He(NX,[["render",jX]]),UX={name:"peerCreate",components:{LocaleText:Le,BulkAdd:KX,PersistentKeepAliveInput:OX,MtuInput:MX,PresharedKeyInput:CX,EndpointAllowedIps:mX,DnsInput:uX,AllowedIPsInput:sX,PrivatePublicKeyInput:B9,NameInput:C9},data(){return{data:{bulkAdd:!1,bulkAddAmount:0,name:"",allowed_ips:[],private_key:"",public_key:"",DNS:this.dashboardStore.Configuration.Peers.peer_global_dns,endpoint_allowed_ip:this.dashboardStore.Configuration.Peers.peer_endpoint_allowed_ip,keepalive:parseInt(this.dashboardStore.Configuration.Peers.peer_keep_alive),mtu:parseInt(this.dashboardStore.Configuration.Peers.peer_mtu),preshared_key:"",preshared_key_bulkAdd:!1},availableIp:void 0,availableIpSearchString:"",saving:!1,allowedIpDropdown:void 0}},mounted(){Pt("/api/getAvailableIPs/"+this.$route.params.id,{},t=>{t.status&&(this.availableIp=t.data)})},setup(){const t=Vn(),e=Je();return{store:t,dashboardStore:e}},methods:{peerCreate(){this.saving=!0,ht("/api/addPeers/"+this.$route.params.id,this.data,t=>{t.status?(this.$router.push(`/configuration/${this.$route.params.id}/peers`),this.dashboardStore.newMessage("Server","Peer created successfully","success")):this.dashboardStore.newMessage("Server",t.message,"danger"),this.saving=!1})}},computed:{allRequireFieldsFilled(){let t=!0;return this.data.bulkAdd?(this.data.bulkAddAmount.length===0||this.data.bulkAddAmount>this.availableIp.length)&&(t=!1):["allowed_ips","private_key","public_key","endpoint_allowed_ip","keepalive","mtu"].forEach(n=>{this.data[n].length===0&&(t=!1)}),t}},watch:{bulkAdd(t){t||(this.data.bulkAddAmount="")},"data.bulkAddAmount"(){this.data.bulkAddAmount>this.availableIp.length&&(this.data.bulkAddAmount=this.availableIp.length)}}},GX={class:"container"},XX={class:"mb-4"},qX={class:"mb-5 d-flex align-items-center gap-4"},ZX={class:"mb-0"},JX={class:"d-flex flex-column gap-2"},QX={class:"row gy-3"},eq={key:0,class:"col-sm"},tq={class:"col-sm"},nq={class:"col-sm"},iq={key:1,class:"col-12"},sq={class:"form-check form-switch"},rq={class:"form-check-label",for:"bullAdd_PresharedKey_Switch"},oq={class:"fw-bold"},aq={class:"d-flex mt-2"},lq=["disabled"],cq={key:0,class:"bi bi-plus-circle-fill me-2"};function uq(t,e,n,i,s,r){const o=Ce("RouterLink"),a=Ce("LocaleText"),l=Ce("BulkAdd"),c=Ce("NameInput"),u=Ce("PrivatePublicKeyInput"),d=Ce("AllowedIPsInput"),h=Ce("EndpointAllowedIps"),g=Ce("DnsInput"),p=Ce("PresharedKeyInput"),m=Ce("MtuInput"),v=Ce("PersistentKeepAliveInput");return P(),F("div",GX,[f("div",XX,[f("div",qX,[L(o,{to:"peers",class:"btn btn-dark btn-brand p-2 shadow",style:{"border-radius":"100%"}},{default:Me(()=>e[2]||(e[2]=[f("h2",{class:"mb-0",style:{"line-height":"0"}},[f("i",{class:"bi bi-arrow-left-circle"})],-1)])),_:1}),f("h2",ZX,[L(a,{t:"Add Peers"})])])]),f("div",JX,[L(l,{saving:s.saving,data:this.data,availableIp:this.availableIp},null,8,["saving","data","availableIp"]),e[3]||(e[3]=f("hr",{class:"mb-0 mt-2"},null,-1)),this.data.bulkAdd?se("",!0):(P(),Ee(c,{key:0,saving:s.saving,data:this.data},null,8,["saving","data"])),this.data.bulkAdd?se("",!0):(P(),Ee(u,{key:1,saving:s.saving,data:s.data},null,8,["saving","data"])),this.data.bulkAdd?se("",!0):(P(),Ee(d,{key:2,availableIp:this.availableIp,saving:s.saving,data:s.data},null,8,["availableIp","saving","data"])),L(h,{saving:s.saving,data:s.data},null,8,["saving","data"]),L(g,{saving:s.saving,data:s.data},null,8,["saving","data"]),e[4]||(e[4]=f("hr",{class:"mb-0 mt-2"},null,-1)),f("div",QX,[this.data.bulkAdd?se("",!0):(P(),F("div",eq,[L(p,{saving:s.saving,data:s.data,bulk:this.data.bulkAdd},null,8,["saving","data","bulk"])])),f("div",tq,[L(m,{saving:s.saving,data:s.data},null,8,["saving","data"])]),f("div",nq,[L(v,{saving:s.saving,data:s.data},null,8,["saving","data"])]),this.data.bulkAdd?(P(),F("div",iq,[f("div",sq,[Re(f("input",{class:"form-check-input",type:"checkbox",role:"switch","onUpdate:modelValue":e[0]||(e[0]=y=>this.data.preshared_key_bulkAdd=y),id:"bullAdd_PresharedKey_Switch",checked:""},null,512),[[Gn,this.data.preshared_key_bulkAdd]]),f("label",rq,[f("small",oq,[L(a,{t:"Pre-Shared Key"}),this.data.preshared_key_bulkAdd?(P(),Ee(a,{key:0,t:"Enabled"})):(P(),Ee(a,{key:1,t:"Disabled"}))])])])])):se("",!0)]),f("div",aq,[f("button",{class:"ms-auto btn btn-dark btn-brand rounded-3 px-3 py-2 shadow",disabled:!this.allRequireFieldsFilled||this.saving,onClick:e[1]||(e[1]=y=>this.peerCreate())},[this.saving?se("",!0):(P(),F("i",cq)),this.saving?(P(),Ee(a,{key:1,t:"Adding..."})):(P(),Ee(a,{key:2,t:"Add"}))],8,lq)])])])}const nT=He(UX,[["render",uq],["__scopeId","data-v-17eb547c"]]),dq={name:"scheduleDropdown",props:{options:Array,data:String,edit:!1},setup(t){t.data===void 0&&this.$emit("update",this.options[0].value)},computed:{currentSelection(){return this.options.find(t=>t.value===this.data)}}},hq={class:"dropdown scheduleDropdown"},fq={class:"dropdown-menu rounded-3 shadow",style:{"font-size":"0.875rem",width:"200px"}},gq=["onClick"],pq={key:0,class:"bi bi-check ms-auto"};function mq(t,e,n,i,s,r){return P(),F("div",hq,[f("button",{class:Se(["btn btn-sm btn-outline-primary rounded-3",{"disabled border-transparent":!n.edit}]),type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[f("samp",null,pe(this.currentSelection.display),1)],2),f("ul",fq,[n.edit?(P(!0),F(De,{key:0},Ge(this.options,o=>(P(),F("li",null,[f("a",{class:"dropdown-item d-flex align-items-center",role:"button",onClick:a=>t.$emit("update",o.value)},[f("samp",null,pe(o.display),1),o.value===this.currentSelection.value?(P(),F("i",pq)):se("",!0)],8,gq)]))),256)):se("",!0)])])}const iT=He(dq,[["render",mq],["__scopeId","data-v-6a5aba2a"]]),_q={name:"schedulePeerJob",components:{LocaleText:Le,VueDatePicker:ju,ScheduleDropdown:iT},props:{dropdowns:Array[Object],pjob:Object,viewOnly:!1},setup(t){const e=me({}),n=me(!1),i=me(!1);e.value=JSON.parse(JSON.stringify(t.pjob)),e.value.CreationDate||(n.value=!0,i.value=!0);const s=Je();return{job:e,edit:n,newJob:i,store:s}},data(){return{inputType:void 0}},watch:{pjob:{deep:!0,immediate:!0,handler(t){this.edit||(this.job=JSON.parse(JSON.stringify(t)))}}},methods:{save(){this.job.Field&&this.job.Operator&&this.job.Action&&this.job.Value?ht("/api/savePeerScheduleJob/",{Job:this.job},t=>{t.status?(this.edit=!1,this.store.newMessage("Server","Peer job saved","success"),console.log(t.data),this.$emit("refresh",t.data[0]),this.newJob=!1):this.store.newMessage("Server",t.message,"danger")}):this.alert()},alert(){let t="animate__flash",e=this.$el.querySelectorAll(".scheduleDropdown"),n=this.$el.querySelectorAll("input");e.forEach(i=>i.classList.add("animate__animated",t)),n.forEach(i=>i.classList.add("animate__animated",t)),setTimeout(()=>{e.forEach(i=>i.classList.remove("animate__animated",t)),n.forEach(i=>i.classList.remove("animate__animated",t))},2e3)},reset(){this.job.CreationDate?(this.job=JSON.parse(JSON.stringify(this.pjob)),this.edit=!1):this.$emit("delete")},delete(){this.job.CreationDate&&ht("/api/deletePeerScheduleJob/",{Job:this.job},t=>{t.status?this.store.newMessage("Server","Peer job deleted","success"):(this.store.newMessage("Server",t.message,"danger"),this.$emit("delete"))}),this.$emit("delete")},parseTime(t){t&&(this.job.Value=Nn(t).format("YYYY-MM-DD HH:mm:ss"))}}},vq={class:"card-header bg-transparent text-muted border-0"},yq={key:0,class:"d-flex"},bq={class:"me-auto"},wq={key:1},xq={class:"badge text-bg-warning"},Eq={class:"card-body pt-1",style:{"font-family":"var(--bs-font-monospace)"}},Cq={class:"d-flex gap-2 align-items-center mb-2"},Sq=["disabled"],kq={class:"px-5 d-flex gap-2 align-items-center"},Tq={class:"d-flex gap-3"},Aq={key:0,class:"ms-auto d-flex gap-3"},Pq={key:1,class:"ms-auto d-flex gap-3"};function Mq(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("ScheduleDropdown"),l=Ce("VueDatePicker");return P(),F("div",{class:Se(["card shadow-sm rounded-3 mb-2",{"border-warning-subtle":this.newJob}])},[f("div",vq,[this.newJob?(P(),F("small",wq,[f("span",xq,[L(o,{t:"Unsaved Job"})])])):(P(),F("small",yq,[f("strong",bq,[L(o,{t:"Job ID"})]),f("samp",null,pe(this.job.JobID),1)]))]),f("div",Eq,[f("div",Cq,[f("samp",null,[L(o,{t:"if"})]),L(a,{edit:i.edit,options:this.dropdowns.Field,data:this.job.Field,onUpdate:e[0]||(e[0]=c=>{this.job.Field=c})},null,8,["edit","options","data"]),f("samp",null,[L(o,{t:"is"})]),L(a,{edit:i.edit,options:this.dropdowns.Operator,data:this.job.Operator,onUpdate:e[1]||(e[1]=c=>this.job.Operator=c)},null,8,["edit","options","data"]),this.job.Field==="date"?(P(),Ee(l,{key:0,is24:!0,"min-date":new Date,"model-value":this.job.Value,"onUpdate:modelValue":this.parseTime,"time-picker-inline":"",format:"yyyy-MM-dd HH:mm:ss","preview-format":"yyyy-MM-dd HH:mm:ss",clearable:!1,disabled:!i.edit,dark:this.store.Configuration.Server.dashboard_theme==="dark"},null,8,["min-date","model-value","onUpdate:modelValue","disabled","dark"])):Re((P(),F("input",{key:1,class:"form-control form-control-sm form-control-dark rounded-3 flex-grow-1",disabled:!i.edit,"onUpdate:modelValue":e[2]||(e[2]=c=>this.job.Value=c),style:{width:"auto"}},null,8,Sq)),[[ze,this.job.Value]]),f("samp",null,pe(this.dropdowns.Field.find(c=>c.value===this.job.Field)?.unit)+" { ",1)]),f("div",kq,[f("samp",null,[L(o,{t:"then"})]),L(a,{edit:i.edit,options:this.dropdowns.Action,data:this.job.Action,onUpdate:e[3]||(e[3]=c=>this.job.Action=c)},null,8,["edit","options","data"])]),f("div",Tq,[e[12]||(e[12]=f("samp",null,"}",-1)),this.edit?(P(),F("div",Pq,[f("a",{role:"button",class:"text-secondary text-decoration-none",onClick:e[6]||(e[6]=c=>this.reset())},[e[10]||(e[10]=Be("[C] ")),L(o,{t:"Cancel"})]),f("a",{role:"button",class:"text-primary ms-auto text-decoration-none",onClick:e[7]||(e[7]=c=>this.save())},[e[11]||(e[11]=Be("[S] ")),L(o,{t:"Save"})])])):(P(),F("div",Aq,[f("a",{role:"button",class:"ms-auto text-decoration-none",onClick:e[4]||(e[4]=c=>this.edit=!0)},[e[8]||(e[8]=Be("[E] ")),L(o,{t:"Edit"})]),f("a",{role:"button",onClick:e[5]||(e[5]=c=>this.delete()),class:"text-danger text-decoration-none"},[e[9]||(e[9]=Be("[D] ")),L(o,{t:"Delete"})])]))])])],2)}const sT=He(_q,[["render",Mq],["__scopeId","data-v-8f3f1b93"]]),Iq={name:"peerJobs",setup(){return{store:Vn()}},props:{selectedPeer:Object},components:{LocaleText:Le,SchedulePeerJob:sT,ScheduleDropdown:iT},data(){return{}},methods:{deleteJob(t){this.selectedPeer.jobs=this.selectedPeer.jobs.filter(e=>e.JobID!==t.JobID)},addJob(){this.selectedPeer.jobs.unshift(JSON.parse(JSON.stringify({JobID:Bs().toString(),Configuration:this.selectedPeer.configuration.Name,Peer:this.selectedPeer.id,Field:this.store.PeerScheduleJobs.dropdowns.Field[0].value,Operator:this.store.PeerScheduleJobs.dropdowns.Operator[0].value,Value:"",CreationDate:"",ExpireDate:"",Action:this.store.PeerScheduleJobs.dropdowns.Action[0].value})))}}},Dq={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0 overflow-y-scroll"},Rq={class:"container d-flex h-100 w-100"},$q={class:"m-auto modal-dialog-centered dashboardModal"},Lq={class:"card rounded-3 shadow",style:{width:"700px"}},Oq={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4 pb-2"},Nq={class:"mb-0 fw-normal"},Fq={class:"card-body px-4 pb-4 pt-2 position-relative"},Bq={class:"d-flex align-items-center mb-3"},Vq={class:"card shadow-sm",key:"none",style:{height:"153px"}},zq={class:"card-body text-muted text-center d-flex"},Wq={class:"m-auto"};function Yq(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("SchedulePeerJob");return P(),F("div",Dq,[f("div",Rq,[f("div",$q,[f("div",Lq,[f("div",Oq,[f("h4",Nq,[L(o,{t:"Schedule Jobs"})]),f("button",{type:"button",class:"btn-close ms-auto",onClick:e[0]||(e[0]=l=>this.$emit("close"))})]),f("div",Fq,[f("div",Bq,[f("button",{class:"btn bg-primary-subtle border-1 border-primary-subtle text-primary-emphasis rounded-3 shadow",onClick:e[1]||(e[1]=l=>this.addJob())},[e[3]||(e[3]=f("i",{class:"bi bi-plus-lg me-2"},null,-1)),L(o,{t:"Job"})])]),L(vo,{name:"schedulePeerJobTransition",tag:"div",class:"position-relative"},{default:Me(()=>[(P(!0),F(De,null,Ge(this.selectedPeer.jobs,(l,c)=>(P(),Ee(a,{onRefresh:e[2]||(e[2]=u=>this.$emit("refresh")),onDelete:u=>this.deleteJob(l),dropdowns:this.store.PeerScheduleJobs.dropdowns,key:l.JobID,pjob:l},null,8,["onDelete","dropdowns","pjob"]))),128)),this.selectedPeer.jobs.length===0?(P(),F("div",Vq,[f("div",zq,[f("h6",Wq,[L(o,{t:"This peer does not have any job yet."})])])])):se("",!0)]),_:1})])])])])])}const Hq=He(Iq,[["render",Yq],["__scopeId","data-v-5bbdd42b"]]),jq={name:"peerJobsAllModal",setup(){return{store:Vn()}},components:{LocaleText:Le,SchedulePeerJob:sT},props:{configurationPeers:Array[Object]},methods:{getuuid(){return Bs()}},computed:{getAllJobs(){return this.configurationPeers.filter(t=>t.jobs.length>0)}}},Kq={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0 overflow-y-scroll"},Uq={class:"container d-flex h-100 w-100"},Gq={class:"m-auto modal-dialog-centered dashboardModal"},Xq={class:"card rounded-3 shadow",style:{width:"700px"}},qq={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4 pb-2"},Zq={class:"mb-0 fw-normal"},Jq={class:"card-body px-4 pb-4 pt-2"},Qq={key:0,class:"accordion",id:"peerJobsLogsModalAccordion"},eZ={class:"accordion-header"},tZ=["data-bs-target"],nZ={key:0},iZ={class:"text-muted"},sZ=["id"],rZ={class:"accordion-body"},oZ={key:1,class:"card shadow-sm",style:{height:"153px"}},aZ={class:"card-body text-muted text-center d-flex"},lZ={class:"m-auto"};function cZ(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("SchedulePeerJob");return P(),F("div",Kq,[f("div",Uq,[f("div",Gq,[f("div",Xq,[f("div",qq,[f("h4",Zq,[L(o,{t:"All Active Jobs"})]),f("button",{type:"button",class:"btn-close ms-auto",onClick:e[0]||(e[0]=l=>this.$emit("close"))})]),f("div",Jq,[this.getAllJobs.length>0?(P(),F("div",Qq,[(P(!0),F(De,null,Ge(this.getAllJobs,(l,c)=>(P(),F("div",{class:"accordion-item",key:l.id},[f("h2",eZ,[f("button",{class:"accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapse_"+c},[f("small",null,[f("strong",null,[l.name?(P(),F("span",nZ,pe(l.name)+" • ",1)):se("",!0),f("samp",iZ,pe(l.id),1)])])],8,tZ)]),f("div",{id:"collapse_"+c,class:"accordion-collapse collapse","data-bs-parent":"#peerJobsLogsModalAccordion"},[f("div",rZ,[(P(!0),F(De,null,Ge(l.jobs,u=>(P(),Ee(a,{onDelete:e[1]||(e[1]=d=>this.$emit("refresh")),onRefresh:e[2]||(e[2]=d=>this.$emit("refresh")),dropdowns:this.store.PeerScheduleJobs.dropdowns,viewOnly:!0,key:u.JobID,pjob:u},null,8,["dropdowns","pjob"]))),128))])],8,sZ)]))),128))])):(P(),F("div",oZ,[f("div",aZ,[f("span",lZ,[L(o,{t:"No active job at the moment."})])])]))])])])])])}const uZ=He(jq,[["render",cZ]]),dZ={name:"peerJobsLogsModal",components:{LocaleText:Le},props:{configurationInfo:Object},data(){return{dataLoading:!0,data:[],logFetchTime:void 0,showLogID:!1,showJobID:!0,showSuccessJob:!0,showFailedJob:!0,showLogAmount:10}},async mounted(){await this.fetchLog()},methods:{async fetchLog(){this.dataLoading=!0,await Pt(`/api/getPeerScheduleJobLogs/${this.configurationInfo.Name}`,{},t=>{this.data=t.data,this.logFetchTime=Nn().format("YYYY-MM-DD HH:mm:ss"),this.dataLoading=!1})}},computed:{getLogs(){return this.data.filter(t=>this.showSuccessJob&&t.Status==="1"||this.showFailedJob&&t.Status==="0")},showLogs(){return this.getLogs.slice(0,this.showLogAmount)}}},hZ={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0 overflow-y-scroll"},fZ={class:"container-fluid d-flex h-100 w-100"},gZ={class:"m-auto mt-0 modal-dialog-centered dashboardModal",style:{width:"100%"}},pZ={class:"card rounded-3 shadow w-100"},mZ={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4 pb-0"},_Z={class:"mb-0"},vZ={class:"card-body px-4 pb-4 pt-2"},yZ={key:0},bZ={class:"mb-2 d-flex gap-3"},wZ={class:"d-flex gap-3 align-items-center"},xZ={class:"text-muted"},EZ={class:"form-check"},CZ={class:"form-check-label",for:"jobLogsShowSuccessCheck"},SZ={class:"badge text-success-emphasis bg-success-subtle"},kZ={class:"form-check"},TZ={class:"form-check-label",for:"jobLogsShowFailedCheck"},AZ={class:"badge text-danger-emphasis bg-danger-subtle"},PZ={class:"d-flex gap-3 align-items-center ms-auto"},MZ={class:"text-muted"},IZ={class:"form-check"},DZ={class:"form-check-label",for:"jobLogsShowJobIDCheck"},RZ={class:"form-check"},$Z={class:"form-check-label",for:"jobLogsShowLogIDCheck"},LZ={class:"table"},OZ={scope:"col"},NZ={key:0,scope:"col"},FZ={key:1,scope:"col"},BZ={scope:"col"},VZ={scope:"col"},zZ={style:{"font-size":"0.875rem"}},WZ={scope:"row"},YZ={key:0},HZ={class:"text-muted"},jZ={key:1},KZ={class:"text-muted"},UZ={class:"d-flex gap-2"},GZ={key:1,class:"d-flex align-items-center flex-column"};function XZ(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",hZ,[f("div",fZ,[f("div",gZ,[f("div",pZ,[f("div",mZ,[f("h4",_Z,[L(o,{t:"Jobs Logs"})]),f("button",{type:"button",class:"btn-close ms-auto",onClick:e[0]||(e[0]=a=>this.$emit("close"))})]),f("div",vZ,[this.dataLoading?(P(),F("div",GZ,e[11]||(e[11]=[f("div",{class:"spinner-border text-body",role:"status"},[f("span",{class:"visually-hidden"},"Loading...")],-1)]))):(P(),F("div",yZ,[f("p",null,[L(o,{t:"Updated at"}),Be(" : "+pe(this.logFetchTime),1)]),f("div",bZ,[f("button",{onClick:e[1]||(e[1]=a=>this.fetchLog()),class:"btn btn-sm rounded-3 shadow-sm text-info-emphasis bg-info-subtle border-1 border-info-subtle me-1"},[e[8]||(e[8]=f("i",{class:"bi bi-arrow-clockwise me-2"},null,-1)),L(o,{t:"Refresh"})]),f("div",wZ,[f("span",xZ,[L(o,{t:"Filter"})]),f("div",EZ,[Re(f("input",{class:"form-check-input",type:"checkbox","onUpdate:modelValue":e[2]||(e[2]=a=>this.showSuccessJob=a),id:"jobLogsShowSuccessCheck"},null,512),[[Gn,this.showSuccessJob]]),f("label",CZ,[f("span",SZ,[L(o,{t:"Success"})])])]),f("div",kZ,[Re(f("input",{class:"form-check-input",type:"checkbox","onUpdate:modelValue":e[3]||(e[3]=a=>this.showFailedJob=a),id:"jobLogsShowFailedCheck"},null,512),[[Gn,this.showFailedJob]]),f("label",TZ,[f("span",AZ,[L(o,{t:"Failed"})])])])]),f("div",PZ,[f("span",MZ,[L(o,{t:"Display"})]),f("div",IZ,[Re(f("input",{class:"form-check-input",type:"checkbox","onUpdate:modelValue":e[4]||(e[4]=a=>s.showJobID=a),id:"jobLogsShowJobIDCheck"},null,512),[[Gn,s.showJobID]]),f("label",DZ,[L(o,{t:"Job ID"})])]),f("div",RZ,[Re(f("input",{class:"form-check-input",type:"checkbox","onUpdate:modelValue":e[5]||(e[5]=a=>s.showLogID=a),id:"jobLogsShowLogIDCheck"},null,512),[[Gn,s.showLogID]]),f("label",$Z,[L(o,{t:"Log ID"})])])])]),f("table",LZ,[f("thead",null,[f("tr",null,[f("th",OZ,[L(o,{t:"Date"})]),s.showLogID?(P(),F("th",NZ,[L(o,{t:"Log ID"})])):se("",!0),s.showJobID?(P(),F("th",FZ,[L(o,{t:"Job ID"})])):se("",!0),f("th",BZ,[L(o,{t:"Status"})]),f("th",VZ,[L(o,{t:"Message"})])])]),f("tbody",null,[(P(!0),F(De,null,Ge(this.showLogs,a=>(P(),F("tr",zZ,[f("th",WZ,pe(a.LogDate),1),s.showLogID?(P(),F("td",YZ,[f("samp",HZ,pe(a.LogID),1)])):se("",!0),s.showJobID?(P(),F("td",jZ,[f("samp",KZ,pe(a.JobID),1)])):se("",!0),f("td",null,[f("span",{class:Se(["badge",[a.Status==="1"?"text-success-emphasis bg-success-subtle":"text-danger-emphasis bg-danger-subtle"]])},pe(a.Status==="1"?"Success":"Failed"),3)]),f("td",null,pe(a.Message),1)]))),256))])]),f("div",UZ,[this.getLogs.length>this.showLogAmount?(P(),F("button",{key:0,onClick:e[6]||(e[6]=a=>this.showLogAmount+=20),class:"btn btn-sm rounded-3 shadow-sm text-primary-emphasis bg-primary-subtle border-1 border-primary-subtle"},e[9]||(e[9]=[f("i",{class:"bi bi-chevron-down me-2"},null,-1),Be(" Show More ")]))):se("",!0),this.showLogAmount>20?(P(),F("button",{key:1,onClick:e[7]||(e[7]=a=>this.showLogAmount=20),class:"btn btn-sm rounded-3 shadow-sm text-primary-emphasis bg-primary-subtle border-1 border-primary-subtle"},e[10]||(e[10]=[f("i",{class:"bi bi-chevron-up me-2"},null,-1),Be(" Collapse ")]))):se("",!0)])]))])])])])])}const qZ=He(dZ,[["render",XZ]]),ZZ={name:"peerShareLinkModal",props:{peer:Object},components:{LocaleText:Le,VueDatePicker:ju},data(){return{dataCopy:void 0,loading:!1}},setup(){return{store:Je()}},mounted(){this.dataCopy=JSON.parse(JSON.stringify(this.peer.ShareLink)).at(0)},watch:{"peer.ShareLink":{deep:!0,handler(t,e){e.length!==t.length&&(this.dataCopy=JSON.parse(JSON.stringify(this.peer.ShareLink)).at(0))}}},methods:{startSharing(){this.loading=!0,ht("/api/sharePeer/create",{Configuration:this.peer.configuration.Name,Peer:this.peer.id,ExpireDate:Nn().add(7,"d").format("YYYY-MM-DD HH:mm:ss")},t=>{t.status?(this.peer.ShareLink=t.data,this.dataCopy=t.data.at(0)):this.store.newMessage("Server","Share link failed to create. Reason: "+t.message,"danger"),this.loading=!1})},updateLinkExpireDate(){ht("/api/sharePeer/update",this.dataCopy,t=>{t.status?(this.dataCopy=t.data.at(0),this.peer.ShareLink=t.data,this.store.newMessage("Server","Link expire date updated","success")):this.store.newMessage("Server","Link expire date failed to update. Reason: "+t.message,"danger"),this.loading=!1})},stopSharing(){this.loading=!0,this.dataCopy.ExpireDate=Nn().format("YYYY-MM-DD HH:mm:ss"),this.updateLinkExpireDate()},parseTime(t){t?this.dataCopy.ExpireDate=Nn(t).format("YYYY-MM-DD HH:mm:ss"):this.dataCopy.ExpireDate=void 0,this.updateLinkExpireDate()}},computed:{getUrl(){const t=this.store.getActiveCrossServer();return t?`${t.host}/${this.$router.resolve({path:"/share",query:{ShareID:this.dataCopy.ShareID}}).href}`:window.location.origin+window.location.pathname+this.$router.resolve({path:"/share",query:{ShareID:this.dataCopy.ShareID}}).href}}},JZ={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0 overflow-y-scroll"},QZ={class:"container d-flex h-100 w-100"},eJ={class:"m-auto modal-dialog-centered dashboardModal",style:{width:"500px"}},tJ={class:"card rounded-3 shadow flex-grow-1"},nJ={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4"},iJ={class:"mb-0"},sJ={key:0,class:"card-body px-4 pb-4"},rJ={key:0},oJ={class:"mb-3 text-muted"},aJ=["disabled"],lJ={key:1},cJ={class:"d-flex gap-2 mb-4"},uJ=["href"],dJ={class:"d-flex flex-column gap-2 mb-3"},hJ=["disabled"];function fJ(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("VueDatePicker");return P(),F("div",JZ,[f("div",QZ,[f("div",eJ,[f("div",tJ,[f("div",nJ,[f("h4",iJ,[L(o,{t:"Share Peer"})]),f("button",{type:"button",class:"btn-close ms-auto",onClick:e[0]||(e[0]=l=>this.$emit("close"))})]),this.peer.ShareLink?(P(),F("div",sJ,[this.dataCopy?(P(),F("div",lJ,[f("div",cJ,[e[4]||(e[4]=f("i",{class:"bi bi-link-45deg"},null,-1)),f("a",{href:this.getUrl,class:"text-decoration-none",target:"_blank"},pe(r.getUrl),9,uJ)]),f("div",dJ,[f("small",null,[e[5]||(e[5]=f("i",{class:"bi bi-calendar me-2"},null,-1)),L(o,{t:"Expire At"})]),L(a,{is24:!0,"min-date":new Date,"model-value":this.dataCopy.ExpireDate,"onUpdate:modelValue":this.parseTime,"time-picker-inline":"",format:"yyyy-MM-dd HH:mm:ss","preview-format":"yyyy-MM-dd HH:mm:ss",dark:this.store.Configuration.Server.dashboard_theme==="dark"},null,8,["min-date","model-value","onUpdate:modelValue","dark"])]),f("button",{onClick:e[2]||(e[2]=l=>this.stopSharing()),disabled:this.loading,class:"w-100 btn bg-danger-subtle text-danger-emphasis border-1 border-danger-subtle rounded-3 shadow-sm"},[f("span",{class:Se({"animate__animated animate__flash animate__infinite animate__slower":this.loading})},e[6]||(e[6]=[f("i",{class:"bi bi-send-slash-fill me-2"},null,-1)]),2),this.loading?(P(),Ee(o,{key:0,t:"Stop Sharing..."})):(P(),Ee(o,{key:1,t:"Stop Sharing"}))],8,hJ)])):(P(),F("div",rJ,[f("h6",oJ,[L(o,{t:"Currently the peer is not sharing"})]),f("button",{onClick:e[1]||(e[1]=l=>this.startSharing()),disabled:this.loading,class:"w-100 btn bg-success-subtle text-success-emphasis border-1 border-success-subtle rounded-3 shadow-sm"},[f("span",{class:Se({"animate__animated animate__flash animate__infinite animate__slower":this.loading})},e[3]||(e[3]=[f("i",{class:"bi bi-send-fill me-2"},null,-1)]),2),this.loading?(P(),Ee(o,{key:0,t:"Sharing..."})):(P(),Ee(o,{key:1,t:"Start Sharing"}))],8,aJ)]))])):se("",!0)])])])])}const gJ=He(ZZ,[["render",fJ]]),pJ={class:"container d-flex h-100 w-100"},mJ={class:"m-auto modal-dialog-centered dashboardModal",style:{width:"700px"}},_J={class:"card rounded-3 shadow flex-grow-1"},vJ={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4"},yJ={class:"mb-0"},bJ={class:"card-body px-4 pb-4"},wJ={class:"d-flex gap-2 flex-column"},xJ={class:"d-flex align-items-center"},EJ={class:"text-muted"},CJ={class:"ms-auto"},SJ={class:"d-flex align-items-center"},kJ={class:"text-muted"},TJ={class:"ms-auto"},AJ={for:"configuration_private_key",class:"form-label d-flex"},PJ={class:"text-muted d-block"},MJ={class:"form-check form-switch ms-auto"},IJ=["disabled"],DJ={for:"configuration_ipaddress_cidr",class:"form-label"},RJ={class:"text-muted"},$J=["disabled"],LJ={for:"configuration_listen_port",class:"form-label"},OJ={class:"text-muted"},NJ=["disabled"],FJ={for:"configuration_preup",class:"form-label"},BJ={class:"text-muted"},VJ=["disabled"],zJ={for:"configuration_predown",class:"form-label"},WJ={class:"text-muted"},YJ=["disabled"],HJ={for:"configuration_postup",class:"form-label"},jJ={class:"text-muted"},KJ=["disabled"],UJ={for:"configuration_postdown",class:"form-label"},GJ={class:"text-muted"},XJ=["disabled"],qJ={class:"d-flex align-items-center gap-2 mt-4"},ZJ=["disabled"],JJ=["disabled"],QJ={__name:"editConfiguration",props:{configurationInfo:Object},emits:["changed","close"],setup(t,{emit:e}){const n=t,i=Vn(),s=Je(),r=me(!1),o=Ei(JSON.parse(JSON.stringify(n.configurationInfo))),a=me(!1),l=me(!1);me(!1);const c=Ei({PrivateKey:!0,IPAddress:!0,ListenPort:!0}),u=Bp("editConfigurationContainer"),d=()=>{i.checkWGKeyLength(o.PrivateKey)?(c.PrivateKey=!0,o.PublicKey=window.wireguard.generatePublicKey(o.PrivateKey)):c.PrivateKey=!1},h=()=>{l.value=!1,Object.assign(o,JSON.parse(JSON.stringify(n.configurationInfo)))},g=e,p=()=>{r.value=!0,ht("/api/updateWireguardConfiguration",o,m=>{r.value=!1,m.status?(s.newMessage("Server","Configuration saved","success"),l.value=!1,g("dataChanged",m.data)):s.newMessage("Server",m.message,"danger")})};return Zt(o,()=>{l.value=JSON.stringify(o)!==JSON.stringify(n.configurationInfo)},{deep:!0}),me(!1),(m,v)=>(P(),F("div",{class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0 overflow-y-scroll",ref_key:"editConfigurationContainer",ref:u},[f("div",pJ,[f("div",mJ,[f("div",_J,[f("div",vJ,[f("h4",yJ,[L(Le,{t:"Configuration Settings"})]),f("button",{type:"button",class:"btn-close ms-auto",onClick:v[0]||(v[0]=y=>m.$emit("close"))})]),f("div",bJ,[f("div",wJ,[f("div",xJ,[f("small",EJ,[L(Le,{t:"Name"})]),f("small",CJ,[f("samp",null,pe(o.Name),1)])]),f("div",SJ,[f("small",kJ,[L(Le,{t:"Public Key"})]),f("small",TJ,[f("samp",null,pe(o.PublicKey),1)])]),v[15]||(v[15]=f("hr",null,null,-1)),f("div",null,[f("label",AJ,[f("small",PJ,[L(Le,{t:"Private Key"})]),f("div",MJ,[Re(f("input",{class:"form-check-input",type:"checkbox",role:"switch",id:"editPrivateKeySwitch","onUpdate:modelValue":v[1]||(v[1]=y=>a.value=y)},null,512),[[Gn,a.value]]),v[12]||(v[12]=f("label",{class:"form-check-label",for:"editPrivateKeySwitch"},[f("small",null,"Edit")],-1))])]),Re(f("input",{type:"text",class:Se(["form-control form-control-sm rounded-3",{"is-invalid":!c.PrivateKey}]),disabled:r.value||!a.value,onKeyup:v[2]||(v[2]=y=>d()),"onUpdate:modelValue":v[3]||(v[3]=y=>o.PrivateKey=y),id:"configuration_private_key"},null,42,IJ),[[ze,o.PrivateKey]])]),f("div",null,[f("label",DJ,[f("small",RJ,[L(Le,{t:"IP Address/CIDR"})])]),Re(f("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:r.value,"onUpdate:modelValue":v[4]||(v[4]=y=>o.Address=y),id:"configuration_ipaddress_cidr"},null,8,$J),[[ze,o.Address]])]),f("div",null,[f("label",LJ,[f("small",OJ,[L(Le,{t:"Listen Port"})])]),Re(f("input",{type:"number",class:"form-control form-control-sm rounded-3",disabled:r.value,"onUpdate:modelValue":v[5]||(v[5]=y=>o.ListenPort=y),id:"configuration_listen_port"},null,8,NJ),[[ze,o.ListenPort]])]),f("div",null,[f("label",FJ,[f("small",BJ,[L(Le,{t:"PreUp"})])]),Re(f("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:r.value,"onUpdate:modelValue":v[6]||(v[6]=y=>o.PreUp=y),id:"configuration_preup"},null,8,VJ),[[ze,o.PreUp]])]),f("div",null,[f("label",zJ,[f("small",WJ,[L(Le,{t:"PreDown"})])]),Re(f("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:r.value,"onUpdate:modelValue":v[7]||(v[7]=y=>o.PreDown=y),id:"configuration_predown"},null,8,YJ),[[ze,o.PreDown]])]),f("div",null,[f("label",HJ,[f("small",jJ,[L(Le,{t:"PostUp"})])]),Re(f("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:r.value,"onUpdate:modelValue":v[8]||(v[8]=y=>o.PostUp=y),id:"configuration_postup"},null,8,KJ),[[ze,o.PostUp]])]),f("div",null,[f("label",UJ,[f("small",GJ,[L(Le,{t:"PostDown"})])]),Re(f("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:r.value,"onUpdate:modelValue":v[9]||(v[9]=y=>o.PostDown=y),id:"configuration_postdown"},null,8,XJ),[[ze,o.PostDown]])]),f("div",qJ,[f("button",{class:"btn bg-secondary-subtle border-secondary-subtle text-secondary-emphasis rounded-3 shadow ms-auto",onClick:v[10]||(v[10]=y=>h()),disabled:!l.value||r.value},v[13]||(v[13]=[f("i",{class:"bi bi-arrow-clockwise"},null,-1)]),8,ZJ),f("button",{class:"btn bg-primary-subtle border-primary-subtle text-primary-emphasis rounded-3 shadow",disabled:!l.value||r.value,onClick:v[11]||(v[11]=y=>p())},v[14]||(v[14]=[f("i",{class:"bi bi-save-fill"},null,-1)]),8,JJ)])])])])])])],512))}},eQ={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0 overflow-y-scroll",ref:"selectPeersContainer"},tQ={class:"container d-flex h-100 w-100"},nQ={class:"m-auto modal-dialog-centered dashboardModal",style:{width:"700px"}},iQ={class:"card rounded-3 shadow flex-grow-1"},sQ={class:"card-header bg-transparent d-flex align-items-center gap-2 p-4 flex-column pb-3"},rQ={class:"mb-2 w-100 d-flex"},oQ={class:"mb-0"},aQ={class:"d-flex w-100 align-items-center gap-2"},lQ={class:"d-flex gap-3"},cQ={class:"card-body px-4 flex-grow-1 d-flex gap-2 flex-column position-relative",ref:"card-body",style:{"overflow-y":"scroll"}},uQ=["onClick","disabled","data-id"],dQ={class:"d-flex align-items-center gap-3"},hQ={key:0},fQ={class:"d-flex flex-column"},gQ={class:"fw-bold"},pQ={class:"text-muted"},mQ={key:1,class:"ms-auto"},_Q={key:0,class:"spinner-border spinner-border-sm",role:"status"},vQ={class:"card-footer px-4 py-3 gap-2 d-flex align-items-center"},yQ=["disabled"],bQ={key:0,class:"flex-grow-1 text-center"},wQ=["disabled"],xQ={key:0,class:"flex-grow-1 text-center"},EQ=["disabled"],CQ={key:0,class:"flex-grow-1 text-center"},SQ=["disabled"],kQ={__name:"selectPeers",props:{configurationPeers:Array},emits:["refresh","close"],setup(t,{emit:e}){const n=t,i=me(!1),s=me(!1),r=me([]),o=me(""),a=E=>{r.value.find(w=>w===E)?r.value=r.value.filter(w=>w!==E):r.value.push(E)},l=ye(()=>i.value||s.value?n.configurationPeers.filter(E=>r.value.find(w=>w===E.id)):o.value.length>0?n.configurationPeers.filter(E=>E.id.includes(o.value)||E.name.includes(o.value)):n.configurationPeers);Zt(r,()=>{r.value.length===0&&(i.value=!1,s.value=!1)});const c=zu(),u=Je(),d=e,h=me(!1),g=()=>{h.value=!0,ht(`/api/deletePeers/${c.params.id}`,{peers:r.value},E=>{u.newMessage("Server",E.message,E.status?"success":"danger"),E.status&&(r.value=[],i.value=!1),d("refresh"),h.value=!1})},p=Ei({success:[],failed:[]}),m=Bp("card-body"),v=Bp("sp"),y=async()=>{s.value=!0;for(const E of r.value)m.value.scrollTo({top:v.value.find(w=>w.dataset.id===E).offsetTop-20,behavior:"smooth"}),await Pt("/api/downloadPeer/"+c.params.id,{id:E},w=>{if(w.status){const b=new Blob([w.data.file],{type:"text/plain"}),C=URL.createObjectURL(b),k=`${w.data.fileName}.conf`,T=document.createElement("a");T.href=C,T.download=k,T.click(),p.success.push(E)}else p.failed.push(E)})},x=()=>{p.success=[],p.failed=[],s.value=!1};return(E,w)=>(P(),F("div",eQ,[f("div",tQ,[f("div",nQ,[f("div",iQ,[f("div",sQ,[f("div",rQ,[f("h4",oQ,[L(Le,{t:"Select Peers"})]),f("button",{type:"button",class:"btn-close ms-auto",onClick:w[0]||(w[0]=b=>d("close"))})]),f("div",aQ,[f("div",lQ,[s.value?se("",!0):(P(),F("a",{key:0,role:"button",onClick:w[1]||(w[1]=b=>r.value=t.configurationPeers.map(C=>C.id)),class:"text-decoration-none text-body"},w[9]||(w[9]=[f("small",null,[f("i",{class:"bi bi-check-all me-2"}),Be("Select All ")],-1)]))),r.value.length>0&&!s.value?(P(),F("a",{key:1,role:"button",class:"text-decoration-none text-body",onClick:w[2]||(w[2]=b=>r.value=[])},w[10]||(w[10]=[f("small",null,[f("i",{class:"bi bi-x-circle-fill me-2"}),Be("Clear ")],-1)]))):se("",!0)]),w[11]||(w[11]=f("label",{class:"ms-auto",for:"selectPeersSearchInput"},[f("i",{class:"bi bi-search"})],-1)),Re(f("input",{class:"form-control form-control-sm rounded-3","onUpdate:modelValue":w[3]||(w[3]=b=>o.value=b),id:"selectPeersSearchInput",style:{width:"200px !important"},type:"text"},null,512),[[ze,o.value]])])]),f("div",cQ,[(P(!0),F(De,null,Ge(l.value,b=>(P(),F("button",{type:"button",class:Se(["btn w-100 peerBtn text-start rounded-3",{active:r.value.find(C=>C===b.id)}]),onClick:C=>a(b.id),key:b.id,disabled:i.value||s.value,ref_for:!0,ref:"sp","data-id":b.id},[f("div",dQ,[s.value?se("",!0):(P(),F("span",hQ,[f("i",{class:Se(["bi",[r.value.find(C=>C===b.id)?"bi-check-circle-fill":"bi-circle"]])},null,2)])),f("div",fQ,[f("small",gQ,pe(b.name?b.name:"Untitled Peer"),1),f("small",pQ,[f("samp",null,pe(b.id),1)])]),s.value?(P(),F("span",mQ,[!p.success.find(C=>C===b.id)&&!p.failed.find(C=>C===b.id)?(P(),F("div",_Q,w[12]||(w[12]=[f("span",{class:"visually-hidden"},"Loading...",-1)]))):(P(),F("i",{key:1,class:Se(["bi",[p.failed.find(C=>C===b.id)?"bi-x-circle-fill":"bi-check-circle-fill"]])},null,2))])):se("",!0)])],10,uQ))),128))],512),f("div",vQ,[!i.value&&!s.value?(P(),F(De,{key:0},[f("button",{class:"btn bg-primary-subtle text-primary-emphasis border-primary-subtle rounded-3",disabled:r.value.length===0||h.value,onClick:w[4]||(w[4]=b=>y())},w[13]||(w[13]=[f("i",{class:"bi bi-download"},null,-1)]),8,yQ),r.value.length>0?(P(),F("span",bQ,[w[14]||(w[14]=f("i",{class:"bi bi-check-circle-fill me-2"},null,-1)),Be(" "+pe(r.value.length)+" Peer"+pe(r.value.length>1?"s":""),1)])):se("",!0),f("button",{class:"btn bg-danger-subtle text-danger-emphasis border-danger-subtle ms-auto rounded-3",onClick:w[5]||(w[5]=b=>i.value=!0),disabled:r.value.length===0||h.value},w[15]||(w[15]=[f("i",{class:"bi bi-trash"},null,-1)]),8,wQ)],64)):s.value?(P(),F(De,{key:1},[p.failed.length+p.success.length1?"s":"")+"... ",1)):(P(),F(De,{key:1},[w[16]||(w[16]=f("strong",null," Download Finished ",-1)),f("button",{onClick:w[6]||(w[6]=b=>x()),class:"btn bg-secondary-subtle text-secondary-emphasis border border-secondary-subtle rounded-3 ms-auto"}," Done ")],64))],64)):i.value?(P(),F(De,{key:2},[f("button",{class:"btn btn-danger rounded-3",disabled:r.value.length===0||h.value,onClick:w[7]||(w[7]=b=>g())}," Yes ",8,EQ),r.value.length>0?(P(),F("strong",CQ," Are you sure to delete "+pe(r.value.length)+" Peer"+pe(r.value.length>1?"s":"")+"? ",1)):se("",!0),f("button",{class:"btn bg-secondary-subtle text-secondary-emphasis border border-secondary-subtle ms-auto rounded-3",disabled:r.value.length===0||h.value,onClick:w[8]||(w[8]=b=>i.value=!1)}," No ",8,SQ)],64)):se("",!0)])])])])],512))}},TQ=He(kQ,[["__scopeId","data-v-8e40593b"]]),AQ={class:"card my-0 rounded-3"},PQ={class:"card-body position-relative"},MQ={key:0,class:"position-absolute w-100 h-100 confirmationContainer start-0 top-0 rounded-3 d-flex p-2"},IQ={class:"m-auto"},DQ={class:"d-flex gap-2 align-items-center justify-content-center"},RQ=["disabled"],$Q=["disabled"],LQ={key:0,class:"position-absolute w-100 h-100 confirmationContainer start-0 top-0 rounded-3 d-flex p-2"},OQ={class:"m-auto"},NQ={class:"d-flex gap-2 align-items-center justify-content-center"},FQ=["disabled"],BQ=["disabled"],VQ={class:"d-flex gap-3"},zQ={class:"d-flex flex-column"},WQ={class:"d-flex flex-column"},YQ={class:"d-flex gap-2 align-items-center ms-auto"},HQ={class:"card rounded-3"},jQ={key:0,class:"card-body"},KQ=["value"],UQ={class:"d-flex"},GQ={__name:"backup",props:["b","delay"],emits:["refresh","refreshPeersList"],setup(t,{emit:e}){oC(g=>({df360394:d.value}));const n=t,i=me(!1),s=me(!1),r=zu(),o=e,a=Je(),l=me(!1),c=()=>{l.value=!0,ht("/api/deleteWireguardConfigurationBackup",{configurationName:r.params.id,backupFileName:n.b.filename},g=>{l.value=!1,g.status?(o("refresh"),a.newMessage("Server","Backup deleted","success")):a.newMessage("Server","Backup failed to delete","danger")})},u=()=>{l.value=!0,ht("/api/restoreWireguardConfigurationBackup",{configurationName:r.params.id,backupFileName:n.b.filename},g=>{l.value=!1,s.value=!1,g.status?(o("refresh"),a.newMessage("Server","Backup restored with "+n.b.filename,"success")):a.newMessage("Server","Backup failed to restore","danger")})},d=ye(()=>n.delay+"s"),h=me(!1);return(g,p)=>(P(),F("div",AQ,[f("div",PQ,[L(xt,{name:"zoomReversed"},{default:Me(()=>[i.value?(P(),F("div",MQ,[f("div",IQ,[p[7]||(p[7]=f("h5",null,"Are you sure to delete this backup?",-1)),f("div",DQ,[f("button",{class:"btn btn-danger rounded-3",disabled:l.value,onClick:p[0]||(p[0]=m=>c())}," Yes ",8,RQ),f("button",{onClick:p[1]||(p[1]=m=>i.value=!1),disabled:l.value,class:"btn bg-secondary-subtle text-secondary-emphasis border-secondary-subtle rounded-3"}," No ",8,$Q)])])])):se("",!0)]),_:1}),L(xt,{name:"zoomReversed"},{default:Me(()=>[s.value?(P(),F("div",LQ,[f("div",OQ,[p[8]||(p[8]=f("h5",null,"Are you sure to restore this backup?",-1)),f("div",NQ,[f("button",{disabled:l.value,onClick:p[2]||(p[2]=m=>u()),class:"btn btn-success rounded-3"}," Yes ",8,FQ),f("button",{onClick:p[3]||(p[3]=m=>s.value=!1),disabled:l.value,class:"btn bg-secondary-subtle text-secondary-emphasis border-secondary-subtle rounded-3"}," No ",8,BQ)])])])):se("",!0)]),_:1}),f("div",VQ,[f("div",zQ,[p[9]||(p[9]=f("small",{class:"text-muted"}," Backup ",-1)),f("samp",null,pe(t.b.filename),1)]),f("div",WQ,[p[10]||(p[10]=f("small",{class:"text-muted"}," Backup Date ",-1)),Be(" "+pe(Z(Nn)(t.b.backupDate,"YYYYMMDDHHmmss").format("YYYY-MM-DD HH:mm:ss")),1)]),f("div",YQ,[f("button",{onClick:p[4]||(p[4]=m=>s.value=!0),class:"btn bg-warning-subtle text-warning-emphasis border-warning-subtle rounded-3 btn-sm"},p[11]||(p[11]=[f("i",{class:"bi bi-clock-history"},null,-1)])),f("button",{onClick:p[5]||(p[5]=m=>i.value=!0),class:"btn bg-danger-subtle text-danger-emphasis border-danger-subtle rounded-3 btn-sm"},p[12]||(p[12]=[f("i",{class:"bi bi-trash-fill"},null,-1)]))])]),p[15]||(p[15]=f("hr",null,null,-1)),f("div",HQ,[f("a",{role:"button",class:Se(["card-header d-flex text-decoration-none align-items-center",{"border-bottom-0":!h.value}]),style:{cursor:"pointer"},onClick:p[6]||(p[6]=m=>h.value=!h.value)},p[13]||(p[13]=[f("small",null,".conf File ",-1),f("i",{class:"bi bi-chevron-down ms-auto"},null,-1)]),2),h.value?(P(),F("div",jQ,[f("textarea",{class:"form-control rounded-3",value:t.b.content,disabled:"",style:{height:"300px","font-family":"var(--bs-font-monospace),sans-serif !important"}},null,8,KQ)])):se("",!0)]),p[16]||(p[16]=f("hr",null,null,-1)),f("div",UQ,[p[14]||(p[14]=f("span",null,[f("i",{class:"bi bi-database me-1"}),Be(" Database ")],-1)),f("i",{class:Se(["bi ms-auto",[t.b.database?"text-success bi-check-circle-fill":"text-danger bi-x-circle-fill"]])},null,2)])])]))}},XQ=He(GQ,[["__scopeId","data-v-61688b74"]]),qQ={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0 overflow-y-scroll",ref:"editConfigurationContainer"},ZQ={class:"d-flex h-100 w-100"},JQ={class:"modal-dialog-centered dashboardModal w-100 h-100 overflow-x-scroll flex-column gap-3 mx-3"},QQ={class:"my-5 d-flex gap-3 flex-column position-relative"},eee={class:"title"},tee={class:"d-flex mb-3"},nee={class:"mb-0"},iee={class:"position-relative d-flex flex-column gap-3"},see={class:"text-center title",key:"spinner"},ree={class:"card my-0 rounded-3",key:"noBackups"},oee={__name:"configurationBackupRestore",emits:["close","refreshPeersList"],setup(t,{emit:e}){const n=zu(),i=me([]),s=me(!0),r=e;Vt(()=>{o()});const o=()=>{s.value=!0,Pt("/api/getWireguardConfigurationBackup",{configurationName:n.params.id},l=>{i.value=l.data,s.value=!1})},a=()=>{Pt("/api/createWireguardConfigurationBackup",{configurationName:n.params.id},l=>{i.value=l.data,s.value=!1})};return(l,c)=>(P(),F("div",qQ,[f("div",ZQ,[f("div",JQ,[f("div",QQ,[f("div",eee,[f("div",tee,[f("h4",nee,[L(Le,{t:"Backup & Restore"})]),f("button",{type:"button",class:"btn-close ms-auto",onClick:c[0]||(c[0]=u=>l.$emit("close"))})]),f("button",{onClick:c[1]||(c[1]=u=>a()),class:"btn bg-primary-subtle text-primary-emphasis border-primary-subtle rounded-3 w-100"},c[4]||(c[4]=[f("i",{class:"bi bi-plus-circle-fill me-2"},null,-1),Be(" Create Backup ")]))]),f("div",iee,[L(vo,{name:"list1"},{default:Me(()=>[s.value&&i.value.length===0?(P(),F("div",see,c[5]||(c[5]=[f("div",{class:"spinner-border"},null,-1)]))):!s.value&&i.value.length===0?(P(),F("div",ree,c[6]||(c[6]=[f("div",{class:"card-body text-center text-muted"},[f("i",{class:"bi bi-x-circle-fill me-2"}),Be(" No backup yet, click the button above to create backup. ")],-1)]))):se("",!0),(P(!0),F(De,null,Ge(i.value,(u,d)=>(P(),Ee(XQ,{onRefresh:c[2]||(c[2]=h=>o()),onRefreshPeersList:c[3]||(c[3]=h=>r("refreshPeersList")),b:u,delay:d*.05,key:u.filename},null,8,["b","delay"]))),128))]),_:1})])])])])],512))}},aee=He(oee,[["__scopeId","data-v-b454707b"]]),lee={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0 overflow-y-scroll"},cee={class:"container d-flex h-100 w-100"},uee={class:"m-auto modal-dialog-centered dashboardModal",style:{width:"700px"}},dee={class:"card rounded-3 shadow flex-grow-1 bg-danger-subtle border-danger-subtle",id:"deleteConfigurationContainer"},hee={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4 pb-0"},fee={class:"card-body px-4"},gee={key:0},pee={key:1},mee={key:2,class:"d-flex align-items-center gap-2"},_ee=["placeholder"],vee=["disabled"],yee={__name:"deleteConfiguration",emits:["backup"],setup(t,{emit:e}){const i=zu().params.id,s=me(""),r=IC(),o=Je(),a=me(!1),l=()=>{clearInterval(o.Peers.RefreshInterval),a.value=!0,ht("/api/deleteWireguardConfiguration",{Name:i},g=>{g.status?(r.push("/"),o.newMessage("Server","Configuration deleted","success")):a.value=!1})},c=me(!0),u=me([]),d=()=>{c.value=!0,Pt("/api/getWireguardConfigurationBackup",{configurationName:i},g=>{u.value=g.data,c.value=!1})};Vt(()=>{d()});const h=e;return(g,p)=>(P(),F("div",lee,[f("div",cee,[f("div",uee,[f("div",dee,[f("div",hee,[p[5]||(p[5]=f("h5",{class:"mb-0"}," Are you sure to delete this configuration? ",-1)),f("button",{type:"button",class:"btn-close ms-auto",onClick:p[0]||(p[0]=m=>g.$emit("close"))})]),f("div",fee,[p[12]||(p[12]=f("p",{class:"text-muted"},[Be(" Once you deleted, all connected peers will get disconnected; Both configuration file ("),f("code",null,".conf"),Be(") and database table related to this configuration will get deleted. ")],-1)),f("div",{class:Se(["alert",[c.value?"alert-secondary":u.value.length>0?"alert-success":"alert-danger"]])},[c.value?(P(),F("div",gee,[p[6]||(p[6]=f("i",{class:"bi bi-search me-2"},null,-1)),L(Le,{t:"Checking backups..."})])):u.value.length>0?(P(),F("div",pee,[p[7]||(p[7]=f("i",{class:"bi bi-check-circle-fill me-2"},null,-1)),L(Le,{t:"This configuration have "+u.value.length+" backups"},null,8,["t"])])):(P(),F("div",mee,[p[10]||(p[10]=f("i",{class:"bi bi-x-circle-fill me-2"},null,-1)),L(Le,{t:"This configuration have no backup."}),f("a",{role:"button",onClick:p[1]||(p[1]=m=>h("backup")),class:"ms-auto btn btn-sm btn-primary rounded-3"},p[8]||(p[8]=[f("i",{class:"bi bi-clock-history me-2"},null,-1),Be(" Backup ")])),f("a",{role:"button",onClick:p[2]||(p[2]=m=>d()),class:"btn btn-sm btn-primary rounded-3"},p[9]||(p[9]=[f("i",{class:"bi bi-arrow-clockwise"},null,-1)]))]))],2),p[13]||(p[13]=f("hr",null,null,-1)),p[14]||(p[14]=f("p",null,"If you're sure, please type in the configuration name below and click Delete.",-1)),Re(f("input",{class:"form-control rounded-3 mb-3",placeholder:Z(i),"onUpdate:modelValue":p[3]||(p[3]=m=>s.value=m),type:"text"},null,8,_ee),[[ze,s.value]]),f("button",{class:"btn btn-danger w-100",onClick:p[4]||(p[4]=m=>l()),disabled:s.value!==Z(i)||a.value},p[11]||(p[11]=[f("i",{class:"bi bi-trash-fill me-2 rounded-3"},null,-1),Be(" Delete ")]),8,vee)])])])])]))}};Df.register(eK,Rf,mK,uK,rk,RH,ok,ak,OH,LH,NH,FH,oU,lU,dU,SU,_m,PU,bK,VK,KK,GK,nU);const bee={name:"peerList",components:{DeleteConfiguration:yee,ConfigurationBackupRestore:aee,SelectPeers:TQ,EditConfiguration:QJ,LocaleText:Le,PeerShareLinkModal:gJ,PeerJobsLogsModal:qZ,PeerJobsAllModal:uZ,PeerJobs:Hq,PeerCreate:nT,PeerQRCode:v9,PeerSettings:b7,PeerSearch:zz,Peer:EW,Line:FU,Bar:NU},setup(){const t=Je(),e=Vn(),n=me(void 0);return{dashboardConfigurationStore:t,wireguardConfigurationStore:e,interval:n}},data(){return{configurationToggling:!1,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},peerScheduleJobs:{modalOpen:!1,selectedPeer:void 0},peerQRCode:{modalOpen:!1,peerConfigData:void 0},peerCreate:{modalOpen:!1},peerScheduleJobsAll:{modalOpen:!1},peerScheduleJobsLogs:{modalOpen:!1},peerShare:{modalOpen:!1,selectedPeer:void 0},editConfiguration:{modalOpen:!1},selectPeers:{modalOpen:!1},backupRestore:{modalOpen:!1},deleteConfiguration:{modalOpen:!0}}},mounted(){},watch:{$route:{immediate:!0,handler(){clearInterval(this.dashboardConfigurationStore.Peers.RefreshInterval),this.loading=!0;let t=this.$route.params.id;this.configurationInfo=[],this.configurationPeers=[],t&&(this.getPeers(t),this.setPeerInterval())}},"dashboardConfigurationStore.Configuration.Server.dashboard_refresh_interval"(){clearInterval(this.dashboardConfigurationStore.Peers.RefreshInterval),this.setPeerInterval()}},beforeRouteLeave(){clearInterval(this.dashboardConfigurationStore.Peers.RefreshInterval)},methods:{toggle(){this.configurationToggling=!0,Pt("/api/toggleWireguardConfiguration/",{configurationName:this.configurationInfo.Name},t=>{t.status?this.dashboardConfigurationStore.newMessage("Server",`${this.configurationInfo.Name} ${t.data?"is on":"is off"}`,"success"):this.dashboardConfigurationStore.newMessage("Server",t.message,"danger"),this.configurationInfo.Status=t.data,this.configurationToggling=!1})},getPeers(t=this.$route.params.id){Pt("/api/getWireguardConfigurationInfo",{configurationName:t},e=>{if(this.configurationInfo=e.data.configurationInfo,this.configurationPeers=e.data.configurationPeers,this.configurationPeers.forEach(n=>{n.restricted=!1}),e.data.configurationRestrictedPeers.forEach(n=>{n.restricted=!0,this.configurationPeers.push(n)}),this.loading=!1,this.configurationPeers.length>0){const n=this.configurationPeers.map(s=>s.total_sent+s.cumu_sent).reduce((s,r)=>s+r).toFixed(4),i=this.configurationPeers.map(s=>s.total_receive+s.cumu_receive).reduce((s,r)=>s+r).toFixed(4);this.historyDataSentDifference[this.historyDataSentDifference.length-1]!==n&&(this.historyDataSentDifference.length>0&&(this.historySentData={labels:[...this.historySentData.labels,Nn().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]!==i&&(this.historyDataReceivedDifference.length>0&&(this.historyReceiveData={labels:[...this.historyReceiveData.labels,Nn().format("HH:mm:ss A")],datasets:[{label:"Data Received",data:[...this.historyReceiveData.datasets[0].data,((i-this.historyDataReceivedDifference[this.historyDataReceivedDifference.length-1])*1e3).toFixed(4)],fill:!1,borderColor:"#0d6efd",tension:0}]}),this.historyDataReceivedDifference.push(i))}})},setPeerInterval(){this.dashboardConfigurationStore.Peers.RefreshInterval=setInterval(()=>{this.getPeers()},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.filter(e=>!e.restricted).map(e=>e.total_data+e.cumu_data).reduce((e,n)=>e+n,0).toFixed(4):0,totalReceive:this.configurationPeers.length>0?this.configurationPeers.filter(e=>!e.restricted).map(e=>e.total_receive+e.cumu_receive).reduce((e,n)=>e+n,0).toFixed(4):0,totalSent:this.configurationPeers.length>0?this.configurationPeers.filter(e=>!e.restricted).map(e=>e.total_sent+e.cumu_sent).reduce((e,n)=>e+n,0).toFixed(4):0}},receiveData(){return this.historyReceiveData},sentData(){return this.historySentData},individualDataUsage(){return{labels:this.configurationPeers.map(t=>t.name?t.name:`Untitled Peer - ${t.id}`),datasets:[{label:"Total Data Usage",data:this.configurationPeers.map(t=>t.cumu_data+t.total_data),backgroundColor:this.configurationPeers.map(t=>"#0dcaf0"),tooltip:{callbacks:{label:t=>`${t.formattedValue} GB`}}}]}},individualDataUsageChartOption(){return{responsive:!0,plugins:{legend:{display:!1}},scales:{x:{ticks:{display:!1},grid:{display:!1}},y:{ticks:{callback:(t,e)=>`${t} GB`},grid:{display:!1}}}}},chartOptions(){return{responsive:!0,plugins:{legend:{display:!1},tooltip:{callbacks:{label:t=>`${t.formattedValue} MB/s`}}},scales:{x:{ticks:{display:!1},grid:{display:!1}},y:{ticks:{callback:(t,e)=>`${t} MB/s`},grid:{display:!1}}}}},searchPeers(){new Xl(this.configurationPeers,{keys:["name","id","allowed_ip"]});const t=this.wireguardConfigurationStore.searchString?this.configurationPeers.filter(e=>e.name.includes(this.wireguardConfigurationStore.searchString)||e.id.includes(this.wireguardConfigurationStore.searchString)||e.allowed_ip.includes(this.wireguardConfigurationStore.searchString)):this.configurationPeers;return this.dashboardConfigurationStore.Configuration.Server.dashboard_sort==="restricted"?t.slice().sort((e,n)=>e[this.dashboardConfigurationStore.Configuration.Server.dashboard_sort]n[this.dashboardConfigurationStore.Configuration.Server.dashboard_sort]?-1:0):t.slice().sort((e,n)=>e[this.dashboardConfigurationStore.Configuration.Server.dashboard_sort]n[this.dashboardConfigurationStore.Configuration.Server.dashboard_sort]?1:0)}}},wee={key:0,class:"container-md"},xee={class:"d-flex align-items-center"},Eee={CLASS:"text-muted"},Cee={class:"d-flex align-items-center gap-3"},See={class:"mb-0"},kee={class:"card rounded-3 bg-transparent shadow-sm ms-auto"},Tee={class:"card-body py-2 d-flex align-items-center"},Aee={class:"mb-0 text-muted"},Pee={class:"form-check form-switch ms-auto"},Mee=["for"],Iee={key:4,class:"spinner-border spinner-border-sm ms-2","aria-hidden":"true"},Dee=["disabled","id"],Ree={class:"row mt-3 gy-2 gx-2 mb-2"},$ee={class:"col-6 col-lg-3"},Lee={class:"card rounded-3 bg-transparent shadow-sm"},Oee={class:"card-body py-2"},Nee={class:"mb-0 text-muted"},Fee={class:"col-6 col-lg-3"},Bee={class:"card rounded-3 bg-transparent shadow-sm"},Vee={class:"card-body py-2"},zee={class:"mb-0 text-muted"},Wee={style:{"word-break":"break-all"},class:"col-12 col-lg-6"},Yee={class:"card rounded-3 bg-transparent shadow-sm"},Hee={class:"card-body py-2"},jee={class:"mb-0 text-muted"},Kee={class:"row gx-2 gy-2 mb-2"},Uee={class:"col-6 col-lg-3"},Gee={class:"card rounded-3 bg-transparent shadow-sm"},Xee={class:"card-body d-flex"},qee={class:"mb-0 text-muted"},Zee={class:"h4"},Jee={class:"col-6 col-lg-3"},Qee={class:"card rounded-3 bg-transparent shadow-sm"},ete={class:"card-body d-flex"},tte={class:"mb-0 text-muted"},nte={class:"h4"},ite={class:"col-6 col-lg-3"},ste={class:"card rounded-3 bg-transparent shadow-sm"},rte={class:"card-body d-flex"},ote={class:"mb-0 text-muted"},ate={class:"h4 text-primary"},lte={class:"col-6 col-lg-3"},cte={class:"card rounded-3 bg-transparent shadow-sm"},ute={class:"card-body d-flex"},dte={class:"mb-0 text-muted"},hte={class:"h4 text-success"},fte={class:"row gx-2 gy-2 mb-3"},gte={class:"col-12 col-lg-6"},pte={class:"card rounded-3 bg-transparent shadow-sm",style:{height:"270px"}},mte={class:"card-header bg-transparent border-0"},_te={class:"text-muted"},vte={class:"card-body pt-1"},yte={class:"col-sm col-lg-3"},bte={class:"card rounded-3 bg-transparent shadow-sm",style:{height:"270px"}},wte={class:"card-header bg-transparent border-0"},xte={class:"text-muted"},Ete={class:"card-body pt-1"},Cte={class:"col-sm col-lg-3"},Ste={class:"card rounded-3 bg-transparent shadow-sm",style:{height:"270px"}},kte={class:"card-header bg-transparent border-0"},Tte={class:"text-muted"},Ate={class:"card-body pt-1"},Pte={class:"mb-3"};function Mte(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("Bar"),l=Ce("Line"),c=Ce("PeerSearch"),u=Ce("Peer"),d=Ce("PeerSettings"),h=Ce("PeerQRCode"),g=Ce("PeerJobs"),p=Ce("PeerJobsAllModal"),m=Ce("PeerJobsLogsModal"),v=Ce("PeerShareLinkModal"),y=Ce("EditConfiguration"),x=Ce("SelectPeers"),E=Ce("DeleteConfiguration"),w=Ce("ConfigurationBackupRestore");return this.loading?se("",!0):(P(),F("div",wee,[f("div",xee,[f("div",null,[f("small",Eee,[L(o,{t:"CONFIGURATION"})]),f("div",Cee,[f("h1",See,[f("samp",null,pe(this.configurationInfo.Name),1)])])]),f("div",kee,[f("div",Tee,[f("div",null,[f("p",Aee,[f("small",null,[L(o,{t:"Status"})])]),f("div",Pee,[f("label",{class:"form-check-label",style:{cursor:"pointer"},for:"switch"+this.configurationInfo.id},[!this.configurationInfo.Status&&this.configurationToggling?(P(),Ee(o,{key:0,t:"Turning Off..."})):this.configurationInfo.Status&&this.configurationToggling?(P(),Ee(o,{key:1,t:"Turning On..."})):this.configurationInfo.Status&&!this.configurationToggling?(P(),Ee(o,{key:2,t:"On"})):!this.configurationInfo.Status&&!this.configurationToggling?(P(),Ee(o,{key:3,t:"Off"})):se("",!0),this.configurationToggling?(P(),F("span",Iee)):se("",!0)],8,Mee),Re(f("input",{class:"form-check-input",style:{cursor:"pointer"},disabled:this.configurationToggling,type:"checkbox",role:"switch",id:"switch"+this.configurationInfo.id,onChange:e[0]||(e[0]=b=>this.toggle()),"onUpdate:modelValue":e[1]||(e[1]=b=>this.configurationInfo.Status=b)},null,40,Dee),[[Gn,this.configurationInfo.Status]])])]),f("div",{class:Se(["dot ms-5",{active:this.configurationInfo.Status}])},null,2)])])]),f("div",Ree,[f("div",$ee,[f("div",Lee,[f("div",Oee,[f("p",Nee,[f("small",null,[L(o,{t:"Address"})])]),Be(" "+pe(this.configurationInfo.Address),1)])])]),f("div",Fee,[f("div",Bee,[f("div",Vee,[f("p",zee,[f("small",null,[L(o,{t:"Listen Port"})])]),Be(" "+pe(this.configurationInfo.ListenPort),1)])])]),f("div",Wee,[f("div",Yee,[f("div",Hee,[f("p",jee,[f("small",null,[L(o,{t:"Public Key"})])]),f("samp",null,pe(this.configurationInfo.PublicKey),1)])])])]),f("div",Kee,[f("div",Uee,[f("div",Gee,[f("div",Xee,[f("div",null,[f("p",qee,[f("small",null,[L(o,{t:"Connected Peers"})])]),f("strong",Zee,pe(r.configurationSummary.connectedPeers)+" / "+pe(s.configurationPeers.length),1)]),e[27]||(e[27]=f("i",{class:"bi bi-ethernet ms-auto h2 text-muted"},null,-1))])])]),f("div",Jee,[f("div",Qee,[f("div",ete,[f("div",null,[f("p",tte,[f("small",null,[L(o,{t:"Total Usage"})])]),f("strong",nte,pe(r.configurationSummary.totalUsage)+" GB",1)]),e[28]||(e[28]=f("i",{class:"bi bi-arrow-down-up ms-auto h2 text-muted"},null,-1))])])]),f("div",ite,[f("div",ste,[f("div",rte,[f("div",null,[f("p",ote,[f("small",null,[L(o,{t:"Total Received"})])]),f("strong",ate,pe(r.configurationSummary.totalReceive)+" GB",1)]),e[29]||(e[29]=f("i",{class:"bi bi-arrow-down ms-auto h2 text-muted"},null,-1))])])]),f("div",lte,[f("div",cte,[f("div",ute,[f("div",null,[f("p",dte,[f("small",null,[L(o,{t:"Total Sent"})])]),f("strong",hte,pe(r.configurationSummary.totalSent)+" GB",1)]),e[30]||(e[30]=f("i",{class:"bi bi-arrow-up ms-auto h2 text-muted"},null,-1))])])])]),f("div",fte,[f("div",gte,[f("div",pte,[f("div",mte,[f("small",_te,[L(o,{t:"Peers Data Usage"})])]),f("div",vte,[L(a,{data:r.individualDataUsage,options:r.individualDataUsageChartOption,style:{width:"100%",height:"200px","max-height":"200px"}},null,8,["data","options"])])])]),f("div",yte,[f("div",bte,[f("div",wte,[f("small",xte,[L(o,{t:"Real Time Received Data Usage"})])]),f("div",Ete,[L(l,{options:r.chartOptions,data:r.receiveData,style:{width:"100%",height:"200px","max-height":"200px"}},null,8,["options","data"])])])]),f("div",Cte,[f("div",Ste,[f("div",kte,[f("small",Tte,[L(o,{t:"Real Time Sent Data Usage"})])]),f("div",Ate,[L(l,{options:r.chartOptions,data:r.sentData,style:{width:"100%",height:"200px","max-height":"200px"}},null,8,["options","data"])])])])]),f("div",Pte,[L(c,{onJobsAll:e[2]||(e[2]=b=>this.peerScheduleJobsAll.modalOpen=!0),onJobLogs:e[3]||(e[3]=b=>this.peerScheduleJobsLogs.modalOpen=!0),onEditConfiguration:e[4]||(e[4]=b=>this.editConfiguration.modalOpen=!0),onSelectPeers:e[5]||(e[5]=b=>this.selectPeers.modalOpen=!0),onBackupRestore:e[6]||(e[6]=b=>this.backupRestore.modalOpen=!0),onDeleteConfiguration:e[7]||(e[7]=b=>this.deleteConfiguration.modalOpen=!0),configuration:this.configurationInfo},null,8,["configuration"]),L(vo,{name:"list",tag:"div",class:"row gx-2 gy-2 z-0"},{default:Me(()=>[(P(!0),F(De,null,Ge(this.searchPeers,b=>(P(),F("div",{class:"col-12 col-lg-6 col-xl-4",key:b.id},[L(u,{Peer:b,onShare:C=>{this.peerShare.selectedPeer=b.id,this.peerShare.modalOpen=!0},onRefresh:e[8]||(e[8]=C=>this.getPeers()),onJobs:C=>{s.peerScheduleJobs.modalOpen=!0,s.peerScheduleJobs.selectedPeer=this.configurationPeers.find(k=>k.id===b.id)},onSetting:C=>{s.peerSetting.modalOpen=!0,s.peerSetting.selectedPeer=this.configurationPeers.find(k=>k.id===b.id)},onQrcode:e[9]||(e[9]=C=>{this.peerQRCode.peerConfigData=C,this.peerQRCode.modalOpen=!0})},null,8,["Peer","onShare","onJobs","onSetting"])]))),128))]),_:1})]),L(xt,{name:"zoom"},{default:Me(()=>[this.peerSetting.modalOpen?(P(),Ee(d,{key:"settings",selectedPeer:this.peerSetting.selectedPeer,onRefresh:e[10]||(e[10]=b=>this.getPeers()),onClose:e[11]||(e[11]=b=>this.peerSetting.modalOpen=!1)},null,8,["selectedPeer"])):se("",!0)]),_:1}),L(xt,{name:"zoom"},{default:Me(()=>[s.peerQRCode.modalOpen?(P(),Ee(h,{peerConfigData:this.peerQRCode.peerConfigData,key:"qrcode",onClose:e[12]||(e[12]=b=>this.peerQRCode.modalOpen=!1)},null,8,["peerConfigData"])):se("",!0)]),_:1}),L(xt,{name:"zoom"},{default:Me(()=>[this.peerScheduleJobs.modalOpen?(P(),Ee(g,{key:0,onRefresh:e[13]||(e[13]=b=>this.getPeers()),selectedPeer:this.peerScheduleJobs.selectedPeer,onClose:e[14]||(e[14]=b=>this.peerScheduleJobs.modalOpen=!1)},null,8,["selectedPeer"])):se("",!0)]),_:1}),L(xt,{name:"zoom"},{default:Me(()=>[this.peerScheduleJobsAll.modalOpen?(P(),Ee(p,{key:0,onRefresh:e[15]||(e[15]=b=>this.getPeers()),onClose:e[16]||(e[16]=b=>this.peerScheduleJobsAll.modalOpen=!1),configurationPeers:this.configurationPeers},null,8,["configurationPeers"])):se("",!0)]),_:1}),L(xt,{name:"zoom"},{default:Me(()=>[this.peerScheduleJobsLogs.modalOpen?(P(),Ee(m,{key:0,onClose:e[17]||(e[17]=b=>this.peerScheduleJobsLogs.modalOpen=!1),configurationInfo:this.configurationInfo},null,8,["configurationInfo"])):se("",!0)]),_:1}),L(xt,{name:"zoom"},{default:Me(()=>[this.peerShare.modalOpen?(P(),Ee(v,{key:0,onClose:e[18]||(e[18]=b=>{this.peerShare.modalOpen=!1,this.peerShare.selectedPeer=void 0}),peer:this.configurationPeers.find(b=>b.id===this.peerShare.selectedPeer)},null,8,["peer"])):se("",!0)]),_:1}),L(xt,{name:"zoom"},{default:Me(()=>[this.editConfiguration.modalOpen?(P(),Ee(y,{key:0,onClose:e[19]||(e[19]=b=>this.editConfiguration.modalOpen=!1),onDataChanged:e[20]||(e[20]=b=>this.configurationInfo=b),configurationInfo:this.configurationInfo},null,8,["configurationInfo"])):se("",!0)]),_:1}),L(xt,{name:"zoom"},{default:Me(()=>[this.selectPeers.modalOpen?(P(),Ee(x,{key:0,onRefresh:e[21]||(e[21]=b=>this.getPeers()),configurationPeers:this.configurationPeers,onClose:e[22]||(e[22]=b=>this.selectPeers.modalOpen=!1)},null,8,["configurationPeers"])):se("",!0)]),_:1}),L(xt,{name:"zoom"},{default:Me(()=>[s.deleteConfiguration.modalOpen?(P(),Ee(E,{key:0,onBackup:e[23]||(e[23]=b=>s.backupRestore.modalOpen=!0),onClose:e[24]||(e[24]=b=>s.deleteConfiguration.modalOpen=!1)})):se("",!0)]),_:1}),L(xt,{name:"zoom"},{default:Me(()=>[s.backupRestore.modalOpen?(P(),Ee(w,{key:0,onClose:e[25]||(e[25]=b=>s.backupRestore.modalOpen=!1),onRefreshPeersList:e[26]||(e[26]=b=>this.getPeers())})):se("",!0)]),_:1})]))}const Ite=He(bee,[["render",Mte],["__scopeId","data-v-e1b5f6b7"]]);class Er{constructor(e){this.propagationStopped,this.defaultPrevented,this.type=e,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}const Fl={PROPERTYCHANGE:"propertychange"};class Bf{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}function Dte(t,e,n){let i,s;n=n||hr;let r=0,o=t.length,a=!1;for(;r>1),s=+n(t[i],e),s<0?r=i+1:(o=i,a=!s);return a?r:~r}function hr(t,e){return t>e?1:t0?s-1:s}return i-1}if(n>0){for(let s=1;s0||o===0)})}function yu(){return!0}function zf(){return!1}function Bl(){}function rT(t){let e,n,i;return function(){const s=Array.prototype.slice.call(arguments);return(!n||this!==i||!So(s,n))&&(i=this,n=s,e=t.apply(this,arguments)),e}}function Lte(t){function e(){let n;try{n=t()}catch(i){return Promise.reject(i)}return n instanceof Promise?n:Promise.resolve(n)}return e()}function qu(t){for(const e in t)delete t[e]}function Vl(t){let e;for(e in t)return!1;return!e}class Wf extends Bf{constructor(e){super(),this.eventTarget_=e,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(e,n){if(!e||!n)return;const i=this.listeners_||(this.listeners_={}),s=i[e]||(i[e]=[]);s.includes(n)||s.push(n)}dispatchEvent(e){const n=typeof e=="string",i=n?e:e.type,s=this.listeners_&&this.listeners_[i];if(!s)return;const r=n?new Er(e):e;r.target||(r.target=this.eventTarget_||this);const o=this.dispatching_||(this.dispatching_={}),a=this.pendingRemovals_||(this.pendingRemovals_={});i in o||(o[i]=0,a[i]=0),++o[i];let l;for(let c=0,u=s.length;c0:!1}removeEventListener(e,n){if(!this.listeners_)return;const i=this.listeners_[e];if(!i)return;const s=i.indexOf(n);s!==-1&&(this.pendingRemovals_&&e in this.pendingRemovals_?(i[s]=Bl,++this.pendingRemovals_[e]):(i.splice(s,1),i.length===0&&delete this.listeners_[e]))}}const tt={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"};function ft(t,e,n,i,s){if(s){const o=n;n=function(){t.removeEventListener(e,n),o.apply(i??this,arguments)}}else i&&i!==t&&(n=n.bind(i));const r={target:t,type:e,listener:n};return t.addEventListener(e,n),r}function Bh(t,e,n,i){return ft(t,e,n,i,!0)}function Lt(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),qu(t))}class Zu extends Wf{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(tt.CHANGE)}getRevision(){return this.revision_}onInternal(e,n){if(Array.isArray(e)){const i=e.length,s=new Array(i);for(let r=0;r0;)this.pop()}extend(e){for(let n=0,i=e.length;nthis.getLength())throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(n),this.array_.splice(e,0,n),this.updateLength_(),this.dispatchEvent(new Hd(gi.ADD,n,e))}pop(){return this.removeAt(this.getLength()-1)}push(e){this.unique_&&this.assertUnique_(e);const n=this.getLength();return this.insertAt(n,e),this.getLength()}remove(e){const n=this.array_;for(let i=0,s=n.length;i=this.getLength())return;const n=this.array_[e];return this.array_.splice(e,1),this.updateLength_(),this.dispatchEvent(new Hd(gi.REMOVE,n,e)),n}setAt(e,n){const i=this.getLength();if(e>=i){this.insertAt(e,n);return}if(e<0)throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(n,e);const s=this.array_[e];this.array_[e]=n,this.dispatchEvent(new Hd(gi.REMOVE,s,e)),this.dispatchEvent(new Hd(gi.ADD,n,e))}updateLength_(){this.set(rw.LENGTH,this.array_.length)}assertUnique_(e,n){for(let i=0,s=this.array_.length;i1?(n=s,i=r):l>0&&(n+=o*l,i+=a*l)}return dl(t,e,n,i)}function dl(t,e,n,i){const s=n-t,r=i-e;return s*s+r*r}function Bte(t){const e=t.length;for(let i=0;ir&&(r=l,s=a)}if(r===0)return null;const o=t[s];t[s]=t[i],t[i]=o;for(let a=i+1;a=0;i--){n[i]=t[i][e]/t[i][i];for(let s=i-1;s>=0;s--)t[s][e]-=t[s][i]*n[i]}return n}function fh(t){return t*Math.PI/180}function hl(t,e){const n=t%e;return n*e<0?n+e:n}function Ai(t,e,n){return t+n*(e-t)}function mv(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}function jd(t,e){return Math.floor(mv(t,e))}function Kd(t,e){return Math.ceil(mv(t,e))}class oT extends zs{constructor(e){super(),this.on,this.once,this.un,this.background_=e.background;const n=Object.assign({},e);typeof e.properties=="object"&&(delete n.properties,Object.assign(n,e.properties)),n[Ct.OPACITY]=e.opacity!==void 0?e.opacity:1,mt(typeof n[Ct.OPACITY]=="number","Layer opacity must be a number"),n[Ct.VISIBLE]=e.visible!==void 0?e.visible:!0,n[Ct.Z_INDEX]=e.zIndex,n[Ct.MAX_RESOLUTION]=e.maxResolution!==void 0?e.maxResolution:1/0,n[Ct.MIN_RESOLUTION]=e.minResolution!==void 0?e.minResolution:0,n[Ct.MIN_ZOOM]=e.minZoom!==void 0?e.minZoom:-1/0,n[Ct.MAX_ZOOM]=e.maxZoom!==void 0?e.maxZoom:1/0,this.className_=n.className!==void 0?n.className:"ol-layer",delete n.className,this.setProperties(n),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(e){const n=this.state_||{layer:this,managed:e===void 0?!0:e},i=this.getZIndex();return n.opacity=rn(Math.round(this.getOpacity()*100)/100,0,1),n.visible=this.getVisible(),n.extent=this.getExtent(),n.zIndex=i===void 0&&!n.managed?1/0:i,n.maxResolution=this.getMaxResolution(),n.minResolution=Math.max(this.getMinResolution(),0),n.minZoom=this.getMinZoom(),n.maxZoom=this.getMaxZoom(),this.state_=n,n}getLayersArray(e){return pt()}getLayerStatesArray(e){return pt()}getExtent(){return this.get(Ct.EXTENT)}getMaxResolution(){return this.get(Ct.MAX_RESOLUTION)}getMinResolution(){return this.get(Ct.MIN_RESOLUTION)}getMinZoom(){return this.get(Ct.MIN_ZOOM)}getMaxZoom(){return this.get(Ct.MAX_ZOOM)}getOpacity(){return this.get(Ct.OPACITY)}getSourceState(){return pt()}getVisible(){return this.get(Ct.VISIBLE)}getZIndex(){return this.get(Ct.Z_INDEX)}setBackground(e){this.background_=e,this.changed()}setExtent(e){this.set(Ct.EXTENT,e)}setMaxResolution(e){this.set(Ct.MAX_RESOLUTION,e)}setMinResolution(e){this.set(Ct.MIN_RESOLUTION,e)}setMaxZoom(e){this.set(Ct.MAX_ZOOM,e)}setMinZoom(e){this.set(Ct.MIN_ZOOM,e)}setOpacity(e){mt(typeof e=="number","Layer opacity must be a number"),this.set(Ct.OPACITY,e)}setVisible(e){this.set(Ct.VISIBLE,e)}setZIndex(e){this.set(Ct.Z_INDEX,e)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}}const Wi={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"},Hn={ANIMATING:0,INTERACTING:1},es={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"},Vte=42,_v=256,vv={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};class aT{constructor(e){this.code_=e.code,this.units_=e.units,this.extent_=e.extent!==void 0?e.extent:null,this.worldExtent_=e.worldExtent!==void 0?e.worldExtent:null,this.axisOrientation_=e.axisOrientation!==void 0?e.axisOrientation:"enu",this.global_=e.global!==void 0?e.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||vv[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(e){this.global_=e,this.canWrapX_=!!(e&&this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(e){this.defaultTileGrid_=e}setExtent(e){this.extent_=e,this.canWrapX_=!!(this.global_&&e)}setWorldExtent(e){this.worldExtent_=e}setGetPointResolution(e){this.getPointResolutionFunc_=e}getPointResolutionFunc(){return this.getPointResolutionFunc_}}const Ju=6378137,nl=Math.PI*Ju,zte=[-nl,-nl,nl,nl],Wte=[-180,-85,180,85],Ud=Ju*Math.log(Math.tan(Math.PI/2));class Ba extends aT{constructor(e){super({code:e,units:"m",extent:zte,global:!0,worldExtent:Wte,getPointResolution:function(n,i){return n/Math.cosh(i[1]/Ju)}})}}const ow=[new Ba("EPSG:3857"),new Ba("EPSG:102100"),new Ba("EPSG:102113"),new Ba("EPSG:900913"),new Ba("http://www.opengis.net/def/crs/EPSG/0/3857"),new Ba("http://www.opengis.net/gml/srs/epsg.xml#3857")];function Yte(t,e,n,i){const s=t.length;n=n>1?n:2,i=i??n,e===void 0&&(n>2?e=t.slice():e=new Array(s));for(let r=0;rUd?o=Ud:o<-Ud&&(o=-Ud),e[r+1]=o}return e}function Hte(t,e,n,i){const s=t.length;n=n>1?n:2,i=i??n,e===void 0&&(n>2?e=t.slice():e=new Array(s));for(let r=0;rs&&(l=l|An.RIGHT),ar&&(l=l|An.ABOVE),l===An.UNKNOWN&&(l=An.INTERSECTING),l}function Gi(){return[1/0,1/0,-1/0,-1/0]}function uo(t,e,n,i,s){return s?(s[0]=t,s[1]=e,s[2]=n,s[3]=i,s):[t,e,n,i]}function Yf(t){return uo(1/0,1/0,-1/0,-1/0,t)}function uT(t,e){const n=t[0],i=t[1];return uo(n,i,n,i,e)}function wv(t,e,n,i,s){const r=Yf(s);return dT(r,t,e,n,i)}function bu(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function qte(t,e){return e[0]t[2]&&(t[2]=e[2]),e[1]t[3]&&(t[3]=e[3]),t}function Zc(t,e){e[0]t[2]&&(t[2]=e[0]),e[1]t[3]&&(t[3]=e[1])}function dT(t,e,n,i,s){for(;ne[0]?i[0]=t[0]:i[0]=e[0],t[1]>e[1]?i[1]=t[1]:i[1]=e[1],t[2]=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function Uf(t){return t[2]=o&&m<=l),!i&&r&An.RIGHT&&!(s&An.RIGHT)&&(v=g-(h-l)*p,i=v>=a&&v<=c),!i&&r&An.BELOW&&!(s&An.BELOW)&&(m=h-(g-a)/p,i=m>=o&&m<=l),!i&&r&An.LEFT&&!(s&An.LEFT)&&(v=g-(h-o)*p,i=v>=a&&v<=c)}return i}function fT(t,e){const n=e.getExtent(),i=pa(t);if(e.canWrapX()&&(i[0]=n[2])){const s=yt(n),o=Math.floor((i[0]-n[0])/s)*s;t[0]-=o,t[2]-=o}return t}function xv(t,e,n){if(e.canWrapX()){const i=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[i[0],t[1],i[2],t[3]]];fT(t,e);const s=yt(i);if(yt(t)>s&&!n)return[[i[0],t[1],i[2],t[3]]];if(t[0]i[2])return[[t[0],t[1],i[2],t[3]],[i[0],t[1],t[2]-s,t[3]]]}return[t]}function nne(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function zh(t,e){let n=!0;for(let i=t.length-1;i>=0;--i)if(t[i]!=e[i]){n=!1;break}return n}function Ev(t,e){const n=Math.cos(e),i=Math.sin(e),s=t[0]*n-t[1]*i,r=t[1]*n+t[0]*i;return t[0]=s,t[1]=r,t}function ine(t,e){return t[0]*=e,t[1]*=e,t}function gT(t,e){if(e.canWrapX()){const n=yt(e.getExtent()),i=sne(t,e,n);i&&(t[0]-=i*n)}return t}function sne(t,e,n){const i=e.getExtent();let s=0;return e.canWrapX()&&(t[0]i[2])&&(n=n||yt(i),s=Math.floor((t[0]-i[0])/n)),s}const rne=63710088e-1;function uw(t,e,n){n=n||rne;const i=fh(t[1]),s=fh(e[1]),r=(s-i)/2,o=fh(e[0]-t[0])/2,a=Math.sin(r)*Math.sin(r)+Math.sin(o)*Math.sin(o)*Math.cos(i)*Math.cos(s);return 2*n*Math.atan2(Math.sqrt(a),Math.sqrt(1-a))}function pT(...t){console.warn(...t)}let Im=!0;function mT(t){Im=!1}function Cv(t,e){if(e!==void 0){for(let n=0,i=t.length;n=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(Im=!1,pT("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t}function yT(t,e){return t}function Zr(t,e){return t}function cne(){hw(ow),hw(lw),lne(lw,ow,Yte,Hte)}cne();function fw(t,e,n){return function(i,s,r,o,a){if(!i)return;if(!s&&!e)return i;const l=e?0:r[0]*s,c=e?0:r[1]*s,u=a?a[0]:0,d=a?a[1]:0;let h=t[0]+l/2+u,g=t[2]-l/2+u,p=t[1]+c/2+d,m=t[3]-c/2+d;h>g&&(h=(g+h)/2,g=h),p>m&&(p=(m+p)/2,m=p);let v=rn(i[0],h,g),y=rn(i[1],p,m);if(o&&n&&s){const x=30*s;v+=-x*Math.log(1+Math.max(0,h-i[0])/x)+x*Math.log(1+Math.max(0,i[0]-g)/x),y+=-x*Math.log(1+Math.max(0,p-i[1])/x)+x*Math.log(1+Math.max(0,i[1]-m)/x)}return[v,y]}}function une(t){return t}function Tv(t,e,n,i){const s=yt(e)/n[0],r=Un(e)/n[1];return i?Math.min(t,Math.max(s,r)):Math.min(t,Math.min(s,r))}function Av(t,e,n){let i=Math.min(t,e);const s=50;return i*=Math.log(1+s*Math.max(0,t/e-1))/s+1,n&&(i=Math.max(i,n),i/=Math.log(1+s*Math.max(0,n/t-1))/s+1),rn(i,n/2,e*2)}function dne(t,e,n,i){return e=e!==void 0?e:!0,function(s,r,o,a){if(s!==void 0){const l=t[0],c=t[t.length-1],u=n?Tv(l,n,o,i):l;if(a)return e?Av(s,u,c):rn(s,c,u);const d=Math.min(u,s),h=Math.floor(pv(t,d,r));return t[h]>u&&hMath.round(n*mw[i])/mw[i]).join(", ")+")"}function io(t,e,n,i,s,r,o){r=r||[],o=o||2;let a=0;for(let l=e;l{if(!i)return this.getSimplifiedGeometry(n);const s=this.clone();return s.applyTransform(i),s.getSimplifiedGeometry(n)})}simplifyTransformed(e,n){return this.simplifyTransformedInternal(this.getRevision(),e,n)}clone(){return pt()}closestPointXY(e,n,i,s){return pt()}containsXY(e,n){const i=this.getClosestPoint([e,n]);return i[0]===e&&i[1]===n}getClosestPoint(e,n){return n=n||[NaN,NaN],this.closestPointXY(e[0],e[1],n,1/0),n}intersectsCoordinate(e){return this.containsXY(e[0],e[1])}computeExtent(e){return pt()}getExtent(e){if(this.extentRevision_!=this.getRevision()){const n=this.computeExtent(this.extent_);(isNaN(n[0])||isNaN(n[1]))&&Yf(n),this.extentRevision_=this.getRevision()}return ene(this.extent_,e)}rotate(e,n){pt()}scale(e,n,i){pt()}simplify(e){return this.getSimplifiedGeometry(e*e)}getSimplifiedGeometry(e){return pt()}getType(){return pt()}applyTransform(e){pt()}intersectsExtent(e){return pt()}translate(e,n){pt()}transform(e,n){const i=Xi(e),s=i.getUnits()=="tile-pixels"?function(r,o,a){const l=i.getExtent(),c=i.getWorldExtent(),u=Un(c)/Un(l);return br(_w,c[0],c[3],u,-u,0,0,0),io(r,0,r.length,a,_w,o),Wh(i,n)(r,o,a)}:Wh(i,n);return this.applyTransform(s),this}}class Gf extends xne{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates}computeExtent(e){return wv(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)}getCoordinates(){return pt()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||this.simplifiedGeometryMaxMinSquaredTolerance!==0&&e<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const n=this.getSimplifiedGeometryInternal(e);return n.getFlatCoordinates().length1)d=n;else if(h>0){for(let g=0;gs&&(s=c),r=a,o=l}return s}function Sne(t,e,n,i,s){for(let r=0,o=n.length;r0;){const d=c.pop(),h=c.pop();let g=0;const p=t[h],m=t[h+1],v=t[d],y=t[d+1];for(let x=h+i;xg&&(u=x,g=b)}g>s&&(l[(u-e)/i]=1,h+i0&&m>g)&&(p<0&&v0&&v>p)){c=d,u=h;continue}r[o++]=c,r[o++]=u,a=c,l=u,c=d,u=h}return r[o++]=c,r[o++]=u,o}function ET(t,e,n,i,s,r,o,a){for(let l=0,c=n.length;lr&&(c-a)*(r-l)-(s-a)*(u-l)>0&&o++:u<=r&&(c-a)*(r-l)-(s-a)*(u-l)<0&&o--,a=c,l=u}return o!==0}function ST(t,e,n,i,s,r){if(n.length===0||!Zo(t,e,n[0],i,s,r))return!1;for(let o=1,a=n.length;oy&&(c=(u+d)/2,ST(t,e,n,i,c,p)&&(v=c,y=x)),u=d}return isNaN(v)&&(v=s[r]),o?(o.push(v,p,y),o):[v,p,y]}function Rne(t,e,n,i,s){let r=[];for(let o=0,a=n.length;o=s[0]&&r[2]<=s[2]||r[1]>=s[1]&&r[3]<=s[3]?!0:kT(t,e,n,i,function(o,a){return tne(s,o,a)}):!1}function TT(t,e,n,i,s){return!!($v(t,e,n,i,s)||Zo(t,e,n,i,s[0],s[1])||Zo(t,e,n,i,s[0],s[3])||Zo(t,e,n,i,s[2],s[1])||Zo(t,e,n,i,s[2],s[3]))}function $ne(t,e,n,i,s){if(!TT(t,e,n[0],i,s))return!1;if(n.length===1)return!0;for(let r=1,o=n.length;r0}function One(t,e,n,i,s){s=s!==void 0?s:!1;for(let r=0,o=n.length;r1&&typeof arguments[n-1]=="function"&&(i=arguments[n-1],--n);let s=0;for(;s0}getInteracting(){return this.hints_[Hn.INTERACTING]>0}cancelAnimations(){this.setHint(Hn.ANIMATING,-this.hints_[Hn.ANIMATING]);let e;for(let n=0,i=this.animations_.length;n=0;--i){const s=this.animations_[i];let r=!0;for(let o=0,a=s.length;o0?c/l.duration:1;u>=1?(l.complete=!0,u=1):r=!1;const d=l.easing(u);if(l.sourceCenter){const h=l.sourceCenter[0],g=l.sourceCenter[1],p=l.targetCenter[0],m=l.targetCenter[1];this.nextCenter_=l.targetCenter;const v=h+d*(p-h),y=g+d*(m-g);this.targetCenter_=[v,y]}if(l.sourceResolution&&l.targetResolution){const h=d===1?l.targetResolution:l.sourceResolution+d*(l.targetResolution-l.sourceResolution);if(l.anchor){const g=this.getViewportSize_(this.getRotation()),p=this.constraints_.resolution(h,0,g,!0);this.targetCenter_=this.calculateCenterZoom(p,l.anchor)}this.nextResolution_=l.targetResolution,this.targetResolution_=h,this.applyTargetState_(!0)}if(l.sourceRotation!==void 0&&l.targetRotation!==void 0){const h=d===1?hl(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+d*(l.targetRotation-l.sourceRotation);if(l.anchor){const g=this.constraints_.rotation(h,!0);this.targetCenter_=this.calculateCenterRotate(g,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=h}if(this.applyTargetState_(!0),n=!0,!l.complete)break}if(r){this.animations_[i]=null,this.setHint(Hn.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const o=s[0].callback;o&&Gd(o,!0)}}this.animations_=this.animations_.filter(Boolean),n&&this.updateAnimationKey_===void 0&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(e,n){let i;const s=this.getCenterInternal();return s!==void 0&&(i=[s[0]-n[0],s[1]-n[1]],Ev(i,e-this.getRotation()),nne(i,n)),i}calculateCenterZoom(e,n){let i;const s=this.getCenterInternal(),r=this.getResolution();if(s!==void 0&&r!==void 0){const o=n[0]-e*(n[0]-s[0])/r,a=n[1]-e*(n[1]-s[1])/r;i=[o,a]}return i}getViewportSize_(e){const n=this.viewportSize_;if(e){const i=n[0],s=n[1];return[Math.abs(i*Math.cos(e))+Math.abs(s*Math.sin(e)),Math.abs(i*Math.sin(e))+Math.abs(s*Math.cos(e))]}return n}setViewportSize(e){this.viewportSize_=Array.isArray(e)?e.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const e=this.getCenterInternal();return e&&Dm(e,this.getProjection())}getCenterInternal(){return this.get(es.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(e){return e!==void 0?(e[0]=this.hints_[0],e[1]=this.hints_[1],e):this.hints_.slice()}calculateExtent(e){const n=this.calculateExtentInternal(e);return yT(n,this.getProjection())}calculateExtentInternal(e){e=e||this.getViewportSizeMinusPadding_();const n=this.getCenterInternal();mt(n,"The view center is not defined");const i=this.getResolution();mt(i!==void 0,"The view resolution is not defined");const s=this.getRotation();return mt(s!==void 0,"The view rotation is not defined"),Mm(n,i,s,e)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(e){this.applyOptions_(this.getUpdatedOptions_({maxZoom:e}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(e){this.applyOptions_(this.getUpdatedOptions_({minZoom:e}))}setConstrainResolution(e){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:e}))}getProjection(){return this.projection_}getResolution(){return this.get(es.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(e,n){return this.getResolutionForExtentInternal(Zr(e,this.getProjection()),n)}getResolutionForExtentInternal(e,n){n=n||this.getViewportSizeMinusPadding_();const i=yt(e)/n[0],s=Un(e)/n[1];return Math.max(i,s)}getResolutionForValueFunction(e){e=e||2;const n=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,s=Math.log(n/i)/Math.log(e);return function(r){return n/Math.pow(e,r*s)}}getRotation(){return this.get(es.ROTATION)}getValueForResolutionFunction(e){const n=Math.log(e||2),i=this.getConstrainedResolution(this.maxResolution_),s=this.minResolution_,r=Math.log(i/s)/n;return function(o){return Math.log(i/o)/n/r}}getViewportSizeMinusPadding_(e){let n=this.getViewportSize_(e);const i=this.padding_;return i&&(n=[n[0]-i[1]-i[3],n[1]-i[0]-i[2]]),n}getState(){const e=this.getProjection(),n=this.getResolution(),i=this.getRotation();let s=this.getCenterInternal();const r=this.padding_;if(r){const o=this.getViewportSizeMinusPadding_();s=pp(s,this.getViewportSize_(),[o[0]/2+r[3],o[1]/2+r[0]],n,i)}return{center:s.slice(0),projection:e!==void 0?e:null,resolution:n,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:i,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let e;const n=this.getResolution();return n!==void 0&&(e=this.getZoomForResolution(n)),e}getZoomForResolution(e){let n=this.minZoom_||0,i,s;if(this.resolutions_){const r=pv(this.resolutions_,e,1);n=r,i=this.resolutions_[r],r==this.resolutions_.length-1?s=2:s=i/this.resolutions_[r+1]}else i=this.maxResolution_,s=this.zoomFactor_;return n+Math.log(i/e)/Math.log(s)}getResolutionForZoom(e){if(this.resolutions_?.length){if(this.resolutions_.length===1)return this.resolutions_[0];const n=rn(Math.floor(e),0,this.resolutions_.length-2),i=this.resolutions_[n]/this.resolutions_[n+1];return this.resolutions_[n]/Math.pow(i,rn(e-n,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,e-this.minZoom_)}fit(e,n){let i;if(mt(Array.isArray(e)||typeof e.getSimplifiedGeometry=="function","Invalid extent or geometry provided as `geometry`"),Array.isArray(e)){mt(!Uf(e),"Cannot fit empty extent provided as `geometry`");const s=Zr(e,this.getProjection());i=xw(s)}else if(e.getType()==="Circle"){const s=Zr(e.getExtent(),this.getProjection());i=xw(s),i.rotate(this.getRotation(),pa(s))}else i=e;this.fitInternal(i,n)}rotatedExtentForGeometry(e){const n=this.getRotation(),i=Math.cos(n),s=Math.sin(-n),r=e.getFlatCoordinates(),o=e.getStride();let a=1/0,l=1/0,c=-1/0,u=-1/0;for(let d=0,h=r.length;d{this.dispatchEvent("sourceready")},0))),this.changed()}getFeatures(e){return this.renderer_?this.renderer_.getFeatures(e):Promise.resolve([])}getData(e){return!this.renderer_||!this.rendered?null:this.renderer_.getData(e)}isVisible(e){let n;const i=this.getMapInternal();!e&&i&&(e=i.getView()),e instanceof ks?n={viewState:e.getState(),extent:e.calculateExtent()}:n=e,!n.layerStatesArray&&i&&(n.layerStatesArray=i.getLayerGroup().getLayerStatesArray());let s;n.layerStatesArray?s=n.layerStatesArray.find(o=>o.layer===this):s=this.getLayerState();const r=this.getExtent();return Ov(s,n.viewState)&&(!r||vi(r,n.extent))}getAttributions(e){if(!this.isVisible(e))return[];const n=this.getSource()?.getAttributions();if(!n)return[];const i=e instanceof ks?e.getViewStateAndExtent():e;let s=n(i);return Array.isArray(s)||(s=[s]),s}render(e,n){const i=this.getRenderer();return i.prepareFrame(e)?(this.rendered=!0,i.renderFrame(e,n)):null}unrender(){this.rendered=!1}getDeclutter(){}renderDeclutter(e,n){}renderDeferred(e){const n=this.getRenderer();n&&n.renderDeferred(e)}setMapInternal(e){e||this.unrender(),this.set(Ct.MAP,e)}getMapInternal(){return this.get(Ct.MAP)}setMap(e){this.mapPrecomposeKey_&&(Lt(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),e||this.changed(),this.mapRenderKey_&&(Lt(this.mapRenderKey_),this.mapRenderKey_=null),e&&(this.mapPrecomposeKey_=ft(e,Wi.PRECOMPOSE,this.handlePrecompose_,this),this.mapRenderKey_=ft(this,tt.CHANGE,e.render,e),this.changed())}handlePrecompose_(e){const n=e.frameState.layerStatesArray,i=this.getLayerState(!1);mt(!n.some(s=>s.layer===i.layer),"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both."),n.push(i)}setSource(e){this.set(Ct.SOURCE,e)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}}function Ov(t,e){if(!t.visible)return!1;const n=e.resolution;if(n=t.maxResolution)return!1;const i=e.zoom;return i>t.minZoom&&i<=t.maxZoom}function AT(t,e,n=0,i=t.length-1,s=Wne){for(;i>n;){if(i-n>600){const l=i-n+1,c=e-n+1,u=Math.log(l),d=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*d*(l-d)/l)*(c-l/2<0?-1:1),g=Math.max(n,Math.floor(e-c*d/l+h)),p=Math.min(i,Math.floor(e+(l-c)*d/l+h));AT(t,e,g,p,s)}const r=t[e];let o=n,a=i;for(_c(t,n,e),s(t[i],r)>0&&_c(t,n,i);o0;)a--}s(t[n],r)===0?_c(t,n,a):(a++,_c(t,a,i)),a<=e&&(n=a+1),e<=a&&(i=a-1)}}function _c(t,e,n){const i=t[e];t[e]=t[n],t[n]=i}function Wne(t,e){return te?1:0}let PT=class{constructor(e=9){this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}all(){return this._all(this.data,[])}search(e){let n=this.data;const i=[];if(!qd(e,n))return i;const s=this.toBBox,r=[];for(;n;){for(let o=0;o=0&&r[n].children.length>this._maxEntries;)this._split(r,n),n--;this._adjustParentBBoxes(s,r,n)}_split(e,n){const i=e[n],s=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,s);const o=this._chooseSplitIndex(i,r,s),a=Za(i.children.splice(o,i.children.length-o));a.height=i.height,a.leaf=i.leaf,Va(i,this.toBBox),Va(a,this.toBBox),n?e[n-1].children.push(a):this._splitRoot(i,a)}_splitRoot(e,n){this.data=Za([e,n]),this.data.height=e.height+1,this.data.leaf=!1,Va(this.data,this.toBBox)}_chooseSplitIndex(e,n,i){let s,r=1/0,o=1/0;for(let a=n;a<=i-n;a++){const l=Tc(e,0,a,this.toBBox),c=Tc(e,a,i,this.toBBox),u=Une(l,c),d=mp(l)+mp(c);u=n;c--){const u=e.children[c];Ac(a,e.leaf?r(u):u),l+=Xd(a)}return l}_adjustParentBBoxes(e,n,i){for(let s=i;s>=0;s--)Ac(n[s],e)}_condense(e){for(let n=e.length-1,i;n>=0;n--)e[n].children.length===0?n>0?(i=e[n-1].children,i.splice(i.indexOf(e[n]),1)):this.clear():Va(e[n],this.toBBox)}};function Yne(t,e,n){if(!n)return e.indexOf(t);for(let i=0;i=t.minX&&e.maxY>=t.minY}function Za(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Ew(t,e,n,i,s){const r=[e,n];for(;r.length;){if(n=r.pop(),e=r.pop(),n-e<=i)continue;const o=e+Math.ceil((n-e)/i/2)*i;AT(t,o,e,n,s),r.push(e,o,o,n)}}const ot={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4};function Cw(t){return t[0]>0&&t[1]>0}function Gne(t,e,n){return n===void 0&&(n=[0,0]),n[0]=t[0]*e+.5|0,n[1]=t[1]*e+.5|0,n}function wi(t,e){return Array.isArray(t)?t:(e===void 0?e=[t,t]:(e[0]=t,e[1]=t),e)}class Zf{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=wi(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new Zf({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return pt()}getImage(e){return pt()}getHitDetectionImage(){return pt()}getPixelRatio(e){return 1}getImageState(){return pt()}getImageSize(){return pt()}getOrigin(){return pt()}getSize(){return pt()}setDisplacement(e){this.displacement_=e}setOpacity(e){this.opacity_=e}setRotateWithView(e){this.rotateWithView_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=wi(e)}listenImageChange(e){pt()}load(){pt()}unlistenImageChange(e){pt()}ready(){return Promise.resolve()}}const Su={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]};var Fn={name:"xyz",min:[0,0,0],channel:["X","Y","Z"],alias:["XYZ","ciexyz","cie1931"]};Fn.whitepoint={2:{A:[109.85,100,35.585],C:[98.074,100,118.232],D50:[96.422,100,82.521],D55:[95.682,100,92.149],D65:[95.045592705167,100,108.9057750759878],D75:[94.972,100,122.638],F2:[99.187,100,67.395],F7:[95.044,100,108.755],F11:[100.966,100,64.37],E:[100,100,100]},10:{A:[111.144,100,35.2],C:[97.285,100,116.145],D50:[96.72,100,81.427],D55:[95.799,100,90.926],D65:[94.811,100,107.304],D75:[94.416,100,120.641],F2:[103.28,100,69.026],F7:[95.792,100,107.687],F11:[103.866,100,65.627],E:[100,100,100]}};Fn.max=Fn.whitepoint[2].D65;Fn.rgb=function(t,e){e=e||Fn.whitepoint[2].E;var n=t[0]/e[0],i=t[1]/e[1],s=t[2]/e[2],r,o,a;return r=n*3.240969941904521+i*-1.537383177570093+s*-.498610760293,o=n*-.96924363628087+i*1.87596750150772+s*.041555057407175,a=n*.055630079696993+i*-.20397695888897+s*1.056971514242878,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r=r*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o=o*12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a=a*12.92,r=Math.min(Math.max(0,r),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[r*255,o*255,a*255]};Su.xyz=function(t,e){var n=t[0]/255,i=t[1]/255,s=t[2]/255;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,s=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92;var r=n*.41239079926595+i*.35758433938387+s*.18048078840183,o=n*.21263900587151+i*.71516867876775+s*.072192315360733,a=n*.019330818715591+i*.11919477979462+s*.95053215224966;return e=e||Fn.whitepoint[2].E,[r*e[0],o*e[1],a*e[2]]};const Nv={name:"luv",min:[0,-134,-140],max:[100,224,122],channel:["lightness","u","v"],alias:["LUV","cieluv","cie1976"],xyz:function(t,e,n){var i,s,r,o,a,l,c,u,d,h,g,p,m;if(r=t[0],o=t[1],a=t[2],r===0)return[0,0,0];var v=.0011070564598794539;return e=e||"D65",n=n||2,d=Fn.whitepoint[n][e][0],h=Fn.whitepoint[n][e][1],g=Fn.whitepoint[n][e][2],p=4*d/(d+15*h+3*g),m=9*h/(d+15*h+3*g),i=o/(13*r)+p||0,s=a/(13*r)+m||0,c=r>8?h*Math.pow((r+16)/116,3):h*r*v,l=c*9*i/(4*s)||0,u=c*(12-3*i-20*s)/(4*s)||0,[l,c,u]}};Fn.luv=function(t,e,n){var i,s,r,o,a,l,c,u,d,h,g,p,m,v=.008856451679035631,y=903.2962962962961;e=e||"D65",n=n||2,d=Fn.whitepoint[n][e][0],h=Fn.whitepoint[n][e][1],g=Fn.whitepoint[n][e][2],p=4*d/(d+15*h+3*g),m=9*h/(d+15*h+3*g),l=t[0],c=t[1],u=t[2],i=4*l/(l+15*c+3*u)||0,s=9*c/(l+15*c+3*u)||0;var x=c/h;return r=x<=v?y*x:116*Math.pow(x,1/3)-16,o=13*r*(i-p),a=13*r*(s-m),[r,o,a]};var MT={name:"lchuv",channel:["lightness","chroma","hue"],alias:["LCHuv","cielchuv"],min:[0,0,0],max:[100,100,360],luv:function(t){var e=t[0],n=t[1],i=t[2],s,r,o;return o=i/360*2*Math.PI,s=n*Math.cos(o),r=n*Math.sin(o),[e,s,r]},xyz:function(t){return Nv.xyz(MT.luv(t))}};Nv.lchuv=function(t){var e=t[0],n=t[1],i=t[2],s=Math.sqrt(n*n+i*i),r=Math.atan2(i,n),o=r*360/2/Math.PI;return o<0&&(o+=360),[e,s,o]};Fn.lchuv=function(t){return Nv.lchuv(Fn.luv(t))};const Sw={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};var kw={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function Xne(t){var e,n=[],i=1,s;if(typeof t=="number")return{space:"rgb",values:[t>>>16,(t&65280)>>>8,t&255],alpha:1};if(typeof t=="number")return{space:"rgb",values:[t>>>16,(t&65280)>>>8,t&255],alpha:1};if(t=String(t).toLowerCase(),Sw[t])n=Sw[t].slice(),s="rgb";else if(t==="transparent")i=0,s="rgb",n=[0,0,0];else if(t[0]==="#"){var r=t.slice(1),o=r.length,a=o<=4;i=1,a?(n=[parseInt(r[0]+r[0],16),parseInt(r[1]+r[1],16),parseInt(r[2]+r[2],16)],o===4&&(i=parseInt(r[3]+r[3],16)/255)):(n=[parseInt(r[0]+r[1],16),parseInt(r[2]+r[3],16),parseInt(r[4]+r[5],16)],o===8&&(i=parseInt(r[6]+r[7],16)/255)),n[0]||(n[0]=0),n[1]||(n[1]=0),n[2]||(n[2]=0),s="rgb"}else if(e=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(t)){var l=e[1];s=l.replace(/a$/,"");var c=s==="cmyk"?4:s==="gray"?1:3;n=e[2].trim().split(/\s*[,\/]\s*|\s+/),s==="color"&&(s=n.shift()),n=n.map(function(u,d){if(u[u.length-1]==="%")return u=parseFloat(u)/100,d===3?u:s==="rgb"?u*255:s[0]==="h"||s[0]==="l"&&!d?u*100:s==="lab"?u*125:s==="lch"?d<2?u*150:u*360:s[0]==="o"&&!d?u:s==="oklab"?u*.4:s==="oklch"?d<2?u*.4:u*360:u;if(s[d]==="h"||d===2&&s[s.length-1]==="h"){if(kw[u]!==void 0)return kw[u];if(u.endsWith("deg"))return parseFloat(u);if(u.endsWith("turn"))return parseFloat(u)*360;if(u.endsWith("grad"))return parseFloat(u)*360/400;if(u.endsWith("rad"))return parseFloat(u)*180/Math.PI}return u==="none"?0:parseFloat(u)}),i=n.length>c?n.pop():1}else/[0-9](?:\s|\/|,)/.test(t)&&(n=t.match(/([0-9]+)/g).map(function(u){return parseFloat(u)}),s=t.match(/([a-z])/ig)?.join("")?.toLowerCase()||"rgb");return{space:s,values:n,alpha:i}}const vp={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(t){var e=t[0]/360,n=t[1]/100,i=t[2]/100,s,r,o,a,l,c=0;if(n===0)return l=i*255,[l,l,l];for(r=i<.5?i*(1+n):i+n-i*n,s=2*i-r,a=[0,0,0];c<3;)o=e+1/3*-(c-1),o<0?o++:o>1&&o--,l=6*o<1?s+(r-s)*6*o:2*o<1?r:3*o<2?s+(r-s)*(2/3-o)*6:s,a[c++]=l*255;return a}};Su.hsl=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255,s=Math.min(e,n,i),r=Math.max(e,n,i),o=r-s,a,l,c;return r===s?a=0:e===r?a=(n-i)/o:n===r?a=2+(i-e)/o:i===r&&(a=4+(e-n)/o),a=Math.min(a*60,360),a<0&&(a+=360),c=(s+r)/2,r===s?l=0:c<=.5?l=o/(r+s):l=o/(2-r-s),[a,l*100,c*100]};function qne(t){Array.isArray(t)&&t.raw&&(t=String.raw(...arguments)),t instanceof Number&&(t=+t);var e,n=Xne(t);if(!n.space)return[];const i=n.space[0]==="h"?vp.min:Su.min,s=n.space[0]==="h"?vp.max:Su.max;return e=Array(3),e[0]=Math.min(Math.max(n.values[0],i[0]),s[0]),e[1]=Math.min(Math.max(n.values[1],i[1]),s[1]),e[2]=Math.min(Math.max(n.values[2],i[2]),s[2]),n.space[0]==="h"&&(e=vp.rgb(e)),e.push(Math.min(Math.max(n.alpha,0),1)),e}const Fv=[NaN,NaN,NaN,0];function Zne(t){return typeof t=="string"?t:Vv(t)}const Jne=1024,vc={};let yp=0;function Qne(t){if(t.length===4)return t;const e=t.slice();return e[3]=1,e}function Tw(t){const e=Fn.lchuv(Su.xyz(t));return e[3]=t[3],e}function eie(t){const e=Fn.rgb(MT.xyz(t));return e[3]=t[3],e}function Bv(t){if(t==="none")return Fv;if(vc.hasOwnProperty(t))return vc[t];if(yp>=Jne){let n=0;for(const i in vc)n++&3||(delete vc[i],--yp)}const e=qne(t);if(e.length!==4)throw new Error('failed to parse "'+t+'" as color');for(const n of e)if(isNaN(n))throw new Error('failed to parse "'+t+'" as color');return IT(e),vc[t]=e,++yp,e}function ku(t){return Array.isArray(t)?t:Bv(t)}function IT(t){return t[0]=rn(t[0]+.5|0,0,255),t[1]=rn(t[1]+.5|0,0,255),t[2]=rn(t[2]+.5|0,0,255),t[3]=rn(t[3],0,1),t}function Vv(t){let e=t[0];e!=(e|0)&&(e=e+.5|0);let n=t[1];n!=(n|0)&&(n=n+.5|0);let i=t[2];i!=(i|0)&&(i=i+.5|0);const s=t[3]===void 0?1:Math.round(t[3]*1e3)/1e3;return"rgba("+e+","+n+","+i+","+s+")"}const ho=typeof navigator<"u"&&typeof navigator.userAgent<"u"?navigator.userAgent.toLowerCase():"",tie=ho.includes("firefox"),nie=ho.includes("safari")&&!ho.includes("chrom");nie&&(ho.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(ho));const iie=ho.includes("webkit")&&!ho.includes("edge"),DT=ho.includes("macintosh"),RT=typeof devicePixelRatio<"u"?devicePixelRatio:1,$T=typeof WorkerGlobalScope<"u"&&typeof OffscreenCanvas<"u"&&self instanceof WorkerGlobalScope,LT=typeof Image<"u"&&Image.prototype.decode,OT=function(){let t=!1;try{const e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch{}return t}();function hn(t,e,n,i){let s;return n&&n.length?s=n.shift():$T?s=new OffscreenCanvas(t||300,e||300):s=document.createElement("canvas"),t&&(s.width=t),e&&(s.height=e),s.getContext("2d",i)}let bp;function Hh(){return bp||(bp=hn(1,1)),bp}function Wl(t){const e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function Aw(t,e){const n=e.parentNode;n&&n.replaceChild(t,e)}function sie(t){for(;t.lastChild;)t.lastChild.remove()}function rie(t,e){const n=t.childNodes;for(let i=0;;++i){const s=n[i],r=e[i];if(!s&&!r)break;if(s!==r){if(!s){t.appendChild(r);continue}if(!r){t.removeChild(s),--i;continue}t.insertBefore(r,s)}}}function oie(t,e,n){const i=t;let s=!0,r=!1,o=!1;const a=[Bh(i,tt.LOAD,function(){o=!0,r||e()})];return i.src&<?(r=!0,i.decode().then(function(){s&&e()}).catch(function(l){s&&(o?e():n())})):a.push(Bh(i,tt.ERROR,n)),function(){s=!1,a.forEach(Lt)}}function aie(t,e){return new Promise((n,i)=>{function s(){o(),n(t)}function r(){o(),i(new Error("Image load error"))}function o(){t.removeEventListener("load",s),t.removeEventListener("error",r)}t.addEventListener("load",s),t.addEventListener("error",r)})}function lie(t,e){return e&&(t.src=e),t.src&<?new Promise((n,i)=>t.decode().then(()=>n(t)).catch(s=>t.complete&&t.width?n(t):i(s))):aie(t)}class cie{constructor(){this.cache_={},this.patternCache_={},this.cacheSize_=0,this.maxCacheSize_=32}clear(){this.cache_={},this.patternCache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let e=0;for(const n in this.cache_){const i=this.cache_[n];!(e++&3)&&!i.hasListener()&&(delete this.cache_[n],delete this.patternCache_[n],--this.cacheSize_)}}}get(e,n,i){const s=wp(e,n,i);return s in this.cache_?this.cache_[s]:null}getPattern(e,n,i){const s=wp(e,n,i);return s in this.patternCache_?this.patternCache_[s]:null}set(e,n,i,s,r){const o=wp(e,n,i),a=o in this.cache_;this.cache_[o]=s,r&&(s.getImageState()===ot.IDLE&&s.load(),s.getImageState()===ot.LOADING?s.ready().then(()=>{this.patternCache_[o]=Hh().createPattern(s.getImage(1),"repeat")}):this.patternCache_[o]=Hh().createPattern(s.getImage(1),"repeat")),a||++this.cacheSize_}setSize(e){this.maxCacheSize_=e,this.expire()}}function wp(t,e,n){const i=n?ku(n):"null";return e+":"+t+":"+i}const Is=new cie;let yc=null;class uie extends Wf{constructor(e,n,i,s,r){super(),this.hitDetectionImage_=null,this.image_=e,this.crossOrigin_=i,this.canvas_={},this.color_=r,this.imageState_=s===void 0?ot.IDLE:s,this.size_=e&&e.width&&e.height?[e.width,e.height]:null,this.src_=n,this.tainted_,this.ready_=null}initializeImage_(){this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)}isTainted_(){if(this.tainted_===void 0&&this.imageState_===ot.LOADED){yc||(yc=hn(1,1,void 0,{willReadFrequently:!0})),yc.drawImage(this.image_,0,0);try{yc.getImageData(0,0,1,1),this.tainted_=!1}catch{yc=null,this.tainted_=!0}}return this.tainted_===!0}dispatchChangeEvent_(){this.dispatchEvent(tt.CHANGE)}handleImageError_(){this.imageState_=ot.ERROR,this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=ot.LOADED,this.size_=[this.image_.width,this.image_.height],this.dispatchChangeEvent_()}getImage(e){return this.image_||this.initializeImage_(),this.replaceColor_(e),this.canvas_[e]?this.canvas_[e]:this.image_}getPixelRatio(e){return this.replaceColor_(e),this.canvas_[e]?e:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){const e=this.size_[0],n=this.size_[1],i=hn(e,n);i.fillRect(0,0,e,n),this.hitDetectionImage_=i.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===ot.IDLE){this.image_||this.initializeImage_(),this.imageState_=ot.LOADING;try{this.src_!==void 0&&(this.image_.src=this.src_)}catch{this.handleImageError_()}this.image_ instanceof HTMLImageElement&&lie(this.image_,this.src_).then(e=>{this.image_=e,this.handleImageLoad_()}).catch(this.handleImageError_.bind(this))}}replaceColor_(e){if(!this.color_||this.canvas_[e]||this.imageState_!==ot.LOADED)return;const n=this.image_,i=hn(Math.ceil(n.width*e),Math.ceil(n.height*e)),s=i.canvas;i.scale(e,e),i.drawImage(n,0,0),i.globalCompositeOperation="multiply",i.fillStyle=Zne(this.color_),i.fillRect(0,0,s.width/e,s.height/e),i.globalCompositeOperation="destination-in",i.drawImage(n,0,0),this.canvas_[e]=s}ready(){return this.ready_||(this.ready_=new Promise(e=>{if(this.imageState_===ot.LOADED||this.imageState_===ot.ERROR)e();else{const n=()=>{(this.imageState_===ot.LOADED||this.imageState_===ot.ERROR)&&(this.removeEventListener(tt.CHANGE,n),e())};this.addEventListener(tt.CHANGE,n)}})),this.ready_}}function zv(t,e,n,i,s,r){let o=e===void 0?void 0:Is.get(e,n,s);return o||(o=new uie(t,t&&"src"in t?t.src||void 0:e,n,i,s),Is.set(e,n,s,o,r)),r&&o&&!Is.getPattern(e,n,s)&&Is.set(e,n,s,o,r),o}function Ds(t){return t?Array.isArray(t)?Vv(t):typeof t=="object"&&"src"in t?die(t):t:null}function die(t){if(!t.offset||!t.size)return Is.getPattern(t.src,"anonymous",t.color);const e=t.src+":"+t.offset,n=Is.getPattern(e,void 0,t.color);if(n)return n;const i=Is.get(t.src,"anonymous",null);if(i.getImageState()!==ot.LOADED)return null;const s=hn(t.size[0],t.size[1]);return s.drawImage(i.getImage(1),t.offset[0],t.offset[1],t.size[0],t.size[1],0,0,t.size[0],t.size[1]),zv(s.canvas,e,void 0,ot.LOADED,t.color,!0),Is.getPattern(e,void 0,t.color)}const Zd="ol-hidden",Jf="ol-unselectable",Wv="ol-control",Pw="ol-collapsed",hie=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))",`?\\s*([-,\\"\\'\\sa-z]+?)\\s*$`].join(""),"i"),Mw=["style","variant","weight","size","lineHeight","family"],NT=function(t){const e=t.match(hie);if(!e)return null;const n={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let i=0,s=Mw.length;i=7&&r9(l,e),o9(l,o),isNaN(i)&&(i=Sm.getBestMask(l,up.bind(null,l,n))),Sm.applyMask(i,l),up(l,n,i),{modules:l,version:e,errorCorrectionLevel:n,maskPattern:i,segments:s}}Vk.create=function(e,n){if(typeof e>"u"||e==="")throw new Error("No input text");let i=lp.M,s,r;return typeof n<"u"&&(i=lp.from(n.errorCorrectionLevel,lp.M),s=Fh.from(n.version),r=Sm.from(n.maskPattern),n.toSJISFunc&&Ff.setToSJISFunction(n.toSJISFunc)),c9(e,s,i,r)};var Qk={},fv={};(function(t){function e(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let i=n.slice().replace("#","").split("");if(i.length<3||i.length===5||i.length>8)throw new Error("Invalid hex color: "+n);(i.length===3||i.length===4)&&(i=Array.prototype.concat.apply([],i.map(function(r){return[r,r]}))),i.length===6&&i.push("F","F");const s=parseInt(i.join(""),16);return{r:s>>24&255,g:s>>16&255,b:s>>8&255,a:s&255,hex:"#"+i.slice(0,6).join("")}}t.getOptions=function(i){i||(i={}),i.color||(i.color={});const s=typeof i.margin>"u"||i.margin===null||i.margin<0?4:i.margin,r=i.width&&i.width>=21?i.width:void 0,o=i.scale||4;return{width:r,scale:r?4:o,margin:s,color:{dark:e(i.color.dark||"#000000ff"),light:e(i.color.light||"#ffffffff")},type:i.type,rendererOpts:i.rendererOpts||{}}},t.getScale=function(i,s){return s.width&&s.width>=i+s.margin*2?s.width/(i+s.margin*2):s.scale},t.getImageWidth=function(i,s){const r=t.getScale(i,s);return Math.floor((i+s.margin*2)*r)},t.qrToImageData=function(i,s,r){const o=s.modules.size,a=s.modules.data,l=t.getScale(o,r),c=Math.floor((o+r.margin*2)*l),u=r.margin*l,d=[r.color.light,r.color.dark];for(let f=0;f=u&&g>=u&&f"u"&&(!o||!o.getContext)&&(l=o,o=void 0),o||(c=i()),l=e.getOptions(l);const u=e.getImageWidth(r.modules.size,l),d=c.getContext("2d"),f=d.createImageData(u,u);return e.qrToImageData(f.data,r,l),n(d,c,u),d.putImageData(f,0,0),c},t.renderToDataURL=function(r,o,a){let l=a;typeof l>"u"&&(!o||!o.getContext)&&(l=o,o=void 0),l||(l={});const c=t.render(r,o,l),u=l.type||"image/png",d=l.rendererOpts||{};return c.toDataURL(u,d.quality)}})(Qk);var eT={};const u9=fv;function iw(t,e){const n=t.a/255,i=e+'="'+t.hex+'"';return n<1?i+" "+e+'-opacity="'+n.toFixed(2).slice(1)+'"':i}function dp(t,e,n){let i=t+e;return typeof n<"u"&&(i+=" "+n),i}function d9(t,e,n){let i="",s=0,r=!1,o=0;for(let a=0;a0&&l>0&&t[a-1]||(i+=r?dp("M",l+n,.5+c+n):dp("m",s,0),s=0,r=!1),l+1':"",c="',u='viewBox="0 0 '+a+" "+a+'"',f=''+l+c+` +`;return typeof i=="function"&&i(null,f),f};const h9=T7,Tm=Vk,tT=Qk,f9=eT;function gv(t,e,n,i,s){const r=[].slice.call(arguments,1),o=r.length,a=typeof r[o-1]=="function";if(!a&&!h9())throw new Error("Callback required as last argument");if(a){if(o<2)throw new Error("Too few arguments provided");o===2?(s=n,n=e,e=i=void 0):o===3&&(e.getContext&&typeof s>"u"?(s=i,i=void 0):(s=i,i=n,n=e,e=void 0))}else{if(o<1)throw new Error("Too few arguments provided");return o===1?(n=e,e=i=void 0):o===2&&!e.getContext&&(i=n,n=e,e=void 0),new Promise(function(l,c){try{const u=Tm.create(n,i);l(t(u,e,i))}catch(u){c(u)}})}try{const l=Tm.create(n,i);s(null,t(l,e,i))}catch(l){s(l)}}wa.create=Tm.create;wa.toCanvas=gv.bind(null,tT.render);wa.toDataURL=gv.bind(null,tT.renderToDataURL);wa.toString=gv.bind(null,function(t,e,n){return f9.render(t,n)});const g9={name:"peerQRCode",components:{LocaleText:Le},props:{peerConfigData:String},mounted(){wa.toCanvas(document.querySelector("#qrcode"),this.peerConfigData,t=>{t&&console.error(t)})}},p9={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0"},m9={class:"container d-flex h-100 w-100"},_9={class:"m-auto modal-dialog-centered dashboardModal justify-content-center"},v9={class:"card rounded-3 shadow"},y9={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4 pb-0"},b9={class:"mb-0"},w9={class:"card-body"},x9={id:"qrcode",class:"rounded-3 shadow",ref:"qrcode"};function E9(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",p9,[h("div",m9,[h("div",_9,[h("div",v9,[h("div",y9,[h("h4",b9,[$(o,{t:"QR Code"})]),h("button",{type:"button",class:"btn-close ms-auto",onClick:e[0]||(e[0]=a=>this.$emit("close"))})]),h("div",w9,[h("canvas",x9,null,512)])])])])])}const C9=He(g9,[["render",E9]]),S9={name:"nameInput",components:{LocaleText:Le},props:{bulk:Boolean,data:Object,saving:Boolean}},k9={for:"peer_name_textbox",class:"form-label"},T9={class:"text-muted"},A9=["disabled"];function P9(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",{class:Se({inactiveField:this.bulk})},[h("label",k9,[h("small",T9,[$(o,{t:"Name"})])]),Re(h("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving||this.bulk,"onUpdate:modelValue":e[0]||(e[0]=a=>this.data.name=a),id:"peer_name_textbox",placeholder:""},null,8,A9),[[ze,this.data.name]])],2)}const M9=He(S9,[["render",P9]]),I9={name:"privatePublicKeyInput",components:{LocaleText:Le},props:{data:Object,saving:Boolean,bulk:Boolean},setup(){const t=Xe(),e=$n();return{dashboardStore:t,wgStore:e}},data(){return{keypair:{publicKey:"",privateKey:"",presharedKey:""},editKey:!1,error:!1}},methods:{genKeyPair(){this.editKey=!1,this.keypair=window.wireguard.generateKeypair(),this.data.private_key=this.keypair.privateKey,this.data.public_key=this.keypair.publicKey},testKey(t){return/^[A-Za-z0-9+/]{43}=?=?$/.test(t)},checkMatching(){try{this.keypair.privateKey&&this.wgStore.checkWGKeyLength(this.keypair.privateKey)&&(this.keypair.publicKey=window.wireguard.generatePublicKey(this.keypair.privateKey),window.wireguard.generatePublicKey(this.keypair.privateKey)!==this.keypair.publicKey?(this.error=!0,this.dashboardStore.newMessage("WGDashboard","Private key does not match with the public key","danger")):(this.data.private_key=this.keypair.privateKey,this.data.public_key=this.keypair.publicKey))}catch{this.error=!0,this.data.private_key="",this.data.public_key=""}}},mounted(){this.genKeyPair()},watch:{keypair:{deep:!0,handler(){this.error=!1,this.checkMatching()}}}},D9={for:"peer_private_key_textbox",class:"form-label"},R9={class:"text-muted"},$9={class:"input-group"},L9=["disabled"],O9=["disabled"],N9={class:"d-flex"},F9={for:"public_key",class:"form-label"},B9={class:"text-muted"},V9={class:"form-check form-switch ms-auto"},z9=["disabled"],W9={class:"form-check-label",for:"enablePublicKeyEdit"},Y9=["disabled"];function H9(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",{class:Se(["d-flex gap-2 flex-column",{inactiveField:this.bulk}])},[h("div",null,[h("label",D9,[h("small",R9,[$(o,{t:"Private Key"}),h("code",null,[$(o,{t:"(Required for QR Code and Download)"})])])]),h("div",$9,[Re(h("input",{type:"text",class:Se(["form-control form-control-sm rounded-start-3",{"is-invalid":this.error}]),"onUpdate:modelValue":e[0]||(e[0]=a=>this.keypair.privateKey=a),disabled:!this.editKey||this.bulk,onBlur:e[1]||(e[1]=a=>this.checkMatching()),id:"peer_private_key_textbox"},null,42,L9),[[ze,this.keypair.privateKey]]),h("button",{class:"btn btn-outline-info btn-sm rounded-end-3",onClick:e[2]||(e[2]=a=>this.genKeyPair()),disabled:this.bulk,type:"button",id:"button-addon2"},e[6]||(e[6]=[h("i",{class:"bi bi-arrow-repeat"},null,-1)]),8,O9)])]),h("div",null,[h("div",N9,[h("label",F9,[h("small",B9,[$(o,{t:"Public Key"}),h("code",null,[$(o,{t:"(Required)"})])])]),h("div",V9,[Re(h("input",{class:"form-check-input",type:"checkbox",role:"switch",disabled:this.bulk,id:"enablePublicKeyEdit","onUpdate:modelValue":e[3]||(e[3]=a=>this.editKey=a)},null,8,z9),[[Gn,this.editKey]]),h("label",W9,[h("small",null,[$(o,{t:"Use your own Private and Public Key"})])])])]),Re(h("input",{class:Se(["form-control-sm form-control rounded-3",{"is-invalid":this.error}]),"onUpdate:modelValue":e[4]||(e[4]=a=>this.keypair.publicKey=a),onBlur:e[5]||(e[5]=a=>this.checkMatching()),disabled:!this.editKey||this.bulk,type:"text",id:"public_key"},null,42,Y9),[[ze,this.keypair.publicKey]])])],2)}const j9=He(I9,[["render",H9]]),K9={name:"allowedIPsInput",components:{LocaleText:Le},props:{data:Object,saving:Boolean,bulk:Boolean,availableIp:void 0},data(){return{allowedIp:[],availableIpSearchString:"",customAvailableIp:"",allowedIpFormatError:!1}},setup(){const t=$n(),e=Xe();return{store:t,dashboardStore:e}},computed:{searchAvailableIps(){return this.availableIpSearchString?this.availableIp.filter(t=>t.includes(this.availableIpSearchString)&&!this.data.allowed_ips.includes(t)):this.availableIp.filter(t=>!this.data.allowed_ips.includes(t))},inputGetLocale(){return At("Enter IP Address/CIDR")}},methods:{addAllowedIp(t){return this.store.checkCIDR(t)?(this.data.allowed_ips.push(t),this.customAvailableIp="",!0):(this.allowedIpFormatError=!0,this.dashboardStore.newMessage("WGDashboard","Allowed IPs is invalid","danger"),!1)}},watch:{customAvailableIp(){this.allowedIpFormatError=!1},availableIp(){this.availableIp!==void 0&&this.availableIp.length>0&&this.addAllowedIp(this.availableIp[0])}},mounted(){}},U9={for:"peer_allowed_ip_textbox",class:"form-label"},G9={class:"text-muted"},X9=["onClick"],q9={class:"d-flex gap-2 align-items-center"},Z9={class:"input-group"},J9=["placeholder","disabled"],Q9=["disabled"],eX={class:"text-muted"},tX={class:"dropdown flex-grow-1"},nX=["disabled"],iX={key:0,class:"dropdown-menu mt-2 shadow w-100 dropdown-menu-end rounded-3",style:{"overflow-y":"scroll","max-height":"270px",width:"300px !important"}},sX={class:"px-3 pb-2 pt-1 d-flex gap-3 align-items-center"},rX=["onClick"],oX={class:"me-auto"},aX={key:0},lX={class:"px-3 text-muted"};function cX(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",{class:Se({inactiveField:this.bulk})},[h("label",U9,[h("small",G9,[$(o,{t:"Allowed IPs"}),h("code",null,[$(o,{t:"(Required)"})])])]),h("div",{class:Se(["d-flex gap-2 flex-wrap",{"mb-2":this.data.allowed_ips.length>0}])},[$(vo,{name:"list"},{default:Me(()=>[(P(!0),F(Ie,null,Ge(this.data.allowed_ips,(a,l)=>(P(),F("span",{class:"badge rounded-pill text-bg-success",key:a},[Fe(pe(a)+" ",1),h("a",{role:"button",onClick:c=>this.data.allowed_ips.splice(l,1)},e[3]||(e[3]=[h("i",{class:"bi bi-x-circle-fill ms-1"},null,-1)]),8,X9)]))),128))]),_:1})],2),h("div",q9,[h("div",Z9,[Re(h("input",{type:"text",class:Se(["form-control form-control-sm rounded-start-3",{"is-invalid":this.allowedIpFormatError}]),placeholder:this.inputGetLocale,"onUpdate:modelValue":e[0]||(e[0]=a=>s.customAvailableIp=a),disabled:n.bulk},null,10,J9),[[ze,s.customAvailableIp]]),h("button",{class:"btn btn-outline-success btn-sm rounded-end-3",disabled:n.bulk||!this.customAvailableIp,onClick:e[1]||(e[1]=a=>this.addAllowedIp(this.customAvailableIp)),type:"button",id:"button-addon2"},e[4]||(e[4]=[h("i",{class:"bi bi-plus-lg"},null,-1)]),8,Q9)]),h("small",eX,[$(o,{t:"or"})]),h("div",tX,[h("button",{class:"btn btn-outline-secondary btn-sm dropdown-toggle rounded-3 w-100",disabled:!n.availableIp||n.bulk,"data-bs-auto-close":"outside",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[e[5]||(e[5]=h("i",{class:"bi bi-filter-circle me-2"},null,-1)),$(o,{t:"Pick Available IP"})],8,nX),this.availableIp?(P(),F("ul",iX,[h("li",null,[h("div",sX,[e[6]||(e[6]=h("label",{for:"availableIpSearchString",class:"text-muted"},[h("i",{class:"bi bi-search"})],-1)),Re(h("input",{id:"availableIpSearchString",class:"form-control form-control-sm rounded-3","onUpdate:modelValue":e[2]||(e[2]=a=>this.availableIpSearchString=a)},null,512),[[ze,this.availableIpSearchString]])])]),(P(!0),F(Ie,null,Ge(this.searchAvailableIps,a=>(P(),F("li",null,[h("a",{class:"dropdown-item d-flex",role:"button",onClick:l=>this.addAllowedIp(a)},[h("span",oX,[h("small",null,pe(a),1)])],8,rX)]))),256)),this.searchAvailableIps.length===0?(P(),F("li",aX,[h("small",lX,[$(o,{t:"No available IP containing"}),Fe(' "'+pe(this.availableIpSearchString)+'"',1)])])):re("",!0)])):re("",!0)])])],2)}const uX=He(K9,[["render",cX],["__scopeId","data-v-6d5fc831"]]),dX={name:"dnsInput",components:{LocaleText:Le},props:{data:Object,saving:Boolean},data(){return{error:!1,dns:JSON.parse(JSON.stringify(this.data.DNS))}},setup(){const t=$n(),e=Xe();return{store:t,dashboardStore:e}},methods:{checkDNS(){if(this.dns){let t=this.dns.split(",").map(e=>e.replaceAll(" ",""));for(let e in t)if(!this.store.regexCheckIP(t[e])){this.error||this.dashboardStore.newMessage("WGDashboard","DNS format is incorrect","danger"),this.error=!0,this.data.DNS="";return}this.error=!1,this.data.DNS=this.dns}}},watch:{dns(){this.checkDNS()}}},hX={for:"peer_DNS_textbox",class:"form-label"},fX={class:"text-muted"},gX=["disabled"];function pX(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",null,[h("label",hX,[h("small",fX,[$(o,{t:"DNS"})])]),Re(h("input",{type:"text",class:Se(["form-control form-control-sm rounded-3",{"is-invalid":this.error}]),disabled:this.saving,"onUpdate:modelValue":e[0]||(e[0]=a=>this.dns=a),id:"peer_DNS_textbox"},null,10,gX),[[ze,this.dns]])])}const mX=He(dX,[["render",pX]]),_X={name:"endpointAllowedIps",components:{LocaleText:Le},props:{data:Object,saving:Boolean},setup(){const t=$n(),e=Xe();return{store:t,dashboardStore:e}},data(){return{endpointAllowedIps:JSON.parse(JSON.stringify(this.data.endpoint_allowed_ip)),error:!1}},methods:{checkAllowedIP(){let t=this.endpointAllowedIps.split(",").map(e=>e.replaceAll(" ",""));for(let e in t)if(!this.store.checkCIDR(t[e])){this.error||this.dashboardStore.newMessage("WGDashboard","Endpoint Allowed IPs format is incorrect","danger"),this.data.endpoint_allowed_ip="",this.error=!0;return}this.error=!1,this.data.endpoint_allowed_ip=this.endpointAllowedIps}},watch:{endpointAllowedIps(){this.checkAllowedIP()}}},vX={for:"peer_endpoint_allowed_ips",class:"form-label"},yX={class:"text-muted"},bX=["disabled"];function wX(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",null,[h("label",vX,[h("small",yX,[$(o,{t:"Endpoint Allowed IPs"}),h("code",null,[$(o,{t:"(Required)"})])])]),Re(h("input",{type:"text",class:Se(["form-control form-control-sm rounded-3",{"is-invalid":s.error}]),disabled:this.saving,"onUpdate:modelValue":e[0]||(e[0]=a=>this.endpointAllowedIps=a),onBlur:e[1]||(e[1]=a=>this.checkAllowedIP()),id:"peer_endpoint_allowed_ips"},null,42,bX),[[ze,this.endpointAllowedIps]])])}const xX=He(_X,[["render",wX]]),EX={name:"presharedKeyInput",components:{LocaleText:Le},props:{data:Object,saving:Boolean},data(){return{enable:!1}},watch:{enable(){this.enable?this.data.preshared_key=window.wireguard.generateKeypair().presharedKey:this.data.preshared_key=""}}},CX={class:"d-flex align-items-start"},SX={for:"peer_preshared_key_textbox",class:"form-label"},kX={class:"text-muted"},TX={class:"form-check form-switch ms-auto"},AX=["disabled"];function PX(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",null,[h("div",CX,[h("label",SX,[h("small",kX,[$(o,{t:"Pre-Shared Key"})])]),h("div",TX,[Re(h("input",{class:"form-check-input",type:"checkbox",role:"switch","onUpdate:modelValue":e[0]||(e[0]=a=>this.enable=a),id:"peer_preshared_key_switch"},null,512),[[Gn,this.enable]])])]),Re(h("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving||!this.enable,"onUpdate:modelValue":e[1]||(e[1]=a=>this.data.preshared_key=a),id:"peer_preshared_key_textbox"},null,8,AX),[[ze,this.data.preshared_key]])])}const MX=He(EX,[["render",PX]]),IX={name:"mtuInput",components:{LocaleText:Le},props:{data:Object,saving:Boolean}},DX={for:"peer_mtu",class:"form-label"},RX={class:"text-muted"},$X=["disabled"];function LX(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",null,[h("label",DX,[h("small",RX,[$(o,{t:"MTU"})])]),Re(h("input",{type:"number",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":e[0]||(e[0]=a=>this.data.mtu=a),min:"0",id:"peer_mtu"},null,8,$X),[[ze,this.data.mtu]])])}const OX=He(IX,[["render",LX]]),NX={name:"persistentKeepAliveInput",components:{LocaleText:Le},props:{data:Object,saving:Boolean}},FX={for:"peer_keep_alive",class:"form-label"},BX={class:"text-muted"},VX=["disabled"];function zX(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",null,[h("label",FX,[h("small",BX,[$(o,{t:"Persistent Keepalive"})])]),Re(h("input",{type:"number",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":e[0]||(e[0]=a=>this.data.keepalive=a),id:"peer_keep_alive"},null,8,VX),[[ze,this.data.keepalive]])])}const WX=He(NX,[["render",zX]]),YX={name:"bulkAdd",components:{LocaleText:Le},props:{saving:Boolean,data:Object,availableIp:void 0},computed:{bulkAddGetLocale(){return At("How many peers you want to add?")}}},HX={class:"form-check form-switch"},jX=["disabled"],KX={class:"form-check-label me-2",for:"bulk_add"},UX={class:"text-muted d-block"},GX={key:0,class:"form-group"},XX=["max","placeholder"],qX={class:"text-muted"};function ZX(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",null,[h("div",HX,[Re(h("input",{class:"form-check-input",type:"checkbox",role:"switch",disabled:!this.availableIp,id:"bulk_add","onUpdate:modelValue":e[0]||(e[0]=a=>this.data.bulkAdd=a)},null,8,jX),[[Gn,this.data.bulkAdd]]),h("label",KX,[h("small",null,[h("strong",null,[$(o,{t:"Bulk Add"})])])])]),h("p",{class:Se({"mb-0":!this.data.bulkAdd})},[h("small",UX,[$(o,{t:"By adding peers by bulk, each peer's name will be auto generated, and Allowed IP will be assign to the next available IP."})])],2),this.data.bulkAdd?(P(),F("div",GX,[Re(h("input",{class:"form-control form-control-sm rounded-3 mb-1",type:"number",min:"1",max:this.availableIp.length,"onUpdate:modelValue":e[1]||(e[1]=a=>this.data.bulkAddAmount=a),placeholder:this.bulkAddGetLocale},null,8,XX),[[ze,this.data.bulkAddAmount]]),h("small",qX,[$(o,{t:"You can add up to "+this.availableIp.length+" peers"},null,8,["t"])])])):re("",!0)])}const JX=He(YX,[["render",ZX]]),QX={name:"peerCreate",components:{LocaleText:Le,BulkAdd:JX,PersistentKeepAliveInput:WX,MtuInput:OX,PresharedKeyInput:MX,EndpointAllowedIps:xX,DnsInput:mX,AllowedIPsInput:uX,PrivatePublicKeyInput:j9,NameInput:M9},data(){return{data:{bulkAdd:!1,bulkAddAmount:0,name:"",allowed_ips:[],private_key:"",public_key:"",DNS:this.dashboardStore.Configuration.Peers.peer_global_dns,endpoint_allowed_ip:this.dashboardStore.Configuration.Peers.peer_endpoint_allowed_ip,keepalive:parseInt(this.dashboardStore.Configuration.Peers.peer_keep_alive),mtu:parseInt(this.dashboardStore.Configuration.Peers.peer_mtu),preshared_key:"",preshared_key_bulkAdd:!1},availableIp:void 0,availableIpSearchString:"",saving:!1,allowedIpDropdown:void 0}},mounted(){Pt("/api/getAvailableIPs/"+this.$route.params.id,{},t=>{t.status&&(this.availableIp=t.data)})},setup(){const t=$n(),e=Xe();return{store:t,dashboardStore:e}},methods:{peerCreate(){this.saving=!0,ht("/api/addPeers/"+this.$route.params.id,this.data,t=>{t.status?(this.$router.push(`/configuration/${this.$route.params.id}/peers`),this.dashboardStore.newMessage("Server","Peer created successfully","success")):this.dashboardStore.newMessage("Server",t.message,"danger"),this.saving=!1})}},computed:{allRequireFieldsFilled(){let t=!0;return this.data.bulkAdd?(this.data.bulkAddAmount.length===0||this.data.bulkAddAmount>this.availableIp.length)&&(t=!1):["allowed_ips","private_key","public_key","endpoint_allowed_ip","keepalive","mtu"].forEach(n=>{this.data[n].length===0&&(t=!1)}),t}},watch:{bulkAdd(t){t||(this.data.bulkAddAmount="")},"data.bulkAddAmount"(){this.data.bulkAddAmount>this.availableIp.length&&(this.data.bulkAddAmount=this.availableIp.length)}}},eq={class:"container"},tq={class:"mb-4"},nq={class:"mb-5 d-flex align-items-center gap-4"},iq={class:"mb-0"},sq={class:"d-flex flex-column gap-2"},rq={class:"row gy-3"},oq={key:0,class:"col-sm"},aq={class:"col-sm"},lq={class:"col-sm"},cq={key:1,class:"col-12"},uq={class:"form-check form-switch"},dq={class:"form-check-label",for:"bullAdd_PresharedKey_Switch"},hq={class:"fw-bold"},fq={class:"d-flex mt-2"},gq=["disabled"],pq={key:0,class:"bi bi-plus-circle-fill me-2"};function mq(t,e,n,i,s,r){const o=Ce("RouterLink"),a=Ce("LocaleText"),l=Ce("BulkAdd"),c=Ce("NameInput"),u=Ce("PrivatePublicKeyInput"),d=Ce("AllowedIPsInput"),f=Ce("EndpointAllowedIps"),g=Ce("DnsInput"),p=Ce("PresharedKeyInput"),m=Ce("MtuInput"),v=Ce("PersistentKeepAliveInput");return P(),F("div",eq,[h("div",tq,[h("div",nq,[$(o,{to:"peers",class:"btn btn-dark btn-brand p-2 shadow",style:{"border-radius":"100%"}},{default:Me(()=>e[2]||(e[2]=[h("h2",{class:"mb-0",style:{"line-height":"0"}},[h("i",{class:"bi bi-arrow-left-circle"})],-1)])),_:1}),h("h2",iq,[$(a,{t:"Add Peers"})])])]),h("div",sq,[$(l,{saving:s.saving,data:this.data,availableIp:this.availableIp},null,8,["saving","data","availableIp"]),e[3]||(e[3]=h("hr",{class:"mb-0 mt-2"},null,-1)),this.data.bulkAdd?re("",!0):(P(),Ee(c,{key:0,saving:s.saving,data:this.data},null,8,["saving","data"])),this.data.bulkAdd?re("",!0):(P(),Ee(u,{key:1,saving:s.saving,data:s.data},null,8,["saving","data"])),this.data.bulkAdd?re("",!0):(P(),Ee(d,{key:2,availableIp:this.availableIp,saving:s.saving,data:s.data},null,8,["availableIp","saving","data"])),$(f,{saving:s.saving,data:s.data},null,8,["saving","data"]),$(g,{saving:s.saving,data:s.data},null,8,["saving","data"]),e[4]||(e[4]=h("hr",{class:"mb-0 mt-2"},null,-1)),h("div",rq,[this.data.bulkAdd?re("",!0):(P(),F("div",oq,[$(p,{saving:s.saving,data:s.data,bulk:this.data.bulkAdd},null,8,["saving","data","bulk"])])),h("div",aq,[$(m,{saving:s.saving,data:s.data},null,8,["saving","data"])]),h("div",lq,[$(v,{saving:s.saving,data:s.data},null,8,["saving","data"])]),this.data.bulkAdd?(P(),F("div",cq,[h("div",uq,[Re(h("input",{class:"form-check-input",type:"checkbox",role:"switch","onUpdate:modelValue":e[0]||(e[0]=y=>this.data.preshared_key_bulkAdd=y),id:"bullAdd_PresharedKey_Switch",checked:""},null,512),[[Gn,this.data.preshared_key_bulkAdd]]),h("label",dq,[h("small",hq,[$(a,{t:"Pre-Shared Key"}),this.data.preshared_key_bulkAdd?(P(),Ee(a,{key:0,t:"Enabled"})):(P(),Ee(a,{key:1,t:"Disabled"}))])])])])):re("",!0)]),h("div",fq,[h("button",{class:"ms-auto btn btn-dark btn-brand rounded-3 px-3 py-2 shadow",disabled:!this.allRequireFieldsFilled||this.saving,onClick:e[1]||(e[1]=y=>this.peerCreate())},[this.saving?re("",!0):(P(),F("i",pq)),this.saving?(P(),Ee(a,{key:1,t:"Adding..."})):(P(),Ee(a,{key:2,t:"Add"}))],8,gq)])])])}const nT=He(QX,[["render",mq],["__scopeId","data-v-17eb547c"]]),_q={name:"scheduleDropdown",props:{options:Array,data:String,edit:!1},setup(t){t.data===void 0&&this.$emit("update",this.options[0].value)},computed:{currentSelection(){return this.options.find(t=>t.value===this.data)}}},vq={class:"dropdown scheduleDropdown"},yq={class:"dropdown-menu rounded-3 shadow",style:{"font-size":"0.875rem",width:"200px"}},bq=["onClick"],wq={key:0,class:"bi bi-check ms-auto"};function xq(t,e,n,i,s,r){return P(),F("div",vq,[h("button",{class:Se(["btn btn-sm btn-outline-primary rounded-3",{"disabled border-transparent":!n.edit}]),type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[h("samp",null,pe(this.currentSelection.display),1)],2),h("ul",yq,[n.edit?(P(!0),F(Ie,{key:0},Ge(this.options,o=>(P(),F("li",null,[h("a",{class:"dropdown-item d-flex align-items-center",role:"button",onClick:a=>t.$emit("update",o.value)},[h("samp",null,pe(o.display),1),o.value===this.currentSelection.value?(P(),F("i",wq)):re("",!0)],8,bq)]))),256)):re("",!0)])])}const iT=He(_q,[["render",xq],["__scopeId","data-v-6a5aba2a"]]),Eq={name:"schedulePeerJob",components:{LocaleText:Le,VueDatePicker:ju,ScheduleDropdown:iT},props:{dropdowns:Array[Object],pjob:Object,viewOnly:!1},setup(t){const e=me({}),n=me(!1),i=me(!1);e.value=JSON.parse(JSON.stringify(t.pjob)),e.value.CreationDate||(n.value=!0,i.value=!0);const s=Xe();return{job:e,edit:n,newJob:i,store:s}},data(){return{inputType:void 0}},watch:{pjob:{deep:!0,immediate:!0,handler(t){this.edit||(this.job=JSON.parse(JSON.stringify(t)))}}},methods:{save(){this.job.Field&&this.job.Operator&&this.job.Action&&this.job.Value?ht("/api/savePeerScheduleJob/",{Job:this.job},t=>{t.status?(this.edit=!1,this.store.newMessage("Server","Peer job saved","success"),console.log(t.data),this.$emit("refresh",t.data[0]),this.newJob=!1):this.store.newMessage("Server",t.message,"danger")}):this.alert()},alert(){let t="animate__flash",e=this.$el.querySelectorAll(".scheduleDropdown"),n=this.$el.querySelectorAll("input");e.forEach(i=>i.classList.add("animate__animated",t)),n.forEach(i=>i.classList.add("animate__animated",t)),setTimeout(()=>{e.forEach(i=>i.classList.remove("animate__animated",t)),n.forEach(i=>i.classList.remove("animate__animated",t))},2e3)},reset(){this.job.CreationDate?(this.job=JSON.parse(JSON.stringify(this.pjob)),this.edit=!1):this.$emit("delete")},delete(){this.job.CreationDate&&ht("/api/deletePeerScheduleJob/",{Job:this.job},t=>{t.status?this.store.newMessage("Server","Peer job deleted","success"):(this.store.newMessage("Server",t.message,"danger"),this.$emit("delete"))}),this.$emit("delete")},parseTime(t){t&&(this.job.Value=Fn(t).format("YYYY-MM-DD HH:mm:ss"))}}},Cq={class:"card-header bg-transparent text-muted border-0"},Sq={key:0,class:"d-flex"},kq={class:"me-auto"},Tq={key:1},Aq={class:"badge text-bg-warning"},Pq={class:"card-body pt-1",style:{"font-family":"var(--bs-font-monospace)"}},Mq={class:"d-flex gap-2 align-items-center mb-2"},Iq=["disabled"],Dq={class:"px-5 d-flex gap-2 align-items-center"},Rq={class:"d-flex gap-3"},$q={key:0,class:"ms-auto d-flex gap-3"},Lq={key:1,class:"ms-auto d-flex gap-3"};function Oq(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("ScheduleDropdown"),l=Ce("VueDatePicker");return P(),F("div",{class:Se(["card shadow-sm rounded-3 mb-2",{"border-warning-subtle":this.newJob}])},[h("div",Cq,[this.newJob?(P(),F("small",Tq,[h("span",Aq,[$(o,{t:"Unsaved Job"})])])):(P(),F("small",Sq,[h("strong",kq,[$(o,{t:"Job ID"})]),h("samp",null,pe(this.job.JobID),1)]))]),h("div",Pq,[h("div",Mq,[h("samp",null,[$(o,{t:"if"})]),$(a,{edit:i.edit,options:this.dropdowns.Field,data:this.job.Field,onUpdate:e[0]||(e[0]=c=>{this.job.Field=c})},null,8,["edit","options","data"]),h("samp",null,[$(o,{t:"is"})]),$(a,{edit:i.edit,options:this.dropdowns.Operator,data:this.job.Operator,onUpdate:e[1]||(e[1]=c=>this.job.Operator=c)},null,8,["edit","options","data"]),this.job.Field==="date"?(P(),Ee(l,{key:0,is24:!0,"min-date":new Date,"model-value":this.job.Value,"onUpdate:modelValue":this.parseTime,"time-picker-inline":"",format:"yyyy-MM-dd HH:mm:ss","preview-format":"yyyy-MM-dd HH:mm:ss",clearable:!1,disabled:!i.edit,dark:this.store.Configuration.Server.dashboard_theme==="dark"},null,8,["min-date","model-value","onUpdate:modelValue","disabled","dark"])):Re((P(),F("input",{key:1,class:"form-control form-control-sm form-control-dark rounded-3 flex-grow-1",disabled:!i.edit,"onUpdate:modelValue":e[2]||(e[2]=c=>this.job.Value=c),style:{width:"auto"}},null,8,Iq)),[[ze,this.job.Value]]),h("samp",null,pe(this.dropdowns.Field.find(c=>c.value===this.job.Field)?.unit)+" { ",1)]),h("div",Dq,[h("samp",null,[$(o,{t:"then"})]),$(a,{edit:i.edit,options:this.dropdowns.Action,data:this.job.Action,onUpdate:e[3]||(e[3]=c=>this.job.Action=c)},null,8,["edit","options","data"])]),h("div",Rq,[e[12]||(e[12]=h("samp",null,"}",-1)),this.edit?(P(),F("div",Lq,[h("a",{role:"button",class:"text-secondary text-decoration-none",onClick:e[6]||(e[6]=c=>this.reset())},[e[10]||(e[10]=Fe("[C] ")),$(o,{t:"Cancel"})]),h("a",{role:"button",class:"text-primary ms-auto text-decoration-none",onClick:e[7]||(e[7]=c=>this.save())},[e[11]||(e[11]=Fe("[S] ")),$(o,{t:"Save"})])])):(P(),F("div",$q,[h("a",{role:"button",class:"ms-auto text-decoration-none",onClick:e[4]||(e[4]=c=>this.edit=!0)},[e[8]||(e[8]=Fe("[E] ")),$(o,{t:"Edit"})]),h("a",{role:"button",onClick:e[5]||(e[5]=c=>this.delete()),class:"text-danger text-decoration-none"},[e[9]||(e[9]=Fe("[D] ")),$(o,{t:"Delete"})])]))])])],2)}const sT=He(Eq,[["render",Oq],["__scopeId","data-v-8f3f1b93"]]),Nq={name:"peerJobs",setup(){return{store:$n()}},props:{selectedPeer:Object},components:{LocaleText:Le,SchedulePeerJob:sT,ScheduleDropdown:iT},data(){return{}},methods:{deleteJob(t){this.selectedPeer.jobs=this.selectedPeer.jobs.filter(e=>e.JobID!==t.JobID)},addJob(){this.selectedPeer.jobs.unshift(JSON.parse(JSON.stringify({JobID:Bs().toString(),Configuration:this.selectedPeer.configuration.Name,Peer:this.selectedPeer.id,Field:this.store.PeerScheduleJobs.dropdowns.Field[0].value,Operator:this.store.PeerScheduleJobs.dropdowns.Operator[0].value,Value:"",CreationDate:"",ExpireDate:"",Action:this.store.PeerScheduleJobs.dropdowns.Action[0].value})))}}},Fq={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0 overflow-y-scroll"},Bq={class:"container d-flex h-100 w-100"},Vq={class:"m-auto modal-dialog-centered dashboardModal"},zq={class:"card rounded-3 shadow",style:{width:"700px"}},Wq={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4 pb-2"},Yq={class:"mb-0 fw-normal"},Hq={class:"card-body px-4 pb-4 pt-2 position-relative"},jq={class:"d-flex align-items-center mb-3"},Kq={class:"card shadow-sm",key:"none",style:{height:"153px"}},Uq={class:"card-body text-muted text-center d-flex"},Gq={class:"m-auto"};function Xq(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("SchedulePeerJob");return P(),F("div",Fq,[h("div",Bq,[h("div",Vq,[h("div",zq,[h("div",Wq,[h("h4",Yq,[$(o,{t:"Schedule Jobs"})]),h("button",{type:"button",class:"btn-close ms-auto",onClick:e[0]||(e[0]=l=>this.$emit("close"))})]),h("div",Hq,[h("div",jq,[h("button",{class:"btn bg-primary-subtle border-1 border-primary-subtle text-primary-emphasis rounded-3 shadow",onClick:e[1]||(e[1]=l=>this.addJob())},[e[3]||(e[3]=h("i",{class:"bi bi-plus-lg me-2"},null,-1)),$(o,{t:"Job"})])]),$(vo,{name:"schedulePeerJobTransition",tag:"div",class:"position-relative"},{default:Me(()=>[(P(!0),F(Ie,null,Ge(this.selectedPeer.jobs,(l,c)=>(P(),Ee(a,{onRefresh:e[2]||(e[2]=u=>this.$emit("refresh")),onDelete:u=>this.deleteJob(l),dropdowns:this.store.PeerScheduleJobs.dropdowns,key:l.JobID,pjob:l},null,8,["onDelete","dropdowns","pjob"]))),128)),this.selectedPeer.jobs.length===0?(P(),F("div",Kq,[h("div",Uq,[h("h6",Gq,[$(o,{t:"This peer does not have any job yet."})])])])):re("",!0)]),_:1})])])])])])}const qq=He(Nq,[["render",Xq],["__scopeId","data-v-5bbdd42b"]]),Zq={name:"peerJobsAllModal",setup(){return{store:$n()}},components:{LocaleText:Le,SchedulePeerJob:sT},props:{configurationPeers:Array[Object]},methods:{getuuid(){return Bs()}},computed:{getAllJobs(){return this.configurationPeers.filter(t=>t.jobs.length>0)}}},Jq={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0 overflow-y-scroll"},Qq={class:"container d-flex h-100 w-100"},eZ={class:"m-auto modal-dialog-centered dashboardModal"},tZ={class:"card rounded-3 shadow",style:{width:"700px"}},nZ={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4 pb-2"},iZ={class:"mb-0 fw-normal"},sZ={class:"card-body px-4 pb-4 pt-2"},rZ={key:0,class:"accordion",id:"peerJobsLogsModalAccordion"},oZ={class:"accordion-header"},aZ=["data-bs-target"],lZ={key:0},cZ={class:"text-muted"},uZ=["id"],dZ={class:"accordion-body"},hZ={key:1,class:"card shadow-sm",style:{height:"153px"}},fZ={class:"card-body text-muted text-center d-flex"},gZ={class:"m-auto"};function pZ(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("SchedulePeerJob");return P(),F("div",Jq,[h("div",Qq,[h("div",eZ,[h("div",tZ,[h("div",nZ,[h("h4",iZ,[$(o,{t:"All Active Jobs"})]),h("button",{type:"button",class:"btn-close ms-auto",onClick:e[0]||(e[0]=l=>this.$emit("close"))})]),h("div",sZ,[this.getAllJobs.length>0?(P(),F("div",rZ,[(P(!0),F(Ie,null,Ge(this.getAllJobs,(l,c)=>(P(),F("div",{class:"accordion-item",key:l.id},[h("h2",oZ,[h("button",{class:"accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapse_"+c},[h("small",null,[h("strong",null,[l.name?(P(),F("span",lZ,pe(l.name)+" • ",1)):re("",!0),h("samp",cZ,pe(l.id),1)])])],8,aZ)]),h("div",{id:"collapse_"+c,class:"accordion-collapse collapse","data-bs-parent":"#peerJobsLogsModalAccordion"},[h("div",dZ,[(P(!0),F(Ie,null,Ge(l.jobs,u=>(P(),Ee(a,{onDelete:e[1]||(e[1]=d=>this.$emit("refresh")),onRefresh:e[2]||(e[2]=d=>this.$emit("refresh")),dropdowns:this.store.PeerScheduleJobs.dropdowns,viewOnly:!0,key:u.JobID,pjob:u},null,8,["dropdowns","pjob"]))),128))])],8,uZ)]))),128))])):(P(),F("div",hZ,[h("div",fZ,[h("span",gZ,[$(o,{t:"No active job at the moment."})])])]))])])])])])}const mZ=He(Zq,[["render",pZ]]),_Z={name:"peerJobsLogsModal",components:{LocaleText:Le},props:{configurationInfo:Object},data(){return{dataLoading:!0,data:[],logFetchTime:void 0,showLogID:!1,showJobID:!0,showSuccessJob:!0,showFailedJob:!0,showLogAmount:10}},async mounted(){await this.fetchLog()},methods:{async fetchLog(){this.dataLoading=!0,await Pt(`/api/getPeerScheduleJobLogs/${this.configurationInfo.Name}`,{},t=>{this.data=t.data,this.logFetchTime=Fn().format("YYYY-MM-DD HH:mm:ss"),this.dataLoading=!1})}},computed:{getLogs(){return this.data.filter(t=>this.showSuccessJob&&t.Status==="1"||this.showFailedJob&&t.Status==="0")},showLogs(){return this.getLogs.slice(0,this.showLogAmount)}}},vZ={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0 overflow-y-scroll"},yZ={class:"container-fluid d-flex h-100 w-100"},bZ={class:"m-auto mt-0 modal-dialog-centered dashboardModal",style:{width:"100%"}},wZ={class:"card rounded-3 shadow w-100"},xZ={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4 pb-0"},EZ={class:"mb-0"},CZ={class:"card-body px-4 pb-4 pt-2"},SZ={key:0},kZ={class:"mb-2 d-flex gap-3"},TZ={class:"d-flex gap-3 align-items-center"},AZ={class:"text-muted"},PZ={class:"form-check"},MZ={class:"form-check-label",for:"jobLogsShowSuccessCheck"},IZ={class:"badge text-success-emphasis bg-success-subtle"},DZ={class:"form-check"},RZ={class:"form-check-label",for:"jobLogsShowFailedCheck"},$Z={class:"badge text-danger-emphasis bg-danger-subtle"},LZ={class:"d-flex gap-3 align-items-center ms-auto"},OZ={class:"text-muted"},NZ={class:"form-check"},FZ={class:"form-check-label",for:"jobLogsShowJobIDCheck"},BZ={class:"form-check"},VZ={class:"form-check-label",for:"jobLogsShowLogIDCheck"},zZ={class:"table"},WZ={scope:"col"},YZ={key:0,scope:"col"},HZ={key:1,scope:"col"},jZ={scope:"col"},KZ={scope:"col"},UZ={style:{"font-size":"0.875rem"}},GZ={scope:"row"},XZ={key:0},qZ={class:"text-muted"},ZZ={key:1},JZ={class:"text-muted"},QZ={class:"d-flex gap-2"},eJ={key:1,class:"d-flex align-items-center flex-column"};function tJ(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",vZ,[h("div",yZ,[h("div",bZ,[h("div",wZ,[h("div",xZ,[h("h4",EZ,[$(o,{t:"Jobs Logs"})]),h("button",{type:"button",class:"btn-close ms-auto",onClick:e[0]||(e[0]=a=>this.$emit("close"))})]),h("div",CZ,[this.dataLoading?(P(),F("div",eJ,e[11]||(e[11]=[h("div",{class:"spinner-border text-body",role:"status"},[h("span",{class:"visually-hidden"},"Loading...")],-1)]))):(P(),F("div",SZ,[h("p",null,[$(o,{t:"Updated at"}),Fe(" : "+pe(this.logFetchTime),1)]),h("div",kZ,[h("button",{onClick:e[1]||(e[1]=a=>this.fetchLog()),class:"btn btn-sm rounded-3 shadow-sm text-info-emphasis bg-info-subtle border-1 border-info-subtle me-1"},[e[8]||(e[8]=h("i",{class:"bi bi-arrow-clockwise me-2"},null,-1)),$(o,{t:"Refresh"})]),h("div",TZ,[h("span",AZ,[$(o,{t:"Filter"})]),h("div",PZ,[Re(h("input",{class:"form-check-input",type:"checkbox","onUpdate:modelValue":e[2]||(e[2]=a=>this.showSuccessJob=a),id:"jobLogsShowSuccessCheck"},null,512),[[Gn,this.showSuccessJob]]),h("label",MZ,[h("span",IZ,[$(o,{t:"Success"})])])]),h("div",DZ,[Re(h("input",{class:"form-check-input",type:"checkbox","onUpdate:modelValue":e[3]||(e[3]=a=>this.showFailedJob=a),id:"jobLogsShowFailedCheck"},null,512),[[Gn,this.showFailedJob]]),h("label",RZ,[h("span",$Z,[$(o,{t:"Failed"})])])])]),h("div",LZ,[h("span",OZ,[$(o,{t:"Display"})]),h("div",NZ,[Re(h("input",{class:"form-check-input",type:"checkbox","onUpdate:modelValue":e[4]||(e[4]=a=>s.showJobID=a),id:"jobLogsShowJobIDCheck"},null,512),[[Gn,s.showJobID]]),h("label",FZ,[$(o,{t:"Job ID"})])]),h("div",BZ,[Re(h("input",{class:"form-check-input",type:"checkbox","onUpdate:modelValue":e[5]||(e[5]=a=>s.showLogID=a),id:"jobLogsShowLogIDCheck"},null,512),[[Gn,s.showLogID]]),h("label",VZ,[$(o,{t:"Log ID"})])])])]),h("table",zZ,[h("thead",null,[h("tr",null,[h("th",WZ,[$(o,{t:"Date"})]),s.showLogID?(P(),F("th",YZ,[$(o,{t:"Log ID"})])):re("",!0),s.showJobID?(P(),F("th",HZ,[$(o,{t:"Job ID"})])):re("",!0),h("th",jZ,[$(o,{t:"Status"})]),h("th",KZ,[$(o,{t:"Message"})])])]),h("tbody",null,[(P(!0),F(Ie,null,Ge(this.showLogs,a=>(P(),F("tr",UZ,[h("th",GZ,pe(a.LogDate),1),s.showLogID?(P(),F("td",XZ,[h("samp",qZ,pe(a.LogID),1)])):re("",!0),s.showJobID?(P(),F("td",ZZ,[h("samp",JZ,pe(a.JobID),1)])):re("",!0),h("td",null,[h("span",{class:Se(["badge",[a.Status==="1"?"text-success-emphasis bg-success-subtle":"text-danger-emphasis bg-danger-subtle"]])},pe(a.Status==="1"?"Success":"Failed"),3)]),h("td",null,pe(a.Message),1)]))),256))])]),h("div",QZ,[this.getLogs.length>this.showLogAmount?(P(),F("button",{key:0,onClick:e[6]||(e[6]=a=>this.showLogAmount+=20),class:"btn btn-sm rounded-3 shadow-sm text-primary-emphasis bg-primary-subtle border-1 border-primary-subtle"},e[9]||(e[9]=[h("i",{class:"bi bi-chevron-down me-2"},null,-1),Fe(" Show More ")]))):re("",!0),this.showLogAmount>20?(P(),F("button",{key:1,onClick:e[7]||(e[7]=a=>this.showLogAmount=20),class:"btn btn-sm rounded-3 shadow-sm text-primary-emphasis bg-primary-subtle border-1 border-primary-subtle"},e[10]||(e[10]=[h("i",{class:"bi bi-chevron-up me-2"},null,-1),Fe(" Collapse ")]))):re("",!0)])]))])])])])])}const nJ=He(_Z,[["render",tJ]]),iJ={name:"peerShareLinkModal",props:{peer:Object},components:{LocaleText:Le,VueDatePicker:ju},data(){return{dataCopy:void 0,loading:!1}},setup(){return{store:Xe()}},mounted(){this.dataCopy=JSON.parse(JSON.stringify(this.peer.ShareLink)).at(0)},watch:{"peer.ShareLink":{deep:!0,handler(t,e){e.length!==t.length&&(this.dataCopy=JSON.parse(JSON.stringify(this.peer.ShareLink)).at(0))}}},methods:{startSharing(){this.loading=!0,ht("/api/sharePeer/create",{Configuration:this.peer.configuration.Name,Peer:this.peer.id,ExpireDate:Fn().add(7,"d").format("YYYY-MM-DD HH:mm:ss")},t=>{t.status?(this.peer.ShareLink=t.data,this.dataCopy=t.data.at(0)):this.store.newMessage("Server","Share link failed to create. Reason: "+t.message,"danger"),this.loading=!1})},updateLinkExpireDate(){ht("/api/sharePeer/update",this.dataCopy,t=>{t.status?(this.dataCopy=t.data.at(0),this.peer.ShareLink=t.data,this.store.newMessage("Server","Link expire date updated","success")):this.store.newMessage("Server","Link expire date failed to update. Reason: "+t.message,"danger"),this.loading=!1})},stopSharing(){this.loading=!0,this.dataCopy.ExpireDate=Fn().format("YYYY-MM-DD HH:mm:ss"),this.updateLinkExpireDate()},parseTime(t){t?this.dataCopy.ExpireDate=Fn(t).format("YYYY-MM-DD HH:mm:ss"):this.dataCopy.ExpireDate=void 0,this.updateLinkExpireDate()}},computed:{getUrl(){const t=this.store.getActiveCrossServer();return t?`${t.host}/${this.$router.resolve({path:"/share",query:{ShareID:this.dataCopy.ShareID}}).href}`:window.location.origin+window.location.pathname+this.$router.resolve({path:"/share",query:{ShareID:this.dataCopy.ShareID}}).href}}},sJ={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0 overflow-y-scroll"},rJ={class:"container d-flex h-100 w-100"},oJ={class:"m-auto modal-dialog-centered dashboardModal",style:{width:"500px"}},aJ={class:"card rounded-3 shadow flex-grow-1"},lJ={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4"},cJ={class:"mb-0"},uJ={key:0,class:"card-body px-4 pb-4"},dJ={key:0},hJ={class:"mb-3 text-muted"},fJ=["disabled"],gJ={key:1},pJ={class:"d-flex gap-2 mb-4"},mJ=["href"],_J={class:"d-flex flex-column gap-2 mb-3"},vJ=["disabled"];function yJ(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("VueDatePicker");return P(),F("div",sJ,[h("div",rJ,[h("div",oJ,[h("div",aJ,[h("div",lJ,[h("h4",cJ,[$(o,{t:"Share Peer"})]),h("button",{type:"button",class:"btn-close ms-auto",onClick:e[0]||(e[0]=l=>this.$emit("close"))})]),this.peer.ShareLink?(P(),F("div",uJ,[this.dataCopy?(P(),F("div",gJ,[h("div",pJ,[e[4]||(e[4]=h("i",{class:"bi bi-link-45deg"},null,-1)),h("a",{href:this.getUrl,class:"text-decoration-none",target:"_blank"},pe(r.getUrl),9,mJ)]),h("div",_J,[h("small",null,[e[5]||(e[5]=h("i",{class:"bi bi-calendar me-2"},null,-1)),$(o,{t:"Expire At"})]),$(a,{is24:!0,"min-date":new Date,"model-value":this.dataCopy.ExpireDate,"onUpdate:modelValue":this.parseTime,"time-picker-inline":"",format:"yyyy-MM-dd HH:mm:ss","preview-format":"yyyy-MM-dd HH:mm:ss",dark:this.store.Configuration.Server.dashboard_theme==="dark"},null,8,["min-date","model-value","onUpdate:modelValue","dark"])]),h("button",{onClick:e[2]||(e[2]=l=>this.stopSharing()),disabled:this.loading,class:"w-100 btn bg-danger-subtle text-danger-emphasis border-1 border-danger-subtle rounded-3 shadow-sm"},[h("span",{class:Se({"animate__animated animate__flash animate__infinite animate__slower":this.loading})},e[6]||(e[6]=[h("i",{class:"bi bi-send-slash-fill me-2"},null,-1)]),2),this.loading?(P(),Ee(o,{key:0,t:"Stop Sharing..."})):(P(),Ee(o,{key:1,t:"Stop Sharing"}))],8,vJ)])):(P(),F("div",dJ,[h("h6",hJ,[$(o,{t:"Currently the peer is not sharing"})]),h("button",{onClick:e[1]||(e[1]=l=>this.startSharing()),disabled:this.loading,class:"w-100 btn bg-success-subtle text-success-emphasis border-1 border-success-subtle rounded-3 shadow-sm"},[h("span",{class:Se({"animate__animated animate__flash animate__infinite animate__slower":this.loading})},e[3]||(e[3]=[h("i",{class:"bi bi-send-fill me-2"},null,-1)]),2),this.loading?(P(),Ee(o,{key:0,t:"Sharing..."})):(P(),Ee(o,{key:1,t:"Start Sharing"}))],8,fJ)]))])):re("",!0)])])])])}const bJ=He(iJ,[["render",yJ]]),wJ={class:"container d-flex h-100 w-100"},xJ={class:"m-auto modal-dialog-centered dashboardModal",style:{width:"700px"}},EJ={class:"card rounded-3 shadow flex-grow-1"},CJ={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4"},SJ={class:"mb-0"},kJ={class:"card-body px-4 pb-4"},TJ={class:"d-flex gap-2 flex-column"},AJ={class:"d-flex align-items-center"},PJ={class:"text-muted"},MJ={class:"ms-auto"},IJ={class:"d-flex align-items-center"},DJ={class:"text-muted"},RJ={class:"ms-auto"},$J={for:"configuration_private_key",class:"form-label d-flex"},LJ={class:"text-muted d-block"},OJ={class:"form-check form-switch ms-auto"},NJ=["disabled"],FJ={for:"configuration_ipaddress_cidr",class:"form-label"},BJ={class:"text-muted"},VJ=["disabled"],zJ={for:"configuration_listen_port",class:"form-label"},WJ={class:"text-muted"},YJ=["disabled"],HJ={for:"configuration_preup",class:"form-label"},jJ={class:"text-muted"},KJ=["disabled"],UJ={for:"configuration_predown",class:"form-label"},GJ={class:"text-muted"},XJ=["disabled"],qJ={for:"configuration_postup",class:"form-label"},ZJ={class:"text-muted"},JJ=["disabled"],QJ={for:"configuration_postdown",class:"form-label"},eQ={class:"text-muted"},tQ=["disabled"],nQ={class:"d-flex align-items-center gap-2 mt-4"},iQ=["disabled"],sQ=["disabled"],rQ={__name:"editConfiguration",props:{configurationInfo:Object},emits:["changed","close"],setup(t,{emit:e}){const n=t,i=$n(),s=Xe(),r=me(!1),o=Ei(JSON.parse(JSON.stringify(n.configurationInfo))),a=me(!1),l=me(!1);me(!1);const c=Ei({PrivateKey:!0,IPAddress:!0,ListenPort:!0}),u=Bp("editConfigurationContainer"),d=()=>{i.checkWGKeyLength(o.PrivateKey)?(c.PrivateKey=!0,o.PublicKey=window.wireguard.generatePublicKey(o.PrivateKey)):c.PrivateKey=!1},f=()=>{l.value=!1,Object.assign(o,JSON.parse(JSON.stringify(n.configurationInfo)))},g=e,p=()=>{r.value=!0,ht("/api/updateWireguardConfiguration",o,m=>{r.value=!1,m.status?(s.newMessage("Server","Configuration saved","success"),l.value=!1,g("dataChanged",m.data)):s.newMessage("Server",m.message,"danger")})};return Zt(o,()=>{l.value=JSON.stringify(o)!==JSON.stringify(n.configurationInfo)},{deep:!0}),me(!1),(m,v)=>(P(),F("div",{class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0 overflow-y-scroll",ref_key:"editConfigurationContainer",ref:u},[h("div",wJ,[h("div",xJ,[h("div",EJ,[h("div",CJ,[h("h4",SJ,[$(Le,{t:"Configuration Settings"})]),h("button",{type:"button",class:"btn-close ms-auto",onClick:v[0]||(v[0]=y=>m.$emit("close"))})]),h("div",kJ,[h("div",TJ,[h("div",AJ,[h("small",PJ,[$(Le,{t:"Name"})]),h("small",MJ,[h("samp",null,pe(o.Name),1)])]),h("div",IJ,[h("small",DJ,[$(Le,{t:"Public Key"})]),h("small",RJ,[h("samp",null,pe(o.PublicKey),1)])]),v[15]||(v[15]=h("hr",null,null,-1)),h("div",null,[h("label",$J,[h("small",LJ,[$(Le,{t:"Private Key"})]),h("div",OJ,[Re(h("input",{class:"form-check-input",type:"checkbox",role:"switch",id:"editPrivateKeySwitch","onUpdate:modelValue":v[1]||(v[1]=y=>a.value=y)},null,512),[[Gn,a.value]]),v[12]||(v[12]=h("label",{class:"form-check-label",for:"editPrivateKeySwitch"},[h("small",null,"Edit")],-1))])]),Re(h("input",{type:"text",class:Se(["form-control form-control-sm rounded-3",{"is-invalid":!c.PrivateKey}]),disabled:r.value||!a.value,onKeyup:v[2]||(v[2]=y=>d()),"onUpdate:modelValue":v[3]||(v[3]=y=>o.PrivateKey=y),id:"configuration_private_key"},null,42,NJ),[[ze,o.PrivateKey]])]),h("div",null,[h("label",FJ,[h("small",BJ,[$(Le,{t:"IP Address/CIDR"})])]),Re(h("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:r.value,"onUpdate:modelValue":v[4]||(v[4]=y=>o.Address=y),id:"configuration_ipaddress_cidr"},null,8,VJ),[[ze,o.Address]])]),h("div",null,[h("label",zJ,[h("small",WJ,[$(Le,{t:"Listen Port"})])]),Re(h("input",{type:"number",class:"form-control form-control-sm rounded-3",disabled:r.value,"onUpdate:modelValue":v[5]||(v[5]=y=>o.ListenPort=y),id:"configuration_listen_port"},null,8,YJ),[[ze,o.ListenPort]])]),h("div",null,[h("label",HJ,[h("small",jJ,[$(Le,{t:"PreUp"})])]),Re(h("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:r.value,"onUpdate:modelValue":v[6]||(v[6]=y=>o.PreUp=y),id:"configuration_preup"},null,8,KJ),[[ze,o.PreUp]])]),h("div",null,[h("label",UJ,[h("small",GJ,[$(Le,{t:"PreDown"})])]),Re(h("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:r.value,"onUpdate:modelValue":v[7]||(v[7]=y=>o.PreDown=y),id:"configuration_predown"},null,8,XJ),[[ze,o.PreDown]])]),h("div",null,[h("label",qJ,[h("small",ZJ,[$(Le,{t:"PostUp"})])]),Re(h("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:r.value,"onUpdate:modelValue":v[8]||(v[8]=y=>o.PostUp=y),id:"configuration_postup"},null,8,JJ),[[ze,o.PostUp]])]),h("div",null,[h("label",QJ,[h("small",eQ,[$(Le,{t:"PostDown"})])]),Re(h("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:r.value,"onUpdate:modelValue":v[9]||(v[9]=y=>o.PostDown=y),id:"configuration_postdown"},null,8,tQ),[[ze,o.PostDown]])]),h("div",nQ,[h("button",{class:"btn bg-secondary-subtle border-secondary-subtle text-secondary-emphasis rounded-3 shadow ms-auto",onClick:v[10]||(v[10]=y=>f()),disabled:!l.value||r.value},v[13]||(v[13]=[h("i",{class:"bi bi-arrow-clockwise"},null,-1)]),8,iQ),h("button",{class:"btn bg-primary-subtle border-primary-subtle text-primary-emphasis rounded-3 shadow",disabled:!l.value||r.value,onClick:v[11]||(v[11]=y=>p())},v[14]||(v[14]=[h("i",{class:"bi bi-save-fill"},null,-1)]),8,sQ)])])])])])])],512))}},oQ={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0 overflow-y-scroll",ref:"selectPeersContainer"},aQ={class:"container d-flex h-100 w-100"},lQ={class:"m-auto modal-dialog-centered dashboardModal",style:{width:"700px"}},cQ={class:"card rounded-3 shadow flex-grow-1"},uQ={class:"card-header bg-transparent d-flex align-items-center gap-2 p-4 flex-column pb-3"},dQ={class:"mb-2 w-100 d-flex"},hQ={class:"mb-0"},fQ={class:"d-flex w-100 align-items-center gap-2"},gQ={class:"d-flex gap-3"},pQ={class:"card-body px-4 flex-grow-1 d-flex gap-2 flex-column position-relative",ref:"card-body",style:{"overflow-y":"scroll"}},mQ=["onClick","disabled","data-id"],_Q={class:"d-flex align-items-center gap-3"},vQ={key:0},yQ={class:"d-flex flex-column"},bQ={class:"fw-bold"},wQ={class:"text-muted"},xQ={key:1,class:"ms-auto"},EQ={key:0,class:"spinner-border spinner-border-sm",role:"status"},CQ={class:"card-footer px-4 py-3 gap-2 d-flex align-items-center"},SQ=["disabled"],kQ={key:0,class:"flex-grow-1 text-center"},TQ=["disabled"],AQ={key:0,class:"flex-grow-1 text-center"},PQ=["disabled"],MQ={key:0,class:"flex-grow-1 text-center"},IQ=["disabled"],DQ={__name:"selectPeers",props:{configurationPeers:Array},emits:["refresh","close"],setup(t,{emit:e}){const n=t,i=me(!1),s=me(!1),r=me([]),o=me(""),a=E=>{r.value.find(w=>w===E)?r.value=r.value.filter(w=>w!==E):r.value.push(E)},l=ve(()=>i.value||s.value?n.configurationPeers.filter(E=>r.value.find(w=>w===E.id)):o.value.length>0?n.configurationPeers.filter(E=>E.id.includes(o.value)||E.name.includes(o.value)):n.configurationPeers);Zt(r,()=>{r.value.length===0&&(i.value=!1,s.value=!1)});const c=zu(),u=Xe(),d=e,f=me(!1),g=()=>{f.value=!0,ht(`/api/deletePeers/${c.params.id}`,{peers:r.value},E=>{u.newMessage("Server",E.message,E.status?"success":"danger"),E.status&&(r.value=[],i.value=!1),d("refresh"),f.value=!1})},p=Ei({success:[],failed:[]}),m=Bp("card-body"),v=Bp("sp"),y=async()=>{s.value=!0;for(const E of r.value)m.value.scrollTo({top:v.value.find(w=>w.dataset.id===E).offsetTop-20,behavior:"smooth"}),await Pt("/api/downloadPeer/"+c.params.id,{id:E},w=>{if(w.status){const b=new Blob([w.data.file],{type:"text/plain"}),C=URL.createObjectURL(b),k=`${w.data.fileName}.conf`,T=document.createElement("a");T.href=C,T.download=k,T.click(),p.success.push(E)}else p.failed.push(E)})},x=()=>{p.success=[],p.failed=[],s.value=!1};return(E,w)=>(P(),F("div",oQ,[h("div",aQ,[h("div",lQ,[h("div",cQ,[h("div",uQ,[h("div",dQ,[h("h4",hQ,[$(Le,{t:"Select Peers"})]),h("button",{type:"button",class:"btn-close ms-auto",onClick:w[0]||(w[0]=b=>d("close"))})]),h("div",fQ,[h("div",gQ,[s.value?re("",!0):(P(),F("a",{key:0,role:"button",onClick:w[1]||(w[1]=b=>r.value=t.configurationPeers.map(C=>C.id)),class:"text-decoration-none text-body"},w[9]||(w[9]=[h("small",null,[h("i",{class:"bi bi-check-all me-2"}),Fe("Select All ")],-1)]))),r.value.length>0&&!s.value?(P(),F("a",{key:1,role:"button",class:"text-decoration-none text-body",onClick:w[2]||(w[2]=b=>r.value=[])},w[10]||(w[10]=[h("small",null,[h("i",{class:"bi bi-x-circle-fill me-2"}),Fe("Clear ")],-1)]))):re("",!0)]),w[11]||(w[11]=h("label",{class:"ms-auto",for:"selectPeersSearchInput"},[h("i",{class:"bi bi-search"})],-1)),Re(h("input",{class:"form-control form-control-sm rounded-3","onUpdate:modelValue":w[3]||(w[3]=b=>o.value=b),id:"selectPeersSearchInput",style:{width:"200px !important"},type:"text"},null,512),[[ze,o.value]])])]),h("div",pQ,[(P(!0),F(Ie,null,Ge(l.value,b=>(P(),F("button",{type:"button",class:Se(["btn w-100 peerBtn text-start rounded-3",{active:r.value.find(C=>C===b.id)}]),onClick:C=>a(b.id),key:b.id,disabled:i.value||s.value,ref_for:!0,ref:"sp","data-id":b.id},[h("div",_Q,[s.value?re("",!0):(P(),F("span",vQ,[h("i",{class:Se(["bi",[r.value.find(C=>C===b.id)?"bi-check-circle-fill":"bi-circle"]])},null,2)])),h("div",yQ,[h("small",bQ,pe(b.name?b.name:"Untitled Peer"),1),h("small",wQ,[h("samp",null,pe(b.id),1)])]),s.value?(P(),F("span",xQ,[!p.success.find(C=>C===b.id)&&!p.failed.find(C=>C===b.id)?(P(),F("div",EQ,w[12]||(w[12]=[h("span",{class:"visually-hidden"},"Loading...",-1)]))):(P(),F("i",{key:1,class:Se(["bi",[p.failed.find(C=>C===b.id)?"bi-x-circle-fill":"bi-check-circle-fill"]])},null,2))])):re("",!0)])],10,mQ))),128))],512),h("div",CQ,[!i.value&&!s.value?(P(),F(Ie,{key:0},[h("button",{class:"btn bg-primary-subtle text-primary-emphasis border-primary-subtle rounded-3",disabled:r.value.length===0||f.value,onClick:w[4]||(w[4]=b=>y())},w[13]||(w[13]=[h("i",{class:"bi bi-download"},null,-1)]),8,SQ),r.value.length>0?(P(),F("span",kQ,[w[14]||(w[14]=h("i",{class:"bi bi-check-circle-fill me-2"},null,-1)),Fe(" "+pe(r.value.length)+" Peer"+pe(r.value.length>1?"s":""),1)])):re("",!0),h("button",{class:"btn bg-danger-subtle text-danger-emphasis border-danger-subtle ms-auto rounded-3",onClick:w[5]||(w[5]=b=>i.value=!0),disabled:r.value.length===0||f.value},w[15]||(w[15]=[h("i",{class:"bi bi-trash"},null,-1)]),8,TQ)],64)):s.value?(P(),F(Ie,{key:1},[p.failed.length+p.success.length1?"s":"")+"... ",1)):(P(),F(Ie,{key:1},[w[16]||(w[16]=h("strong",null," Download Finished ",-1)),h("button",{onClick:w[6]||(w[6]=b=>x()),class:"btn bg-secondary-subtle text-secondary-emphasis border border-secondary-subtle rounded-3 ms-auto"}," Done ")],64))],64)):i.value?(P(),F(Ie,{key:2},[h("button",{class:"btn btn-danger rounded-3",disabled:r.value.length===0||f.value,onClick:w[7]||(w[7]=b=>g())}," Yes ",8,PQ),r.value.length>0?(P(),F("strong",MQ," Are you sure to delete "+pe(r.value.length)+" Peer"+pe(r.value.length>1?"s":"")+"? ",1)):re("",!0),h("button",{class:"btn bg-secondary-subtle text-secondary-emphasis border border-secondary-subtle ms-auto rounded-3",disabled:r.value.length===0||f.value,onClick:w[8]||(w[8]=b=>i.value=!1)}," No ",8,IQ)],64)):re("",!0)])])])])],512))}},RQ=He(DQ,[["__scopeId","data-v-8e40593b"]]),$Q={class:"card my-0 rounded-3"},LQ={class:"card-body position-relative"},OQ={key:0,class:"position-absolute w-100 h-100 confirmationContainer start-0 top-0 rounded-3 d-flex p-2"},NQ={class:"m-auto"},FQ={class:"d-flex gap-2 align-items-center justify-content-center"},BQ=["disabled"],VQ=["disabled"],zQ={key:0,class:"position-absolute w-100 h-100 confirmationContainer start-0 top-0 rounded-3 d-flex p-2"},WQ={class:"m-auto"},YQ={class:"d-flex gap-2 align-items-center justify-content-center"},HQ=["disabled"],jQ=["disabled"],KQ={class:"d-flex gap-3"},UQ={class:"d-flex flex-column"},GQ={class:"d-flex flex-column"},XQ={class:"d-flex gap-2 align-items-center ms-auto"},qQ={class:"card rounded-3"},ZQ={key:0,class:"card-body"},JQ=["value"],QQ={class:"d-flex"},eee={__name:"backup",props:["b","delay"],emits:["refresh","refreshPeersList"],setup(t,{emit:e}){oC(g=>({df360394:d.value}));const n=t,i=me(!1),s=me(!1),r=zu(),o=e,a=Xe(),l=me(!1),c=()=>{l.value=!0,ht("/api/deleteWireguardConfigurationBackup",{configurationName:r.params.id,backupFileName:n.b.filename},g=>{l.value=!1,g.status?(o("refresh"),a.newMessage("Server","Backup deleted","success")):a.newMessage("Server","Backup failed to delete","danger")})},u=()=>{l.value=!0,ht("/api/restoreWireguardConfigurationBackup",{configurationName:r.params.id,backupFileName:n.b.filename},g=>{l.value=!1,s.value=!1,g.status?(o("refresh"),a.newMessage("Server","Backup restored with "+n.b.filename,"success")):a.newMessage("Server","Backup failed to restore","danger")})},d=ve(()=>n.delay+"s"),f=me(!1);return(g,p)=>(P(),F("div",$Q,[h("div",LQ,[$(xt,{name:"zoomReversed"},{default:Me(()=>[i.value?(P(),F("div",OQ,[h("div",NQ,[p[7]||(p[7]=h("h5",null,"Are you sure to delete this backup?",-1)),h("div",FQ,[h("button",{class:"btn btn-danger rounded-3",disabled:l.value,onClick:p[0]||(p[0]=m=>c())}," Yes ",8,BQ),h("button",{onClick:p[1]||(p[1]=m=>i.value=!1),disabled:l.value,class:"btn bg-secondary-subtle text-secondary-emphasis border-secondary-subtle rounded-3"}," No ",8,VQ)])])])):re("",!0)]),_:1}),$(xt,{name:"zoomReversed"},{default:Me(()=>[s.value?(P(),F("div",zQ,[h("div",WQ,[p[8]||(p[8]=h("h5",null,"Are you sure to restore this backup?",-1)),h("div",YQ,[h("button",{disabled:l.value,onClick:p[2]||(p[2]=m=>u()),class:"btn btn-success rounded-3"}," Yes ",8,HQ),h("button",{onClick:p[3]||(p[3]=m=>s.value=!1),disabled:l.value,class:"btn bg-secondary-subtle text-secondary-emphasis border-secondary-subtle rounded-3"}," No ",8,jQ)])])])):re("",!0)]),_:1}),h("div",KQ,[h("div",UQ,[p[9]||(p[9]=h("small",{class:"text-muted"}," Backup ",-1)),h("samp",null,pe(t.b.filename),1)]),h("div",GQ,[p[10]||(p[10]=h("small",{class:"text-muted"}," Backup Date ",-1)),Fe(" "+pe(Z(Fn)(t.b.backupDate,"YYYYMMDDHHmmss").format("YYYY-MM-DD HH:mm:ss")),1)]),h("div",XQ,[h("button",{onClick:p[4]||(p[4]=m=>s.value=!0),class:"btn bg-warning-subtle text-warning-emphasis border-warning-subtle rounded-3 btn-sm"},p[11]||(p[11]=[h("i",{class:"bi bi-clock-history"},null,-1)])),h("button",{onClick:p[5]||(p[5]=m=>i.value=!0),class:"btn bg-danger-subtle text-danger-emphasis border-danger-subtle rounded-3 btn-sm"},p[12]||(p[12]=[h("i",{class:"bi bi-trash-fill"},null,-1)]))])]),p[15]||(p[15]=h("hr",null,null,-1)),h("div",qQ,[h("a",{role:"button",class:Se(["card-header d-flex text-decoration-none align-items-center",{"border-bottom-0":!f.value}]),style:{cursor:"pointer"},onClick:p[6]||(p[6]=m=>f.value=!f.value)},p[13]||(p[13]=[h("small",null,".conf File ",-1),h("i",{class:"bi bi-chevron-down ms-auto"},null,-1)]),2),f.value?(P(),F("div",ZQ,[h("textarea",{class:"form-control rounded-3",value:t.b.content,disabled:"",style:{height:"300px","font-family":"var(--bs-font-monospace),sans-serif !important"}},null,8,JQ)])):re("",!0)]),p[16]||(p[16]=h("hr",null,null,-1)),h("div",QQ,[p[14]||(p[14]=h("span",null,[h("i",{class:"bi bi-database me-1"}),Fe(" Database ")],-1)),h("i",{class:Se(["bi ms-auto",[t.b.database?"text-success bi-check-circle-fill":"text-danger bi-x-circle-fill"]])},null,2)])])]))}},tee=He(eee,[["__scopeId","data-v-61688b74"]]),nee={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0 overflow-y-scroll",ref:"editConfigurationContainer"},iee={class:"d-flex h-100 w-100"},see={class:"modal-dialog-centered dashboardModal w-100 h-100 overflow-x-scroll flex-column gap-3 mx-3"},ree={class:"my-5 d-flex gap-3 flex-column position-relative"},oee={class:"title"},aee={class:"d-flex mb-3"},lee={class:"mb-0"},cee={class:"position-relative d-flex flex-column gap-3"},uee={class:"text-center title",key:"spinner"},dee={class:"card my-0 rounded-3",key:"noBackups"},hee={__name:"configurationBackupRestore",emits:["close","refreshPeersList"],setup(t,{emit:e}){const n=zu(),i=me([]),s=me(!0),r=e;Vt(()=>{o()});const o=()=>{s.value=!0,Pt("/api/getWireguardConfigurationBackup",{configurationName:n.params.id},l=>{i.value=l.data,s.value=!1})},a=()=>{Pt("/api/createWireguardConfigurationBackup",{configurationName:n.params.id},l=>{i.value=l.data,s.value=!1})};return(l,c)=>(P(),F("div",nee,[h("div",iee,[h("div",see,[h("div",ree,[h("div",oee,[h("div",aee,[h("h4",lee,[$(Le,{t:"Backup & Restore"})]),h("button",{type:"button",class:"btn-close ms-auto",onClick:c[0]||(c[0]=u=>l.$emit("close"))})]),h("button",{onClick:c[1]||(c[1]=u=>a()),class:"btn bg-primary-subtle text-primary-emphasis border-primary-subtle rounded-3 w-100"},c[4]||(c[4]=[h("i",{class:"bi bi-plus-circle-fill me-2"},null,-1),Fe(" Create Backup ")]))]),h("div",cee,[$(vo,{name:"list1"},{default:Me(()=>[s.value&&i.value.length===0?(P(),F("div",uee,c[5]||(c[5]=[h("div",{class:"spinner-border"},null,-1)]))):!s.value&&i.value.length===0?(P(),F("div",dee,c[6]||(c[6]=[h("div",{class:"card-body text-center text-muted"},[h("i",{class:"bi bi-x-circle-fill me-2"}),Fe(" No backup yet, click the button above to create backup. ")],-1)]))):re("",!0),(P(!0),F(Ie,null,Ge(i.value,(u,d)=>(P(),Ee(tee,{onRefresh:c[2]||(c[2]=f=>o()),onRefreshPeersList:c[3]||(c[3]=f=>r("refreshPeersList")),b:u,delay:d*.05,key:u.filename},null,8,["b","delay"]))),128))]),_:1})])])])])],512))}},fee=He(hee,[["__scopeId","data-v-b454707b"]]),gee={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0 overflow-y-scroll"},pee={class:"container d-flex h-100 w-100"},mee={class:"m-auto modal-dialog-centered dashboardModal",style:{width:"700px"}},_ee={class:"card rounded-3 shadow flex-grow-1 bg-danger-subtle border-danger-subtle",id:"deleteConfigurationContainer"},vee={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4 pb-0"},yee={class:"card-body px-4"},bee={key:0},wee={key:1},xee={key:2,class:"d-flex align-items-center gap-2"},Eee=["placeholder"],Cee=["disabled"],See={__name:"deleteConfiguration",emits:["backup"],setup(t,{emit:e}){const i=zu().params.id,s=me(""),r=IC(),o=Xe(),a=me(!1),l=()=>{clearInterval(o.Peers.RefreshInterval),a.value=!0,ht("/api/deleteWireguardConfiguration",{Name:i},g=>{g.status?(r.push("/"),o.newMessage("Server","Configuration deleted","success")):a.value=!1})},c=me(!0),u=me([]),d=()=>{c.value=!0,Pt("/api/getWireguardConfigurationBackup",{configurationName:i},g=>{u.value=g.data,c.value=!1})};Vt(()=>{d()});const f=e;return(g,p)=>(P(),F("div",gee,[h("div",pee,[h("div",mee,[h("div",_ee,[h("div",vee,[p[5]||(p[5]=h("h5",{class:"mb-0"}," Are you sure to delete this configuration? ",-1)),h("button",{type:"button",class:"btn-close ms-auto",onClick:p[0]||(p[0]=m=>g.$emit("close"))})]),h("div",yee,[p[12]||(p[12]=h("p",{class:"text-muted"},[Fe(" Once you deleted, all connected peers will get disconnected; Both configuration file ("),h("code",null,".conf"),Fe(") and database table related to this configuration will get deleted. ")],-1)),h("div",{class:Se(["alert",[c.value?"alert-secondary":u.value.length>0?"alert-success":"alert-danger"]])},[c.value?(P(),F("div",bee,[p[6]||(p[6]=h("i",{class:"bi bi-search me-2"},null,-1)),$(Le,{t:"Checking backups..."})])):u.value.length>0?(P(),F("div",wee,[p[7]||(p[7]=h("i",{class:"bi bi-check-circle-fill me-2"},null,-1)),$(Le,{t:"This configuration have "+u.value.length+" backups"},null,8,["t"])])):(P(),F("div",xee,[p[10]||(p[10]=h("i",{class:"bi bi-x-circle-fill me-2"},null,-1)),$(Le,{t:"This configuration have no backup."}),h("a",{role:"button",onClick:p[1]||(p[1]=m=>f("backup")),class:"ms-auto btn btn-sm btn-primary rounded-3"},p[8]||(p[8]=[h("i",{class:"bi bi-clock-history me-2"},null,-1),Fe(" Backup ")])),h("a",{role:"button",onClick:p[2]||(p[2]=m=>d()),class:"btn btn-sm btn-primary rounded-3"},p[9]||(p[9]=[h("i",{class:"bi bi-arrow-clockwise"},null,-1)]))]))],2),p[13]||(p[13]=h("hr",null,null,-1)),p[14]||(p[14]=h("p",null,"If you're sure, please type in the configuration name below and click Delete.",-1)),Re(h("input",{class:"form-control rounded-3 mb-3",placeholder:Z(i),"onUpdate:modelValue":p[3]||(p[3]=m=>s.value=m),type:"text"},null,8,Eee),[[ze,s.value]]),h("button",{class:"btn btn-danger w-100",onClick:p[4]||(p[4]=m=>l()),disabled:s.value!==Z(i)||a.value},p[11]||(p[11]=[h("i",{class:"bi bi-trash-fill me-2 rounded-3"},null,-1),Fe(" Delete ")]),8,Cee)])])])])]))}};Df.register(oK,Rf,xK,mK,rk,BH,ok,ak,WH,zH,YH,HH,hU,gU,_U,IU,_m,LU,kK,KK,JK,eU,lU);const kee={name:"peerList",components:{DeleteConfiguration:See,ConfigurationBackupRestore:fee,SelectPeers:RQ,EditConfiguration:rQ,LocaleText:Le,PeerShareLinkModal:bJ,PeerJobsLogsModal:nJ,PeerJobsAllModal:mZ,PeerJobs:qq,PeerCreate:nT,PeerQRCode:C9,PeerSettings:k7,PeerSearch:Uz,Peer:PW,Line:HU,Bar:YU},setup(){const t=Xe(),e=$n(),n=me(void 0);return{dashboardConfigurationStore:t,wireguardConfigurationStore:e,interval:n}},data(){return{configurationToggling:!1,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},peerScheduleJobs:{modalOpen:!1,selectedPeer:void 0},peerQRCode:{modalOpen:!1,peerConfigData:void 0},peerCreate:{modalOpen:!1},peerScheduleJobsAll:{modalOpen:!1},peerScheduleJobsLogs:{modalOpen:!1},peerShare:{modalOpen:!1,selectedPeer:void 0},editConfiguration:{modalOpen:!1},selectPeers:{modalOpen:!1},backupRestore:{modalOpen:!1},deleteConfiguration:{modalOpen:!1}}},mounted(){},watch:{$route:{immediate:!0,handler(){clearInterval(this.dashboardConfigurationStore.Peers.RefreshInterval),this.loading=!0;let t=this.$route.params.id;this.configurationInfo=[],this.configurationPeers=[],t&&(this.getPeers(t),this.setPeerInterval())}},"dashboardConfigurationStore.Configuration.Server.dashboard_refresh_interval"(){clearInterval(this.dashboardConfigurationStore.Peers.RefreshInterval),this.setPeerInterval()}},beforeRouteLeave(){clearInterval(this.dashboardConfigurationStore.Peers.RefreshInterval)},methods:{toggle(){this.configurationToggling=!0,Pt("/api/toggleWireguardConfiguration/",{configurationName:this.configurationInfo.Name},t=>{t.status?this.dashboardConfigurationStore.newMessage("Server",`${this.configurationInfo.Name} ${t.data?"is on":"is off"}`,"success"):this.dashboardConfigurationStore.newMessage("Server",t.message,"danger"),this.configurationInfo.Status=t.data,this.configurationToggling=!1})},getPeers(t=this.$route.params.id){Pt("/api/getWireguardConfigurationInfo",{configurationName:t},e=>{if(this.configurationInfo=e.data.configurationInfo,this.configurationPeers=e.data.configurationPeers,this.configurationPeers.forEach(n=>{n.restricted=!1}),e.data.configurationRestrictedPeers.forEach(n=>{n.restricted=!0,this.configurationPeers.push(n)}),this.loading=!1,this.configurationPeers.length>0){const n=this.configurationPeers.map(s=>s.total_sent+s.cumu_sent).reduce((s,r)=>s+r).toFixed(4),i=this.configurationPeers.map(s=>s.total_receive+s.cumu_receive).reduce((s,r)=>s+r).toFixed(4);this.historyDataSentDifference[this.historyDataSentDifference.length-1]!==n&&(this.historyDataSentDifference.length>0&&(this.historySentData={labels:[...this.historySentData.labels,Fn().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]!==i&&(this.historyDataReceivedDifference.length>0&&(this.historyReceiveData={labels:[...this.historyReceiveData.labels,Fn().format("HH:mm:ss A")],datasets:[{label:"Data Received",data:[...this.historyReceiveData.datasets[0].data,((i-this.historyDataReceivedDifference[this.historyDataReceivedDifference.length-1])*1e3).toFixed(4)],fill:!1,borderColor:"#0d6efd",tension:0}]}),this.historyDataReceivedDifference.push(i))}})},setPeerInterval(){this.dashboardConfigurationStore.Peers.RefreshInterval=setInterval(()=>{this.getPeers()},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.filter(e=>!e.restricted).map(e=>e.total_data+e.cumu_data).reduce((e,n)=>e+n,0).toFixed(4):0,totalReceive:this.configurationPeers.length>0?this.configurationPeers.filter(e=>!e.restricted).map(e=>e.total_receive+e.cumu_receive).reduce((e,n)=>e+n,0).toFixed(4):0,totalSent:this.configurationPeers.length>0?this.configurationPeers.filter(e=>!e.restricted).map(e=>e.total_sent+e.cumu_sent).reduce((e,n)=>e+n,0).toFixed(4):0}},receiveData(){return this.historyReceiveData},sentData(){return this.historySentData},individualDataUsage(){return{labels:this.configurationPeers.map(t=>t.name?t.name:`Untitled Peer - ${t.id}`),datasets:[{label:"Total Data Usage",data:this.configurationPeers.map(t=>t.cumu_data+t.total_data),backgroundColor:this.configurationPeers.map(t=>"#0dcaf0"),tooltip:{callbacks:{label:t=>`${t.formattedValue} GB`}}}]}},individualDataUsageChartOption(){return{responsive:!0,plugins:{legend:{display:!1}},scales:{x:{ticks:{display:!1},grid:{display:!1}},y:{ticks:{callback:(t,e)=>`${t} GB`},grid:{display:!1}}}}},chartOptions(){return{responsive:!0,plugins:{legend:{display:!1},tooltip:{callbacks:{label:t=>`${t.formattedValue} MB/s`}}},scales:{x:{ticks:{display:!1},grid:{display:!1}},y:{ticks:{callback:(t,e)=>`${t} MB/s`},grid:{display:!1}}}}},searchPeers(){new Xl(this.configurationPeers,{keys:["name","id","allowed_ip"]});const t=this.wireguardConfigurationStore.searchString?this.configurationPeers.filter(e=>e.name.includes(this.wireguardConfigurationStore.searchString)||e.id.includes(this.wireguardConfigurationStore.searchString)||e.allowed_ip.includes(this.wireguardConfigurationStore.searchString)):this.configurationPeers;return this.dashboardConfigurationStore.Configuration.Server.dashboard_sort==="restricted"?t.slice().sort((e,n)=>e[this.dashboardConfigurationStore.Configuration.Server.dashboard_sort]n[this.dashboardConfigurationStore.Configuration.Server.dashboard_sort]?-1:0):t.slice().sort((e,n)=>e[this.dashboardConfigurationStore.Configuration.Server.dashboard_sort]n[this.dashboardConfigurationStore.Configuration.Server.dashboard_sort]?1:0)}}},Tee={key:0,class:"container-md"},Aee={class:"d-flex align-items-center"},Pee={CLASS:"text-muted"},Mee={class:"d-flex align-items-center gap-3"},Iee={class:"mb-0"},Dee={class:"card rounded-3 bg-transparent shadow-sm ms-auto"},Ree={class:"card-body py-2 d-flex align-items-center"},$ee={class:"mb-0 text-muted"},Lee={class:"form-check form-switch ms-auto"},Oee=["for"],Nee={key:4,class:"spinner-border spinner-border-sm ms-2","aria-hidden":"true"},Fee=["disabled","id"],Bee={class:"row mt-3 gy-2 gx-2 mb-2"},Vee={class:"col-6 col-lg-3"},zee={class:"card rounded-3 bg-transparent shadow-sm"},Wee={class:"card-body py-2"},Yee={class:"mb-0 text-muted"},Hee={class:"col-6 col-lg-3"},jee={class:"card rounded-3 bg-transparent shadow-sm"},Kee={class:"card-body py-2"},Uee={class:"mb-0 text-muted"},Gee={style:{"word-break":"break-all"},class:"col-12 col-lg-6"},Xee={class:"card rounded-3 bg-transparent shadow-sm"},qee={class:"card-body py-2"},Zee={class:"mb-0 text-muted"},Jee={class:"row gx-2 gy-2 mb-2"},Qee={class:"col-6 col-lg-3"},ete={class:"card rounded-3 bg-transparent shadow-sm"},tte={class:"card-body d-flex"},nte={class:"mb-0 text-muted"},ite={class:"h4"},ste={class:"col-6 col-lg-3"},rte={class:"card rounded-3 bg-transparent shadow-sm"},ote={class:"card-body d-flex"},ate={class:"mb-0 text-muted"},lte={class:"h4"},cte={class:"col-6 col-lg-3"},ute={class:"card rounded-3 bg-transparent shadow-sm"},dte={class:"card-body d-flex"},hte={class:"mb-0 text-muted"},fte={class:"h4 text-primary"},gte={class:"col-6 col-lg-3"},pte={class:"card rounded-3 bg-transparent shadow-sm"},mte={class:"card-body d-flex"},_te={class:"mb-0 text-muted"},vte={class:"h4 text-success"},yte={class:"row gx-2 gy-2 mb-3"},bte={class:"col-12 col-lg-6"},wte={class:"card rounded-3 bg-transparent shadow-sm",style:{height:"270px"}},xte={class:"card-header bg-transparent border-0"},Ete={class:"text-muted"},Cte={class:"card-body pt-1"},Ste={class:"col-sm col-lg-3"},kte={class:"card rounded-3 bg-transparent shadow-sm",style:{height:"270px"}},Tte={class:"card-header bg-transparent border-0"},Ate={class:"text-muted"},Pte={class:"card-body pt-1"},Mte={class:"col-sm col-lg-3"},Ite={class:"card rounded-3 bg-transparent shadow-sm",style:{height:"270px"}},Dte={class:"card-header bg-transparent border-0"},Rte={class:"text-muted"},$te={class:"card-body pt-1"},Lte={class:"mb-3"};function Ote(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("Bar"),l=Ce("Line"),c=Ce("PeerSearch"),u=Ce("Peer"),d=Ce("PeerSettings"),f=Ce("PeerQRCode"),g=Ce("PeerJobs"),p=Ce("PeerJobsAllModal"),m=Ce("PeerJobsLogsModal"),v=Ce("PeerShareLinkModal"),y=Ce("EditConfiguration"),x=Ce("SelectPeers"),E=Ce("DeleteConfiguration"),w=Ce("ConfigurationBackupRestore");return this.loading?re("",!0):(P(),F("div",Tee,[h("div",Aee,[h("div",null,[h("small",Pee,[$(o,{t:"CONFIGURATION"})]),h("div",Mee,[h("h1",Iee,[h("samp",null,pe(this.configurationInfo.Name),1)])])]),h("div",Dee,[h("div",Ree,[h("div",null,[h("p",$ee,[h("small",null,[$(o,{t:"Status"})])]),h("div",Lee,[h("label",{class:"form-check-label",style:{cursor:"pointer"},for:"switch"+this.configurationInfo.id},[!this.configurationInfo.Status&&this.configurationToggling?(P(),Ee(o,{key:0,t:"Turning Off..."})):this.configurationInfo.Status&&this.configurationToggling?(P(),Ee(o,{key:1,t:"Turning On..."})):this.configurationInfo.Status&&!this.configurationToggling?(P(),Ee(o,{key:2,t:"On"})):!this.configurationInfo.Status&&!this.configurationToggling?(P(),Ee(o,{key:3,t:"Off"})):re("",!0),this.configurationToggling?(P(),F("span",Nee)):re("",!0)],8,Oee),Re(h("input",{class:"form-check-input",style:{cursor:"pointer"},disabled:this.configurationToggling,type:"checkbox",role:"switch",id:"switch"+this.configurationInfo.id,onChange:e[0]||(e[0]=b=>this.toggle()),"onUpdate:modelValue":e[1]||(e[1]=b=>this.configurationInfo.Status=b)},null,40,Fee),[[Gn,this.configurationInfo.Status]])])]),h("div",{class:Se(["dot ms-5",{active:this.configurationInfo.Status}])},null,2)])])]),h("div",Bee,[h("div",Vee,[h("div",zee,[h("div",Wee,[h("p",Yee,[h("small",null,[$(o,{t:"Address"})])]),Fe(" "+pe(this.configurationInfo.Address),1)])])]),h("div",Hee,[h("div",jee,[h("div",Kee,[h("p",Uee,[h("small",null,[$(o,{t:"Listen Port"})])]),Fe(" "+pe(this.configurationInfo.ListenPort),1)])])]),h("div",Gee,[h("div",Xee,[h("div",qee,[h("p",Zee,[h("small",null,[$(o,{t:"Public Key"})])]),h("samp",null,pe(this.configurationInfo.PublicKey),1)])])])]),h("div",Jee,[h("div",Qee,[h("div",ete,[h("div",tte,[h("div",null,[h("p",nte,[h("small",null,[$(o,{t:"Connected Peers"})])]),h("strong",ite,pe(r.configurationSummary.connectedPeers)+" / "+pe(s.configurationPeers.length),1)]),e[27]||(e[27]=h("i",{class:"bi bi-ethernet ms-auto h2 text-muted"},null,-1))])])]),h("div",ste,[h("div",rte,[h("div",ote,[h("div",null,[h("p",ate,[h("small",null,[$(o,{t:"Total Usage"})])]),h("strong",lte,pe(r.configurationSummary.totalUsage)+" GB",1)]),e[28]||(e[28]=h("i",{class:"bi bi-arrow-down-up ms-auto h2 text-muted"},null,-1))])])]),h("div",cte,[h("div",ute,[h("div",dte,[h("div",null,[h("p",hte,[h("small",null,[$(o,{t:"Total Received"})])]),h("strong",fte,pe(r.configurationSummary.totalReceive)+" GB",1)]),e[29]||(e[29]=h("i",{class:"bi bi-arrow-down ms-auto h2 text-muted"},null,-1))])])]),h("div",gte,[h("div",pte,[h("div",mte,[h("div",null,[h("p",_te,[h("small",null,[$(o,{t:"Total Sent"})])]),h("strong",vte,pe(r.configurationSummary.totalSent)+" GB",1)]),e[30]||(e[30]=h("i",{class:"bi bi-arrow-up ms-auto h2 text-muted"},null,-1))])])])]),h("div",yte,[h("div",bte,[h("div",wte,[h("div",xte,[h("small",Ete,[$(o,{t:"Peers Data Usage"})])]),h("div",Cte,[$(a,{data:r.individualDataUsage,options:r.individualDataUsageChartOption,style:{width:"100%",height:"200px","max-height":"200px"}},null,8,["data","options"])])])]),h("div",Ste,[h("div",kte,[h("div",Tte,[h("small",Ate,[$(o,{t:"Real Time Received Data Usage"})])]),h("div",Pte,[$(l,{options:r.chartOptions,data:r.receiveData,style:{width:"100%",height:"200px","max-height":"200px"}},null,8,["options","data"])])])]),h("div",Mte,[h("div",Ite,[h("div",Dte,[h("small",Rte,[$(o,{t:"Real Time Sent Data Usage"})])]),h("div",$te,[$(l,{options:r.chartOptions,data:r.sentData,style:{width:"100%",height:"200px","max-height":"200px"}},null,8,["options","data"])])])])]),h("div",Lte,[$(c,{onJobsAll:e[2]||(e[2]=b=>this.peerScheduleJobsAll.modalOpen=!0),onJobLogs:e[3]||(e[3]=b=>this.peerScheduleJobsLogs.modalOpen=!0),onEditConfiguration:e[4]||(e[4]=b=>this.editConfiguration.modalOpen=!0),onSelectPeers:e[5]||(e[5]=b=>this.selectPeers.modalOpen=!0),onBackupRestore:e[6]||(e[6]=b=>this.backupRestore.modalOpen=!0),onDeleteConfiguration:e[7]||(e[7]=b=>this.deleteConfiguration.modalOpen=!0),configuration:this.configurationInfo},null,8,["configuration"]),$(vo,{name:"list",tag:"div",class:"row gx-2 gy-2 z-0"},{default:Me(()=>[(P(!0),F(Ie,null,Ge(this.searchPeers,b=>(P(),F("div",{class:"col-12 col-lg-6 col-xl-4",key:b.id},[$(u,{Peer:b,onShare:C=>{this.peerShare.selectedPeer=b.id,this.peerShare.modalOpen=!0},onRefresh:e[8]||(e[8]=C=>this.getPeers()),onJobs:C=>{s.peerScheduleJobs.modalOpen=!0,s.peerScheduleJobs.selectedPeer=this.configurationPeers.find(k=>k.id===b.id)},onSetting:C=>{s.peerSetting.modalOpen=!0,s.peerSetting.selectedPeer=this.configurationPeers.find(k=>k.id===b.id)},onQrcode:e[9]||(e[9]=C=>{this.peerQRCode.peerConfigData=C,this.peerQRCode.modalOpen=!0})},null,8,["Peer","onShare","onJobs","onSetting"])]))),128))]),_:1})]),$(xt,{name:"zoom"},{default:Me(()=>[this.peerSetting.modalOpen?(P(),Ee(d,{key:"settings",selectedPeer:this.peerSetting.selectedPeer,onRefresh:e[10]||(e[10]=b=>this.getPeers()),onClose:e[11]||(e[11]=b=>this.peerSetting.modalOpen=!1)},null,8,["selectedPeer"])):re("",!0)]),_:1}),$(xt,{name:"zoom"},{default:Me(()=>[s.peerQRCode.modalOpen?(P(),Ee(f,{peerConfigData:this.peerQRCode.peerConfigData,key:"qrcode",onClose:e[12]||(e[12]=b=>this.peerQRCode.modalOpen=!1)},null,8,["peerConfigData"])):re("",!0)]),_:1}),$(xt,{name:"zoom"},{default:Me(()=>[this.peerScheduleJobs.modalOpen?(P(),Ee(g,{key:0,onRefresh:e[13]||(e[13]=b=>this.getPeers()),selectedPeer:this.peerScheduleJobs.selectedPeer,onClose:e[14]||(e[14]=b=>this.peerScheduleJobs.modalOpen=!1)},null,8,["selectedPeer"])):re("",!0)]),_:1}),$(xt,{name:"zoom"},{default:Me(()=>[this.peerScheduleJobsAll.modalOpen?(P(),Ee(p,{key:0,onRefresh:e[15]||(e[15]=b=>this.getPeers()),onClose:e[16]||(e[16]=b=>this.peerScheduleJobsAll.modalOpen=!1),configurationPeers:this.configurationPeers},null,8,["configurationPeers"])):re("",!0)]),_:1}),$(xt,{name:"zoom"},{default:Me(()=>[this.peerScheduleJobsLogs.modalOpen?(P(),Ee(m,{key:0,onClose:e[17]||(e[17]=b=>this.peerScheduleJobsLogs.modalOpen=!1),configurationInfo:this.configurationInfo},null,8,["configurationInfo"])):re("",!0)]),_:1}),$(xt,{name:"zoom"},{default:Me(()=>[this.peerShare.modalOpen?(P(),Ee(v,{key:0,onClose:e[18]||(e[18]=b=>{this.peerShare.modalOpen=!1,this.peerShare.selectedPeer=void 0}),peer:this.configurationPeers.find(b=>b.id===this.peerShare.selectedPeer)},null,8,["peer"])):re("",!0)]),_:1}),$(xt,{name:"zoom"},{default:Me(()=>[this.editConfiguration.modalOpen?(P(),Ee(y,{key:0,onClose:e[19]||(e[19]=b=>this.editConfiguration.modalOpen=!1),onDataChanged:e[20]||(e[20]=b=>this.configurationInfo=b),configurationInfo:this.configurationInfo},null,8,["configurationInfo"])):re("",!0)]),_:1}),$(xt,{name:"zoom"},{default:Me(()=>[this.selectPeers.modalOpen?(P(),Ee(x,{key:0,onRefresh:e[21]||(e[21]=b=>this.getPeers()),configurationPeers:this.configurationPeers,onClose:e[22]||(e[22]=b=>this.selectPeers.modalOpen=!1)},null,8,["configurationPeers"])):re("",!0)]),_:1}),$(xt,{name:"zoom"},{default:Me(()=>[s.deleteConfiguration.modalOpen?(P(),Ee(E,{key:0,onBackup:e[23]||(e[23]=b=>s.backupRestore.modalOpen=!0),onClose:e[24]||(e[24]=b=>s.deleteConfiguration.modalOpen=!1)})):re("",!0)]),_:1}),$(xt,{name:"zoom"},{default:Me(()=>[s.backupRestore.modalOpen?(P(),Ee(w,{key:0,onClose:e[25]||(e[25]=b=>s.backupRestore.modalOpen=!1),onRefreshPeersList:e[26]||(e[26]=b=>this.getPeers())})):re("",!0)]),_:1})]))}const Nte=He(kee,[["render",Ote],["__scopeId","data-v-49de95e7"]]);class Er{constructor(e){this.propagationStopped,this.defaultPrevented,this.type=e,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}const Fl={PROPERTYCHANGE:"propertychange"};class Bf{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}function Fte(t,e,n){let i,s;n=n||hr;let r=0,o=t.length,a=!1;for(;r>1),s=+n(t[i],e),s<0?r=i+1:(o=i,a=!s);return a?r:~r}function hr(t,e){return t>e?1:t0?s-1:s}return i-1}if(n>0){for(let s=1;s0||o===0)})}function yu(){return!0}function zf(){return!1}function Bl(){}function rT(t){let e,n,i;return function(){const s=Array.prototype.slice.call(arguments);return(!n||this!==i||!So(s,n))&&(i=this,n=s,e=t.apply(this,arguments)),e}}function zte(t){function e(){let n;try{n=t()}catch(i){return Promise.reject(i)}return n instanceof Promise?n:Promise.resolve(n)}return e()}function qu(t){for(const e in t)delete t[e]}function Vl(t){let e;for(e in t)return!1;return!e}class Wf extends Bf{constructor(e){super(),this.eventTarget_=e,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(e,n){if(!e||!n)return;const i=this.listeners_||(this.listeners_={}),s=i[e]||(i[e]=[]);s.includes(n)||s.push(n)}dispatchEvent(e){const n=typeof e=="string",i=n?e:e.type,s=this.listeners_&&this.listeners_[i];if(!s)return;const r=n?new Er(e):e;r.target||(r.target=this.eventTarget_||this);const o=this.dispatching_||(this.dispatching_={}),a=this.pendingRemovals_||(this.pendingRemovals_={});i in o||(o[i]=0,a[i]=0),++o[i];let l;for(let c=0,u=s.length;c0:!1}removeEventListener(e,n){if(!this.listeners_)return;const i=this.listeners_[e];if(!i)return;const s=i.indexOf(n);s!==-1&&(this.pendingRemovals_&&e in this.pendingRemovals_?(i[s]=Bl,++this.pendingRemovals_[e]):(i.splice(s,1),i.length===0&&delete this.listeners_[e]))}}const tt={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"};function ft(t,e,n,i,s){if(s){const o=n;n=function(){t.removeEventListener(e,n),o.apply(i??this,arguments)}}else i&&i!==t&&(n=n.bind(i));const r={target:t,type:e,listener:n};return t.addEventListener(e,n),r}function Bh(t,e,n,i){return ft(t,e,n,i,!0)}function Lt(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),qu(t))}class Zu extends Wf{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(tt.CHANGE)}getRevision(){return this.revision_}onInternal(e,n){if(Array.isArray(e)){const i=e.length,s=new Array(i);for(let r=0;r0;)this.pop()}extend(e){for(let n=0,i=e.length;nthis.getLength())throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(n),this.array_.splice(e,0,n),this.updateLength_(),this.dispatchEvent(new Hd(gi.ADD,n,e))}pop(){return this.removeAt(this.getLength()-1)}push(e){this.unique_&&this.assertUnique_(e);const n=this.getLength();return this.insertAt(n,e),this.getLength()}remove(e){const n=this.array_;for(let i=0,s=n.length;i=this.getLength())return;const n=this.array_[e];return this.array_.splice(e,1),this.updateLength_(),this.dispatchEvent(new Hd(gi.REMOVE,n,e)),n}setAt(e,n){const i=this.getLength();if(e>=i){this.insertAt(e,n);return}if(e<0)throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(n,e);const s=this.array_[e];this.array_[e]=n,this.dispatchEvent(new Hd(gi.REMOVE,s,e)),this.dispatchEvent(new Hd(gi.ADD,n,e))}updateLength_(){this.set(rw.LENGTH,this.array_.length)}assertUnique_(e,n){for(let i=0,s=this.array_.length;i1?(n=s,i=r):l>0&&(n+=o*l,i+=a*l)}return dl(t,e,n,i)}function dl(t,e,n,i){const s=n-t,r=i-e;return s*s+r*r}function jte(t){const e=t.length;for(let i=0;ir&&(r=l,s=a)}if(r===0)return null;const o=t[s];t[s]=t[i],t[i]=o;for(let a=i+1;a=0;i--){n[i]=t[i][e]/t[i][i];for(let s=i-1;s>=0;s--)t[s][e]-=t[s][i]*n[i]}return n}function fh(t){return t*Math.PI/180}function hl(t,e){const n=t%e;return n*e<0?n+e:n}function Ai(t,e,n){return t+n*(e-t)}function mv(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}function jd(t,e){return Math.floor(mv(t,e))}function Kd(t,e){return Math.ceil(mv(t,e))}class oT extends zs{constructor(e){super(),this.on,this.once,this.un,this.background_=e.background;const n=Object.assign({},e);typeof e.properties=="object"&&(delete n.properties,Object.assign(n,e.properties)),n[Ct.OPACITY]=e.opacity!==void 0?e.opacity:1,mt(typeof n[Ct.OPACITY]=="number","Layer opacity must be a number"),n[Ct.VISIBLE]=e.visible!==void 0?e.visible:!0,n[Ct.Z_INDEX]=e.zIndex,n[Ct.MAX_RESOLUTION]=e.maxResolution!==void 0?e.maxResolution:1/0,n[Ct.MIN_RESOLUTION]=e.minResolution!==void 0?e.minResolution:0,n[Ct.MIN_ZOOM]=e.minZoom!==void 0?e.minZoom:-1/0,n[Ct.MAX_ZOOM]=e.maxZoom!==void 0?e.maxZoom:1/0,this.className_=n.className!==void 0?n.className:"ol-layer",delete n.className,this.setProperties(n),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(e){const n=this.state_||{layer:this,managed:e===void 0?!0:e},i=this.getZIndex();return n.opacity=rn(Math.round(this.getOpacity()*100)/100,0,1),n.visible=this.getVisible(),n.extent=this.getExtent(),n.zIndex=i===void 0&&!n.managed?1/0:i,n.maxResolution=this.getMaxResolution(),n.minResolution=Math.max(this.getMinResolution(),0),n.minZoom=this.getMinZoom(),n.maxZoom=this.getMaxZoom(),this.state_=n,n}getLayersArray(e){return pt()}getLayerStatesArray(e){return pt()}getExtent(){return this.get(Ct.EXTENT)}getMaxResolution(){return this.get(Ct.MAX_RESOLUTION)}getMinResolution(){return this.get(Ct.MIN_RESOLUTION)}getMinZoom(){return this.get(Ct.MIN_ZOOM)}getMaxZoom(){return this.get(Ct.MAX_ZOOM)}getOpacity(){return this.get(Ct.OPACITY)}getSourceState(){return pt()}getVisible(){return this.get(Ct.VISIBLE)}getZIndex(){return this.get(Ct.Z_INDEX)}setBackground(e){this.background_=e,this.changed()}setExtent(e){this.set(Ct.EXTENT,e)}setMaxResolution(e){this.set(Ct.MAX_RESOLUTION,e)}setMinResolution(e){this.set(Ct.MIN_RESOLUTION,e)}setMaxZoom(e){this.set(Ct.MAX_ZOOM,e)}setMinZoom(e){this.set(Ct.MIN_ZOOM,e)}setOpacity(e){mt(typeof e=="number","Layer opacity must be a number"),this.set(Ct.OPACITY,e)}setVisible(e){this.set(Ct.VISIBLE,e)}setZIndex(e){this.set(Ct.Z_INDEX,e)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}}const Wi={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"},Hn={ANIMATING:0,INTERACTING:1},es={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"},Kte=42,_v=256,vv={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};class aT{constructor(e){this.code_=e.code,this.units_=e.units,this.extent_=e.extent!==void 0?e.extent:null,this.worldExtent_=e.worldExtent!==void 0?e.worldExtent:null,this.axisOrientation_=e.axisOrientation!==void 0?e.axisOrientation:"enu",this.global_=e.global!==void 0?e.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||vv[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(e){this.global_=e,this.canWrapX_=!!(e&&this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(e){this.defaultTileGrid_=e}setExtent(e){this.extent_=e,this.canWrapX_=!!(this.global_&&e)}setWorldExtent(e){this.worldExtent_=e}setGetPointResolution(e){this.getPointResolutionFunc_=e}getPointResolutionFunc(){return this.getPointResolutionFunc_}}const Ju=6378137,nl=Math.PI*Ju,Ute=[-nl,-nl,nl,nl],Gte=[-180,-85,180,85],Ud=Ju*Math.log(Math.tan(Math.PI/2));class Ba extends aT{constructor(e){super({code:e,units:"m",extent:Ute,global:!0,worldExtent:Gte,getPointResolution:function(n,i){return n/Math.cosh(i[1]/Ju)}})}}const ow=[new Ba("EPSG:3857"),new Ba("EPSG:102100"),new Ba("EPSG:102113"),new Ba("EPSG:900913"),new Ba("http://www.opengis.net/def/crs/EPSG/0/3857"),new Ba("http://www.opengis.net/gml/srs/epsg.xml#3857")];function Xte(t,e,n,i){const s=t.length;n=n>1?n:2,i=i??n,e===void 0&&(n>2?e=t.slice():e=new Array(s));for(let r=0;rUd?o=Ud:o<-Ud&&(o=-Ud),e[r+1]=o}return e}function qte(t,e,n,i){const s=t.length;n=n>1?n:2,i=i??n,e===void 0&&(n>2?e=t.slice():e=new Array(s));for(let r=0;rs&&(l=l|An.RIGHT),ar&&(l=l|An.ABOVE),l===An.UNKNOWN&&(l=An.INTERSECTING),l}function Gi(){return[1/0,1/0,-1/0,-1/0]}function uo(t,e,n,i,s){return s?(s[0]=t,s[1]=e,s[2]=n,s[3]=i,s):[t,e,n,i]}function Yf(t){return uo(1/0,1/0,-1/0,-1/0,t)}function uT(t,e){const n=t[0],i=t[1];return uo(n,i,n,i,e)}function wv(t,e,n,i,s){const r=Yf(s);return dT(r,t,e,n,i)}function bu(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function nne(t,e){return e[0]t[2]&&(t[2]=e[2]),e[1]t[3]&&(t[3]=e[3]),t}function Zc(t,e){e[0]t[2]&&(t[2]=e[0]),e[1]t[3]&&(t[3]=e[1])}function dT(t,e,n,i,s){for(;ne[0]?i[0]=t[0]:i[0]=e[0],t[1]>e[1]?i[1]=t[1]:i[1]=e[1],t[2]=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function Uf(t){return t[2]=o&&m<=l),!i&&r&An.RIGHT&&!(s&An.RIGHT)&&(v=g-(f-l)*p,i=v>=a&&v<=c),!i&&r&An.BELOW&&!(s&An.BELOW)&&(m=f-(g-a)/p,i=m>=o&&m<=l),!i&&r&An.LEFT&&!(s&An.LEFT)&&(v=g-(f-o)*p,i=v>=a&&v<=c)}return i}function fT(t,e){const n=e.getExtent(),i=pa(t);if(e.canWrapX()&&(i[0]=n[2])){const s=yt(n),o=Math.floor((i[0]-n[0])/s)*s;t[0]-=o,t[2]-=o}return t}function xv(t,e,n){if(e.canWrapX()){const i=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[i[0],t[1],i[2],t[3]]];fT(t,e);const s=yt(i);if(yt(t)>s&&!n)return[[i[0],t[1],i[2],t[3]]];if(t[0]i[2])return[[t[0],t[1],i[2],t[3]],[i[0],t[1],t[2]-s,t[3]]]}return[t]}function lne(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function zh(t,e){let n=!0;for(let i=t.length-1;i>=0;--i)if(t[i]!=e[i]){n=!1;break}return n}function Ev(t,e){const n=Math.cos(e),i=Math.sin(e),s=t[0]*n-t[1]*i,r=t[1]*n+t[0]*i;return t[0]=s,t[1]=r,t}function cne(t,e){return t[0]*=e,t[1]*=e,t}function gT(t,e){if(e.canWrapX()){const n=yt(e.getExtent()),i=une(t,e,n);i&&(t[0]-=i*n)}return t}function une(t,e,n){const i=e.getExtent();let s=0;return e.canWrapX()&&(t[0]i[2])&&(n=n||yt(i),s=Math.floor((t[0]-i[0])/n)),s}const dne=63710088e-1;function uw(t,e,n){n=n||dne;const i=fh(t[1]),s=fh(e[1]),r=(s-i)/2,o=fh(e[0]-t[0])/2,a=Math.sin(r)*Math.sin(r)+Math.sin(o)*Math.sin(o)*Math.cos(i)*Math.cos(s);return 2*n*Math.atan2(Math.sqrt(a),Math.sqrt(1-a))}function pT(...t){console.warn(...t)}let Im=!0;function mT(t){Im=!1}function Cv(t,e){if(e!==void 0){for(let n=0,i=t.length;n=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(Im=!1,pT("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t}function yT(t,e){return t}function Zr(t,e){return t}function pne(){hw(ow),hw(lw),gne(lw,ow,Xte,qte)}pne();function fw(t,e,n){return function(i,s,r,o,a){if(!i)return;if(!s&&!e)return i;const l=e?0:r[0]*s,c=e?0:r[1]*s,u=a?a[0]:0,d=a?a[1]:0;let f=t[0]+l/2+u,g=t[2]-l/2+u,p=t[1]+c/2+d,m=t[3]-c/2+d;f>g&&(f=(g+f)/2,g=f),p>m&&(p=(m+p)/2,m=p);let v=rn(i[0],f,g),y=rn(i[1],p,m);if(o&&n&&s){const x=30*s;v+=-x*Math.log(1+Math.max(0,f-i[0])/x)+x*Math.log(1+Math.max(0,i[0]-g)/x),y+=-x*Math.log(1+Math.max(0,p-i[1])/x)+x*Math.log(1+Math.max(0,i[1]-m)/x)}return[v,y]}}function mne(t){return t}function Tv(t,e,n,i){const s=yt(e)/n[0],r=Un(e)/n[1];return i?Math.min(t,Math.max(s,r)):Math.min(t,Math.min(s,r))}function Av(t,e,n){let i=Math.min(t,e);const s=50;return i*=Math.log(1+s*Math.max(0,t/e-1))/s+1,n&&(i=Math.max(i,n),i/=Math.log(1+s*Math.max(0,n/t-1))/s+1),rn(i,n/2,e*2)}function _ne(t,e,n,i){return e=e!==void 0?e:!0,function(s,r,o,a){if(s!==void 0){const l=t[0],c=t[t.length-1],u=n?Tv(l,n,o,i):l;if(a)return e?Av(s,u,c):rn(s,c,u);const d=Math.min(u,s),f=Math.floor(pv(t,d,r));return t[f]>u&&fMath.round(n*mw[i])/mw[i]).join(", ")+")"}function io(t,e,n,i,s,r,o){r=r||[],o=o||2;let a=0;for(let l=e;l{if(!i)return this.getSimplifiedGeometry(n);const s=this.clone();return s.applyTransform(i),s.getSimplifiedGeometry(n)})}simplifyTransformed(e,n){return this.simplifyTransformedInternal(this.getRevision(),e,n)}clone(){return pt()}closestPointXY(e,n,i,s){return pt()}containsXY(e,n){const i=this.getClosestPoint([e,n]);return i[0]===e&&i[1]===n}getClosestPoint(e,n){return n=n||[NaN,NaN],this.closestPointXY(e[0],e[1],n,1/0),n}intersectsCoordinate(e){return this.containsXY(e[0],e[1])}computeExtent(e){return pt()}getExtent(e){if(this.extentRevision_!=this.getRevision()){const n=this.computeExtent(this.extent_);(isNaN(n[0])||isNaN(n[1]))&&Yf(n),this.extentRevision_=this.getRevision()}return one(this.extent_,e)}rotate(e,n){pt()}scale(e,n,i){pt()}simplify(e){return this.getSimplifiedGeometry(e*e)}getSimplifiedGeometry(e){return pt()}getType(){return pt()}applyTransform(e){pt()}intersectsExtent(e){return pt()}translate(e,n){pt()}transform(e,n){const i=Xi(e),s=i.getUnits()=="tile-pixels"?function(r,o,a){const l=i.getExtent(),c=i.getWorldExtent(),u=Un(c)/Un(l);return br(_w,c[0],c[3],u,-u,0,0,0),io(r,0,r.length,a,_w,o),Wh(i,n)(r,o,a)}:Wh(i,n);return this.applyTransform(s),this}}class Gf extends Ane{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates}computeExtent(e){return wv(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)}getCoordinates(){return pt()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||this.simplifiedGeometryMaxMinSquaredTolerance!==0&&e<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const n=this.getSimplifiedGeometryInternal(e);return n.getFlatCoordinates().length1)d=n;else if(f>0){for(let g=0;gs&&(s=c),r=a,o=l}return s}function Ine(t,e,n,i,s){for(let r=0,o=n.length;r0;){const d=c.pop(),f=c.pop();let g=0;const p=t[f],m=t[f+1],v=t[d],y=t[d+1];for(let x=f+i;xg&&(u=x,g=b)}g>s&&(l[(u-e)/i]=1,f+i0&&m>g)&&(p<0&&v0&&v>p)){c=d,u=f;continue}r[o++]=c,r[o++]=u,a=c,l=u,c=d,u=f}return r[o++]=c,r[o++]=u,o}function ET(t,e,n,i,s,r,o,a){for(let l=0,c=n.length;lr&&(c-a)*(r-l)-(s-a)*(u-l)>0&&o++:u<=r&&(c-a)*(r-l)-(s-a)*(u-l)<0&&o--,a=c,l=u}return o!==0}function ST(t,e,n,i,s,r){if(n.length===0||!Zo(t,e,n[0],i,s,r))return!1;for(let o=1,a=n.length;oy&&(c=(u+d)/2,ST(t,e,n,i,c,p)&&(v=c,y=x)),u=d}return isNaN(v)&&(v=s[r]),o?(o.push(v,p,y),o):[v,p,y]}function Bne(t,e,n,i,s){let r=[];for(let o=0,a=n.length;o=s[0]&&r[2]<=s[2]||r[1]>=s[1]&&r[3]<=s[3]?!0:kT(t,e,n,i,function(o,a){return ane(s,o,a)}):!1}function TT(t,e,n,i,s){return!!($v(t,e,n,i,s)||Zo(t,e,n,i,s[0],s[1])||Zo(t,e,n,i,s[0],s[3])||Zo(t,e,n,i,s[2],s[1])||Zo(t,e,n,i,s[2],s[3]))}function Vne(t,e,n,i,s){if(!TT(t,e,n[0],i,s))return!1;if(n.length===1)return!0;for(let r=1,o=n.length;r0}function Wne(t,e,n,i,s){s=s!==void 0?s:!1;for(let r=0,o=n.length;r1&&typeof arguments[n-1]=="function"&&(i=arguments[n-1],--n);let s=0;for(;s0}getInteracting(){return this.hints_[Hn.INTERACTING]>0}cancelAnimations(){this.setHint(Hn.ANIMATING,-this.hints_[Hn.ANIMATING]);let e;for(let n=0,i=this.animations_.length;n=0;--i){const s=this.animations_[i];let r=!0;for(let o=0,a=s.length;o0?c/l.duration:1;u>=1?(l.complete=!0,u=1):r=!1;const d=l.easing(u);if(l.sourceCenter){const f=l.sourceCenter[0],g=l.sourceCenter[1],p=l.targetCenter[0],m=l.targetCenter[1];this.nextCenter_=l.targetCenter;const v=f+d*(p-f),y=g+d*(m-g);this.targetCenter_=[v,y]}if(l.sourceResolution&&l.targetResolution){const f=d===1?l.targetResolution:l.sourceResolution+d*(l.targetResolution-l.sourceResolution);if(l.anchor){const g=this.getViewportSize_(this.getRotation()),p=this.constraints_.resolution(f,0,g,!0);this.targetCenter_=this.calculateCenterZoom(p,l.anchor)}this.nextResolution_=l.targetResolution,this.targetResolution_=f,this.applyTargetState_(!0)}if(l.sourceRotation!==void 0&&l.targetRotation!==void 0){const f=d===1?hl(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+d*(l.targetRotation-l.sourceRotation);if(l.anchor){const g=this.constraints_.rotation(f,!0);this.targetCenter_=this.calculateCenterRotate(g,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=f}if(this.applyTargetState_(!0),n=!0,!l.complete)break}if(r){this.animations_[i]=null,this.setHint(Hn.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const o=s[0].callback;o&&Gd(o,!0)}}this.animations_=this.animations_.filter(Boolean),n&&this.updateAnimationKey_===void 0&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(e,n){let i;const s=this.getCenterInternal();return s!==void 0&&(i=[s[0]-n[0],s[1]-n[1]],Ev(i,e-this.getRotation()),lne(i,n)),i}calculateCenterZoom(e,n){let i;const s=this.getCenterInternal(),r=this.getResolution();if(s!==void 0&&r!==void 0){const o=n[0]-e*(n[0]-s[0])/r,a=n[1]-e*(n[1]-s[1])/r;i=[o,a]}return i}getViewportSize_(e){const n=this.viewportSize_;if(e){const i=n[0],s=n[1];return[Math.abs(i*Math.cos(e))+Math.abs(s*Math.sin(e)),Math.abs(i*Math.sin(e))+Math.abs(s*Math.cos(e))]}return n}setViewportSize(e){this.viewportSize_=Array.isArray(e)?e.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const e=this.getCenterInternal();return e&&Dm(e,this.getProjection())}getCenterInternal(){return this.get(es.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(e){return e!==void 0?(e[0]=this.hints_[0],e[1]=this.hints_[1],e):this.hints_.slice()}calculateExtent(e){const n=this.calculateExtentInternal(e);return yT(n,this.getProjection())}calculateExtentInternal(e){e=e||this.getViewportSizeMinusPadding_();const n=this.getCenterInternal();mt(n,"The view center is not defined");const i=this.getResolution();mt(i!==void 0,"The view resolution is not defined");const s=this.getRotation();return mt(s!==void 0,"The view rotation is not defined"),Mm(n,i,s,e)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(e){this.applyOptions_(this.getUpdatedOptions_({maxZoom:e}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(e){this.applyOptions_(this.getUpdatedOptions_({minZoom:e}))}setConstrainResolution(e){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:e}))}getProjection(){return this.projection_}getResolution(){return this.get(es.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(e,n){return this.getResolutionForExtentInternal(Zr(e,this.getProjection()),n)}getResolutionForExtentInternal(e,n){n=n||this.getViewportSizeMinusPadding_();const i=yt(e)/n[0],s=Un(e)/n[1];return Math.max(i,s)}getResolutionForValueFunction(e){e=e||2;const n=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,s=Math.log(n/i)/Math.log(e);return function(r){return n/Math.pow(e,r*s)}}getRotation(){return this.get(es.ROTATION)}getValueForResolutionFunction(e){const n=Math.log(e||2),i=this.getConstrainedResolution(this.maxResolution_),s=this.minResolution_,r=Math.log(i/s)/n;return function(o){return Math.log(i/o)/n/r}}getViewportSizeMinusPadding_(e){let n=this.getViewportSize_(e);const i=this.padding_;return i&&(n=[n[0]-i[1]-i[3],n[1]-i[0]-i[2]]),n}getState(){const e=this.getProjection(),n=this.getResolution(),i=this.getRotation();let s=this.getCenterInternal();const r=this.padding_;if(r){const o=this.getViewportSizeMinusPadding_();s=pp(s,this.getViewportSize_(),[o[0]/2+r[3],o[1]/2+r[0]],n,i)}return{center:s.slice(0),projection:e!==void 0?e:null,resolution:n,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:i,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let e;const n=this.getResolution();return n!==void 0&&(e=this.getZoomForResolution(n)),e}getZoomForResolution(e){let n=this.minZoom_||0,i,s;if(this.resolutions_){const r=pv(this.resolutions_,e,1);n=r,i=this.resolutions_[r],r==this.resolutions_.length-1?s=2:s=i/this.resolutions_[r+1]}else i=this.maxResolution_,s=this.zoomFactor_;return n+Math.log(i/e)/Math.log(s)}getResolutionForZoom(e){if(this.resolutions_?.length){if(this.resolutions_.length===1)return this.resolutions_[0];const n=rn(Math.floor(e),0,this.resolutions_.length-2),i=this.resolutions_[n]/this.resolutions_[n+1];return this.resolutions_[n]/Math.pow(i,rn(e-n,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,e-this.minZoom_)}fit(e,n){let i;if(mt(Array.isArray(e)||typeof e.getSimplifiedGeometry=="function","Invalid extent or geometry provided as `geometry`"),Array.isArray(e)){mt(!Uf(e),"Cannot fit empty extent provided as `geometry`");const s=Zr(e,this.getProjection());i=xw(s)}else if(e.getType()==="Circle"){const s=Zr(e.getExtent(),this.getProjection());i=xw(s),i.rotate(this.getRotation(),pa(s))}else i=e;this.fitInternal(i,n)}rotatedExtentForGeometry(e){const n=this.getRotation(),i=Math.cos(n),s=Math.sin(-n),r=e.getFlatCoordinates(),o=e.getStride();let a=1/0,l=1/0,c=-1/0,u=-1/0;for(let d=0,f=r.length;d{this.dispatchEvent("sourceready")},0))),this.changed()}getFeatures(e){return this.renderer_?this.renderer_.getFeatures(e):Promise.resolve([])}getData(e){return!this.renderer_||!this.rendered?null:this.renderer_.getData(e)}isVisible(e){let n;const i=this.getMapInternal();!e&&i&&(e=i.getView()),e instanceof ks?n={viewState:e.getState(),extent:e.calculateExtent()}:n=e,!n.layerStatesArray&&i&&(n.layerStatesArray=i.getLayerGroup().getLayerStatesArray());let s;n.layerStatesArray?s=n.layerStatesArray.find(o=>o.layer===this):s=this.getLayerState();const r=this.getExtent();return Ov(s,n.viewState)&&(!r||vi(r,n.extent))}getAttributions(e){if(!this.isVisible(e))return[];const n=this.getSource()?.getAttributions();if(!n)return[];const i=e instanceof ks?e.getViewStateAndExtent():e;let s=n(i);return Array.isArray(s)||(s=[s]),s}render(e,n){const i=this.getRenderer();return i.prepareFrame(e)?(this.rendered=!0,i.renderFrame(e,n)):null}unrender(){this.rendered=!1}getDeclutter(){}renderDeclutter(e,n){}renderDeferred(e){const n=this.getRenderer();n&&n.renderDeferred(e)}setMapInternal(e){e||this.unrender(),this.set(Ct.MAP,e)}getMapInternal(){return this.get(Ct.MAP)}setMap(e){this.mapPrecomposeKey_&&(Lt(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),e||this.changed(),this.mapRenderKey_&&(Lt(this.mapRenderKey_),this.mapRenderKey_=null),e&&(this.mapPrecomposeKey_=ft(e,Wi.PRECOMPOSE,this.handlePrecompose_,this),this.mapRenderKey_=ft(this,tt.CHANGE,e.render,e),this.changed())}handlePrecompose_(e){const n=e.frameState.layerStatesArray,i=this.getLayerState(!1);mt(!n.some(s=>s.layer===i.layer),"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both."),n.push(i)}setSource(e){this.set(Ct.SOURCE,e)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}}function Ov(t,e){if(!t.visible)return!1;const n=e.resolution;if(n=t.maxResolution)return!1;const i=e.zoom;return i>t.minZoom&&i<=t.maxZoom}function AT(t,e,n=0,i=t.length-1,s=Gne){for(;i>n;){if(i-n>600){const l=i-n+1,c=e-n+1,u=Math.log(l),d=.5*Math.exp(2*u/3),f=.5*Math.sqrt(u*d*(l-d)/l)*(c-l/2<0?-1:1),g=Math.max(n,Math.floor(e-c*d/l+f)),p=Math.min(i,Math.floor(e+(l-c)*d/l+f));AT(t,e,g,p,s)}const r=t[e];let o=n,a=i;for(_c(t,n,e),s(t[i],r)>0&&_c(t,n,i);o0;)a--}s(t[n],r)===0?_c(t,n,a):(a++,_c(t,a,i)),a<=e&&(n=a+1),e<=a&&(i=a-1)}}function _c(t,e,n){const i=t[e];t[e]=t[n],t[n]=i}function Gne(t,e){return te?1:0}let PT=class{constructor(e=9){this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}all(){return this._all(this.data,[])}search(e){let n=this.data;const i=[];if(!qd(e,n))return i;const s=this.toBBox,r=[];for(;n;){for(let o=0;o=0&&r[n].children.length>this._maxEntries;)this._split(r,n),n--;this._adjustParentBBoxes(s,r,n)}_split(e,n){const i=e[n],s=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,s);const o=this._chooseSplitIndex(i,r,s),a=Za(i.children.splice(o,i.children.length-o));a.height=i.height,a.leaf=i.leaf,Va(i,this.toBBox),Va(a,this.toBBox),n?e[n-1].children.push(a):this._splitRoot(i,a)}_splitRoot(e,n){this.data=Za([e,n]),this.data.height=e.height+1,this.data.leaf=!1,Va(this.data,this.toBBox)}_chooseSplitIndex(e,n,i){let s,r=1/0,o=1/0;for(let a=n;a<=i-n;a++){const l=Tc(e,0,a,this.toBBox),c=Tc(e,a,i,this.toBBox),u=Qne(l,c),d=mp(l)+mp(c);u=n;c--){const u=e.children[c];Ac(a,e.leaf?r(u):u),l+=Xd(a)}return l}_adjustParentBBoxes(e,n,i){for(let s=i;s>=0;s--)Ac(n[s],e)}_condense(e){for(let n=e.length-1,i;n>=0;n--)e[n].children.length===0?n>0?(i=e[n-1].children,i.splice(i.indexOf(e[n]),1)):this.clear():Va(e[n],this.toBBox)}};function Xne(t,e,n){if(!n)return e.indexOf(t);for(let i=0;i=t.minX&&e.maxY>=t.minY}function Za(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Ew(t,e,n,i,s){const r=[e,n];for(;r.length;){if(n=r.pop(),e=r.pop(),n-e<=i)continue;const o=e+Math.ceil((n-e)/i/2)*i;AT(t,o,e,n,s),r.push(e,o,o,n)}}const ot={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4};function Cw(t){return t[0]>0&&t[1]>0}function eie(t,e,n){return n===void 0&&(n=[0,0]),n[0]=t[0]*e+.5|0,n[1]=t[1]*e+.5|0,n}function wi(t,e){return Array.isArray(t)?t:(e===void 0?e=[t,t]:(e[0]=t,e[1]=t),e)}class Zf{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=wi(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new Zf({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return pt()}getImage(e){return pt()}getHitDetectionImage(){return pt()}getPixelRatio(e){return 1}getImageState(){return pt()}getImageSize(){return pt()}getOrigin(){return pt()}getSize(){return pt()}setDisplacement(e){this.displacement_=e}setOpacity(e){this.opacity_=e}setRotateWithView(e){this.rotateWithView_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=wi(e)}listenImageChange(e){pt()}load(){pt()}unlistenImageChange(e){pt()}ready(){return Promise.resolve()}}const Su={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]};var Bn={name:"xyz",min:[0,0,0],channel:["X","Y","Z"],alias:["XYZ","ciexyz","cie1931"]};Bn.whitepoint={2:{A:[109.85,100,35.585],C:[98.074,100,118.232],D50:[96.422,100,82.521],D55:[95.682,100,92.149],D65:[95.045592705167,100,108.9057750759878],D75:[94.972,100,122.638],F2:[99.187,100,67.395],F7:[95.044,100,108.755],F11:[100.966,100,64.37],E:[100,100,100]},10:{A:[111.144,100,35.2],C:[97.285,100,116.145],D50:[96.72,100,81.427],D55:[95.799,100,90.926],D65:[94.811,100,107.304],D75:[94.416,100,120.641],F2:[103.28,100,69.026],F7:[95.792,100,107.687],F11:[103.866,100,65.627],E:[100,100,100]}};Bn.max=Bn.whitepoint[2].D65;Bn.rgb=function(t,e){e=e||Bn.whitepoint[2].E;var n=t[0]/e[0],i=t[1]/e[1],s=t[2]/e[2],r,o,a;return r=n*3.240969941904521+i*-1.537383177570093+s*-.498610760293,o=n*-.96924363628087+i*1.87596750150772+s*.041555057407175,a=n*.055630079696993+i*-.20397695888897+s*1.056971514242878,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r=r*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o=o*12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a=a*12.92,r=Math.min(Math.max(0,r),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[r*255,o*255,a*255]};Su.xyz=function(t,e){var n=t[0]/255,i=t[1]/255,s=t[2]/255;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,s=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92;var r=n*.41239079926595+i*.35758433938387+s*.18048078840183,o=n*.21263900587151+i*.71516867876775+s*.072192315360733,a=n*.019330818715591+i*.11919477979462+s*.95053215224966;return e=e||Bn.whitepoint[2].E,[r*e[0],o*e[1],a*e[2]]};const Nv={name:"luv",min:[0,-134,-140],max:[100,224,122],channel:["lightness","u","v"],alias:["LUV","cieluv","cie1976"],xyz:function(t,e,n){var i,s,r,o,a,l,c,u,d,f,g,p,m;if(r=t[0],o=t[1],a=t[2],r===0)return[0,0,0];var v=.0011070564598794539;return e=e||"D65",n=n||2,d=Bn.whitepoint[n][e][0],f=Bn.whitepoint[n][e][1],g=Bn.whitepoint[n][e][2],p=4*d/(d+15*f+3*g),m=9*f/(d+15*f+3*g),i=o/(13*r)+p||0,s=a/(13*r)+m||0,c=r>8?f*Math.pow((r+16)/116,3):f*r*v,l=c*9*i/(4*s)||0,u=c*(12-3*i-20*s)/(4*s)||0,[l,c,u]}};Bn.luv=function(t,e,n){var i,s,r,o,a,l,c,u,d,f,g,p,m,v=.008856451679035631,y=903.2962962962961;e=e||"D65",n=n||2,d=Bn.whitepoint[n][e][0],f=Bn.whitepoint[n][e][1],g=Bn.whitepoint[n][e][2],p=4*d/(d+15*f+3*g),m=9*f/(d+15*f+3*g),l=t[0],c=t[1],u=t[2],i=4*l/(l+15*c+3*u)||0,s=9*c/(l+15*c+3*u)||0;var x=c/f;return r=x<=v?y*x:116*Math.pow(x,1/3)-16,o=13*r*(i-p),a=13*r*(s-m),[r,o,a]};var MT={name:"lchuv",channel:["lightness","chroma","hue"],alias:["LCHuv","cielchuv"],min:[0,0,0],max:[100,100,360],luv:function(t){var e=t[0],n=t[1],i=t[2],s,r,o;return o=i/360*2*Math.PI,s=n*Math.cos(o),r=n*Math.sin(o),[e,s,r]},xyz:function(t){return Nv.xyz(MT.luv(t))}};Nv.lchuv=function(t){var e=t[0],n=t[1],i=t[2],s=Math.sqrt(n*n+i*i),r=Math.atan2(i,n),o=r*360/2/Math.PI;return o<0&&(o+=360),[e,s,o]};Bn.lchuv=function(t){return Nv.lchuv(Bn.luv(t))};const Sw={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};var kw={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function tie(t){var e,n=[],i=1,s;if(typeof t=="number")return{space:"rgb",values:[t>>>16,(t&65280)>>>8,t&255],alpha:1};if(typeof t=="number")return{space:"rgb",values:[t>>>16,(t&65280)>>>8,t&255],alpha:1};if(t=String(t).toLowerCase(),Sw[t])n=Sw[t].slice(),s="rgb";else if(t==="transparent")i=0,s="rgb",n=[0,0,0];else if(t[0]==="#"){var r=t.slice(1),o=r.length,a=o<=4;i=1,a?(n=[parseInt(r[0]+r[0],16),parseInt(r[1]+r[1],16),parseInt(r[2]+r[2],16)],o===4&&(i=parseInt(r[3]+r[3],16)/255)):(n=[parseInt(r[0]+r[1],16),parseInt(r[2]+r[3],16),parseInt(r[4]+r[5],16)],o===8&&(i=parseInt(r[6]+r[7],16)/255)),n[0]||(n[0]=0),n[1]||(n[1]=0),n[2]||(n[2]=0),s="rgb"}else if(e=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(t)){var l=e[1];s=l.replace(/a$/,"");var c=s==="cmyk"?4:s==="gray"?1:3;n=e[2].trim().split(/\s*[,\/]\s*|\s+/),s==="color"&&(s=n.shift()),n=n.map(function(u,d){if(u[u.length-1]==="%")return u=parseFloat(u)/100,d===3?u:s==="rgb"?u*255:s[0]==="h"||s[0]==="l"&&!d?u*100:s==="lab"?u*125:s==="lch"?d<2?u*150:u*360:s[0]==="o"&&!d?u:s==="oklab"?u*.4:s==="oklch"?d<2?u*.4:u*360:u;if(s[d]==="h"||d===2&&s[s.length-1]==="h"){if(kw[u]!==void 0)return kw[u];if(u.endsWith("deg"))return parseFloat(u);if(u.endsWith("turn"))return parseFloat(u)*360;if(u.endsWith("grad"))return parseFloat(u)*360/400;if(u.endsWith("rad"))return parseFloat(u)*180/Math.PI}return u==="none"?0:parseFloat(u)}),i=n.length>c?n.pop():1}else/[0-9](?:\s|\/|,)/.test(t)&&(n=t.match(/([0-9]+)/g).map(function(u){return parseFloat(u)}),s=t.match(/([a-z])/ig)?.join("")?.toLowerCase()||"rgb");return{space:s,values:n,alpha:i}}const vp={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(t){var e=t[0]/360,n=t[1]/100,i=t[2]/100,s,r,o,a,l,c=0;if(n===0)return l=i*255,[l,l,l];for(r=i<.5?i*(1+n):i+n-i*n,s=2*i-r,a=[0,0,0];c<3;)o=e+1/3*-(c-1),o<0?o++:o>1&&o--,l=6*o<1?s+(r-s)*6*o:2*o<1?r:3*o<2?s+(r-s)*(2/3-o)*6:s,a[c++]=l*255;return a}};Su.hsl=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255,s=Math.min(e,n,i),r=Math.max(e,n,i),o=r-s,a,l,c;return r===s?a=0:e===r?a=(n-i)/o:n===r?a=2+(i-e)/o:i===r&&(a=4+(e-n)/o),a=Math.min(a*60,360),a<0&&(a+=360),c=(s+r)/2,r===s?l=0:c<=.5?l=o/(r+s):l=o/(2-r-s),[a,l*100,c*100]};function nie(t){Array.isArray(t)&&t.raw&&(t=String.raw(...arguments)),t instanceof Number&&(t=+t);var e,n=tie(t);if(!n.space)return[];const i=n.space[0]==="h"?vp.min:Su.min,s=n.space[0]==="h"?vp.max:Su.max;return e=Array(3),e[0]=Math.min(Math.max(n.values[0],i[0]),s[0]),e[1]=Math.min(Math.max(n.values[1],i[1]),s[1]),e[2]=Math.min(Math.max(n.values[2],i[2]),s[2]),n.space[0]==="h"&&(e=vp.rgb(e)),e.push(Math.min(Math.max(n.alpha,0),1)),e}const Fv=[NaN,NaN,NaN,0];function iie(t){return typeof t=="string"?t:Vv(t)}const sie=1024,vc={};let yp=0;function rie(t){if(t.length===4)return t;const e=t.slice();return e[3]=1,e}function Tw(t){const e=Bn.lchuv(Su.xyz(t));return e[3]=t[3],e}function oie(t){const e=Bn.rgb(MT.xyz(t));return e[3]=t[3],e}function Bv(t){if(t==="none")return Fv;if(vc.hasOwnProperty(t))return vc[t];if(yp>=sie){let n=0;for(const i in vc)n++&3||(delete vc[i],--yp)}const e=nie(t);if(e.length!==4)throw new Error('failed to parse "'+t+'" as color');for(const n of e)if(isNaN(n))throw new Error('failed to parse "'+t+'" as color');return IT(e),vc[t]=e,++yp,e}function ku(t){return Array.isArray(t)?t:Bv(t)}function IT(t){return t[0]=rn(t[0]+.5|0,0,255),t[1]=rn(t[1]+.5|0,0,255),t[2]=rn(t[2]+.5|0,0,255),t[3]=rn(t[3],0,1),t}function Vv(t){let e=t[0];e!=(e|0)&&(e=e+.5|0);let n=t[1];n!=(n|0)&&(n=n+.5|0);let i=t[2];i!=(i|0)&&(i=i+.5|0);const s=t[3]===void 0?1:Math.round(t[3]*1e3)/1e3;return"rgba("+e+","+n+","+i+","+s+")"}const ho=typeof navigator<"u"&&typeof navigator.userAgent<"u"?navigator.userAgent.toLowerCase():"",aie=ho.includes("firefox"),lie=ho.includes("safari")&&!ho.includes("chrom");lie&&(ho.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(ho));const cie=ho.includes("webkit")&&!ho.includes("edge"),DT=ho.includes("macintosh"),RT=typeof devicePixelRatio<"u"?devicePixelRatio:1,$T=typeof WorkerGlobalScope<"u"&&typeof OffscreenCanvas<"u"&&self instanceof WorkerGlobalScope,LT=typeof Image<"u"&&Image.prototype.decode,OT=function(){let t=!1;try{const e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch{}return t}();function hn(t,e,n,i){let s;return n&&n.length?s=n.shift():$T?s=new OffscreenCanvas(t||300,e||300):s=document.createElement("canvas"),t&&(s.width=t),e&&(s.height=e),s.getContext("2d",i)}let bp;function Hh(){return bp||(bp=hn(1,1)),bp}function Wl(t){const e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function Aw(t,e){const n=e.parentNode;n&&n.replaceChild(t,e)}function uie(t){for(;t.lastChild;)t.lastChild.remove()}function die(t,e){const n=t.childNodes;for(let i=0;;++i){const s=n[i],r=e[i];if(!s&&!r)break;if(s!==r){if(!s){t.appendChild(r);continue}if(!r){t.removeChild(s),--i;continue}t.insertBefore(r,s)}}}function hie(t,e,n){const i=t;let s=!0,r=!1,o=!1;const a=[Bh(i,tt.LOAD,function(){o=!0,r||e()})];return i.src&<?(r=!0,i.decode().then(function(){s&&e()}).catch(function(l){s&&(o?e():n())})):a.push(Bh(i,tt.ERROR,n)),function(){s=!1,a.forEach(Lt)}}function fie(t,e){return new Promise((n,i)=>{function s(){o(),n(t)}function r(){o(),i(new Error("Image load error"))}function o(){t.removeEventListener("load",s),t.removeEventListener("error",r)}t.addEventListener("load",s),t.addEventListener("error",r)})}function gie(t,e){return e&&(t.src=e),t.src&<?new Promise((n,i)=>t.decode().then(()=>n(t)).catch(s=>t.complete&&t.width?n(t):i(s))):fie(t)}class pie{constructor(){this.cache_={},this.patternCache_={},this.cacheSize_=0,this.maxCacheSize_=32}clear(){this.cache_={},this.patternCache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let e=0;for(const n in this.cache_){const i=this.cache_[n];!(e++&3)&&!i.hasListener()&&(delete this.cache_[n],delete this.patternCache_[n],--this.cacheSize_)}}}get(e,n,i){const s=wp(e,n,i);return s in this.cache_?this.cache_[s]:null}getPattern(e,n,i){const s=wp(e,n,i);return s in this.patternCache_?this.patternCache_[s]:null}set(e,n,i,s,r){const o=wp(e,n,i),a=o in this.cache_;this.cache_[o]=s,r&&(s.getImageState()===ot.IDLE&&s.load(),s.getImageState()===ot.LOADING?s.ready().then(()=>{this.patternCache_[o]=Hh().createPattern(s.getImage(1),"repeat")}):this.patternCache_[o]=Hh().createPattern(s.getImage(1),"repeat")),a||++this.cacheSize_}setSize(e){this.maxCacheSize_=e,this.expire()}}function wp(t,e,n){const i=n?ku(n):"null";return e+":"+t+":"+i}const Is=new pie;let yc=null;class mie extends Wf{constructor(e,n,i,s,r){super(),this.hitDetectionImage_=null,this.image_=e,this.crossOrigin_=i,this.canvas_={},this.color_=r,this.imageState_=s===void 0?ot.IDLE:s,this.size_=e&&e.width&&e.height?[e.width,e.height]:null,this.src_=n,this.tainted_,this.ready_=null}initializeImage_(){this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)}isTainted_(){if(this.tainted_===void 0&&this.imageState_===ot.LOADED){yc||(yc=hn(1,1,void 0,{willReadFrequently:!0})),yc.drawImage(this.image_,0,0);try{yc.getImageData(0,0,1,1),this.tainted_=!1}catch{yc=null,this.tainted_=!0}}return this.tainted_===!0}dispatchChangeEvent_(){this.dispatchEvent(tt.CHANGE)}handleImageError_(){this.imageState_=ot.ERROR,this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=ot.LOADED,this.size_=[this.image_.width,this.image_.height],this.dispatchChangeEvent_()}getImage(e){return this.image_||this.initializeImage_(),this.replaceColor_(e),this.canvas_[e]?this.canvas_[e]:this.image_}getPixelRatio(e){return this.replaceColor_(e),this.canvas_[e]?e:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){const e=this.size_[0],n=this.size_[1],i=hn(e,n);i.fillRect(0,0,e,n),this.hitDetectionImage_=i.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===ot.IDLE){this.image_||this.initializeImage_(),this.imageState_=ot.LOADING;try{this.src_!==void 0&&(this.image_.src=this.src_)}catch{this.handleImageError_()}this.image_ instanceof HTMLImageElement&&gie(this.image_,this.src_).then(e=>{this.image_=e,this.handleImageLoad_()}).catch(this.handleImageError_.bind(this))}}replaceColor_(e){if(!this.color_||this.canvas_[e]||this.imageState_!==ot.LOADED)return;const n=this.image_,i=hn(Math.ceil(n.width*e),Math.ceil(n.height*e)),s=i.canvas;i.scale(e,e),i.drawImage(n,0,0),i.globalCompositeOperation="multiply",i.fillStyle=iie(this.color_),i.fillRect(0,0,s.width/e,s.height/e),i.globalCompositeOperation="destination-in",i.drawImage(n,0,0),this.canvas_[e]=s}ready(){return this.ready_||(this.ready_=new Promise(e=>{if(this.imageState_===ot.LOADED||this.imageState_===ot.ERROR)e();else{const n=()=>{(this.imageState_===ot.LOADED||this.imageState_===ot.ERROR)&&(this.removeEventListener(tt.CHANGE,n),e())};this.addEventListener(tt.CHANGE,n)}})),this.ready_}}function zv(t,e,n,i,s,r){let o=e===void 0?void 0:Is.get(e,n,s);return o||(o=new mie(t,t&&"src"in t?t.src||void 0:e,n,i,s),Is.set(e,n,s,o,r)),r&&o&&!Is.getPattern(e,n,s)&&Is.set(e,n,s,o,r),o}function Ds(t){return t?Array.isArray(t)?Vv(t):typeof t=="object"&&"src"in t?_ie(t):t:null}function _ie(t){if(!t.offset||!t.size)return Is.getPattern(t.src,"anonymous",t.color);const e=t.src+":"+t.offset,n=Is.getPattern(e,void 0,t.color);if(n)return n;const i=Is.get(t.src,"anonymous",null);if(i.getImageState()!==ot.LOADED)return null;const s=hn(t.size[0],t.size[1]);return s.drawImage(i.getImage(1),t.offset[0],t.offset[1],t.size[0],t.size[1],0,0,t.size[0],t.size[1]),zv(s.canvas,e,void 0,ot.LOADED,t.color,!0),Is.getPattern(e,void 0,t.color)}const Zd="ol-hidden",Jf="ol-unselectable",Wv="ol-control",Pw="ol-collapsed",vie=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))",`?\\s*([-,\\"\\'\\sa-z]+?)\\s*$`].join(""),"i"),Mw=["style","variant","weight","size","lineHeight","family"],NT=function(t){const e=t.match(vie);if(!e)return null;const n={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let i=0,s=Mw.length;iMath.max(s,Kh(t,r)),0);return n[e]=i,i}function pie(t,e){const n=[],i=[],s=[];let r=0,o=0,a=0,l=0;for(let c=0,u=e.length;c<=u;c+=2){const d=e[c];if(d===` -`||c===u){r=Math.max(r,o),s.push(o),o=0,a+=l,l=0;continue}const h=e[c+1]||t.font,g=Kh(h,d);n.push(g),o+=g;const p=gie(h);i.push(p),l=Math.max(l,p)}return{width:r,height:a,widths:n,heights:i,lineWidths:s}}function mie(t,e,n,i,s,r,o,a,l,c,u){t.save(),n!==1&&(t.globalAlpha===void 0?t.globalAlpha=d=>d.globalAlpha*=n:t.globalAlpha*=n),e&&t.transform.apply(t,e),i.contextInstructions?(t.translate(l,c),t.scale(u[0],u[1]),_ie(i,t)):u[0]<0||u[1]<0?(t.translate(l,c),t.scale(u[0],u[1]),t.drawImage(i,s,r,o,a,0,0,o,a)):t.drawImage(i,s,r,o,a,l,c,o*u[0],a*u[1]),t.restore()}function _ie(t,e){const n=t.contextInstructions;for(let i=0,s=n.length;ithis.imageState_=ot.LOADED),this.render()}clone(){const e=this.getScale(),n=new Qf({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return n.setOpacity(this.getOpacity()),n}getAnchor(){const e=this.size_,n=this.getDisplacement(),i=this.getScaleArray();return[e[0]/2-n[0]/i[0],e[1]/2+n[1]/i[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(e){let n=this.canvases_[e];if(!n){const i=this.renderOptions_,s=hn(i.size*e,i.size*e);this.draw_(i,s,e),n=s.canvas,this.canvases_[e]=n}return n}getPixelRatio(e){return e}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,n,i){if(n===0||this.points_===1/0||e!=="bevel"&&e!=="miter")return n;let s=this.radius,r=this.radius2_===void 0?s:this.radius2_;if(s{this.patternImage_=null}),n.getImageState()===ot.IDLE&&n.load(),n.getImageState()===ot.LOADING&&(this.patternImage_=n)}this.color_=e}loading(){return!!this.patternImage_}ready(){return this.patternImage_?this.patternImage_.ready():Promise.resolve()}}class jl{constructor(e){e=e||{},this.color_=e.color!==void 0?e.color:null,this.lineCap_=e.lineCap,this.lineDash_=e.lineDash!==void 0?e.lineDash:null,this.lineDashOffset_=e.lineDashOffset,this.lineJoin_=e.lineJoin,this.miterLimit_=e.miterLimit,this.width_=e.width}clone(){const e=this.getColor();return new jl({color:Array.isArray(e)?e.slice():e||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})}getColor(){return this.color_}getLineCap(){return this.lineCap_}getLineDash(){return this.lineDash_}getLineDashOffset(){return this.lineDashOffset_}getLineJoin(){return this.lineJoin_}getMiterLimit(){return this.miterLimit_}getWidth(){return this.width_}setColor(e){this.color_=e}setLineCap(e){this.lineCap_=e}setLineDash(e){this.lineDash_=e}setLineDashOffset(e){this.lineDashOffset_=e}setLineJoin(e){this.lineJoin_=e}setMiterLimit(e){this.miterLimit_=e}setWidth(e){this.width_=e}}class pr{constructor(e){e=e||{},this.geometry_=null,this.geometryFunction_=Dw,e.geometry!==void 0&&this.setGeometry(e.geometry),this.fill_=e.fill!==void 0?e.fill:null,this.image_=e.image!==void 0?e.image:null,this.renderer_=e.renderer!==void 0?e.renderer:null,this.hitDetectionRenderer_=e.hitDetectionRenderer!==void 0?e.hitDetectionRenderer:null,this.stroke_=e.stroke!==void 0?e.stroke:null,this.text_=e.text!==void 0?e.text:null,this.zIndex_=e.zIndex}clone(){let e=this.getGeometry();return e&&typeof e=="object"&&(e=e.clone()),new pr({geometry:e??void 0,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer()??void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})}getRenderer(){return this.renderer_}setRenderer(e){this.renderer_=e}setHitDetectionRenderer(e){this.hitDetectionRenderer_=e}getHitDetectionRenderer(){return this.hitDetectionRenderer_}getGeometry(){return this.geometry_}getGeometryFunction(){return this.geometryFunction_}getFill(){return this.fill_}setFill(e){this.fill_=e}getImage(){return this.image_}setImage(e){this.image_=e}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e}getText(){return this.text_}setText(e){this.text_=e}getZIndex(){return this.zIndex_}setGeometry(e){typeof e=="function"?this.geometryFunction_=e:typeof e=="string"?this.geometryFunction_=function(n){return n.get(e)}:e?e!==void 0&&(this.geometryFunction_=function(){return e}):this.geometryFunction_=Dw,this.geometry_=e}setZIndex(e){this.zIndex_=e}}function vie(t){let e;if(typeof t=="function")e=t;else{let n;Array.isArray(t)?n=t:(mt(typeof t.getZIndex=="function","Expected an `Style` or an array of `Style`"),n=[t]),e=function(){return n}}return e}let xp=null;function VT(t,e){if(!xp){const n=new Zl({color:"rgba(255,255,255,0.4)"}),i=new jl({color:"#3399CC",width:1.25});xp=[new pr({image:new Qu({fill:n,stroke:i,radius:5}),fill:n,stroke:i})]}return xp}function Dw(t){return t.getGeometry()}function Rw(t,e,n,i){return n!==void 0&&i!==void 0?[n/t,i/e]:n!==void 0?n/t:i!==void 0?i/e:1}class eg extends Zf{constructor(e){e=e||{};const n=e.opacity!==void 0?e.opacity:1,i=e.rotation!==void 0?e.rotation:0,s=e.scale!==void 0?e.scale:1,r=e.rotateWithView!==void 0?e.rotateWithView:!1;super({opacity:n,rotation:i,scale:s,displacement:e.displacement!==void 0?e.displacement:[0,0],rotateWithView:r,declutterMode:e.declutterMode}),this.anchor_=e.anchor!==void 0?e.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=e.anchorOrigin!==void 0?e.anchorOrigin:"top-left",this.anchorXUnits_=e.anchorXUnits!==void 0?e.anchorXUnits:"fraction",this.anchorYUnits_=e.anchorYUnits!==void 0?e.anchorYUnits:"fraction",this.crossOrigin_=e.crossOrigin!==void 0?e.crossOrigin:null;const o=e.img!==void 0?e.img:null;let a=e.src;mt(!(a!==void 0&&o),"`image` and `src` cannot be provided at the same time"),(a===void 0||a.length===0)&&o&&(a=o.src||Et(o)),mt(a!==void 0&&a.length>0,"A defined and non-empty `src` or `image` must be provided"),mt(!((e.width!==void 0||e.height!==void 0)&&e.scale!==void 0),"`width` or `height` cannot be provided together with `scale`");let l;if(e.src!==void 0?l=ot.IDLE:o!==void 0&&("complete"in o?o.complete?l=o.src?ot.LOADED:ot.IDLE:l=ot.LOADING:l=ot.LOADED),this.color_=e.color!==void 0?ku(e.color):null,this.iconImage_=zv(o,a,this.crossOrigin_,l,this.color_),this.offset_=e.offset!==void 0?e.offset:[0,0],this.offsetOrigin_=e.offsetOrigin!==void 0?e.offsetOrigin:"top-left",this.origin_=null,this.size_=e.size!==void 0?e.size:null,this.initialOptions_,e.width!==void 0||e.height!==void 0){let c,u;if(e.size)[c,u]=e.size;else{const d=this.getImage(1);if(d.width&&d.height)c=d.width,u=d.height;else if(d instanceof HTMLImageElement){this.initialOptions_=e;const h=()=>{if(this.unlistenImageChange(h),!this.initialOptions_)return;const g=this.iconImage_.getSize();this.setScale(Rw(g[0],g[1],e.width,e.height))};this.listenImageChange(h);return}}c!==void 0&&this.setScale(Rw(c,u,e.width,e.height))}}clone(){let e,n,i;return this.initialOptions_?(n=this.initialOptions_.width,i=this.initialOptions_.height):(e=this.getScale(),e=Array.isArray(e)?e.slice():e),new eg({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:e,width:n,height:i,size:this.size_!==null?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getAnchor(){let e=this.normalizedAnchor_;if(!e){e=this.anchor_;const s=this.getSize();if(this.anchorXUnits_=="fraction"||this.anchorYUnits_=="fraction"){if(!s)return null;e=this.anchor_.slice(),this.anchorXUnits_=="fraction"&&(e[0]*=s[0]),this.anchorYUnits_=="fraction"&&(e[1]*=s[1])}if(this.anchorOrigin_!="top-left"){if(!s)return null;e===this.anchor_&&(e=this.anchor_.slice()),(this.anchorOrigin_=="top-right"||this.anchorOrigin_=="bottom-right")&&(e[0]=-e[0]+s[0]),(this.anchorOrigin_=="bottom-left"||this.anchorOrigin_=="bottom-right")&&(e[1]=-e[1]+s[1])}this.normalizedAnchor_=e}const n=this.getDisplacement(),i=this.getScaleArray();return[e[0]-n[0]/i[0],e[1]+n[1]/i[1]]}setAnchor(e){this.anchor_=e,this.normalizedAnchor_=null}getColor(){return this.color_}getImage(e){return this.iconImage_.getImage(e)}getPixelRatio(e){return this.iconImage_.getPixelRatio(e)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let e=this.offset_;if(this.offsetOrigin_!="top-left"){const n=this.getSize(),i=this.iconImage_.getSize();if(!n||!i)return null;e=e.slice(),(this.offsetOrigin_=="top-right"||this.offsetOrigin_=="bottom-right")&&(e[0]=i[0]-n[0]-e[0]),(this.offsetOrigin_=="bottom-left"||this.offsetOrigin_=="bottom-right")&&(e[1]=i[1]-n[1]-e[1])}return this.origin_=e,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){const e=this.getScaleArray();if(this.size_)return this.size_[0]*e[0];if(this.iconImage_.getImageState()==ot.LOADED)return this.iconImage_.getSize()[0]*e[0]}getHeight(){const e=this.getScaleArray();if(this.size_)return this.size_[1]*e[1];if(this.iconImage_.getImageState()==ot.LOADED)return this.iconImage_.getSize()[1]*e[1]}setScale(e){delete this.initialOptions_,super.setScale(e)}listenImageChange(e){this.iconImage_.addEventListener(tt.CHANGE,e)}load(){this.iconImage_.load()}unlistenImageChange(e){this.iconImage_.removeEventListener(tt.CHANGE,e)}ready(){return this.iconImage_.ready()}}const yie="#333";class Yv{constructor(e){e=e||{},this.font_=e.font,this.rotation_=e.rotation,this.rotateWithView_=e.rotateWithView,this.scale_=e.scale,this.scaleArray_=wi(e.scale!==void 0?e.scale:1),this.text_=e.text,this.textAlign_=e.textAlign,this.justify_=e.justify,this.repeat_=e.repeat,this.textBaseline_=e.textBaseline,this.fill_=e.fill!==void 0?e.fill:new Zl({color:yie}),this.maxAngle_=e.maxAngle!==void 0?e.maxAngle:Math.PI/4,this.placement_=e.placement!==void 0?e.placement:"point",this.overflow_=!!e.overflow,this.stroke_=e.stroke!==void 0?e.stroke:null,this.offsetX_=e.offsetX!==void 0?e.offsetX:0,this.offsetY_=e.offsetY!==void 0?e.offsetY:0,this.backgroundFill_=e.backgroundFill?e.backgroundFill:null,this.backgroundStroke_=e.backgroundStroke?e.backgroundStroke:null,this.padding_=e.padding===void 0?null:e.padding,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new Yv({font:this.getFont(),placement:this.getPlacement(),repeat:this.getRepeat(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0,declutterMode:this.getDeclutterMode()})}getOverflow(){return this.overflow_}getFont(){return this.font_}getMaxAngle(){return this.maxAngle_}getPlacement(){return this.placement_}getRepeat(){return this.repeat_}getOffsetX(){return this.offsetX_}getOffsetY(){return this.offsetY_}getFill(){return this.fill_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getStroke(){return this.stroke_}getText(){return this.text_}getTextAlign(){return this.textAlign_}getJustify(){return this.justify_}getTextBaseline(){return this.textBaseline_}getBackgroundFill(){return this.backgroundFill_}getBackgroundStroke(){return this.backgroundStroke_}getPadding(){return this.padding_}getDeclutterMode(){return this.declutterMode_}setOverflow(e){this.overflow_=e}setFont(e){this.font_=e}setMaxAngle(e){this.maxAngle_=e}setOffsetX(e){this.offsetX_=e}setOffsetY(e){this.offsetY_=e}setPlacement(e){this.placement_=e}setRepeat(e){this.repeat_=e}setRotateWithView(e){this.rotateWithView_=e}setFill(e){this.fill_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=wi(e!==void 0?e:1)}setStroke(e){this.stroke_=e}setText(e){this.text_=e}setTextAlign(e){this.textAlign_=e}setJustify(e){this.justify_=e}setTextBaseline(e){this.textBaseline_=e}setBackgroundFill(e){this.backgroundFill_=e}setBackgroundStroke(e){this.backgroundStroke_=e}setPadding(e){this.padding_=e}}let Ea=0;const ni=1<",GreaterThanOrEqualTo:">=",LessThan:"<",LessThanOrEqualTo:"<=",Multiply:"*",Divide:"/",Add:"+",Subtract:"-",Clamp:"clamp",Mod:"%",Pow:"^",Abs:"abs",Floor:"floor",Ceil:"ceil",Round:"round",Sin:"sin",Cos:"cos",Atan:"atan",Sqrt:"sqrt",Match:"match",Between:"between",Interpolate:"interpolate",Coalesce:"coalesce",Case:"case",In:"in",Number:"number",String:"string",Array:"array",Color:"color",Id:"id",Band:"band",Palette:"palette",ToString:"to-string",Has:"has"},Eie={[_e.Get]:Xe(st(1,1/0),$w),[_e.Var]:Xe(st(1,1),Cie),[_e.Has]:Xe(st(1,1/0),$w),[_e.Id]:Xe(Sie,za),[_e.Concat]:Xe(st(2,1/0),_t(mi)),[_e.GeometryType]:Xe(kie,za),[_e.LineMetric]:Xe(za),[_e.Resolution]:Xe(za),[_e.Zoom]:Xe(za),[_e.Time]:Xe(za),[_e.Any]:Xe(st(2,1/0),_t(ni)),[_e.All]:Xe(st(2,1/0),_t(ni)),[_e.Not]:Xe(st(1,1),_t(ni)),[_e.Equal]:Xe(st(2,2),_t(Jd)),[_e.NotEqual]:Xe(st(2,2),_t(Jd)),[_e.GreaterThan]:Xe(st(2,2),_t(dt)),[_e.GreaterThanOrEqualTo]:Xe(st(2,2),_t(dt)),[_e.LessThan]:Xe(st(2,2),_t(dt)),[_e.LessThanOrEqualTo]:Xe(st(2,2),_t(dt)),[_e.Multiply]:Xe(st(2,1/0),Lw),[_e.Coalesce]:Xe(st(2,1/0),Lw),[_e.Divide]:Xe(st(2,2),_t(dt)),[_e.Add]:Xe(st(2,1/0),_t(dt)),[_e.Subtract]:Xe(st(2,2),_t(dt)),[_e.Clamp]:Xe(st(3,3),_t(dt)),[_e.Mod]:Xe(st(2,2),_t(dt)),[_e.Pow]:Xe(st(2,2),_t(dt)),[_e.Abs]:Xe(st(1,1),_t(dt)),[_e.Floor]:Xe(st(1,1),_t(dt)),[_e.Ceil]:Xe(st(1,1),_t(dt)),[_e.Round]:Xe(st(1,1),_t(dt)),[_e.Sin]:Xe(st(1,1),_t(dt)),[_e.Cos]:Xe(st(1,1),_t(dt)),[_e.Atan]:Xe(st(1,2),_t(dt)),[_e.Sqrt]:Xe(st(1,1),_t(dt)),[_e.Match]:Xe(st(4,1/0),Ow,Aie),[_e.Between]:Xe(st(3,3),_t(dt)),[_e.Interpolate]:Xe(st(6,1/0),Ow,Pie),[_e.Case]:Xe(st(3,1/0),Tie,Mie),[_e.In]:Xe(st(2,2),Iie),[_e.Number]:Xe(st(1,1/0),_t(Jd)),[_e.String]:Xe(st(1,1/0),_t(Jd)),[_e.Array]:Xe(st(1,1/0),_t(dt)),[_e.Color]:Xe(st(1,4),_t(dt)),[_e.Band]:Xe(st(1,3),_t(dt)),[_e.Palette]:Xe(st(2,2),Die),[_e.ToString]:Xe(st(1,1),_t(ni|dt|mi|as))};function $w(t,e,n){const i=t.length-1,s=new Array(i);for(let r=0;re){const a=e===1/0?`${t} or more`:`${t} to ${e}`;throw new Error(`expected ${a} arguments for ${r}, got ${o}`)}}}function Lw(t,e,n){const i=t.length-1,s=new Array(i);for(let r=0;ri.featureId;case _e.GeometryType:return i=>i.geometryType;case _e.Concat:{const i=t.args.map(s=>ms(s));return s=>"".concat(...i.map(r=>r(s).toString()))}case _e.Resolution:return i=>i.resolution;case _e.Any:case _e.All:case _e.Between:case _e.In:case _e.Not:return Nie(t);case _e.Equal:case _e.NotEqual:case _e.LessThan:case _e.LessThanOrEqualTo:case _e.GreaterThan:case _e.GreaterThanOrEqualTo:return Oie(t);case _e.Multiply:case _e.Divide:case _e.Add:case _e.Subtract:case _e.Clamp:case _e.Mod:case _e.Pow:case _e.Abs:case _e.Floor:case _e.Ceil:case _e.Round:case _e.Sin:case _e.Cos:case _e.Atan:case _e.Sqrt:return Fie(t);case _e.Case:return Bie(t);case _e.Match:return Vie(t);case _e.Interpolate:return zie(t);case _e.ToString:return Wie(t);default:throw new Error(`Unsupported operator ${n}`)}}function $ie(t,e){const n=t.operator,i=t.args.length,s=new Array(i);for(let r=0;r{for(let o=0;o{for(let o=0;o{const r=t.args;let o=s.properties[i];for(let a=1,l=r.length;as.variables[i];case _e.Has:return s=>{const r=t.args;if(!(i in s.properties))return!1;let o=s.properties[i];for(let a=1,l=r.length;ai(r)===s(r);case _e.NotEqual:return r=>i(r)!==s(r);case _e.LessThan:return r=>i(r)i(r)<=s(r);case _e.GreaterThan:return r=>i(r)>s(r);case _e.GreaterThanOrEqualTo:return r=>i(r)>=s(r);default:throw new Error(`Unsupported comparison operator ${n}`)}}function Nie(t,e){const n=t.operator,i=t.args.length,s=new Array(i);for(let r=0;r{for(let o=0;o{for(let o=0;o{const o=s[0](r),a=s[1](r),l=s[2](r);return o>=a&&o<=l};case _e.In:return r=>{const o=s[0](r);for(let a=1;a!s[0](r);default:throw new Error(`Unsupported logical operator ${n}`)}}function Fie(t,e){const n=t.operator,i=t.args.length,s=new Array(i);for(let r=0;r{let o=1;for(let a=0;as[0](r)/s[1](r);case _e.Add:return r=>{let o=0;for(let a=0;as[0](r)-s[1](r);case _e.Clamp:return r=>{const o=s[0](r),a=s[1](r);if(ol?l:o};case _e.Mod:return r=>s[0](r)%s[1](r);case _e.Pow:return r=>Math.pow(s[0](r),s[1](r));case _e.Abs:return r=>Math.abs(s[0](r));case _e.Floor:return r=>Math.floor(s[0](r));case _e.Ceil:return r=>Math.ceil(s[0](r));case _e.Round:return r=>Math.round(s[0](r));case _e.Sin:return r=>Math.sin(s[0](r));case _e.Cos:return r=>Math.cos(s[0](r));case _e.Atan:return i===2?r=>Math.atan2(s[0](r),s[1](r)):r=>Math.atan(s[0](r));case _e.Sqrt:return r=>Math.sqrt(s[0](r));default:throw new Error(`Unsupported numeric operator ${n}`)}}function Bie(t,e){const n=t.args.length,i=new Array(n);for(let s=0;s{for(let r=0;r{const r=i[0](s);for(let o=1;o{const r=i[0](s),o=i[1](s);let a,l;for(let c=2;c=o)return c===2?d:h?Yie(r,o,a,l,u,d):Dc(r,o,a,l,u,d);a=u,l=d}return l}}function Wie(t,e){const n=t.operator,i=t.args.length,s=new Array(i);for(let r=0;r{const o=s[0](r);return t.args[0].type===as?Vv(o):o.toString()};default:throw new Error(`Unsupported convert operator ${n}`)}}function Dc(t,e,n,i,s,r){const o=s-n;if(o===0)return i;const a=e-n,l=t===1?a/o:(Math.pow(t,a)-1)/(Math.pow(t,o)-1);return i+l*(r-i)}function Yie(t,e,n,i,s,r){if(s-n===0)return i;const a=Tw(i),l=Tw(r);let c=l[2]-a[2];c>180?c-=360:c<-180&&(c+=360);const u=[Dc(t,e,n,a[0],s,l[0]),Dc(t,e,n,a[1],s,l[1]),a[2]+Dc(t,e,n,0,s,c),Dc(t,e,n,i[3],s,r[3])];return IT(eie(u))}function Hie(t){return!0}function jie(t){const e=zT(),n=Kie(t,e),i=YT();return function(s,r){if(i.properties=s.getPropertiesInternal(),i.resolution=r,e.featureId){const o=s.getId();o!==void 0?i.featureId=o:i.featureId=null}return e.geometryType&&(i.geometryType=WT(s.getGeometry())),n(i)}}function Nw(t){const e=zT(),n=t.length,i=new Array(n);for(let o=0;onull;i=jv(t,e+"fill-color",n)}if(!i)return null;const s=new Zl;return function(r){const o=i(r);return o===Fv?null:(s.setColor(o),s)}}function Du(t,e,n){const i=yi(t,e+"stroke-width",n),s=jv(t,e+"stroke-color",n);if(!i&&!s)return null;const r=sr(t,e+"stroke-line-cap",n),o=sr(t,e+"stroke-line-join",n),a=HT(t,e+"stroke-line-dash",n),l=yi(t,e+"stroke-line-dash-offset",n),c=yi(t,e+"stroke-miter-limit",n),u=new jl;return function(d){if(s){const h=s(d);if(h===Fv)return null;u.setColor(h)}if(i&&u.setWidth(i(d)),r){const h=r(d);if(h!=="butt"&&h!=="round"&&h!=="square")throw new Error("Expected butt, round, or square line cap");u.setLineCap(h)}if(o){const h=o(d);if(h!=="bevel"&&h!=="round"&&h!=="miter")throw new Error("Expected bevel, round, or miter line join");u.setLineJoin(h)}return a&&u.setLineDash(a(d)),l&&u.setLineDashOffset(l(d)),c&&u.setMiterLimit(c(d)),u}}function Uie(t,e){const n="text-",i=sr(t,n+"value",e);if(!i)return null;const s=Iu(t,n,e),r=Iu(t,n+"background-",e),o=Du(t,n,e),a=Du(t,n+"background-",e),l=sr(t,n+"font",e),c=yi(t,n+"max-angle",e),u=yi(t,n+"offset-x",e),d=yi(t,n+"offset-y",e),h=Ru(t,n+"overflow",e),g=sr(t,n+"placement",e),p=yi(t,n+"repeat",e),m=tg(t,n+"scale",e),v=Ru(t,n+"rotate-with-view",e),y=yi(t,n+"rotation",e),x=sr(t,n+"align",e),E=sr(t,n+"justify",e),w=sr(t,n+"baseline",e),b=HT(t,n+"padding",e),C=ng(t,n+"declutter-mode"),k=new Yv({declutterMode:C});return function(T){if(k.setText(i(T)),s&&k.setFill(s(T)),r&&k.setBackgroundFill(r(T)),o&&k.setStroke(o(T)),a&&k.setBackgroundStroke(a(T)),l&&k.setFont(l(T)),c&&k.setMaxAngle(c(T)),u&&k.setOffsetX(u(T)),d&&k.setOffsetY(d(T)),h&&k.setOverflow(h(T)),g){const A=g(T);if(A!=="point"&&A!=="line")throw new Error("Expected point or line for text-placement");k.setPlacement(A)}if(p&&k.setRepeat(p(T)),m&&k.setScale(m(T)),v&&k.setRotateWithView(v(T)),y&&k.setRotation(y(T)),x){const A=x(T);if(A!=="left"&&A!=="center"&&A!=="right"&&A!=="end"&&A!=="start")throw new Error("Expected left, right, center, start, or end for text-align");k.setTextAlign(A)}if(E){const A=E(T);if(A!=="left"&&A!=="right"&&A!=="center")throw new Error("Expected left, right, or center for text-justify");k.setJustify(A)}if(w){const A=w(T);if(A!=="bottom"&&A!=="top"&&A!=="middle"&&A!=="alphabetic"&&A!=="hanging")throw new Error("Expected bottom, top, middle, alphabetic, or hanging for text-baseline");k.setTextBaseline(A)}return b&&k.setPadding(b(T)),k}}function Gie(t,e){return"icon-src"in t?Xie(t,e):"shape-points"in t?qie(t,e):"circle-radius"in t?Zie(t,e):null}function Xie(t,e){const n="icon-",i=n+"src",s=jT(t[i],i),r=Uh(t,n+"anchor",e),o=tg(t,n+"scale",e),a=yi(t,n+"opacity",e),l=Uh(t,n+"displacement",e),c=yi(t,n+"rotation",e),u=Ru(t,n+"rotate-with-view",e),d=Bw(t,n+"anchor-origin"),h=Vw(t,n+"anchor-x-units"),g=Vw(t,n+"anchor-y-units"),p=nse(t,n+"color"),m=ese(t,n+"cross-origin"),v=tse(t,n+"offset"),y=Bw(t,n+"offset-origin"),x=Gh(t,n+"width"),E=Gh(t,n+"height"),w=Qie(t,n+"size"),b=ng(t,n+"declutter-mode"),C=new eg({src:s,anchorOrigin:d,anchorXUnits:h,anchorYUnits:g,color:p,crossOrigin:m,offset:v,offsetOrigin:y,height:E,width:x,size:w,declutterMode:b});return function(k){return a&&C.setOpacity(a(k)),l&&C.setDisplacement(l(k)),c&&C.setRotation(c(k)),u&&C.setRotateWithView(u(k)),o&&C.setScale(o(k)),r&&C.setAnchor(r(k)),C}}function qie(t,e){const n="shape-",i=n+"points",s=n+"radius",r=Om(t[i],i),o=Om(t[s],s),a=Iu(t,n,e),l=Du(t,n,e),c=tg(t,n+"scale",e),u=Uh(t,n+"displacement",e),d=yi(t,n+"rotation",e),h=Ru(t,n+"rotate-with-view",e),g=Gh(t,n+"radius2"),p=Gh(t,n+"angle"),m=ng(t,n+"declutter-mode"),v=new Qf({points:r,radius:o,radius2:g,angle:p,declutterMode:m});return function(y){return a&&v.setFill(a(y)),l&&v.setStroke(l(y)),u&&v.setDisplacement(u(y)),d&&v.setRotation(d(y)),h&&v.setRotateWithView(h(y)),c&&v.setScale(c(y)),v}}function Zie(t,e){const n="circle-",i=Iu(t,n,e),s=Du(t,n,e),r=yi(t,n+"radius",e),o=tg(t,n+"scale",e),a=Uh(t,n+"displacement",e),l=yi(t,n+"rotation",e),c=Ru(t,n+"rotate-with-view",e),u=ng(t,n+"declutter-mode"),d=new Qu({radius:5,declutterMode:u});return function(h){return r&&d.setRadius(r(h)),i&&d.setFill(i(h)),s&&d.setStroke(s(h)),a&&d.setDisplacement(a(h)),l&&d.setRotation(l(h)),c&&d.setRotateWithView(c(h)),o&&d.setScale(o(h)),d}}function yi(t,e,n){if(!(e in t))return;const i=Cr(t[e],dt,n);return function(s){return Om(i(s),e)}}function sr(t,e,n){if(!(e in t))return null;const i=Cr(t[e],mi,n);return function(s){return jT(i(s),e)}}function Jie(t,e,n){const i=sr(t,e+"pattern-src",n),s=Fw(t,e+"pattern-offset",n),r=Fw(t,e+"pattern-size",n),o=jv(t,e+"color",n);return function(a){return{src:i(a),offset:s&&s(a),size:r&&r(a),color:o&&o(a)}}}function Ru(t,e,n){if(!(e in t))return null;const i=Cr(t[e],ni,n);return function(s){const r=i(s);if(typeof r!="boolean")throw new Error(`Expected a boolean for ${e}`);return r}}function jv(t,e,n){if(!(e in t))return null;const i=Cr(t[e],as,n);return function(s){return KT(i(s),e)}}function HT(t,e,n){if(!(e in t))return null;const i=Cr(t[e],ma,n);return function(s){return ed(i(s),e)}}function Uh(t,e,n){if(!(e in t))return null;const i=Cr(t[e],ma,n);return function(s){const r=ed(i(s),e);if(r.length!==2)throw new Error(`Expected two numbers for ${e}`);return r}}function Fw(t,e,n){if(!(e in t))return null;const i=Cr(t[e],ma,n);return function(s){return UT(i(s),e)}}function tg(t,e,n){if(!(e in t))return null;const i=Cr(t[e],ma|dt,n);return function(s){return ise(i(s),e)}}function Gh(t,e){const n=t[e];if(n!==void 0){if(typeof n!="number")throw new Error(`Expected a number for ${e}`);return n}}function Qie(t,e){const n=t[e];if(n!==void 0){if(typeof n=="number")return wi(n);if(!Array.isArray(n))throw new Error(`Expected a number or size array for ${e}`);if(n.length!==2||typeof n[0]!="number"||typeof n[1]!="number")throw new Error(`Expected a number or size array for ${e}`);return n}}function ese(t,e){const n=t[e];if(n!==void 0){if(typeof n!="string")throw new Error(`Expected a string for ${e}`);return n}}function Bw(t,e){const n=t[e];if(n!==void 0){if(n!=="bottom-left"&&n!=="bottom-right"&&n!=="top-left"&&n!=="top-right")throw new Error(`Expected bottom-left, bottom-right, top-left, or top-right for ${e}`);return n}}function Vw(t,e){const n=t[e];if(n!==void 0){if(n!=="pixels"&&n!=="fraction")throw new Error(`Expected pixels or fraction for ${e}`);return n}}function tse(t,e){const n=t[e];if(n!==void 0)return ed(n,e)}function ng(t,e){const n=t[e];if(n!==void 0){if(typeof n!="string")throw new Error(`Expected a string for ${e}`);if(n!=="declutter"&&n!=="obstacle"&&n!=="none")throw new Error(`Expected declutter, obstacle, or none for ${e}`);return n}}function nse(t,e){const n=t[e];if(n!==void 0)return KT(n,e)}function ed(t,e){if(!Array.isArray(t))throw new Error(`Expected an array for ${e}`);const n=t.length;for(let i=0;i4)throw new Error(`Expected a color with 3 or 4 values for ${e}`);return n}function UT(t,e){const n=ed(t,e);if(n.length!==2)throw new Error(`Expected an array of two numbers for ${e}`);return n}function ise(t,e){return typeof t=="number"?t:UT(t,e)}const zw={RENDER_ORDER:"renderOrder"};class GT extends qf{constructor(e){e=e||{};const n=Object.assign({},e);delete n.style,delete n.renderBuffer,delete n.updateWhileAnimating,delete n.updateWhileInteracting,super(n),this.declutter_=e.declutter?String(e.declutter):void 0,this.renderBuffer_=e.renderBuffer!==void 0?e.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(e.style),this.updateWhileAnimating_=e.updateWhileAnimating!==void 0?e.updateWhileAnimating:!1,this.updateWhileInteracting_=e.updateWhileInteracting!==void 0?e.updateWhileInteracting:!1}getDeclutter(){return this.declutter_}getFeatures(e){return super.getFeatures(e)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get(zw.RENDER_ORDER)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(e,n){const i=this.getDeclutter();i in e.declutter||(e.declutter[i]=new PT(9)),this.getRenderer().renderDeclutter(e,n)}setRenderOrder(e){this.set(zw.RENDER_ORDER,e)}setStyle(e){this.style_=e===void 0?VT:e;const n=sse(e);this.styleFunction_=e===null?void 0:vie(n),this.changed()}}function sse(t){if(t===void 0)return VT;if(!t)return null;if(typeof t=="function"||t instanceof pr)return t;if(!Array.isArray(t))return Nw([t]);if(t.length===0)return[];const e=t.length,n=t[0];if(n instanceof pr){const s=new Array(e);for(let r=0;r=0;--b){const C=m[b],k=C.layer;if(k.hasRenderer()&&Ov(C,u)&&a.call(l,k)){const T=k.getRenderer(),A=k.getSource();if(T&&A){const I=A.getWrapX()?g:e,V=d.bind(null,C.managed);x[0]=I[0]+p[w][0],x[1]=I[1]+p[w][1],c=T.forEachFeatureAtCoordinate(x,n,i,V,y)}if(c)return c}}if(y.length===0)return;const E=1/y.length;return y.forEach((w,b)=>w.distanceSq+=b*E),y.sort((w,b)=>w.distanceSq-b.distanceSq),y.some(w=>c=w.callback(w.feature,w.layer,w.geometry)),c}hasFeatureAtCoordinate(e,n,i,s,r,o){return this.forEachFeatureAtCoordinate(e,n,i,s,yu,this,r,o)!==void 0}getMap(){return this.map_}renderFrame(e){pt()}scheduleExpireIconCache(e){Is.canExpireCache()&&e.postRenderFunctions.push(ose)}}function ose(t,e){Is.expire()}class XT extends Er{constructor(e,n,i,s){super(e),this.inversePixelTransform=n,this.frameState=i,this.context=s}}class ase extends rse{constructor(e){super(e),this.fontChangeListenerKey_=ft(er,Fl.PROPERTYCHANGE,e.redrawText,e),this.element_=document.createElement("div");const n=this.element_.style;n.position="absolute",n.width="100%",n.height="100%",n.zIndex="0",this.element_.className=Jf+" ol-layers";const i=e.getViewport();i.insertBefore(this.element_,i.firstChild||null),this.children_=[],this.renderedVisible_=!0}dispatchRenderEvent(e,n){const i=this.getMap();if(i.hasListener(e)){const s=new XT(e,void 0,n);i.dispatchEvent(s)}}disposeInternal(){Lt(this.fontChangeListenerKey_),this.element_.remove(),super.disposeInternal()}renderFrame(e){if(!e){this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1);return}this.calculateMatrices2D(e),this.dispatchRenderEvent(Wi.PRECOMPOSE,e);const n=e.layerStatesArray.sort((a,l)=>a.zIndex-l.zIndex);n.some(a=>a.layer instanceof GT&&a.layer.getDeclutter())&&(e.declutter={});const s=e.viewState;this.children_.length=0;const r=[];let o=null;for(let a=0,l=n.length;a=0;--i){const s=n[i],r=s.layer;r.getDeclutter()&&r.renderDeclutter(e,s)}n.forEach(i=>i.layer.renderDeferred(e))}}}class Hr extends Er{constructor(e,n){super(e),this.layer=n}}const Ep={LAYERS:"layers"};class Jl extends oT{constructor(e){e=e||{};const n=Object.assign({},e);delete n.layers;let i=e.layers;super(n),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(Ep.LAYERS,this.handleLayersChanged_),i?Array.isArray(i)?i=new Ms(i.slice(),{unique:!0}):mt(typeof i.getArray=="function","Expected `layers` to be an array or a `Collection`"):i=new Ms(void 0,{unique:!0}),this.setLayers(i)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(Lt),this.layersListenerKeys_.length=0;const e=this.getLayers();this.layersListenerKeys_.push(ft(e,gi.ADD,this.handleLayersAdd_,this),ft(e,gi.REMOVE,this.handleLayersRemove_,this));for(const i in this.listenerKeys_)this.listenerKeys_[i].forEach(Lt);qu(this.listenerKeys_);const n=e.getArray();for(let i=0,s=n.length;i{this.clickTimeoutId_=void 0;const i=new Fr(en.SINGLECLICK,this.map_,e);this.dispatchEvent(i)},250)}updateActivePointers_(e){const n=e,i=n.pointerId;if(n.type==en.POINTERUP||n.type==en.POINTERCANCEL){delete this.trackedTouches_[i];for(const s in this.trackedTouches_)if(this.trackedTouches_[s].target!==n.target){delete this.trackedTouches_[s];break}}else(n.type==en.POINTERDOWN||n.type==en.POINTERMOVE)&&(this.trackedTouches_[i]=n);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(e){this.updateActivePointers_(e);const n=new Fr(en.POINTERUP,this.map_,e,void 0,void 0,this.activePointers_);this.dispatchEvent(n),this.emulateClicks_&&!n.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(e)&&this.emulateClick_(this.down_),this.activePointers_.length===0&&(this.dragListenerKeys_.forEach(Lt),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(e){return e.button===0}handlePointerDown_(e){this.emulateClicks_=this.activePointers_.length===0,this.updateActivePointers_(e);const n=new Fr(en.POINTERDOWN,this.map_,e,void 0,void 0,this.activePointers_);if(this.dispatchEvent(n),this.down_=new PointerEvent(e.type,e),Object.defineProperty(this.down_,"target",{writable:!1,value:e.target}),this.dragListenerKeys_.length===0){const i=this.map_.getOwnerDocument();this.dragListenerKeys_.push(ft(i,en.POINTERMOVE,this.handlePointerMove_,this),ft(i,en.POINTERUP,this.handlePointerUp_,this),ft(this.element_,en.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==i&&this.dragListenerKeys_.push(ft(this.element_.getRootNode(),en.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(e){if(this.isMoving_(e)){this.updateActivePointers_(e),this.dragging_=!0;const n=new Fr(en.POINTERDRAG,this.map_,e,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(n)}}relayMoveEvent_(e){this.originalPointerMoveEvent_=e;const n=!!(this.down_&&this.isMoving_(e));this.dispatchEvent(new Fr(en.POINTERMOVE,this.map_,e,n))}handleTouchMove_(e){const n=this.originalPointerMoveEvent_;(!n||n.defaultPrevented)&&(typeof e.cancelable!="boolean"||e.cancelable===!0)&&e.preventDefault()}isMoving_(e){return this.dragging_||Math.abs(e.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(e.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&(Lt(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(tt.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Lt(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(Lt),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}}const Br={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"},Wn={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"},Xh=1/0;class cse{constructor(e,n){this.priorityFunction_=e,this.keyFunction_=n,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,qu(this.queuedElements_)}dequeue(){const e=this.elements_,n=this.priorities_,i=e[0];e.length==1?(e.length=0,n.length=0):(e[0]=e.pop(),n[0]=n.pop(),this.siftUp_(0));const s=this.keyFunction_(i);return delete this.queuedElements_[s],i}enqueue(e){mt(!(this.keyFunction_(e)in this.queuedElements_),"Tried to enqueue an `element` that was already added to the queue");const n=this.priorityFunction_(e);return n!=Xh?(this.elements_.push(e),this.priorities_.push(n),this.queuedElements_[this.keyFunction_(e)]=!0,this.siftDown_(0,this.elements_.length-1),!0):!1}getCount(){return this.elements_.length}getLeftChildIndex_(e){return e*2+1}getRightChildIndex_(e){return e*2+2}getParentIndex_(e){return e-1>>1}heapify_(){let e;for(e=(this.elements_.length>>1)-1;e>=0;e--)this.siftUp_(e)}isEmpty(){return this.elements_.length===0}isKeyQueued(e){return e in this.queuedElements_}isQueued(e){return this.isKeyQueued(this.keyFunction_(e))}siftUp_(e){const n=this.elements_,i=this.priorities_,s=n.length,r=n[e],o=i[e],a=e;for(;e>1;){const l=this.getLeftChildIndex_(e),c=this.getRightChildIndex_(e),u=ce;){const a=this.getParentIndex_(n);if(s[a]>o)i[n]=i[a],s[n]=s[a],n=a;else break}i[n]=r,s[n]=o}reprioritize(){const e=this.priorityFunction_,n=this.elements_,i=this.priorities_;let s=0;const r=n.length;let o,a,l;for(a=0;a0;){const s=this.dequeue()[0],r=s.getKey();s.getState()===Ve.IDLE&&!(r in this.tilesLoadingKeys_)&&(this.tilesLoadingKeys_[r]=!0,++this.tilesLoading_,++i,s.load())}}}function dse(t,e,n,i,s){if(!t||!(n in t.wantedTiles)||!t.wantedTiles[n][e.getKey()])return Xh;const r=t.viewState.center,o=i[0]-r[0],a=i[1]-r[1];return 65536*Math.log(s)+Math.sqrt(o*o+a*a)/s}class Kv extends zs{constructor(e){super();const n=e.element;n&&!e.target&&!n.style.pointerEvents&&(n.style.pointerEvents="auto"),this.element=n||null,this.target_=null,this.map_=null,this.listenerKeys=[],e.render&&(this.render=e.render),e.target&&this.setTarget(e.target)}disposeInternal(){this.element?.remove(),super.disposeInternal()}getMap(){return this.map_}setMap(e){this.map_&&this.element?.remove();for(let n=0,i=this.listenerKeys.length;ns.getAttributions(e)));if(this.attributions_!==void 0&&(Array.isArray(this.attributions_)?this.attributions_.forEach(s=>i.add(s)):i.add(this.attributions_)),!this.overrideCollapsible_){const s=!n.some(r=>r.getSource()?.getAttributionsCollapsible()===!1);this.setCollapsible(s)}return Array.from(i)}async updateElement_(e){if(!e){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}const n=await Promise.all(this.collectSourceAttributions_(e).map(s=>Lte(()=>s))),i=n.length>0;if(this.renderedVisible_!=i&&(this.element.style.display=i?"":"none",this.renderedVisible_=i),!So(n,this.renderedAttributions_)){sie(this.ulElement_);for(let s=0,r=n.length;s0&&i%(2*Math.PI)!==0?n.animate({rotation:0,duration:this.duration_,easing:ql}):n.setRotation(0))}render(e){const n=e.frameState;if(!n)return;const i=n.viewState.rotation;if(i!=this.rotation_){const s="rotate("+i+"rad)";if(this.autoHide_){const r=this.element.classList.contains(Zd);!r&&i===0?this.element.classList.add(Zd):r&&i!==0&&this.element.classList.remove(Zd)}this.label_.style.transform=s}this.rotation_=i}}class gse extends Kv{constructor(e){e=e||{},super({element:document.createElement("div"),target:e.target});const n=e.className!==void 0?e.className:"ol-zoom",i=e.delta!==void 0?e.delta:1,s=e.zoomInClassName!==void 0?e.zoomInClassName:n+"-in",r=e.zoomOutClassName!==void 0?e.zoomOutClassName:n+"-out",o=e.zoomInLabel!==void 0?e.zoomInLabel:"+",a=e.zoomOutLabel!==void 0?e.zoomOutLabel:"–",l=e.zoomInTipLabel!==void 0?e.zoomInTipLabel:"Zoom in",c=e.zoomOutTipLabel!==void 0?e.zoomOutTipLabel:"Zoom out",u=document.createElement("button");u.className=s,u.setAttribute("type","button"),u.title=l,u.appendChild(typeof o=="string"?document.createTextNode(o):o),u.addEventListener(tt.CLICK,this.handleClick_.bind(this,i),!1);const d=document.createElement("button");d.className=r,d.setAttribute("type","button"),d.title=c,d.appendChild(typeof a=="string"?document.createTextNode(a):a),d.addEventListener(tt.CLICK,this.handleClick_.bind(this,-i),!1);const h=n+" "+Jf+" "+Wv,g=this.element;g.className=h,g.appendChild(u),g.appendChild(d),this.duration_=e.duration!==void 0?e.duration:250}handleClick_(e,n){n.preventDefault(),this.zoomByDelta_(e)}zoomByDelta_(e){const i=this.getMap().getView();if(!i)return;const s=i.getZoom();if(s!==void 0){const r=i.getConstrainedZoom(s+e);this.duration_>0?(i.getAnimating()&&i.cancelAnimations(),i.animate({zoom:r,duration:this.duration_,easing:ql})):i.setZoom(r)}}}function pse(t){t=t||{};const e=new Ms;return(t.zoom!==void 0?t.zoom:!0)&&e.push(new gse(t.zoomOptions)),(t.rotate!==void 0?t.rotate:!0)&&e.push(new fse(t.rotateOptions)),(t.attribution!==void 0?t.attribution:!0)&&e.push(new hse(t.attributionOptions)),e}const Ww={ACTIVE:"active"};class td extends zs{constructor(e){super(),this.on,this.once,this.un,e&&e.handleEvent&&(this.handleEvent=e.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get(Ww.ACTIVE)}getMap(){return this.map_}handleEvent(e){return!0}setActive(e){this.set(Ww.ACTIVE,e)}setMap(e){this.map_=e}}function mse(t,e,n){const i=t.getCenterInternal();if(i){const s=[i[0]+e[0],i[1]+e[1]];t.animateInternal({duration:n!==void 0?n:250,easing:mne,center:t.getConstrainedCenter(s)})}}function Uv(t,e,n,i){const s=t.getZoom();if(s===void 0)return;const r=t.getConstrainedZoom(s+e),o=t.getResolutionForZoom(r);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:o,anchor:n,duration:i!==void 0?i:250,easing:ql})}class _se extends td{constructor(e){super(),e=e||{},this.delta_=e.delta?e.delta:1,this.duration_=e.duration!==void 0?e.duration:250}handleEvent(e){let n=!1;if(e.type==en.DBLCLICK){const i=e.originalEvent,s=e.map,r=e.coordinate,o=i.shiftKey?-this.delta_:this.delta_,a=s.getView();Uv(a,o,r,this.duration_),i.preventDefault(),n=!0}return!n}}class nd extends td{constructor(e){e=e||{},super(e),e.handleDownEvent&&(this.handleDownEvent=e.handleDownEvent),e.handleDragEvent&&(this.handleDragEvent=e.handleDragEvent),e.handleMoveEvent&&(this.handleMoveEvent=e.handleMoveEvent),e.handleUpEvent&&(this.handleUpEvent=e.handleUpEvent),e.stopDown&&(this.stopDown=e.stopDown),this.handlingDownUpSequence=!1,this.targetPointers=[]}getPointerCount(){return this.targetPointers.length}handleDownEvent(e){return!1}handleDragEvent(e){}handleEvent(e){if(!e.originalEvent)return!0;let n=!1;if(this.updateTrackedPointers_(e),this.handlingDownUpSequence){if(e.type==en.POINTERDRAG)this.handleDragEvent(e),e.originalEvent.preventDefault();else if(e.type==en.POINTERUP){const i=this.handleUpEvent(e);this.handlingDownUpSequence=i&&this.targetPointers.length>0}}else if(e.type==en.POINTERDOWN){const i=this.handleDownEvent(e);this.handlingDownUpSequence=i,n=this.stopDown(i)}else e.type==en.POINTERMOVE&&this.handleMoveEvent(e);return!n}handleMoveEvent(e){}handleUpEvent(e){return!1}stopDown(e){return e}updateTrackedPointers_(e){e.activePointers&&(this.targetPointers=e.activePointers)}}function Gv(t){const e=t.length;let n=0,i=0;for(let s=0;s0&&this.condition_(e)){const i=e.map.getView();return this.lastCentroid=null,i.getAnimating()&&i.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}}class Sse extends nd{constructor(e){e=e||{},super({stopDown:zf}),this.condition_=e.condition?e.condition:vse,this.lastAngle_=void 0,this.duration_=e.duration!==void 0?e.duration:250}handleDragEvent(e){if(!Cp(e))return;const n=e.map,i=n.getView();if(i.getConstraints().rotation===Pv)return;const s=n.getSize(),r=e.pixel,o=Math.atan2(s[1]/2-r[1],r[0]-s[0]/2);if(this.lastAngle_!==void 0){const a=o-this.lastAngle_;i.adjustRotationInternal(-a)}this.lastAngle_=o}handleUpEvent(e){return Cp(e)?(e.map.getView().endInteraction(this.duration_),!1):!0}handleDownEvent(e){return Cp(e)&&ZT(e)&&this.condition_(e)?(e.map.getView().beginInteraction(),this.lastAngle_=void 0,!0):!1}}class kse extends Bf{constructor(e){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+e,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){const e=this.startPixel_,n=this.endPixel_,i="px",s=this.element_.style;s.left=Math.min(e[0],n[0])+i,s.top=Math.min(e[1],n[1])+i,s.width=Math.abs(n[0]-e[0])+i,s.height=Math.abs(n[1]-e[1])+i}setMap(e){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const n=this.element_.style;n.left="inherit",n.top="inherit",n.width="inherit",n.height="inherit"}this.map_=e,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(e,n){this.startPixel_=e,this.endPixel_=n,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){if(!this.map_)return;const e=this.startPixel_,n=this.endPixel_,s=[e,[e[0],n[1]],n,[n[0],e[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);s[4]=s[0].slice(),this.geometry_?this.geometry_.setCoordinates([s]):this.geometry_=new Cu([s])}getGeometry(){return this.geometry_}}const Wa={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"};class bc extends Er{constructor(e,n,i){super(e),this.coordinate=n,this.mapBrowserEvent=i}}class Tse extends nd{constructor(e){super(),this.on,this.once,this.un,e=e??{},this.box_=new kse(e.className||"ol-dragbox"),this.minArea_=e.minArea??64,e.onBoxEnd&&(this.onBoxEnd=e.onBoxEnd),this.startPixel_=null,this.condition_=e.condition??ZT,this.boxEndCondition_=e.boxEndCondition??this.defaultBoxEndCondition}defaultBoxEndCondition(e,n,i){const s=i[0]-n[0],r=i[1]-n[1];return s*s+r*r>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(e){this.startPixel_&&(this.box_.setPixels(this.startPixel_,e.pixel),this.dispatchEvent(new bc(Wa.BOXDRAG,e.coordinate,e)))}handleUpEvent(e){if(!this.startPixel_)return!1;const n=this.boxEndCondition_(e,this.startPixel_,e.pixel);return n&&this.onBoxEnd(e),this.dispatchEvent(new bc(n?Wa.BOXEND:Wa.BOXCANCEL,e.coordinate,e)),this.box_.setMap(null),this.startPixel_=null,!1}handleDownEvent(e){return this.condition_(e)?(this.startPixel_=e.pixel,this.box_.setMap(e.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new bc(Wa.BOXSTART,e.coordinate,e)),!0):!1}onBoxEnd(e){}setActive(e){e||(this.box_.setMap(null),this.startPixel_&&(this.dispatchEvent(new bc(Wa.BOXCANCEL,this.startPixel_,null)),this.startPixel_=null)),super.setActive(e)}setMap(e){this.getMap()&&(this.box_.setMap(null),this.startPixel_&&(this.dispatchEvent(new bc(Wa.BOXCANCEL,this.startPixel_,null)),this.startPixel_=null)),super.setMap(e)}}class Ase extends Tse{constructor(e){e=e||{};const n=e.condition?e.condition:xse;super({condition:n,className:e.className||"ol-dragzoom",minArea:e.minArea}),this.duration_=e.duration!==void 0?e.duration:200,this.out_=e.out!==void 0?e.out:!1}onBoxEnd(e){const i=this.getMap().getView();let s=this.getGeometry();if(this.out_){const r=i.rotatedExtentForGeometry(s),o=i.getResolutionForExtentInternal(r),a=i.getResolution()/o;s=s.clone(),s.scale(a*a)}i.fitInternal(s,{duration:this.duration_,easing:ql})}}const zo={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown"};class Pse extends td{constructor(e){super(),e=e||{},this.defaultCondition_=function(n){return JT(n)&&QT(n)},this.condition_=e.condition!==void 0?e.condition:this.defaultCondition_,this.duration_=e.duration!==void 0?e.duration:100,this.pixelDelta_=e.pixelDelta!==void 0?e.pixelDelta:128}handleEvent(e){let n=!1;if(e.type==tt.KEYDOWN){const i=e.originalEvent,s=i.key;if(this.condition_(e)&&(s==zo.DOWN||s==zo.LEFT||s==zo.RIGHT||s==zo.UP)){const o=e.map.getView(),a=o.getResolution()*this.pixelDelta_;let l=0,c=0;s==zo.DOWN?c=-a:s==zo.LEFT?l=-a:s==zo.RIGHT?l=a:c=a;const u=[l,c];Ev(u,o.getRotation()),mse(o,u,this.duration_),i.preventDefault(),n=!0}}return!n}}class Mse extends td{constructor(e){super(),e=e||{},this.condition_=e.condition?e.condition:function(n){return!wse(n)&&QT(n)},this.delta_=e.delta?e.delta:1,this.duration_=e.duration!==void 0?e.duration:100}handleEvent(e){let n=!1;if(e.type==tt.KEYDOWN||e.type==tt.KEYPRESS){const i=e.originalEvent,s=i.key;if(this.condition_(e)&&(s==="+"||s==="-")){const r=e.map,o=s==="+"?this.delta_:-this.delta_,a=r.getView();Uv(a,o,void 0,this.duration_),i.preventDefault(),n=!0}}return!n}}class Ise{constructor(e,n,i){this.decay_=e,this.minVelocity_=n,this.delay_=i,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(e,n){this.points_.push(e,n,Date.now())}end(){if(this.points_.length<6)return!1;const e=Date.now()-this.delay_,n=this.points_.length-3;if(this.points_[n+2]0&&this.points_[i+2]>e;)i-=3;const s=this.points_[n+2]-this.points_[i+2];if(s<1e3/60)return!1;const r=this.points_[n]-this.points_[i],o=this.points_[n+1]-this.points_[i+1];return this.angle_=Math.atan2(o,r),this.initialVelocity_=Math.sqrt(r*r+o*o)/s,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}}class Dse extends td{constructor(e){e=e||{},super(e),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=e.maxDelta!==void 0?e.maxDelta:1,this.duration_=e.duration!==void 0?e.duration:250,this.timeout_=e.timeout!==void 0?e.timeout:80,this.useAnchor_=e.useAnchor!==void 0?e.useAnchor:!0,this.constrainResolution_=e.constrainResolution!==void 0?e.constrainResolution:!1;const n=e.condition?e.condition:bse;this.condition_=e.onFocusOnly?Fm(qT,n):n,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const e=this.getMap();if(!e)return;e.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_?e.getCoordinateFromPixel(this.lastAnchor_):null)}handleEvent(e){if(!this.condition_(e)||e.type!==tt.WHEEL)return!0;const i=e.map,s=e.originalEvent;s.preventDefault(),this.useAnchor_&&(this.lastAnchor_=e.pixel);let r;if(e.type==tt.WHEEL&&(r=s.deltaY,tie&&s.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(r/=RT),s.deltaMode===WheelEvent.DOM_DELTA_LINE&&(r*=40)),r===0)return!1;this.lastDelta_=r;const o=Date.now();this.startTime_===void 0&&(this.startTime_=o),(!this.mode_||o-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(r)<4?"trackpad":"wheel");const a=i.getView();if(this.mode_==="trackpad"&&!(a.getConstrainResolution()||this.constrainResolution_))return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(a.getAnimating()&&a.cancelAnimations(),a.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),a.adjustZoom(-r/this.deltaPerZoom_,this.lastAnchor_?i.getCoordinateFromPixel(this.lastAnchor_):null),this.startTime_=o,!1;this.totalDelta_+=r;const l=Math.max(this.timeout_-(o-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,i),l),!1}handleWheelZoom_(e){const n=e.getView();n.getAnimating()&&n.cancelAnimations();let i=-rn(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(n.getConstrainResolution()||this.constrainResolution_)&&(i=i?i>0?1:-1:0),Uv(n,i,this.lastAnchor_?e.getCoordinateFromPixel(this.lastAnchor_):null,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(e){this.useAnchor_=e,e||(this.lastAnchor_=null)}}class Rse extends nd{constructor(e){e=e||{};const n=e;n.stopDown||(n.stopDown=zf),super(n),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=e.threshold!==void 0?e.threshold:.3,this.duration_=e.duration!==void 0?e.duration:250}handleDragEvent(e){let n=0;const i=this.targetPointers[0],s=this.targetPointers[1],r=Math.atan2(s.clientY-i.clientY,s.clientX-i.clientX);if(this.lastAngle_!==void 0){const l=r-this.lastAngle_;this.rotationDelta_+=l,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),n=l}this.lastAngle_=r;const o=e.map,a=o.getView();a.getConstraints().rotation!==Pv&&(this.anchor_=o.getCoordinateFromPixelInternal(o.getEventPixel(Gv(this.targetPointers))),this.rotating_&&(o.render(),a.adjustRotationInternal(n,this.anchor_)))}handleUpEvent(e){return this.targetPointers.length<2?(e.map.getView().endInteraction(this.duration_),!1):!0}handleDownEvent(e){if(this.targetPointers.length>=2){const n=e.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||n.getView().beginInteraction(),!0}return!1}}class $se extends nd{constructor(e){e=e||{};const n=e;n.stopDown||(n.stopDown=zf),super(n),this.anchor_=null,this.duration_=e.duration!==void 0?e.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(e){let n=1;const i=this.targetPointers[0],s=this.targetPointers[1],r=i.clientX-s.clientX,o=i.clientY-s.clientY,a=Math.sqrt(r*r+o*o);this.lastDistance_!==void 0&&(n=this.lastDistance_/a),this.lastDistance_=a;const l=e.map,c=l.getView();n!=1&&(this.lastScaleDelta_=n),this.anchor_=l.getCoordinateFromPixelInternal(l.getEventPixel(Gv(this.targetPointers))),l.render(),c.adjustResolutionInternal(n,this.anchor_)}handleUpEvent(e){if(this.targetPointers.length<2){const i=e.map.getView(),s=this.lastScaleDelta_>1?1:-1;return i.endInteraction(this.duration_,s),!1}return!0}handleDownEvent(e){if(this.targetPointers.length>=2){const n=e.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||n.getView().beginInteraction(),!0}return!1}}function Lse(t){t=t||{};const e=new Ms,n=new Ise(-.005,.05,100);return(t.altShiftDragRotate!==void 0?t.altShiftDragRotate:!0)&&e.push(new Sse),(t.doubleClickZoom!==void 0?t.doubleClickZoom:!0)&&e.push(new _se({delta:t.zoomDelta,duration:t.zoomDuration})),(t.dragPan!==void 0?t.dragPan:!0)&&e.push(new Cse({onFocusOnly:t.onFocusOnly,kinetic:n})),(t.pinchRotate!==void 0?t.pinchRotate:!0)&&e.push(new Rse),(t.pinchZoom!==void 0?t.pinchZoom:!0)&&e.push(new $se({duration:t.zoomDuration})),(t.keyboard!==void 0?t.keyboard:!0)&&(e.push(new Pse),e.push(new Mse({delta:t.zoomDelta,duration:t.zoomDuration}))),(t.mouseWheelZoom!==void 0?t.mouseWheelZoom:!0)&&e.push(new Dse({onFocusOnly:t.onFocusOnly,duration:t.zoomDuration})),(t.shiftDragZoom!==void 0?t.shiftDragZoom:!0)&&e.push(new Ase({duration:t.zoomDuration})),e}function eA(t){if(t instanceof qf){t.setMapInternal(null);return}t instanceof Jl&&t.getLayers().forEach(eA)}function tA(t,e){if(t instanceof qf){t.setMapInternal(e);return}if(t instanceof Jl){const n=t.getLayers().getArray();for(let i=0,s=n.length;ithis.updateSize()),this.controls=n.controls||pse(),this.interactions=n.interactions||Lse({onFocusOnly:!0}),this.overlays_=n.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new use(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(Wn.LAYERGROUP,this.handleLayerGroupChanged_),this.addChangeListener(Wn.VIEW,this.handleViewChanged_),this.addChangeListener(Wn.SIZE,this.handleSizeChanged_),this.addChangeListener(Wn.TARGET,this.handleTargetChanged_),this.setProperties(n.values);const i=this;e.view&&!(e.view instanceof ks)&&e.view.then(function(s){i.setView(new ks(s))}),this.controls.addEventListener(gi.ADD,s=>{s.element.setMap(this)}),this.controls.addEventListener(gi.REMOVE,s=>{s.element.setMap(null)}),this.interactions.addEventListener(gi.ADD,s=>{s.element.setMap(this)}),this.interactions.addEventListener(gi.REMOVE,s=>{s.element.setMap(null)}),this.overlays_.addEventListener(gi.ADD,s=>{this.addOverlayInternal_(s.element)}),this.overlays_.addEventListener(gi.REMOVE,s=>{const r=s.element.getId();r!==void 0&&delete this.overlayIdIndex_[r.toString()],s.element.setMap(null)}),this.controls.forEach(s=>{s.setMap(this)}),this.interactions.forEach(s=>{s.setMap(this)}),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(e){this.getControls().push(e)}addInteraction(e){this.getInteractions().push(e)}addLayer(e){this.getLayerGroup().getLayers().push(e)}handleLayerAdd_(e){tA(e.layer,this)}addOverlay(e){this.getOverlays().push(e)}addOverlayInternal_(e){const n=e.getId();n!==void 0&&(this.overlayIdIndex_[n.toString()]=e),e.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(e,n,i){if(!this.frameState_||!this.renderer_)return;const s=this.getCoordinateFromPixelInternal(e);i=i!==void 0?i:{};const r=i.hitTolerance!==void 0?i.hitTolerance:0,o=i.layerFilter!==void 0?i.layerFilter:yu,a=i.checkWrapped!==!1;return this.renderer_.forEachFeatureAtCoordinate(s,this.frameState_,r,a,n,null,o,null)}getFeaturesAtPixel(e,n){const i=[];return this.forEachFeatureAtPixel(e,function(s){i.push(s)},n),i}getAllLayers(){const e=[];function n(i){i.forEach(function(s){s instanceof Jl?n(s.getLayers()):e.push(s)})}return n(this.getLayers()),e}hasFeatureAtPixel(e,n){if(!this.frameState_||!this.renderer_)return!1;const i=this.getCoordinateFromPixelInternal(e);n=n!==void 0?n:{};const s=n.layerFilter!==void 0?n.layerFilter:yu,r=n.hitTolerance!==void 0?n.hitTolerance:0,o=n.checkWrapped!==!1;return this.renderer_.hasFeatureAtCoordinate(i,this.frameState_,r,o,s,null)}getEventCoordinate(e){return this.getCoordinateFromPixel(this.getEventPixel(e))}getEventCoordinateInternal(e){return this.getCoordinateFromPixelInternal(this.getEventPixel(e))}getEventPixel(e){const i=this.viewport_.getBoundingClientRect(),s=this.getSize(),r=i.width/s[0],o=i.height/s[1],a="changedTouches"in e?e.changedTouches[0]:e;return[(a.clientX-i.left)/r,(a.clientY-i.top)/o]}getTarget(){return this.get(Wn.TARGET)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(e){return Dm(this.getCoordinateFromPixelInternal(e),this.getView().getProjection())}getCoordinateFromPixelInternal(e){const n=this.frameState_;return n?Ln(n.pixelToCoordinateTransform,e.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(e){const n=this.overlayIdIndex_[e.toString()];return n!==void 0?n:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(Wn.LAYERGROUP)}setLayers(e){const n=this.getLayerGroup();if(e instanceof Ms){n.setLayers(e);return}const i=n.getLayers();i.clear(),i.extend(e)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const e=this.getLayerGroup().getLayerStatesArray();for(let n=0,i=e.length;n=0;r--){const o=s[r];if(o.getMap()!==this||!o.getActive()||!this.getTargetElement())continue;if(!o.handleEvent(e)||e.propagationStopped)break}}}handlePostRender(){const e=this.frameState_,n=this.tileQueue_;if(!n.isEmpty()){let s=this.maxTilesLoading_,r=s;if(e){const o=e.viewHints;if(o[Hn.ANIMATING]||o[Hn.INTERACTING]){const a=Date.now()-e.time>8;s=a?0:8,r=a?0:2}}n.getTilesLoading(){this.postRenderTimeoutHandle_=void 0,this.handlePostRender()},0))}setLayerGroup(e){const n=this.getLayerGroup();n&&this.handleLayerRemove_(new Hr("removelayer",n)),this.set(Wn.LAYERGROUP,e)}setSize(e){this.set(Wn.SIZE,e)}setTarget(e){this.set(Wn.TARGET,e)}setView(e){if(!e||e instanceof ks){this.set(Wn.VIEW,e);return}this.set(Wn.VIEW,new ks);const n=this;e.then(function(i){n.setView(new ks(i))})}updateSize(){const e=this.getTargetElement();let n;if(e){const s=getComputedStyle(e),r=e.offsetWidth-parseFloat(s.borderLeftWidth)-parseFloat(s.paddingLeft)-parseFloat(s.paddingRight)-parseFloat(s.borderRightWidth),o=e.offsetHeight-parseFloat(s.borderTopWidth)-parseFloat(s.paddingTop)-parseFloat(s.paddingBottom)-parseFloat(s.borderBottomWidth);!isNaN(r)&&!isNaN(o)&&(n=[Math.max(0,r),Math.max(0,o)],!Cw(n)&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)&&pT("No map visible because the map container's width or height are 0."))}const i=this.getSize();n&&(!i||!So(n,i))&&(this.setSize(n),this.updateViewportSize_(n))}updateViewportSize_(e){const n=this.getView();n&&n.setViewportSize(e)}};function Nse(t){let e=null;t.keyboardEventTarget!==void 0&&(e=typeof t.keyboardEventTarget=="string"?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);const n={},i=t.layers&&typeof t.layers.getLayers=="function"?t.layers:new Jl({layers:t.layers});n[Wn.LAYERGROUP]=i,n[Wn.TARGET]=t.target,n[Wn.VIEW]=t.view instanceof ks?t.view:new ks;let s;t.controls!==void 0&&(Array.isArray(t.controls)?s=new Ms(t.controls.slice()):(mt(typeof t.controls.getArray=="function","Expected `controls` to be an array or an `ol/Collection.js`"),s=t.controls));let r;t.interactions!==void 0&&(Array.isArray(t.interactions)?r=new Ms(t.interactions.slice()):(mt(typeof t.interactions.getArray=="function","Expected `interactions` to be an array or an `ol/Collection.js`"),r=t.interactions));let o;return t.overlays!==void 0?Array.isArray(t.overlays)?o=new Ms(t.overlays.slice()):(mt(typeof t.overlays.getArray=="function","Expected `overlays` to be an array or an `ol/Collection.js`"),o=t.overlays):o=new Ms,{controls:s,interactions:r,keyboardEventTarget:e,overlays:o,values:n}}class Xv extends Wf{constructor(e,n,i){super(),i=i||{},this.tileCoord=e,this.state=n,this.key="",this.transition_=i.transition===void 0?250:i.transition,this.transitionStarts_={},this.interpolate=!!i.interpolate}changed(){this.dispatchEvent(tt.CHANGE)}release(){this.state===Ve.ERROR&&this.setState(Ve.EMPTY)}getKey(){return this.key+"/"+this.tileCoord}getTileCoord(){return this.tileCoord}getState(){return this.state}setState(e){if(this.state!==Ve.ERROR&&this.state>e)throw new Error("Tile load sequence violation");this.state=e,this.changed()}load(){pt()}getAlpha(e,n){if(!this.transition_)return 1;let i=this.transitionStarts_[e];if(!i)i=n,this.transitionStarts_[e]=i;else if(i===-1)return 1;const s=n-i+1e3/60;return s>=this.transition_?1:bT(s/this.transition_)}inTransition(e){return this.transition_?this.transitionStarts_[e]!==-1:!1}endTransition(e){this.transition_&&(this.transitionStarts_[e]=-1)}disposeInternal(){this.release(),super.disposeInternal()}}class nA extends Xv{constructor(e,n,i,s,r,o){super(e,n,o),this.crossOrigin_=s,this.src_=i,this.key=i,this.image_=new Image,s!==null&&(this.image_.crossOrigin=s),this.unlisten_=null,this.tileLoadFunction_=r}getImage(){return this.image_}setImage(e){this.image_=e,this.state=Ve.LOADED,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=Ve.ERROR,this.unlistenImage_(),this.image_=Fse(),this.changed()}handleImageLoad_(){const e=this.image_;e.naturalWidth&&e.naturalHeight?this.state=Ve.LOADED:this.state=Ve.EMPTY,this.unlistenImage_(),this.changed()}load(){this.state==Ve.ERROR&&(this.state=Ve.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==Ve.IDLE&&(this.state=Ve.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=oie(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}disposeInternal(){this.unlistenImage_(),this.image_=null,super.disposeInternal()}}function Fse(){const t=hn(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}const iA=.5,Bse=10,Yw=.25;class sA{constructor(e,n,i,s,r,o){this.sourceProj_=e,this.targetProj_=n;let a={};const l=Wh(this.targetProj_,this.sourceProj_);this.transformInv_=function(x){const E=x[0]+"/"+x[1];return a[E]||(a[E]=l(x)),a[E]},this.maxSourceExtent_=s,this.errorThresholdSquared_=r*r,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!s&&!!this.sourceProj_.getExtent()&&yt(s)>=yt(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?yt(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?yt(this.targetProj_.getExtent()):null;const c=xa(i),u=Kf(i),d=jf(i),h=Hf(i),g=this.transformInv_(c),p=this.transformInv_(u),m=this.transformInv_(d),v=this.transformInv_(h),y=Bse+(o?Math.max(0,Math.ceil(Math.log2(wu(i)/(o*o*256*256)))):0);if(this.addQuad_(c,u,d,h,g,p,m,v,y),this.wrapsXInSource_){let x=1/0;this.triangles_.forEach(function(E,w,b){x=Math.min(x,E.source[0][0],E.source[1][0],E.source[2][0])}),this.triangles_.forEach(E=>{if(Math.max(E.source[0][0],E.source[1][0],E.source[2][0])-x>this.sourceWorldWidth_/2){const w=[[E.source[0][0],E.source[0][1]],[E.source[1][0],E.source[1][1]],[E.source[2][0],E.source[2][1]]];w[0][0]-x>this.sourceWorldWidth_/2&&(w[0][0]-=this.sourceWorldWidth_),w[1][0]-x>this.sourceWorldWidth_/2&&(w[1][0]-=this.sourceWorldWidth_),w[2][0]-x>this.sourceWorldWidth_/2&&(w[2][0]-=this.sourceWorldWidth_);const b=Math.min(w[0][0],w[1][0],w[2][0]);Math.max(w[0][0],w[1][0],w[2][0])-b.5&&d<1;let p=!1;if(c>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){const v=cw([e,n,i,s]);p=yt(v)/this.targetWorldWidth_>Yw||p}!g&&this.sourceProj_.isGlobal()&&d&&(p=d>Yw||p)}if(!p&&this.maxSourceExtent_&&isFinite(u[0])&&isFinite(u[1])&&isFinite(u[2])&&isFinite(u[3])&&!vi(u,this.maxSourceExtent_))return;let m=0;if(!p&&(!isFinite(r[0])||!isFinite(r[1])||!isFinite(o[0])||!isFinite(o[1])||!isFinite(a[0])||!isFinite(a[1])||!isFinite(l[0])||!isFinite(l[1]))){if(c>0)p=!0;else if(m=(!isFinite(r[0])||!isFinite(r[1])?8:0)+(!isFinite(o[0])||!isFinite(o[1])?4:0)+(!isFinite(a[0])||!isFinite(a[1])?2:0)+(!isFinite(l[0])||!isFinite(l[1])?1:0),m!=1&&m!=2&&m!=4&&m!=8)return}if(c>0){if(!p){const v=[(e[0]+i[0])/2,(e[1]+i[1])/2],y=this.transformInv_(v);let x;g?x=(hl(r[0],h)+hl(a[0],h))/2-hl(y[0],h):x=(r[0]+a[0])/2-y[0];const E=(r[1]+a[1])/2-y[1];p=x*x+E*E>this.errorThresholdSquared_}if(p){if(Math.abs(e[0]-i[0])<=Math.abs(e[1]-i[1])){const v=[(n[0]+i[0])/2,(n[1]+i[1])/2],y=this.transformInv_(v),x=[(s[0]+e[0])/2,(s[1]+e[1])/2],E=this.transformInv_(x);this.addQuad_(e,n,v,x,r,o,y,E,c-1),this.addQuad_(x,v,i,s,E,y,a,l,c-1)}else{const v=[(e[0]+n[0])/2,(e[1]+n[1])/2],y=this.transformInv_(v),x=[(i[0]+s[0])/2,(i[1]+s[1])/2],E=this.transformInv_(x);this.addQuad_(e,v,x,s,r,y,E,l,c-1),this.addQuad_(v,n,i,x,y,o,a,E,c-1)}return}}if(g){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}m&11||this.addTriangle_(e,i,s,r,a,l),m&14||this.addTriangle_(e,i,n,r,a,o),m&&(m&13||this.addTriangle_(n,s,e,o,l,r),m&7||this.addTriangle_(n,s,i,o,l,a))}calculateSourceExtent(){const e=Gi();return this.triangles_.forEach(function(n,i,s){const r=n.source;Zc(e,r[0]),Zc(e,r[1]),Zc(e,r[2])}),e}getTriangles(){return this.triangles_}}let Sp;const mr=[];function Hw(t,e,n,i,s){t.beginPath(),t.moveTo(0,0),t.lineTo(e,n),t.lineTo(i,s),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,i)+1,Math.max(n,s)),t.restore()}function kp(t,e){return Math.abs(t[e*4]-210)>2||Math.abs(t[e*4+3]-.75*255)>2}function Vse(){if(Sp===void 0){const t=hn(6,6,mr);t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",Hw(t,4,5,4,0),Hw(t,4,5,0,5);const e=t.getImageData(0,0,3,3).data;Sp=kp(e,0)||kp(e,4)||kp(e,8),Wl(t),mr.push(t.canvas)}return Sp}function jw(t,e,n,i){const s=vT(n,e,t);let r=dw(e,i,n);const o=e.getMetersPerUnit();o!==void 0&&(r*=o);const a=t.getMetersPerUnit();a!==void 0&&(r/=a);const l=t.getExtent();if(!l||zl(l,s)){const c=dw(t,r,s)/r;isFinite(c)&&c>0&&(r/=c)}return r}function rA(t,e,n,i){const s=pa(n);let r=jw(t,e,s,i);return(!isFinite(r)||r<=0)&&hT(n,function(o){return r=jw(t,e,o,i),isFinite(r)&&r>0}),r}function oA(t,e,n,i,s,r,o,a,l,c,u,d,h,g){const p=hn(Math.round(n*t),Math.round(n*e),mr);if(d||(p.imageSmoothingEnabled=!1),l.length===0)return p.canvas;p.scale(n,n);function m(b){return Math.round(b*n)/n}p.globalCompositeOperation="lighter";const v=Gi();l.forEach(function(b,C,k){qte(v,b.extent)});let y;const x=n/i,E=(d?1:1+Math.pow(2,-24))/x;if(!h||l.length!==1||c!==0){if(y=hn(Math.round(yt(v)*x),Math.round(Un(v)*x),mr),d||(y.imageSmoothingEnabled=!1),s&&g){const b=(s[0]-v[0])*x,C=-(s[3]-v[3])*x,k=yt(s)*x,T=Un(s)*x;y.rect(b,C,k,T),y.clip()}l.forEach(function(b,C,k){if(b.image.width>0&&b.image.height>0){if(b.clipExtent){y.save();const Y=(b.clipExtent[0]-v[0])*x,ne=-(b.clipExtent[3]-v[3])*x,N=yt(b.clipExtent)*x,B=Un(b.clipExtent)*x;y.rect(d?Y:Math.round(Y),d?ne:Math.round(ne),d?N:Math.round(Y+N)-Math.round(Y),d?B:Math.round(ne+B)-Math.round(ne)),y.clip()}const T=(b.extent[0]-v[0])*x,A=-(b.extent[3]-v[3])*x,I=yt(b.extent)*x,V=Un(b.extent)*x;y.drawImage(b.image,c,c,b.image.width-2*c,b.image.height-2*c,d?T:Math.round(T),d?A:Math.round(A),d?I:Math.round(T+I)-Math.round(T),d?V:Math.round(A+V)-Math.round(A)),b.clipExtent&&y.restore()}})}const w=xa(o);return a.getTriangles().forEach(function(b,C,k){const T=b.source,A=b.target;let I=T[0][0],V=T[0][1],Y=T[1][0],ne=T[1][1],N=T[2][0],B=T[2][1];const R=m((A[0][0]-w[0])/r),z=m(-(A[0][1]-w[1])/r),X=m((A[1][0]-w[0])/r),J=m(-(A[1][1]-w[1])/r),H=m((A[2][0]-w[0])/r),ce=m(-(A[2][1]-w[1])/r),ie=I,te=V;I=0,V=0,Y-=ie,ne-=te,N-=ie,B-=te;const D=[[Y,ne,0,0,X-R],[N,B,0,0,H-R],[0,0,Y,ne,J-z],[0,0,N,B,ce-z]],ee=Bte(D);if(!ee)return;if(p.save(),p.beginPath(),Vse()||!d){p.moveTo(X,J);const $=4,le=R-X,de=z-J;for(let xe=0;xe<$;xe++)p.lineTo(X+m((xe+1)*le/$),J+m(xe*de/($-1))),xe!=$-1&&p.lineTo(X+m((xe+1)*le/$),J+m((xe+1)*de/($-1)));p.lineTo(H,ce)}else p.moveTo(X,J),p.lineTo(R,z),p.lineTo(H,ce);p.clip(),p.transform(ee[0],ee[2],ee[1],ee[3],R,z),p.translate(v[0]-ie,v[3]-te);let ue;if(y)ue=y.canvas,p.scale(E,-E);else{const $=l[0],le=$.extent;ue=$.image,p.scale(yt(le)/ue.width,-Un(le)/ue.height)}p.drawImage(ue,0,0),p.restore()}),y&&(Wl(y),mr.push(y.canvas)),u&&(p.save(),p.globalCompositeOperation="source-over",p.strokeStyle="black",p.lineWidth=1,a.getTriangles().forEach(function(b,C,k){const T=b.target,A=(T[0][0]-w[0])/r,I=-(T[0][1]-w[1])/r,V=(T[1][0]-w[0])/r,Y=-(T[1][1]-w[1])/r,ne=(T[2][0]-w[0])/r,N=-(T[2][1]-w[1])/r;p.beginPath(),p.moveTo(V,Y),p.lineTo(A,I),p.lineTo(ne,N),p.closePath(),p.stroke()}),p.restore()),p.canvas}class Bm extends Xv{constructor(e,n,i,s,r,o,a,l,c,u,d,h){super(r,Ve.IDLE,h),this.renderEdges_=d!==void 0?d:!1,this.pixelRatio_=a,this.gutter_=l,this.canvas_=null,this.sourceTileGrid_=n,this.targetTileGrid_=s,this.wrappedTileCoord_=o||r,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0,this.clipExtent_=e.canWrapX()?e.getExtent():void 0;const g=s.getTileCoordExtent(this.wrappedTileCoord_),p=this.targetTileGrid_.getExtent();let m=this.sourceTileGrid_.getExtent();const v=p?cs(g,p):g;if(wu(v)===0){this.state=Ve.EMPTY;return}const y=e.getExtent();y&&(m?m=cs(m,y):m=y);const x=s.getResolution(this.wrappedTileCoord_[0]),E=rA(e,i,v,x);if(!isFinite(E)||E<=0){this.state=Ve.EMPTY;return}const w=u!==void 0?u:iA;if(this.triangulation_=new sA(e,i,v,m,E*w,x),this.triangulation_.getTriangles().length===0){this.state=Ve.EMPTY;return}this.sourceZ_=n.getZForResolution(E);let b=this.triangulation_.calculateSourceExtent();if(m&&(e.canWrapX()?(b[1]=rn(b[1],m[1],m[3]),b[3]=rn(b[3],m[1],m[3])):b=cs(b,m)),!wu(b))this.state=Ve.EMPTY;else{let C=0,k=0;e.canWrapX()&&(C=yt(y),k=Math.floor((b[0]-y[0])/C)),xv(b.slice(),e,!0).forEach(A=>{const I=n.getTileRangeForExtentAndZ(A,this.sourceZ_);for(let V=I.minX;V<=I.maxX;V++)for(let Y=I.minY;Y<=I.maxY;Y++){const ne=c(this.sourceZ_,V,Y,a);if(ne){const N=k*C;this.sourceTiles_.push({tile:ne,offset:N})}}++k}),this.sourceTiles_.length===0&&(this.state=Ve.EMPTY)}}getImage(){return this.canvas_}reproject_(){const e=[];if(this.sourceTiles_.forEach(n=>{const i=n.tile;if(i&&i.getState()==Ve.LOADED){const s=this.sourceTileGrid_.getTileCoordExtent(i.tileCoord);s[0]+=n.offset,s[2]+=n.offset;const r=this.clipExtent_?.slice();r&&(r[0]+=n.offset,r[2]+=n.offset),e.push({extent:s,clipExtent:r,image:i.getImage()})}}),this.sourceTiles_.length=0,e.length===0)this.state=Ve.ERROR;else{const n=this.wrappedTileCoord_[0],i=this.targetTileGrid_.getTileSize(n),s=typeof i=="number"?i:i[0],r=typeof i=="number"?i:i[1],o=this.targetTileGrid_.getResolution(n),a=this.sourceTileGrid_.getResolution(this.sourceZ_),l=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=oA(s,r,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),o,l,this.triangulation_,e,this.gutter_,this.renderEdges_,this.interpolate),this.state=Ve.LOADED}this.changed()}load(){if(this.state==Ve.IDLE){this.state=Ve.LOADING,this.changed();let e=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(({tile:n})=>{const i=n.getState();if(i==Ve.IDLE||i==Ve.LOADING){e++;const s=ft(n,tt.CHANGE,r=>{const o=n.getState();(o==Ve.LOADED||o==Ve.ERROR||o==Ve.EMPTY)&&(Lt(s),e--,e===0&&(this.unlistenSources_(),this.reproject_()))});this.sourcesListenerKeys_.push(s)}}),e===0?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function({tile:n},i,s){n.getState()==Ve.IDLE&&n.load()})}}unlistenSources_(){this.sourcesListenerKeys_.forEach(Lt),this.sourcesListenerKeys_=null}release(){this.canvas_&&(Wl(this.canvas_.getContext("2d")),mr.push(this.canvas_),this.canvas_=null),super.release()}}const Tp={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"};class aA extends zs{constructor(e){super(),this.projection=Xi(e.projection),this.attributions_=Kw(e.attributions),this.attributionsCollapsible_=e.attributionsCollapsible??!0,this.loading=!1,this.state_=e.state!==void 0?e.state:"ready",this.wrapX_=e.wrapX!==void 0?e.wrapX:!1,this.interpolate_=!!e.interpolate,this.viewResolver=null,this.viewRejector=null;const n=this;this.viewPromise_=new Promise(function(i,s){n.viewResolver=i,n.viewRejector=s})}getAttributions(){return this.attributions_}getAttributionsCollapsible(){return this.attributionsCollapsible_}getProjection(){return this.projection}getResolutions(e){return null}getView(){return this.viewPromise_}getState(){return this.state_}getWrapX(){return this.wrapX_}getInterpolate(){return this.interpolate_}refresh(){this.changed()}setAttributions(e){this.attributions_=Kw(e),this.changed()}setState(e){this.state_=e,this.changed()}}function Kw(t){return t?typeof t=="function"?t:(Array.isArray(t)||(t=[t]),e=>t):null}class qv{constructor(e,n,i,s){this.minX=e,this.maxX=n,this.minY=i,this.maxY=s}contains(e){return this.containsXY(e[1],e[2])}containsTileRange(e){return this.minX<=e.minX&&e.maxX<=this.maxX&&this.minY<=e.minY&&e.maxY<=this.maxY}containsXY(e,n){return this.minX<=e&&e<=this.maxX&&this.minY<=n&&n<=this.maxY}equals(e){return this.minX==e.minX&&this.minY==e.minY&&this.maxX==e.maxX&&this.maxY==e.maxY}extend(e){e.minXthis.maxX&&(this.maxX=e.maxX),e.minYthis.maxY&&(this.maxY=e.maxY)}getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(e){return this.minX<=e.maxX&&this.maxX>=e.minX&&this.minY<=e.maxY&&this.maxY>=e.minY}}function Ya(t,e,n,i,s){return s!==void 0?(s.minX=t,s.maxX=e,s.minY=n,s.maxY=i,s):new qv(t,e,n,i)}function qh(t,e,n,i){return i!==void 0?(i[0]=t,i[1]=e,i[2]=n,i):[t,e,n]}function zse(t,e,n){return t+"/"+e+"/"+n}function Wse(t){return Yse(t[0],t[1],t[2])}function Yse(t,e,n){return(e<n||n>e.getMaxZoom())return!1;const r=e.getFullTileRange(n);return r?r.containsXY(i,s):!0}const Ha=[0,0,0],Dr=5;class lA{constructor(e){this.minZoom=e.minZoom!==void 0?e.minZoom:0,this.resolutions_=e.resolutions,mt($te(this.resolutions_,(s,r)=>r-s),"`resolutions` must be sorted in descending order");let n;if(!e.origins){for(let s=0,r=this.resolutions_.length-1;s{const o=new qv(Math.min(0,s[0]),Math.max(s[0]-1,-1),Math.min(0,s[1]),Math.max(s[1]-1,-1));if(i){const a=this.getTileRangeForExtentAndZ(i,r);o.minX=Math.max(a.minX,o.minX),o.maxX=Math.min(a.maxX,o.maxX),o.minY=Math.max(a.minY,o.minY),o.maxY=Math.min(a.maxY,o.maxY)}return o}):i&&this.calculateTileRanges_(i)}forEachTileCoord(e,n,i){const s=this.getTileRangeForExtentAndZ(e,n);for(let r=s.minX,o=s.maxX;r<=o;++r)for(let a=s.minY,l=s.maxY;a<=l;++a)i([n,r,a])}forEachTileCoordParentTileRange(e,n,i,s){let r,o,a,l=null,c=e[0]-1;for(this.zoomFactor_===2?(o=e[1],a=e[2]):l=this.getTileCoordExtent(e,s);c>=this.minZoom;){if(o!==void 0&&a!==void 0?(o=Math.floor(o/2),a=Math.floor(a/2),r=Ya(o,o,a,a,i)):r=this.getTileRangeForExtentAndZ(l,c,i),n(c,r))return!0;--c}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(e){return this.origin_?this.origin_:this.origins_[e]}getResolution(e){return this.resolutions_[e]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(e,n,i){if(e[0]this.maxZoom||n0?i:Math.max(r/n[0],s/n[1]);const o=e+1,a=new Array(o);for(let l=0;lthis.getTileInternal(g,p,m,v,o),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return h.key=l,h}getTileInternal(e,n,i,s,r){const o=this.getKey();return this.createTile_(e,n,i,s,r,o)}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,n){const i=Xi(e);if(i){const s=Et(i);s in this.tileGridForProjection||(this.tileGridForProjection[s]=n)}}}function are(t,e){t.getImage().src=e}class lre extends ore{constructor(e){e=e||{};const n=e.projection!==void 0?e.projection:"EPSG:3857",i=e.tileGrid!==void 0?e.tileGrid:Use({extent:Zv(n),maxResolution:e.maxResolution,maxZoom:e.maxZoom,minZoom:e.minZoom,tileSize:e.tileSize});super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:n,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileGrid:i,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX!==void 0?e.wrapX:!0,transition:e.transition,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.gutter_=e.gutter!==void 0?e.gutter:0}getGutter(){return this.gutter_}}const cre='© OpenStreetMap contributors.';class ure extends lre{constructor(e){e=e||{};let n;e.attributions!==void 0?n=e.attributions:n=[cre];const i=e.crossOrigin!==void 0?e.crossOrigin:"anonymous",s=e.url!==void 0?e.url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png";super({attributions:n,attributionsCollapsible:!1,cacheSize:e.cacheSize,crossOrigin:i,interpolate:e.interpolate,maxZoom:e.maxZoom!==void 0?e.maxZoom:19,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileLoadFunction:e.tileLoadFunction,transition:e.transition,url:s,wrapX:e.wrapX,zDirection:e.zDirection})}}const Qd={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"};class dre extends qf{constructor(e){e=e||{};const n=Object.assign({},e),i=e.cacheSize;delete e.cacheSize,delete n.preload,delete n.useInterimTilesOnError,super(n),this.on,this.once,this.un,this.cacheSize_=i,this.setPreload(e.preload!==void 0?e.preload:0),this.setUseInterimTilesOnError(e.useInterimTilesOnError!==void 0?e.useInterimTilesOnError:!0)}getCacheSize(){return this.cacheSize_}getPreload(){return this.get(Qd.PRELOAD)}setPreload(e){this.set(Qd.PRELOAD,e)}getUseInterimTilesOnError(){return this.get(Qd.USE_INTERIM_TILES_ON_ERROR)}setUseInterimTilesOnError(e){this.set(Qd.USE_INTERIM_TILES_ON_ERROR,e)}getData(e){return super.getData(e)}}const hre=5;class fre extends Zu{constructor(e){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=e,this.staleKeys_=new Array,this.maxStaleKeys=hre}getStaleKeys(){return this.staleKeys_}prependStaleKey(e){this.staleKeys_.unshift(e),this.staleKeys_.length>this.maxStaleKeys&&(this.staleKeys_.length=this.maxStaleKeys)}getFeatures(e){return pt()}getData(e){return null}prepareFrame(e){return pt()}renderFrame(e,n){return pt()}forEachFeatureAtCoordinate(e,n,i,s,r){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(e){const n=e.target;(n.getState()===ot.LOADED||n.getState()===ot.ERROR)&&this.renderIfReadyAndVisible()}loadImage(e){let n=e.getState();return n!=ot.LOADED&&n!=ot.ERROR&&e.addEventListener(tt.CHANGE,this.boundHandleImageChange_),n==ot.IDLE&&(e.load(),n=e.getState()),n==ot.LOADED}renderIfReadyAndVisible(){const e=this.getLayer();e&&e.getVisible()&&e.getSourceState()==="ready"&&e.changed()}renderDeferred(e){}disposeInternal(){delete this.layer_,super.disposeInternal()}}class dA{constructor(){this.instructions_=[],this.zIndex=0,this.offset_=0,this.context_=new Proxy(Hh(),{get:(e,n)=>{if(typeof Hh()[n]=="function")return this.instructions_[this.zIndex+this.offset_]||(this.instructions_[this.zIndex+this.offset_]=[]),this.instructions_[this.zIndex+this.offset_].push(n),this.pushMethodArgs_},set:(e,n,i)=>(this.instructions_[this.zIndex+this.offset_]||(this.instructions_[this.zIndex+this.offset_]=[]),this.instructions_[this.zIndex+this.offset_].push(n,i),!0)})}pushMethodArgs_=(...e)=>(this.instructions_[this.zIndex+this.offset_].push(e),this);pushFunction(e){this.instructions_[this.zIndex+this.offset_].push(e)}getContext(){return this.context_}draw(e){this.instructions_.forEach(n=>{for(let i=0,s=n.length;i0&&this.getCount()>this.highWaterMark}expireCache(e){for(;this.canExpireCache();){const n=this.pop();n instanceof Bf&&n.dispose()}}clear(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}containsKey(e){return this.entries_.hasOwnProperty(e)}forEach(e){let n=this.oldest_;for(;n;)e(n.value_,n.key_,this),n=n.newer}get(e,n){const i=this.entries_[e];return mt(i!==void 0,"Tried to get a value for a key that does not exist in the cache"),i===this.newest_||(i===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(i.newer.older=i.older,i.older.newer=i.newer),i.newer=null,i.older=this.newest_,this.newest_.newer=i,this.newest_=i),i.value_}remove(e){const n=this.entries_[e];return mt(n!==void 0,"Tried to get a value for a key that does not exist in the cache"),n===this.newest_?(this.newest_=n.older,this.newest_&&(this.newest_.newer=null)):n===this.oldest_?(this.oldest_=n.newer,this.oldest_&&(this.oldest_.older=null)):(n.newer.older=n.older,n.older.newer=n.newer),delete this.entries_[e],--this.count_,n.value_}getCount(){return this.count_}getKeys(){const e=new Array(this.count_);let n=0,i;for(i=this.newest_;i;i=i.older)e[n++]=i.key_;return e}getValues(){const e=new Array(this.count_);let n=0,i;for(i=this.newest_;i;i=i.older)e[n++]=i.value_;return e}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(e){return this.entries_[e]?.value_}pop(){const e=this.oldest_;return delete this.entries_[e.key_],e.newer&&(e.newer.older=null),this.oldest_=e.newer,this.oldest_||(this.newest_=null),--this.count_,e.value_}replace(e,n){this.get(e),this.entries_[e].value_=n}set(e,n){mt(!(e in this.entries_),"Tried to set a value for a key that is used already");const i={key_:e,newer:null,older:this.newest_,value_:n};this.newest_?this.newest_.newer=i:this.oldest_=i,this.newest_=i,this.entries_[e]=i,++this.count_}setSize(e){this.highWaterMark=e}}class bre extends Vm{constructor(e){super({tileCoord:e.tileCoord,loader:()=>Promise.resolve(new Uint8ClampedArray(4)),interpolate:e.interpolate,transition:e.transition}),this.pixelRatio_=e.pixelRatio,this.gutter_=e.gutter,this.reprojData_=null,this.reprojError_=null,this.reprojSize_=void 0,this.sourceTileGrid_=e.sourceTileGrid,this.targetTileGrid_=e.targetTileGrid,this.wrappedTileCoord_=e.wrappedTileCoord||e.tileCoord,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;const n=e.sourceProj,i=n.getExtent(),s=e.sourceTileGrid.getExtent();this.clipExtent_=n.canWrapX()?s?cs(i,s):i:s;const r=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_),o=this.targetTileGrid_.getExtent();let a=this.sourceTileGrid_.getExtent();const l=o?cs(r,o):r;if(wu(l)===0){this.state=Ve.EMPTY;return}i&&(a?a=cs(a,i):a=i);const c=this.targetTileGrid_.getResolution(this.wrappedTileCoord_[0]),u=e.targetProj,d=rA(n,u,l,c);if(!isFinite(d)||d<=0){this.state=Ve.EMPTY;return}const h=e.errorThreshold!==void 0?e.errorThreshold:iA;if(this.triangulation_=new sA(n,u,l,a,d*h,c),this.triangulation_.getTriangles().length===0){this.state=Ve.EMPTY;return}this.sourceZ_=this.sourceTileGrid_.getZForResolution(d);let g=this.triangulation_.calculateSourceExtent();if(a&&(n.canWrapX()?(g[1]=rn(g[1],a[1],a[3]),g[3]=rn(g[3],a[1],a[3])):g=cs(g,a)),!wu(g))this.state=Ve.EMPTY;else{let p=0,m=0;n.canWrapX()&&(p=yt(i),m=Math.floor((g[0]-i[0])/p)),xv(g.slice(),n,!0).forEach(y=>{const x=this.sourceTileGrid_.getTileRangeForExtentAndZ(y,this.sourceZ_),E=e.getTileFunction;for(let w=x.minX;w<=x.maxX;w++)for(let b=x.minY;b<=x.maxY;b++){const C=E(this.sourceZ_,w,b,this.pixelRatio_);if(C){const k=m*p;this.sourceTiles_.push({tile:C,offset:k})}}++m}),this.sourceTiles_.length===0&&(this.state=Ve.EMPTY)}}getSize(){return this.reprojSize_}getData(){return this.reprojData_}getError(){return this.reprojError_}reproject_(){const e=[];let n=!1;if(this.sourceTiles_.forEach(p=>{const m=p.tile;if(!m||m.getState()!==Ve.LOADED)return;const v=m.getSize(),y=this.gutter_;let x;const E=pre(m.getData());E?x=E:(n=!0,x=_re(Zh(m.getData())));const w=[v[0]+2*y,v[1]+2*y],b=x instanceof Float32Array,C=w[0]*w[1],k=b?Float32Array:Uint8ClampedArray,T=new k(x.buffer),A=k.BYTES_PER_ELEMENT,I=A*T.length/C,V=T.byteLength/w[1],Y=Math.floor(V/A/w[0]),ne=C*Y;let N=T;if(T.length!==ne){N=new k(ne);let z=0,X=0;const J=w[0]*Y;for(let H=0;H=0;--p){const m=[];for(let b=0,C=e.length;b{const i=n.getState();if(i!==Ve.IDLE&&i!==Ve.LOADING)return;e++;const s=ft(n,tt.CHANGE,()=>{const r=n.getState();(r==Ve.LOADED||r==Ve.ERROR||r==Ve.EMPTY)&&(Lt(s),e--,e===0&&(this.unlistenSources_(),this.reproject_()))});this.sourcesListenerKeys_.push(s)}),e===0?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function({tile:n}){n.getState()==Ve.IDLE&&n.load()})}unlistenSources_(){this.sourcesListenerKeys_.forEach(Lt),this.sourcesListenerKeys_=null}}function Ap(t,e,n,i){return`${t},${zse(e,n,i)}`}function Pp(t,e,n){if(!(n in t))return t[n]=new Set([e]),!0;const i=t[n],s=i.has(e);return s||i.add(e),!s}function wre(t,e,n){const i=t[n];return i?i.delete(e):!1}function Gw(t,e){const n=t.layerStatesArray[t.layerIndex];n.extent&&(e=cs(e,Zr(n.extent,t.viewState.projection)));const i=n.layer.getRenderSource();if(!i.getWrapX()){const s=i.getTileGridForProjection(t.viewState.projection).getExtent();s&&(e=cs(e,s))}return e}class xre extends hA{constructor(e,n){super(e),n=n||{},this.extentChanged=!0,this.renderComplete=!1,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision,this.renderedTiles=[],this.renderedSourceKey_,this.renderedSourceRevision_,this.tempExtent=Gi(),this.tempTileRange_=new qv(0,0,0,0),this.tempTileCoord_=qh(0,0,0);const i=n.cacheSize!==void 0?n.cacheSize:512;this.tileCache_=new yre(i),this.renderedProjection_=void 0,this.maxStaleKeys=i*.5}getTileCache(){return this.tileCache_}getOrCreateTile(e,n,i,s){const r=this.tileCache_,a=this.getLayer().getSource(),l=Ap(a.getKey(),e,n,i);let c;if(r.containsKey(l))c=r.get(l);else{if(c=a.getTile(e,n,i,s.pixelRatio,s.viewState.projection),!c)return null;r.set(l,c)}return c}getTile(e,n,i,s){const r=this.getOrCreateTile(e,n,i,s);return r||null}getData(e){const n=this.frameState;if(!n)return null;const i=this.getLayer(),s=Ln(n.pixelToCoordinateTransform,e.slice()),r=i.getExtent();if(r&&!zl(r,s))return null;const o=n.viewState,a=i.getRenderSource(),l=a.getTileGridForProjection(o.projection),c=a.getTilePixelRatio(n.pixelRatio);for(let u=l.getZForResolution(o.resolution);u>=l.getMinZoom();--u){const d=l.getTileCoordForCoordAndZ(s,u),h=this.getTile(u,d[1],d[2],n);if(!h||h.getState()!==Ve.LOADED)continue;const g=l.getOrigin(u),p=wi(l.getTileSize(u)),m=l.getResolution(u);let v;if(h instanceof nA||h instanceof Bm)v=h.getImage();else if(h instanceof Vm){if(v=Zh(h.getData()),!v)continue}else continue;const y=Math.floor(c*((s[0]-g[0])/m-d[1]*p[0])),x=Math.floor(c*((g[1]-s[1])/m-d[2]*p[1])),E=Math.round(c*a.getGutterForProjection(o.projection));return this.getImageData(v,y+E,x+E)}return null}prepareFrame(e){this.renderedProjection_?e.viewState.projection!==this.renderedProjection_&&(this.tileCache_.clear(),this.renderedProjection_=e.viewState.projection):this.renderedProjection_=e.viewState.projection;const n=this.getLayer().getSource();if(!n)return!1;const i=n.getRevision();return this.renderedRevision_?this.renderedRevision_!==i&&(this.renderedRevision_=i,this.renderedSourceKey_===n.getKey()&&this.tileCache_.clear()):this.renderedRevision_=i,!0}enqueueTiles(e,n,i,s,r){const o=e.viewState,a=this.getLayer(),l=a.getRenderSource(),c=l.getTileGridForProjection(o.projection),u=Et(l);u in e.wantedTiles||(e.wantedTiles[u]={});const d=e.wantedTiles[u],h=a.getMapInternal(),g=Math.max(i-r,c.getMinZoom(),c.getZForResolution(Math.min(a.getMaxResolution(),h?h.getView().getResolutionForZoom(Math.max(a.getMinZoom(),0)):c.getResolution(0)),l.zDirection));for(let p=i;p>=g;--p){const m=c.getTileRangeForExtentAndZ(n,p,this.tempTileRange_),v=c.getResolution(p);for(let y=m.minX;y<=m.maxX;++y)for(let x=m.minY;x<=m.maxY;++x){const E=this.getTile(p,y,x,e);if(!E||!Pp(s,E,p))continue;const b=E.getKey();if(d[b]=!0,E.getState()===Ve.IDLE&&!e.tileQueue.isKeyQueued(b)){const C=qh(p,y,x,this.tempTileCoord_);e.tileQueue.enqueue([E,u,c.getTileCoordCenter(C),v])}}}}findStaleTile_(e,n){const i=this.tileCache_,s=e[0],r=e[1],o=e[2],a=this.getStaleKeys();for(let l=0;l0&&setTimeout(()=>{this.enqueueTiles(e,I,g-1,T,A-1)},0),!(g in T))return this.container;const V=Et(this),Y=e.time;for(const H of T[g]){const ce=H.getState();if((H instanceof Bm||H instanceof bre)&&ce===Ve.EMPTY)continue;const ie=H.tileCoord;if(ce===Ve.LOADED&&H.getAlpha(V,Y)===1){H.endTransition(V);continue}if(this.renderComplete=!1,this.findStaleTile_(ie,T)){wre(T,H,g),e.animate=!0;continue}if(this.findAltTiles_(h,ie,g+1,T))continue;const ee=h.getMinZoom();for(let ue=g-1;ue>=ee&&!this.findAltTiles_(h,ie,ue,T);--ue);}const ne=p/o*l/y,N=this.getRenderContext(e);br(this.tempTransform,x/2,E/2,ne,ne,0,-x/2,-E/2),i.extent&&this.clipUnrotated(N,e,w),u.getInterpolate()||(N.imageSmoothingEnabled=!1),this.preRender(N,e);const B=Object.keys(T).map(Number);B.sort(hr);let R;const z=[],X=[];for(let H=B.length-1;H>=0;--H){const ce=B[H],ie=u.getTilePixelSize(ce,l,r),D=h.getResolution(ce)/p,ee=ie[0]*D*ne,ue=ie[1]*D*ne,$=h.getTileCoordForCoordAndZ(xa(k),ce),le=h.getTileCoordExtent($),de=Ln(this.tempTransform,[y*(le[0]-k[0])/p,y*(k[3]-le[3])/p]),xe=y*u.getGutterForProjection(r);for(const W of T[ce]){if(W.getState()!==Ve.LOADED)continue;const fe=W.tileCoord,S=$[1]-fe[1],O=Math.round(de[0]-(S-1)*ee),K=$[2]-fe[2],U=Math.round(de[1]-(K-1)*ue),oe=Math.round(de[0]-S*ee),j=Math.round(de[1]-K*ue),re=O-oe,Q=U-j,ge=B.length===1;let be=!1;R=[oe,j,oe+re,j,oe+re,j+Q,oe,j+Q];for(let we=0,Pe=z.length;we{const ie=Et(u),te=ce.wantedTiles[ie],D=te?Object.keys(te).length:0;this.updateCacheSize(D),this.tileCache_.expireCache()};return e.postRenderFunctions.push(J),this.container}updateCacheSize(e){this.tileCache_.highWaterMark=Math.max(this.tileCache_.highWaterMark,e*2)}drawTile(e,n,i,s,r,o,a,l){let c;if(e instanceof Vm){if(c=Zh(e.getData()),!c)throw new Error("Rendering array data is not yet supported")}else c=this.getTileImage(e);if(!c)return;const u=this.getRenderContext(n),d=Et(this),h=n.layerStatesArray[n.layerIndex],g=h.opacity*(l?e.getAlpha(d,n.time):1),p=g!==u.globalAlpha;p&&(u.save(),u.globalAlpha=g),u.drawImage(c,a,a,c.width-2*a,c.height-2*a,i,s,r,o),p&&u.restore(),g!==h.opacity?n.animate=!0:l&&e.endTransition(d)}getImage(){const e=this.context;return e?e.canvas:null}getTileImage(e){return e.getImage()}updateUsedTiles(e,n,i){const s=Et(n);s in e||(e[s]={}),e[s][i.getKey()]=!0}}class Ere extends dre{constructor(e){super(e)}createRenderer(){return new xre(this,{cacheSize:this.getCacheSize()})}}class Jc extends zs{constructor(e){if(super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),e)if(typeof e.getSimplifiedGeometry=="function"){const n=e;this.setGeometry(n)}else{const n=e;this.setProperties(n)}}clone(){const e=new Jc(this.hasProperties()?this.getProperties():null);e.setGeometryName(this.getGeometryName());const n=this.getGeometry();n&&e.setGeometry(n.clone());const i=this.getStyle();return i&&e.setStyle(i),e}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&(Lt(this.geometryChangeKey_),this.geometryChangeKey_=null);const e=this.getGeometry();e&&(this.geometryChangeKey_=ft(e,tt.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(e){this.set(this.geometryName_,e)}setStyle(e){this.style_=e,this.styleFunction_=e?Cre(e):void 0,this.changed()}setId(e){this.id_=e,this.changed()}setGeometryName(e){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=e,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}}function Cre(t){if(typeof t=="function")return t;let e;return Array.isArray(t)?e=t:(mt(typeof t.getZIndex=="function","Expected an `ol/style/Style` or an array of `ol/style/Style.js`"),e=[t]),function(){return e}}function zm(t,e,n,i,s,r,o){let a,l;const c=(n-e)/i;if(c===1)a=e;else if(c===2)a=e,l=s;else if(c!==0){let u=t[e],d=t[e+1],h=0;const g=[0];for(let v=e+i;v1?o:2,r=r||new Array(o);for(let u=0;u>1;sl&&(this.instructions.push([Ue.CUSTOM,l,u,e,i,qo,r]),this.hitDetectionInstructions.push([Ue.CUSTOM,l,u,e,s||i,qo,r]));break;case"Point":c=e.getFlatCoordinates(),this.coordinates.push(c[0],c[1]),u=this.coordinates.length,this.instructions.push([Ue.CUSTOM,l,u,e,i,void 0,r]),this.hitDetectionInstructions.push([Ue.CUSTOM,l,u,e,s||i,void 0,r]);break}this.endGeometry(n)}beginGeometry(e,n,i){this.beginGeometryInstruction1_=[Ue.BEGIN_GEOMETRY,n,0,e,i],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[Ue.BEGIN_GEOMETRY,n,0,e,i],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){const e=this.hitDetectionInstructions;e.reverse();let n;const i=e.length;let s,r,o=-1;for(n=0;nthis.maxLineWidth&&(this.maxLineWidth=i.lineWidth,this.bufferedMaxExtent_=null)}else i.strokeStyle=void 0,i.lineCap=void 0,i.lineDash=null,i.lineDashOffset=void 0,i.lineJoin=void 0,i.lineWidth=void 0,i.miterLimit=void 0}createFill(e){const n=e.fillStyle,i=[Ue.SET_FILL_STYLE,n];return typeof n!="string"&&i.push(e.fillPatternScale),i}applyStroke(e){this.instructions.push(this.createStroke(e))}createStroke(e){return[Ue.SET_STROKE_STYLE,e.strokeStyle,e.lineWidth*this.pixelRatio,e.lineCap,e.lineJoin,e.miterLimit,this.applyPixelRatio(e.lineDash),e.lineDashOffset*this.pixelRatio]}updateFillStyle(e,n){const i=e.fillStyle;(typeof i!="string"||e.currentFillStyle!=i)&&(i!==void 0&&this.instructions.push(n.call(this,e)),e.currentFillStyle=i)}updateStrokeStyle(e,n){const i=e.strokeStyle,s=e.lineCap,r=e.lineDash,o=e.lineDashOffset,a=e.lineJoin,l=e.lineWidth,c=e.miterLimit;(e.currentStrokeStyle!=i||e.currentLineCap!=s||r!=e.currentLineDash&&!So(e.currentLineDash,r)||e.currentLineDashOffset!=o||e.currentLineJoin!=a||e.currentLineWidth!=l||e.currentMiterLimit!=c)&&(i!==void 0&&n.call(this,e),e.currentStrokeStyle=i,e.currentLineCap=s,e.currentLineDash=r,e.currentLineDashOffset=o,e.currentLineJoin=a,e.currentLineWidth=l,e.currentMiterLimit=c)}endGeometry(e){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;const n=[Ue.END_GEOMETRY,e];this.instructions.push(n),this.hitDetectionInstructions.push(n)}getBufferedMaxExtent(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=lT(this.maxExtent),this.maxLineWidth>0)){const e=this.resolution*(this.maxLineWidth+1)/2;yv(this.bufferedMaxExtent_,e,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}}class kre extends id{constructor(e,n,i,s){super(e,n,i,s),this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0,this.declutterMode_=void 0,this.declutterImageWithText_=void 0}drawPoint(e,n,i){if(!this.image_||this.maxExtent&&!zl(this.maxExtent,e.getFlatCoordinates()))return;this.beginGeometry(e,n,i);const s=e.getFlatCoordinates(),r=e.getStride(),o=this.coordinates.length,a=this.appendFlatPointCoordinates(s,r);this.instructions.push([Ue.DRAW_IMAGE,o,a,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([Ue.DRAW_IMAGE,o,a,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(n)}drawMultiPoint(e,n,i){if(!this.image_)return;this.beginGeometry(e,n,i);const s=e.getFlatCoordinates(),r=[];for(let l=0,c=s.length;l=t){const p=(t-a+g)/g,m=Ai(c,d,p),v=Ai(u,h,p);l.push(m,v),r.push(l),l=[m,v],a==t&&(o+=s),a=0}else if(a0&&r.push(l),r}function Pre(t,e,n,i,s){let r=n,o=n,a=0,l=0,c=n,u,d,h,g,p,m,v,y,x,E;for(d=n;dt&&(l>a&&(a=l,r=c,o=d),l=0,c=d-s)),h=g,v=x,y=E),p=w,m=b}return l+=g,l>a?[c,d]:[r,o]}const Qh={left:0,center:.5,right:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1};class Mre extends id{constructor(e,n,i,s){super(e,n,i,s),this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.fillStates[pi]={fillStyle:pi},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.declutterMode_=void 0,this.declutterImageWithText_=void 0}finish(){const e=super.finish();return e.textStates=this.textStates,e.fillStates=this.fillStates,e.strokeStates=this.strokeStates,e}drawText(e,n,i){const s=this.textFillState_,r=this.textStrokeState_,o=this.textState_;if(this.text_===""||!o||!s&&!r)return;const a=this.coordinates;let l=a.length;const c=e.getType();let u=null,d=e.getStride();if(o.placement==="line"&&(c=="LineString"||c=="MultiLineString"||c=="Polygon"||c=="MultiPolygon")){if(!vi(this.maxExtent,e.getExtent()))return;let h;if(u=e.getFlatCoordinates(),c=="LineString")h=[u.length];else if(c=="MultiLineString")h=e.getEnds();else if(c=="Polygon")h=e.getEnds().slice(0,1);else if(c=="MultiPolygon"){const v=e.getEndss();h=[];for(let y=0,x=v.length;y{const b=a[(x+w)*2]===u[w*d]&&a[(x+w)*2+1]===u[w*d+1];return b||--x,b})}this.saveTextStates_(),(o.backgroundFill||o.backgroundStroke)&&(this.setFillStrokeStyle(o.backgroundFill,o.backgroundStroke),o.backgroundFill&&this.updateFillStyle(this.state,this.createFill),o.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(e,n,i);let p=o.padding;if(p!=Jo&&(o.scale[0]<0||o.scale[1]<0)){let x=o.padding[0],E=o.padding[1],w=o.padding[2],b=o.padding[3];o.scale[0]<0&&(E=-E,b=-b),o.scale[1]<0&&(x=-x,w=-w),p=[x,E,w,b]}const m=this.pixelRatio;this.instructions.push([Ue.DRAW_IMAGE,l,g,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,this.declutterMode_,this.declutterImageWithText_,p==Jo?Jo:p.map(function(x){return x*m}),!!o.backgroundFill,!!o.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,h]);const v=1/m,y=this.state.fillStyle;o.backgroundFill&&(this.state.fillStyle=pi,this.hitDetectionInstructions.push(this.createFill(this.state))),this.hitDetectionInstructions.push([Ue.DRAW_IMAGE,l,g,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[v,v],NaN,this.declutterMode_,this.declutterImageWithText_,p,!!o.backgroundFill,!!o.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_?pi:this.fillKey_,this.textOffsetX_,this.textOffsetY_,h]),o.backgroundFill&&(this.state.fillStyle=y,this.hitDetectionInstructions.push(this.createFill(this.state))),this.endGeometry(n)}}saveTextStates_(){const e=this.textStrokeState_,n=this.textState_,i=this.textFillState_,s=this.strokeKey_;e&&(s in this.strokeStates||(this.strokeStates[s]={strokeStyle:e.strokeStyle,lineCap:e.lineCap,lineDashOffset:e.lineDashOffset,lineWidth:e.lineWidth,lineJoin:e.lineJoin,miterLimit:e.miterLimit,lineDash:e.lineDash}));const r=this.textKey_;r in this.textStates||(this.textStates[r]={font:n.font,textAlign:n.textAlign||Pu,justify:n.justify,textBaseline:n.textBaseline||jh,scale:n.scale});const o=this.fillKey_;i&&(o in this.fillStates||(this.fillStates[o]={fillStyle:i.fillStyle}))}drawChars_(e,n){const i=this.textStrokeState_,s=this.textState_,r=this.strokeKey_,o=this.textKey_,a=this.fillKey_;this.saveTextStates_();const l=this.pixelRatio,c=Qh[s.textBaseline],u=this.textOffsetY_*l,d=this.text_,h=i?i.lineWidth*Math.abs(s.scale[0])/2:0;this.instructions.push([Ue.DRAW_CHARS,e,n,c,s.overflow,a,s.maxAngle,l,u,r,h*l,d,o,1,this.declutterMode_]),this.hitDetectionInstructions.push([Ue.DRAW_CHARS,e,n,c,s.overflow,a&&pi,s.maxAngle,l,u,r,h*l,d,o,1/l,this.declutterMode_])}setTextStyle(e,n){let i,s,r;if(!e)this.text_="";else{const o=e.getFill();o?(s=this.textFillState_,s||(s={},this.textFillState_=s),s.fillStyle=Ds(o.getColor()||pi)):(s=null,this.textFillState_=s);const a=e.getStroke();if(!a)r=null,this.textStrokeState_=r;else{r=this.textStrokeState_,r||(r={},this.textStrokeState_=r);const p=a.getLineDash(),m=a.getLineDashOffset(),v=a.getWidth(),y=a.getMiterLimit();r.lineCap=a.getLineCap()||Yl,r.lineDash=p?p.slice():fr,r.lineDashOffset=m===void 0?gr:m,r.lineJoin=a.getLineJoin()||Hl,r.lineWidth=v===void 0?Mu:v,r.miterLimit=y===void 0?Tu:y,r.strokeStyle=Ds(a.getColor()||Au)}i=this.textState_;const l=e.getFont()||FT;fie(l);const c=e.getScaleArray();i.overflow=e.getOverflow(),i.font=l,i.maxAngle=e.getMaxAngle(),i.placement=e.getPlacement(),i.textAlign=e.getTextAlign(),i.repeat=e.getRepeat(),i.justify=e.getJustify(),i.textBaseline=e.getTextBaseline()||jh,i.backgroundFill=e.getBackgroundFill(),i.backgroundStroke=e.getBackgroundStroke(),i.padding=e.getPadding()||Jo,i.scale=c===void 0?[1,1]:c;const u=e.getOffsetX(),d=e.getOffsetY(),h=e.getRotateWithView(),g=e.getRotation();this.text_=e.getText()||"",this.textOffsetX_=u===void 0?0:u,this.textOffsetY_=d===void 0?0:d,this.textRotateWithView_=h===void 0?!1:h,this.textRotation_=g===void 0?0:g,this.strokeKey_=r?(typeof r.strokeStyle=="string"?r.strokeStyle:Et(r.strokeStyle))+r.lineCap+r.lineDashOffset+"|"+r.lineWidth+r.lineJoin+r.miterLimit+"["+r.lineDash.join()+"]":"",this.textKey_=i.font+i.scale+(i.textAlign||"?")+(i.repeat||"?")+(i.justify||"?")+(i.textBaseline||"?"),this.fillKey_=s&&s.fillStyle?typeof s.fillStyle=="string"?s.fillStyle:"|"+Et(s.fillStyle):""}this.declutterMode_=e.getDeclutterMode(),this.declutterImageWithText_=n}}const Ire={Circle:qw,Default:id,Image:kre,LineString:Tre,Polygon:qw,Text:Mre};class Dre{constructor(e,n,i,s){this.tolerance_=e,this.maxExtent_=n,this.pixelRatio_=s,this.resolution_=i,this.buildersByZIndex_={}}finish(){const e={};for(const n in this.buildersByZIndex_){e[n]=e[n]||{};const i=this.buildersByZIndex_[n];for(const s in i){const r=i[s].finish();e[n][s]=r}}return e}getBuilder(e,n){const i=e!==void 0?e.toString():"0";let s=this.buildersByZIndex_[i];s===void 0&&(s={},this.buildersByZIndex_[i]=s);let r=s[n];if(r===void 0){const o=Ire[n];r=new o(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),s[n]=r}return r}}function Rre(t,e,n,i,s,r,o,a,l,c,u,d){let h=t[e],g=t[e+1],p=0,m=0,v=0,y=0;function x(){p=h,m=g,e+=i,h=t[e],g=t[e+1],y+=v,v=Math.sqrt((h-p)*(h-p)+(g-m)*(g-m))}do x();while(eR[2]}else V=w>A;const Y=Math.PI,ne=[],N=C+i===e;e=C,v=0,y=k,h=t[e],g=t[e+1];let B;if(N){x(),B=Math.atan2(g-m,h-p),V&&(B+=B>0?-Y:Y);const R=(A+w)/2,z=(I+b)/2;return ne[0]=[R,z,(T-r)/2,B,s],ne}s=s.replace(/\n/g," ");for(let R=0,z=s.length;R0?-Y:Y),B!==void 0){let D=X-B;if(D+=D>Y?-2*Y:D<-Y?2*Y:0,Math.abs(D)>o)return null}B=X;const J=R;let H=0;for(;R0&&t.push(` -`,""),t.push(e,""),t}class Lre{constructor(e,n,i,s,r){this.overlaps=i,this.pixelRatio=n,this.resolution=e,this.alignAndScaleFill_,this.instructions=s.instructions,this.coordinates=s.coordinates,this.coordinateCache_={},this.renderedTransform_=hs(),this.hitDetectionInstructions=s.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=s.fillStates||{},this.strokeStates=s.strokeStates||{},this.textStates=s.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=r?new dA:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,n,i,s){const r=e+n+i+s;if(this.labels_[r])return this.labels_[r];const o=s?this.strokeStates[s]:null,a=i?this.fillStates[i]:null,l=this.textStates[n],c=this.pixelRatio,u=[l.scale[0]*c,l.scale[1]*c],d=l.justify?Qh[l.justify]:Mp(Array.isArray(e)?e[0]:e,l.textAlign||Pu),h=s&&o.lineWidth?o.lineWidth:0,g=Array.isArray(e)?e:String(e).split(` -`).reduce($re,[]),{width:p,height:m,widths:v,heights:y,lineWidths:x}=pie(l,g),E=p+h,w=[],b=(E+2)*u[0],C=(m+h)*u[1],k={width:b<0?Math.floor(b):Math.ceil(b),height:C<0?Math.floor(C):Math.ceil(C),contextInstructions:w};(u[0]!=1||u[1]!=1)&&w.push("scale",u),s&&(w.push("strokeStyle",o.strokeStyle),w.push("lineWidth",h),w.push("lineCap",o.lineCap),w.push("lineJoin",o.lineJoin),w.push("miterLimit",o.miterLimit),w.push("setLineDash",[o.lineDash]),w.push("lineDashOffset",o.lineDashOffset)),i&&w.push("fillStyle",a.fillStyle),w.push("textBaseline","middle"),w.push("textAlign","center");const T=.5-d;let A=d*E+T*h;const I=[],V=[];let Y=0,ne=0,N=0,B=0,R;for(let z=0,X=g.length;ze?e-c:r,w=o+u>n?n-u:o,b=p[3]+E*h[0]+p[1],C=p[0]+w*h[1]+p[2],k=y-p[3],T=x-p[0];(m||d!==0)&&(Rr[0]=k,$r[0]=k,Rr[1]=T,Gs[1]=T,Gs[0]=k+b,Xs[0]=Gs[0],Xs[1]=T+C,$r[1]=Xs[1]);let A;return d!==0?(A=br(hs(),i,s,1,1,d,-i,-s),Ln(A,Rr),Ln(A,Gs),Ln(A,Xs),Ln(A,$r),uo(Math.min(Rr[0],Gs[0],Xs[0],$r[0]),Math.min(Rr[1],Gs[1],Xs[1],$r[1]),Math.max(Rr[0],Gs[0],Xs[0],$r[0]),Math.max(Rr[1],Gs[1],Xs[1],$r[1]),Ka)):uo(Math.min(k,k+b),Math.min(T,T+C),Math.max(k,k+b),Math.max(T,T+C),Ka),g&&(y=Math.round(y),x=Math.round(x)),{drawImageX:y,drawImageY:x,drawImageW:E,drawImageH:w,originX:c,originY:u,declutterBox:{minX:Ka[0],minY:Ka[1],maxX:Ka[2],maxY:Ka[3],value:v},canvasTransform:A,scale:h}}replayImageOrLabel_(e,n,i,s,r,o,a){const l=!!(o||a),c=s.declutterBox,u=a?a[2]*s.scale[0]/2:0;return c.minX-u<=n[0]&&c.maxX+u>=0&&c.minY-u<=n[1]&&c.maxY+u>=0&&(l&&this.replayTextBackground_(e,Rr,Gs,Xs,$r,o,a),mie(e,s.canvasTransform,r,i,s.originX,s.originY,s.drawImageW,s.drawImageH,s.drawImageX,s.drawImageY,s.scale)),!0}fill_(e){const n=this.alignAndScaleFill_;if(n){const i=Ln(this.renderedTransform_,[0,0]),s=512*this.pixelRatio;e.save(),e.translate(i[0]%s,i[1]%s),n!==1&&e.scale(n,n),e.rotate(this.viewRotation_)}e.fill(),n&&e.restore()}setStrokeStyle_(e,n){e.strokeStyle=n[1],e.lineWidth=n[2],e.lineCap=n[3],e.lineJoin=n[4],e.miterLimit=n[5],e.lineDashOffset=n[7],e.setLineDash(n[6])}drawLabelWithPointPlacement_(e,n,i,s){const r=this.textStates[n],o=this.createLabel(e,n,s,i),a=this.strokeStates[i],l=this.pixelRatio,c=Mp(Array.isArray(e)?e[0]:e,r.textAlign||Pu),u=Qh[r.textBaseline||jh],d=a&&a.lineWidth?a.lineWidth:0,h=o.width/l-2*r.scale[0],g=c*h+2*(.5-c)*d,p=u*o.height/l+2*(.5-u)*d;return{label:o,anchorX:g,anchorY:p}}execute_(e,n,i,s,r,o,a,l){const c=this.zIndexContext_;let u;this.pixelCoordinates_&&So(i,this.renderedTransform_)?u=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),u=io(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),_ne(this.renderedTransform_,i));let d=0;const h=s.length;let g=0,p,m,v,y,x,E,w,b,C,k,T,A,I,V=0,Y=0,ne=null,N=null;const B=this.coordinateCache_,R=this.viewRotation_,z=Math.round(Math.atan2(-i[1],i[0])*1e12)/1e12,X={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:R},J=this.instructions!=s||this.overlaps?0:200;let H,ce,ie,te;for(;dJ&&(this.fill_(e),V=0),Y>J&&(e.stroke(),Y=0),!V&&!Y&&(e.beginPath(),x=NaN,E=NaN),++d;break;case Ue.CIRCLE:g=D[1];const ue=u[g],$=u[g+1],le=u[g+2],de=u[g+3],xe=le-ue,W=de-$,fe=Math.sqrt(xe*xe+W*W);e.moveTo(ue+fe,$),e.arc(ue,$,fe,0,2*Math.PI,!0),++d;break;case Ue.CLOSE_PATH:e.closePath(),++d;break;case Ue.CUSTOM:g=D[1],p=D[2];const S=D[3],O=D[4],K=D[5];X.geometry=S,X.feature=H,d in B||(B[d]=[]);const U=B[d];K?K(u,g,p,2,U):(U[0]=u[g],U[1]=u[g+1],U.length=2),c&&(c.zIndex=D[6]),O(U,X),++d;break;case Ue.DRAW_IMAGE:g=D[1],p=D[2],C=D[3],m=D[4],v=D[5];let oe=D[6];const j=D[7],re=D[8],Q=D[9],ge=D[10];let be=D[11];const we=D[12];let Pe=D[13];y=D[14]||"declutter";const Ie=D[15];if(!C&&D.length>=20){k=D[19],T=D[20],A=D[21],I=D[22];const mn=this.drawLabelWithPointPlacement_(k,T,A,I);C=mn.label,D[3]=C;const Cn=D[23];m=(mn.anchorX-Cn)*this.pixelRatio,D[4]=m;const Sn=D[24];v=(mn.anchorY-Sn)*this.pixelRatio,D[5]=v,oe=C.height,D[6]=oe,Pe=C.width,D[13]=Pe}let We;D.length>25&&(We=D[25]);let je,nt,et;D.length>17?(je=D[16],nt=D[17],et=D[18]):(je=Jo,nt=!1,et=!1),ge&&z?be+=R:!ge&&!z&&(be-=R);let Jt=0;for(;g!pA.includes(t));class Nre{constructor(e,n,i,s,r,o,a){this.maxExtent_=e,this.overlaps_=s,this.pixelRatio_=i,this.resolution_=n,this.renderBuffer_=o,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=hs(),this.renderedContext_=null,this.deferredZIndexContexts_={},this.createExecutors_(r,a)}clip(e,n){const i=this.getClipCoords(n);e.beginPath(),e.moveTo(i[0],i[1]),e.lineTo(i[2],i[3]),e.lineTo(i[4],i[5]),e.lineTo(i[6],i[7]),e.clip()}createExecutors_(e,n){for(const i in e){let s=this.executorsByZIndex_[i];s===void 0&&(s={},this.executorsByZIndex_[i]=s);const r=e[i];for(const o in r){const a=r[o];s[o]=new Lre(this.resolution_,this.pixelRatio_,this.overlaps_,a,n)}}}hasExecutors(e){for(const n in this.executorsByZIndex_){const i=this.executorsByZIndex_[n];for(let s=0,r=e.length;s0){if(!o||k==="none"||g!=="Image"&&g!=="Text"||o.includes(b)){const V=(h[A]-3)/4,Y=s-V%a,ne=s-(V/a|0),N=r(b,C,Y*Y+ne*ne);if(N)return N}u.clearRect(0,0,a,a);break}}const m=Object.keys(this.executorsByZIndex_).map(Number);m.sort(hr);let v,y,x,E,w;for(v=m.length-1;v>=0;--v){const b=m[v].toString();for(x=this.executorsByZIndex_[b],y=sl.length-1;y>=0;--y)if(g=sl[y],E=x[g],E!==void 0&&(w=E.executeHitDetection(u,l,i,p,d),w))return w}}getClipCoords(e){const n=this.maxExtent_;if(!n)return null;const i=n[0],s=n[1],r=n[2],o=n[3],a=[i,s,i,o,r,o,r,s];return io(a,0,8,2,e,a),a}isEmpty(){return Vl(this.executorsByZIndex_)}execute(e,n,i,s,r,o,a){const l=Object.keys(this.executorsByZIndex_).map(Number);l.sort(hr),o=o||sl;const c=sl.length;let u,d,h,g,p;for(a&&l.reverse(),u=0,d=l.length;uy.execute(b,n,i,s,r,a)),w&&E.restore(),x){x.offset();const b=l[u]*c+h;this.deferredZIndexContexts_[b]||(this.deferredZIndexContexts_[b]=[]),this.deferredZIndexContexts_[b].push(x)}}}}this.renderedContext_=e}getDeferredZIndexContexts(){return this.deferredZIndexContexts_}getRenderedContext(){return this.renderedContext_}renderDeferred(){const e=this.deferredZIndexContexts_,n=Object.keys(e).map(Number).sort(hr);for(let i=0,s=n.length;i{r.draw(this.renderedContext_),r.clear()}),e[n[i]].length=0}}const Ip={};function Fre(t){if(Ip[t]!==void 0)return Ip[t];const e=t*2+1,n=t*t,i=new Array(n+1);for(let r=0;r<=t;++r)for(let o=0;o<=t;++o){const a=r*r+o*o;if(a>n)break;let l=i[a];l||(l=[],i[a]=l),l.push(((t+r)*e+(t+o))*4+3),r>0&&l.push(((t-r)*e+(t+o))*4+3),o>0&&(l.push(((t+r)*e+(t-o))*4+3),r>0&&l.push(((t-r)*e+(t-o))*4+3))}const s=[];for(let r=0,o=i.length;rd*this.pixelRatio_),lineDashOffset:(o||gr)*this.pixelRatio_,lineJoin:a!==void 0?a:Hl,lineWidth:(l!==void 0?l:Mu)*this.pixelRatio_,miterLimit:c!==void 0?c:Tu,strokeStyle:Ds(i||Au)}}}setImageStyle(e){let n;if(!e||!(n=e.getSize())){this.image_=null;return}const i=e.getPixelRatio(this.pixelRatio_),s=e.getAnchor(),r=e.getOrigin();this.image_=e.getImage(this.pixelRatio_),this.imageAnchorX_=s[0]*i,this.imageAnchorY_=s[1]*i,this.imageHeight_=n[1]*i,this.imageOpacity_=e.getOpacity(),this.imageOriginX_=r[0],this.imageOriginY_=r[1],this.imageRotateWithView_=e.getRotateWithView(),this.imageRotation_=e.getRotation();const o=e.getScaleArray();this.imageScale_=[o[0]*this.pixelRatio_/i,o[1]*this.pixelRatio_/i],this.imageWidth_=n[0]*i}setTextStyle(e){if(!e)this.text_="";else{const n=e.getFill();if(!n)this.textFillState_=null;else{const g=n.getColor();this.textFillState_={fillStyle:Ds(g||pi)}}const i=e.getStroke();if(!i)this.textStrokeState_=null;else{const g=i.getColor(),p=i.getLineCap(),m=i.getLineDash(),v=i.getLineDashOffset(),y=i.getLineJoin(),x=i.getWidth(),E=i.getMiterLimit();this.textStrokeState_={lineCap:p!==void 0?p:Yl,lineDash:m||fr,lineDashOffset:v||gr,lineJoin:y!==void 0?y:Hl,lineWidth:x!==void 0?x:Mu,miterLimit:E!==void 0?E:Tu,strokeStyle:Ds(g||Au)}}const s=e.getFont(),r=e.getOffsetX(),o=e.getOffsetY(),a=e.getRotateWithView(),l=e.getRotation(),c=e.getScaleArray(),u=e.getText(),d=e.getTextAlign(),h=e.getTextBaseline();this.textState_={font:s!==void 0?s:FT,textAlign:d!==void 0?d:Pu,textBaseline:h!==void 0?h:jh},this.text_=u!==void 0?Array.isArray(u)?u.reduce((g,p,m)=>g+=m%2?" ":p,""):u:"",this.textOffsetX_=r!==void 0?this.pixelRatio_*r:0,this.textOffsetY_=o!==void 0?this.pixelRatio_*o:0,this.textRotateWithView_=a!==void 0?a:!1,this.textRotation_=l!==void 0?l:0,this.textScale_=[this.pixelRatio_*c[0],this.pixelRatio_*c[1]]}}}const Ts=.5;function Vre(t,e,n,i,s,r,o,a,l){const c=s,u=t[0]*Ts,d=t[1]*Ts,h=hn(u,d);h.imageSmoothingEnabled=!1;const g=h.canvas,p=new Bre(h,Ts,s,null,o,a,null),m=n.length,v=Math.floor((256*256*256-1)/m),y={};for(let E=1;E<=m;++E){const w=n[E-1],b=w.getStyleFunction()||i;if(!b)continue;let C=b(w,r);if(!C)continue;Array.isArray(C)||(C=[C]);const T=(E*v).toString(16).padStart(7,"#00000");for(let A=0,I=C.length;A0;return d&&Promise.all(l).then(()=>s(null)),jre(t,e,n,i,r,o,a),d}function jre(t,e,n,i,s,r,o){const a=n.getGeometryFunction()(e);if(!a)return;const l=a.simplifyTransformed(i,s);if(n.getRenderer())vA(t,l,n,e,o);else{const u=mA[l.getType()];u(t,l,n,e,o,r)}}function vA(t,e,n,i,s){if(e.getType()=="GeometryCollection"){const o=e.getGeometries();for(let a=0,l=o.length;a{if(this.frameState&&!this.hitDetectionImageData_&&!this.animatingOrInteracting_){const i=this.frameState.size.slice(),s=this.renderedCenter_,r=this.renderedResolution_,o=this.renderedRotation_,a=this.renderedProjection_,l=this.wrappedRenderedExtent_,c=this.getLayer(),u=[],d=i[0]*Ts,h=i[1]*Ts;u.push(this.getRenderTransform(s,r,o,Ts,d,h,0).slice());const g=c.getSource(),p=a.getExtent();if(g.getWrapX()&&a.canWrapX()&&!il(p,l)){let m=l[0];const v=yt(p);let y=0,x;for(;mp[2];)++y,x=v*y,u.push(this.getRenderTransform(s,r,o,Ts,d,h,x).slice()),m-=v}this.hitDetectionImageData_=Vre(i,u,this.renderedFeatures_,c.getStyleFunction(),l,r,o,Qw(r,this.renderedPixelRatio_))}n(zre(e,this.renderedFeatures_,this.hitDetectionImageData_))})}forEachFeatureAtCoordinate(e,n,i,s,r){if(!this.replayGroup_)return;const o=n.viewState.resolution,a=n.viewState.rotation,l=this.getLayer(),c={},u=function(p,m,v){const y=Et(p),x=c[y];if(x){if(x!==!0&&vd=p.forEachFeatureAtCoordinate(e,o,a,i,u,g&&n.declutter[g]?n.declutter[g].all().map(m=>m.value):null)),d}handleFontsChanged(){const e=this.getLayer();e.getVisible()&&this.replayGroup_&&e.changed()}handleStyleImageChange_(e){this.renderIfReadyAndVisible()}prepareFrame(e){const n=this.getLayer(),i=n.getSource();if(!i)return!1;const s=e.viewHints[Hn.ANIMATING],r=e.viewHints[Hn.INTERACTING],o=n.getUpdateWhileAnimating(),a=n.getUpdateWhileInteracting();if(this.ready&&!o&&s||!a&&r)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;const l=e.extent,c=e.viewState,u=c.projection,d=c.resolution,h=e.pixelRatio,g=n.getRevision(),p=n.getRenderBuffer();let m=n.getRenderOrder();m===void 0&&(m=Yre);const v=c.center.slice(),y=yv(l,p*d),x=y.slice(),E=[y.slice()],w=u.getExtent();if(i.getWrapX()&&u.canWrapX()&&!il(w,e.extent)){const N=yt(w),B=Math.max(yt(y)/2,N);y[0]=w[0]-B,y[2]=w[2]+B,gT(v,u);const R=fT(E[0],u);R[0]w[0]&&R[2]>w[2]&&E.push([R[0]-N,R[1],R[2]-N,R[3]])}if(this.ready&&this.renderedResolution_==d&&this.renderedRevision_==g&&this.renderedRenderOrder_==m&&this.renderedFrameDeclutter_===!!e.declutter&&il(this.wrappedRenderedExtent_,y))return So(this.renderedExtent_,x)||(this.hitDetectionImageData_=null,this.renderedExtent_=x),this.renderedCenter_=v,this.replayGroupChanged=!1,!0;this.replayGroup_=null;const b=new Dre(_A(d,h),y,d,h);let C;for(let N=0,B=E.length;N{let R;const z=N.getStyleFunction()||n.getStyleFunction();if(z&&(R=z(N,d)),R){const X=this.renderFeature(N,k,R,b,C,this.getLayer().getDeclutter(),B);T=T&&!X}},I=yT(y),V=i.getFeaturesInExtent(I);m&&V.sort(m);for(let N=0,B=V.length;N{if(e===this.squaredTolerance_)return this.simplifiedGeometry_;this.simplifiedGeometry_=this.clone(),n&&this.simplifiedGeometry_.applyTransform(n);const i=this.simplifiedGeometry_.getFlatCoordinates();let s;switch(this.type_){case"LineString":i.length=Xf(i,0,this.simplifiedGeometry_.flatCoordinates_.length,this.simplifiedGeometry_.stride_,e,i,0),s=[i.length];break;case"MultiLineString":s=[],i.length=Pne(i,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,e,i,0,s);break;case"Polygon":s=[],i.length=ET(i,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,Math.sqrt(e),i,0,s);break}return s&&(this.simplifiedGeometry_=new ss(this.type_,i,s,2,this.properties_,this.id_)),this.squaredTolerance_=e,this.simplifiedGeometry_}),this}}ss.prototype.getFlatCoordinates=ss.prototype.getOrientedFlatCoordinates;const Vi={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"};function noe(t,e){return[[-1/0,-1/0,1/0,1/0]]}let ioe=!1;function soe(t,e,n,i,s,r,o){const a=new XMLHttpRequest;a.open("GET",typeof t=="function"?t(n,i,s):t,!0),e.getType()=="arraybuffer"&&(a.responseType="arraybuffer"),a.withCredentials=ioe,a.onload=function(l){if(!a.status||a.status>=200&&a.status<300){const c=e.getType();try{let u;c=="text"||c=="json"?u=a.responseText:c=="xml"?u=a.responseXML||a.responseText:c=="arraybuffer"&&(u=a.response),u?r(e.readFeatures(u,{extent:n,featureProjection:s}),e.readProjection(u)):o()}catch{o()}}else o()},a.onerror=o,a.send()}function ix(t,e){return function(n,i,s,r,o){const a=this;soe(t,e,n,i,s,function(l,c){a.addFeatures(l),r!==void 0&&r(l)},o||Bl)}}class Lr extends Er{constructor(e,n,i){super(e),this.feature=n,this.features=i}}class roe extends aA{constructor(e){e=e||{},super({attributions:e.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:e.wrapX!==void 0?e.wrapX:!0}),this.on,this.once,this.un,this.loader_=Bl,this.format_=e.format||null,this.overlaps_=e.overlaps===void 0?!0:e.overlaps,this.url_=e.url,e.loader!==void 0?this.loader_=e.loader:this.url_!==void 0&&(mt(this.format_,"`format` must be set when `url` is set"),this.loader_=ix(this.url_,this.format_)),this.strategy_=e.strategy!==void 0?e.strategy:noe;const n=e.useSpatialIndex!==void 0?e.useSpatialIndex:!0;this.featuresRtree_=n?new tx:null,this.loadedExtentsRtree_=new tx,this.loadingExtentsCount_=0,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null;let i,s;Array.isArray(e.features)?s=e.features:e.features&&(i=e.features,s=i.getArray()),!n&&i===void 0&&(i=new Ms(s)),s!==void 0&&this.addFeaturesInternal(s),i!==void 0&&this.bindFeaturesCollection_(i)}addFeature(e){this.addFeatureInternal(e),this.changed()}addFeatureInternal(e){const n=Et(e);if(!this.addToIndex_(n,e)){this.featuresCollection_&&this.featuresCollection_.remove(e);return}this.setupChangeEvents_(n,e);const i=e.getGeometry();if(i){const s=i.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(s,e)}else this.nullGeometryFeatures_[n]=e;this.dispatchEvent(new Lr(Vi.ADDFEATURE,e))}setupChangeEvents_(e,n){n instanceof ss||(this.featureChangeKeys_[e]=[ft(n,tt.CHANGE,this.handleFeatureChange_,this),ft(n,Fl.PROPERTYCHANGE,this.handleFeatureChange_,this)])}addToIndex_(e,n){let i=!0;if(n.getId()!==void 0){const s=String(n.getId());if(!(s in this.idIndex_))this.idIndex_[s]=n;else if(n instanceof ss){const r=this.idIndex_[s];r instanceof ss?Array.isArray(r)?r.push(n):this.idIndex_[s]=[r,n]:i=!1}else i=!1}return i&&(mt(!(e in this.uidIndex_),"The passed `feature` was already added to the source"),this.uidIndex_[e]=n),i}addFeatures(e){this.addFeaturesInternal(e),this.changed()}addFeaturesInternal(e){const n=[],i=[],s=[];for(let r=0,o=e.length;r{n||(n=!0,this.addFeature(i.element),n=!1)}),e.addEventListener(gi.REMOVE,i=>{n||(n=!0,this.removeFeature(i.element),n=!1)}),this.featuresCollection_=e}clear(e){if(e){for(const i in this.featureChangeKeys_)this.featureChangeKeys_[i].forEach(Lt);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){const i=s=>{this.removeFeatureInternal(s)};this.featuresRtree_.forEach(i);for(const s in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[s])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};const n=new Lr(Vi.CLEAR);this.dispatchEvent(n),this.changed()}forEachFeature(e){if(this.featuresRtree_)return this.featuresRtree_.forEach(e);this.featuresCollection_&&this.featuresCollection_.forEach(e)}forEachFeatureAtCoordinateDirect(e,n){const i=[e[0],e[1],e[0],e[1]];return this.forEachFeatureInExtent(i,function(s){const r=s.getGeometry();if(r instanceof ss||r.intersectsCoordinate(e))return n(s)})}forEachFeatureInExtent(e,n){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(e,n);this.featuresCollection_&&this.featuresCollection_.forEach(n)}forEachFeatureIntersectingExtent(e,n){return this.forEachFeatureInExtent(e,function(i){const s=i.getGeometry();if(s instanceof ss||s.intersectsExtent(e)){const r=n(i);if(r)return r}})}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let e;return this.featuresCollection_?e=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(e=this.featuresRtree_.getAll(),Vl(this.nullGeometryFeatures_)||Vf(e,Object.values(this.nullGeometryFeatures_))),e}getFeaturesAtCoordinate(e){const n=[];return this.forEachFeatureAtCoordinateDirect(e,function(i){n.push(i)}),n}getFeaturesInExtent(e,n){if(this.featuresRtree_){if(!(n&&n.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(e);const s=xv(e,n);return[].concat(...s.map(r=>this.featuresRtree_.getInExtent(r)))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(e,n){const i=e[0],s=e[1];let r=null;const o=[NaN,NaN];let a=1/0;const l=[-1/0,-1/0,1/0,1/0];return n=n||yu,this.featuresRtree_.forEachInExtent(l,function(c){if(n(c)){const u=c.getGeometry(),d=a;if(a=u instanceof ss?0:u.closestPointXY(i,s,o,a),a{--this.loadingExtentsCount_,this.dispatchEvent(new Lr(Vi.FEATURESLOADEND,void 0,u))},()=>{--this.loadingExtentsCount_,this.dispatchEvent(new Lr(Vi.FEATURESLOADERROR))}),s.insert(l,{extent:l.slice()}))}this.loading=this.loader_.length<4?!1:this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(e){const n=this.loadedExtentsRtree_;let i;n.forEachInExtent(e,function(s){if(bu(s.extent,e))return i=s,!0}),i&&n.remove(i)}removeFeatures(e){let n=!1;for(let i=0,s=e.length;ie.geo&&e.geo.lat&&e.geo.lon);return t?[t.geo.lon,t.geo.lat]:[0,0]}return[this.d.geo.lon,this.d.geo.lat]}},async mounted(){await fetch("https://tile.openstreetmap.org/",{signal:AbortSignal.timeout(1500)}).then(t=>{const e=new Ose({target:"map",layers:[new Ere({source:new ure})],view:new ks({center:hp(this.getLastLonLat()),zoom:this.type==="traceroute"?3:10})}),n=[],i=new roe;if(this.type==="traceroute")console.log(this.getLastLonLat()),this.d.forEach(a=>{if(a.geo&&a.geo.lat&&a.geo.lon){const l=hp([a.geo.lon,a.geo.lat]);n.push(l);const c=this.getLastLonLat();console.log(a.geo.lon,a.geo.lat),console.log(a.geo.lon===c[0]&&a.geo.lat===c[1]);const u=new Jc({geometry:new Eu(l),last:a.geo.lon===c[0]&&a.geo.lat===c[1]});i.addFeature(u)}});else{const a=hp([this.d.geo.lon,this.d.geo.lat]);n.push(a);const l=new Jc({geometry:new Eu(a)});i.addFeature(l)}const s=new Jh(n),r=new Jc({geometry:s});i.addFeature(r);const o=new eoe({source:i,style:function(a){if(a.getGeometry().getType()==="Point")return new pr({image:new Qu({radius:10,fill:new Zl({color:a.get("last")?"#dc3545":"#0d6efd"}),stroke:new jl({color:"white",width:5})})});if(a.getGeometry().getType()==="LineString")return new pr({stroke:new jl({color:"#0d6efd",width:2})})}});e.addLayer(o),this.store.Configuration.Server.dashboard_theme==="dark"&&e.on("postcompose",function(a){document.querySelector("#map").style.filter="grayscale(80%) invert(100%) "})}).catch(t=>{this.osmAvailable=!1})}},aoe={key:0,id:"map",class:"w-100 rounded-3"};function loe(t,e,n,i,s,r){return this.osmAvailable?(P(),F("div",aoe)):se("",!0)}const yA=He(ooe,[["render",loe]]),coe={name:"ping",components:{OSMap:yA,LocaleText:Le},data(){return{loading:!1,cips:{},selectedConfiguration:void 0,selectedPeer:void 0,selectedIp:void 0,count:4,pingResult:void 0,pinging:!1}},setup(){return{store:Je()}},mounted(){Pt("/api/ping/getAllPeersIpAddress",{},t=>{t.status&&(this.loading=!0,this.cips=t.data,console.log(this.cips))})},methods:{execute(){this.selectedIp&&(this.pinging=!0,this.pingResult=void 0,Pt("/api/ping/execute",{ipAddress:this.selectedIp,count:this.count},t=>{t.status?this.pingResult=t.data:this.store.newMessage("Server",t.message,"danger"),this.pinging=!1}))}},watch:{selectedConfiguration(){this.selectedPeer=void 0,this.selectedIp=void 0},selectedPeer(){this.selectedIp=void 0}}},uoe={class:"mt-md-5 mt-3 text-body"},doe={class:"container"},hoe={class:"row"},foe={class:"col-sm-4 d-flex gap-2 flex-column"},goe={class:"mb-1 text-muted",for:"configuration"},poe=["disabled"],moe=["value"],_oe={class:"mb-1 text-muted",for:"peer"},voe=["disabled"],yoe=["value"],boe={class:"mb-1 text-muted",for:"ip"},woe=["disabled"],xoe={class:"d-flex align-items-center gap-2"},Eoe={class:"text-muted"},Coe={class:"mb-1 text-muted",for:"ipAddress"},Soe=["disabled"],koe={class:"mb-1 text-muted",for:"count"},Toe={class:"d-flex gap-3 align-items-center"},Aoe=["disabled"],Poe=["disabled"],Moe={key:0,class:"d-block"},Ioe={key:1,class:"d-block"},Doe={class:"col-sm-8 position-relative"},Roe={key:"pingPlaceholder"},$oe={key:"pingResult",class:"d-flex flex-column gap-2 w-100"},Loe={class:"card rounded-3 bg-transparent shadow-sm animate__animated animate__fadeIn",style:{"animation-delay":"0.15s"}},Ooe={class:"card-body row"},Noe={class:"col-sm"},Foe={class:"mb-0 text-muted"},Boe={key:0,class:"col-sm"},Voe={class:"mb-0 text-muted"},zoe={class:"card rounded-3 bg-transparent shadow-sm animate__animated animate__fadeIn",style:{"animation-delay":"0.3s"}},Woe={class:"card-body"},Yoe={class:"card rounded-3 bg-transparent shadow-sm animate__animated animate__fadeIn",style:{"animation-delay":"0.45s"}},Hoe={class:"card-body"},joe={class:"mb-0 text-muted"},Koe={class:"card rounded-3 bg-transparent shadow-sm animate__animated animate__fadeIn",style:{"animation-delay":"0.6s"}},Uoe={class:"card-body"},Goe={class:"mb-0 text-muted"};function Xoe(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("OSMap");return P(),F("div",uoe,[f("div",doe,[e[19]||(e[19]=f("h3",{class:"mb-3 text-body"},"Ping",-1)),f("div",hoe,[f("div",foe,[f("div",null,[f("label",goe,[f("small",null,[L(o,{t:"Configuration"})])]),Re(f("select",{class:"form-select","onUpdate:modelValue":e[0]||(e[0]=l=>this.selectedConfiguration=l),disabled:this.pinging},[e[7]||(e[7]=f("option",{disabled:"",selected:"",value:void 0},null,-1)),(P(!0),F(De,null,Ge(this.cips,(l,c)=>(P(),F("option",{value:c},pe(c),9,moe))),256))],8,poe),[[ch,this.selectedConfiguration]])]),f("div",null,[f("label",_oe,[f("small",null,[L(o,{t:"Peer"})])]),Re(f("select",{id:"peer",class:"form-select","onUpdate:modelValue":e[1]||(e[1]=l=>this.selectedPeer=l),disabled:this.selectedConfiguration===void 0||this.pinging},[e[8]||(e[8]=f("option",{disabled:"",selected:"",value:void 0},null,-1)),this.selectedConfiguration!==void 0?(P(!0),F(De,{key:0},Ge(this.cips[this.selectedConfiguration],(l,c)=>(P(),F("option",{value:c},pe(c),9,yoe))),256)):se("",!0)],8,voe),[[ch,this.selectedPeer]])]),f("div",null,[f("label",boe,[f("small",null,[L(o,{t:"IP Address"})])]),Re(f("select",{id:"ip",class:"form-select","onUpdate:modelValue":e[2]||(e[2]=l=>this.selectedIp=l),disabled:this.selectedPeer===void 0||this.pinging},[e[9]||(e[9]=f("option",{disabled:"",selected:"",value:void 0},null,-1)),this.selectedPeer!==void 0?(P(!0),F(De,{key:0},Ge(this.cips[this.selectedConfiguration][this.selectedPeer].allowed_ips,l=>(P(),F("option",null,pe(l),1))),256)):se("",!0)],8,woe),[[ch,this.selectedIp]])]),f("div",xoe,[e[10]||(e[10]=f("div",{class:"flex-grow-1 border-top"},null,-1)),f("small",Eoe,[L(o,{t:"OR"})]),e[11]||(e[11]=f("div",{class:"flex-grow-1 border-top"},null,-1))]),f("div",null,[f("label",Coe,[f("small",null,[L(o,{t:"Enter IP Address / Hostname"})])]),Re(f("input",{class:"form-control",type:"text",id:"ipAddress",disabled:this.pinging,"onUpdate:modelValue":e[3]||(e[3]=l=>this.selectedIp=l)},null,8,Soe),[[ze,this.selectedIp]])]),e[16]||(e[16]=f("div",{class:"w-100 border-top my-2"},null,-1)),f("div",null,[f("label",koe,[f("small",null,[L(o,{t:"Count"})])]),f("div",Toe,[f("button",{onClick:e[4]||(e[4]=l=>this.count--),disabled:this.count===1,class:"btn btn-sm bg-secondary-subtle text-secondary-emphasis"},e[12]||(e[12]=[f("i",{class:"bi bi-dash-lg"},null,-1)]),8,Aoe),f("strong",null,pe(this.count),1),f("button",{role:"button",onClick:e[5]||(e[5]=l=>this.count++),class:"btn btn-sm bg-secondary-subtle text-secondary-emphasis"},e[13]||(e[13]=[f("i",{class:"bi bi-plus-lg"},null,-1)]))])]),f("button",{class:"btn btn-primary rounded-3 mt-3 position-relative",disabled:!this.selectedIp||this.pinging,onClick:e[6]||(e[6]=l=>this.execute())},[L(xt,{name:"slide"},{default:Me(()=>[this.pinging?(P(),F("span",Ioe,e[15]||(e[15]=[f("span",{class:"spinner-border spinner-border-sm","aria-hidden":"true"},null,-1),f("span",{class:"visually-hidden",role:"status"},"Loading...",-1)]))):(P(),F("span",Moe,e[14]||(e[14]=[f("i",{class:"bi bi-person-walking me-2"},null,-1),Be("Ping! ")])))]),_:1})],8,Poe)]),f("div",Doe,[L(xt,{name:"ping"},{default:Me(()=>[this.pingResult?(P(),F("div",$oe,[this.pingResult.geo&&this.pingResult.geo.status==="success"?(P(),Ee(a,{key:0,d:this.pingResult},null,8,["d"])):se("",!0),f("div",Loe,[f("div",Ooe,[f("div",Noe,[f("p",Foe,[f("small",null,[L(o,{t:"IP Address"})])]),Be(" "+pe(this.pingResult.address),1)]),this.pingResult.geo&&this.pingResult.geo.status==="success"?(P(),F("div",Boe,[f("p",Voe,[f("small",null,[L(o,{t:"Geolocation"})])]),Be(" "+pe(this.pingResult.geo.city)+", "+pe(this.pingResult.geo.country),1)])):se("",!0)])]),f("div",zoe,[f("div",Woe,[e[18]||(e[18]=f("p",{class:"mb-0 text-muted"},[f("small",null,"Is Alive")],-1)),f("span",{class:Se([this.pingResult.is_alive?"text-success":"text-danger"])},[f("i",{class:Se(["bi me-1",[this.pingResult.is_alive?"bi-check-circle-fill":"bi-x-circle-fill"]])},null,2),Be(" "+pe(this.pingResult.is_alive?"Yes":"No"),1)],2)])]),f("div",Yoe,[f("div",Hoe,[f("p",joe,[f("small",null,[L(o,{t:"Average / Min / Max Round Trip Time"})])]),f("samp",null,pe(this.pingResult.avg_rtt)+"ms / "+pe(this.pingResult.min_rtt)+"ms / "+pe(this.pingResult.max_rtt)+"ms ",1)])]),f("div",Koe,[f("div",Uoe,[f("p",Goe,[f("small",null,[L(o,{t:"Sent / Received / Lost Package"})])]),f("samp",null,pe(this.pingResult.package_sent)+" / "+pe(this.pingResult.package_received)+" / "+pe(this.pingResult.package_loss),1)])])])):(P(),F("div",Roe,[e[17]||(e[17]=f("div",{class:"pingPlaceholder bg-body-secondary rounded-3 mb-3",style:{height:"300px"}},null,-1)),(P(),F(De,null,Ge(4,l=>f("div",{class:Se(["pingPlaceholder bg-body-secondary rounded-3 mb-3",{"animate__animated animate__flash animate__slower animate__infinite":this.pinging}]),style:Mn({"animation-delay":`${l*.15}s`})},null,6)),64))]))]),_:1})])])])])}const qoe=He(coe,[["render",Xoe],["__scopeId","data-v-f5cd36ce"]]),Zoe={name:"traceroute",components:{LocaleText:Le,OSMap:yA},data(){return{tracing:!1,ipAddress:void 0,tracerouteResult:void 0}},setup(){return{store:Vn()}},methods:{execute(){this.ipAddress&&(this.tracing=!0,this.tracerouteResult=void 0,Pt("/api/traceroute/execute",{ipAddress:this.ipAddress},t=>{t.status?this.tracerouteResult=t.data:this.store.newMessage("Server",t.message,"danger"),this.tracing=!1}))}}},Joe={class:"mt-md-5 mt-3 text-body"},Qoe={class:"container-md"},eae={class:"mb-3 text-body"},tae={class:"d-flex gap-2 flex-column mb-5"},nae={class:"mb-1 text-muted",for:"ipAddress"},iae=["disabled"],sae=["disabled"],rae={key:0,class:"d-block"},oae={key:1,class:"d-block"},aae={class:"position-relative"},lae={key:"pingPlaceholder"},cae={key:1},uae={key:"table",class:"w-100 mt-2"},dae={class:"table table-sm rounded-3 w-100"},hae={scope:"col"},fae={scope:"col"},gae={scope:"col"},pae={scope:"col"},mae={scope:"col"},_ae={scope:"col"},vae={key:0};function yae(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("OSMap");return P(),F("div",Joe,[f("div",Qoe,[f("h3",eae,[L(o,{t:"Traceroute"})]),f("div",tae,[f("div",null,[f("label",nae,[f("small",null,[L(o,{t:"Enter IP Address / Hostname"})])]),Re(f("input",{disabled:this.tracing,id:"ipAddress",class:"form-control","onUpdate:modelValue":e[0]||(e[0]=l=>this.ipAddress=l),onKeyup:e[1]||(e[1]=dC(l=>this.execute(),["enter"])),type:"text"},null,40,iae),[[ze,this.ipAddress]])]),f("button",{class:"btn btn-primary rounded-3 mt-3 position-relative",disabled:this.tracing||!this.ipAddress,onClick:e[2]||(e[2]=l=>this.execute())},[L(xt,{name:"slide"},{default:Me(()=>[this.tracing?(P(),F("span",oae,e[4]||(e[4]=[f("span",{class:"spinner-border spinner-border-sm","aria-hidden":"true"},null,-1),f("span",{class:"visually-hidden",role:"status"},"Loading...",-1)]))):(P(),F("span",rae,e[3]||(e[3]=[f("i",{class:"bi bi-person-walking me-2"},null,-1),Be("Trace! ")])))]),_:1})],8,sae)]),f("div",aae,[L(xt,{name:"ping"},{default:Me(()=>[this.tracerouteResult?(P(),F("div",cae,[L(a,{d:this.tracerouteResult,type:"traceroute"},null,8,["d"]),f("div",uae,[f("table",dae,[f("thead",null,[f("tr",null,[f("th",hae,[L(o,{t:"Hop"})]),f("th",fae,[L(o,{t:"IP Address"})]),f("th",gae,[L(o,{t:"Average RTT (ms)"})]),f("th",pae,[L(o,{t:"Min RTT (ms)"})]),f("th",mae,[L(o,{t:"Max RTT (ms)"})]),f("th",_ae,[L(o,{t:"Geolocation"})])])]),f("tbody",null,[(P(!0),F(De,null,Ge(this.tracerouteResult,(l,c)=>(P(),F("tr",null,[f("td",null,[f("small",null,pe(l.hop),1)]),f("td",null,[f("small",null,pe(l.ip),1)]),f("td",null,[f("small",null,pe(l.avg_rtt),1)]),f("td",null,[f("small",null,pe(l.min_rtt),1)]),f("td",null,[f("small",null,pe(l.max_rtt),1)]),f("td",null,[l.geo.city&&l.geo.country?(P(),F("span",vae,[f("small",null,pe(l.geo.city)+", "+pe(l.geo.country),1)])):se("",!0)])]))),256))])])])])):(P(),F("div",lae,[e[5]||(e[5]=f("div",{class:"pingPlaceholder bg-body-secondary rounded-3 mb-3",style:{height:"300px !important"}},null,-1)),(P(),F(De,null,Ge(5,l=>f("div",{class:Se(["pingPlaceholder bg-body-secondary rounded-3 mb-3",{"animate__animated animate__flash animate__slower animate__infinite":this.tracing}]),style:Mn({"animation-delay":`${l*.05}s`})},null,6)),64))]))]),_:1})])])])}const bae=He(Zoe,[["render",yae],["__scopeId","data-v-6d6cffc9"]]),wae={name:"totp",components:{LocaleText:Le},async setup(){const t=Je();let e="";return await Pt("/api/Welcome_GetTotpLink",{},n=>{n.status&&(e=n.data)}),{l:e,store:t}},mounted(){this.l&&wa.toCanvas(document.getElementById("qrcode"),this.l,function(t){})},data(){return{totp:"",totpInvalidMessage:"",verified:!1}},methods:{validateTotp(){}},watch:{totp(t){const e=document.querySelector("#totp");e.classList.remove("is-invalid","is-valid"),t.length===6&&(console.log(t),/[0-9]{6}/.test(t)?ht("/api/Welcome_VerifyTotpLink",{totp:t},n=>{n.status?(this.verified=!0,e.classList.add("is-valid"),this.$emit("verified")):(e.classList.add("is-invalid"),this.totpInvalidMessage="TOTP does not match.")}):(e.classList.add("is-invalid"),this.totpInvalidMessage="TOTP can only contain numbers"))}}},xae=["data-bs-theme"],Eae={class:"m-auto text-body",style:{width:"500px"}},Cae={class:"d-flex flex-column"},Sae={class:"dashboardLogo display-4"},kae={class:"mb-2"},Tae={class:"text-muted"},Aae={class:"p-3 bg-body-secondary rounded-3 border mb-3"},Pae={class:"text-muted mb-0"},Mae=["href"],Iae={style:{"line-break":"anywhere"}},Dae={for:"totp",class:"mb-2"},Rae={class:"text-muted"},$ae={class:"form-group mb-2"},Lae=["disabled"],Oae={class:"invalid-feedback"},Nae={class:"valid-feedback"},Fae={class:"d-flex gap-3 mt-5 flex-column"};function Bae(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("RouterLink");return P(),F("div",{class:"container-fluid login-container-fluid d-flex main pt-5 overflow-scroll","data-bs-theme":this.store.Configuration.Server.dashboard_theme},[f("div",Eae,[f("div",Cae,[f("div",null,[f("h1",Sae,[L(o,{t:"Multi-Factor Authentication (MFA)"})]),f("p",kae,[f("small",Tae,[L(o,{t:"1. Please scan the following QR Code to generate TOTP with your choice of authenticator"})])]),e[1]||(e[1]=f("canvas",{id:"qrcode",class:"rounded-3 mb-2"},null,-1)),f("div",Aae,[f("p",Pae,[f("small",null,[L(o,{t:"Or you can click the link below:"})])]),f("a",{href:this.l},[f("code",Iae,pe(this.l),1)],8,Mae)]),f("label",Dae,[f("small",Rae,[L(o,{t:"2. Enter the TOTP generated by your authenticator to verify"})])]),f("div",$ae,[Re(f("input",{class:"form-control text-center totp",id:"totp",maxlength:"6",type:"text",inputmode:"numeric",autocomplete:"one-time-code","onUpdate:modelValue":e[0]||(e[0]=l=>this.totp=l),disabled:this.verified},null,8,Lae),[[ze,this.totp]]),f("div",Oae,[L(o,{t:this.totpInvalidMessage},null,8,["t"])]),f("div",Nae,[L(o,{t:"TOTP verified!"})])])]),e[4]||(e[4]=f("hr",null,null,-1)),f("div",Fae,[this.verified?(P(),Ee(a,{key:1,to:"/",class:"btn btn-dark btn-lg d-flex btn-brand shadow align-items-center flex-grow-1 rounded-3"},{default:Me(()=>[L(o,{t:"Complete"}),e[3]||(e[3]=f("i",{class:"bi bi-chevron-right ms-auto"},null,-1))]),_:1})):(P(),Ee(a,{key:0,to:"/",class:"btn bg-secondary-subtle text-secondary-emphasis rounded-3 flex-grow-1 btn-lg border-1 border-secondary-subtle shadow d-flex"},{default:Me(()=>[L(o,{t:"I don't need MFA"}),e[2]||(e[2]=f("i",{class:"bi bi-chevron-right ms-auto"},null,-1))]),_:1}))])])])],8,xae)}const Vae=He(wae,[["render",Bae]]),zae={name:"share",components:{LocaleText:Le},async setup(){const t=zu(),e=me(!1),n=Je(),i=me(""),s=me(void 0),r=me(new Blob);await Pt("/api/getDashboardTheme",{},a=>{i.value=a.data});const o=t.query.ShareID;return o===void 0||o.length===0?(s.value=void 0,e.value=!0):await Pt("/api/sharePeer/get",{ShareID:o},a=>{a.status?(s.value=a.data,r.value=new Blob([s.value.file],{type:"text/plain"})):s.value=void 0,e.value=!0}),{store:n,theme:i,peerConfiguration:s,blob:r}},mounted(){this.peerConfiguration&&wa.toCanvas(document.querySelector("#qrcode"),this.peerConfiguration.file,t=>{t&&console.error(t)})},methods:{download(){const t=new Blob([this.peerConfiguration.file],{type:"text/plain"}),e=URL.createObjectURL(t),n=`${this.peerConfiguration.fileName}.conf`,i=document.createElement("a");i.href=e,i.download=n,i.click()}},computed:{getBlob(){return URL.createObjectURL(this.blob)}}},Wae=["data-bs-theme"],Yae={class:"m-auto text-body",style:{width:"500px"}},Hae={key:0,class:"text-center position-relative",style:{}},jae={class:"position-absolute w-100 h-100 top-0 start-0 d-flex animate__animated animate__fadeInUp",style:{"animation-delay":"0.1s"}},Kae={class:"m-auto"},Uae={key:1,class:"d-flex align-items-center flex-column gap-3"},Gae={class:"h1 dashboardLogo text-center animate__animated animate__fadeInUp"},Xae={id:"qrcode",class:"rounded-3 shadow animate__animated animate__fadeInUp mb-3",ref:"qrcode"},qae={class:"text-muted animate__animated animate__fadeInUp mb-1",style:{"animation-delay":"0.2s"}},Zae=["download","href"];function Jae(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",{class:"container-fluid login-container-fluid d-flex main pt-5 overflow-scroll","data-bs-theme":this.theme},[f("div",Yae,[this.peerConfiguration?(P(),F("div",Uae,[f("div",Gae,[e[1]||(e[1]=f("h6",null,"WGDashboard",-1)),L(o,{t:"Scan QR Code with the WireGuard App to add peer"})]),f("canvas",Xae,null,512),f("p",qae,[L(o,{t:"or click the button below to download the "}),e[2]||(e[2]=f("samp",null,".conf",-1)),L(o,{t:" file"})]),f("a",{download:this.peerConfiguration.fileName+".conf",href:r.getBlob,class:"btn btn-lg bg-primary-subtle text-primary-emphasis border-1 border-primary-subtle animate__animated animate__fadeInUp shadow-sm",style:{"animation-delay":"0.25s"}},e[3]||(e[3]=[f("i",{class:"bi bi-download"},null,-1)]),8,Zae)])):(P(),F("div",Hae,[e[0]||(e[0]=f("div",{class:"animate__animated animate__fadeInUp"},[f("h1",{style:{"font-size":"20rem",filter:"blur(1rem)","animation-duration":"7s"},class:"animate__animated animate__flash animate__infinite"},[f("i",{class:"bi bi-file-binary"})])],-1)),f("div",jae,[f("h3",Kae,[L(o,{t:"Oh no... This link is either expired or invalid."})])])]))])],8,Wae)}const Qae=He(zae,[["render",Jae],["__scopeId","data-v-1b44aacd"]]),ele={class:"card rounded-3 shadow-sm"},tle={class:"d-flex gap-3 align-items-center"},nle={class:"mb-0"},ile={class:"text-muted"},sle={key:0,class:"card-footer p-3 d-flex flex-column gap-2"},rle=["onClick","id"],ole={class:"card-body d-flex p-3 gap-3 align-items-center"},ale={__name:"backupGroup",props:{configurationName:String,backups:Array,open:!1,selectedConfigurationBackup:Object},emits:["select"],setup(t,{emit:e}){const n=t,i=e,s=me(n.open);return Vt(()=>{n.selectedConfigurationBackup&&document.querySelector(`#${n.selectedConfigurationBackup.filename.replace(".conf","")}`).scrollIntoView({behavior:"smooth"})}),(r,o)=>(P(),F("div",ele,[f("a",{role:"button",class:"card-body d-flex align-items-center text-decoration-none",onClick:o[0]||(o[0]=a=>s.value=!s.value)},[f("div",tle,[f("h6",nle,[f("samp",null,pe(t.configurationName),1)]),f("small",ile,pe(t.backups.length)+" "+pe(t.backups.length>1?"Backups":"Backup"),1)]),f("h5",{class:Se(["ms-auto mb-0 dropdownIcon text-muted",{active:s.value}])},o[1]||(o[1]=[f("i",{class:"bi bi-chevron-down"},null,-1)]),2)]),s.value?(P(),F("div",sle,[(P(!0),F(De,null,Ge(t.backups,a=>(P(),F("div",{class:"card rounded-3 shadow-sm animate__animated",key:a.filename,onClick:()=>{i("select",a)},id:a.filename.replace(".conf",""),role:"button"},[f("div",ole,[f("small",null,[o[2]||(o[2]=f("i",{class:"bi bi-file-earmark me-2"},null,-1)),f("samp",null,pe(a.filename),1)]),f("small",null,[o[3]||(o[3]=f("i",{class:"bi bi-clock-history me-2"},null,-1)),f("samp",null,pe(Z(Nn)(a.backupDate).format("YYYY-MM-DD HH:mm:ss")),1)]),f("small",null,[o[4]||(o[4]=f("i",{class:"bi bi-database me-2"},null,-1)),Be(" "+pe(a.database?"Yes":"No"),1)]),o[5]||(o[5]=f("small",{class:"text-muted ms-auto"},[f("i",{class:"bi bi-chevron-right"})],-1))])],8,rle))),128))])):se("",!0)]))}},lle=He(ale,[["__scopeId","data-v-35612fa2"]]),cle={class:"d-flex flex-column gap-5",id:"confirmBackup"},ule={class:"d-flex flex-column gap-3"},dle={class:"d-flex flex-column flex-sm-row align-items-start align-items-sm-center gap-3"},hle={class:"mb-0"},fle={class:"text-muted mb-1",for:"ConfigurationName"},gle={class:"invalid-feedback"},ple={key:0},mle={key:1},_le={class:"mb-0"},vle={class:"row g-3"},yle={class:"col-sm"},ble={class:"text-muted mb-1",for:"PrivateKey"},wle={class:"input-group"},xle={class:"col-sm"},Ele={class:"text-muted mb-1",for:"PublicKey"},Cle={class:"text-muted mb-1",for:"ListenPort"},Sle={class:"invalid-feedback"},kle={key:0},Tle={key:1},Ale={class:"mb-0"},Ple={class:"text-muted mb-1 d-flex",for:"ListenPort"},Mle={class:"invalid-feedback"},Ile={key:0},Dle={key:1},Rle={class:"accordion",id:"newConfigurationOptionalAccordion"},$le={class:"accordion-item"},Lle={class:"accordion-header"},Ole={class:"accordion-button collapsed rounded-3",type:"button","data-bs-toggle":"collapse","data-bs-target":"#newConfigurationOptionalAccordionCollapse"},Nle={id:"newConfigurationOptionalAccordionCollapse",class:"accordion-collapse collapse","data-bs-parent":"#newConfigurationOptionalAccordion"},Fle={class:"accordion-body d-flex flex-column gap-3"},Ble={class:"text-muted mb-1",for:"PreUp"},Vle={class:"text-muted mb-1",for:"PreDown"},zle={class:"text-muted mb-1",for:"PostUp"},Wle={class:"text-muted mb-1",for:"PostDown"},Yle={class:"d-flex flex-column gap-3"},Hle={class:"d-flex flex-column flex-sm-row align-items-start align-items-sm-center gap-3"},jle={class:"mb-0"},Kle={key:0},Ule={class:"row g-3"},Gle={class:"col-sm"},Xle={class:"card text-bg-success rounded-3"},qle={class:"card-body"},Zle={class:"col-sm"},Jle={class:"card text-bg-warning rounded-3"},Qle={class:"card-body"},ece={class:"d-flex"},tce=["disabled"],nce={__name:"confirmBackup",props:{selectedConfigurationBackup:Object},setup(t){const e=t,n=Ei({ConfigurationName:e.selectedConfigurationBackup.filename.split("_")[0],Backup:e.selectedConfigurationBackup.filename}),i=e.selectedConfigurationBackup.content.split(` -`);for(let E of i){if(E==="[Peer]")break;if(E.length>0){let w=E.replace(" = ","=").split("=");w[0]==="ListenPort"?n[w[0]]=parseInt(w[1]):n[w[0]]=w[1]}}const s=me(!1),r=me(!1),o=me(""),a=Vn(),l=ye(()=>/^[a-zA-Z0-9_=+.-]{1,15}$/.test(n.ConfigurationName)&&n.ConfigurationName.length>0&&!a.Configurations.find(E=>E.Name===n.ConfigurationName)),c=ye(()=>{try{wireguard.generatePublicKey(n.PrivateKey)}catch{return!1}return!0}),u=ye(()=>n.ListenPort>0&&n.ListenPort<=65353&&Number.isInteger(n.ListenPort)&&!a.Configurations.find(E=>parseInt(E.ListenPort)===n.ListenPort)),d=ye(()=>{try{return am(n.Address),!0}catch{return!1}}),h=ye(()=>d.value&&u.value&&c.value&&l.value);Vt(()=>{document.querySelector("main").scrollTo({top:0,behavior:"smooth"}),Zt(()=>c,E=>{E&&(n.PublicKey=wireguard.generatePublicKey(n.PrivateKey))},{immediate:!0})});const g=ye(()=>{let E;try{E=am(n.Address)}catch{return 0}return E.end-E.start}),p=ye(()=>e.selectedConfigurationBackup.database?e.selectedConfigurationBackup.databaseContent.split(` -`).filter(w=>w.search('INSERT INTO "(.*)"')>=0).length:0),m=ye(()=>e.selectedConfigurationBackup.database?e.selectedConfigurationBackup.databaseContent.split(` -`).filter(w=>w.search('INSERT INTO "(.*)_restrict_access"')>=0).length:0),v=Je(),y=IC(),x=async()=>{h.value&&await ht("/api/addWireguardConfiguration",n,async E=>{E.status&&(v.newMessage("Server","Configuration restored","success"),await a.getConfigurations(),await y.push(`/configuration/${n.ConfigurationName}/peers`))})};return(E,w)=>(P(),F("div",cle,[f("form",ule,[f("div",dle,[f("h4",hle,[L(Le,{t:"Configuration File"})])]),f("div",null,[f("label",fle,[f("small",null,[L(Le,{t:"Configuration Name"})])]),Re(f("input",{type:"text",class:Se(["form-control rounded-3",[l.value?"is-valid":"is-invalid"]]),placeholder:"ex. wg1",id:"ConfigurationName","onUpdate:modelValue":w[0]||(w[0]=b=>n.ConfigurationName=b),disabled:"",required:""},null,2),[[ze,n.ConfigurationName]]),f("div",gle,[s.value?(P(),F("div",ple,pe(o.value),1)):(P(),F("div",mle,[L(Le,{t:"Configuration name is invalid. Possible reasons:"}),f("ul",_le,[f("li",null,[L(Le,{t:"Configuration name already exist."})]),f("li",null,[L(Le,{t:"Configuration name can only contain 15 lower/uppercase alphabet, numbers, underscore, equal sign, plus sign, period and hyphen."})])])]))])]),f("div",vle,[f("div",yle,[f("div",null,[f("label",ble,[f("small",null,[L(Le,{t:"Private Key"})])]),f("div",wle,[Re(f("input",{type:"text",class:Se(["form-control rounded-start-3",[c.value?"is-valid":"is-invalid"]]),id:"PrivateKey",required:"","onUpdate:modelValue":w[1]||(w[1]=b=>n.PrivateKey=b),disabled:""},null,2),[[ze,n.PrivateKey]])])])]),f("div",xle,[f("div",null,[f("label",Ele,[f("small",null,[L(Le,{t:"Public Key"})])]),Re(f("input",{type:"text",class:"form-control rounded-3",id:"PublicKey","onUpdate:modelValue":w[2]||(w[2]=b=>n.PublicKey=b),disabled:""},null,512),[[ze,n.PublicKey]])])])]),f("div",null,[f("label",Cle,[f("small",null,[L(Le,{t:"Listen Port"})])]),Re(f("input",{type:"number",class:Se(["form-control rounded-3",[u.value?"is-valid":"is-invalid"]]),placeholder:"0-65353",id:"ListenPort",min:"1",max:"65353","onUpdate:modelValue":w[3]||(w[3]=b=>n.ListenPort=b),disabled:"",required:""},null,2),[[ze,n.ListenPort]]),f("div",Sle,[s.value?(P(),F("div",kle,pe(o.value),1)):(P(),F("div",Tle,[L(Le,{t:"Listen Port is invalid. Possible reasons:"}),f("ul",Ale,[f("li",null,[L(Le,{t:"Invalid port."})]),f("li",null,[L(Le,{t:"Port is assigned to existing WireGuard Configuration. "})])])]))])]),f("div",null,[f("label",Ple,[f("small",null,[L(Le,{t:"IP Address/CIDR"})]),f("small",{class:Se(["ms-auto",[g.value>0?"text-success":"text-danger"]])},pe(g.value)+" Available IP Address ",3)]),Re(f("input",{type:"text",class:Se(["form-control",[d.value?"is-valid":"is-invalid"]]),placeholder:"Ex: 10.0.0.1/24",id:"Address","onUpdate:modelValue":w[4]||(w[4]=b=>n.Address=b),disabled:"",required:""},null,2),[[ze,n.Address]]),f("div",Mle,[s.value?(P(),F("div",Ile,pe(o.value),1)):(P(),F("div",Dle,[L(Le,{t:"IP Address/CIDR is invalid"})]))])]),f("div",Rle,[f("div",$le,[f("h2",Lle,[f("button",Ole,[L(Le,{t:"Optional Settings"})])]),f("div",Nle,[f("div",Fle,[f("div",null,[f("label",Ble,[f("small",null,[L(Le,{t:"PreUp"})])]),Re(f("input",{type:"text",class:"form-control rounded-3",id:"PreUp",disabled:"","onUpdate:modelValue":w[5]||(w[5]=b=>n.PreUp=b)},null,512),[[ze,n.PreUp]])]),f("div",null,[f("label",Vle,[f("small",null,[L(Le,{t:"PreDown"})])]),Re(f("input",{type:"text",class:"form-control rounded-3",id:"PreDown",disabled:"","onUpdate:modelValue":w[6]||(w[6]=b=>n.PreDown=b)},null,512),[[ze,n.PreDown]])]),f("div",null,[f("label",zle,[f("small",null,[L(Le,{t:"PostUp"})])]),Re(f("input",{type:"text",class:"form-control rounded-3",id:"PostUp",disabled:"","onUpdate:modelValue":w[7]||(w[7]=b=>n.PostUp=b)},null,512),[[ze,n.PostUp]])]),f("div",null,[f("label",Wle,[f("small",null,[L(Le,{t:"PostDown"})])]),Re(f("input",{type:"text",class:"form-control rounded-3",id:"PostDown",disabled:"","onUpdate:modelValue":w[8]||(w[8]=b=>n.PostDown=b)},null,512),[[ze,n.PostDown]])])])])])])]),f("div",Yle,[f("div",Hle,[f("h4",jle,[L(Le,{t:"Database File"})]),f("h4",{class:Se(["mb-0 ms-auto",[t.selectedConfigurationBackup.database?"text-success":"text-danger"]])},[f("i",{class:Se(["bi",[t.selectedConfigurationBackup.database?"bi-check-circle-fill":"bi-x-circle-fill"]])},null,2)],2)]),t.selectedConfigurationBackup.database?(P(),F("div",Kle,[f("div",Ule,[f("div",Gle,[f("div",Xle,[f("div",qle,[w[10]||(w[10]=f("i",{class:"bi bi-person-fill me-2"},null,-1)),w[11]||(w[11]=Be(" Contain ")),f("strong",null,pe(p.value),1),Be(" Peer"+pe(p.value>1?"s":""),1)])])]),f("div",Zle,[f("div",Jle,[f("div",Qle,[w[12]||(w[12]=f("i",{class:"bi bi-person-fill-lock me-2"},null,-1)),w[13]||(w[13]=Be(" Contain ")),f("strong",null,pe(m.value),1),Be(" Restricted Peer"+pe(m.value>1?"s":""),1)])])])])])):se("",!0)]),f("div",ece,[f("button",{class:"btn btn-dark btn-brand rounded-3 px-3 py-2 shadow ms-auto",disabled:!h.value||r.value,onClick:w[9]||(w[9]=b=>x())},[w[14]||(w[14]=f("i",{class:"bi bi-clock-history me-2"},null,-1)),Be(" "+pe(r.value?"Restoring...":"Restore"),1)],8,tce)])]))}},ice={class:"mt-5 text-body"},sce={class:"container mb-4"},rce={class:"mb-5 d-flex align-items-center gap-4"},oce={class:"mb-0"},ace={key:0},lce={class:"d-flex text-decoration-none text-body flex-grow-1 align-items-center gap-3"},cce={class:"text-muted"},uce={key:0,class:"ms-sm-auto"},dce={key:0,id:"step1Detail"},hce={class:"mb-4"},fce={class:"d-flex gap-3 flex-column"},gce={key:0},pce={class:"my-5",key:"step2",id:"step2"},mce={class:"text-muted"},_ce={__name:"restoreConfiguration",setup(t){const e=me(void 0);Vt(()=>{Pt("/api/getAllWireguardConfigurationBackup",{},r=>{e.value=r.data})});const n=me(!1),i=me(void 0),s=me("");return(r,o)=>{const a=Ce("RouterLink");return P(),F("div",ice,[f("div",sce,[f("div",rce,[L(a,{to:"/new_configuration",class:"btn btn-dark btn-brand p-2 shadow",style:{"border-radius":"100%"}},{default:Me(()=>o[1]||(o[1]=[f("h2",{class:"mb-0",style:{"line-height":"0"}},[f("i",{class:"bi bi-arrow-left-circle"})],-1)])),_:1}),f("h2",oce,[L(Le,{t:"Restore Configuration"})])]),e.value?(P(),F("div",ace,[f("div",{class:Se(["d-flex mb-5 align-items-center steps",{active:!n.value}]),role:"button",onClick:o[0]||(o[0]=l=>n.value=!1),key:"step1"},[f("div",lce,[o[3]||(o[3]=f("h1",{class:"mb-0",style:{"line-height":"0"}},[f("i",{class:"bi bi-1-circle-fill"})],-1)),f("div",null,[o[2]||(o[2]=f("h4",{class:"mb-0"},"Step 1",-1)),f("small",cce,[n.value?(P(),Ee(Le,{key:1,t:"Click to change a backup"})):(P(),Ee(Le,{key:0,t:"Select a backup you want to restore"}))])])]),L(xt,{name:"zoomReversed"},{default:Me(()=>[n.value?(P(),F("div",uce,[o[4]||(o[4]=f("small",{class:"text-muted"},"Selected Backup",-1)),f("h6",null,[f("samp",null,pe(i.value.filename),1)])])):se("",!0)]),_:1})],2),n.value?se("",!0):(P(),F("div",dce,[f("div",hce,[f("div",fce,[(P(!0),F(De,null,Ge(Object.keys(e.value.NonExistingConfigurations),l=>(P(),Ee(lle,{onSelect:c=>{i.value=c,s.value=l,n.value=!0},selectedConfigurationBackup:i.value,open:s.value===l,"configuration-name":l,backups:e.value.NonExistingConfigurations[l]},null,8,["onSelect","selectedConfigurationBackup","open","configuration-name","backups"]))),256)),Object.keys(e.value.NonExistingConfigurations).length===0?(P(),F("div",gce,o[5]||(o[5]=[f("div",{class:"card rounded-3"},[f("div",{class:"card-body"},[f("p",{class:"mb-0"},"You don't have any configuration to restore")])],-1)]))):se("",!0)])])])),f("div",pce,[f("div",{class:Se(["steps d-flex text-decoration-none text-body flex-grow-1 align-items-center gap-3",{active:n.value}])},[o[7]||(o[7]=f("h1",{class:"mb-0",style:{"line-height":"0"}},[f("i",{class:"bi bi-2-circle-fill"})],-1)),f("div",null,[o[6]||(o[6]=f("h4",{class:"mb-0"},"Step 2",-1)),f("small",mce,[n.value?(P(),Ee(Le,{key:1,t:"Confirm & edit restore information"})):(P(),Ee(Le,{key:0,t:"Backup not selected"}))])])],2)]),n.value?(P(),Ee(nce,{selectedConfigurationBackup:i.value,key:"confirm"},null,8,["selectedConfigurationBackup"])):se("",!0)])):se("",!0)])])}}},vce=He(_ce,[["__scopeId","data-v-1dc71439"]]),yce=async()=>{let t=!1;return await Pt("/api/validateAuthentication",{},e=>{t=e.status}),t},Ql=mL({history:U$(),scrollBehavior(){document.querySelector("main")!==null&&document.querySelector("main").scrollTo({top:0})},routes:[{name:"Index",path:"/",component:uO,meta:{requiresAuth:!0},children:[{name:"Configuration List",path:"",component:M3,meta:{title:"WireGuard Configurations"}},{name:"Settings",path:"/settings",component:R6,meta:{title:"Settings"}},{path:"/ping",name:"Ping",component:qoe},{path:"/traceroute",name:"Traceroute",component:bae},{name:"New Configuration",path:"/new_configuration",component:nz,meta:{title:"New Configuration"}},{name:"Restore Configuration",path:"/restore_configuration",component:vce,meta:{title:"Restore Configuration"}},{name:"Configuration",path:"/configuration/:id",component:oz,meta:{title:"Configuration"},children:[{name:"Peers List",path:"peers",component:Ite},{name:"Peers Create",path:"create",component:nT}]}]},{path:"/signin",component:n3,meta:{title:"Sign In"}},{path:"/welcome",component:J6,meta:{requiresAuth:!0,title:"Welcome to WGDashboard"}},{path:"/2FASetup",component:Vae,meta:{requiresAuth:!0,title:"Multi-Factor Authentication Setup"}},{path:"/share",component:Qae,meta:{title:"Share"}}]});Ql.beforeEach(async(t,e,n)=>{const i=Vn(),s=Je();t.meta.title?t.params.id?document.title=t.params.id+" | WGDashboard":document.title=t.meta.title+" | WGDashboard":document.title="WGDashboard",s.ShowNavBar=!1,document.querySelector(".loadingBar").classList.remove("loadingDone"),document.querySelector(".loadingBar").classList.add("loading"),t.meta.requiresAuth?s.getActiveCrossServer()?(await s.getConfiguration(),!i.Configurations&&t.name!=="Configuration List"&&await i.getConfigurations(),n()):vL.getCookie("authToken")&&await yce()?(await s.getConfiguration(),!i.Configurations&&t.name!=="Configuration List"&&await i.getConfigurations(),s.Redirect=void 0,n()):(s.Redirect=t,n("/signin"),s.newMessage("WGDashboard","Sign in session ended, please sign in again","warning")):n()});Ql.afterEach(()=>{document.querySelector(".loadingBar").classList.remove("loading"),document.querySelector(".loadingBar").classList.add("loadingDone")});const bA=()=>{let t={"content-type":"application/json"};const n=Je().getActiveCrossServer();return n&&(t["wg-dashboard-apikey"]=n.apiKey),t},wA=t=>{const n=Je().getActiveCrossServer();return n?`${n.host}${t}`:`${window.location.protocol}//${(window.location.host+window.location.pathname+t).replace(/\/\//g,"/")}`},Pt=async(t,e=void 0,n=void 0)=>{const i=new URLSearchParams(e);await fetch(`${wA(t)}?${i.toString()}`,{headers:bA()}).then(s=>{const r=Je();if(s.ok)return s.json();if(s.status!==200)throw s.status===401&&r.newMessage("WGDashboard","Sign in session ended, please sign in again","warning"),new Error(s.statusText)}).then(s=>n?n(s):void 0).catch(s=>{console.log(s),Ql.push({path:"/signin"})})},ht=async(t,e,n)=>{await fetch(`${wA(t)}`,{headers:bA(),method:"POST",body:JSON.stringify(e)}).then(i=>{const s=Je();if(i.ok)return i.json();if(i.status!==200)throw i.status===401&&s.newMessage("WGDashboard","Sign in session ended, please sign in again","warning"),new Error(i.statusText)}).then(i=>n?n(i):void 0).catch(i=>{console.log(i),Ql.push({path:"/signin"})})},Je=_C("DashboardConfigurationStore",{state:()=>({Redirect:void 0,Configuration:void 0,Messages:[],Peers:{Selecting:!1,RefreshInterval:void 0},CrossServerConfiguration:{Enable:!1,ServerList:{}},ActiveServerConfiguration:void 0,IsElectronApp:!1,ShowNavBar:!1,Locale:void 0}),actions:{initCrossServerConfiguration(){const t=localStorage.getItem("CrossServerConfiguration");localStorage.getItem("ActiveCrossServerConfiguration")!==null&&(this.ActiveServerConfiguration=localStorage.getItem("ActiveCrossServerConfiguration")),t===null?window.localStorage.setItem("CrossServerConfiguration",JSON.stringify(this.CrossServerConfiguration)):this.CrossServerConfiguration=JSON.parse(t)},syncCrossServerConfiguration(){window.localStorage.setItem("CrossServerConfiguration",JSON.stringify(this.CrossServerConfiguration))},addCrossServerConfiguration(){this.CrossServerConfiguration.ServerList[Bs().toString()]={host:"",apiKey:"",active:!1}},deleteCrossServerConfiguration(t){delete this.CrossServerConfiguration.ServerList[t]},getActiveCrossServer(){const t=localStorage.getItem("ActiveCrossServerConfiguration");if(t!==null)return this.CrossServerConfiguration.ServerList[t]},setActiveCrossServer(t){this.ActiveServerConfiguration=t,localStorage.setItem("ActiveCrossServerConfiguration",t)},removeActiveCrossServer(){this.ActiveServerConfiguration=void 0,localStorage.removeItem("ActiveCrossServerConfiguration")},async getConfiguration(){await Pt("/api/getDashboardConfiguration",{},t=>{t.status&&(this.Configuration=t.data)})},async signOut(){await Pt("/api/signout",{},t=>{this.removeActiveCrossServer(),this.$router.go("/signin")})},newMessage(t,e,n){this.Messages.push({id:Bs(),from:At(t),content:At(e),type:n,show:!0})},applyLocale(t){if(this.Locale===null)return t;const n=Object.keys(this.Locale).filter(i=>t.match(new RegExp("^"+i+"$","g"))!==null);return console.log(n),n.length===0||n.length>1?t:this.Locale[n[0]]}}}),bce={class:"navbar bg-dark sticky-top","data-bs-theme":"dark"},wce={class:"container-fluid d-flex text-body align-items-center"},xce={key:0,class:"ms-auto text-muted"},Ece={__name:"App",setup(t){const e=Je();e.initCrossServerConfiguration(),window.IS_WGDASHBOARD_DESKTOP&&(e.IsElectronApp=!0,e.CrossServerConfiguration.Enable=!0),Zt(e.CrossServerConfiguration,()=>{e.syncCrossServerConfiguration()},{deep:!0});const n=ye(()=>{if(e.ActiveServerConfiguration)return e.CrossServerConfiguration.ServerList[e.ActiveServerConfiguration]});return(i,s)=>(P(),F(De,null,[s[4]||(s[4]=f("div",{style:{"z-index":"9999",height:"5px"},class:"position-absolute loadingBar top-0 start-0"},null,-1)),f("nav",bce,[f("div",wce,[s[3]||(s[3]=f("span",{class:"navbar-brand mb-0 h1"},"WGDashboard",-1)),n.value!==void 0?(P(),F("small",xce,[s[1]||(s[1]=f("i",{class:"bi bi-server me-2"},null,-1)),Be(pe(n.value.host),1)])):se("",!0),f("a",{role:"button",class:"navbarBtn text-body",onClick:s[0]||(s[0]=r=>Z(e).ShowNavBar=!Z(e).ShowNavBar),style:{"line-height":"0","font-size":"2rem"}},s[2]||(s[2]=[f("i",{class:"bi bi-list"},null,-1)]))])]),(P(),Ee(x_,null,{default:Me(()=>[L(Z(MC),null,{default:Me(({Component:r})=>[L(xt,{name:"app",mode:"out-in",type:"transition",appear:""},{default:Me(()=>[(P(),Ee(_a(r)))]),_:2},1024)]),_:1})]),_:1}))],64))}},Cce=He(Ece,[["__scopeId","data-v-ca898237"]]);let Wm;await fetch("/api/locale").then(t=>t.json()).then(t=>Wm=t.data).catch(()=>{Wm=null});const Qv=o$(Cce);Qv.use(Ql);const xA=u$();xA.use(({store:t})=>{t.$router=uf(Ql)});Qv.use(xA);const Sce=Je();Sce.Locale=Wm;Qv.mount("#app"); +`+p;er.get(m)===void 0&&(er.set(m,100,!0),a(u.style,u.weight,p)||(er.set(m,0,!0),r===void 0&&(r=setInterval(l,32))))}}}(),bie=function(){let t;return function(e){let n=$m[e];if(n==null){if($T){const i=NT(e),s=BT(e,"Žg");n=(isNaN(Number(i.lineHeight))?1.2:Number(i.lineHeight))*(s.actualBoundingBoxAscent+s.actualBoundingBoxDescent)}else t||(t=document.createElement("div"),t.innerHTML="M",t.style.minHeight="0",t.style.maxHeight="none",t.style.height="auto",t.style.padding="0",t.style.border="none",t.style.position="absolute",t.style.display="block",t.style.left="-99999px"),t.style.font=e,document.body.appendChild(t),n=t.offsetHeight,document.body.removeChild(t);$m[e]=n}return n}}();function BT(t,e){return Ja||(Ja=hn(1,1)),t!=Rm&&(Ja.font=t,Rm=Ja.font),Ja.measureText(e)}function Kh(t,e){return BT(t,e).width}function Iw(t,e,n){if(e in n)return n[e];const i=e.split(` +`).reduce((s,r)=>Math.max(s,Kh(t,r)),0);return n[e]=i,i}function wie(t,e){const n=[],i=[],s=[];let r=0,o=0,a=0,l=0;for(let c=0,u=e.length;c<=u;c+=2){const d=e[c];if(d===` +`||c===u){r=Math.max(r,o),s.push(o),o=0,a+=l,l=0;continue}const f=e[c+1]||t.font,g=Kh(f,d);n.push(g),o+=g;const p=bie(f);i.push(p),l=Math.max(l,p)}return{width:r,height:a,widths:n,heights:i,lineWidths:s}}function xie(t,e,n,i,s,r,o,a,l,c,u){t.save(),n!==1&&(t.globalAlpha===void 0?t.globalAlpha=d=>d.globalAlpha*=n:t.globalAlpha*=n),e&&t.transform.apply(t,e),i.contextInstructions?(t.translate(l,c),t.scale(u[0],u[1]),Eie(i,t)):u[0]<0||u[1]<0?(t.translate(l,c),t.scale(u[0],u[1]),t.drawImage(i,s,r,o,a,0,0,o,a)):t.drawImage(i,s,r,o,a,l,c,o*u[0],a*u[1]),t.restore()}function Eie(t,e){const n=t.contextInstructions;for(let i=0,s=n.length;ithis.imageState_=ot.LOADED),this.render()}clone(){const e=this.getScale(),n=new Qf({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return n.setOpacity(this.getOpacity()),n}getAnchor(){const e=this.size_,n=this.getDisplacement(),i=this.getScaleArray();return[e[0]/2-n[0]/i[0],e[1]/2+n[1]/i[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(e){let n=this.canvases_[e];if(!n){const i=this.renderOptions_,s=hn(i.size*e,i.size*e);this.draw_(i,s,e),n=s.canvas,this.canvases_[e]=n}return n}getPixelRatio(e){return e}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,n,i){if(n===0||this.points_===1/0||e!=="bevel"&&e!=="miter")return n;let s=this.radius,r=this.radius2_===void 0?s:this.radius2_;if(s{this.patternImage_=null}),n.getImageState()===ot.IDLE&&n.load(),n.getImageState()===ot.LOADING&&(this.patternImage_=n)}this.color_=e}loading(){return!!this.patternImage_}ready(){return this.patternImage_?this.patternImage_.ready():Promise.resolve()}}class jl{constructor(e){e=e||{},this.color_=e.color!==void 0?e.color:null,this.lineCap_=e.lineCap,this.lineDash_=e.lineDash!==void 0?e.lineDash:null,this.lineDashOffset_=e.lineDashOffset,this.lineJoin_=e.lineJoin,this.miterLimit_=e.miterLimit,this.width_=e.width}clone(){const e=this.getColor();return new jl({color:Array.isArray(e)?e.slice():e||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})}getColor(){return this.color_}getLineCap(){return this.lineCap_}getLineDash(){return this.lineDash_}getLineDashOffset(){return this.lineDashOffset_}getLineJoin(){return this.lineJoin_}getMiterLimit(){return this.miterLimit_}getWidth(){return this.width_}setColor(e){this.color_=e}setLineCap(e){this.lineCap_=e}setLineDash(e){this.lineDash_=e}setLineDashOffset(e){this.lineDashOffset_=e}setLineJoin(e){this.lineJoin_=e}setMiterLimit(e){this.miterLimit_=e}setWidth(e){this.width_=e}}class pr{constructor(e){e=e||{},this.geometry_=null,this.geometryFunction_=Dw,e.geometry!==void 0&&this.setGeometry(e.geometry),this.fill_=e.fill!==void 0?e.fill:null,this.image_=e.image!==void 0?e.image:null,this.renderer_=e.renderer!==void 0?e.renderer:null,this.hitDetectionRenderer_=e.hitDetectionRenderer!==void 0?e.hitDetectionRenderer:null,this.stroke_=e.stroke!==void 0?e.stroke:null,this.text_=e.text!==void 0?e.text:null,this.zIndex_=e.zIndex}clone(){let e=this.getGeometry();return e&&typeof e=="object"&&(e=e.clone()),new pr({geometry:e??void 0,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer()??void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})}getRenderer(){return this.renderer_}setRenderer(e){this.renderer_=e}setHitDetectionRenderer(e){this.hitDetectionRenderer_=e}getHitDetectionRenderer(){return this.hitDetectionRenderer_}getGeometry(){return this.geometry_}getGeometryFunction(){return this.geometryFunction_}getFill(){return this.fill_}setFill(e){this.fill_=e}getImage(){return this.image_}setImage(e){this.image_=e}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e}getText(){return this.text_}setText(e){this.text_=e}getZIndex(){return this.zIndex_}setGeometry(e){typeof e=="function"?this.geometryFunction_=e:typeof e=="string"?this.geometryFunction_=function(n){return n.get(e)}:e?e!==void 0&&(this.geometryFunction_=function(){return e}):this.geometryFunction_=Dw,this.geometry_=e}setZIndex(e){this.zIndex_=e}}function Cie(t){let e;if(typeof t=="function")e=t;else{let n;Array.isArray(t)?n=t:(mt(typeof t.getZIndex=="function","Expected an `Style` or an array of `Style`"),n=[t]),e=function(){return n}}return e}let xp=null;function VT(t,e){if(!xp){const n=new Zl({color:"rgba(255,255,255,0.4)"}),i=new jl({color:"#3399CC",width:1.25});xp=[new pr({image:new Qu({fill:n,stroke:i,radius:5}),fill:n,stroke:i})]}return xp}function Dw(t){return t.getGeometry()}function Rw(t,e,n,i){return n!==void 0&&i!==void 0?[n/t,i/e]:n!==void 0?n/t:i!==void 0?i/e:1}class eg extends Zf{constructor(e){e=e||{};const n=e.opacity!==void 0?e.opacity:1,i=e.rotation!==void 0?e.rotation:0,s=e.scale!==void 0?e.scale:1,r=e.rotateWithView!==void 0?e.rotateWithView:!1;super({opacity:n,rotation:i,scale:s,displacement:e.displacement!==void 0?e.displacement:[0,0],rotateWithView:r,declutterMode:e.declutterMode}),this.anchor_=e.anchor!==void 0?e.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=e.anchorOrigin!==void 0?e.anchorOrigin:"top-left",this.anchorXUnits_=e.anchorXUnits!==void 0?e.anchorXUnits:"fraction",this.anchorYUnits_=e.anchorYUnits!==void 0?e.anchorYUnits:"fraction",this.crossOrigin_=e.crossOrigin!==void 0?e.crossOrigin:null;const o=e.img!==void 0?e.img:null;let a=e.src;mt(!(a!==void 0&&o),"`image` and `src` cannot be provided at the same time"),(a===void 0||a.length===0)&&o&&(a=o.src||Et(o)),mt(a!==void 0&&a.length>0,"A defined and non-empty `src` or `image` must be provided"),mt(!((e.width!==void 0||e.height!==void 0)&&e.scale!==void 0),"`width` or `height` cannot be provided together with `scale`");let l;if(e.src!==void 0?l=ot.IDLE:o!==void 0&&("complete"in o?o.complete?l=o.src?ot.LOADED:ot.IDLE:l=ot.LOADING:l=ot.LOADED),this.color_=e.color!==void 0?ku(e.color):null,this.iconImage_=zv(o,a,this.crossOrigin_,l,this.color_),this.offset_=e.offset!==void 0?e.offset:[0,0],this.offsetOrigin_=e.offsetOrigin!==void 0?e.offsetOrigin:"top-left",this.origin_=null,this.size_=e.size!==void 0?e.size:null,this.initialOptions_,e.width!==void 0||e.height!==void 0){let c,u;if(e.size)[c,u]=e.size;else{const d=this.getImage(1);if(d.width&&d.height)c=d.width,u=d.height;else if(d instanceof HTMLImageElement){this.initialOptions_=e;const f=()=>{if(this.unlistenImageChange(f),!this.initialOptions_)return;const g=this.iconImage_.getSize();this.setScale(Rw(g[0],g[1],e.width,e.height))};this.listenImageChange(f);return}}c!==void 0&&this.setScale(Rw(c,u,e.width,e.height))}}clone(){let e,n,i;return this.initialOptions_?(n=this.initialOptions_.width,i=this.initialOptions_.height):(e=this.getScale(),e=Array.isArray(e)?e.slice():e),new eg({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:e,width:n,height:i,size:this.size_!==null?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getAnchor(){let e=this.normalizedAnchor_;if(!e){e=this.anchor_;const s=this.getSize();if(this.anchorXUnits_=="fraction"||this.anchorYUnits_=="fraction"){if(!s)return null;e=this.anchor_.slice(),this.anchorXUnits_=="fraction"&&(e[0]*=s[0]),this.anchorYUnits_=="fraction"&&(e[1]*=s[1])}if(this.anchorOrigin_!="top-left"){if(!s)return null;e===this.anchor_&&(e=this.anchor_.slice()),(this.anchorOrigin_=="top-right"||this.anchorOrigin_=="bottom-right")&&(e[0]=-e[0]+s[0]),(this.anchorOrigin_=="bottom-left"||this.anchorOrigin_=="bottom-right")&&(e[1]=-e[1]+s[1])}this.normalizedAnchor_=e}const n=this.getDisplacement(),i=this.getScaleArray();return[e[0]-n[0]/i[0],e[1]+n[1]/i[1]]}setAnchor(e){this.anchor_=e,this.normalizedAnchor_=null}getColor(){return this.color_}getImage(e){return this.iconImage_.getImage(e)}getPixelRatio(e){return this.iconImage_.getPixelRatio(e)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let e=this.offset_;if(this.offsetOrigin_!="top-left"){const n=this.getSize(),i=this.iconImage_.getSize();if(!n||!i)return null;e=e.slice(),(this.offsetOrigin_=="top-right"||this.offsetOrigin_=="bottom-right")&&(e[0]=i[0]-n[0]-e[0]),(this.offsetOrigin_=="bottom-left"||this.offsetOrigin_=="bottom-right")&&(e[1]=i[1]-n[1]-e[1])}return this.origin_=e,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){const e=this.getScaleArray();if(this.size_)return this.size_[0]*e[0];if(this.iconImage_.getImageState()==ot.LOADED)return this.iconImage_.getSize()[0]*e[0]}getHeight(){const e=this.getScaleArray();if(this.size_)return this.size_[1]*e[1];if(this.iconImage_.getImageState()==ot.LOADED)return this.iconImage_.getSize()[1]*e[1]}setScale(e){delete this.initialOptions_,super.setScale(e)}listenImageChange(e){this.iconImage_.addEventListener(tt.CHANGE,e)}load(){this.iconImage_.load()}unlistenImageChange(e){this.iconImage_.removeEventListener(tt.CHANGE,e)}ready(){return this.iconImage_.ready()}}const Sie="#333";class Yv{constructor(e){e=e||{},this.font_=e.font,this.rotation_=e.rotation,this.rotateWithView_=e.rotateWithView,this.scale_=e.scale,this.scaleArray_=wi(e.scale!==void 0?e.scale:1),this.text_=e.text,this.textAlign_=e.textAlign,this.justify_=e.justify,this.repeat_=e.repeat,this.textBaseline_=e.textBaseline,this.fill_=e.fill!==void 0?e.fill:new Zl({color:Sie}),this.maxAngle_=e.maxAngle!==void 0?e.maxAngle:Math.PI/4,this.placement_=e.placement!==void 0?e.placement:"point",this.overflow_=!!e.overflow,this.stroke_=e.stroke!==void 0?e.stroke:null,this.offsetX_=e.offsetX!==void 0?e.offsetX:0,this.offsetY_=e.offsetY!==void 0?e.offsetY:0,this.backgroundFill_=e.backgroundFill?e.backgroundFill:null,this.backgroundStroke_=e.backgroundStroke?e.backgroundStroke:null,this.padding_=e.padding===void 0?null:e.padding,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new Yv({font:this.getFont(),placement:this.getPlacement(),repeat:this.getRepeat(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0,declutterMode:this.getDeclutterMode()})}getOverflow(){return this.overflow_}getFont(){return this.font_}getMaxAngle(){return this.maxAngle_}getPlacement(){return this.placement_}getRepeat(){return this.repeat_}getOffsetX(){return this.offsetX_}getOffsetY(){return this.offsetY_}getFill(){return this.fill_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getStroke(){return this.stroke_}getText(){return this.text_}getTextAlign(){return this.textAlign_}getJustify(){return this.justify_}getTextBaseline(){return this.textBaseline_}getBackgroundFill(){return this.backgroundFill_}getBackgroundStroke(){return this.backgroundStroke_}getPadding(){return this.padding_}getDeclutterMode(){return this.declutterMode_}setOverflow(e){this.overflow_=e}setFont(e){this.font_=e}setMaxAngle(e){this.maxAngle_=e}setOffsetX(e){this.offsetX_=e}setOffsetY(e){this.offsetY_=e}setPlacement(e){this.placement_=e}setRepeat(e){this.repeat_=e}setRotateWithView(e){this.rotateWithView_=e}setFill(e){this.fill_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=wi(e!==void 0?e:1)}setStroke(e){this.stroke_=e}setText(e){this.text_=e}setTextAlign(e){this.textAlign_=e}setJustify(e){this.justify_=e}setTextBaseline(e){this.textBaseline_=e}setBackgroundFill(e){this.backgroundFill_=e}setBackgroundStroke(e){this.backgroundStroke_=e}setPadding(e){this.padding_=e}}let Ea=0;const ni=1<",GreaterThanOrEqualTo:">=",LessThan:"<",LessThanOrEqualTo:"<=",Multiply:"*",Divide:"/",Add:"+",Subtract:"-",Clamp:"clamp",Mod:"%",Pow:"^",Abs:"abs",Floor:"floor",Ceil:"ceil",Round:"round",Sin:"sin",Cos:"cos",Atan:"atan",Sqrt:"sqrt",Match:"match",Between:"between",Interpolate:"interpolate",Coalesce:"coalesce",Case:"case",In:"in",Number:"number",String:"string",Array:"array",Color:"color",Id:"id",Band:"band",Palette:"palette",ToString:"to-string",Has:"has"},Pie={[_e.Get]:qe(st(1,1/0),$w),[_e.Var]:qe(st(1,1),Mie),[_e.Has]:qe(st(1,1/0),$w),[_e.Id]:qe(Iie,za),[_e.Concat]:qe(st(2,1/0),_t(mi)),[_e.GeometryType]:qe(Die,za),[_e.LineMetric]:qe(za),[_e.Resolution]:qe(za),[_e.Zoom]:qe(za),[_e.Time]:qe(za),[_e.Any]:qe(st(2,1/0),_t(ni)),[_e.All]:qe(st(2,1/0),_t(ni)),[_e.Not]:qe(st(1,1),_t(ni)),[_e.Equal]:qe(st(2,2),_t(Jd)),[_e.NotEqual]:qe(st(2,2),_t(Jd)),[_e.GreaterThan]:qe(st(2,2),_t(dt)),[_e.GreaterThanOrEqualTo]:qe(st(2,2),_t(dt)),[_e.LessThan]:qe(st(2,2),_t(dt)),[_e.LessThanOrEqualTo]:qe(st(2,2),_t(dt)),[_e.Multiply]:qe(st(2,1/0),Lw),[_e.Coalesce]:qe(st(2,1/0),Lw),[_e.Divide]:qe(st(2,2),_t(dt)),[_e.Add]:qe(st(2,1/0),_t(dt)),[_e.Subtract]:qe(st(2,2),_t(dt)),[_e.Clamp]:qe(st(3,3),_t(dt)),[_e.Mod]:qe(st(2,2),_t(dt)),[_e.Pow]:qe(st(2,2),_t(dt)),[_e.Abs]:qe(st(1,1),_t(dt)),[_e.Floor]:qe(st(1,1),_t(dt)),[_e.Ceil]:qe(st(1,1),_t(dt)),[_e.Round]:qe(st(1,1),_t(dt)),[_e.Sin]:qe(st(1,1),_t(dt)),[_e.Cos]:qe(st(1,1),_t(dt)),[_e.Atan]:qe(st(1,2),_t(dt)),[_e.Sqrt]:qe(st(1,1),_t(dt)),[_e.Match]:qe(st(4,1/0),Ow,$ie),[_e.Between]:qe(st(3,3),_t(dt)),[_e.Interpolate]:qe(st(6,1/0),Ow,Lie),[_e.Case]:qe(st(3,1/0),Rie,Oie),[_e.In]:qe(st(2,2),Nie),[_e.Number]:qe(st(1,1/0),_t(Jd)),[_e.String]:qe(st(1,1/0),_t(Jd)),[_e.Array]:qe(st(1,1/0),_t(dt)),[_e.Color]:qe(st(1,4),_t(dt)),[_e.Band]:qe(st(1,3),_t(dt)),[_e.Palette]:qe(st(2,2),Fie),[_e.ToString]:qe(st(1,1),_t(ni|dt|mi|as))};function $w(t,e,n){const i=t.length-1,s=new Array(i);for(let r=0;re){const a=e===1/0?`${t} or more`:`${t} to ${e}`;throw new Error(`expected ${a} arguments for ${r}, got ${o}`)}}}function Lw(t,e,n){const i=t.length-1,s=new Array(i);for(let r=0;ri.featureId;case _e.GeometryType:return i=>i.geometryType;case _e.Concat:{const i=t.args.map(s=>ms(s));return s=>"".concat(...i.map(r=>r(s).toString()))}case _e.Resolution:return i=>i.resolution;case _e.Any:case _e.All:case _e.Between:case _e.In:case _e.Not:return Yie(t);case _e.Equal:case _e.NotEqual:case _e.LessThan:case _e.LessThanOrEqualTo:case _e.GreaterThan:case _e.GreaterThanOrEqualTo:return Wie(t);case _e.Multiply:case _e.Divide:case _e.Add:case _e.Subtract:case _e.Clamp:case _e.Mod:case _e.Pow:case _e.Abs:case _e.Floor:case _e.Ceil:case _e.Round:case _e.Sin:case _e.Cos:case _e.Atan:case _e.Sqrt:return Hie(t);case _e.Case:return jie(t);case _e.Match:return Kie(t);case _e.Interpolate:return Uie(t);case _e.ToString:return Gie(t);default:throw new Error(`Unsupported operator ${n}`)}}function Vie(t,e){const n=t.operator,i=t.args.length,s=new Array(i);for(let r=0;r{for(let o=0;o{for(let o=0;o{const r=t.args;let o=s.properties[i];for(let a=1,l=r.length;as.variables[i];case _e.Has:return s=>{const r=t.args;if(!(i in s.properties))return!1;let o=s.properties[i];for(let a=1,l=r.length;ai(r)===s(r);case _e.NotEqual:return r=>i(r)!==s(r);case _e.LessThan:return r=>i(r)i(r)<=s(r);case _e.GreaterThan:return r=>i(r)>s(r);case _e.GreaterThanOrEqualTo:return r=>i(r)>=s(r);default:throw new Error(`Unsupported comparison operator ${n}`)}}function Yie(t,e){const n=t.operator,i=t.args.length,s=new Array(i);for(let r=0;r{for(let o=0;o{for(let o=0;o{const o=s[0](r),a=s[1](r),l=s[2](r);return o>=a&&o<=l};case _e.In:return r=>{const o=s[0](r);for(let a=1;a!s[0](r);default:throw new Error(`Unsupported logical operator ${n}`)}}function Hie(t,e){const n=t.operator,i=t.args.length,s=new Array(i);for(let r=0;r{let o=1;for(let a=0;as[0](r)/s[1](r);case _e.Add:return r=>{let o=0;for(let a=0;as[0](r)-s[1](r);case _e.Clamp:return r=>{const o=s[0](r),a=s[1](r);if(ol?l:o};case _e.Mod:return r=>s[0](r)%s[1](r);case _e.Pow:return r=>Math.pow(s[0](r),s[1](r));case _e.Abs:return r=>Math.abs(s[0](r));case _e.Floor:return r=>Math.floor(s[0](r));case _e.Ceil:return r=>Math.ceil(s[0](r));case _e.Round:return r=>Math.round(s[0](r));case _e.Sin:return r=>Math.sin(s[0](r));case _e.Cos:return r=>Math.cos(s[0](r));case _e.Atan:return i===2?r=>Math.atan2(s[0](r),s[1](r)):r=>Math.atan(s[0](r));case _e.Sqrt:return r=>Math.sqrt(s[0](r));default:throw new Error(`Unsupported numeric operator ${n}`)}}function jie(t,e){const n=t.args.length,i=new Array(n);for(let s=0;s{for(let r=0;r{const r=i[0](s);for(let o=1;o{const r=i[0](s),o=i[1](s);let a,l;for(let c=2;c=o)return c===2?d:f?Xie(r,o,a,l,u,d):Dc(r,o,a,l,u,d);a=u,l=d}return l}}function Gie(t,e){const n=t.operator,i=t.args.length,s=new Array(i);for(let r=0;r{const o=s[0](r);return t.args[0].type===as?Vv(o):o.toString()};default:throw new Error(`Unsupported convert operator ${n}`)}}function Dc(t,e,n,i,s,r){const o=s-n;if(o===0)return i;const a=e-n,l=t===1?a/o:(Math.pow(t,a)-1)/(Math.pow(t,o)-1);return i+l*(r-i)}function Xie(t,e,n,i,s,r){if(s-n===0)return i;const a=Tw(i),l=Tw(r);let c=l[2]-a[2];c>180?c-=360:c<-180&&(c+=360);const u=[Dc(t,e,n,a[0],s,l[0]),Dc(t,e,n,a[1],s,l[1]),a[2]+Dc(t,e,n,0,s,c),Dc(t,e,n,i[3],s,r[3])];return IT(oie(u))}function qie(t){return!0}function Zie(t){const e=zT(),n=Jie(t,e),i=YT();return function(s,r){if(i.properties=s.getPropertiesInternal(),i.resolution=r,e.featureId){const o=s.getId();o!==void 0?i.featureId=o:i.featureId=null}return e.geometryType&&(i.geometryType=WT(s.getGeometry())),n(i)}}function Nw(t){const e=zT(),n=t.length,i=new Array(n);for(let o=0;onull;i=jv(t,e+"fill-color",n)}if(!i)return null;const s=new Zl;return function(r){const o=i(r);return o===Fv?null:(s.setColor(o),s)}}function Du(t,e,n){const i=yi(t,e+"stroke-width",n),s=jv(t,e+"stroke-color",n);if(!i&&!s)return null;const r=sr(t,e+"stroke-line-cap",n),o=sr(t,e+"stroke-line-join",n),a=HT(t,e+"stroke-line-dash",n),l=yi(t,e+"stroke-line-dash-offset",n),c=yi(t,e+"stroke-miter-limit",n),u=new jl;return function(d){if(s){const f=s(d);if(f===Fv)return null;u.setColor(f)}if(i&&u.setWidth(i(d)),r){const f=r(d);if(f!=="butt"&&f!=="round"&&f!=="square")throw new Error("Expected butt, round, or square line cap");u.setLineCap(f)}if(o){const f=o(d);if(f!=="bevel"&&f!=="round"&&f!=="miter")throw new Error("Expected bevel, round, or miter line join");u.setLineJoin(f)}return a&&u.setLineDash(a(d)),l&&u.setLineDashOffset(l(d)),c&&u.setMiterLimit(c(d)),u}}function Qie(t,e){const n="text-",i=sr(t,n+"value",e);if(!i)return null;const s=Iu(t,n,e),r=Iu(t,n+"background-",e),o=Du(t,n,e),a=Du(t,n+"background-",e),l=sr(t,n+"font",e),c=yi(t,n+"max-angle",e),u=yi(t,n+"offset-x",e),d=yi(t,n+"offset-y",e),f=Ru(t,n+"overflow",e),g=sr(t,n+"placement",e),p=yi(t,n+"repeat",e),m=tg(t,n+"scale",e),v=Ru(t,n+"rotate-with-view",e),y=yi(t,n+"rotation",e),x=sr(t,n+"align",e),E=sr(t,n+"justify",e),w=sr(t,n+"baseline",e),b=HT(t,n+"padding",e),C=ng(t,n+"declutter-mode"),k=new Yv({declutterMode:C});return function(T){if(k.setText(i(T)),s&&k.setFill(s(T)),r&&k.setBackgroundFill(r(T)),o&&k.setStroke(o(T)),a&&k.setBackgroundStroke(a(T)),l&&k.setFont(l(T)),c&&k.setMaxAngle(c(T)),u&&k.setOffsetX(u(T)),d&&k.setOffsetY(d(T)),f&&k.setOverflow(f(T)),g){const A=g(T);if(A!=="point"&&A!=="line")throw new Error("Expected point or line for text-placement");k.setPlacement(A)}if(p&&k.setRepeat(p(T)),m&&k.setScale(m(T)),v&&k.setRotateWithView(v(T)),y&&k.setRotation(y(T)),x){const A=x(T);if(A!=="left"&&A!=="center"&&A!=="right"&&A!=="end"&&A!=="start")throw new Error("Expected left, right, center, start, or end for text-align");k.setTextAlign(A)}if(E){const A=E(T);if(A!=="left"&&A!=="right"&&A!=="center")throw new Error("Expected left, right, or center for text-justify");k.setJustify(A)}if(w){const A=w(T);if(A!=="bottom"&&A!=="top"&&A!=="middle"&&A!=="alphabetic"&&A!=="hanging")throw new Error("Expected bottom, top, middle, alphabetic, or hanging for text-baseline");k.setTextBaseline(A)}return b&&k.setPadding(b(T)),k}}function ese(t,e){return"icon-src"in t?tse(t,e):"shape-points"in t?nse(t,e):"circle-radius"in t?ise(t,e):null}function tse(t,e){const n="icon-",i=n+"src",s=jT(t[i],i),r=Uh(t,n+"anchor",e),o=tg(t,n+"scale",e),a=yi(t,n+"opacity",e),l=Uh(t,n+"displacement",e),c=yi(t,n+"rotation",e),u=Ru(t,n+"rotate-with-view",e),d=Bw(t,n+"anchor-origin"),f=Vw(t,n+"anchor-x-units"),g=Vw(t,n+"anchor-y-units"),p=lse(t,n+"color"),m=ose(t,n+"cross-origin"),v=ase(t,n+"offset"),y=Bw(t,n+"offset-origin"),x=Gh(t,n+"width"),E=Gh(t,n+"height"),w=rse(t,n+"size"),b=ng(t,n+"declutter-mode"),C=new eg({src:s,anchorOrigin:d,anchorXUnits:f,anchorYUnits:g,color:p,crossOrigin:m,offset:v,offsetOrigin:y,height:E,width:x,size:w,declutterMode:b});return function(k){return a&&C.setOpacity(a(k)),l&&C.setDisplacement(l(k)),c&&C.setRotation(c(k)),u&&C.setRotateWithView(u(k)),o&&C.setScale(o(k)),r&&C.setAnchor(r(k)),C}}function nse(t,e){const n="shape-",i=n+"points",s=n+"radius",r=Om(t[i],i),o=Om(t[s],s),a=Iu(t,n,e),l=Du(t,n,e),c=tg(t,n+"scale",e),u=Uh(t,n+"displacement",e),d=yi(t,n+"rotation",e),f=Ru(t,n+"rotate-with-view",e),g=Gh(t,n+"radius2"),p=Gh(t,n+"angle"),m=ng(t,n+"declutter-mode"),v=new Qf({points:r,radius:o,radius2:g,angle:p,declutterMode:m});return function(y){return a&&v.setFill(a(y)),l&&v.setStroke(l(y)),u&&v.setDisplacement(u(y)),d&&v.setRotation(d(y)),f&&v.setRotateWithView(f(y)),c&&v.setScale(c(y)),v}}function ise(t,e){const n="circle-",i=Iu(t,n,e),s=Du(t,n,e),r=yi(t,n+"radius",e),o=tg(t,n+"scale",e),a=Uh(t,n+"displacement",e),l=yi(t,n+"rotation",e),c=Ru(t,n+"rotate-with-view",e),u=ng(t,n+"declutter-mode"),d=new Qu({radius:5,declutterMode:u});return function(f){return r&&d.setRadius(r(f)),i&&d.setFill(i(f)),s&&d.setStroke(s(f)),a&&d.setDisplacement(a(f)),l&&d.setRotation(l(f)),c&&d.setRotateWithView(c(f)),o&&d.setScale(o(f)),d}}function yi(t,e,n){if(!(e in t))return;const i=Cr(t[e],dt,n);return function(s){return Om(i(s),e)}}function sr(t,e,n){if(!(e in t))return null;const i=Cr(t[e],mi,n);return function(s){return jT(i(s),e)}}function sse(t,e,n){const i=sr(t,e+"pattern-src",n),s=Fw(t,e+"pattern-offset",n),r=Fw(t,e+"pattern-size",n),o=jv(t,e+"color",n);return function(a){return{src:i(a),offset:s&&s(a),size:r&&r(a),color:o&&o(a)}}}function Ru(t,e,n){if(!(e in t))return null;const i=Cr(t[e],ni,n);return function(s){const r=i(s);if(typeof r!="boolean")throw new Error(`Expected a boolean for ${e}`);return r}}function jv(t,e,n){if(!(e in t))return null;const i=Cr(t[e],as,n);return function(s){return KT(i(s),e)}}function HT(t,e,n){if(!(e in t))return null;const i=Cr(t[e],ma,n);return function(s){return ed(i(s),e)}}function Uh(t,e,n){if(!(e in t))return null;const i=Cr(t[e],ma,n);return function(s){const r=ed(i(s),e);if(r.length!==2)throw new Error(`Expected two numbers for ${e}`);return r}}function Fw(t,e,n){if(!(e in t))return null;const i=Cr(t[e],ma,n);return function(s){return UT(i(s),e)}}function tg(t,e,n){if(!(e in t))return null;const i=Cr(t[e],ma|dt,n);return function(s){return cse(i(s),e)}}function Gh(t,e){const n=t[e];if(n!==void 0){if(typeof n!="number")throw new Error(`Expected a number for ${e}`);return n}}function rse(t,e){const n=t[e];if(n!==void 0){if(typeof n=="number")return wi(n);if(!Array.isArray(n))throw new Error(`Expected a number or size array for ${e}`);if(n.length!==2||typeof n[0]!="number"||typeof n[1]!="number")throw new Error(`Expected a number or size array for ${e}`);return n}}function ose(t,e){const n=t[e];if(n!==void 0){if(typeof n!="string")throw new Error(`Expected a string for ${e}`);return n}}function Bw(t,e){const n=t[e];if(n!==void 0){if(n!=="bottom-left"&&n!=="bottom-right"&&n!=="top-left"&&n!=="top-right")throw new Error(`Expected bottom-left, bottom-right, top-left, or top-right for ${e}`);return n}}function Vw(t,e){const n=t[e];if(n!==void 0){if(n!=="pixels"&&n!=="fraction")throw new Error(`Expected pixels or fraction for ${e}`);return n}}function ase(t,e){const n=t[e];if(n!==void 0)return ed(n,e)}function ng(t,e){const n=t[e];if(n!==void 0){if(typeof n!="string")throw new Error(`Expected a string for ${e}`);if(n!=="declutter"&&n!=="obstacle"&&n!=="none")throw new Error(`Expected declutter, obstacle, or none for ${e}`);return n}}function lse(t,e){const n=t[e];if(n!==void 0)return KT(n,e)}function ed(t,e){if(!Array.isArray(t))throw new Error(`Expected an array for ${e}`);const n=t.length;for(let i=0;i4)throw new Error(`Expected a color with 3 or 4 values for ${e}`);return n}function UT(t,e){const n=ed(t,e);if(n.length!==2)throw new Error(`Expected an array of two numbers for ${e}`);return n}function cse(t,e){return typeof t=="number"?t:UT(t,e)}const zw={RENDER_ORDER:"renderOrder"};class GT extends qf{constructor(e){e=e||{};const n=Object.assign({},e);delete n.style,delete n.renderBuffer,delete n.updateWhileAnimating,delete n.updateWhileInteracting,super(n),this.declutter_=e.declutter?String(e.declutter):void 0,this.renderBuffer_=e.renderBuffer!==void 0?e.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(e.style),this.updateWhileAnimating_=e.updateWhileAnimating!==void 0?e.updateWhileAnimating:!1,this.updateWhileInteracting_=e.updateWhileInteracting!==void 0?e.updateWhileInteracting:!1}getDeclutter(){return this.declutter_}getFeatures(e){return super.getFeatures(e)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get(zw.RENDER_ORDER)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(e,n){const i=this.getDeclutter();i in e.declutter||(e.declutter[i]=new PT(9)),this.getRenderer().renderDeclutter(e,n)}setRenderOrder(e){this.set(zw.RENDER_ORDER,e)}setStyle(e){this.style_=e===void 0?VT:e;const n=use(e);this.styleFunction_=e===null?void 0:Cie(n),this.changed()}}function use(t){if(t===void 0)return VT;if(!t)return null;if(typeof t=="function"||t instanceof pr)return t;if(!Array.isArray(t))return Nw([t]);if(t.length===0)return[];const e=t.length,n=t[0];if(n instanceof pr){const s=new Array(e);for(let r=0;r=0;--b){const C=m[b],k=C.layer;if(k.hasRenderer()&&Ov(C,u)&&a.call(l,k)){const T=k.getRenderer(),A=k.getSource();if(T&&A){const I=A.getWrapX()?g:e,V=d.bind(null,C.managed);x[0]=I[0]+p[w][0],x[1]=I[1]+p[w][1],c=T.forEachFeatureAtCoordinate(x,n,i,V,y)}if(c)return c}}if(y.length===0)return;const E=1/y.length;return y.forEach((w,b)=>w.distanceSq+=b*E),y.sort((w,b)=>w.distanceSq-b.distanceSq),y.some(w=>c=w.callback(w.feature,w.layer,w.geometry)),c}hasFeatureAtCoordinate(e,n,i,s,r,o){return this.forEachFeatureAtCoordinate(e,n,i,s,yu,this,r,o)!==void 0}getMap(){return this.map_}renderFrame(e){pt()}scheduleExpireIconCache(e){Is.canExpireCache()&&e.postRenderFunctions.push(hse)}}function hse(t,e){Is.expire()}class XT extends Er{constructor(e,n,i,s){super(e),this.inversePixelTransform=n,this.frameState=i,this.context=s}}class fse extends dse{constructor(e){super(e),this.fontChangeListenerKey_=ft(er,Fl.PROPERTYCHANGE,e.redrawText,e),this.element_=document.createElement("div");const n=this.element_.style;n.position="absolute",n.width="100%",n.height="100%",n.zIndex="0",this.element_.className=Jf+" ol-layers";const i=e.getViewport();i.insertBefore(this.element_,i.firstChild||null),this.children_=[],this.renderedVisible_=!0}dispatchRenderEvent(e,n){const i=this.getMap();if(i.hasListener(e)){const s=new XT(e,void 0,n);i.dispatchEvent(s)}}disposeInternal(){Lt(this.fontChangeListenerKey_),this.element_.remove(),super.disposeInternal()}renderFrame(e){if(!e){this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1);return}this.calculateMatrices2D(e),this.dispatchRenderEvent(Wi.PRECOMPOSE,e);const n=e.layerStatesArray.sort((a,l)=>a.zIndex-l.zIndex);n.some(a=>a.layer instanceof GT&&a.layer.getDeclutter())&&(e.declutter={});const s=e.viewState;this.children_.length=0;const r=[];let o=null;for(let a=0,l=n.length;a=0;--i){const s=n[i],r=s.layer;r.getDeclutter()&&r.renderDeclutter(e,s)}n.forEach(i=>i.layer.renderDeferred(e))}}}class Hr extends Er{constructor(e,n){super(e),this.layer=n}}const Ep={LAYERS:"layers"};class Jl extends oT{constructor(e){e=e||{};const n=Object.assign({},e);delete n.layers;let i=e.layers;super(n),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(Ep.LAYERS,this.handleLayersChanged_),i?Array.isArray(i)?i=new Ms(i.slice(),{unique:!0}):mt(typeof i.getArray=="function","Expected `layers` to be an array or a `Collection`"):i=new Ms(void 0,{unique:!0}),this.setLayers(i)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(Lt),this.layersListenerKeys_.length=0;const e=this.getLayers();this.layersListenerKeys_.push(ft(e,gi.ADD,this.handleLayersAdd_,this),ft(e,gi.REMOVE,this.handleLayersRemove_,this));for(const i in this.listenerKeys_)this.listenerKeys_[i].forEach(Lt);qu(this.listenerKeys_);const n=e.getArray();for(let i=0,s=n.length;i{this.clickTimeoutId_=void 0;const i=new Fr(en.SINGLECLICK,this.map_,e);this.dispatchEvent(i)},250)}updateActivePointers_(e){const n=e,i=n.pointerId;if(n.type==en.POINTERUP||n.type==en.POINTERCANCEL){delete this.trackedTouches_[i];for(const s in this.trackedTouches_)if(this.trackedTouches_[s].target!==n.target){delete this.trackedTouches_[s];break}}else(n.type==en.POINTERDOWN||n.type==en.POINTERMOVE)&&(this.trackedTouches_[i]=n);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(e){this.updateActivePointers_(e);const n=new Fr(en.POINTERUP,this.map_,e,void 0,void 0,this.activePointers_);this.dispatchEvent(n),this.emulateClicks_&&!n.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(e)&&this.emulateClick_(this.down_),this.activePointers_.length===0&&(this.dragListenerKeys_.forEach(Lt),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(e){return e.button===0}handlePointerDown_(e){this.emulateClicks_=this.activePointers_.length===0,this.updateActivePointers_(e);const n=new Fr(en.POINTERDOWN,this.map_,e,void 0,void 0,this.activePointers_);if(this.dispatchEvent(n),this.down_=new PointerEvent(e.type,e),Object.defineProperty(this.down_,"target",{writable:!1,value:e.target}),this.dragListenerKeys_.length===0){const i=this.map_.getOwnerDocument();this.dragListenerKeys_.push(ft(i,en.POINTERMOVE,this.handlePointerMove_,this),ft(i,en.POINTERUP,this.handlePointerUp_,this),ft(this.element_,en.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==i&&this.dragListenerKeys_.push(ft(this.element_.getRootNode(),en.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(e){if(this.isMoving_(e)){this.updateActivePointers_(e),this.dragging_=!0;const n=new Fr(en.POINTERDRAG,this.map_,e,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(n)}}relayMoveEvent_(e){this.originalPointerMoveEvent_=e;const n=!!(this.down_&&this.isMoving_(e));this.dispatchEvent(new Fr(en.POINTERMOVE,this.map_,e,n))}handleTouchMove_(e){const n=this.originalPointerMoveEvent_;(!n||n.defaultPrevented)&&(typeof e.cancelable!="boolean"||e.cancelable===!0)&&e.preventDefault()}isMoving_(e){return this.dragging_||Math.abs(e.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(e.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&(Lt(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(tt.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Lt(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(Lt),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}}const Br={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"},Wn={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"},Xh=1/0;class pse{constructor(e,n){this.priorityFunction_=e,this.keyFunction_=n,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,qu(this.queuedElements_)}dequeue(){const e=this.elements_,n=this.priorities_,i=e[0];e.length==1?(e.length=0,n.length=0):(e[0]=e.pop(),n[0]=n.pop(),this.siftUp_(0));const s=this.keyFunction_(i);return delete this.queuedElements_[s],i}enqueue(e){mt(!(this.keyFunction_(e)in this.queuedElements_),"Tried to enqueue an `element` that was already added to the queue");const n=this.priorityFunction_(e);return n!=Xh?(this.elements_.push(e),this.priorities_.push(n),this.queuedElements_[this.keyFunction_(e)]=!0,this.siftDown_(0,this.elements_.length-1),!0):!1}getCount(){return this.elements_.length}getLeftChildIndex_(e){return e*2+1}getRightChildIndex_(e){return e*2+2}getParentIndex_(e){return e-1>>1}heapify_(){let e;for(e=(this.elements_.length>>1)-1;e>=0;e--)this.siftUp_(e)}isEmpty(){return this.elements_.length===0}isKeyQueued(e){return e in this.queuedElements_}isQueued(e){return this.isKeyQueued(this.keyFunction_(e))}siftUp_(e){const n=this.elements_,i=this.priorities_,s=n.length,r=n[e],o=i[e],a=e;for(;e>1;){const l=this.getLeftChildIndex_(e),c=this.getRightChildIndex_(e),u=ce;){const a=this.getParentIndex_(n);if(s[a]>o)i[n]=i[a],s[n]=s[a],n=a;else break}i[n]=r,s[n]=o}reprioritize(){const e=this.priorityFunction_,n=this.elements_,i=this.priorities_;let s=0;const r=n.length;let o,a,l;for(a=0;a0;){const s=this.dequeue()[0],r=s.getKey();s.getState()===Ve.IDLE&&!(r in this.tilesLoadingKeys_)&&(this.tilesLoadingKeys_[r]=!0,++this.tilesLoading_,++i,s.load())}}}function _se(t,e,n,i,s){if(!t||!(n in t.wantedTiles)||!t.wantedTiles[n][e.getKey()])return Xh;const r=t.viewState.center,o=i[0]-r[0],a=i[1]-r[1];return 65536*Math.log(s)+Math.sqrt(o*o+a*a)/s}class Kv extends zs{constructor(e){super();const n=e.element;n&&!e.target&&!n.style.pointerEvents&&(n.style.pointerEvents="auto"),this.element=n||null,this.target_=null,this.map_=null,this.listenerKeys=[],e.render&&(this.render=e.render),e.target&&this.setTarget(e.target)}disposeInternal(){this.element?.remove(),super.disposeInternal()}getMap(){return this.map_}setMap(e){this.map_&&this.element?.remove();for(let n=0,i=this.listenerKeys.length;ns.getAttributions(e)));if(this.attributions_!==void 0&&(Array.isArray(this.attributions_)?this.attributions_.forEach(s=>i.add(s)):i.add(this.attributions_)),!this.overrideCollapsible_){const s=!n.some(r=>r.getSource()?.getAttributionsCollapsible()===!1);this.setCollapsible(s)}return Array.from(i)}async updateElement_(e){if(!e){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}const n=await Promise.all(this.collectSourceAttributions_(e).map(s=>zte(()=>s))),i=n.length>0;if(this.renderedVisible_!=i&&(this.element.style.display=i?"":"none",this.renderedVisible_=i),!So(n,this.renderedAttributions_)){uie(this.ulElement_);for(let s=0,r=n.length;s0&&i%(2*Math.PI)!==0?n.animate({rotation:0,duration:this.duration_,easing:ql}):n.setRotation(0))}render(e){const n=e.frameState;if(!n)return;const i=n.viewState.rotation;if(i!=this.rotation_){const s="rotate("+i+"rad)";if(this.autoHide_){const r=this.element.classList.contains(Zd);!r&&i===0?this.element.classList.add(Zd):r&&i!==0&&this.element.classList.remove(Zd)}this.label_.style.transform=s}this.rotation_=i}}class bse extends Kv{constructor(e){e=e||{},super({element:document.createElement("div"),target:e.target});const n=e.className!==void 0?e.className:"ol-zoom",i=e.delta!==void 0?e.delta:1,s=e.zoomInClassName!==void 0?e.zoomInClassName:n+"-in",r=e.zoomOutClassName!==void 0?e.zoomOutClassName:n+"-out",o=e.zoomInLabel!==void 0?e.zoomInLabel:"+",a=e.zoomOutLabel!==void 0?e.zoomOutLabel:"–",l=e.zoomInTipLabel!==void 0?e.zoomInTipLabel:"Zoom in",c=e.zoomOutTipLabel!==void 0?e.zoomOutTipLabel:"Zoom out",u=document.createElement("button");u.className=s,u.setAttribute("type","button"),u.title=l,u.appendChild(typeof o=="string"?document.createTextNode(o):o),u.addEventListener(tt.CLICK,this.handleClick_.bind(this,i),!1);const d=document.createElement("button");d.className=r,d.setAttribute("type","button"),d.title=c,d.appendChild(typeof a=="string"?document.createTextNode(a):a),d.addEventListener(tt.CLICK,this.handleClick_.bind(this,-i),!1);const f=n+" "+Jf+" "+Wv,g=this.element;g.className=f,g.appendChild(u),g.appendChild(d),this.duration_=e.duration!==void 0?e.duration:250}handleClick_(e,n){n.preventDefault(),this.zoomByDelta_(e)}zoomByDelta_(e){const i=this.getMap().getView();if(!i)return;const s=i.getZoom();if(s!==void 0){const r=i.getConstrainedZoom(s+e);this.duration_>0?(i.getAnimating()&&i.cancelAnimations(),i.animate({zoom:r,duration:this.duration_,easing:ql})):i.setZoom(r)}}}function wse(t){t=t||{};const e=new Ms;return(t.zoom!==void 0?t.zoom:!0)&&e.push(new bse(t.zoomOptions)),(t.rotate!==void 0?t.rotate:!0)&&e.push(new yse(t.rotateOptions)),(t.attribution!==void 0?t.attribution:!0)&&e.push(new vse(t.attributionOptions)),e}const Ww={ACTIVE:"active"};class td extends zs{constructor(e){super(),this.on,this.once,this.un,e&&e.handleEvent&&(this.handleEvent=e.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get(Ww.ACTIVE)}getMap(){return this.map_}handleEvent(e){return!0}setActive(e){this.set(Ww.ACTIVE,e)}setMap(e){this.map_=e}}function xse(t,e,n){const i=t.getCenterInternal();if(i){const s=[i[0]+e[0],i[1]+e[1]];t.animateInternal({duration:n!==void 0?n:250,easing:xne,center:t.getConstrainedCenter(s)})}}function Uv(t,e,n,i){const s=t.getZoom();if(s===void 0)return;const r=t.getConstrainedZoom(s+e),o=t.getResolutionForZoom(r);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:o,anchor:n,duration:i!==void 0?i:250,easing:ql})}class Ese extends td{constructor(e){super(),e=e||{},this.delta_=e.delta?e.delta:1,this.duration_=e.duration!==void 0?e.duration:250}handleEvent(e){let n=!1;if(e.type==en.DBLCLICK){const i=e.originalEvent,s=e.map,r=e.coordinate,o=i.shiftKey?-this.delta_:this.delta_,a=s.getView();Uv(a,o,r,this.duration_),i.preventDefault(),n=!0}return!n}}class nd extends td{constructor(e){e=e||{},super(e),e.handleDownEvent&&(this.handleDownEvent=e.handleDownEvent),e.handleDragEvent&&(this.handleDragEvent=e.handleDragEvent),e.handleMoveEvent&&(this.handleMoveEvent=e.handleMoveEvent),e.handleUpEvent&&(this.handleUpEvent=e.handleUpEvent),e.stopDown&&(this.stopDown=e.stopDown),this.handlingDownUpSequence=!1,this.targetPointers=[]}getPointerCount(){return this.targetPointers.length}handleDownEvent(e){return!1}handleDragEvent(e){}handleEvent(e){if(!e.originalEvent)return!0;let n=!1;if(this.updateTrackedPointers_(e),this.handlingDownUpSequence){if(e.type==en.POINTERDRAG)this.handleDragEvent(e),e.originalEvent.preventDefault();else if(e.type==en.POINTERUP){const i=this.handleUpEvent(e);this.handlingDownUpSequence=i&&this.targetPointers.length>0}}else if(e.type==en.POINTERDOWN){const i=this.handleDownEvent(e);this.handlingDownUpSequence=i,n=this.stopDown(i)}else e.type==en.POINTERMOVE&&this.handleMoveEvent(e);return!n}handleMoveEvent(e){}handleUpEvent(e){return!1}stopDown(e){return e}updateTrackedPointers_(e){e.activePointers&&(this.targetPointers=e.activePointers)}}function Gv(t){const e=t.length;let n=0,i=0;for(let s=0;s0&&this.condition_(e)){const i=e.map.getView();return this.lastCentroid=null,i.getAnimating()&&i.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}}class Ise extends nd{constructor(e){e=e||{},super({stopDown:zf}),this.condition_=e.condition?e.condition:Cse,this.lastAngle_=void 0,this.duration_=e.duration!==void 0?e.duration:250}handleDragEvent(e){if(!Cp(e))return;const n=e.map,i=n.getView();if(i.getConstraints().rotation===Pv)return;const s=n.getSize(),r=e.pixel,o=Math.atan2(s[1]/2-r[1],r[0]-s[0]/2);if(this.lastAngle_!==void 0){const a=o-this.lastAngle_;i.adjustRotationInternal(-a)}this.lastAngle_=o}handleUpEvent(e){return Cp(e)?(e.map.getView().endInteraction(this.duration_),!1):!0}handleDownEvent(e){return Cp(e)&&ZT(e)&&this.condition_(e)?(e.map.getView().beginInteraction(),this.lastAngle_=void 0,!0):!1}}class Dse extends Bf{constructor(e){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+e,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){const e=this.startPixel_,n=this.endPixel_,i="px",s=this.element_.style;s.left=Math.min(e[0],n[0])+i,s.top=Math.min(e[1],n[1])+i,s.width=Math.abs(n[0]-e[0])+i,s.height=Math.abs(n[1]-e[1])+i}setMap(e){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const n=this.element_.style;n.left="inherit",n.top="inherit",n.width="inherit",n.height="inherit"}this.map_=e,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(e,n){this.startPixel_=e,this.endPixel_=n,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){if(!this.map_)return;const e=this.startPixel_,n=this.endPixel_,s=[e,[e[0],n[1]],n,[n[0],e[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);s[4]=s[0].slice(),this.geometry_?this.geometry_.setCoordinates([s]):this.geometry_=new Cu([s])}getGeometry(){return this.geometry_}}const Wa={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"};class bc extends Er{constructor(e,n,i){super(e),this.coordinate=n,this.mapBrowserEvent=i}}class Rse extends nd{constructor(e){super(),this.on,this.once,this.un,e=e??{},this.box_=new Dse(e.className||"ol-dragbox"),this.minArea_=e.minArea??64,e.onBoxEnd&&(this.onBoxEnd=e.onBoxEnd),this.startPixel_=null,this.condition_=e.condition??ZT,this.boxEndCondition_=e.boxEndCondition??this.defaultBoxEndCondition}defaultBoxEndCondition(e,n,i){const s=i[0]-n[0],r=i[1]-n[1];return s*s+r*r>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(e){this.startPixel_&&(this.box_.setPixels(this.startPixel_,e.pixel),this.dispatchEvent(new bc(Wa.BOXDRAG,e.coordinate,e)))}handleUpEvent(e){if(!this.startPixel_)return!1;const n=this.boxEndCondition_(e,this.startPixel_,e.pixel);return n&&this.onBoxEnd(e),this.dispatchEvent(new bc(n?Wa.BOXEND:Wa.BOXCANCEL,e.coordinate,e)),this.box_.setMap(null),this.startPixel_=null,!1}handleDownEvent(e){return this.condition_(e)?(this.startPixel_=e.pixel,this.box_.setMap(e.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new bc(Wa.BOXSTART,e.coordinate,e)),!0):!1}onBoxEnd(e){}setActive(e){e||(this.box_.setMap(null),this.startPixel_&&(this.dispatchEvent(new bc(Wa.BOXCANCEL,this.startPixel_,null)),this.startPixel_=null)),super.setActive(e)}setMap(e){this.getMap()&&(this.box_.setMap(null),this.startPixel_&&(this.dispatchEvent(new bc(Wa.BOXCANCEL,this.startPixel_,null)),this.startPixel_=null)),super.setMap(e)}}class $se extends Rse{constructor(e){e=e||{};const n=e.condition?e.condition:Ase;super({condition:n,className:e.className||"ol-dragzoom",minArea:e.minArea}),this.duration_=e.duration!==void 0?e.duration:200,this.out_=e.out!==void 0?e.out:!1}onBoxEnd(e){const i=this.getMap().getView();let s=this.getGeometry();if(this.out_){const r=i.rotatedExtentForGeometry(s),o=i.getResolutionForExtentInternal(r),a=i.getResolution()/o;s=s.clone(),s.scale(a*a)}i.fitInternal(s,{duration:this.duration_,easing:ql})}}const zo={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown"};class Lse extends td{constructor(e){super(),e=e||{},this.defaultCondition_=function(n){return JT(n)&&QT(n)},this.condition_=e.condition!==void 0?e.condition:this.defaultCondition_,this.duration_=e.duration!==void 0?e.duration:100,this.pixelDelta_=e.pixelDelta!==void 0?e.pixelDelta:128}handleEvent(e){let n=!1;if(e.type==tt.KEYDOWN){const i=e.originalEvent,s=i.key;if(this.condition_(e)&&(s==zo.DOWN||s==zo.LEFT||s==zo.RIGHT||s==zo.UP)){const o=e.map.getView(),a=o.getResolution()*this.pixelDelta_;let l=0,c=0;s==zo.DOWN?c=-a:s==zo.LEFT?l=-a:s==zo.RIGHT?l=a:c=a;const u=[l,c];Ev(u,o.getRotation()),xse(o,u,this.duration_),i.preventDefault(),n=!0}}return!n}}class Ose extends td{constructor(e){super(),e=e||{},this.condition_=e.condition?e.condition:function(n){return!Tse(n)&&QT(n)},this.delta_=e.delta?e.delta:1,this.duration_=e.duration!==void 0?e.duration:100}handleEvent(e){let n=!1;if(e.type==tt.KEYDOWN||e.type==tt.KEYPRESS){const i=e.originalEvent,s=i.key;if(this.condition_(e)&&(s==="+"||s==="-")){const r=e.map,o=s==="+"?this.delta_:-this.delta_,a=r.getView();Uv(a,o,void 0,this.duration_),i.preventDefault(),n=!0}}return!n}}class Nse{constructor(e,n,i){this.decay_=e,this.minVelocity_=n,this.delay_=i,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(e,n){this.points_.push(e,n,Date.now())}end(){if(this.points_.length<6)return!1;const e=Date.now()-this.delay_,n=this.points_.length-3;if(this.points_[n+2]0&&this.points_[i+2]>e;)i-=3;const s=this.points_[n+2]-this.points_[i+2];if(s<1e3/60)return!1;const r=this.points_[n]-this.points_[i],o=this.points_[n+1]-this.points_[i+1];return this.angle_=Math.atan2(o,r),this.initialVelocity_=Math.sqrt(r*r+o*o)/s,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}}class Fse extends td{constructor(e){e=e||{},super(e),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=e.maxDelta!==void 0?e.maxDelta:1,this.duration_=e.duration!==void 0?e.duration:250,this.timeout_=e.timeout!==void 0?e.timeout:80,this.useAnchor_=e.useAnchor!==void 0?e.useAnchor:!0,this.constrainResolution_=e.constrainResolution!==void 0?e.constrainResolution:!1;const n=e.condition?e.condition:kse;this.condition_=e.onFocusOnly?Fm(qT,n):n,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const e=this.getMap();if(!e)return;e.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_?e.getCoordinateFromPixel(this.lastAnchor_):null)}handleEvent(e){if(!this.condition_(e)||e.type!==tt.WHEEL)return!0;const i=e.map,s=e.originalEvent;s.preventDefault(),this.useAnchor_&&(this.lastAnchor_=e.pixel);let r;if(e.type==tt.WHEEL&&(r=s.deltaY,aie&&s.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(r/=RT),s.deltaMode===WheelEvent.DOM_DELTA_LINE&&(r*=40)),r===0)return!1;this.lastDelta_=r;const o=Date.now();this.startTime_===void 0&&(this.startTime_=o),(!this.mode_||o-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(r)<4?"trackpad":"wheel");const a=i.getView();if(this.mode_==="trackpad"&&!(a.getConstrainResolution()||this.constrainResolution_))return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(a.getAnimating()&&a.cancelAnimations(),a.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),a.adjustZoom(-r/this.deltaPerZoom_,this.lastAnchor_?i.getCoordinateFromPixel(this.lastAnchor_):null),this.startTime_=o,!1;this.totalDelta_+=r;const l=Math.max(this.timeout_-(o-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,i),l),!1}handleWheelZoom_(e){const n=e.getView();n.getAnimating()&&n.cancelAnimations();let i=-rn(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(n.getConstrainResolution()||this.constrainResolution_)&&(i=i?i>0?1:-1:0),Uv(n,i,this.lastAnchor_?e.getCoordinateFromPixel(this.lastAnchor_):null,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(e){this.useAnchor_=e,e||(this.lastAnchor_=null)}}class Bse extends nd{constructor(e){e=e||{};const n=e;n.stopDown||(n.stopDown=zf),super(n),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=e.threshold!==void 0?e.threshold:.3,this.duration_=e.duration!==void 0?e.duration:250}handleDragEvent(e){let n=0;const i=this.targetPointers[0],s=this.targetPointers[1],r=Math.atan2(s.clientY-i.clientY,s.clientX-i.clientX);if(this.lastAngle_!==void 0){const l=r-this.lastAngle_;this.rotationDelta_+=l,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),n=l}this.lastAngle_=r;const o=e.map,a=o.getView();a.getConstraints().rotation!==Pv&&(this.anchor_=o.getCoordinateFromPixelInternal(o.getEventPixel(Gv(this.targetPointers))),this.rotating_&&(o.render(),a.adjustRotationInternal(n,this.anchor_)))}handleUpEvent(e){return this.targetPointers.length<2?(e.map.getView().endInteraction(this.duration_),!1):!0}handleDownEvent(e){if(this.targetPointers.length>=2){const n=e.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||n.getView().beginInteraction(),!0}return!1}}class Vse extends nd{constructor(e){e=e||{};const n=e;n.stopDown||(n.stopDown=zf),super(n),this.anchor_=null,this.duration_=e.duration!==void 0?e.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(e){let n=1;const i=this.targetPointers[0],s=this.targetPointers[1],r=i.clientX-s.clientX,o=i.clientY-s.clientY,a=Math.sqrt(r*r+o*o);this.lastDistance_!==void 0&&(n=this.lastDistance_/a),this.lastDistance_=a;const l=e.map,c=l.getView();n!=1&&(this.lastScaleDelta_=n),this.anchor_=l.getCoordinateFromPixelInternal(l.getEventPixel(Gv(this.targetPointers))),l.render(),c.adjustResolutionInternal(n,this.anchor_)}handleUpEvent(e){if(this.targetPointers.length<2){const i=e.map.getView(),s=this.lastScaleDelta_>1?1:-1;return i.endInteraction(this.duration_,s),!1}return!0}handleDownEvent(e){if(this.targetPointers.length>=2){const n=e.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||n.getView().beginInteraction(),!0}return!1}}function zse(t){t=t||{};const e=new Ms,n=new Nse(-.005,.05,100);return(t.altShiftDragRotate!==void 0?t.altShiftDragRotate:!0)&&e.push(new Ise),(t.doubleClickZoom!==void 0?t.doubleClickZoom:!0)&&e.push(new Ese({delta:t.zoomDelta,duration:t.zoomDuration})),(t.dragPan!==void 0?t.dragPan:!0)&&e.push(new Mse({onFocusOnly:t.onFocusOnly,kinetic:n})),(t.pinchRotate!==void 0?t.pinchRotate:!0)&&e.push(new Bse),(t.pinchZoom!==void 0?t.pinchZoom:!0)&&e.push(new Vse({duration:t.zoomDuration})),(t.keyboard!==void 0?t.keyboard:!0)&&(e.push(new Lse),e.push(new Ose({delta:t.zoomDelta,duration:t.zoomDuration}))),(t.mouseWheelZoom!==void 0?t.mouseWheelZoom:!0)&&e.push(new Fse({onFocusOnly:t.onFocusOnly,duration:t.zoomDuration})),(t.shiftDragZoom!==void 0?t.shiftDragZoom:!0)&&e.push(new $se({duration:t.zoomDuration})),e}function eA(t){if(t instanceof qf){t.setMapInternal(null);return}t instanceof Jl&&t.getLayers().forEach(eA)}function tA(t,e){if(t instanceof qf){t.setMapInternal(e);return}if(t instanceof Jl){const n=t.getLayers().getArray();for(let i=0,s=n.length;ithis.updateSize()),this.controls=n.controls||wse(),this.interactions=n.interactions||zse({onFocusOnly:!0}),this.overlays_=n.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new mse(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(Wn.LAYERGROUP,this.handleLayerGroupChanged_),this.addChangeListener(Wn.VIEW,this.handleViewChanged_),this.addChangeListener(Wn.SIZE,this.handleSizeChanged_),this.addChangeListener(Wn.TARGET,this.handleTargetChanged_),this.setProperties(n.values);const i=this;e.view&&!(e.view instanceof ks)&&e.view.then(function(s){i.setView(new ks(s))}),this.controls.addEventListener(gi.ADD,s=>{s.element.setMap(this)}),this.controls.addEventListener(gi.REMOVE,s=>{s.element.setMap(null)}),this.interactions.addEventListener(gi.ADD,s=>{s.element.setMap(this)}),this.interactions.addEventListener(gi.REMOVE,s=>{s.element.setMap(null)}),this.overlays_.addEventListener(gi.ADD,s=>{this.addOverlayInternal_(s.element)}),this.overlays_.addEventListener(gi.REMOVE,s=>{const r=s.element.getId();r!==void 0&&delete this.overlayIdIndex_[r.toString()],s.element.setMap(null)}),this.controls.forEach(s=>{s.setMap(this)}),this.interactions.forEach(s=>{s.setMap(this)}),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(e){this.getControls().push(e)}addInteraction(e){this.getInteractions().push(e)}addLayer(e){this.getLayerGroup().getLayers().push(e)}handleLayerAdd_(e){tA(e.layer,this)}addOverlay(e){this.getOverlays().push(e)}addOverlayInternal_(e){const n=e.getId();n!==void 0&&(this.overlayIdIndex_[n.toString()]=e),e.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(e,n,i){if(!this.frameState_||!this.renderer_)return;const s=this.getCoordinateFromPixelInternal(e);i=i!==void 0?i:{};const r=i.hitTolerance!==void 0?i.hitTolerance:0,o=i.layerFilter!==void 0?i.layerFilter:yu,a=i.checkWrapped!==!1;return this.renderer_.forEachFeatureAtCoordinate(s,this.frameState_,r,a,n,null,o,null)}getFeaturesAtPixel(e,n){const i=[];return this.forEachFeatureAtPixel(e,function(s){i.push(s)},n),i}getAllLayers(){const e=[];function n(i){i.forEach(function(s){s instanceof Jl?n(s.getLayers()):e.push(s)})}return n(this.getLayers()),e}hasFeatureAtPixel(e,n){if(!this.frameState_||!this.renderer_)return!1;const i=this.getCoordinateFromPixelInternal(e);n=n!==void 0?n:{};const s=n.layerFilter!==void 0?n.layerFilter:yu,r=n.hitTolerance!==void 0?n.hitTolerance:0,o=n.checkWrapped!==!1;return this.renderer_.hasFeatureAtCoordinate(i,this.frameState_,r,o,s,null)}getEventCoordinate(e){return this.getCoordinateFromPixel(this.getEventPixel(e))}getEventCoordinateInternal(e){return this.getCoordinateFromPixelInternal(this.getEventPixel(e))}getEventPixel(e){const i=this.viewport_.getBoundingClientRect(),s=this.getSize(),r=i.width/s[0],o=i.height/s[1],a="changedTouches"in e?e.changedTouches[0]:e;return[(a.clientX-i.left)/r,(a.clientY-i.top)/o]}getTarget(){return this.get(Wn.TARGET)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(e){return Dm(this.getCoordinateFromPixelInternal(e),this.getView().getProjection())}getCoordinateFromPixelInternal(e){const n=this.frameState_;return n?On(n.pixelToCoordinateTransform,e.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(e){const n=this.overlayIdIndex_[e.toString()];return n!==void 0?n:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(Wn.LAYERGROUP)}setLayers(e){const n=this.getLayerGroup();if(e instanceof Ms){n.setLayers(e);return}const i=n.getLayers();i.clear(),i.extend(e)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const e=this.getLayerGroup().getLayerStatesArray();for(let n=0,i=e.length;n=0;r--){const o=s[r];if(o.getMap()!==this||!o.getActive()||!this.getTargetElement())continue;if(!o.handleEvent(e)||e.propagationStopped)break}}}handlePostRender(){const e=this.frameState_,n=this.tileQueue_;if(!n.isEmpty()){let s=this.maxTilesLoading_,r=s;if(e){const o=e.viewHints;if(o[Hn.ANIMATING]||o[Hn.INTERACTING]){const a=Date.now()-e.time>8;s=a?0:8,r=a?0:2}}n.getTilesLoading(){this.postRenderTimeoutHandle_=void 0,this.handlePostRender()},0))}setLayerGroup(e){const n=this.getLayerGroup();n&&this.handleLayerRemove_(new Hr("removelayer",n)),this.set(Wn.LAYERGROUP,e)}setSize(e){this.set(Wn.SIZE,e)}setTarget(e){this.set(Wn.TARGET,e)}setView(e){if(!e||e instanceof ks){this.set(Wn.VIEW,e);return}this.set(Wn.VIEW,new ks);const n=this;e.then(function(i){n.setView(new ks(i))})}updateSize(){const e=this.getTargetElement();let n;if(e){const s=getComputedStyle(e),r=e.offsetWidth-parseFloat(s.borderLeftWidth)-parseFloat(s.paddingLeft)-parseFloat(s.paddingRight)-parseFloat(s.borderRightWidth),o=e.offsetHeight-parseFloat(s.borderTopWidth)-parseFloat(s.paddingTop)-parseFloat(s.paddingBottom)-parseFloat(s.borderBottomWidth);!isNaN(r)&&!isNaN(o)&&(n=[Math.max(0,r),Math.max(0,o)],!Cw(n)&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)&&pT("No map visible because the map container's width or height are 0."))}const i=this.getSize();n&&(!i||!So(n,i))&&(this.setSize(n),this.updateViewportSize_(n))}updateViewportSize_(e){const n=this.getView();n&&n.setViewportSize(e)}};function Yse(t){let e=null;t.keyboardEventTarget!==void 0&&(e=typeof t.keyboardEventTarget=="string"?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);const n={},i=t.layers&&typeof t.layers.getLayers=="function"?t.layers:new Jl({layers:t.layers});n[Wn.LAYERGROUP]=i,n[Wn.TARGET]=t.target,n[Wn.VIEW]=t.view instanceof ks?t.view:new ks;let s;t.controls!==void 0&&(Array.isArray(t.controls)?s=new Ms(t.controls.slice()):(mt(typeof t.controls.getArray=="function","Expected `controls` to be an array or an `ol/Collection.js`"),s=t.controls));let r;t.interactions!==void 0&&(Array.isArray(t.interactions)?r=new Ms(t.interactions.slice()):(mt(typeof t.interactions.getArray=="function","Expected `interactions` to be an array or an `ol/Collection.js`"),r=t.interactions));let o;return t.overlays!==void 0?Array.isArray(t.overlays)?o=new Ms(t.overlays.slice()):(mt(typeof t.overlays.getArray=="function","Expected `overlays` to be an array or an `ol/Collection.js`"),o=t.overlays):o=new Ms,{controls:s,interactions:r,keyboardEventTarget:e,overlays:o,values:n}}class Xv extends Wf{constructor(e,n,i){super(),i=i||{},this.tileCoord=e,this.state=n,this.key="",this.transition_=i.transition===void 0?250:i.transition,this.transitionStarts_={},this.interpolate=!!i.interpolate}changed(){this.dispatchEvent(tt.CHANGE)}release(){this.state===Ve.ERROR&&this.setState(Ve.EMPTY)}getKey(){return this.key+"/"+this.tileCoord}getTileCoord(){return this.tileCoord}getState(){return this.state}setState(e){if(this.state!==Ve.ERROR&&this.state>e)throw new Error("Tile load sequence violation");this.state=e,this.changed()}load(){pt()}getAlpha(e,n){if(!this.transition_)return 1;let i=this.transitionStarts_[e];if(!i)i=n,this.transitionStarts_[e]=i;else if(i===-1)return 1;const s=n-i+1e3/60;return s>=this.transition_?1:bT(s/this.transition_)}inTransition(e){return this.transition_?this.transitionStarts_[e]!==-1:!1}endTransition(e){this.transition_&&(this.transitionStarts_[e]=-1)}disposeInternal(){this.release(),super.disposeInternal()}}class nA extends Xv{constructor(e,n,i,s,r,o){super(e,n,o),this.crossOrigin_=s,this.src_=i,this.key=i,this.image_=new Image,s!==null&&(this.image_.crossOrigin=s),this.unlisten_=null,this.tileLoadFunction_=r}getImage(){return this.image_}setImage(e){this.image_=e,this.state=Ve.LOADED,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=Ve.ERROR,this.unlistenImage_(),this.image_=Hse(),this.changed()}handleImageLoad_(){const e=this.image_;e.naturalWidth&&e.naturalHeight?this.state=Ve.LOADED:this.state=Ve.EMPTY,this.unlistenImage_(),this.changed()}load(){this.state==Ve.ERROR&&(this.state=Ve.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==Ve.IDLE&&(this.state=Ve.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=hie(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}disposeInternal(){this.unlistenImage_(),this.image_=null,super.disposeInternal()}}function Hse(){const t=hn(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}const iA=.5,jse=10,Yw=.25;class sA{constructor(e,n,i,s,r,o){this.sourceProj_=e,this.targetProj_=n;let a={};const l=Wh(this.targetProj_,this.sourceProj_);this.transformInv_=function(x){const E=x[0]+"/"+x[1];return a[E]||(a[E]=l(x)),a[E]},this.maxSourceExtent_=s,this.errorThresholdSquared_=r*r,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!s&&!!this.sourceProj_.getExtent()&&yt(s)>=yt(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?yt(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?yt(this.targetProj_.getExtent()):null;const c=xa(i),u=Kf(i),d=jf(i),f=Hf(i),g=this.transformInv_(c),p=this.transformInv_(u),m=this.transformInv_(d),v=this.transformInv_(f),y=jse+(o?Math.max(0,Math.ceil(Math.log2(wu(i)/(o*o*256*256)))):0);if(this.addQuad_(c,u,d,f,g,p,m,v,y),this.wrapsXInSource_){let x=1/0;this.triangles_.forEach(function(E,w,b){x=Math.min(x,E.source[0][0],E.source[1][0],E.source[2][0])}),this.triangles_.forEach(E=>{if(Math.max(E.source[0][0],E.source[1][0],E.source[2][0])-x>this.sourceWorldWidth_/2){const w=[[E.source[0][0],E.source[0][1]],[E.source[1][0],E.source[1][1]],[E.source[2][0],E.source[2][1]]];w[0][0]-x>this.sourceWorldWidth_/2&&(w[0][0]-=this.sourceWorldWidth_),w[1][0]-x>this.sourceWorldWidth_/2&&(w[1][0]-=this.sourceWorldWidth_),w[2][0]-x>this.sourceWorldWidth_/2&&(w[2][0]-=this.sourceWorldWidth_);const b=Math.min(w[0][0],w[1][0],w[2][0]);Math.max(w[0][0],w[1][0],w[2][0])-b.5&&d<1;let p=!1;if(c>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){const v=cw([e,n,i,s]);p=yt(v)/this.targetWorldWidth_>Yw||p}!g&&this.sourceProj_.isGlobal()&&d&&(p=d>Yw||p)}if(!p&&this.maxSourceExtent_&&isFinite(u[0])&&isFinite(u[1])&&isFinite(u[2])&&isFinite(u[3])&&!vi(u,this.maxSourceExtent_))return;let m=0;if(!p&&(!isFinite(r[0])||!isFinite(r[1])||!isFinite(o[0])||!isFinite(o[1])||!isFinite(a[0])||!isFinite(a[1])||!isFinite(l[0])||!isFinite(l[1]))){if(c>0)p=!0;else if(m=(!isFinite(r[0])||!isFinite(r[1])?8:0)+(!isFinite(o[0])||!isFinite(o[1])?4:0)+(!isFinite(a[0])||!isFinite(a[1])?2:0)+(!isFinite(l[0])||!isFinite(l[1])?1:0),m!=1&&m!=2&&m!=4&&m!=8)return}if(c>0){if(!p){const v=[(e[0]+i[0])/2,(e[1]+i[1])/2],y=this.transformInv_(v);let x;g?x=(hl(r[0],f)+hl(a[0],f))/2-hl(y[0],f):x=(r[0]+a[0])/2-y[0];const E=(r[1]+a[1])/2-y[1];p=x*x+E*E>this.errorThresholdSquared_}if(p){if(Math.abs(e[0]-i[0])<=Math.abs(e[1]-i[1])){const v=[(n[0]+i[0])/2,(n[1]+i[1])/2],y=this.transformInv_(v),x=[(s[0]+e[0])/2,(s[1]+e[1])/2],E=this.transformInv_(x);this.addQuad_(e,n,v,x,r,o,y,E,c-1),this.addQuad_(x,v,i,s,E,y,a,l,c-1)}else{const v=[(e[0]+n[0])/2,(e[1]+n[1])/2],y=this.transformInv_(v),x=[(i[0]+s[0])/2,(i[1]+s[1])/2],E=this.transformInv_(x);this.addQuad_(e,v,x,s,r,y,E,l,c-1),this.addQuad_(v,n,i,x,y,o,a,E,c-1)}return}}if(g){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}m&11||this.addTriangle_(e,i,s,r,a,l),m&14||this.addTriangle_(e,i,n,r,a,o),m&&(m&13||this.addTriangle_(n,s,e,o,l,r),m&7||this.addTriangle_(n,s,i,o,l,a))}calculateSourceExtent(){const e=Gi();return this.triangles_.forEach(function(n,i,s){const r=n.source;Zc(e,r[0]),Zc(e,r[1]),Zc(e,r[2])}),e}getTriangles(){return this.triangles_}}let Sp;const mr=[];function Hw(t,e,n,i,s){t.beginPath(),t.moveTo(0,0),t.lineTo(e,n),t.lineTo(i,s),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,i)+1,Math.max(n,s)),t.restore()}function kp(t,e){return Math.abs(t[e*4]-210)>2||Math.abs(t[e*4+3]-.75*255)>2}function Kse(){if(Sp===void 0){const t=hn(6,6,mr);t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",Hw(t,4,5,4,0),Hw(t,4,5,0,5);const e=t.getImageData(0,0,3,3).data;Sp=kp(e,0)||kp(e,4)||kp(e,8),Wl(t),mr.push(t.canvas)}return Sp}function jw(t,e,n,i){const s=vT(n,e,t);let r=dw(e,i,n);const o=e.getMetersPerUnit();o!==void 0&&(r*=o);const a=t.getMetersPerUnit();a!==void 0&&(r/=a);const l=t.getExtent();if(!l||zl(l,s)){const c=dw(t,r,s)/r;isFinite(c)&&c>0&&(r/=c)}return r}function rA(t,e,n,i){const s=pa(n);let r=jw(t,e,s,i);return(!isFinite(r)||r<=0)&&hT(n,function(o){return r=jw(t,e,o,i),isFinite(r)&&r>0}),r}function oA(t,e,n,i,s,r,o,a,l,c,u,d,f,g){const p=hn(Math.round(n*t),Math.round(n*e),mr);if(d||(p.imageSmoothingEnabled=!1),l.length===0)return p.canvas;p.scale(n,n);function m(b){return Math.round(b*n)/n}p.globalCompositeOperation="lighter";const v=Gi();l.forEach(function(b,C,k){nne(v,b.extent)});let y;const x=n/i,E=(d?1:1+Math.pow(2,-24))/x;if(!f||l.length!==1||c!==0){if(y=hn(Math.round(yt(v)*x),Math.round(Un(v)*x),mr),d||(y.imageSmoothingEnabled=!1),s&&g){const b=(s[0]-v[0])*x,C=-(s[3]-v[3])*x,k=yt(s)*x,T=Un(s)*x;y.rect(b,C,k,T),y.clip()}l.forEach(function(b,C,k){if(b.image.width>0&&b.image.height>0){if(b.clipExtent){y.save();const Y=(b.clipExtent[0]-v[0])*x,ne=-(b.clipExtent[3]-v[3])*x,N=yt(b.clipExtent)*x,B=Un(b.clipExtent)*x;y.rect(d?Y:Math.round(Y),d?ne:Math.round(ne),d?N:Math.round(Y+N)-Math.round(Y),d?B:Math.round(ne+B)-Math.round(ne)),y.clip()}const T=(b.extent[0]-v[0])*x,A=-(b.extent[3]-v[3])*x,I=yt(b.extent)*x,V=Un(b.extent)*x;y.drawImage(b.image,c,c,b.image.width-2*c,b.image.height-2*c,d?T:Math.round(T),d?A:Math.round(A),d?I:Math.round(T+I)-Math.round(T),d?V:Math.round(A+V)-Math.round(A)),b.clipExtent&&y.restore()}})}const w=xa(o);return a.getTriangles().forEach(function(b,C,k){const T=b.source,A=b.target;let I=T[0][0],V=T[0][1],Y=T[1][0],ne=T[1][1],N=T[2][0],B=T[2][1];const R=m((A[0][0]-w[0])/r),z=m(-(A[0][1]-w[1])/r),X=m((A[1][0]-w[0])/r),J=m(-(A[1][1]-w[1])/r),H=m((A[2][0]-w[0])/r),ce=m(-(A[2][1]-w[1])/r),ie=I,te=V;I=0,V=0,Y-=ie,ne-=te,N-=ie,B-=te;const D=[[Y,ne,0,0,X-R],[N,B,0,0,H-R],[0,0,Y,ne,J-z],[0,0,N,B,ce-z]],ee=jte(D);if(!ee)return;if(p.save(),p.beginPath(),Kse()||!d){p.moveTo(X,J);const L=4,le=R-X,de=z-J;for(let xe=0;xe{const I=n.getTileRangeForExtentAndZ(A,this.sourceZ_);for(let V=I.minX;V<=I.maxX;V++)for(let Y=I.minY;Y<=I.maxY;Y++){const ne=c(this.sourceZ_,V,Y,a);if(ne){const N=k*C;this.sourceTiles_.push({tile:ne,offset:N})}}++k}),this.sourceTiles_.length===0&&(this.state=Ve.EMPTY)}}getImage(){return this.canvas_}reproject_(){const e=[];if(this.sourceTiles_.forEach(n=>{const i=n.tile;if(i&&i.getState()==Ve.LOADED){const s=this.sourceTileGrid_.getTileCoordExtent(i.tileCoord);s[0]+=n.offset,s[2]+=n.offset;const r=this.clipExtent_?.slice();r&&(r[0]+=n.offset,r[2]+=n.offset),e.push({extent:s,clipExtent:r,image:i.getImage()})}}),this.sourceTiles_.length=0,e.length===0)this.state=Ve.ERROR;else{const n=this.wrappedTileCoord_[0],i=this.targetTileGrid_.getTileSize(n),s=typeof i=="number"?i:i[0],r=typeof i=="number"?i:i[1],o=this.targetTileGrid_.getResolution(n),a=this.sourceTileGrid_.getResolution(this.sourceZ_),l=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=oA(s,r,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),o,l,this.triangulation_,e,this.gutter_,this.renderEdges_,this.interpolate),this.state=Ve.LOADED}this.changed()}load(){if(this.state==Ve.IDLE){this.state=Ve.LOADING,this.changed();let e=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(({tile:n})=>{const i=n.getState();if(i==Ve.IDLE||i==Ve.LOADING){e++;const s=ft(n,tt.CHANGE,r=>{const o=n.getState();(o==Ve.LOADED||o==Ve.ERROR||o==Ve.EMPTY)&&(Lt(s),e--,e===0&&(this.unlistenSources_(),this.reproject_()))});this.sourcesListenerKeys_.push(s)}}),e===0?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function({tile:n},i,s){n.getState()==Ve.IDLE&&n.load()})}}unlistenSources_(){this.sourcesListenerKeys_.forEach(Lt),this.sourcesListenerKeys_=null}release(){this.canvas_&&(Wl(this.canvas_.getContext("2d")),mr.push(this.canvas_),this.canvas_=null),super.release()}}const Tp={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"};class aA extends zs{constructor(e){super(),this.projection=Xi(e.projection),this.attributions_=Kw(e.attributions),this.attributionsCollapsible_=e.attributionsCollapsible??!0,this.loading=!1,this.state_=e.state!==void 0?e.state:"ready",this.wrapX_=e.wrapX!==void 0?e.wrapX:!1,this.interpolate_=!!e.interpolate,this.viewResolver=null,this.viewRejector=null;const n=this;this.viewPromise_=new Promise(function(i,s){n.viewResolver=i,n.viewRejector=s})}getAttributions(){return this.attributions_}getAttributionsCollapsible(){return this.attributionsCollapsible_}getProjection(){return this.projection}getResolutions(e){return null}getView(){return this.viewPromise_}getState(){return this.state_}getWrapX(){return this.wrapX_}getInterpolate(){return this.interpolate_}refresh(){this.changed()}setAttributions(e){this.attributions_=Kw(e),this.changed()}setState(e){this.state_=e,this.changed()}}function Kw(t){return t?typeof t=="function"?t:(Array.isArray(t)||(t=[t]),e=>t):null}class qv{constructor(e,n,i,s){this.minX=e,this.maxX=n,this.minY=i,this.maxY=s}contains(e){return this.containsXY(e[1],e[2])}containsTileRange(e){return this.minX<=e.minX&&e.maxX<=this.maxX&&this.minY<=e.minY&&e.maxY<=this.maxY}containsXY(e,n){return this.minX<=e&&e<=this.maxX&&this.minY<=n&&n<=this.maxY}equals(e){return this.minX==e.minX&&this.minY==e.minY&&this.maxX==e.maxX&&this.maxY==e.maxY}extend(e){e.minXthis.maxX&&(this.maxX=e.maxX),e.minYthis.maxY&&(this.maxY=e.maxY)}getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(e){return this.minX<=e.maxX&&this.maxX>=e.minX&&this.minY<=e.maxY&&this.maxY>=e.minY}}function Ya(t,e,n,i,s){return s!==void 0?(s.minX=t,s.maxX=e,s.minY=n,s.maxY=i,s):new qv(t,e,n,i)}function qh(t,e,n,i){return i!==void 0?(i[0]=t,i[1]=e,i[2]=n,i):[t,e,n]}function Use(t,e,n){return t+"/"+e+"/"+n}function Gse(t){return Xse(t[0],t[1],t[2])}function Xse(t,e,n){return(e<n||n>e.getMaxZoom())return!1;const r=e.getFullTileRange(n);return r?r.containsXY(i,s):!0}const Ha=[0,0,0],Dr=5;class lA{constructor(e){this.minZoom=e.minZoom!==void 0?e.minZoom:0,this.resolutions_=e.resolutions,mt(Vte(this.resolutions_,(s,r)=>r-s),"`resolutions` must be sorted in descending order");let n;if(!e.origins){for(let s=0,r=this.resolutions_.length-1;s{const o=new qv(Math.min(0,s[0]),Math.max(s[0]-1,-1),Math.min(0,s[1]),Math.max(s[1]-1,-1));if(i){const a=this.getTileRangeForExtentAndZ(i,r);o.minX=Math.max(a.minX,o.minX),o.maxX=Math.min(a.maxX,o.maxX),o.minY=Math.max(a.minY,o.minY),o.maxY=Math.min(a.maxY,o.maxY)}return o}):i&&this.calculateTileRanges_(i)}forEachTileCoord(e,n,i){const s=this.getTileRangeForExtentAndZ(e,n);for(let r=s.minX,o=s.maxX;r<=o;++r)for(let a=s.minY,l=s.maxY;a<=l;++a)i([n,r,a])}forEachTileCoordParentTileRange(e,n,i,s){let r,o,a,l=null,c=e[0]-1;for(this.zoomFactor_===2?(o=e[1],a=e[2]):l=this.getTileCoordExtent(e,s);c>=this.minZoom;){if(o!==void 0&&a!==void 0?(o=Math.floor(o/2),a=Math.floor(a/2),r=Ya(o,o,a,a,i)):r=this.getTileRangeForExtentAndZ(l,c,i),n(c,r))return!0;--c}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(e){return this.origin_?this.origin_:this.origins_[e]}getResolution(e){return this.resolutions_[e]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(e,n,i){if(e[0]this.maxZoom||n0?i:Math.max(r/n[0],s/n[1]);const o=e+1,a=new Array(o);for(let l=0;lthis.getTileInternal(g,p,m,v,o),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return f.key=l,f}getTileInternal(e,n,i,s,r){const o=this.getKey();return this.createTile_(e,n,i,s,r,o)}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,n){const i=Xi(e);if(i){const s=Et(i);s in this.tileGridForProjection||(this.tileGridForProjection[s]=n)}}}function fre(t,e){t.getImage().src=e}class gre extends hre{constructor(e){e=e||{};const n=e.projection!==void 0?e.projection:"EPSG:3857",i=e.tileGrid!==void 0?e.tileGrid:Qse({extent:Zv(n),maxResolution:e.maxResolution,maxZoom:e.maxZoom,minZoom:e.minZoom,tileSize:e.tileSize});super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:n,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileGrid:i,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX!==void 0?e.wrapX:!0,transition:e.transition,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.gutter_=e.gutter!==void 0?e.gutter:0}getGutter(){return this.gutter_}}const pre='© OpenStreetMap contributors.';class mre extends gre{constructor(e){e=e||{};let n;e.attributions!==void 0?n=e.attributions:n=[pre];const i=e.crossOrigin!==void 0?e.crossOrigin:"anonymous",s=e.url!==void 0?e.url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png";super({attributions:n,attributionsCollapsible:!1,cacheSize:e.cacheSize,crossOrigin:i,interpolate:e.interpolate,maxZoom:e.maxZoom!==void 0?e.maxZoom:19,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileLoadFunction:e.tileLoadFunction,transition:e.transition,url:s,wrapX:e.wrapX,zDirection:e.zDirection})}}const Qd={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"};class _re extends qf{constructor(e){e=e||{};const n=Object.assign({},e),i=e.cacheSize;delete e.cacheSize,delete n.preload,delete n.useInterimTilesOnError,super(n),this.on,this.once,this.un,this.cacheSize_=i,this.setPreload(e.preload!==void 0?e.preload:0),this.setUseInterimTilesOnError(e.useInterimTilesOnError!==void 0?e.useInterimTilesOnError:!0)}getCacheSize(){return this.cacheSize_}getPreload(){return this.get(Qd.PRELOAD)}setPreload(e){this.set(Qd.PRELOAD,e)}getUseInterimTilesOnError(){return this.get(Qd.USE_INTERIM_TILES_ON_ERROR)}setUseInterimTilesOnError(e){this.set(Qd.USE_INTERIM_TILES_ON_ERROR,e)}getData(e){return super.getData(e)}}const vre=5;class yre extends Zu{constructor(e){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=e,this.staleKeys_=new Array,this.maxStaleKeys=vre}getStaleKeys(){return this.staleKeys_}prependStaleKey(e){this.staleKeys_.unshift(e),this.staleKeys_.length>this.maxStaleKeys&&(this.staleKeys_.length=this.maxStaleKeys)}getFeatures(e){return pt()}getData(e){return null}prepareFrame(e){return pt()}renderFrame(e,n){return pt()}forEachFeatureAtCoordinate(e,n,i,s,r){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(e){const n=e.target;(n.getState()===ot.LOADED||n.getState()===ot.ERROR)&&this.renderIfReadyAndVisible()}loadImage(e){let n=e.getState();return n!=ot.LOADED&&n!=ot.ERROR&&e.addEventListener(tt.CHANGE,this.boundHandleImageChange_),n==ot.IDLE&&(e.load(),n=e.getState()),n==ot.LOADED}renderIfReadyAndVisible(){const e=this.getLayer();e&&e.getVisible()&&e.getSourceState()==="ready"&&e.changed()}renderDeferred(e){}disposeInternal(){delete this.layer_,super.disposeInternal()}}class dA{constructor(){this.instructions_=[],this.zIndex=0,this.offset_=0,this.context_=new Proxy(Hh(),{get:(e,n)=>{if(typeof Hh()[n]=="function")return this.instructions_[this.zIndex+this.offset_]||(this.instructions_[this.zIndex+this.offset_]=[]),this.instructions_[this.zIndex+this.offset_].push(n),this.pushMethodArgs_},set:(e,n,i)=>(this.instructions_[this.zIndex+this.offset_]||(this.instructions_[this.zIndex+this.offset_]=[]),this.instructions_[this.zIndex+this.offset_].push(n,i),!0)})}pushMethodArgs_=(...e)=>(this.instructions_[this.zIndex+this.offset_].push(e),this);pushFunction(e){this.instructions_[this.zIndex+this.offset_].push(e)}getContext(){return this.context_}draw(e){this.instructions_.forEach(n=>{for(let i=0,s=n.length;i0&&this.getCount()>this.highWaterMark}expireCache(e){for(;this.canExpireCache();){const n=this.pop();n instanceof Bf&&n.dispose()}}clear(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}containsKey(e){return this.entries_.hasOwnProperty(e)}forEach(e){let n=this.oldest_;for(;n;)e(n.value_,n.key_,this),n=n.newer}get(e,n){const i=this.entries_[e];return mt(i!==void 0,"Tried to get a value for a key that does not exist in the cache"),i===this.newest_||(i===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(i.newer.older=i.older,i.older.newer=i.newer),i.newer=null,i.older=this.newest_,this.newest_.newer=i,this.newest_=i),i.value_}remove(e){const n=this.entries_[e];return mt(n!==void 0,"Tried to get a value for a key that does not exist in the cache"),n===this.newest_?(this.newest_=n.older,this.newest_&&(this.newest_.newer=null)):n===this.oldest_?(this.oldest_=n.newer,this.oldest_&&(this.oldest_.older=null)):(n.newer.older=n.older,n.older.newer=n.newer),delete this.entries_[e],--this.count_,n.value_}getCount(){return this.count_}getKeys(){const e=new Array(this.count_);let n=0,i;for(i=this.newest_;i;i=i.older)e[n++]=i.key_;return e}getValues(){const e=new Array(this.count_);let n=0,i;for(i=this.newest_;i;i=i.older)e[n++]=i.value_;return e}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(e){return this.entries_[e]?.value_}pop(){const e=this.oldest_;return delete this.entries_[e.key_],e.newer&&(e.newer.older=null),this.oldest_=e.newer,this.oldest_||(this.newest_=null),--this.count_,e.value_}replace(e,n){this.get(e),this.entries_[e].value_=n}set(e,n){mt(!(e in this.entries_),"Tried to set a value for a key that is used already");const i={key_:e,newer:null,older:this.newest_,value_:n};this.newest_?this.newest_.newer=i:this.oldest_=i,this.newest_=i,this.entries_[e]=i,++this.count_}setSize(e){this.highWaterMark=e}}class kre extends Vm{constructor(e){super({tileCoord:e.tileCoord,loader:()=>Promise.resolve(new Uint8ClampedArray(4)),interpolate:e.interpolate,transition:e.transition}),this.pixelRatio_=e.pixelRatio,this.gutter_=e.gutter,this.reprojData_=null,this.reprojError_=null,this.reprojSize_=void 0,this.sourceTileGrid_=e.sourceTileGrid,this.targetTileGrid_=e.targetTileGrid,this.wrappedTileCoord_=e.wrappedTileCoord||e.tileCoord,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;const n=e.sourceProj,i=n.getExtent(),s=e.sourceTileGrid.getExtent();this.clipExtent_=n.canWrapX()?s?cs(i,s):i:s;const r=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_),o=this.targetTileGrid_.getExtent();let a=this.sourceTileGrid_.getExtent();const l=o?cs(r,o):r;if(wu(l)===0){this.state=Ve.EMPTY;return}i&&(a?a=cs(a,i):a=i);const c=this.targetTileGrid_.getResolution(this.wrappedTileCoord_[0]),u=e.targetProj,d=rA(n,u,l,c);if(!isFinite(d)||d<=0){this.state=Ve.EMPTY;return}const f=e.errorThreshold!==void 0?e.errorThreshold:iA;if(this.triangulation_=new sA(n,u,l,a,d*f,c),this.triangulation_.getTriangles().length===0){this.state=Ve.EMPTY;return}this.sourceZ_=this.sourceTileGrid_.getZForResolution(d);let g=this.triangulation_.calculateSourceExtent();if(a&&(n.canWrapX()?(g[1]=rn(g[1],a[1],a[3]),g[3]=rn(g[3],a[1],a[3])):g=cs(g,a)),!wu(g))this.state=Ve.EMPTY;else{let p=0,m=0;n.canWrapX()&&(p=yt(i),m=Math.floor((g[0]-i[0])/p)),xv(g.slice(),n,!0).forEach(y=>{const x=this.sourceTileGrid_.getTileRangeForExtentAndZ(y,this.sourceZ_),E=e.getTileFunction;for(let w=x.minX;w<=x.maxX;w++)for(let b=x.minY;b<=x.maxY;b++){const C=E(this.sourceZ_,w,b,this.pixelRatio_);if(C){const k=m*p;this.sourceTiles_.push({tile:C,offset:k})}}++m}),this.sourceTiles_.length===0&&(this.state=Ve.EMPTY)}}getSize(){return this.reprojSize_}getData(){return this.reprojData_}getError(){return this.reprojError_}reproject_(){const e=[];let n=!1;if(this.sourceTiles_.forEach(p=>{const m=p.tile;if(!m||m.getState()!==Ve.LOADED)return;const v=m.getSize(),y=this.gutter_;let x;const E=wre(m.getData());E?x=E:(n=!0,x=Ere(Zh(m.getData())));const w=[v[0]+2*y,v[1]+2*y],b=x instanceof Float32Array,C=w[0]*w[1],k=b?Float32Array:Uint8ClampedArray,T=new k(x.buffer),A=k.BYTES_PER_ELEMENT,I=A*T.length/C,V=T.byteLength/w[1],Y=Math.floor(V/A/w[0]),ne=C*Y;let N=T;if(T.length!==ne){N=new k(ne);let z=0,X=0;const J=w[0]*Y;for(let H=0;H=0;--p){const m=[];for(let b=0,C=e.length;b{const i=n.getState();if(i!==Ve.IDLE&&i!==Ve.LOADING)return;e++;const s=ft(n,tt.CHANGE,()=>{const r=n.getState();(r==Ve.LOADED||r==Ve.ERROR||r==Ve.EMPTY)&&(Lt(s),e--,e===0&&(this.unlistenSources_(),this.reproject_()))});this.sourcesListenerKeys_.push(s)}),e===0?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function({tile:n}){n.getState()==Ve.IDLE&&n.load()})}unlistenSources_(){this.sourcesListenerKeys_.forEach(Lt),this.sourcesListenerKeys_=null}}function Ap(t,e,n,i){return`${t},${Use(e,n,i)}`}function Pp(t,e,n){if(!(n in t))return t[n]=new Set([e]),!0;const i=t[n],s=i.has(e);return s||i.add(e),!s}function Tre(t,e,n){const i=t[n];return i?i.delete(e):!1}function Gw(t,e){const n=t.layerStatesArray[t.layerIndex];n.extent&&(e=cs(e,Zr(n.extent,t.viewState.projection)));const i=n.layer.getRenderSource();if(!i.getWrapX()){const s=i.getTileGridForProjection(t.viewState.projection).getExtent();s&&(e=cs(e,s))}return e}class Are extends hA{constructor(e,n){super(e),n=n||{},this.extentChanged=!0,this.renderComplete=!1,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision,this.renderedTiles=[],this.renderedSourceKey_,this.renderedSourceRevision_,this.tempExtent=Gi(),this.tempTileRange_=new qv(0,0,0,0),this.tempTileCoord_=qh(0,0,0);const i=n.cacheSize!==void 0?n.cacheSize:512;this.tileCache_=new Sre(i),this.renderedProjection_=void 0,this.maxStaleKeys=i*.5}getTileCache(){return this.tileCache_}getOrCreateTile(e,n,i,s){const r=this.tileCache_,a=this.getLayer().getSource(),l=Ap(a.getKey(),e,n,i);let c;if(r.containsKey(l))c=r.get(l);else{if(c=a.getTile(e,n,i,s.pixelRatio,s.viewState.projection),!c)return null;r.set(l,c)}return c}getTile(e,n,i,s){const r=this.getOrCreateTile(e,n,i,s);return r||null}getData(e){const n=this.frameState;if(!n)return null;const i=this.getLayer(),s=On(n.pixelToCoordinateTransform,e.slice()),r=i.getExtent();if(r&&!zl(r,s))return null;const o=n.viewState,a=i.getRenderSource(),l=a.getTileGridForProjection(o.projection),c=a.getTilePixelRatio(n.pixelRatio);for(let u=l.getZForResolution(o.resolution);u>=l.getMinZoom();--u){const d=l.getTileCoordForCoordAndZ(s,u),f=this.getTile(u,d[1],d[2],n);if(!f||f.getState()!==Ve.LOADED)continue;const g=l.getOrigin(u),p=wi(l.getTileSize(u)),m=l.getResolution(u);let v;if(f instanceof nA||f instanceof Bm)v=f.getImage();else if(f instanceof Vm){if(v=Zh(f.getData()),!v)continue}else continue;const y=Math.floor(c*((s[0]-g[0])/m-d[1]*p[0])),x=Math.floor(c*((g[1]-s[1])/m-d[2]*p[1])),E=Math.round(c*a.getGutterForProjection(o.projection));return this.getImageData(v,y+E,x+E)}return null}prepareFrame(e){this.renderedProjection_?e.viewState.projection!==this.renderedProjection_&&(this.tileCache_.clear(),this.renderedProjection_=e.viewState.projection):this.renderedProjection_=e.viewState.projection;const n=this.getLayer().getSource();if(!n)return!1;const i=n.getRevision();return this.renderedRevision_?this.renderedRevision_!==i&&(this.renderedRevision_=i,this.renderedSourceKey_===n.getKey()&&this.tileCache_.clear()):this.renderedRevision_=i,!0}enqueueTiles(e,n,i,s,r){const o=e.viewState,a=this.getLayer(),l=a.getRenderSource(),c=l.getTileGridForProjection(o.projection),u=Et(l);u in e.wantedTiles||(e.wantedTiles[u]={});const d=e.wantedTiles[u],f=a.getMapInternal(),g=Math.max(i-r,c.getMinZoom(),c.getZForResolution(Math.min(a.getMaxResolution(),f?f.getView().getResolutionForZoom(Math.max(a.getMinZoom(),0)):c.getResolution(0)),l.zDirection));for(let p=i;p>=g;--p){const m=c.getTileRangeForExtentAndZ(n,p,this.tempTileRange_),v=c.getResolution(p);for(let y=m.minX;y<=m.maxX;++y)for(let x=m.minY;x<=m.maxY;++x){const E=this.getTile(p,y,x,e);if(!E||!Pp(s,E,p))continue;const b=E.getKey();if(d[b]=!0,E.getState()===Ve.IDLE&&!e.tileQueue.isKeyQueued(b)){const C=qh(p,y,x,this.tempTileCoord_);e.tileQueue.enqueue([E,u,c.getTileCoordCenter(C),v])}}}}findStaleTile_(e,n){const i=this.tileCache_,s=e[0],r=e[1],o=e[2],a=this.getStaleKeys();for(let l=0;l0&&setTimeout(()=>{this.enqueueTiles(e,I,g-1,T,A-1)},0),!(g in T))return this.container;const V=Et(this),Y=e.time;for(const H of T[g]){const ce=H.getState();if((H instanceof Bm||H instanceof kre)&&ce===Ve.EMPTY)continue;const ie=H.tileCoord;if(ce===Ve.LOADED&&H.getAlpha(V,Y)===1){H.endTransition(V);continue}if(this.renderComplete=!1,this.findStaleTile_(ie,T)){Tre(T,H,g),e.animate=!0;continue}if(this.findAltTiles_(f,ie,g+1,T))continue;const ee=f.getMinZoom();for(let ue=g-1;ue>=ee&&!this.findAltTiles_(f,ie,ue,T);--ue);}const ne=p/o*l/y,N=this.getRenderContext(e);br(this.tempTransform,x/2,E/2,ne,ne,0,-x/2,-E/2),i.extent&&this.clipUnrotated(N,e,w),u.getInterpolate()||(N.imageSmoothingEnabled=!1),this.preRender(N,e);const B=Object.keys(T).map(Number);B.sort(hr);let R;const z=[],X=[];for(let H=B.length-1;H>=0;--H){const ce=B[H],ie=u.getTilePixelSize(ce,l,r),D=f.getResolution(ce)/p,ee=ie[0]*D*ne,ue=ie[1]*D*ne,L=f.getTileCoordForCoordAndZ(xa(k),ce),le=f.getTileCoordExtent(L),de=On(this.tempTransform,[y*(le[0]-k[0])/p,y*(k[3]-le[3])/p]),xe=y*u.getGutterForProjection(r);for(const W of T[ce]){if(W.getState()!==Ve.LOADED)continue;const fe=W.tileCoord,S=L[1]-fe[1],O=Math.round(de[0]-(S-1)*ee),K=L[2]-fe[2],U=Math.round(de[1]-(K-1)*ue),oe=Math.round(de[0]-S*ee),j=Math.round(de[1]-K*ue),se=O-oe,Q=U-j,ge=B.length===1;let be=!1;R=[oe,j,oe+se,j,oe+se,j+Q,oe,j+Q];for(let we=0,Pe=z.length;we{const ie=Et(u),te=ce.wantedTiles[ie],D=te?Object.keys(te).length:0;this.updateCacheSize(D),this.tileCache_.expireCache()};return e.postRenderFunctions.push(J),this.container}updateCacheSize(e){this.tileCache_.highWaterMark=Math.max(this.tileCache_.highWaterMark,e*2)}drawTile(e,n,i,s,r,o,a,l){let c;if(e instanceof Vm){if(c=Zh(e.getData()),!c)throw new Error("Rendering array data is not yet supported")}else c=this.getTileImage(e);if(!c)return;const u=this.getRenderContext(n),d=Et(this),f=n.layerStatesArray[n.layerIndex],g=f.opacity*(l?e.getAlpha(d,n.time):1),p=g!==u.globalAlpha;p&&(u.save(),u.globalAlpha=g),u.drawImage(c,a,a,c.width-2*a,c.height-2*a,i,s,r,o),p&&u.restore(),g!==f.opacity?n.animate=!0:l&&e.endTransition(d)}getImage(){const e=this.context;return e?e.canvas:null}getTileImage(e){return e.getImage()}updateUsedTiles(e,n,i){const s=Et(n);s in e||(e[s]={}),e[s][i.getKey()]=!0}}class Pre extends _re{constructor(e){super(e)}createRenderer(){return new Are(this,{cacheSize:this.getCacheSize()})}}class Jc extends zs{constructor(e){if(super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),e)if(typeof e.getSimplifiedGeometry=="function"){const n=e;this.setGeometry(n)}else{const n=e;this.setProperties(n)}}clone(){const e=new Jc(this.hasProperties()?this.getProperties():null);e.setGeometryName(this.getGeometryName());const n=this.getGeometry();n&&e.setGeometry(n.clone());const i=this.getStyle();return i&&e.setStyle(i),e}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&(Lt(this.geometryChangeKey_),this.geometryChangeKey_=null);const e=this.getGeometry();e&&(this.geometryChangeKey_=ft(e,tt.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(e){this.set(this.geometryName_,e)}setStyle(e){this.style_=e,this.styleFunction_=e?Mre(e):void 0,this.changed()}setId(e){this.id_=e,this.changed()}setGeometryName(e){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=e,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}}function Mre(t){if(typeof t=="function")return t;let e;return Array.isArray(t)?e=t:(mt(typeof t.getZIndex=="function","Expected an `ol/style/Style` or an array of `ol/style/Style.js`"),e=[t]),function(){return e}}function zm(t,e,n,i,s,r,o){let a,l;const c=(n-e)/i;if(c===1)a=e;else if(c===2)a=e,l=s;else if(c!==0){let u=t[e],d=t[e+1],f=0;const g=[0];for(let v=e+i;v1?o:2,r=r||new Array(o);for(let u=0;u>1;sl&&(this.instructions.push([Ue.CUSTOM,l,u,e,i,qo,r]),this.hitDetectionInstructions.push([Ue.CUSTOM,l,u,e,s||i,qo,r]));break;case"Point":c=e.getFlatCoordinates(),this.coordinates.push(c[0],c[1]),u=this.coordinates.length,this.instructions.push([Ue.CUSTOM,l,u,e,i,void 0,r]),this.hitDetectionInstructions.push([Ue.CUSTOM,l,u,e,s||i,void 0,r]);break}this.endGeometry(n)}beginGeometry(e,n,i){this.beginGeometryInstruction1_=[Ue.BEGIN_GEOMETRY,n,0,e,i],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[Ue.BEGIN_GEOMETRY,n,0,e,i],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){const e=this.hitDetectionInstructions;e.reverse();let n;const i=e.length;let s,r,o=-1;for(n=0;nthis.maxLineWidth&&(this.maxLineWidth=i.lineWidth,this.bufferedMaxExtent_=null)}else i.strokeStyle=void 0,i.lineCap=void 0,i.lineDash=null,i.lineDashOffset=void 0,i.lineJoin=void 0,i.lineWidth=void 0,i.miterLimit=void 0}createFill(e){const n=e.fillStyle,i=[Ue.SET_FILL_STYLE,n];return typeof n!="string"&&i.push(e.fillPatternScale),i}applyStroke(e){this.instructions.push(this.createStroke(e))}createStroke(e){return[Ue.SET_STROKE_STYLE,e.strokeStyle,e.lineWidth*this.pixelRatio,e.lineCap,e.lineJoin,e.miterLimit,this.applyPixelRatio(e.lineDash),e.lineDashOffset*this.pixelRatio]}updateFillStyle(e,n){const i=e.fillStyle;(typeof i!="string"||e.currentFillStyle!=i)&&(i!==void 0&&this.instructions.push(n.call(this,e)),e.currentFillStyle=i)}updateStrokeStyle(e,n){const i=e.strokeStyle,s=e.lineCap,r=e.lineDash,o=e.lineDashOffset,a=e.lineJoin,l=e.lineWidth,c=e.miterLimit;(e.currentStrokeStyle!=i||e.currentLineCap!=s||r!=e.currentLineDash&&!So(e.currentLineDash,r)||e.currentLineDashOffset!=o||e.currentLineJoin!=a||e.currentLineWidth!=l||e.currentMiterLimit!=c)&&(i!==void 0&&n.call(this,e),e.currentStrokeStyle=i,e.currentLineCap=s,e.currentLineDash=r,e.currentLineDashOffset=o,e.currentLineJoin=a,e.currentLineWidth=l,e.currentMiterLimit=c)}endGeometry(e){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;const n=[Ue.END_GEOMETRY,e];this.instructions.push(n),this.hitDetectionInstructions.push(n)}getBufferedMaxExtent(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=lT(this.maxExtent),this.maxLineWidth>0)){const e=this.resolution*(this.maxLineWidth+1)/2;yv(this.bufferedMaxExtent_,e,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}}class Dre extends id{constructor(e,n,i,s){super(e,n,i,s),this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0,this.declutterMode_=void 0,this.declutterImageWithText_=void 0}drawPoint(e,n,i){if(!this.image_||this.maxExtent&&!zl(this.maxExtent,e.getFlatCoordinates()))return;this.beginGeometry(e,n,i);const s=e.getFlatCoordinates(),r=e.getStride(),o=this.coordinates.length,a=this.appendFlatPointCoordinates(s,r);this.instructions.push([Ue.DRAW_IMAGE,o,a,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([Ue.DRAW_IMAGE,o,a,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(n)}drawMultiPoint(e,n,i){if(!this.image_)return;this.beginGeometry(e,n,i);const s=e.getFlatCoordinates(),r=[];for(let l=0,c=s.length;l=t){const p=(t-a+g)/g,m=Ai(c,d,p),v=Ai(u,f,p);l.push(m,v),r.push(l),l=[m,v],a==t&&(o+=s),a=0}else if(a0&&r.push(l),r}function Lre(t,e,n,i,s){let r=n,o=n,a=0,l=0,c=n,u,d,f,g,p,m,v,y,x,E;for(d=n;dt&&(l>a&&(a=l,r=c,o=d),l=0,c=d-s)),f=g,v=x,y=E),p=w,m=b}return l+=g,l>a?[c,d]:[r,o]}const Qh={left:0,center:.5,right:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1};class Ore extends id{constructor(e,n,i,s){super(e,n,i,s),this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.fillStates[pi]={fillStyle:pi},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.declutterMode_=void 0,this.declutterImageWithText_=void 0}finish(){const e=super.finish();return e.textStates=this.textStates,e.fillStates=this.fillStates,e.strokeStates=this.strokeStates,e}drawText(e,n,i){const s=this.textFillState_,r=this.textStrokeState_,o=this.textState_;if(this.text_===""||!o||!s&&!r)return;const a=this.coordinates;let l=a.length;const c=e.getType();let u=null,d=e.getStride();if(o.placement==="line"&&(c=="LineString"||c=="MultiLineString"||c=="Polygon"||c=="MultiPolygon")){if(!vi(this.maxExtent,e.getExtent()))return;let f;if(u=e.getFlatCoordinates(),c=="LineString")f=[u.length];else if(c=="MultiLineString")f=e.getEnds();else if(c=="Polygon")f=e.getEnds().slice(0,1);else if(c=="MultiPolygon"){const v=e.getEndss();f=[];for(let y=0,x=v.length;y{const b=a[(x+w)*2]===u[w*d]&&a[(x+w)*2+1]===u[w*d+1];return b||--x,b})}this.saveTextStates_(),(o.backgroundFill||o.backgroundStroke)&&(this.setFillStrokeStyle(o.backgroundFill,o.backgroundStroke),o.backgroundFill&&this.updateFillStyle(this.state,this.createFill),o.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(e,n,i);let p=o.padding;if(p!=Jo&&(o.scale[0]<0||o.scale[1]<0)){let x=o.padding[0],E=o.padding[1],w=o.padding[2],b=o.padding[3];o.scale[0]<0&&(E=-E,b=-b),o.scale[1]<0&&(x=-x,w=-w),p=[x,E,w,b]}const m=this.pixelRatio;this.instructions.push([Ue.DRAW_IMAGE,l,g,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,this.declutterMode_,this.declutterImageWithText_,p==Jo?Jo:p.map(function(x){return x*m}),!!o.backgroundFill,!!o.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,f]);const v=1/m,y=this.state.fillStyle;o.backgroundFill&&(this.state.fillStyle=pi,this.hitDetectionInstructions.push(this.createFill(this.state))),this.hitDetectionInstructions.push([Ue.DRAW_IMAGE,l,g,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[v,v],NaN,this.declutterMode_,this.declutterImageWithText_,p,!!o.backgroundFill,!!o.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_?pi:this.fillKey_,this.textOffsetX_,this.textOffsetY_,f]),o.backgroundFill&&(this.state.fillStyle=y,this.hitDetectionInstructions.push(this.createFill(this.state))),this.endGeometry(n)}}saveTextStates_(){const e=this.textStrokeState_,n=this.textState_,i=this.textFillState_,s=this.strokeKey_;e&&(s in this.strokeStates||(this.strokeStates[s]={strokeStyle:e.strokeStyle,lineCap:e.lineCap,lineDashOffset:e.lineDashOffset,lineWidth:e.lineWidth,lineJoin:e.lineJoin,miterLimit:e.miterLimit,lineDash:e.lineDash}));const r=this.textKey_;r in this.textStates||(this.textStates[r]={font:n.font,textAlign:n.textAlign||Pu,justify:n.justify,textBaseline:n.textBaseline||jh,scale:n.scale});const o=this.fillKey_;i&&(o in this.fillStates||(this.fillStates[o]={fillStyle:i.fillStyle}))}drawChars_(e,n){const i=this.textStrokeState_,s=this.textState_,r=this.strokeKey_,o=this.textKey_,a=this.fillKey_;this.saveTextStates_();const l=this.pixelRatio,c=Qh[s.textBaseline],u=this.textOffsetY_*l,d=this.text_,f=i?i.lineWidth*Math.abs(s.scale[0])/2:0;this.instructions.push([Ue.DRAW_CHARS,e,n,c,s.overflow,a,s.maxAngle,l,u,r,f*l,d,o,1,this.declutterMode_]),this.hitDetectionInstructions.push([Ue.DRAW_CHARS,e,n,c,s.overflow,a&&pi,s.maxAngle,l,u,r,f*l,d,o,1/l,this.declutterMode_])}setTextStyle(e,n){let i,s,r;if(!e)this.text_="";else{const o=e.getFill();o?(s=this.textFillState_,s||(s={},this.textFillState_=s),s.fillStyle=Ds(o.getColor()||pi)):(s=null,this.textFillState_=s);const a=e.getStroke();if(!a)r=null,this.textStrokeState_=r;else{r=this.textStrokeState_,r||(r={},this.textStrokeState_=r);const p=a.getLineDash(),m=a.getLineDashOffset(),v=a.getWidth(),y=a.getMiterLimit();r.lineCap=a.getLineCap()||Yl,r.lineDash=p?p.slice():fr,r.lineDashOffset=m===void 0?gr:m,r.lineJoin=a.getLineJoin()||Hl,r.lineWidth=v===void 0?Mu:v,r.miterLimit=y===void 0?Tu:y,r.strokeStyle=Ds(a.getColor()||Au)}i=this.textState_;const l=e.getFont()||FT;yie(l);const c=e.getScaleArray();i.overflow=e.getOverflow(),i.font=l,i.maxAngle=e.getMaxAngle(),i.placement=e.getPlacement(),i.textAlign=e.getTextAlign(),i.repeat=e.getRepeat(),i.justify=e.getJustify(),i.textBaseline=e.getTextBaseline()||jh,i.backgroundFill=e.getBackgroundFill(),i.backgroundStroke=e.getBackgroundStroke(),i.padding=e.getPadding()||Jo,i.scale=c===void 0?[1,1]:c;const u=e.getOffsetX(),d=e.getOffsetY(),f=e.getRotateWithView(),g=e.getRotation();this.text_=e.getText()||"",this.textOffsetX_=u===void 0?0:u,this.textOffsetY_=d===void 0?0:d,this.textRotateWithView_=f===void 0?!1:f,this.textRotation_=g===void 0?0:g,this.strokeKey_=r?(typeof r.strokeStyle=="string"?r.strokeStyle:Et(r.strokeStyle))+r.lineCap+r.lineDashOffset+"|"+r.lineWidth+r.lineJoin+r.miterLimit+"["+r.lineDash.join()+"]":"",this.textKey_=i.font+i.scale+(i.textAlign||"?")+(i.repeat||"?")+(i.justify||"?")+(i.textBaseline||"?"),this.fillKey_=s&&s.fillStyle?typeof s.fillStyle=="string"?s.fillStyle:"|"+Et(s.fillStyle):""}this.declutterMode_=e.getDeclutterMode(),this.declutterImageWithText_=n}}const Nre={Circle:qw,Default:id,Image:Dre,LineString:Rre,Polygon:qw,Text:Ore};class Fre{constructor(e,n,i,s){this.tolerance_=e,this.maxExtent_=n,this.pixelRatio_=s,this.resolution_=i,this.buildersByZIndex_={}}finish(){const e={};for(const n in this.buildersByZIndex_){e[n]=e[n]||{};const i=this.buildersByZIndex_[n];for(const s in i){const r=i[s].finish();e[n][s]=r}}return e}getBuilder(e,n){const i=e!==void 0?e.toString():"0";let s=this.buildersByZIndex_[i];s===void 0&&(s={},this.buildersByZIndex_[i]=s);let r=s[n];if(r===void 0){const o=Nre[n];r=new o(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),s[n]=r}return r}}function Bre(t,e,n,i,s,r,o,a,l,c,u,d){let f=t[e],g=t[e+1],p=0,m=0,v=0,y=0;function x(){p=f,m=g,e+=i,f=t[e],g=t[e+1],y+=v,v=Math.sqrt((f-p)*(f-p)+(g-m)*(g-m))}do x();while(eR[2]}else V=w>A;const Y=Math.PI,ne=[],N=C+i===e;e=C,v=0,y=k,f=t[e],g=t[e+1];let B;if(N){x(),B=Math.atan2(g-m,f-p),V&&(B+=B>0?-Y:Y);const R=(A+w)/2,z=(I+b)/2;return ne[0]=[R,z,(T-r)/2,B,s],ne}s=s.replace(/\n/g," ");for(let R=0,z=s.length;R0?-Y:Y),B!==void 0){let D=X-B;if(D+=D>Y?-2*Y:D<-Y?2*Y:0,Math.abs(D)>o)return null}B=X;const J=R;let H=0;for(;R0&&t.push(` +`,""),t.push(e,""),t}class zre{constructor(e,n,i,s,r){this.overlaps=i,this.pixelRatio=n,this.resolution=e,this.alignAndScaleFill_,this.instructions=s.instructions,this.coordinates=s.coordinates,this.coordinateCache_={},this.renderedTransform_=hs(),this.hitDetectionInstructions=s.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=s.fillStates||{},this.strokeStates=s.strokeStates||{},this.textStates=s.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=r?new dA:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,n,i,s){const r=e+n+i+s;if(this.labels_[r])return this.labels_[r];const o=s?this.strokeStates[s]:null,a=i?this.fillStates[i]:null,l=this.textStates[n],c=this.pixelRatio,u=[l.scale[0]*c,l.scale[1]*c],d=l.justify?Qh[l.justify]:Mp(Array.isArray(e)?e[0]:e,l.textAlign||Pu),f=s&&o.lineWidth?o.lineWidth:0,g=Array.isArray(e)?e:String(e).split(` +`).reduce(Vre,[]),{width:p,height:m,widths:v,heights:y,lineWidths:x}=wie(l,g),E=p+f,w=[],b=(E+2)*u[0],C=(m+f)*u[1],k={width:b<0?Math.floor(b):Math.ceil(b),height:C<0?Math.floor(C):Math.ceil(C),contextInstructions:w};(u[0]!=1||u[1]!=1)&&w.push("scale",u),s&&(w.push("strokeStyle",o.strokeStyle),w.push("lineWidth",f),w.push("lineCap",o.lineCap),w.push("lineJoin",o.lineJoin),w.push("miterLimit",o.miterLimit),w.push("setLineDash",[o.lineDash]),w.push("lineDashOffset",o.lineDashOffset)),i&&w.push("fillStyle",a.fillStyle),w.push("textBaseline","middle"),w.push("textAlign","center");const T=.5-d;let A=d*E+T*f;const I=[],V=[];let Y=0,ne=0,N=0,B=0,R;for(let z=0,X=g.length;ze?e-c:r,w=o+u>n?n-u:o,b=p[3]+E*f[0]+p[1],C=p[0]+w*f[1]+p[2],k=y-p[3],T=x-p[0];(m||d!==0)&&(Rr[0]=k,$r[0]=k,Rr[1]=T,Gs[1]=T,Gs[0]=k+b,Xs[0]=Gs[0],Xs[1]=T+C,$r[1]=Xs[1]);let A;return d!==0?(A=br(hs(),i,s,1,1,d,-i,-s),On(A,Rr),On(A,Gs),On(A,Xs),On(A,$r),uo(Math.min(Rr[0],Gs[0],Xs[0],$r[0]),Math.min(Rr[1],Gs[1],Xs[1],$r[1]),Math.max(Rr[0],Gs[0],Xs[0],$r[0]),Math.max(Rr[1],Gs[1],Xs[1],$r[1]),Ka)):uo(Math.min(k,k+b),Math.min(T,T+C),Math.max(k,k+b),Math.max(T,T+C),Ka),g&&(y=Math.round(y),x=Math.round(x)),{drawImageX:y,drawImageY:x,drawImageW:E,drawImageH:w,originX:c,originY:u,declutterBox:{minX:Ka[0],minY:Ka[1],maxX:Ka[2],maxY:Ka[3],value:v},canvasTransform:A,scale:f}}replayImageOrLabel_(e,n,i,s,r,o,a){const l=!!(o||a),c=s.declutterBox,u=a?a[2]*s.scale[0]/2:0;return c.minX-u<=n[0]&&c.maxX+u>=0&&c.minY-u<=n[1]&&c.maxY+u>=0&&(l&&this.replayTextBackground_(e,Rr,Gs,Xs,$r,o,a),xie(e,s.canvasTransform,r,i,s.originX,s.originY,s.drawImageW,s.drawImageH,s.drawImageX,s.drawImageY,s.scale)),!0}fill_(e){const n=this.alignAndScaleFill_;if(n){const i=On(this.renderedTransform_,[0,0]),s=512*this.pixelRatio;e.save(),e.translate(i[0]%s,i[1]%s),n!==1&&e.scale(n,n),e.rotate(this.viewRotation_)}e.fill(),n&&e.restore()}setStrokeStyle_(e,n){e.strokeStyle=n[1],e.lineWidth=n[2],e.lineCap=n[3],e.lineJoin=n[4],e.miterLimit=n[5],e.lineDashOffset=n[7],e.setLineDash(n[6])}drawLabelWithPointPlacement_(e,n,i,s){const r=this.textStates[n],o=this.createLabel(e,n,s,i),a=this.strokeStates[i],l=this.pixelRatio,c=Mp(Array.isArray(e)?e[0]:e,r.textAlign||Pu),u=Qh[r.textBaseline||jh],d=a&&a.lineWidth?a.lineWidth:0,f=o.width/l-2*r.scale[0],g=c*f+2*(.5-c)*d,p=u*o.height/l+2*(.5-u)*d;return{label:o,anchorX:g,anchorY:p}}execute_(e,n,i,s,r,o,a,l){const c=this.zIndexContext_;let u;this.pixelCoordinates_&&So(i,this.renderedTransform_)?u=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),u=io(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),Ene(this.renderedTransform_,i));let d=0;const f=s.length;let g=0,p,m,v,y,x,E,w,b,C,k,T,A,I,V=0,Y=0,ne=null,N=null;const B=this.coordinateCache_,R=this.viewRotation_,z=Math.round(Math.atan2(-i[1],i[0])*1e12)/1e12,X={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:R},J=this.instructions!=s||this.overlaps?0:200;let H,ce,ie,te;for(;dJ&&(this.fill_(e),V=0),Y>J&&(e.stroke(),Y=0),!V&&!Y&&(e.beginPath(),x=NaN,E=NaN),++d;break;case Ue.CIRCLE:g=D[1];const ue=u[g],L=u[g+1],le=u[g+2],de=u[g+3],xe=le-ue,W=de-L,fe=Math.sqrt(xe*xe+W*W);e.moveTo(ue+fe,L),e.arc(ue,L,fe,0,2*Math.PI,!0),++d;break;case Ue.CLOSE_PATH:e.closePath(),++d;break;case Ue.CUSTOM:g=D[1],p=D[2];const S=D[3],O=D[4],K=D[5];X.geometry=S,X.feature=H,d in B||(B[d]=[]);const U=B[d];K?K(u,g,p,2,U):(U[0]=u[g],U[1]=u[g+1],U.length=2),c&&(c.zIndex=D[6]),O(U,X),++d;break;case Ue.DRAW_IMAGE:g=D[1],p=D[2],C=D[3],m=D[4],v=D[5];let oe=D[6];const j=D[7],se=D[8],Q=D[9],ge=D[10];let be=D[11];const we=D[12];let Pe=D[13];y=D[14]||"declutter";const De=D[15];if(!C&&D.length>=20){k=D[19],T=D[20],A=D[21],I=D[22];const mn=this.drawLabelWithPointPlacement_(k,T,A,I);C=mn.label,D[3]=C;const Cn=D[23];m=(mn.anchorX-Cn)*this.pixelRatio,D[4]=m;const Sn=D[24];v=(mn.anchorY-Sn)*this.pixelRatio,D[5]=v,oe=C.height,D[6]=oe,Pe=C.width,D[13]=Pe}let We;D.length>25&&(We=D[25]);let je,nt,et;D.length>17?(je=D[16],nt=D[17],et=D[18]):(je=Jo,nt=!1,et=!1),ge&&z?be+=R:!ge&&!z&&(be-=R);let Jt=0;for(;g!pA.includes(t));class Yre{constructor(e,n,i,s,r,o,a){this.maxExtent_=e,this.overlaps_=s,this.pixelRatio_=i,this.resolution_=n,this.renderBuffer_=o,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=hs(),this.renderedContext_=null,this.deferredZIndexContexts_={},this.createExecutors_(r,a)}clip(e,n){const i=this.getClipCoords(n);e.beginPath(),e.moveTo(i[0],i[1]),e.lineTo(i[2],i[3]),e.lineTo(i[4],i[5]),e.lineTo(i[6],i[7]),e.clip()}createExecutors_(e,n){for(const i in e){let s=this.executorsByZIndex_[i];s===void 0&&(s={},this.executorsByZIndex_[i]=s);const r=e[i];for(const o in r){const a=r[o];s[o]=new zre(this.resolution_,this.pixelRatio_,this.overlaps_,a,n)}}}hasExecutors(e){for(const n in this.executorsByZIndex_){const i=this.executorsByZIndex_[n];for(let s=0,r=e.length;s0){if(!o||k==="none"||g!=="Image"&&g!=="Text"||o.includes(b)){const V=(f[A]-3)/4,Y=s-V%a,ne=s-(V/a|0),N=r(b,C,Y*Y+ne*ne);if(N)return N}u.clearRect(0,0,a,a);break}}const m=Object.keys(this.executorsByZIndex_).map(Number);m.sort(hr);let v,y,x,E,w;for(v=m.length-1;v>=0;--v){const b=m[v].toString();for(x=this.executorsByZIndex_[b],y=sl.length-1;y>=0;--y)if(g=sl[y],E=x[g],E!==void 0&&(w=E.executeHitDetection(u,l,i,p,d),w))return w}}getClipCoords(e){const n=this.maxExtent_;if(!n)return null;const i=n[0],s=n[1],r=n[2],o=n[3],a=[i,s,i,o,r,o,r,s];return io(a,0,8,2,e,a),a}isEmpty(){return Vl(this.executorsByZIndex_)}execute(e,n,i,s,r,o,a){const l=Object.keys(this.executorsByZIndex_).map(Number);l.sort(hr),o=o||sl;const c=sl.length;let u,d,f,g,p;for(a&&l.reverse(),u=0,d=l.length;uy.execute(b,n,i,s,r,a)),w&&E.restore(),x){x.offset();const b=l[u]*c+f;this.deferredZIndexContexts_[b]||(this.deferredZIndexContexts_[b]=[]),this.deferredZIndexContexts_[b].push(x)}}}}this.renderedContext_=e}getDeferredZIndexContexts(){return this.deferredZIndexContexts_}getRenderedContext(){return this.renderedContext_}renderDeferred(){const e=this.deferredZIndexContexts_,n=Object.keys(e).map(Number).sort(hr);for(let i=0,s=n.length;i{r.draw(this.renderedContext_),r.clear()}),e[n[i]].length=0}}const Ip={};function Hre(t){if(Ip[t]!==void 0)return Ip[t];const e=t*2+1,n=t*t,i=new Array(n+1);for(let r=0;r<=t;++r)for(let o=0;o<=t;++o){const a=r*r+o*o;if(a>n)break;let l=i[a];l||(l=[],i[a]=l),l.push(((t+r)*e+(t+o))*4+3),r>0&&l.push(((t-r)*e+(t+o))*4+3),o>0&&(l.push(((t+r)*e+(t-o))*4+3),r>0&&l.push(((t-r)*e+(t-o))*4+3))}const s=[];for(let r=0,o=i.length;rd*this.pixelRatio_),lineDashOffset:(o||gr)*this.pixelRatio_,lineJoin:a!==void 0?a:Hl,lineWidth:(l!==void 0?l:Mu)*this.pixelRatio_,miterLimit:c!==void 0?c:Tu,strokeStyle:Ds(i||Au)}}}setImageStyle(e){let n;if(!e||!(n=e.getSize())){this.image_=null;return}const i=e.getPixelRatio(this.pixelRatio_),s=e.getAnchor(),r=e.getOrigin();this.image_=e.getImage(this.pixelRatio_),this.imageAnchorX_=s[0]*i,this.imageAnchorY_=s[1]*i,this.imageHeight_=n[1]*i,this.imageOpacity_=e.getOpacity(),this.imageOriginX_=r[0],this.imageOriginY_=r[1],this.imageRotateWithView_=e.getRotateWithView(),this.imageRotation_=e.getRotation();const o=e.getScaleArray();this.imageScale_=[o[0]*this.pixelRatio_/i,o[1]*this.pixelRatio_/i],this.imageWidth_=n[0]*i}setTextStyle(e){if(!e)this.text_="";else{const n=e.getFill();if(!n)this.textFillState_=null;else{const g=n.getColor();this.textFillState_={fillStyle:Ds(g||pi)}}const i=e.getStroke();if(!i)this.textStrokeState_=null;else{const g=i.getColor(),p=i.getLineCap(),m=i.getLineDash(),v=i.getLineDashOffset(),y=i.getLineJoin(),x=i.getWidth(),E=i.getMiterLimit();this.textStrokeState_={lineCap:p!==void 0?p:Yl,lineDash:m||fr,lineDashOffset:v||gr,lineJoin:y!==void 0?y:Hl,lineWidth:x!==void 0?x:Mu,miterLimit:E!==void 0?E:Tu,strokeStyle:Ds(g||Au)}}const s=e.getFont(),r=e.getOffsetX(),o=e.getOffsetY(),a=e.getRotateWithView(),l=e.getRotation(),c=e.getScaleArray(),u=e.getText(),d=e.getTextAlign(),f=e.getTextBaseline();this.textState_={font:s!==void 0?s:FT,textAlign:d!==void 0?d:Pu,textBaseline:f!==void 0?f:jh},this.text_=u!==void 0?Array.isArray(u)?u.reduce((g,p,m)=>g+=m%2?" ":p,""):u:"",this.textOffsetX_=r!==void 0?this.pixelRatio_*r:0,this.textOffsetY_=o!==void 0?this.pixelRatio_*o:0,this.textRotateWithView_=a!==void 0?a:!1,this.textRotation_=l!==void 0?l:0,this.textScale_=[this.pixelRatio_*c[0],this.pixelRatio_*c[1]]}}}const Ts=.5;function Kre(t,e,n,i,s,r,o,a,l){const c=s,u=t[0]*Ts,d=t[1]*Ts,f=hn(u,d);f.imageSmoothingEnabled=!1;const g=f.canvas,p=new jre(f,Ts,s,null,o,a,null),m=n.length,v=Math.floor((256*256*256-1)/m),y={};for(let E=1;E<=m;++E){const w=n[E-1],b=w.getStyleFunction()||i;if(!b)continue;let C=b(w,r);if(!C)continue;Array.isArray(C)||(C=[C]);const T=(E*v).toString(16).padStart(7,"#00000");for(let A=0,I=C.length;A0;return d&&Promise.all(l).then(()=>s(null)),Zre(t,e,n,i,r,o,a),d}function Zre(t,e,n,i,s,r,o){const a=n.getGeometryFunction()(e);if(!a)return;const l=a.simplifyTransformed(i,s);if(n.getRenderer())vA(t,l,n,e,o);else{const u=mA[l.getType()];u(t,l,n,e,o,r)}}function vA(t,e,n,i,s){if(e.getType()=="GeometryCollection"){const o=e.getGeometries();for(let a=0,l=o.length;a{if(this.frameState&&!this.hitDetectionImageData_&&!this.animatingOrInteracting_){const i=this.frameState.size.slice(),s=this.renderedCenter_,r=this.renderedResolution_,o=this.renderedRotation_,a=this.renderedProjection_,l=this.wrappedRenderedExtent_,c=this.getLayer(),u=[],d=i[0]*Ts,f=i[1]*Ts;u.push(this.getRenderTransform(s,r,o,Ts,d,f,0).slice());const g=c.getSource(),p=a.getExtent();if(g.getWrapX()&&a.canWrapX()&&!il(p,l)){let m=l[0];const v=yt(p);let y=0,x;for(;mp[2];)++y,x=v*y,u.push(this.getRenderTransform(s,r,o,Ts,d,f,x).slice()),m-=v}this.hitDetectionImageData_=Kre(i,u,this.renderedFeatures_,c.getStyleFunction(),l,r,o,Qw(r,this.renderedPixelRatio_))}n(Ure(e,this.renderedFeatures_,this.hitDetectionImageData_))})}forEachFeatureAtCoordinate(e,n,i,s,r){if(!this.replayGroup_)return;const o=n.viewState.resolution,a=n.viewState.rotation,l=this.getLayer(),c={},u=function(p,m,v){const y=Et(p),x=c[y];if(x){if(x!==!0&&vd=p.forEachFeatureAtCoordinate(e,o,a,i,u,g&&n.declutter[g]?n.declutter[g].all().map(m=>m.value):null)),d}handleFontsChanged(){const e=this.getLayer();e.getVisible()&&this.replayGroup_&&e.changed()}handleStyleImageChange_(e){this.renderIfReadyAndVisible()}prepareFrame(e){const n=this.getLayer(),i=n.getSource();if(!i)return!1;const s=e.viewHints[Hn.ANIMATING],r=e.viewHints[Hn.INTERACTING],o=n.getUpdateWhileAnimating(),a=n.getUpdateWhileInteracting();if(this.ready&&!o&&s||!a&&r)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;const l=e.extent,c=e.viewState,u=c.projection,d=c.resolution,f=e.pixelRatio,g=n.getRevision(),p=n.getRenderBuffer();let m=n.getRenderOrder();m===void 0&&(m=Xre);const v=c.center.slice(),y=yv(l,p*d),x=y.slice(),E=[y.slice()],w=u.getExtent();if(i.getWrapX()&&u.canWrapX()&&!il(w,e.extent)){const N=yt(w),B=Math.max(yt(y)/2,N);y[0]=w[0]-B,y[2]=w[2]+B,gT(v,u);const R=fT(E[0],u);R[0]w[0]&&R[2]>w[2]&&E.push([R[0]-N,R[1],R[2]-N,R[3]])}if(this.ready&&this.renderedResolution_==d&&this.renderedRevision_==g&&this.renderedRenderOrder_==m&&this.renderedFrameDeclutter_===!!e.declutter&&il(this.wrappedRenderedExtent_,y))return So(this.renderedExtent_,x)||(this.hitDetectionImageData_=null,this.renderedExtent_=x),this.renderedCenter_=v,this.replayGroupChanged=!1,!0;this.replayGroup_=null;const b=new Fre(_A(d,f),y,d,f);let C;for(let N=0,B=E.length;N{let R;const z=N.getStyleFunction()||n.getStyleFunction();if(z&&(R=z(N,d)),R){const X=this.renderFeature(N,k,R,b,C,this.getLayer().getDeclutter(),B);T=T&&!X}},I=yT(y),V=i.getFeaturesInExtent(I);m&&V.sort(m);for(let N=0,B=V.length;N{if(e===this.squaredTolerance_)return this.simplifiedGeometry_;this.simplifiedGeometry_=this.clone(),n&&this.simplifiedGeometry_.applyTransform(n);const i=this.simplifiedGeometry_.getFlatCoordinates();let s;switch(this.type_){case"LineString":i.length=Xf(i,0,this.simplifiedGeometry_.flatCoordinates_.length,this.simplifiedGeometry_.stride_,e,i,0),s=[i.length];break;case"MultiLineString":s=[],i.length=Lne(i,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,e,i,0,s);break;case"Polygon":s=[],i.length=ET(i,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,Math.sqrt(e),i,0,s);break}return s&&(this.simplifiedGeometry_=new ss(this.type_,i,s,2,this.properties_,this.id_)),this.squaredTolerance_=e,this.simplifiedGeometry_}),this}}ss.prototype.getFlatCoordinates=ss.prototype.getOrientedFlatCoordinates;const Vi={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"};function loe(t,e){return[[-1/0,-1/0,1/0,1/0]]}let coe=!1;function uoe(t,e,n,i,s,r,o){const a=new XMLHttpRequest;a.open("GET",typeof t=="function"?t(n,i,s):t,!0),e.getType()=="arraybuffer"&&(a.responseType="arraybuffer"),a.withCredentials=coe,a.onload=function(l){if(!a.status||a.status>=200&&a.status<300){const c=e.getType();try{let u;c=="text"||c=="json"?u=a.responseText:c=="xml"?u=a.responseXML||a.responseText:c=="arraybuffer"&&(u=a.response),u?r(e.readFeatures(u,{extent:n,featureProjection:s}),e.readProjection(u)):o()}catch{o()}}else o()},a.onerror=o,a.send()}function ix(t,e){return function(n,i,s,r,o){const a=this;uoe(t,e,n,i,s,function(l,c){a.addFeatures(l),r!==void 0&&r(l)},o||Bl)}}class Lr extends Er{constructor(e,n,i){super(e),this.feature=n,this.features=i}}class doe extends aA{constructor(e){e=e||{},super({attributions:e.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:e.wrapX!==void 0?e.wrapX:!0}),this.on,this.once,this.un,this.loader_=Bl,this.format_=e.format||null,this.overlaps_=e.overlaps===void 0?!0:e.overlaps,this.url_=e.url,e.loader!==void 0?this.loader_=e.loader:this.url_!==void 0&&(mt(this.format_,"`format` must be set when `url` is set"),this.loader_=ix(this.url_,this.format_)),this.strategy_=e.strategy!==void 0?e.strategy:loe;const n=e.useSpatialIndex!==void 0?e.useSpatialIndex:!0;this.featuresRtree_=n?new tx:null,this.loadedExtentsRtree_=new tx,this.loadingExtentsCount_=0,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null;let i,s;Array.isArray(e.features)?s=e.features:e.features&&(i=e.features,s=i.getArray()),!n&&i===void 0&&(i=new Ms(s)),s!==void 0&&this.addFeaturesInternal(s),i!==void 0&&this.bindFeaturesCollection_(i)}addFeature(e){this.addFeatureInternal(e),this.changed()}addFeatureInternal(e){const n=Et(e);if(!this.addToIndex_(n,e)){this.featuresCollection_&&this.featuresCollection_.remove(e);return}this.setupChangeEvents_(n,e);const i=e.getGeometry();if(i){const s=i.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(s,e)}else this.nullGeometryFeatures_[n]=e;this.dispatchEvent(new Lr(Vi.ADDFEATURE,e))}setupChangeEvents_(e,n){n instanceof ss||(this.featureChangeKeys_[e]=[ft(n,tt.CHANGE,this.handleFeatureChange_,this),ft(n,Fl.PROPERTYCHANGE,this.handleFeatureChange_,this)])}addToIndex_(e,n){let i=!0;if(n.getId()!==void 0){const s=String(n.getId());if(!(s in this.idIndex_))this.idIndex_[s]=n;else if(n instanceof ss){const r=this.idIndex_[s];r instanceof ss?Array.isArray(r)?r.push(n):this.idIndex_[s]=[r,n]:i=!1}else i=!1}return i&&(mt(!(e in this.uidIndex_),"The passed `feature` was already added to the source"),this.uidIndex_[e]=n),i}addFeatures(e){this.addFeaturesInternal(e),this.changed()}addFeaturesInternal(e){const n=[],i=[],s=[];for(let r=0,o=e.length;r{n||(n=!0,this.addFeature(i.element),n=!1)}),e.addEventListener(gi.REMOVE,i=>{n||(n=!0,this.removeFeature(i.element),n=!1)}),this.featuresCollection_=e}clear(e){if(e){for(const i in this.featureChangeKeys_)this.featureChangeKeys_[i].forEach(Lt);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){const i=s=>{this.removeFeatureInternal(s)};this.featuresRtree_.forEach(i);for(const s in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[s])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};const n=new Lr(Vi.CLEAR);this.dispatchEvent(n),this.changed()}forEachFeature(e){if(this.featuresRtree_)return this.featuresRtree_.forEach(e);this.featuresCollection_&&this.featuresCollection_.forEach(e)}forEachFeatureAtCoordinateDirect(e,n){const i=[e[0],e[1],e[0],e[1]];return this.forEachFeatureInExtent(i,function(s){const r=s.getGeometry();if(r instanceof ss||r.intersectsCoordinate(e))return n(s)})}forEachFeatureInExtent(e,n){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(e,n);this.featuresCollection_&&this.featuresCollection_.forEach(n)}forEachFeatureIntersectingExtent(e,n){return this.forEachFeatureInExtent(e,function(i){const s=i.getGeometry();if(s instanceof ss||s.intersectsExtent(e)){const r=n(i);if(r)return r}})}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let e;return this.featuresCollection_?e=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(e=this.featuresRtree_.getAll(),Vl(this.nullGeometryFeatures_)||Vf(e,Object.values(this.nullGeometryFeatures_))),e}getFeaturesAtCoordinate(e){const n=[];return this.forEachFeatureAtCoordinateDirect(e,function(i){n.push(i)}),n}getFeaturesInExtent(e,n){if(this.featuresRtree_){if(!(n&&n.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(e);const s=xv(e,n);return[].concat(...s.map(r=>this.featuresRtree_.getInExtent(r)))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(e,n){const i=e[0],s=e[1];let r=null;const o=[NaN,NaN];let a=1/0;const l=[-1/0,-1/0,1/0,1/0];return n=n||yu,this.featuresRtree_.forEachInExtent(l,function(c){if(n(c)){const u=c.getGeometry(),d=a;if(a=u instanceof ss?0:u.closestPointXY(i,s,o,a),a{--this.loadingExtentsCount_,this.dispatchEvent(new Lr(Vi.FEATURESLOADEND,void 0,u))},()=>{--this.loadingExtentsCount_,this.dispatchEvent(new Lr(Vi.FEATURESLOADERROR))}),s.insert(l,{extent:l.slice()}))}this.loading=this.loader_.length<4?!1:this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(e){const n=this.loadedExtentsRtree_;let i;n.forEachInExtent(e,function(s){if(bu(s.extent,e))return i=s,!0}),i&&n.remove(i)}removeFeatures(e){let n=!1;for(let i=0,s=e.length;ie.geo&&e.geo.lat&&e.geo.lon);return t?[t.geo.lon,t.geo.lat]:[0,0]}return[this.d.geo.lon,this.d.geo.lat]}},async mounted(){await fetch("https://tile.openstreetmap.org/",{signal:AbortSignal.timeout(1500)}).then(t=>{const e=new Wse({target:"map",layers:[new Pre({source:new mre})],view:new ks({center:hp(this.getLastLonLat()),zoom:this.type==="traceroute"?3:10})}),n=[],i=new doe;if(this.type==="traceroute")console.log(this.getLastLonLat()),this.d.forEach(a=>{if(a.geo&&a.geo.lat&&a.geo.lon){const l=hp([a.geo.lon,a.geo.lat]);n.push(l);const c=this.getLastLonLat();console.log(a.geo.lon,a.geo.lat),console.log(a.geo.lon===c[0]&&a.geo.lat===c[1]);const u=new Jc({geometry:new Eu(l),last:a.geo.lon===c[0]&&a.geo.lat===c[1]});i.addFeature(u)}});else{const a=hp([this.d.geo.lon,this.d.geo.lat]);n.push(a);const l=new Jc({geometry:new Eu(a)});i.addFeature(l)}const s=new Jh(n),r=new Jc({geometry:s});i.addFeature(r);const o=new ooe({source:i,style:function(a){if(a.getGeometry().getType()==="Point")return new pr({image:new Qu({radius:10,fill:new Zl({color:a.get("last")?"#dc3545":"#0d6efd"}),stroke:new jl({color:"white",width:5})})});if(a.getGeometry().getType()==="LineString")return new pr({stroke:new jl({color:"#0d6efd",width:2})})}});e.addLayer(o),this.store.Configuration.Server.dashboard_theme==="dark"&&e.on("postcompose",function(a){document.querySelector("#map").style.filter="grayscale(80%) invert(100%) "})}).catch(t=>{this.osmAvailable=!1})}},foe={key:0,id:"map",class:"w-100 rounded-3"};function goe(t,e,n,i,s,r){return this.osmAvailable?(P(),F("div",foe)):re("",!0)}const yA=He(hoe,[["render",goe]]),poe={name:"ping",components:{OSMap:yA,LocaleText:Le},data(){return{loading:!1,cips:{},selectedConfiguration:void 0,selectedPeer:void 0,selectedIp:void 0,count:4,pingResult:void 0,pinging:!1}},setup(){return{store:Xe()}},mounted(){Pt("/api/ping/getAllPeersIpAddress",{},t=>{t.status&&(this.loading=!0,this.cips=t.data,console.log(this.cips))})},methods:{execute(){this.selectedIp&&(this.pinging=!0,this.pingResult=void 0,Pt("/api/ping/execute",{ipAddress:this.selectedIp,count:this.count},t=>{t.status?this.pingResult=t.data:this.store.newMessage("Server",t.message,"danger"),this.pinging=!1}))}},watch:{selectedConfiguration(){this.selectedPeer=void 0,this.selectedIp=void 0},selectedPeer(){this.selectedIp=void 0}}},moe={class:"mt-md-5 mt-3 text-body"},_oe={class:"container"},voe={class:"row"},yoe={class:"col-sm-4 d-flex gap-2 flex-column"},boe={class:"mb-1 text-muted",for:"configuration"},woe=["disabled"],xoe=["value"],Eoe={class:"mb-1 text-muted",for:"peer"},Coe=["disabled"],Soe=["value"],koe={class:"mb-1 text-muted",for:"ip"},Toe=["disabled"],Aoe={class:"d-flex align-items-center gap-2"},Poe={class:"text-muted"},Moe={class:"mb-1 text-muted",for:"ipAddress"},Ioe=["disabled"],Doe={class:"mb-1 text-muted",for:"count"},Roe={class:"d-flex gap-3 align-items-center"},$oe=["disabled"],Loe=["disabled"],Ooe={key:0,class:"d-block"},Noe={key:1,class:"d-block"},Foe={class:"col-sm-8 position-relative"},Boe={key:"pingPlaceholder"},Voe={key:"pingResult",class:"d-flex flex-column gap-2 w-100"},zoe={class:"card rounded-3 bg-transparent shadow-sm animate__animated animate__fadeIn",style:{"animation-delay":"0.15s"}},Woe={class:"card-body row"},Yoe={class:"col-sm"},Hoe={class:"mb-0 text-muted"},joe={key:0,class:"col-sm"},Koe={class:"mb-0 text-muted"},Uoe={class:"card rounded-3 bg-transparent shadow-sm animate__animated animate__fadeIn",style:{"animation-delay":"0.3s"}},Goe={class:"card-body"},Xoe={class:"card rounded-3 bg-transparent shadow-sm animate__animated animate__fadeIn",style:{"animation-delay":"0.45s"}},qoe={class:"card-body"},Zoe={class:"mb-0 text-muted"},Joe={class:"card rounded-3 bg-transparent shadow-sm animate__animated animate__fadeIn",style:{"animation-delay":"0.6s"}},Qoe={class:"card-body"},eae={class:"mb-0 text-muted"};function tae(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("OSMap");return P(),F("div",moe,[h("div",_oe,[e[19]||(e[19]=h("h3",{class:"mb-3 text-body"},"Ping",-1)),h("div",voe,[h("div",yoe,[h("div",null,[h("label",boe,[h("small",null,[$(o,{t:"Configuration"})])]),Re(h("select",{class:"form-select","onUpdate:modelValue":e[0]||(e[0]=l=>this.selectedConfiguration=l),disabled:this.pinging},[e[7]||(e[7]=h("option",{disabled:"",selected:"",value:void 0},null,-1)),(P(!0),F(Ie,null,Ge(this.cips,(l,c)=>(P(),F("option",{value:c},pe(c),9,xoe))),256))],8,woe),[[ch,this.selectedConfiguration]])]),h("div",null,[h("label",Eoe,[h("small",null,[$(o,{t:"Peer"})])]),Re(h("select",{id:"peer",class:"form-select","onUpdate:modelValue":e[1]||(e[1]=l=>this.selectedPeer=l),disabled:this.selectedConfiguration===void 0||this.pinging},[e[8]||(e[8]=h("option",{disabled:"",selected:"",value:void 0},null,-1)),this.selectedConfiguration!==void 0?(P(!0),F(Ie,{key:0},Ge(this.cips[this.selectedConfiguration],(l,c)=>(P(),F("option",{value:c},pe(c),9,Soe))),256)):re("",!0)],8,Coe),[[ch,this.selectedPeer]])]),h("div",null,[h("label",koe,[h("small",null,[$(o,{t:"IP Address"})])]),Re(h("select",{id:"ip",class:"form-select","onUpdate:modelValue":e[2]||(e[2]=l=>this.selectedIp=l),disabled:this.selectedPeer===void 0||this.pinging},[e[9]||(e[9]=h("option",{disabled:"",selected:"",value:void 0},null,-1)),this.selectedPeer!==void 0?(P(!0),F(Ie,{key:0},Ge(this.cips[this.selectedConfiguration][this.selectedPeer].allowed_ips,l=>(P(),F("option",null,pe(l),1))),256)):re("",!0)],8,Toe),[[ch,this.selectedIp]])]),h("div",Aoe,[e[10]||(e[10]=h("div",{class:"flex-grow-1 border-top"},null,-1)),h("small",Poe,[$(o,{t:"OR"})]),e[11]||(e[11]=h("div",{class:"flex-grow-1 border-top"},null,-1))]),h("div",null,[h("label",Moe,[h("small",null,[$(o,{t:"Enter IP Address / Hostname"})])]),Re(h("input",{class:"form-control",type:"text",id:"ipAddress",disabled:this.pinging,"onUpdate:modelValue":e[3]||(e[3]=l=>this.selectedIp=l)},null,8,Ioe),[[ze,this.selectedIp]])]),e[16]||(e[16]=h("div",{class:"w-100 border-top my-2"},null,-1)),h("div",null,[h("label",Doe,[h("small",null,[$(o,{t:"Count"})])]),h("div",Roe,[h("button",{onClick:e[4]||(e[4]=l=>this.count--),disabled:this.count===1,class:"btn btn-sm bg-secondary-subtle text-secondary-emphasis"},e[12]||(e[12]=[h("i",{class:"bi bi-dash-lg"},null,-1)]),8,$oe),h("strong",null,pe(this.count),1),h("button",{role:"button",onClick:e[5]||(e[5]=l=>this.count++),class:"btn btn-sm bg-secondary-subtle text-secondary-emphasis"},e[13]||(e[13]=[h("i",{class:"bi bi-plus-lg"},null,-1)]))])]),h("button",{class:"btn btn-primary rounded-3 mt-3 position-relative",disabled:!this.selectedIp||this.pinging,onClick:e[6]||(e[6]=l=>this.execute())},[$(xt,{name:"slide"},{default:Me(()=>[this.pinging?(P(),F("span",Noe,e[15]||(e[15]=[h("span",{class:"spinner-border spinner-border-sm","aria-hidden":"true"},null,-1),h("span",{class:"visually-hidden",role:"status"},"Loading...",-1)]))):(P(),F("span",Ooe,e[14]||(e[14]=[h("i",{class:"bi bi-person-walking me-2"},null,-1),Fe("Ping! ")])))]),_:1})],8,Loe)]),h("div",Foe,[$(xt,{name:"ping"},{default:Me(()=>[this.pingResult?(P(),F("div",Voe,[this.pingResult.geo&&this.pingResult.geo.status==="success"?(P(),Ee(a,{key:0,d:this.pingResult},null,8,["d"])):re("",!0),h("div",zoe,[h("div",Woe,[h("div",Yoe,[h("p",Hoe,[h("small",null,[$(o,{t:"IP Address"})])]),Fe(" "+pe(this.pingResult.address),1)]),this.pingResult.geo&&this.pingResult.geo.status==="success"?(P(),F("div",joe,[h("p",Koe,[h("small",null,[$(o,{t:"Geolocation"})])]),Fe(" "+pe(this.pingResult.geo.city)+", "+pe(this.pingResult.geo.country),1)])):re("",!0)])]),h("div",Uoe,[h("div",Goe,[e[18]||(e[18]=h("p",{class:"mb-0 text-muted"},[h("small",null,"Is Alive")],-1)),h("span",{class:Se([this.pingResult.is_alive?"text-success":"text-danger"])},[h("i",{class:Se(["bi me-1",[this.pingResult.is_alive?"bi-check-circle-fill":"bi-x-circle-fill"]])},null,2),Fe(" "+pe(this.pingResult.is_alive?"Yes":"No"),1)],2)])]),h("div",Xoe,[h("div",qoe,[h("p",Zoe,[h("small",null,[$(o,{t:"Average / Min / Max Round Trip Time"})])]),h("samp",null,pe(this.pingResult.avg_rtt)+"ms / "+pe(this.pingResult.min_rtt)+"ms / "+pe(this.pingResult.max_rtt)+"ms ",1)])]),h("div",Joe,[h("div",Qoe,[h("p",eae,[h("small",null,[$(o,{t:"Sent / Received / Lost Package"})])]),h("samp",null,pe(this.pingResult.package_sent)+" / "+pe(this.pingResult.package_received)+" / "+pe(this.pingResult.package_loss),1)])])])):(P(),F("div",Boe,[e[17]||(e[17]=h("div",{class:"pingPlaceholder bg-body-secondary rounded-3 mb-3",style:{height:"300px"}},null,-1)),(P(),F(Ie,null,Ge(4,l=>h("div",{class:Se(["pingPlaceholder bg-body-secondary rounded-3 mb-3",{"animate__animated animate__flash animate__slower animate__infinite":this.pinging}]),style:Mn({"animation-delay":`${l*.15}s`})},null,6)),64))]))]),_:1})])])])])}const nae=He(poe,[["render",tae],["__scopeId","data-v-f5cd36ce"]]),iae={name:"traceroute",components:{LocaleText:Le,OSMap:yA},data(){return{tracing:!1,ipAddress:void 0,tracerouteResult:void 0}},setup(){return{store:$n()}},methods:{execute(){this.ipAddress&&(this.tracing=!0,this.tracerouteResult=void 0,Pt("/api/traceroute/execute",{ipAddress:this.ipAddress},t=>{t.status?this.tracerouteResult=t.data:this.store.newMessage("Server",t.message,"danger"),this.tracing=!1}))}}},sae={class:"mt-md-5 mt-3 text-body"},rae={class:"container-md"},oae={class:"mb-3 text-body"},aae={class:"d-flex gap-2 flex-column mb-5"},lae={class:"mb-1 text-muted",for:"ipAddress"},cae=["disabled"],uae=["disabled"],dae={key:0,class:"d-block"},hae={key:1,class:"d-block"},fae={class:"position-relative"},gae={key:"pingPlaceholder"},pae={key:1},mae={key:"table",class:"w-100 mt-2"},_ae={class:"table table-sm rounded-3 w-100"},vae={scope:"col"},yae={scope:"col"},bae={scope:"col"},wae={scope:"col"},xae={scope:"col"},Eae={scope:"col"},Cae={key:0};function Sae(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("OSMap");return P(),F("div",sae,[h("div",rae,[h("h3",oae,[$(o,{t:"Traceroute"})]),h("div",aae,[h("div",null,[h("label",lae,[h("small",null,[$(o,{t:"Enter IP Address / Hostname"})])]),Re(h("input",{disabled:this.tracing,id:"ipAddress",class:"form-control","onUpdate:modelValue":e[0]||(e[0]=l=>this.ipAddress=l),onKeyup:e[1]||(e[1]=dC(l=>this.execute(),["enter"])),type:"text"},null,40,cae),[[ze,this.ipAddress]])]),h("button",{class:"btn btn-primary rounded-3 mt-3 position-relative",disabled:this.tracing||!this.ipAddress,onClick:e[2]||(e[2]=l=>this.execute())},[$(xt,{name:"slide"},{default:Me(()=>[this.tracing?(P(),F("span",hae,e[4]||(e[4]=[h("span",{class:"spinner-border spinner-border-sm","aria-hidden":"true"},null,-1),h("span",{class:"visually-hidden",role:"status"},"Loading...",-1)]))):(P(),F("span",dae,e[3]||(e[3]=[h("i",{class:"bi bi-person-walking me-2"},null,-1),Fe("Trace! ")])))]),_:1})],8,uae)]),h("div",fae,[$(xt,{name:"ping"},{default:Me(()=>[this.tracerouteResult?(P(),F("div",pae,[$(a,{d:this.tracerouteResult,type:"traceroute"},null,8,["d"]),h("div",mae,[h("table",_ae,[h("thead",null,[h("tr",null,[h("th",vae,[$(o,{t:"Hop"})]),h("th",yae,[$(o,{t:"IP Address"})]),h("th",bae,[$(o,{t:"Average RTT (ms)"})]),h("th",wae,[$(o,{t:"Min RTT (ms)"})]),h("th",xae,[$(o,{t:"Max RTT (ms)"})]),h("th",Eae,[$(o,{t:"Geolocation"})])])]),h("tbody",null,[(P(!0),F(Ie,null,Ge(this.tracerouteResult,(l,c)=>(P(),F("tr",null,[h("td",null,[h("small",null,pe(l.hop),1)]),h("td",null,[h("small",null,pe(l.ip),1)]),h("td",null,[h("small",null,pe(l.avg_rtt),1)]),h("td",null,[h("small",null,pe(l.min_rtt),1)]),h("td",null,[h("small",null,pe(l.max_rtt),1)]),h("td",null,[l.geo.city&&l.geo.country?(P(),F("span",Cae,[h("small",null,pe(l.geo.city)+", "+pe(l.geo.country),1)])):re("",!0)])]))),256))])])])])):(P(),F("div",gae,[e[5]||(e[5]=h("div",{class:"pingPlaceholder bg-body-secondary rounded-3 mb-3",style:{height:"300px !important"}},null,-1)),(P(),F(Ie,null,Ge(5,l=>h("div",{class:Se(["pingPlaceholder bg-body-secondary rounded-3 mb-3",{"animate__animated animate__flash animate__slower animate__infinite":this.tracing}]),style:Mn({"animation-delay":`${l*.05}s`})},null,6)),64))]))]),_:1})])])])}const kae=He(iae,[["render",Sae],["__scopeId","data-v-6d6cffc9"]]),Tae={name:"totp",components:{LocaleText:Le},async setup(){const t=Xe();let e="";return await Pt("/api/Welcome_GetTotpLink",{},n=>{n.status&&(e=n.data)}),{l:e,store:t}},mounted(){this.l&&wa.toCanvas(document.getElementById("qrcode"),this.l,function(t){})},data(){return{totp:"",totpInvalidMessage:"",verified:!1}},methods:{validateTotp(){}},watch:{totp(t){const e=document.querySelector("#totp");e.classList.remove("is-invalid","is-valid"),t.length===6&&(console.log(t),/[0-9]{6}/.test(t)?ht("/api/Welcome_VerifyTotpLink",{totp:t},n=>{n.status?(this.verified=!0,e.classList.add("is-valid"),this.$emit("verified")):(e.classList.add("is-invalid"),this.totpInvalidMessage="TOTP does not match.")}):(e.classList.add("is-invalid"),this.totpInvalidMessage="TOTP can only contain numbers"))}}},Aae=["data-bs-theme"],Pae={class:"m-auto text-body",style:{width:"500px"}},Mae={class:"d-flex flex-column"},Iae={class:"dashboardLogo display-4"},Dae={class:"mb-2"},Rae={class:"text-muted"},$ae={class:"p-3 bg-body-secondary rounded-3 border mb-3"},Lae={class:"text-muted mb-0"},Oae=["href"],Nae={style:{"line-break":"anywhere"}},Fae={for:"totp",class:"mb-2"},Bae={class:"text-muted"},Vae={class:"form-group mb-2"},zae=["disabled"],Wae={class:"invalid-feedback"},Yae={class:"valid-feedback"},Hae={class:"d-flex gap-3 mt-5 flex-column"};function jae(t,e,n,i,s,r){const o=Ce("LocaleText"),a=Ce("RouterLink");return P(),F("div",{class:"container-fluid login-container-fluid d-flex main pt-5 overflow-scroll","data-bs-theme":this.store.Configuration.Server.dashboard_theme},[h("div",Pae,[h("div",Mae,[h("div",null,[h("h1",Iae,[$(o,{t:"Multi-Factor Authentication (MFA)"})]),h("p",Dae,[h("small",Rae,[$(o,{t:"1. Please scan the following QR Code to generate TOTP with your choice of authenticator"})])]),e[1]||(e[1]=h("canvas",{id:"qrcode",class:"rounded-3 mb-2"},null,-1)),h("div",$ae,[h("p",Lae,[h("small",null,[$(o,{t:"Or you can click the link below:"})])]),h("a",{href:this.l},[h("code",Nae,pe(this.l),1)],8,Oae)]),h("label",Fae,[h("small",Bae,[$(o,{t:"2. Enter the TOTP generated by your authenticator to verify"})])]),h("div",Vae,[Re(h("input",{class:"form-control text-center totp",id:"totp",maxlength:"6",type:"text",inputmode:"numeric",autocomplete:"one-time-code","onUpdate:modelValue":e[0]||(e[0]=l=>this.totp=l),disabled:this.verified},null,8,zae),[[ze,this.totp]]),h("div",Wae,[$(o,{t:this.totpInvalidMessage},null,8,["t"])]),h("div",Yae,[$(o,{t:"TOTP verified!"})])])]),e[4]||(e[4]=h("hr",null,null,-1)),h("div",Hae,[this.verified?(P(),Ee(a,{key:1,to:"/",class:"btn btn-dark btn-lg d-flex btn-brand shadow align-items-center flex-grow-1 rounded-3"},{default:Me(()=>[$(o,{t:"Complete"}),e[3]||(e[3]=h("i",{class:"bi bi-chevron-right ms-auto"},null,-1))]),_:1})):(P(),Ee(a,{key:0,to:"/",class:"btn bg-secondary-subtle text-secondary-emphasis rounded-3 flex-grow-1 btn-lg border-1 border-secondary-subtle shadow d-flex"},{default:Me(()=>[$(o,{t:"I don't need MFA"}),e[2]||(e[2]=h("i",{class:"bi bi-chevron-right ms-auto"},null,-1))]),_:1}))])])])],8,Aae)}const Kae=He(Tae,[["render",jae]]),Uae={name:"share",components:{LocaleText:Le},async setup(){const t=zu(),e=me(!1),n=Xe(),i=me(""),s=me(void 0),r=me(new Blob);await Pt("/api/getDashboardTheme",{},a=>{i.value=a.data});const o=t.query.ShareID;return o===void 0||o.length===0?(s.value=void 0,e.value=!0):await Pt("/api/sharePeer/get",{ShareID:o},a=>{a.status?(s.value=a.data,r.value=new Blob([s.value.file],{type:"text/plain"})):s.value=void 0,e.value=!0}),{store:n,theme:i,peerConfiguration:s,blob:r}},mounted(){this.peerConfiguration&&wa.toCanvas(document.querySelector("#qrcode"),this.peerConfiguration.file,t=>{t&&console.error(t)})},methods:{download(){const t=new Blob([this.peerConfiguration.file],{type:"text/plain"}),e=URL.createObjectURL(t),n=`${this.peerConfiguration.fileName}.conf`,i=document.createElement("a");i.href=e,i.download=n,i.click()}},computed:{getBlob(){return URL.createObjectURL(this.blob)}}},Gae=["data-bs-theme"],Xae={class:"m-auto text-body",style:{width:"500px"}},qae={key:0,class:"text-center position-relative",style:{}},Zae={class:"position-absolute w-100 h-100 top-0 start-0 d-flex animate__animated animate__fadeInUp",style:{"animation-delay":"0.1s"}},Jae={class:"m-auto"},Qae={key:1,class:"d-flex align-items-center flex-column gap-3"},ele={class:"h1 dashboardLogo text-center animate__animated animate__fadeInUp"},tle={id:"qrcode",class:"rounded-3 shadow animate__animated animate__fadeInUp mb-3",ref:"qrcode"},nle={class:"text-muted animate__animated animate__fadeInUp mb-1",style:{"animation-delay":"0.2s"}},ile=["download","href"];function sle(t,e,n,i,s,r){const o=Ce("LocaleText");return P(),F("div",{class:"container-fluid login-container-fluid d-flex main pt-5 overflow-scroll","data-bs-theme":this.theme},[h("div",Xae,[this.peerConfiguration?(P(),F("div",Qae,[h("div",ele,[e[1]||(e[1]=h("h6",null,"WGDashboard",-1)),$(o,{t:"Scan QR Code with the WireGuard App to add peer"})]),h("canvas",tle,null,512),h("p",nle,[$(o,{t:"or click the button below to download the "}),e[2]||(e[2]=h("samp",null,".conf",-1)),$(o,{t:" file"})]),h("a",{download:this.peerConfiguration.fileName+".conf",href:r.getBlob,class:"btn btn-lg bg-primary-subtle text-primary-emphasis border-1 border-primary-subtle animate__animated animate__fadeInUp shadow-sm",style:{"animation-delay":"0.25s"}},e[3]||(e[3]=[h("i",{class:"bi bi-download"},null,-1)]),8,ile)])):(P(),F("div",qae,[e[0]||(e[0]=h("div",{class:"animate__animated animate__fadeInUp"},[h("h1",{style:{"font-size":"20rem",filter:"blur(1rem)","animation-duration":"7s"},class:"animate__animated animate__flash animate__infinite"},[h("i",{class:"bi bi-file-binary"})])],-1)),h("div",Zae,[h("h3",Jae,[$(o,{t:"Oh no... This link is either expired or invalid."})])])]))])],8,Gae)}const rle=He(Uae,[["render",sle],["__scopeId","data-v-1b44aacd"]]),ole={class:"card rounded-3 shadow-sm"},ale={class:"d-flex gap-3 align-items-center"},lle={class:"mb-0"},cle={class:"text-muted"},ule={key:0,class:"card-footer p-3 d-flex flex-column gap-2"},dle=["onClick","id"],hle={class:"card-body d-flex p-3 gap-3 align-items-center"},fle={__name:"backupGroup",props:{configurationName:String,backups:Array,open:!1,selectedConfigurationBackup:Object},emits:["select"],setup(t,{emit:e}){const n=t,i=e,s=me(n.open);return Vt(()=>{n.selectedConfigurationBackup&&document.querySelector(`#${n.selectedConfigurationBackup.filename.replace(".conf","")}`).scrollIntoView({behavior:"smooth"})}),(r,o)=>(P(),F("div",ole,[h("a",{role:"button",class:"card-body d-flex align-items-center text-decoration-none",onClick:o[0]||(o[0]=a=>s.value=!s.value)},[h("div",ale,[h("h6",lle,[h("samp",null,pe(t.configurationName),1)]),h("small",cle,pe(t.backups.length)+" "+pe(t.backups.length>1?"Backups":"Backup"),1)]),h("h5",{class:Se(["ms-auto mb-0 dropdownIcon text-muted",{active:s.value}])},o[1]||(o[1]=[h("i",{class:"bi bi-chevron-down"},null,-1)]),2)]),s.value?(P(),F("div",ule,[(P(!0),F(Ie,null,Ge(t.backups,a=>(P(),F("div",{class:"card rounded-3 shadow-sm animate__animated",key:a.filename,onClick:()=>{i("select",a)},id:a.filename.replace(".conf",""),role:"button"},[h("div",hle,[h("small",null,[o[2]||(o[2]=h("i",{class:"bi bi-file-earmark me-2"},null,-1)),h("samp",null,pe(a.filename),1)]),h("small",null,[o[3]||(o[3]=h("i",{class:"bi bi-clock-history me-2"},null,-1)),h("samp",null,pe(Z(Fn)(a.backupDate).format("YYYY-MM-DD HH:mm:ss")),1)]),h("small",null,[o[4]||(o[4]=h("i",{class:"bi bi-database me-2"},null,-1)),Fe(" "+pe(a.database?"Yes":"No"),1)]),o[5]||(o[5]=h("small",{class:"text-muted ms-auto"},[h("i",{class:"bi bi-chevron-right"})],-1))])],8,dle))),128))])):re("",!0)]))}},gle=He(fle,[["__scopeId","data-v-35612fa2"]]),ple={class:"d-flex flex-column gap-5",id:"confirmBackup"},mle={class:"d-flex flex-column gap-3"},_le={class:"d-flex flex-column flex-sm-row align-items-start align-items-sm-center gap-3"},vle={class:"mb-0"},yle={class:"text-muted mb-1",for:"ConfigurationName"},ble={class:"invalid-feedback"},wle={key:0},xle={key:1},Ele={class:"mb-0"},Cle={class:"row g-3"},Sle={class:"col-sm"},kle={class:"text-muted mb-1",for:"PrivateKey"},Tle={class:"input-group"},Ale={class:"col-sm"},Ple={class:"text-muted mb-1",for:"PublicKey"},Mle={class:"text-muted mb-1",for:"ListenPort"},Ile={class:"invalid-feedback"},Dle={key:0},Rle={key:1},$le={class:"mb-0"},Lle={class:"text-muted mb-1 d-flex",for:"ListenPort"},Ole={class:"invalid-feedback"},Nle={key:0},Fle={key:1},Ble={class:"accordion",id:"newConfigurationOptionalAccordion"},Vle={class:"accordion-item"},zle={class:"accordion-header"},Wle={class:"accordion-button collapsed rounded-3",type:"button","data-bs-toggle":"collapse","data-bs-target":"#newConfigurationOptionalAccordionCollapse"},Yle={id:"newConfigurationOptionalAccordionCollapse",class:"accordion-collapse collapse","data-bs-parent":"#newConfigurationOptionalAccordion"},Hle={class:"accordion-body d-flex flex-column gap-3"},jle={class:"text-muted mb-1",for:"PreUp"},Kle={class:"text-muted mb-1",for:"PreDown"},Ule={class:"text-muted mb-1",for:"PostUp"},Gle={class:"text-muted mb-1",for:"PostDown"},Xle={class:"d-flex flex-column gap-3"},qle={class:"d-flex flex-column flex-sm-row align-items-start align-items-sm-center gap-3"},Zle={class:"mb-0"},Jle={key:0},Qle={class:"row g-3"},ece={class:"col-sm"},tce={class:"card text-bg-success rounded-3"},nce={class:"card-body"},ice={class:"col-sm"},sce={class:"card text-bg-warning rounded-3"},rce={class:"card-body"},oce={class:"d-flex"},ace=["disabled"],lce={__name:"confirmBackup",props:{selectedConfigurationBackup:Object},setup(t){const e=t,n=Ei({ConfigurationName:e.selectedConfigurationBackup.filename.split("_")[0],Backup:e.selectedConfigurationBackup.filename}),i=e.selectedConfigurationBackup.content.split(` +`);for(let E of i){if(E==="[Peer]")break;if(E.length>0){let w=E.replace(" = ","=").split("=");w[0]==="ListenPort"?n[w[0]]=parseInt(w[1]):n[w[0]]=w[1]}}const s=me(!1),r=me(!1),o=me(""),a=$n(),l=ve(()=>/^[a-zA-Z0-9_=+.-]{1,15}$/.test(n.ConfigurationName)&&n.ConfigurationName.length>0&&!a.Configurations.find(E=>E.Name===n.ConfigurationName)),c=ve(()=>{try{wireguard.generatePublicKey(n.PrivateKey)}catch{return!1}return!0}),u=ve(()=>n.ListenPort>0&&n.ListenPort<=65353&&Number.isInteger(n.ListenPort)&&!a.Configurations.find(E=>parseInt(E.ListenPort)===n.ListenPort)),d=ve(()=>{try{return am(n.Address),!0}catch{return!1}}),f=ve(()=>d.value&&u.value&&c.value&&l.value);Vt(()=>{document.querySelector("main").scrollTo({top:0,behavior:"smooth"}),Zt(()=>c,E=>{E&&(n.PublicKey=wireguard.generatePublicKey(n.PrivateKey))},{immediate:!0})});const g=ve(()=>{let E;try{E=am(n.Address)}catch{return 0}return E.end-E.start}),p=ve(()=>e.selectedConfigurationBackup.database?e.selectedConfigurationBackup.databaseContent.split(` +`).filter(w=>w.search('INSERT INTO "(.*)"')>=0).length:0),m=ve(()=>e.selectedConfigurationBackup.database?e.selectedConfigurationBackup.databaseContent.split(` +`).filter(w=>w.search('INSERT INTO "(.*)_restrict_access"')>=0).length:0),v=Xe(),y=IC(),x=async()=>{f.value&&await ht("/api/addWireguardConfiguration",n,async E=>{E.status&&(v.newMessage("Server","Configuration restored","success"),await a.getConfigurations(),await y.push(`/configuration/${n.ConfigurationName}/peers`))})};return(E,w)=>(P(),F("div",ple,[h("form",mle,[h("div",_le,[h("h4",vle,[$(Le,{t:"Configuration File"})])]),h("div",null,[h("label",yle,[h("small",null,[$(Le,{t:"Configuration Name"})])]),Re(h("input",{type:"text",class:Se(["form-control rounded-3",[l.value?"is-valid":"is-invalid"]]),placeholder:"ex. wg1",id:"ConfigurationName","onUpdate:modelValue":w[0]||(w[0]=b=>n.ConfigurationName=b),disabled:"",required:""},null,2),[[ze,n.ConfigurationName]]),h("div",ble,[s.value?(P(),F("div",wle,pe(o.value),1)):(P(),F("div",xle,[$(Le,{t:"Configuration name is invalid. Possible reasons:"}),h("ul",Ele,[h("li",null,[$(Le,{t:"Configuration name already exist."})]),h("li",null,[$(Le,{t:"Configuration name can only contain 15 lower/uppercase alphabet, numbers, underscore, equal sign, plus sign, period and hyphen."})])])]))])]),h("div",Cle,[h("div",Sle,[h("div",null,[h("label",kle,[h("small",null,[$(Le,{t:"Private Key"})])]),h("div",Tle,[Re(h("input",{type:"text",class:Se(["form-control rounded-start-3",[c.value?"is-valid":"is-invalid"]]),id:"PrivateKey",required:"","onUpdate:modelValue":w[1]||(w[1]=b=>n.PrivateKey=b),disabled:""},null,2),[[ze,n.PrivateKey]])])])]),h("div",Ale,[h("div",null,[h("label",Ple,[h("small",null,[$(Le,{t:"Public Key"})])]),Re(h("input",{type:"text",class:"form-control rounded-3",id:"PublicKey","onUpdate:modelValue":w[2]||(w[2]=b=>n.PublicKey=b),disabled:""},null,512),[[ze,n.PublicKey]])])])]),h("div",null,[h("label",Mle,[h("small",null,[$(Le,{t:"Listen Port"})])]),Re(h("input",{type:"number",class:Se(["form-control rounded-3",[u.value?"is-valid":"is-invalid"]]),placeholder:"0-65353",id:"ListenPort",min:"1",max:"65353","onUpdate:modelValue":w[3]||(w[3]=b=>n.ListenPort=b),disabled:"",required:""},null,2),[[ze,n.ListenPort]]),h("div",Ile,[s.value?(P(),F("div",Dle,pe(o.value),1)):(P(),F("div",Rle,[$(Le,{t:"Listen Port is invalid. Possible reasons:"}),h("ul",$le,[h("li",null,[$(Le,{t:"Invalid port."})]),h("li",null,[$(Le,{t:"Port is assigned to existing WireGuard Configuration. "})])])]))])]),h("div",null,[h("label",Lle,[h("small",null,[$(Le,{t:"IP Address/CIDR"})]),h("small",{class:Se(["ms-auto",[g.value>0?"text-success":"text-danger"]])},pe(g.value)+" Available IP Address ",3)]),Re(h("input",{type:"text",class:Se(["form-control",[d.value?"is-valid":"is-invalid"]]),placeholder:"Ex: 10.0.0.1/24",id:"Address","onUpdate:modelValue":w[4]||(w[4]=b=>n.Address=b),disabled:"",required:""},null,2),[[ze,n.Address]]),h("div",Ole,[s.value?(P(),F("div",Nle,pe(o.value),1)):(P(),F("div",Fle,[$(Le,{t:"IP Address/CIDR is invalid"})]))])]),h("div",Ble,[h("div",Vle,[h("h2",zle,[h("button",Wle,[$(Le,{t:"Optional Settings"})])]),h("div",Yle,[h("div",Hle,[h("div",null,[h("label",jle,[h("small",null,[$(Le,{t:"PreUp"})])]),Re(h("input",{type:"text",class:"form-control rounded-3",id:"PreUp",disabled:"","onUpdate:modelValue":w[5]||(w[5]=b=>n.PreUp=b)},null,512),[[ze,n.PreUp]])]),h("div",null,[h("label",Kle,[h("small",null,[$(Le,{t:"PreDown"})])]),Re(h("input",{type:"text",class:"form-control rounded-3",id:"PreDown",disabled:"","onUpdate:modelValue":w[6]||(w[6]=b=>n.PreDown=b)},null,512),[[ze,n.PreDown]])]),h("div",null,[h("label",Ule,[h("small",null,[$(Le,{t:"PostUp"})])]),Re(h("input",{type:"text",class:"form-control rounded-3",id:"PostUp",disabled:"","onUpdate:modelValue":w[7]||(w[7]=b=>n.PostUp=b)},null,512),[[ze,n.PostUp]])]),h("div",null,[h("label",Gle,[h("small",null,[$(Le,{t:"PostDown"})])]),Re(h("input",{type:"text",class:"form-control rounded-3",id:"PostDown",disabled:"","onUpdate:modelValue":w[8]||(w[8]=b=>n.PostDown=b)},null,512),[[ze,n.PostDown]])])])])])])]),h("div",Xle,[h("div",qle,[h("h4",Zle,[$(Le,{t:"Database File"})]),h("h4",{class:Se(["mb-0 ms-auto",[t.selectedConfigurationBackup.database?"text-success":"text-danger"]])},[h("i",{class:Se(["bi",[t.selectedConfigurationBackup.database?"bi-check-circle-fill":"bi-x-circle-fill"]])},null,2)],2)]),t.selectedConfigurationBackup.database?(P(),F("div",Jle,[h("div",Qle,[h("div",ece,[h("div",tce,[h("div",nce,[w[10]||(w[10]=h("i",{class:"bi bi-person-fill me-2"},null,-1)),w[11]||(w[11]=Fe(" Contain ")),h("strong",null,pe(p.value),1),Fe(" Peer"+pe(p.value>1?"s":""),1)])])]),h("div",ice,[h("div",sce,[h("div",rce,[w[12]||(w[12]=h("i",{class:"bi bi-person-fill-lock me-2"},null,-1)),w[13]||(w[13]=Fe(" Contain ")),h("strong",null,pe(m.value),1),Fe(" Restricted Peer"+pe(m.value>1?"s":""),1)])])])])])):re("",!0)]),h("div",oce,[h("button",{class:"btn btn-dark btn-brand rounded-3 px-3 py-2 shadow ms-auto",disabled:!f.value||r.value,onClick:w[9]||(w[9]=b=>x())},[w[14]||(w[14]=h("i",{class:"bi bi-clock-history me-2"},null,-1)),Fe(" "+pe(r.value?"Restoring...":"Restore"),1)],8,ace)])]))}},cce={class:"mt-5 text-body"},uce={class:"container mb-4"},dce={class:"mb-5 d-flex align-items-center gap-4"},hce={class:"mb-0"},fce={key:0},gce={class:"d-flex text-decoration-none text-body flex-grow-1 align-items-center gap-3"},pce={class:"text-muted"},mce={key:0,class:"ms-sm-auto"},_ce={key:0,id:"step1Detail"},vce={class:"mb-4"},yce={class:"d-flex gap-3 flex-column"},bce={key:0},wce={class:"my-5",key:"step2",id:"step2"},xce={class:"text-muted"},Ece={__name:"restoreConfiguration",setup(t){const e=me(void 0);Vt(()=>{Pt("/api/getAllWireguardConfigurationBackup",{},r=>{e.value=r.data})});const n=me(!1),i=me(void 0),s=me("");return(r,o)=>{const a=Ce("RouterLink");return P(),F("div",cce,[h("div",uce,[h("div",dce,[$(a,{to:"/new_configuration",class:"btn btn-dark btn-brand p-2 shadow",style:{"border-radius":"100%"}},{default:Me(()=>o[1]||(o[1]=[h("h2",{class:"mb-0",style:{"line-height":"0"}},[h("i",{class:"bi bi-arrow-left-circle"})],-1)])),_:1}),h("h2",hce,[$(Le,{t:"Restore Configuration"})])]),e.value?(P(),F("div",fce,[h("div",{class:Se(["d-flex mb-5 align-items-center steps",{active:!n.value}]),role:"button",onClick:o[0]||(o[0]=l=>n.value=!1),key:"step1"},[h("div",gce,[o[3]||(o[3]=h("h1",{class:"mb-0",style:{"line-height":"0"}},[h("i",{class:"bi bi-1-circle-fill"})],-1)),h("div",null,[o[2]||(o[2]=h("h4",{class:"mb-0"},"Step 1",-1)),h("small",pce,[n.value?(P(),Ee(Le,{key:1,t:"Click to change a backup"})):(P(),Ee(Le,{key:0,t:"Select a backup you want to restore"}))])])]),$(xt,{name:"zoomReversed"},{default:Me(()=>[n.value?(P(),F("div",mce,[o[4]||(o[4]=h("small",{class:"text-muted"},"Selected Backup",-1)),h("h6",null,[h("samp",null,pe(i.value.filename),1)])])):re("",!0)]),_:1})],2),n.value?re("",!0):(P(),F("div",_ce,[h("div",vce,[h("div",yce,[(P(!0),F(Ie,null,Ge(Object.keys(e.value.NonExistingConfigurations),l=>(P(),Ee(gle,{onSelect:c=>{i.value=c,s.value=l,n.value=!0},selectedConfigurationBackup:i.value,open:s.value===l,"configuration-name":l,backups:e.value.NonExistingConfigurations[l]},null,8,["onSelect","selectedConfigurationBackup","open","configuration-name","backups"]))),256)),Object.keys(e.value.NonExistingConfigurations).length===0?(P(),F("div",bce,o[5]||(o[5]=[h("div",{class:"card rounded-3"},[h("div",{class:"card-body"},[h("p",{class:"mb-0"},"You don't have any configuration to restore")])],-1)]))):re("",!0)])])])),h("div",wce,[h("div",{class:Se(["steps d-flex text-decoration-none text-body flex-grow-1 align-items-center gap-3",{active:n.value}])},[o[7]||(o[7]=h("h1",{class:"mb-0",style:{"line-height":"0"}},[h("i",{class:"bi bi-2-circle-fill"})],-1)),h("div",null,[o[6]||(o[6]=h("h4",{class:"mb-0"},"Step 2",-1)),h("small",xce,[n.value?(P(),Ee(Le,{key:1,t:"Confirm & edit restore information"})):(P(),Ee(Le,{key:0,t:"Backup not selected"}))])])],2)]),n.value?(P(),Ee(lce,{selectedConfigurationBackup:i.value,key:"confirm"},null,8,["selectedConfigurationBackup"])):re("",!0)])):re("",!0)])])}}},Cce=He(Ece,[["__scopeId","data-v-1dc71439"]]),Sce=async()=>{let t=!1;return await Pt("/api/validateAuthentication",{},e=>{t=e.status}),t},Ql=mL({history:U$(),scrollBehavior(){document.querySelector("main")!==null&&document.querySelector("main").scrollTo({top:0})},routes:[{name:"Index",path:"/",component:hO,meta:{requiresAuth:!0},children:[{name:"Configuration List",path:"",component:D3,meta:{title:"WireGuard Configurations"}},{name:"Settings",path:"/settings",component:B6,meta:{title:"Settings"}},{path:"/ping",name:"Ping",component:nae},{path:"/traceroute",name:"Traceroute",component:kae},{name:"New Configuration",path:"/new_configuration",component:lz,meta:{title:"New Configuration"}},{name:"Restore Configuration",path:"/restore_configuration",component:Cce,meta:{title:"Restore Configuration"}},{name:"Configuration",path:"/configuration/:id",component:hz,meta:{title:"Configuration"},children:[{name:"Peers List",path:"peers",component:Nte},{name:"Peers Create",path:"create",component:nT}]}]},{path:"/signin",component:s3,meta:{title:"Sign In"}},{path:"/welcome",component:s8,meta:{requiresAuth:!0,title:"Welcome to WGDashboard"}},{path:"/2FASetup",component:Kae,meta:{requiresAuth:!0,title:"Multi-Factor Authentication Setup"}},{path:"/share",component:rle,meta:{title:"Share"}}]});Ql.beforeEach(async(t,e,n)=>{const i=$n(),s=Xe();t.meta.title?t.params.id?document.title=t.params.id+" | WGDashboard":document.title=t.meta.title+" | WGDashboard":document.title="WGDashboard",s.ShowNavBar=!1,document.querySelector(".loadingBar").classList.remove("loadingDone"),document.querySelector(".loadingBar").classList.add("loading"),t.meta.requiresAuth?s.getActiveCrossServer()?(await s.getConfiguration(),!i.Configurations&&t.name!=="Configuration List"&&await i.getConfigurations(),n()):vL.getCookie("authToken")&&await Sce()?(await s.getConfiguration(),!i.Configurations&&t.name!=="Configuration List"&&await i.getConfigurations(),s.Redirect=void 0,n()):(s.Redirect=t,n("/signin"),s.newMessage("WGDashboard","Sign in session ended, please sign in again","warning")):n()});Ql.afterEach(()=>{document.querySelector(".loadingBar").classList.remove("loading"),document.querySelector(".loadingBar").classList.add("loadingDone")});const bA=()=>{let t={"content-type":"application/json"};const n=Xe().getActiveCrossServer();return n&&(t["wg-dashboard-apikey"]=n.apiKey),t},wA=t=>{const n=Xe().getActiveCrossServer();return n?`${n.host}${t}`:`${window.location.protocol}//${(window.location.host+window.location.pathname+t).replace(/\/\//g,"/")}`},Pt=async(t,e=void 0,n=void 0)=>{const i=new URLSearchParams(e);await fetch(`${wA(t)}?${i.toString()}`,{headers:bA()}).then(s=>{const r=Xe();if(s.ok)return s.json();if(s.status!==200)throw s.status===401&&r.newMessage("WGDashboard","Sign in session ended, please sign in again","warning"),new Error(s.statusText)}).then(s=>n?n(s):void 0).catch(s=>{console.log(s),Ql.push({path:"/signin"})})},ht=async(t,e,n)=>{await fetch(`${wA(t)}`,{headers:bA(),method:"POST",body:JSON.stringify(e)}).then(i=>{const s=Xe();if(i.ok)return i.json();if(i.status!==200)throw i.status===401&&s.newMessage("WGDashboard","Sign in session ended, please sign in again","warning"),new Error(i.statusText)}).then(i=>n?n(i):void 0).catch(i=>{console.log(i),Ql.push({path:"/signin"})})},Xe=_C("DashboardConfigurationStore",{state:()=>({Redirect:void 0,Configuration:void 0,Messages:[],Peers:{Selecting:!1,RefreshInterval:void 0},CrossServerConfiguration:{Enable:!1,ServerList:{}},ActiveServerConfiguration:void 0,IsElectronApp:!1,ShowNavBar:!1,Locale:void 0}),actions:{initCrossServerConfiguration(){const t=localStorage.getItem("CrossServerConfiguration");localStorage.getItem("ActiveCrossServerConfiguration")!==null&&(this.ActiveServerConfiguration=localStorage.getItem("ActiveCrossServerConfiguration")),t===null?window.localStorage.setItem("CrossServerConfiguration",JSON.stringify(this.CrossServerConfiguration)):this.CrossServerConfiguration=JSON.parse(t)},syncCrossServerConfiguration(){window.localStorage.setItem("CrossServerConfiguration",JSON.stringify(this.CrossServerConfiguration))},addCrossServerConfiguration(){this.CrossServerConfiguration.ServerList[Bs().toString()]={host:"",apiKey:"",active:!1}},deleteCrossServerConfiguration(t){delete this.CrossServerConfiguration.ServerList[t]},getActiveCrossServer(){const t=localStorage.getItem("ActiveCrossServerConfiguration");if(t!==null)return this.CrossServerConfiguration.ServerList[t]},setActiveCrossServer(t){this.ActiveServerConfiguration=t,localStorage.setItem("ActiveCrossServerConfiguration",t)},removeActiveCrossServer(){this.ActiveServerConfiguration=void 0,localStorage.removeItem("ActiveCrossServerConfiguration")},async getConfiguration(){await Pt("/api/getDashboardConfiguration",{},t=>{t.status&&(this.Configuration=t.data)})},async signOut(){await Pt("/api/signout",{},t=>{this.removeActiveCrossServer(),this.$router.go("/signin")})},newMessage(t,e,n){this.Messages.push({id:Bs(),from:At(t),content:At(e),type:n,show:!0})},applyLocale(t){if(this.Locale===null)return t;const n=Object.keys(this.Locale).filter(i=>t.match(new RegExp("^"+i+"$","g"))!==null);return console.log(n),n.length===0||n.length>1?t:this.Locale[n[0]]}}}),kce={class:"navbar bg-dark sticky-top","data-bs-theme":"dark"},Tce={class:"container-fluid d-flex text-body align-items-center"},Ace={key:0,class:"ms-auto text-muted"},Pce={__name:"App",setup(t){const e=Xe();e.initCrossServerConfiguration(),window.IS_WGDASHBOARD_DESKTOP&&(e.IsElectronApp=!0,e.CrossServerConfiguration.Enable=!0),Zt(e.CrossServerConfiguration,()=>{e.syncCrossServerConfiguration()},{deep:!0});const n=ve(()=>{if(e.ActiveServerConfiguration)return e.CrossServerConfiguration.ServerList[e.ActiveServerConfiguration]});return(i,s)=>(P(),F(Ie,null,[s[4]||(s[4]=h("div",{style:{"z-index":"9999",height:"5px"},class:"position-absolute loadingBar top-0 start-0"},null,-1)),h("nav",kce,[h("div",Tce,[s[3]||(s[3]=h("span",{class:"navbar-brand mb-0 h1"},"WGDashboard",-1)),n.value!==void 0?(P(),F("small",Ace,[s[1]||(s[1]=h("i",{class:"bi bi-server me-2"},null,-1)),Fe(pe(n.value.host),1)])):re("",!0),h("a",{role:"button",class:"navbarBtn text-body",onClick:s[0]||(s[0]=r=>Z(e).ShowNavBar=!Z(e).ShowNavBar),style:{"line-height":"0","font-size":"2rem"}},s[2]||(s[2]=[h("i",{class:"bi bi-list"},null,-1)]))])]),(P(),Ee(x_,null,{default:Me(()=>[$(Z(MC),null,{default:Me(({Component:r})=>[$(xt,{name:"app",mode:"out-in",type:"transition",appear:""},{default:Me(()=>[(P(),Ee(_a(r)))]),_:2},1024)]),_:1})]),_:1}))],64))}},Mce=He(Pce,[["__scopeId","data-v-ca898237"]]);let Wm;await fetch("/api/locale").then(t=>t.json()).then(t=>Wm=t.data).catch(()=>{Wm=null});const Qv=o$(Mce);Qv.use(Ql);const xA=u$();xA.use(({store:t})=>{t.$router=uf(Ql)});Qv.use(xA);const Ice=Xe();Ice.Locale=Wm;Qv.mount("#app"); diff --git a/src/static/app/src/components/configurationComponents/peerList.vue b/src/static/app/src/components/configurationComponents/peerList.vue index 656ed99..2d398fd 100644 --- a/src/static/app/src/components/configurationComponents/peerList.vue +++ b/src/static/app/src/components/configurationComponents/peerList.vue @@ -159,7 +159,7 @@ export default { modalOpen: false }, deleteConfiguration: { - modalOpen: true + modalOpen: false } } }, diff --git a/src/static/app/src/components/navbar.vue b/src/static/app/src/components/navbar.vue index 225a733..5582511 100644 --- a/src/static/app/src/components/navbar.vue +++ b/src/static/app/src/components/navbar.vue @@ -58,7 +58,16 @@ export default { exact-active-class="active"> - + + +