@swisspost/design-system-components 10.0.0-next.42 → 10.0.0-next.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{breakpoints-DIH5Oaz7.js → breakpoints-DmZ_BQGo.js} +13 -17
- package/dist/cjs/{get-root-DmyBVSJ_.js → get-root-CfQ2PogP.js} +1 -1
- package/dist/cjs/{index-CRMt-jq2.js → index-CpDyH7Ww.js} +1 -5
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-C_aBW878.js → package-BFQrBDHY.js} +1 -1
- package/dist/cjs/post-accordion_2.cjs.entry.js +4 -4
- package/dist/cjs/post-avatar.cjs.entry.js +4 -4
- package/dist/cjs/post-back-to-top.cjs.entry.js +3 -3
- package/dist/cjs/post-banner.cjs.entry.js +4 -4
- package/dist/cjs/post-breadcrumb-item_2.cjs.entry.js +3 -3
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +4 -4
- package/dist/cjs/post-card-control.cjs.entry.js +4 -4
- package/dist/cjs/post-closebutton_15.cjs.entry.js +47 -36
- package/dist/cjs/post-collapsible_2.cjs.entry.js +4 -4
- package/dist/cjs/post-components.cjs.js +2 -2
- package/dist/cjs/post-footer.cjs.entry.js +4 -4
- package/dist/cjs/post-linkarea.cjs.entry.js +3 -3
- package/dist/cjs/post-popover.cjs.entry.js +4 -4
- package/dist/cjs/post-rating.cjs.entry.js +3 -3
- package/dist/cjs/post-tab-header.cjs.entry.js +3 -3
- package/dist/cjs/post-tab-panel.cjs.entry.js +3 -3
- package/dist/cjs/post-tabs.cjs.entry.js +10 -5
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +4 -4
- package/dist/cjs/post-tooltip.cjs.entry.js +5 -5
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
- package/dist/collection/components/post-avatar/post-avatar.css +1 -1
- package/dist/collection/components/post-banner/post-banner.css +1 -1
- package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.css +1 -1
- package/dist/collection/components/post-card-control/post-card-control.css +1 -1
- package/dist/collection/components/post-footer/post-footer.js +1 -1
- package/dist/collection/components/post-header/post-header.css +1 -1
- package/dist/collection/components/post-header/post-header.js +30 -11
- package/dist/collection/components/post-icon/post-icon.js +1 -1
- package/dist/collection/components/post-language-option/post-language-option.css +1 -1
- package/dist/collection/components/post-language-option/post-language-option.js +1 -1
- package/dist/collection/components/post-linkarea/post-linkarea.js +1 -1
- package/dist/collection/components/post-list/post-list.css +1 -1
- package/dist/collection/components/post-list/post-list.js +1 -1
- package/dist/collection/components/post-list-item/post-list-item.js +1 -1
- package/dist/collection/components/post-logo/post-logo.js +1 -1
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.css +1 -1
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +1 -6
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +2 -4
- package/dist/collection/components/post-menu/post-menu.js +1 -1
- package/dist/collection/components/post-popover/post-popover.css +1 -1
- package/dist/collection/components/post-popover/post-popover.js +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +1 -1
- package/dist/collection/components/post-tabs/post-tabs.css +1 -1
- package/dist/collection/components/post-tabs/post-tabs.js +26 -1
- package/dist/collection/components/post-togglebutton/post-togglebutton.js +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.css +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.js +2 -2
- package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +1 -1
- package/dist/collection/utils/breakpoints.js +13 -17
- package/dist/components/index.js +1 -1
- package/dist/components/{p-BTuwEPwo.js → p-1ViVKUF6.js} +4 -4
- package/dist/components/{p-BGbm-LIm.js → p-B9s3i4RA.js} +3 -3
- package/dist/components/{p-47N0HfyR.js → p-C79jtIcS.js} +3 -3
- package/dist/components/{p-Dzrd8BSS.js → p-C99jx7Ii.js} +4 -4
- package/dist/components/{p-DBHo9yGF.js → p-CBFgkSgY.js} +1 -1
- package/dist/components/{p-Cx0AiN2A.js → p-CJ80BZ06.js} +13 -17
- package/dist/components/p-CiFN4Rz9.js +3 -0
- package/dist/components/{p-DEBPuQvD.js → p-Co3L0HjR.js} +3 -3
- package/dist/components/{p-Df_aJQyq.js → p-CqArUD7l.js} +2 -2
- package/dist/components/{p-BTDGpxKD.js → p-D2SIHwlN.js} +1 -1
- package/dist/components/{p-DS1BUsT3.js → p-DWxTKWHJ.js} +3 -3
- package/dist/components/{p-DrzP02ul.js → p-DdEQb55p.js} +2 -2
- package/dist/components/{p-D2S8TlQo.js → p-Dy3Riej-.js} +6 -6
- package/dist/components/post-accordion-item.js +1 -1
- package/dist/components/post-accordion.js +1 -1
- package/dist/components/post-avatar.js +3 -3
- package/dist/components/post-back-to-top.js +3 -3
- package/dist/components/post-banner.js +4 -4
- package/dist/components/post-breadcrumb-item.js +1 -1
- package/dist/components/post-breadcrumbs.js +9 -9
- package/dist/components/post-card-control.js +4 -4
- package/dist/components/post-closebutton.js +2 -2
- package/dist/components/post-collapsible-trigger.js +1 -1
- package/dist/components/post-collapsible.js +1 -1
- package/dist/components/post-footer.js +8 -8
- package/dist/components/post-header.js +31 -13
- package/dist/components/post-icon.js +1 -1
- package/dist/components/post-language-option.js +4 -4
- package/dist/components/post-language-switch.js +6 -6
- package/dist/components/post-linkarea.js +2 -2
- package/dist/components/post-list-item.js +2 -2
- package/dist/components/post-list.js +3 -3
- package/dist/components/post-logo.js +3 -3
- package/dist/components/post-mainnavigation.js +4 -9
- package/dist/components/post-megadropdown-trigger.js +2 -2
- package/dist/components/post-megadropdown.js +4 -6
- package/dist/components/post-menu-item.js +1 -1
- package/dist/components/post-menu-trigger.js +1 -1
- package/dist/components/post-menu.js +1 -1
- package/dist/components/post-popover.js +4 -4
- package/dist/components/post-popovercontainer.js +1 -1
- package/dist/components/post-rating.js +3 -3
- package/dist/components/post-tab-header.js +2 -2
- package/dist/components/post-tab-panel.js +2 -2
- package/dist/components/post-tabs.js +10 -4
- package/dist/components/post-togglebutton.js +2 -2
- package/dist/components/post-tooltip-trigger.js +3 -3
- package/dist/components/post-tooltip.js +5 -5
- package/dist/docs.json +45 -139
- package/dist/esm/{breakpoints-DyVir0ex.js → breakpoints-_0G7tavk.js} +13 -17
- package/dist/esm/{get-root-D9QC9-TY.js → get-root-hlzxoycr.js} +1 -1
- package/dist/esm/{index-CVhzhVv0.js → index-C8a0ddDa.js} +1 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/package-CiFN4Rz9.js +3 -0
- package/dist/esm/post-accordion_2.entry.js +4 -4
- package/dist/esm/post-avatar.entry.js +4 -4
- package/dist/esm/post-back-to-top.entry.js +3 -3
- package/dist/esm/post-banner.entry.js +4 -4
- package/dist/esm/post-breadcrumb-item_2.entry.js +3 -3
- package/dist/esm/post-breadcrumbs.entry.js +4 -4
- package/dist/esm/post-card-control.entry.js +4 -4
- package/dist/esm/post-closebutton_15.entry.js +47 -36
- package/dist/esm/post-collapsible_2.entry.js +4 -4
- package/dist/esm/post-components.js +3 -3
- package/dist/esm/post-footer.entry.js +4 -4
- package/dist/esm/post-linkarea.entry.js +3 -3
- package/dist/esm/post-popover.entry.js +4 -4
- package/dist/esm/post-rating.entry.js +3 -3
- package/dist/esm/post-tab-header.entry.js +3 -3
- package/dist/esm/post-tab-panel.entry.js +3 -3
- package/dist/esm/post-tabs.entry.js +10 -5
- package/dist/esm/post-tooltip-trigger.entry.js +4 -4
- package/dist/esm/post-tooltip.entry.js +5 -5
- package/dist/post-components/{p-f06866d2.entry.js → p-0d3ab7f7.entry.js} +1 -1
- package/dist/post-components/{p-c25faa09.entry.js → p-0fb50e3d.entry.js} +1 -1
- package/dist/post-components/{p-ecfbdd8d.entry.js → p-2f03d479.entry.js} +1 -1
- package/dist/post-components/p-3645ac4e.entry.js +1 -0
- package/dist/post-components/{p-e5f6c467.entry.js → p-41dd61d4.entry.js} +1 -1
- package/dist/post-components/p-4410eecd.entry.js +1 -0
- package/dist/post-components/{p-8036d63d.entry.js → p-5e84d796.entry.js} +1 -1
- package/dist/post-components/{p-4c44a7b6.entry.js → p-635e2004.entry.js} +1 -1
- package/dist/post-components/p-69048834.entry.js +1 -0
- package/dist/post-components/{p-79551aa5.entry.js → p-70d20143.entry.js} +1 -1
- package/dist/post-components/p-7b6a56ba.entry.js +1 -0
- package/dist/post-components/{p-bd16c322.entry.js → p-830d243f.entry.js} +1 -1
- package/dist/post-components/p-9f0408e9.entry.js +1 -0
- package/dist/post-components/{p-Bkp2QDth.js → p-BkvZk-PA.js} +1 -1
- package/dist/post-components/p-C8a0ddDa.js +2 -0
- package/dist/post-components/p-CiFN4Rz9.js +1 -0
- package/dist/post-components/p-_0G7tavk.js +1 -0
- package/dist/post-components/p-b20922d5.entry.js +1 -0
- package/dist/post-components/{p-16a44ba9.entry.js → p-bb139af8.entry.js} +1 -1
- package/dist/post-components/p-e4c72272.entry.js +1 -0
- package/dist/post-components/{p-c949f699.entry.js → p-f1e0c995.entry.js} +1 -1
- package/dist/post-components/p-f6ce2870.entry.js +1 -0
- package/dist/post-components/post-components.css +1 -1
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-footer/post-footer.d.ts +2 -1
- package/dist/types/components/post-header/post-header.d.ts +4 -1
- package/dist/types/components/post-mainnavigation/post-mainnavigation.d.ts +0 -1
- package/dist/types/components/post-megadropdown/post-megadropdown.d.ts +2 -1
- package/dist/types/components/post-tabs/post-tabs.d.ts +5 -0
- package/dist/types/components.d.ts +10 -37
- package/dist/types/utils/breakpoints.d.ts +6 -4
- package/hydrate/index.js +78 -128
- package/hydrate/index.mjs +78 -128
- package/package.json +6 -7
- package/dist/cjs/post-tag.cjs.entry.js +0 -55
- package/dist/collection/components/post-tag/post-tag.css +0 -1
- package/dist/collection/components/post-tag/post-tag.js +0 -133
- package/dist/components/p-BQFahg8B.js +0 -3
- package/dist/components/post-tag.d.ts +0 -11
- package/dist/components/post-tag.js +0 -87
- package/dist/esm/package-BQFahg8B.js +0 -3
- package/dist/esm/post-tag.entry.js +0 -53
- package/dist/post-components/p-1a2f3472.entry.js +0 -1
- package/dist/post-components/p-3b0fdc33.entry.js +0 -1
- package/dist/post-components/p-65b70b56.entry.js +0 -1
- package/dist/post-components/p-7ff04db9.entry.js +0 -1
- package/dist/post-components/p-9a814dc9.entry.js +0 -1
- package/dist/post-components/p-BQFahg8B.js +0 -1
- package/dist/post-components/p-CVhzhVv0.js +0 -2
- package/dist/post-components/p-DyVir0ex.js +0 -1
- package/dist/post-components/p-a2847d8c.entry.js +0 -1
- package/dist/post-components/p-b62dfb1e.entry.js +0 -1
- package/dist/post-components/p-d1db269a.entry.js +0 -1
- package/dist/post-components/p-d9e33696.entry.js +0 -1
- package/dist/types/components/post-tag/post-tag.d.ts +0 -29
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as e,H as o,a as i,c as n}from"./p-C8a0ddDa.js";import{v as a}from"./p-CiFN4Rz9.js";import{t as s,b as r,I as l}from"./p-_0G7tavk.js";import{a as c,s as d}from"./p-BuLMaH5t.js";import{E as p}from"./p-8U5GFtQP.js";import{e as h,a as g,c as u,g as f}from"./p-BWC0gtGU.js";import{n as m}from"./p-BLchVpF6.js";import{P as b}from"./p-DRiVosES.js";import{g as v}from"./p-BkvZk-PA.js";const w=class{constructor(e){t(this,e)}render(){return e(o,{key:"7b5e179b42eefd1823b2b2ef7ee17c94bd9f0ddd","data-version":a},e("button",{key:"471e68d1ddcfe741f5450d002b2daa86cec0f986",class:"btn btn-icon-close",type:"button"},e("post-icon",{key:"928fa7460988cffa269a29506e68e056f84bcef8","aria-hidden":"true",name:"closex"}),e("span",{key:"c1501f4a8b7d8d95be7d02576b10143b9e6b0654",class:"visually-hidden"},e("slot",{key:"a9f1ab8db57486d420db0981090ad2ba5183c289"}))))}get host(){return i(this)}};w.style=".btn-icon-close{padding:0;border:unset;min-height:unset;min-width:unset;width:var(--post-device-sizing-notification-1);height:var(--post-device-sizing-notification-1);border-radius:var(--post-device-border-radius-round);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}.btn-icon-close>post-icon{min-width:var(--post-device-sizing-interactive-icon-size4);width:var(--post-device-sizing-interactive-icon-size4);height:var(--post-device-sizing-interactive-icon-size4)}.btn-icon-close:not(:disabled):hover,.btn-icon-close.pretend-hover{cursor:pointer;background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-icon-close:not(:disabled):hover,.btn-icon-close.pretend-hover{color:HighlightText !important}}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}";const x=`:where(${["button",'input:not([type="hidden"])',"[tabindex]","select","textarea","[contenteditable]","a[href]","iframe","audio[controls]","video[controls]","area[href]","details > summary:first-of-type"].join(",")})`,y=`:where(${["[inert]","[inert] *",":disabled","dialog:not([open]) *","[popover]:not(:popover-open) *","details:not([open]) > *:not(details > summary:first-of-type)","details:not([open]) > *:not(details > summary:first-of-type) *",'[tabindex^="-"]','[hidden]:not([hidden="false"])'].join(",")})`;function k(t){const e=t.querySelectorAll(`${x}:not(${y})`);return Array.from(e).filter((t=>{const e=window.getComputedStyle(t.parentElement);return"none"!==e.display&&"hidden"!==e.visibility}))}const S=class{get scrollParent(){const t=document.querySelector("[data-post-scroll-locked]");if(t)return t;let e=this.host.parentElement;for(;e;){const t=getComputedStyle(e).overflowY;if(["auto","scroll"].includes(t))return e;e=e.parentElement}return document.body}lockBody(t,e,o){const i=this.scrollParent;"desktop"!==this.device&&("mobileMenuExtended"===o?t:this.mobileMenuExtended)?(i.setAttribute("data-post-scroll-locked",""),this.host.addEventListener("keydown",this.keyboardHandler)):(i.removeAttribute("data-post-scroll-locked"),this.host.removeEventListener("keydown",this.keyboardHandler))}constructor(e){t(this,e),this.throttledResize=s(50,(()=>this.updateLocalHeaderHeight())),this.device=r.get("device"),this.mobileMenuExtended=!1,this.megadropdownOpen=!1,this.breakpointChange=t=>{this.device=t.detail,this.switchLanguageSwitchMode(),"desktop"===this.device&&this.mobileMenuExtended&&this.closeMobileMenu(),"desktop"!==this.device&&(Array.from(this.host.querySelectorAll("post-megadropdown")).forEach((t=>{t.hide(!1,!0)})),this.megadropdownOpen=!1)},this.megadropdownStateHandler=t=>{this.megadropdownOpen=t.detail.isVisible},this.handleScrollEvent=this.handleScrollEvent.bind(this),this.updateScrollParentHeight=this.updateScrollParentHeight.bind(this),this.updateLocalHeaderHeight=this.updateLocalHeaderHeight.bind(this),this.keyboardHandler=this.keyboardHandler.bind(this),this.handleLinkClick=this.handleLinkClick.bind(this)}connectedCallback(){window.addEventListener("resize",this.throttledResize,{passive:!0}),window.addEventListener("scroll",this.handleScrollEvent,{passive:!0}),this.scrollParent.addEventListener("scroll",this.handleScrollEvent,{passive:!0}),document.addEventListener("postToggleMegadropdown",this.megadropdownStateHandler),this.host.addEventListener("click",this.handleLinkClick),window.addEventListener("postBreakpoint:device",this.breakpointChange),this.switchLanguageSwitchMode(),this.handleScrollParentResize(),this.lockBody(!1,this.mobileMenuExtended,"mobileMenuExtended")}componentWillRender(){this.handleScrollEvent()}componentDidRender(){this.getFocusableElements(),this.handleLocalHeaderResize()}componentDidLoad(){this.updateLocalHeaderHeight()}disconnectedCallback(){const t=this.scrollParent;window.removeEventListener("postBreakpoint:device",this.breakpointChange),window.removeEventListener("resize",this.throttledResize),window.removeEventListener("scroll",this.handleScrollEvent),t.removeEventListener("scroll",this.handleScrollEvent),document.removeEventListener("postToggleMegadropdown",this.megadropdownStateHandler),this.host.removeEventListener("keydown",this.keyboardHandler),this.host.removeEventListener("click",this.handleLinkClick),this.scrollParentResizeObserver&&(this.scrollParentResizeObserver.disconnect(),this.scrollParentResizeObserver=null),this.localHeaderResizeObserver&&(this.localHeaderResizeObserver.disconnect(),this.localHeaderResizeObserver=null),this.mobileMenuExtended=!1}async closeMobileMenu(){this.mobileMenuAnimation.finish();const t=this.getMenuButton();t&&(t.toggled=!1),this.mobileMenuExtended=!1}async toggleMobileMenu(t){"desktop"!==this.device&&(this.mobileMenuAnimation=this.mobileMenuExtended?c(this.mobileMenu):d(this.mobileMenu),this.host.querySelector("post-togglebutton").toggled=t??!this.mobileMenuExtended,this.mobileMenuExtended?(await this.mobileMenuAnimation.finished,this.mobileMenuExtended=t??!this.mobileMenuExtended,!1===this.mobileMenuExtended&&this.closeAllMegadropdowns()):(this.mobileMenuExtended=t??!this.mobileMenuExtended,this.megadropdownOpen&&this.closeAllMegadropdowns()))}getFocusableElements(){const t=[...Array.from(this.host.querySelectorAll('.list-inline:not([slot="meta-navigation"]) > li')),...Array.from(this.host.querySelectorAll("nav > post-list > div > post-list-item, post-megadropdown-trigger")),...Array.from(this.host.querySelectorAll('.list-inline[slot="meta-navigation"] > li, post-language-option'))],e=[this.host.querySelector("post-togglebutton"),...t.flatMap((t=>Array.from(k(t))))];this.firstFocusableEl=e[0],this.lastFocusableEl=e[e.length-1]}getMenuButton(){return this.host.querySelector("post-togglebutton")}keyboardHandler(t){"Tab"===t.key&&this.mobileMenuExtended&&(t.shiftKey&&document.activeElement===this.firstFocusableEl?(t.preventDefault(),this.lastFocusableEl.focus()):t.shiftKey||document.activeElement!==this.lastFocusableEl||(t.preventDefault(),this.firstFocusableEl.focus()))}closeAllMegadropdowns(){Array.from(this.host.querySelectorAll("post-megadropdown")).forEach((t=>{t.hide(!1,!0)})),this.megadropdownOpen=!1}handleScrollEvent(){const t=this.scrollParent===document.body?window.scrollY:this.scrollParent.scrollTop;document.documentElement.style.setProperty("--post-header-scroll-top",`${t}px`)}updateLocalHeaderHeight(){const t=this.host.shadowRoot.querySelector(".local-header");t&&document.documentElement.style.setProperty("--post-local-header-height",`${t.clientHeight}px`)}updateScrollParentHeight(){this.host.style.setProperty("--post-header-scroll-parent-height",`${this.scrollParent.clientHeight}px`)}handleLinkClick(t){const e=t.target,o=e.closest("post-mainnavigation a"),i=e.closest("post-megadropdown a");(o||i)&&(this.mobileMenuExtended&&(o||i)&&this.toggleMobileMenu(!1),"desktop"===this.device&&i)&&e.closest("post-megadropdown a")&&e.closest("post-megadropdown").hide(!0)}handleScrollParentResize(){this.scrollParent&&(this.scrollParentResizeObserver=new ResizeObserver(this.updateScrollParentHeight),this.scrollParentResizeObserver.observe(this.scrollParent))}handleLocalHeaderResize(){const t=this.host.shadowRoot.querySelector(".local-header");t&&!this.localHeaderResizeObserver&&(this.localHeaderResizeObserver=new ResizeObserver(this.updateLocalHeaderHeight),this.localHeaderResizeObserver.observe(t))}switchLanguageSwitchMode(){const t="desktop"===this.device?"menu":"list";Array.from(this.host.querySelectorAll("post-language-switch")).forEach((e=>{e?.setAttribute("variant",t)}))}renderNavigation(){const t=["navigation"],o=this.mobileMenu?.scrollTop??0;return this.mobileMenuExtended&&t.push("extended"),this.megadropdownOpen&&t.push("megadropdown-open"),e("div",{class:t.join(" "),style:{"--post-header-navigation-current-inset":`${o}px`}},e("div",{class:"mobile-menu",ref:t=>this.mobileMenu=t},e("div",{class:"navigation-target-group"},("mobile"===this.device||"tablet"===this.device)&&e("slot",{name:"target-group"})),e("slot",{name:"post-mainnavigation"}),("mobile"===this.device||"tablet"===this.device)&&e("div",{class:"navigation-footer"},e("slot",{name:"meta-navigation"}),e("slot",{name:"post-language-switch"}))))}render(){return e(o,{key:"3bb171287eed3a440ff294c4d9154710357d7933","data-version":a,"data-color-scheme":"light"},e("div",{key:"e68e70296d834e564283d8726374dd023685e1ba",class:"global-header"},e("div",{key:"f7d0a031db31070186e13385920628bd2140b5e1",class:"global-sub"},e("div",{key:"f30c6c8574f2cfee18e46177fff72ed6a0b6b6b1",class:"logo"},e("slot",{key:"234ac918a3bb83a957b62a722ac706b197ef4308",name:"post-logo"}))),e("div",{key:"87ec7404ff565ada00c60de758cd7bdd42a6efcb",class:"global-sub"},"desktop"===this.device&&e("slot",{key:"a80884973ba1cba2c1280b1dfb5332a2cdb5033a",name:"target-group"})),e("div",{key:"c5ed768a6d786af7697c6c28d190496696e74ca9",class:"global-sub"},"desktop"===this.device&&e("slot",{key:"0de4349ebee19a963a728e5727b9206a2294adce",name:"meta-navigation"}),e("slot",{key:"3d01a95b6053f75361e3d085c19776631717d032",name:"global-controls"}),"desktop"===this.device&&e("slot",{key:"69862a1459330501af07ff58cd7c4d6b30cc763f",name:"post-language-switch"}),e("div",{key:"63ec167550f935f381943510b778d351d44215a9",onClick:()=>this.toggleMobileMenu(),class:"mobile-toggle"},e("slot",{key:"717703c95ed7db5a6701b025594ce897c1123e69",name:"post-togglebutton"})))),e("div",{key:"343993883bbeaf1f1bd5b8e373c4177a8f005d45",class:"local-header "+(this.mobileMenuExtended?"local-header-mobile-extended":"")},e("slot",{key:"3fbe2a62d40418fe4ed707fa6c66c105e25da8be",name:"title"}),e("div",{key:"396c3c75c96d03a39ee96dc297a1364adfcd86fe",class:"local-sub"},e("slot",{key:"2c5da27034ca66e684d6442104ab4cdd4e0abcbd",name:"local-controls"}),e("slot",{key:"38e5a83d0e16bb480271337c12fe1b9a4c8d165c"})),"desktop"===this.device&&this.renderNavigation()),"desktop"!==this.device&&this.renderNavigation())}get host(){return i(this)}static get watchers(){return{device:["lockBody"],mobileMenuExtended:["lockBody"]}}};(function(t,e,o,i){var n,a=arguments.length,s=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(s=(a<3?n(s):a>3?n(e,o,s):n(e,o))||s);a>3&&s&&Object.defineProperty(e,o,s)})([p("post-megadropdown")],S.prototype,"megadropdownStateHandler",void 0),S.style='*,::before,::after{box-sizing:border-box}:host{z-index:1020;position:relative;--post-global-header-top:calc( (var(--post-global-header-height) - var(--post-global-header-reduced-height)) * -1 );--post-local-header-top:calc( -1 * (var(--post-local-header-height) - var(--post-main-navigation-height)) + var(--post-global-header-reduced-height) );--post-logo-height:calc(var(--post-global-header-height) - var(--post-header-scroll-top, 0px));--post-global-controls-top:calc(min((var(--post-header-scroll-top) / 4), 20px) * -1)}:host:has(.global-sub>*:not(.logo):focus-within),:host:has(.local-sub:focus-within){--post-global-header-top:0;--post-local-header-top:var(--post-global-header-height);--post-logo-height:var(--post-global-header-height);--post-global-controls-top:0}:host(:not(:has([slot=title]))) .local-header{padding-block-start:0}:host(:not(:has([slot=title]))) .local-sub{display:none}.d-flex{display:flex}.space-between{justify-content:space-between}.global-header{background-color:#fc0;display:flex;justify-content:space-between;position:sticky;padding-inline:4px;height:var(--post-global-header-height)}@media screen and (max-width: 1023.98px){.global-header{z-index:4;inset-block-start:0}}@media screen and (min-width: 1024px){.global-header{z-index:5;padding-inline-end:12px;inset-block-start:var(--post-global-header-top);transition:inset-block-start .2s ease-in-out}}.global-sub{display:flex;align-items:center;gap:24px}@media screen and (min-width: 1024px){.global-sub:not(:has(.logo)){position:relative;transition:inset-block-start .2s ease-in-out;inset-block-start:var(--post-global-controls-top)}.global-sub:not(:last-child):not(:first-child){flex-grow:1}}.align-end{align-items:flex-end}.logo{flex:1 0 auto;height:var(--post-global-header-height);width:var(--post-global-header-height);min-height:var(--post-global-header-reduced-height);align-self:flex-end}@media screen and (min-width: 1024px){.logo{transition:height .2 ease-in-out;height:var(--post-logo-height)}}::slotted(ul){margin-block:0 !important;list-style:none;display:flex;padding-inline-start:0;gap:1rem;flex-shrink:0 !important}.local-header{display:flex;position:sticky;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px;min-height:var(--post-local-header-min-height);background:#fff;transition:box-shadow .2s ease-in-out}.local-header::after{content:"";position:absolute;width:100%;height:1px;background-color:#e1e0dc;inset-block-end:-1px;z-index:1}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.local-header::after{background-color:Highlight}}@media screen and (min-width: 1024px){.local-header{z-index:3;inset-block-start:var(--post-local-header-top);padding-block-start:18px;box-shadow:var(--post-device-elevation-300);transition:box-shadow .2s ease-in-out,inset-block-start .2s ease-in-out}}@media screen and (max-width: 1023.98px){.local-header{z-index:3;inset-block-start:var(--post-global-header-height);padding-block:8px;flex-wrap:wrap;gap:12px}.local-header.local-header-mobile-extended::after{inset-block-end:0}.local-header:not(.local-header-mobile-extended){box-shadow:var(--post-device-elevation-300)}}.local-sub{margin-inline-end:8px}@media screen and (max-width: 1023.98px){.local-sub{margin-inline-end:4px}}::slotted(.list-inline){margin:0 !important;z-index:3 !important;position:relative !important}@media screen and (min-width: 1024px){.mobile-toggle{display:none}}.navigation{width:100%}@media screen and (min-width: 1024px){.navigation{inset-block-start:var(--post-global-header-reduced-height)}.navigation::before{display:block;content:"";position:absolute;inset:0;z-index:2;background:#fff}}@media screen and (max-width: 1023.98px){.navigation{position:sticky;z-index:2;inset-inline:0;inset-block-start:var(--post-header-height)}.mobile-menu{background-color:#fafafa}::slotted(post-mainnavigation),.navigation-footer{padding-block:16px 24px;padding-inline:40px}::slotted(post-mainnavigation),.navigation-footer,.navigation-target-group{display:none;flex-direction:column}.navigation.extended ::slotted(post-mainnavigation),.navigation.extended .navigation-footer,.navigation.extended .navigation-target-group{display:flex}::slotted(post-mainnavigation){padding-block:24px}.navigation.extended>div{display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;height:calc(min(var(--post-header-scroll-parent-height, 100dvh),100dvh) - var(--post-header-height))}.navigation.extended.megadropdown-open>div{overflow-y:hidden}.navigation.extended ::slotted(post-mainnavigation){flex-grow:1 !important}.navigation-footer{background-color:#f0efed;gap:24px}.navigation-footer ::slotted(post-language-switch){margin-top:16px}}@media screen and (max-width: 1023.98px)and (max-width: 599.98px){.navigation-footer{gap:16px}}@media screen and (max-width: 599.98px){::slotted(post-mainnavigation),.navigation-footer{padding-inline:16px}}';const T=`https://unpkg.com/@swisspost/design-system-icons@${a}/public/post-icons/`,E=["cylon","cylon-vertical","spin","spin-reverse","fade","throb"],z=class{constructor(e){t(this,e),this.flipH=!1,this.flipV=!1}validateAnimation(){h(this,"animation",E)}validateBase(){g(this,"base","string")}validateName(){u(this,"name","string")}validateRotate(){g(this,"rotate","number")}validateScale(){g(this,"scale","number")}getUrl(){const t=`${this.name}.svg`;if(!l&&!this.base)return`${T}${t}`;const e=l?window.location.origin:"",o=l&&document.querySelector("base[href]")?.getAttribute("href")||"",i=/^https?:\/\//.test(o),n=l&&document.querySelector('meta[name="design-system-settings"]')?.getAttribute("data-post-icon-base")||"",a=this.base||n,s=/^https?:\/\//.test(a),r=d(o),c=d(a);function d(t){return t?t.endsWith("/")?t:`${t}/`:""}let p;return p=s?`${c}${t}`:i?`${r}${c}${t}`:a||o?`${e}${r}${c}${t}`:`${T}${t}`,p.replace(/([^:])\/\//g,"$1/")}getStyles(){const t=this.getUrl();return Object.entries({"-webkit-mask-image":`url(${t})`,"mask-image":`url('${t}')`,transform:(this.scale&&!isNaN(Number(this.scale))?"scale("+this.scale+")":"")+(this.rotate&&!isNaN(Number(this.rotate))?" rotate("+this.rotate+"deg)":"")}).filter((([t,e])=>null!==e)).reduce(((t,[e,o])=>Object.assign(t,{[e]:o})),{})}componentDidLoad(){this.validateBase(),this.validateName(),this.validateScale(),this.validateRotate(),this.validateAnimation()}render(){return e(o,{key:"3f90e071297fbca3c9ae7f0470c3deaf380f8a50","data-version":a},e("span",{key:"4b22a88a80e0b329d65508321a9b63a38894fae8",style:this.getStyles()}))}get host(){return i(this)}static get watchers(){return{animation:["validateAnimation"],base:["validateBase"],name:["validateName"],rotate:["validateRotate"],scale:["validateScale"]}}};z.style=":host{display:inline-block;width:1em;height:1em;vertical-align:-0.15em}span{display:block;width:100%;height:100%;fill:currentColor;forced-color-adjust:preserve-parent-color;background-color:currentColor;-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100%;mask-size:100%}:host([flip-h]:not([flip-h=false])){scale:-1 1}:host([flip-v]:not([flip-v=false])){scale:1 -1}:host([flip-h][flip-v]:not([flip-h=false],[flip-v=false])){scale:-1}:host([animation]){transform-origin:center}:host([animation=cylon]){animation:icon-animation-cylon .75s ease-in-out infinite alternate}:host([animation=cylon-vertical]){animation:icon-animation-cylon-vertical .75s ease-in-out infinite alternate}:host([animation=spin]){animation:icon-animation-spin 2s linear infinite normal}:host([animation=spin-reverse]){animation:icon-animation-spin 2s linear infinite reverse}:host([animation=fade]){animation:icon-animation-fade .75s ease-in-out infinite alternate}:host([animation=throb]){animation:icon-animation-throb .75s ease-in-out infinite alternate}@keyframes icon-animation-cylon{from{transform:translateX(-25%)}to{transform:translateX(25%)}}@keyframes icon-animation-cylon-vertical{from{transform:translateY(25%)}to{transform:translateY(-25%)}}@keyframes icon-animation-fade{from{opacity:.1}to{opacity:1}}@keyframes icon-animation-spin{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes icon-animation-throb{from{opacity:.5;transform:scale(0.5)}to{opacity:1;transform:scale(1)}}";const M=["list","menu"],A=class{constructor(e){t(this,e),this.postChange=n(this,"postChange"),this.postLanguageOptionInitiallyActive=n(this,"postLanguageOptionInitiallyActive")}validateCode(){u(this,"code","string")}validateVariant(){h(this,"variant",M)}validateName(){g(this,"name","string")}validateUrl(){f(this,"url")}componentDidLoad(){if(this.validateCode(),this.validateName(),this.validateUrl(),!this.name&&this.isNameRequired())throw new Error('The "name" property of the post-language-option component is required when the full language name is not displayed.');this.active&&this.postLanguageOptionInitiallyActive.emit(this.code)}async select(){this.active=!0,this.emitChange()}emitChange(){this.postChange.emit(this.code)}isNameRequired(){return this.host.textContent.toLowerCase()===this.code.toLowerCase()}render(){const t=this.code.toLowerCase(),i="menu"===this.variant?"menuitem":void 0,n=t=>{"Enter"!==t.key&&" "!==t.key||this.emitChange()};return e(o,{key:"565abb06373e341d429242f6d1943edfdb20f8d7","data-version":a},this.url?e("a",{role:i,"aria-current":this.active?"page":void 0,href:this.url,hrefLang:t,lang:t,onClick:()=>this.emitChange(),onKeyDown:n},e("slot",null),e("span",{class:"visually-hidden"},this.name)):e("button",{role:i,"aria-current":this.active?"true":void 0,lang:t,onClick:()=>this.emitChange(),onKeyDown:n},e("slot",null),e("span",{class:"visually-hidden"},this.name)))}get host(){return i(this)}static get watchers(){return{code:["validateCode"],variant:["validateVariant"],name:["validateName"],url:["validateUrl"]}}};A.style="@keyframes popIn{from{transform:scale(0.9);opacity:0;transition-property:transform,opacity,overlay,display;transition-behavior:allow-discrete;transition-duration:var(--post-transition-duration, 0.35s);transition-timing-function:linear(0, 0.007, 0.029 2.2%, 0.118 4.7%, 0.625 14.4%, 0.826 19%, 0.902, 0.962, 1.008 26.1%, 1.041 28.7%, 1.064 32.1%, 1.07 36%, 1.061 40.5%, 1.015 53.4%, 0.999 61.6%, 0.995 71.2%, 1)}to{opacity:1;transform:scale(1)}}post-language-option{display:inline-block}post-language-option button{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;user-select:none;appearance:button}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-language-option button{background-color:ButtonFace !important}post-language-option button:hover{background-color:Highlight !important}}post-language-option button .visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}post-language-option a{color:var(--post-current-fg);text-decoration:none}post-language-option :is(a,button){cursor:pointer;display:flex;align-items:center;justify-content:center;width:100%;height:100%;text-transform:uppercase}post-language-option :is(a,button){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}post-language-option :is(a,button):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;outline-offset:-2px !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-language-option :is(a,button):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-language-option :is(a,button):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;outline-offset:-2px !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-language-option :is(a,button):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}post-language-option:where([variant=list]) :is(a,button){padding-inline:0;width:40px;height:40px;border-radius:2px}post-language-option:where([variant=list]) :is(a,button):hover{color:#504f4b}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-language-option:where([variant=list]) :is(a,button){border:1px solid ButtonBorder;color:ButtonText}}post-language-option:where([variant=list])[active]:not([active=false]) :is(a,button){background-color:#050400 !important;color:#fff;pointer-events:none}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-language-option:where([variant=list])[active]:not([active=false]) :is(a,button){background-color:Highlight !important;color:HighlightText}}post-language-option:where([variant=menu]){min-width:72px}post-language-option:where([variant=menu])[active]:not([active=false]){display:none}post-language-option:where([variant=menu]) :is(a,button){padding-block:13px;padding-inline:16px;box-sizing:border-box;justify-content:flex-start;position:relative;border-radius:0}post-language-option:where([variant=menu]) :is(a,button):hover{color:#fff;background-color:#504f4b}post-language-option:where([variant=menu]):first-child :is(a,button){border-start-start-radius:4px;border-start-end-radius:4px}post-language-option:where([variant=menu]):last-child :is(a,button){border-end-start-radius:4px;border-end-end-radius:4px}";const C=class{constructor(e){t(this,e),this.menuId=`p${m(11)}`,this.listSpanId=`list-span-${m(11)}`,this.variant="list"}get languageOptions(){return Array.from(this.host.querySelectorAll("post-language-option"))}validateCaption(){u(this,"caption","string")}validateDescription(){u(this,"description","string")}validateVariant(){h(this,"variant",M),this.updateChildrenVariant()}componentDidLoad(){this.validateCaption(),this.validateDescription(),this.validateVariant(),this.updateChildrenVariant()}handlePostChange(t){this.activeLang=t.detail,this.languageOptions.forEach((t=>{t.code&&t.code===this.activeLang?t.setAttribute("active",""):t.removeAttribute("active")})),"menu"===this.variant&&this.host.shadowRoot.querySelector("post-menu").hide()}handleInitiallyActive(t){this.activeLang=t.detail}updateChildrenVariant(){this.languageOptions.forEach((t=>{t.setAttribute("variant",this.variant),t.setAttribute("role","menu"==this.variant?"menuitem":"listitem")}))}renderList(){return e(o,{"data-version":a},e("div",{class:"post-language-switch-list",role:"list","aria-label":this.caption,"aria-describedby":this.listSpanId},e("span",{id:this.listSpanId,class:"visually-hidden"},this.description),e("slot",null)))}renderDropdown(){return e(o,{"data-version":a},e("post-menu-trigger",{for:this.menuId},e("button",{class:"post-language-switch-trigger"},this.activeLang,e("span",{class:"visually-hidden"},this.caption),e("span",{class:"visually-hidden"},this.description),e("post-icon",{"aria-hidden":"true",name:"chevrondown"}))),e("post-menu",{id:this.menuId,class:"post-language-switch-dropdown-container","aria-label":this.caption,role:"menu"},e("slot",null)))}render(){return"list"===this.variant?this.renderList():this.renderDropdown()}get host(){return i(this)}static get watchers(){return{caption:["validateCaption"],description:["validateDescription"],variant:["validateVariant"]}}};(function(t,e,o,i){var n,a=arguments.length,s=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(s=(a<3?n(s):a>3?n(e,o,s):n(e,o))||s);a>3&&s&&Object.defineProperty(e,o,s)})([p("post-language-option")],C.prototype,"handlePostChange",null),C.style=":host{display:flex !important;flex-wrap:wrap;gap:.5rem}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.post-language-switch-dropdown-container{display:flex;flex-direction:column}.post-language-switch-trigger{cursor:pointer;text-transform:uppercase;padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;user-select:none;appearance:button;text-decoration:none;display:inline-flex;align-items:center;gap:6px;border-radius:24px;font-size:16px;padding:3px 10px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.post-language-switch-trigger{background-color:ButtonFace !important}.post-language-switch-trigger:hover{background-color:Highlight !important}}.post-language-switch-trigger{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.post-language-switch-trigger:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.post-language-switch-trigger:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.post-language-switch-trigger:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.post-language-switch-trigger:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.post-language-switch-trigger:not(:disabled):hover,.post-language-switch-trigger.pretend-hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}.post-language-switch-trigger post-icon{height:24px;width:24px}.post-language-switch-trigger[aria-expanded=true]{background-color:#050400;color:#fff}.post-language-switch-trigger[aria-expanded=true] post-icon{transform:rotate(180deg)}.post-language-switch-trigger[aria-expanded=true]:hover{background-color:#504f4b;color:#fff}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.post-language-switch-trigger{border:1px solid ButtonBorder}.post-language-switch-trigger[aria-expanded=true] post-icon,.post-language-switch-trigger:hover post-icon{color:HighlightText}}post-menu::part(menu){padding-block:0}";const H=class{constructor(e){t(this,e),this.titleHidden=!1,this.horizontal=!1}componentWillLoad(){this.titleId=`title-${this.host.id||m(6)}`}componentDidLoad(){this.checkTitle()}checkTitle(){this.titleEl.textContent.trim()||console.error("Please provide a title to the list component. Title is mandatory for accessibility purposes.")}render(){return e(o,{key:"36b2afb0224903b411ca77257ab80d0a455bdf82","data-version":a},e("div",{key:"af0b3536d697097bc841a7ea50871fc69c230aee",ref:t=>this.titleEl=t,id:this.titleId,class:"list-title"+(this.titleHidden?" visually-hidden":"")},e("slot",{key:"4e115aa68fdbb2c674065e7644f326e0990b4867"})),e("div",{key:"49c0032b0baca56af8015d457a2d134dc0a9d39b",role:"list","aria-labelledby":this.titleId},e("slot",{key:"ec67e9a226b003c6f2e9aca019bef483fa22011e",name:"post-list-item"})))}get host(){return i(this)}};H.style="@keyframes popIn{from{transform:scale(0.9);opacity:0;transition-property:transform,opacity,overlay,display;transition-behavior:allow-discrete;transition-duration:var(--post-transition-duration, 0.35s);transition-timing-function:linear(0, 0.007, 0.029 2.2%, 0.118 4.7%, 0.625 14.4%, 0.826 19%, 0.902, 0.962, 1.008 26.1%, 1.041 28.7%, 1.064 32.1%, 1.07 36%, 1.061 40.5%, 1.015 53.4%, 0.999 61.6%, 0.995 71.2%, 1)}to{opacity:1;transform:scale(1)}}post-list{display:flex;flex-direction:column;gap:var(--post-list-title-gap, 0)}post-list>[role=list]{display:flex;flex-direction:column;gap:var(--post-list-item-gap, 0)}post-list:where([horizontal]:not([horizontal=false])){flex-direction:row;align-items:center}post-list:where([horizontal]:not([horizontal=false]))>[role=list]{flex-direction:row;align-items:center}post-list>.list-title.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}";const L=class{constructor(e){t(this,e)}connectedCallback(){this.host.setAttribute("slot","post-list-item")}render(){return e(o,{key:"c6e5d38b3b01e37bb59cf31d64228e12dcd47bde",role:"listitem",slot:"post-list-item",version:a},e("slot",{key:"0e156cf6e671ff4835b0262ef44b9e4342e58b94"}))}get host(){return i(this)}};L.style=":host{display:flex}";const $=class{constructor(e){t(this,e)}validateUrl(){f(this,"url")}componentDidLoad(){this.validateUrl(),this.checkDescription()}checkDescription(){this.host.textContent||console.warn("Be sure to add descriptive text in the post-logo to ensure good accessibility of the component.")}render(){const t=this.url&&("string"==typeof this.url?this.url:this.url.href);return e(o,{key:"d6279e660f4e48e1810a76cd7449a964908a327f","data-version":a},e(t?"a":"span",{key:"aa1c6764aafb74cd7c670cc5281f267df5e684e2",class:"logo "+(t?"logo-link":""),...t?{href:t}:{}},e("span",{key:"ab4ab45ed0b58d309aef262335c2bfb12f42b5d6",class:"description"},e("slot",{key:"4ddbcb53683853723b426a76b4614bee59d83777",onSlotchange:()=>this.checkDescription()})),e("svg",{key:"2c78f3b6bb6364f5872032aeb32e29d315451c4d",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 72 72","aria-hidden":"true"},e("g",{key:"8d02b5cf5b5f88f52dcf49c0d40f6153a3dc5714",id:"Logo"},e("rect",{key:"18901557af215a699c6070638c21e7ad552c071a",fill:"#ffcc00",x:"0",y:"0",width:"72",height:"72"}),e("polygon",{key:"56d26b229eb79d87ad41a8b1d8a98937150b1e6d",fill:"#ff0000",points:"34,32.3 34,19 19.7,19 19.7,29.1 10,29.1 10,42.9 19.7,42.9 19.7,53 34,53 34,39.7 30.6,39.7 30.6,49.8 23.1,49.8 23.1,39.7 13.4,39.7 13.4,32.3 23.1,32.3 23.1,22.2 30.6,22.2 30.6,32.3"}),e("path",{key:"f1a2f2083359e4204c8af9d1e75d27c8b50df480",d:"M53.56234,31.10526c0,2.41272-1.99154,4.29475-4.51723,4.29475H45.2v-8.3h3.84511C51.66802,27.1,53.56234,28.78889,53.56234,31.10526z M50.69666,19H36v34h9.2V42.9h5.49666c6.75131,0,11.9971-5.15137,11.9971-11.8057C62.69376,24.39136,57.35099,19,50.69666,19z"})))))}get host(){return i(this)}static get watchers(){return{url:["validateUrl"]}}};$.style=":host,.logo{display:inline-block}:host,:host .logo>svg,.logo,.logo .logo>svg{height:100%}.description{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.logo-link{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.logo-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.logo-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.logo-link:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.logo-link:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.logo-link :focus,:focus-visible{border-radius:2px}";const D=class{constructor(e){t(this,e),this.canScrollLeft=!1,this.canScrollRight=!1,this.scrollRight=this.scrollRight.bind(this),this.scrollLeft=this.scrollLeft.bind(this),this.handleMutations=this.handleMutations.bind(this),this.checkScrollability=this.checkScrollability.bind(this),this.resizeObserver=new ResizeObserver(this.checkScrollability),this.mutationObserver=new MutationObserver(this.handleMutations)}componentDidLoad(){setTimeout((()=>{this.fixLayoutShift(),this.checkScrollability()})),this.resizeObserver.observe(this.navbar),this.mutationObserver.observe(this.navbar,{subtree:!0,childList:!0}),this.navbar.addEventListener("scrollend",this.checkScrollability)}disconnectedCallback(){this.mutationObserver.disconnect(),this.resizeObserver.disconnect(),this.navbar.removeEventListener("scrollend",this.checkScrollability)}stopScrolling(){this.scrollRepeatInterval&&clearInterval(this.scrollRepeatInterval)}async handleMutations(t){const e=t.flatMap((t=>Array.from(t.addedNodes)));await Promise.all(e.map((t=>t.componentOnReady?t.componentOnReady():Promise.resolve(t)))),this.fixLayoutShift(),this.checkScrollability()}get navigationItems(){return Array.from(this.navbar.querySelectorAll(":is(a, button):not(post-megadropdown *)"))}fixLayoutShift(){this.navigationItems.filter((t=>!t.matches(":has(.nav-el-active)"))).forEach((t=>{t.innerHTML=`\n <span class="nav-el-active">${t.innerHTML}</span>\n <span class="nav-el-inactive" aria-hidden="true">${t.innerHTML}</span>\n `}))}get canScroll(){return this.canScrollLeft||this.canScrollRight}checkScrollability(){const{scrollLeft:t,scrollWidth:e,clientWidth:o}=this.navbar;e===o?this.canScrollLeft=this.canScrollRight=!1:(this.canScrollLeft=Math.floor(t)>0,this.canScrollRight=Math.ceil(o+t)<e)}handleScrollButtonClick(t,e){if(!this.canScroll||0!==t.button)return;this.temporarilyDisableNavbar();const o="right"===e?this.scrollRight:this.scrollLeft;o(),this.scrollRepeatInterval=setInterval((()=>{o()}),100)}scrollRight(){const t=document.querySelector(".scroll-right").getBoundingClientRect().left;for(const e of this.navigationItems){const{right:o,width:i}=e.getBoundingClientRect();if(!(o-.25*i<t))return void this.navbar.scrollBy({left:o-t})}}scrollLeft(){const t=document.querySelector(".scroll-left").getBoundingClientRect().right;for(const e of this.navigationItems.reverse()){const{left:o,width:i}=e.getBoundingClientRect();if(!(o+.25*i>t))return void this.navbar.scrollBy({left:o-t})}}temporarilyDisableNavbar(){this.navbarDisableTimer&&clearTimeout(this.navbarDisableTimer),this.navbar.setAttribute("inert",""),this.navbarDisableTimer=setTimeout((()=>{this.navbar.removeAttribute("inert")}),400)}render(){return e(o,{key:"94f9013416e0f22f7a571217495526cc03ed324b",slot:"post-mainnavigation",version:a},e("div",{key:"b82f1577a2a35adf39afbf8120f2a98b669048f0","aria-hidden":"true",class:{"scroll-control scroll-left":!0,"d-none":!this.canScrollLeft},onMouseDown:t=>this.handleScrollButtonClick(t,"left")},e("post-icon",{key:"6a83d6c33cd178eb415ef4e4a2f61af4869e03ae","aria-hidden":"true",name:"chevronleft"})),e("nav",{key:"0ef8a3dd934e9de55099be6d10a8e8f8d7d3378b",ref:t=>this.navbar=t},e("slot",{key:"08191f7821e57ed7d516b79bd42a0c79f7d40d34"})),e("div",{key:"b957afc9c60702dfc51ff33fa6fd2084db3cb3e8","aria-hidden":"true",class:{"scroll-control scroll-right":!0,"d-none":!this.canScrollRight},onMouseDown:t=>this.handleScrollButtonClick(t,"right")},e("post-icon",{key:"c9ef19c1234443a51a32ffc380ff7247f3f22e08","aria-hidden":"true",name:"chevronright"})))}};D.style='post-mainnavigation post-list-item>a{text-decoration:none;border-radius:0}post-mainnavigation post-list-item post-megadropdown-trigger button{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;user-select:none;appearance:button;text-align:start}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-mainnavigation post-list-item post-megadropdown-trigger button{background-color:ButtonFace !important}post-mainnavigation post-list-item post-megadropdown-trigger button:hover{background-color:Highlight !important}}post-mainnavigation post-list-item>a,post-mainnavigation post-list-item post-megadropdown-trigger button{flex:0 0 fit-content;white-space:nowrap;display:flex;align-items:center;justify-content:space-between}post-mainnavigation post-list-item>a:hover,post-mainnavigation post-list-item post-megadropdown-trigger button:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}post-mainnavigation post-list-item>a:focus-visible,post-mainnavigation post-list-item post-megadropdown-trigger button:focus-visible{border-radius:4px;outline-offset:-2px !important}post-mainnavigation>button::after,post-mainnavigation post-megadropdown-trigger button::after{content:"";mask-image:url("data:image/svg+xml,%3Csvg viewBox=\'0 0 32 32\' xmlns=\'http://www.w3.org/2000/svg\'%3E%3Cpath d=\'m23.6 13.2-7.5 7.6-7.6-7.6.9-.9 6.6 6.6 6.6-6.6z\'/%3E%3C/svg%3E");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;height:24px;width:24px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-mainnavigation>button,post-mainnavigation post-megadropdown-trigger button{border:1px solid ButtonBorder !important}post-mainnavigation>button:hover::after,post-mainnavigation>button[aria-expanded=true]::after,post-mainnavigation post-megadropdown-trigger button:hover::after,post-mainnavigation post-megadropdown-trigger button[aria-expanded=true]::after{color:HighlightText}}@media screen and (min-width: 1024px){post-mainnavigation{display:block;position:relative;height:var(--post-main-navigation-height);background:#fff;user-select:none}post-mainnavigation nav{flex:1 1 auto;overflow:hidden;scroll-behavior:smooth}post-mainnavigation .scroll-control{cursor:pointer;position:absolute;inset-block:0;z-index:5;padding:16px;background:#fff;box-shadow:var(--post-device-elevation-500);line-height:1}post-mainnavigation .scroll-control.scroll-left{inset-inline-start:0}post-mainnavigation .scroll-control.scroll-right{inset-inline-end:0}post-mainnavigation .scroll-control.d-none{display:none}post-mainnavigation .scroll-control post-icon{font-size:1rem}post-mainnavigation post-list>[role=list]{flex-direction:row;max-width:100vw}post-mainnavigation post-list-item>a,post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{position:sticky;padding-inline:12px;height:var(--post-main-navigation-height);gap:4px;font-size:16px;z-index:4}}@media screen and (min-width: 1024px)and (max-width: 1023.98px){post-mainnavigation post-list-item>a,post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{z-index:5}}@media screen and (min-width: 1024px){post-mainnavigation post-list-item>a .nav-el-active,post-mainnavigation post-list-item>button .nav-el-active,post-mainnavigation post-list-item post-megadropdown-trigger button .nav-el-active{font-weight:700;text-align:center;opacity:0}}@media screen and (min-width: 1024px){post-mainnavigation post-list-item>a .nav-el-inactive,post-mainnavigation post-list-item>button .nav-el-inactive,post-mainnavigation post-list-item post-megadropdown-trigger button .nav-el-inactive{position:absolute;opacity:1;text-align:center;width:100%;inset-inline-start:0}}@media screen and (min-width: 1024px){post-mainnavigation post-list-item>a.selected,post-mainnavigation post-list-item>a[aria-expanded=true],post-mainnavigation post-list-item>button.selected,post-mainnavigation post-list-item>button[aria-expanded=true],post-mainnavigation post-list-item post-megadropdown-trigger button.selected,post-mainnavigation post-list-item post-megadropdown-trigger button[aria-expanded=true]{background-color:#050400;color:#fff;font-weight:700}post-mainnavigation post-list-item>a.selected .nav-el-active,post-mainnavigation post-list-item>a[aria-expanded=true] .nav-el-active,post-mainnavigation post-list-item>button.selected .nav-el-active,post-mainnavigation post-list-item>button[aria-expanded=true] .nav-el-active,post-mainnavigation post-list-item post-megadropdown-trigger button.selected .nav-el-active,post-mainnavigation post-list-item post-megadropdown-trigger button[aria-expanded=true] .nav-el-active{opacity:1}post-mainnavigation post-list-item>a.selected .nav-el-inactive,post-mainnavigation post-list-item>a[aria-expanded=true] .nav-el-inactive,post-mainnavigation post-list-item>button.selected .nav-el-inactive,post-mainnavigation post-list-item>button[aria-expanded=true] .nav-el-inactive,post-mainnavigation post-list-item post-megadropdown-trigger button.selected .nav-el-inactive,post-mainnavigation post-list-item post-megadropdown-trigger button[aria-expanded=true] .nav-el-inactive{opacity:0}}@media screen and (min-width: 1024px){post-mainnavigation post-list-item>a:hover,post-mainnavigation post-list-item>button:hover,post-mainnavigation post-list-item post-megadropdown-trigger button:hover{background-color:#504f4b;color:#fff}}@media screen and (min-width: 1024px)and (max-width: 599.98px){post-mainnavigation post-list-item>a,post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{font-size:14px}}@media screen and (min-width: 1024px){post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{padding-inline-end:12px;transition:border-block-end-color 250ms cubic-bezier(0.4, 0, 0.2, 1)}post-mainnavigation post-list-item>button .nav-el-inactive,post-mainnavigation post-list-item post-megadropdown-trigger button .nav-el-inactive{width:calc(100% - 28px)}post-mainnavigation post-list-item>button::after,post-mainnavigation post-list-item post-megadropdown-trigger button::after{transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}post-mainnavigation post-list-item>button.selected::after,post-mainnavigation post-list-item>button[aria-expanded=true]::after,post-mainnavigation post-list-item post-megadropdown-trigger button.selected::after,post-mainnavigation post-list-item post-megadropdown-trigger button[aria-expanded=true]::after{transform:rotate(180deg)}}@media screen and (min-width: 1024px){post-mainnavigation post-megadropdown button:not(.btn-icon-close),post-mainnavigation post-megadropdown a{width:100%;min-width:100%;height:48px;padding-inline:8px 12px;gap:16px;font-weight:400;position:relative}post-mainnavigation post-megadropdown button:not(.btn-icon-close)::before,post-mainnavigation post-megadropdown a::before{content:"";background-color:#050400;bottom:0;width:100%;height:1px;position:absolute;left:0}post-mainnavigation post-megadropdown button:not(.btn-icon-close).selected,post-mainnavigation post-megadropdown button:not(.btn-icon-close)[aria-expanded=true],post-mainnavigation post-megadropdown a.selected,post-mainnavigation post-megadropdown a[aria-expanded=true]{background-color:#050400;color:#fff}post-mainnavigation post-megadropdown button:not(.btn-icon-close):hover,post-mainnavigation post-megadropdown a:hover{background-color:#504f4b;color:#fff}post-mainnavigation post-megadropdown button:not(.btn-icon-close):hover::before,post-mainnavigation post-megadropdown a:hover::before{background-color:#504f4b}}@media screen and (max-width: 1023.98px){post-mainnavigation nav{transform:none !important}post-mainnavigation .scroll-control{display:none}post-mainnavigation post-list-item>a,post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{width:100%;min-width:100%;height:48px;padding-inline:8px 12px;gap:16px;font-weight:400;position:relative}post-mainnavigation post-list-item>a::before,post-mainnavigation post-list-item>button::before,post-mainnavigation post-list-item post-megadropdown-trigger button::before{content:"";background-color:#050400;bottom:0;width:100%;height:1px;position:absolute;left:0}post-mainnavigation post-list-item>a.selected,post-mainnavigation post-list-item>a[aria-expanded=true],post-mainnavigation post-list-item>button.selected,post-mainnavigation post-list-item>button[aria-expanded=true],post-mainnavigation post-list-item post-megadropdown-trigger button.selected,post-mainnavigation post-list-item post-megadropdown-trigger button[aria-expanded=true]{background-color:#050400;color:#fff}post-mainnavigation post-list-item>a:hover,post-mainnavigation post-list-item>button:hover,post-mainnavigation post-list-item post-megadropdown-trigger button:hover{background-color:#504f4b;color:#fff}post-mainnavigation post-list-item>a:hover::before,post-mainnavigation post-list-item>button:hover::before,post-mainnavigation post-list-item post-megadropdown-trigger button:hover::before{background-color:#504f4b}post-mainnavigation post-list-item>a .nav-el-inactive,post-mainnavigation post-list-item>button .nav-el-inactive,post-mainnavigation post-list-item post-megadropdown-trigger button .nav-el-inactive{display:none}post-mainnavigation>button::after,post-mainnavigation post-megadropdown-trigger button::after{transform:rotate(-90deg)}}';const R=class{constructor(e){t(this,e),this.postToggleMegadropdown=n(this,"postToggleMegadropdown"),this.device=r.get("device"),this.isVisible=!1,this.animationClass=null,this.handleClickOutside=t=>{if("desktop"!==this.device)return;const e=t.target;if(!this.host.contains(e)){if(e instanceof HTMLElement){const t=e.closest("post-megadropdown-trigger");if(t&&t.getAttribute("for")!==this.host.id)return}this.hide(!1)}}}breakpointChange(t){this.device=t.detail,"desktop"===this.device&&this.isVisible&&(this.animationClass=null)}disconnectedCallback(){this.removeListeners(),window.removeEventListener("postBreakpoint:device",this.breakpointChange.bind(this)),R.activeDropdown===this&&(R.activeDropdown=null)}componentWillRender(){this.getFocusableElements()}async toggle(){this.isVisible?this.hide():await this.show()}async show(){R.activeDropdown&&R.activeDropdown!==this&&R.activeDropdown.forceClose(),this.animationClass="slide-in",this.isVisible=!0,R.activeDropdown=this,this.postToggleMegadropdown.emit({isVisible:this.isVisible}),this.firstFocusableEl&&"none"!==window.getComputedStyle(this.firstFocusableEl).display&&this.firstFocusableEl.focus(),this.addListeners()}async hide(t=!0,e=!1){this.postToggleMegadropdown.emit({isVisible:!1,focusParent:t}),e?this.forceClose():this.animationClass="slide-out"}async focusFirst(){this.firstFocusableEl?.focus()}connectedCallback(){window.addEventListener("postBreakpoint:device",this.breakpointChange.bind(this))}forceClose(){this.isVisible=!1,this.animationClass=null,this.postToggleMegadropdown.emit({isVisible:this.isVisible,focusParent:!1}),this.removeListeners()}handleAnimationEnd(){"slide-out"===this.animationClass&&(this.isVisible=!1,this.animationClass=null,R.activeDropdown=null,this.removeListeners())}addListeners(){this.host.addEventListener("keydown",(t=>this.keyboardHandler(t))),document.addEventListener("keyup",(t=>this.handleTabOutside(t))),document.addEventListener("mousedown",this.handleClickOutside)}removeListeners(){this.host.removeEventListener("keydown",(t=>this.keyboardHandler(t))),document.removeEventListener("keyup",(t=>this.handleTabOutside(t))),document.removeEventListener("mousedown",this.handleClickOutside)}getFocusableElements(){const t=Array.from(this.host.querySelectorAll("post-list-item, h3, .back-button")).flatMap((t=>Array.from(k(t))));this.firstFocusableEl=t[0],this.lastFocusableEl=t[t.length-1]}keyboardHandler(t){"Tab"===t.key&&"desktop"!==this.device&&(t.shiftKey&&document.activeElement===this.firstFocusableEl?(t.preventDefault(),this.lastFocusableEl.focus()):t.shiftKey||document.activeElement!==this.lastFocusableEl||(t.preventDefault(),this.firstFocusableEl.focus()))}handleTabOutside(t){"Tab"===t.key&&"desktop"===this.device&&(this.host.contains(t.target)||this.hide(!1))}render(){return e(o,{key:"b322cf2da9bc8f494045644e5a97e98195eae223",version:a},e("div",{key:"6c17be4d41d19b5043736b588468b8e1def70f11",class:`megadropdown-container ${this.animationClass||""}`,style:this.isVisible?{}:{display:"none"},onAnimationEnd:()=>this.handleAnimationEnd()},e("div",{key:"ba33f5c97239fcd7212cb435bfdd64a79b7910d7",class:"megadropdown"},e("slot",{key:"0148730fada5d623b11071b69f9972013fbbcbce",name:"megadropdown-title"}),e("div",{key:"536c1b795d8a2e16ad9a105bd3db98cd9abfc0d6",class:"megadropdown-content"},e("slot",{key:"3f66bfd1661ea42c938a31af6ceb8d1f1bbdbcd0"})),e("div",{key:"2f240c7264663fe6d1877e582a33b599ae137219",onClick:()=>this.hide(!0),class:"back-button"},e("slot",{key:"0ad90d939722d07809fb9ea96ab2bb091ef78c1c",name:"back-button"})),e("div",{key:"1d038e119522ca98cc3ab4cdba178b87febcedb4",onClick:()=>this.hide(!0),class:"close-button"},e("slot",{key:"b4e3dd20b8e14291261b5b7939fadd6a8927c0a2",name:"close-button"})))))}get host(){return i(this)}};R.activeDropdown=null,R.style='@keyframes slide-in{0%{transform:translateX(100%)}100%{transform:translateX(0%)}}@keyframes slide-out{from{transform:translateX(0%)}to{transform:translateX(100%)}}@keyframes slide-down{from{transform:translateY(-100%)}to{transform:translateY(0%)}}@keyframes slide-up{0%{transform:translateY(0%)}100%{transform:translateY(-100%)}}*,::before,::after{box-sizing:border-box}.megadropdown-container{box-shadow:0 8px 6px rgba(0,0,0,.16);position:absolute;background-color:#fafafa;border:none;z-index:1;width:100%;inset-block-start:100%;inset-inline-start:0;border-radius:0}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.megadropdown-container{border-block-end:1px solid CanvasText}}.megadropdown-container.slide-in{animation:slide-down 350ms forwards}.megadropdown-container.slide-out{animation:slide-up 350ms forwards}@media screen and (max-width: 1023.98px){.megadropdown-container{z-index:5;position:fixed;inset-block-start:var(--post-header-navigation-current-inset);inset-inline:0;height:calc(min(var(--post-header-scroll-parent-height, 100dvh),100dvh) - var(--post-header-height));border-block-start:unset;overflow-y:auto;overscroll-behavior:contain}.megadropdown-container.slide-in{animation:slide-in 350ms forwards}.megadropdown-container.slide-out{animation:slide-out 350ms forwards}}@media screen and (min-width: 1024px){.megadropdown-container{max-height:calc(100vh - var(--post-header-height) - 48px);overflow-y:auto}}.megadropdown{padding:31px 40px 40px;background-color:#fafafa}@media screen and (max-width: 1023.98px){.megadropdown{display:flex;flex-direction:column;width:inherit;padding:16px 32px 24px}}@media screen and (max-width: 599.98px){.megadropdown{padding-inline:16px}}.megadropdown .megadropdown-content{gap:1.5rem;display:grid;grid-template-columns:repeat(auto-fit, minmax(min(15vw, 100%), 1fr));grid-auto-rows:1fr auto;grid-auto-flow:dense}@media screen and (max-width: 1023.98px){.megadropdown .megadropdown-content{grid-template-columns:repeat(auto-fit, minmax(min(35vw, 100%), 1fr))}}@media screen and (max-width: 599.98px){.megadropdown .megadropdown-content{grid-template-columns:1fr}}.megadropdown h2{display:none;margin-block:0 8px;font-weight:900}.megadropdown h2 a{text-decoration:none;display:none;font-weight:inherit;border-block:0}@media screen and (max-width: 1023.98px){.megadropdown h2{display:block;font-size:1.25rem}}@media screen and (max-width: 599.98px){.megadropdown h2{font-size:1.125rem}}.megadropdown post-list{display:grid;grid-row:span 2;grid-template-rows:subgrid;row-gap:0px}.megadropdown post-list>[role=list]{flex-direction:unset;display:unset}.megadropdown post-list>*{width:100%}.megadropdown post-list .list-title{display:flex;flex-direction:column-reverse;height:100%}.megadropdown post-list .list-title h3{font-size:20px;display:block;font-weight:900}.megadropdown post-list .list-title h3:not(:has(a)),.megadropdown post-list .list-title h3 a{padding:16px 12px 14px 8px}.megadropdown post-list .list-title h3:not(:has(a)){position:relative}.megadropdown post-list .list-title h3:not(:has(a))::before{content:"";background-color:#050400;inset-block-end:0;inset-inline-start:0;width:100%;height:2px;position:absolute}.megadropdown post-list .list-title h3 a{border-radius:0;text-decoration:none;font-size:inherit;display:flex;align-items:center;justify-content:space-between;min-height:53px;width:100%;min-width:100%;height:48px;padding-inline:8px 12px;gap:16px;font-weight:400;position:relative;height:unset;font-weight:900}.megadropdown post-list .list-title h3 a::before{content:"";background-color:#050400;bottom:0;width:100%;height:1px;position:absolute;left:0}.megadropdown post-list .list-title h3 a.selected,.megadropdown post-list .list-title h3 a[aria-expanded=true]{background-color:#050400;color:#fff}.megadropdown post-list .list-title h3 a:hover{background-color:#504f4b;color:#fff}.megadropdown post-list .list-title h3 a:hover::before{background-color:#504f4b}.megadropdown post-list .list-title h3 a::before{height:2px}@media screen and (max-width: 1023.98px){.megadropdown post-list .list-title h3{font-size:1rem}.megadropdown post-list .list-title h3:not(:has(a)),.megadropdown post-list .list-title h3 a{padding:14px 12px 12px 8px}}@media screen and (max-width: 599.98px){.megadropdown post-list .list-title h3{font-size:.875rem}}.megadropdown post-list-item>a{padding-block:13px 12px;padding-inline-start:8px;display:flex;text-decoration:none;width:100%;min-width:100%;height:auto;min-height:48px;white-space:normal;word-break:break-word}.megadropdown post-list-item>a:hover{border-block-width:0}@media screen and (min-width: 1024px){.megadropdown post-list-item>a{font-size:1.25rem}}@media screen and (max-width: 1023.98px){.megadropdown post-list-item>a{padding-block:12px 11px}}@media screen and (max-width: 599.98px){.megadropdown post-list-item>a{font-size:.875rem}}.megadropdown .back-button{display:none;margin-block-end:2rem}.megadropdown .back-button .btn{width:auto}@media screen and (max-width: 1023.98px){.megadropdown .back-button{order:-1;display:block}}.megadropdown .close-button{position:absolute;inset-block-start:1rem;inset-inline-end:1rem}@media screen and (max-width: 1023.98px){.megadropdown .close-button{display:none}}';const j=class{constructor(e){t(this,e),this.ariaExpanded=!1,this.slottedButton=null,this.wasExpanded=!1,this.handleKeyDown=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.handleToggle(),this.megadropdown&&!this.ariaExpanded&&setTimeout((()=>this.megadropdown.focusFirst()),100))},this.handleToggleMegadropdown=t=>{t.target.id===this.for&&(this.ariaExpanded=t.detail.isVisible,this.wasExpanded&&!this.ariaExpanded&&t.detail.focusParent&&setTimeout((()=>{this.slottedButton?.focus()}),100),this.wasExpanded=this.ariaExpanded,this.slottedButton&&this.slottedButton.setAttribute("aria-expanded",this.ariaExpanded.toString()))}}validateControlFor(){u(this,"for","string")}get megadropdown(){const t=document.getElementById(this.for);return t&&"post-megadropdown"===t.localName?t:null}handleToggle(){this.megadropdown?this.megadropdown.toggle():console.warn(`No post-megadropdown found with ID: ${this.for}`)}componentDidLoad(){this.validateControlFor(),document.addEventListener("postToggleMegadropdown",this.handleToggleMegadropdown),this.slottedButton=this.host.querySelector("button"),this.slottedButton?(this.slottedButton.setAttribute("aria-haspopup","menu"),this.slottedButton.addEventListener("click",(()=>{this.handleToggle()})),this.slottedButton.addEventListener("keydown",this.handleKeyDown)):console.warn("No button found within post-megadropdown-trigger")}disconnectedCallback(){document.removeEventListener("postToggleMegadropdown",this.handleToggleMegadropdown)}render(){return e(o,{key:"315c957a6cf876da48209096b9f30a7d94e72c08","data-version":a,"tab-index":"-1"},e("button",{key:"2533ded6277d2cf97c0c108df49823833486b4de"},e("slot",{key:"bf9b18545e11b30eb40d351794ca104035ed47db"})))}get host(){return i(this)}static get watchers(){return{for:["validateControlFor"]}}};(function(t,e,o,i){var n,a=arguments.length,s=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(s=(a<3?n(s):a>3?n(e,o,s):n(e,o))||s);a>3&&s&&Object.defineProperty(e,o,s)})([p("post-megadropdown",{ignoreNestedComponents:!1})],j.prototype,"handleToggleMegadropdown",void 0),j.style="post-megadropdown-trigger{width:100%;position:relative;z-index:3}@media screen and (max-width: 1023.98px){post-megadropdown-trigger{z-index:4}}";const O=class{constructor(e){t(this,e),this.toggleMenu=n(this,"toggleMenu"),this.lastFocusedElement=null,this.KEYCODES={SPACE:" ",ENTER:"Enter",UP:"ArrowUp",DOWN:"ArrowDown",TAB:"Tab",HOME:"Home",END:"End",ESCAPE:"Escape"},this.placement="bottom",this.isVisible=!1,this.handleKeyDown=t=>{t.stopPropagation(),t.key!==this.KEYCODES.ESCAPE?Object.values(this.KEYCODES).includes(t.key)&&this.controlKeyDownHandler(t):this.toggle(this.host)},this.handlePostToggle=t=>{this.isVisible=t.detail,this.toggleMenu.emit(this.isVisible),requestAnimationFrame((()=>{if(this.isVisible){this.lastFocusedElement=this.root?.activeElement;const t=this.getSlottedItems();t.length>0&&t[0].focus()}else this.lastFocusedElement&&this.lastFocusedElement.focus()}))},this.handleClick=t=>{["BUTTON","A","INPUT","SELECT","TEXTAREA"].includes(t.target.tagName)&&this.toggle(this.host)}}validatePlacement(){h(this,"placement",b)}connectedCallback(){this.root=v(this.host),this.host.addEventListener("keydown",this.handleKeyDown),this.host.addEventListener("click",this.handleClick)}disconnectedCallback(){this.host.removeEventListener("keydown",this.handleKeyDown),this.host.removeEventListener("click",this.handleClick),this.popoverRef?.removeEventListener("postToggle",this.handlePostToggle)}componentDidLoad(){this.validatePlacement(),this.popoverRef&&this.popoverRef.addEventListener("postToggle",this.handlePostToggle)}async toggle(t){this.popoverRef?await this.popoverRef.toggle(t):console.error("toggle: popoverRef is null or undefined")}async show(t){this.popoverRef?await this.popoverRef.show(t):console.error("show: popoverRef is null or undefined")}async hide(){this.popoverRef?await this.popoverRef.hide():console.error("hide: popoverRef is null or undefined")}controlKeyDownHandler(t){const e=this.getSlottedItems();if(!e.length)return;let o=e.findIndex((t=>t===v(t).activeElement));switch(t.key){case this.KEYCODES.UP:t.preventDefault(),o=(o-1+e.length)%e.length;break;case this.KEYCODES.DOWN:t.preventDefault(),o=(o+1)%e.length;break;case this.KEYCODES.HOME:o=0;break;case this.KEYCODES.END:t.preventDefault(),o=e.length-1;break;case this.KEYCODES.SPACE:return void this.toggle(this.host);case this.KEYCODES.TAB:this.toggle(this.host)}e[o]&&e[o].focus()}getSlottedItems(){const t=this.host.shadowRoot.querySelector("slot");return(t?t.assignedElements():[]).flatMap((t=>t instanceof HTMLSlotElement?t.assignedElements():t)).flatMap((t=>Array.from(k(t))))}render(){return e(o,{key:"bca8873f7f98b03d3e6952bce4990d1c435bd5ec","data-version":a,role:"menu"},e("post-popovercontainer",{key:"805c1e528c4af6e35b7881395b2f9de9e430f8c8",placement:this.placement,ref:t=>this.popoverRef=t},e("div",{key:"f534119e208f2bb387f39824736aee766f550fa8",part:"menu"},e("slot",{key:"ec9ae42dab9aebd93aafdbebd15d8c39736c84df"}))))}get host(){return i(this)}static get watchers(){return{placement:["validatePlacement"]}}};(function(t,e,o,i){var n,a=arguments.length,s=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(s=(a<3?n(s):a>3?n(e,o,s):n(e,o))||s);a>3&&s&&Object.defineProperty(e,o,s)})([p("post-popovercontainer")],O.prototype,"handlePostToggle",void 0),O.style="@keyframes popIn{from{transform:scale(0.9);opacity:0;transition-property:transform,opacity,overlay,display;transition-behavior:allow-discrete;transition-duration:var(--post-transition-duration, 0.35s);transition-timing-function:linear(0, 0.007, 0.029 2.2%, 0.118 4.7%, 0.625 14.4%, 0.826 19%, 0.902, 0.962, 1.008 26.1%, 1.041 28.7%, 1.064 32.1%, 1.07 36%, 1.061 40.5%, 1.015 53.4%, 0.999 61.6%, 0.995 71.2%, 1)}to{opacity:1;transform:scale(1)}}:host{display:block}:where([part=menu]){display:flex;flex-direction:column;padding-block:.5rem}";const B=class{constructor(e){t(this,e),this.ariaExpanded=!1,this.slottedButton=null,this.handleKeyDown=t=>{"ArrowUp"!==t.key&&"ArrowDown"!==t.key||(t.preventDefault(),this.handleToggle())}}validateControlFor(){u(this,"for","string")}get menu(){const t=this.root.getElementById(this.for);return t&&"post-menu"===t.localName?t:null}handleToggle(){this.menu?this.menu.toggle(this.host):console.warn(`No post-menu found with ID: ${this.for}`)}connectedCallback(){this.root=v(this.host)}componentDidLoad(){if(this.validateControlFor(),this.slottedButton=this.host.querySelector("button"),!this.slottedButton){const t=this.host.querySelector(".menu-trigger-webc");if(t?.shadowRoot){const e=t.shadowRoot.querySelector("button");e&&(this.slottedButton=e)}}this.slottedButton?(this.slottedButton.setAttribute("aria-haspopup","menu"),this.menu&&this.slottedButton&&this.menu.addEventListener("toggleMenu",(t=>{this.ariaExpanded=t.detail,this.slottedButton.setAttribute("aria-expanded",this.ariaExpanded.toString())})),this.slottedButton.addEventListener("click",(()=>{this.handleToggle()})),this.slottedButton.addEventListener("keydown",this.handleKeyDown)):console.warn("No button found within post-menu-trigger")}render(){return e(o,{key:"76b3c59cdae5c78cefaaf1ea2a9668a77bddd37e","data-version":a,"tab-index":"-1"},e("slot",{key:"3835d87c3795e694f7493ceb735bd638bdd2dea1"}))}get host(){return i(this)}static get watchers(){return{for:["validateControlFor"]}}};B.style=":host{display:inline-block}";const P=Math.min,F=Math.max,N=Math.round,I=Math.floor,W=t=>({x:t,y:t}),_={left:"right",right:"left",bottom:"top",top:"bottom"},U={start:"end",end:"start"};function V(t,e,o){return F(t,P(e,o))}function q(t,e){return"function"==typeof t?t(e):t}function G(t){return t.split("-")[0]}function X(t){return t.split("-")[1]}function Y(t){return"x"===t?"y":"x"}function K(t){return"y"===t?"height":"width"}const Q=new Set(["top","bottom"]);function Z(t){return Q.has(G(t))?"y":"x"}function J(t){return Y(Z(t))}function tt(t){return t.replace(/start|end/g,(t=>U[t]))}const et=["left","right"],ot=["right","left"],it=["top","bottom"],nt=["bottom","top"];function at(t){return t.replace(/left|right|bottom|top/g,(t=>_[t]))}function st(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function rt(t){const{x:e,y:o,width:i,height:n}=t;return{width:i,height:n,top:o,left:e,right:e+i,bottom:o+n,x:e,y:o}}function lt(t,e,o){let{reference:i,floating:n}=t;const a=Z(e),s=J(e),r=K(s),l=G(e),c="y"===a,d=i.x+i.width/2-n.width/2,p=i.y+i.height/2-n.height/2,h=i[r]/2-n[r]/2;let g;switch(l){case"top":g={x:d,y:i.y-n.height};break;case"bottom":g={x:d,y:i.y+i.height};break;case"right":g={x:i.x+i.width,y:p};break;case"left":g={x:i.x-n.width,y:p};break;default:g={x:i.x,y:i.y}}switch(X(e)){case"start":g[s]-=h*(o&&c?-1:1);break;case"end":g[s]+=h*(o&&c?-1:1)}return g}async function ct(t,e){var o;void 0===e&&(e={});const{x:i,y:n,platform:a,rects:s,elements:r,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:g=0}=q(e,t),u=st(g),f=r[h?"floating"===p?"reference":"floating":p],m=rt(await a.getClippingRect({element:null==(o=await(null==a.isElement?void 0:a.isElement(f)))||o?f:f.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(r.floating)),boundary:c,rootBoundary:d,strategy:l})),b="floating"===p?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,v=await(null==a.getOffsetParent?void 0:a.getOffsetParent(r.floating)),w=await(null==a.isElement?void 0:a.isElement(v))&&await(null==a.getScale?void 0:a.getScale(v))||{x:1,y:1},x=rt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:b,offsetParent:v,strategy:l}):b);return{top:(m.top-x.top+u.top)/w.y,bottom:(x.bottom-m.bottom+u.bottom)/w.y,left:(m.left-x.left+u.left)/w.x,right:(x.right-m.right+u.right)/w.x}}function dt(t){const e=P(...t.map((t=>t.left))),o=P(...t.map((t=>t.top)));return{x:e,y:o,width:F(...t.map((t=>t.right)))-e,height:F(...t.map((t=>t.bottom)))-o}}const pt=new Set(["left","top"]);function ht(){return"undefined"!=typeof window}function gt(t){return mt(t)?(t.nodeName||"").toLowerCase():"#document"}function ut(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function ft(t){var e;return null==(e=(mt(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function mt(t){return!!ht()&&(t instanceof Node||t instanceof ut(t).Node)}function bt(t){return!!ht()&&(t instanceof Element||t instanceof ut(t).Element)}function vt(t){return!!ht()&&(t instanceof HTMLElement||t instanceof ut(t).HTMLElement)}function wt(t){return!(!ht()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof ut(t).ShadowRoot)}const xt=new Set(["inline","contents"]);function yt(t){const{overflow:e,overflowX:o,overflowY:i,display:n}=Dt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!xt.has(n)}const kt=new Set(["table","td","th"]);function St(t){return kt.has(gt(t))}const Tt=[":popover-open",":modal"];function Et(t){return Tt.some((e=>{try{return t.matches(e)}catch(t){return!1}}))}const zt=["transform","translate","scale","rotate","perspective"],Mt=["transform","translate","scale","rotate","perspective","filter"],At=["paint","layout","strict","content"];function Ct(t){const e=Ht(),o=bt(t)?Dt(t):t;return zt.some((t=>!!o[t]&&"none"!==o[t]))||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||Mt.some((t=>(o.willChange||"").includes(t)))||At.some((t=>(o.contain||"").includes(t)))}function Ht(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Lt=new Set(["html","body","#document"]);function $t(t){return Lt.has(gt(t))}function Dt(t){return ut(t).getComputedStyle(t)}function Rt(t){return bt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function jt(t){if("html"===gt(t))return t;const e=t.assignedSlot||t.parentNode||wt(t)&&t.host||ft(t);return wt(e)?e.host:e}function Ot(t){const e=jt(t);return $t(e)?t.ownerDocument?t.ownerDocument.body:t.body:vt(e)&&yt(e)?e:Ot(e)}function Bt(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const n=Ot(t),a=n===(null==(i=t.ownerDocument)?void 0:i.body),s=ut(n);if(a){const t=Pt(s);return e.concat(s,s.visualViewport||[],yt(n)?n:[],t&&o?Bt(t):[])}return e.concat(n,Bt(n,[],o))}function Pt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ft(t){const e=Dt(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const n=vt(t),a=n?t.offsetWidth:o,s=n?t.offsetHeight:i,r=N(o)!==a||N(i)!==s;return r&&(o=a,i=s),{width:o,height:i,$:r}}function Nt(t){return bt(t)?t:t.contextElement}function It(t){const e=Nt(t);if(!vt(e))return W(1);const o=e.getBoundingClientRect(),{width:i,height:n,$:a}=Ft(e);let s=(a?N(o.width):o.width)/i,r=(a?N(o.height):o.height)/n;return s&&Number.isFinite(s)||(s=1),r&&Number.isFinite(r)||(r=1),{x:s,y:r}}const Wt=W(0);function _t(t){const e=ut(t);return Ht()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Wt}function Ut(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const n=t.getBoundingClientRect(),a=Nt(t);let s=W(1);e&&(i?bt(i)&&(s=It(i)):s=It(t));const r=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==ut(t))&&e}(a,o,i)?_t(a):W(0);let l=(n.left+r.x)/s.x,c=(n.top+r.y)/s.y,d=n.width/s.x,p=n.height/s.y;if(a){const t=ut(a),e=i&&bt(i)?ut(i):i;let o=t,n=Pt(o);for(;n&&i&&e!==o;){const t=It(n),e=n.getBoundingClientRect(),i=Dt(n),a=e.left+(n.clientLeft+parseFloat(i.paddingLeft))*t.x,s=e.top+(n.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,d*=t.x,p*=t.y,l+=a,c+=s,o=ut(n),n=Pt(o)}}return rt({width:d,height:p,x:l,y:c})}function Vt(t,e){const o=Rt(t).scrollLeft;return e?e.left+o:Ut(ft(t)).left+o}function qt(t,e,o){void 0===o&&(o=!1);const i=t.getBoundingClientRect();return{x:i.left+e.scrollLeft-(o?0:Vt(t,i)),y:i.top+e.scrollTop}}const Gt=new Set(["absolute","fixed"]);function Xt(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=ut(t),i=ft(t),n=o.visualViewport;let a=i.clientWidth,s=i.clientHeight,r=0,l=0;if(n){a=n.width,s=n.height;const t=Ht();(!t||t&&"fixed"===e)&&(r=n.offsetLeft,l=n.offsetTop)}return{width:a,height:s,x:r,y:l}}(t,o);else if("document"===e)i=function(t){const e=ft(t),o=Rt(t),i=t.ownerDocument.body,n=F(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=F(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let s=-o.scrollLeft+Vt(t);const r=-o.scrollTop;return"rtl"===Dt(i).direction&&(s+=F(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:r}}(ft(t));else if(bt(e))i=function(t,e){const o=Ut(t,!0,"fixed"===e),i=o.top+t.clientTop,n=o.left+t.clientLeft,a=vt(t)?It(t):W(1);return{width:t.clientWidth*a.x,height:t.clientHeight*a.y,x:n*a.x,y:i*a.y}}(e,o);else{const o=_t(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return rt(i)}function Yt(t,e){const o=jt(t);return!(o===e||!bt(o)||$t(o))&&("fixed"===Dt(o).position||Yt(o,e))}function Kt(t,e,o){const i=vt(e),n=ft(e),a="fixed"===o,s=Ut(t,!0,a,e);let r={scrollLeft:0,scrollTop:0};const l=W(0);function c(){l.x=Vt(n)}if(i||!i&&!a)if(("body"!==gt(e)||yt(n))&&(r=Rt(e)),i){const t=Ut(e,!0,a,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else n&&c();a&&!i&&n&&c();const d=!n||i||a?W(0):qt(n,r);return{x:s.left+r.scrollLeft-l.x-d.x,y:s.top+r.scrollTop-l.y-d.y,width:s.width,height:s.height}}function Qt(t){return"static"===Dt(t).position}function Zt(t,e){if(!vt(t)||"fixed"===Dt(t).position)return null;if(e)return e(t);let o=t.offsetParent;return ft(t)===o&&(o=o.ownerDocument.body),o}function Jt(t,e){const o=ut(t);if(Et(t))return o;if(!vt(t)){let e=jt(t);for(;e&&!$t(e);){if(bt(e)&&!Qt(e))return e;e=jt(e)}return o}let i=Zt(t,e);for(;i&&St(i)&&Qt(i);)i=Zt(i,e);return i&&$t(i)&&Qt(i)&&!Ct(i)?o:i||function(t){let e=jt(t);for(;vt(e)&&!$t(e);){if(Ct(e))return e;if(Et(e))return null;e=jt(e)}return null}(t)||o}const te={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:o,offsetParent:i,strategy:n}=t;const a="fixed"===n,s=ft(i),r=!!e&&Et(e.floating);if(i===s||r&&a)return o;let l={scrollLeft:0,scrollTop:0},c=W(1);const d=W(0),p=vt(i);if((p||!p&&!a)&&(("body"!==gt(i)||yt(s))&&(l=Rt(i)),vt(i))){const t=Ut(i);c=It(i),d.x=t.x+i.clientLeft,d.y=t.y+i.clientTop}const h=!s||p||a?W(0):qt(s,l,!0);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:o.y*c.y-l.scrollTop*c.y+d.y+h.y}},getDocumentElement:ft,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:n}=t;const a=[..."clippingAncestors"===o?Et(e)?[]:function(t,e){const o=e.get(t);if(o)return o;let i=Bt(t,[],!1).filter((t=>bt(t)&&"body"!==gt(t))),n=null;const a="fixed"===Dt(t).position;let s=a?jt(t):t;for(;bt(s)&&!$t(s);){const e=Dt(s),o=Ct(s);o||"fixed"!==e.position||(n=null),(a?!o&&!n:!o&&"static"===e.position&&n&&Gt.has(n.position)||yt(s)&&!o&&Yt(t,s))?i=i.filter((t=>t!==s)):n=e,s=jt(s)}return e.set(t,i),i}(e,this._c):[].concat(o),i],s=a.reduce(((t,o)=>{const i=Xt(e,o,n);return t.top=F(i.top,t.top),t.right=P(i.right,t.right),t.bottom=P(i.bottom,t.bottom),t.left=F(i.left,t.left),t}),Xt(e,a[0],n));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Jt,getElementRects:async function(t){const e=this.getOffsetParent||Jt,o=this.getDimensions,i=await o(t.floating);return{reference:Kt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:o}=Ft(t);return{width:e,height:o}},getScale:It,isElement:bt,isRTL:function(t){return"rtl"===Dt(t).direction}};function ee(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const oe=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var o,i;const{x:n,y:a,placement:s,middlewareData:r}=e,l=await async function(t,e){const{placement:o,platform:i,elements:n}=t,a=await(null==i.isRTL?void 0:i.isRTL(n.floating)),s=G(o),r=X(o),l="y"===Z(o),c=pt.has(s)?-1:1,d=a&&l?-1:1,p=q(e,t);let{mainAxis:h,crossAxis:g,alignmentAxis:u}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return r&&"number"==typeof u&&(g="end"===r?-1*u:u),l?{x:g*d,y:h*c}:{x:h*c,y:g*d}}(e,t);return s===(null==(o=r.offset)?void 0:o.placement)&&null!=(i=r.arrow)&&i.alignmentOffset?{}:{x:n+l.x,y:a+l.y,data:{...l,placement:s}}}}},ie=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:i,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:r={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=q(t,e),c={x:o,y:i},d=await ct(e,l),p=Z(G(n)),h=Y(p);let g=c[h],u=c[p];a&&(g=V(g+d["y"===h?"top":"left"],g,g-d["y"===h?"bottom":"right"])),s&&(u=V(u+d["y"===p?"top":"left"],u,u-d["y"===p?"bottom":"right"]));const f=r.fn({...e,[h]:g,[p]:u});return{...f,data:{x:f.x-o,y:f.y-i,enabled:{[h]:a,[p]:s}}}}}},ne=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var o,i;const{placement:n,middlewareData:a,rects:s,initialPlacement:r,platform:l,elements:c}=e,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:f=!0,...m}=q(t,e);if(null!=(o=a.arrow)&&o.alignmentOffset)return{};const b=G(n),v=Z(r),w=G(r)===r,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),y=h||(w||!f?[at(r)]:function(t){const e=at(t);return[tt(t),e,tt(e)]}(r)),k="none"!==u;!h&&k&&y.push(...function(t,e,o,i){const n=X(t);let a=function(t,e,o){switch(t){case"top":case"bottom":return o?e?ot:et:e?et:ot;case"left":case"right":return e?it:nt;default:return[]}}(G(t),"start"===o,i);return n&&(a=a.map((t=>t+"-"+n)),e&&(a=a.concat(a.map(tt)))),a}(r,f,u,x));const S=[r,...y],T=await ct(e,m),E=[];let z=(null==(i=a.flip)?void 0:i.overflows)||[];if(d&&E.push(T[b]),p){const t=function(t,e,o){void 0===o&&(o=!1);const i=X(t),n=J(t),a=K(n);let s="x"===n?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=at(s)),[s,at(s)]}(n,s,x);E.push(T[t[0]],T[t[1]])}if(z=[...z,{placement:n,overflows:E}],!E.every((t=>t<=0))){var M,A;const t=((null==(M=a.flip)?void 0:M.index)||0)+1,e=S[t];if(e&&("alignment"!==p||v===Z(e)||z.every((t=>Z(t.placement)!==v||t.overflows[0]>0))))return{data:{index:t,overflows:z},reset:{placement:e}};let o=null==(A=z.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:A.placement;if(!o)switch(g){case"bestFit":{var C;const t=null==(C=z.filter((t=>{if(k){const e=Z(t.placement);return e===v||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:C[0];t&&(o=t);break}case"initialPlacement":o=r}if(n!==o)return{reset:{placement:o}}}return{}}}},ae=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var o,i;const{placement:n,rects:a,platform:s,elements:r}=e,{apply:l=()=>{},...c}=q(t,e),d=await ct(e,c),p=G(n),h=X(n),g="y"===Z(n),{width:u,height:f}=a.floating;let m,b;"top"===p||"bottom"===p?(m=p,b=h===(await(null==s.isRTL?void 0:s.isRTL(r.floating))?"start":"end")?"left":"right"):(b=p,m="end"===h?"top":"bottom");const v=f-d.top-d.bottom,w=u-d.left-d.right;let x=P(f-d[m],v),y=P(u-d[b],w);if(null!=(o=e.middlewareData.shift)&&o.enabled.x&&(y=w),null!=(i=e.middlewareData.shift)&&i.enabled.y&&(x=v),!e.middlewareData.shift&&!h){const t=F(d.left,0),e=F(d.right,0),o=F(d.top,0),i=F(d.bottom,0);g?y=u-2*(0!==t||0!==e?t+e:F(d.left,d.right)):x=f-2*(0!==o||0!==i?o+i:F(d.top,d.bottom))}await l({...e,availableWidth:y,availableHeight:x});const k=await s.getDimensions(r.floating);return u!==k.width||f!==k.height?{reset:{rects:!0}}:{}}}},se=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:o,y:i,placement:n,rects:a,middlewareData:s}=e,{offset:r=0,mainAxis:l=!0,crossAxis:c=!0}=q(t,e),d={x:o,y:i},p=Z(n),h=Y(p);let g=d[h],u=d[p];const f=q(r,e),m="number"==typeof f?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(l){const t="y"===h?"height":"width",e=a.reference[h]-a.floating[t]+m.mainAxis,o=a.reference[h]+a.reference[t]-m.mainAxis;g<e?g=e:g>o&&(g=o)}if(c){var b,v;const t="y"===h?"width":"height",e=pt.has(G(n)),o=a.reference[p]-a.floating[t]+(e&&(null==(b=s.offset)?void 0:b[p])||0)+(e?0:m.crossAxis),i=a.reference[p]+a.reference[t]+(e?0:(null==(v=s.offset)?void 0:v[p])||0)-(e?m.crossAxis:0);u<o?u=o:u>i&&(u=i)}return{[h]:g,[p]:u}}}};var re=class extends Event{oldState;newState;constructor(t,{oldState:e="",newState:o="",...i}={}){super(t,i),this.oldState=String(e||""),this.newState=String(o||"")}},le=new WeakMap;function ce(t,e,o){le.set(t,setTimeout((()=>{le.has(t)&&t.dispatchEvent(new re("toggle",{cancelable:!1,oldState:e,newState:o}))}),0))}var de=globalThis.ShadowRoot||function(){},pe=globalThis.HTMLDialogElement||function(){},he=new WeakMap,ge=new WeakMap,ue=new WeakMap,fe=new WeakMap;function me(t){return fe.get(t)||"hidden"}var be=new WeakMap;function ve(t){return[...t].pop()}function we(t,e){return!("auto"!==t.popover&&"manual"!==t.popover&&"hint"!==t.popover||!t.isConnected||e&&"showing"!==me(t)||!e&&"hidden"!==me(t)||t instanceof pe&&t.hasAttribute("open")||document.fullscreenElement===t)}function xe(t){if(!t)return 0;const e=ge.get(document)||new Set,o=ue.get(document)||new Set;return o.has(t)?[...o].indexOf(t)+e.size+1:e.has(t)?[...e].indexOf(t)+1:0}function ye(t){let e;const o=ue.get(t)||new Set,i=ge.get(t)||new Set,n=o.size>0?o:i.size>0?i:null;return n?(e=ve(n),e.isConnected?e:(n.delete(e),ye(t))):null}function ke(t){for(const e of t||[]){if(e.isConnected)return e;t.delete(e)}return null}function Se(t){return"function"==typeof t.getRootNode?t.getRootNode():t.parentNode?Se(t.parentNode):t}function Te(t){for(;t;){if(t instanceof HTMLElement&&"auto"===t.popover&&"showing"===fe.get(t))return t;if((t=t instanceof Element&&t.assignedSlot||t.parentElement||Se(t))instanceof de&&(t=t.host),t instanceof Document)return}}function Ee(t,e){const o=new Map;let i=0;for(const t of e||[])o.set(t,i),i+=1;o.set(t,i),i+=1;let n=null;return function(e){if(!e)return;let i=!1,a=null,s=null;for(;!i;){if(a=Te(e)||null,null===a)return;if(!o.has(a))return;"hint"!==t.popover&&"auto"!==a.popover||(i=!0),i||(e=a.parentElement)}s=o.get(a),(null===n||o.get(n)<s)&&(n=a)}(t.parentElement||Se(t)),n}function ze(t){return!(t.hidden||t instanceof de||(t instanceof HTMLButtonElement||t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLOptGroupElement||t instanceof HTMLOptionElement||t instanceof HTMLFieldSetElement)&&t.disabled||t instanceof HTMLInputElement&&"hidden"===t.type||t instanceof HTMLAnchorElement&&""===t.href||"number"!=typeof t.tabIndex||-1===t.tabIndex)}var Me=new WeakMap;function Ae(t){if(!we(t,!1))return;const e=t.ownerDocument;if(!t.dispatchEvent(new re("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"})))return;if(!we(t,!1))return;let o=!1;const i=t.popover;let n=null;const a=Ee(t,ge.get(e)||new Set),s=Ee(t,ue.get(e)||new Set);if("auto"===i&&(He(ue.get(e)||new Set,o,!0),$e(a||e,o,!0),n="auto"),"hint"===i&&(s?($e(s,o,!0),n="hint"):(He(ue.get(e)||new Set,o,!0),a?($e(a,o,!0),n="auto"):n="hint")),"auto"===i||"hint"===i){if(i!==t.popover||!we(t,!1))return;ye(e)||(o=!0),"auto"===n?(ge.has(e)||ge.set(e,new Set),ge.get(e).add(t)):"hint"===n&&(ue.has(e)||ue.set(e,new Set),ue.get(e).add(t))}Me.delete(t);const r=e.activeElement;var l;t.classList.add(":popover-open"),fe.set(t,"showing"),he.has(e)||he.set(e,new Set),he.get(e).add(t),Oe(be.get(t),!0),l=t,function(t){if(t.shadowRoot&&!0!==t.shadowRoot.delegatesFocus)return null;let e=t;e.shadowRoot&&(e=e.shadowRoot);let o=e.querySelector("[autofocus]");if(o)return o;{const t=e.querySelectorAll("slot");for(const e of t){const t=e.assignedElements({flatten:!0});for(const e of t){if(e.hasAttribute("autofocus"))return e;if(o=e.querySelector("[autofocus]"),o)return o}}}const i=t.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);let n=i.currentNode;for(;n;){if(ze(n))return n;n=i.nextNode()}}(l)?.focus(),o&&r&&"auto"===t.popover&&Me.set(t,r),ce(t,"closed","open")}function Ce(t,e=!1,o=!1){if(!we(t,!0))return;const i=t.ownerDocument;if(["auto","hint"].includes(t.popover)&&($e(t,e,o),!we(t,!0)))return;const n=ge.get(i)||new Set,a=n.has(t)&&ve(n)===t;if(Oe(be.get(t),!1),be.delete(t),o&&(t.dispatchEvent(new re("beforetoggle",{oldState:"open",newState:"closed"})),a&&ve(n)!==t&&$e(t,e,o),!we(t,!0)))return;he.get(i)?.delete(t),n.delete(t),ue.get(i)?.delete(t),t.classList.remove(":popover-open"),fe.set(t,"hidden"),o&&ce(t,"open","closed");const s=Me.get(t);s&&(Me.delete(t),e&&s.focus())}function He(t,e=!1,o=!1){let i=ke(t);for(;i;)Ce(i,e,o),i=ke(t)}function Le(t,e,o,i){let n=!1,a=!1;for(;n||!a;){a=!0;let s=null,r=!1;for(const o of e)if(o===t)r=!0;else if(r){s=o;break}if(!s)return;for(;"showing"===me(s)&&e.size;)Ce(ve(e),o,i);e.has(t)&&ve(e)!==t&&(n=!0),n&&(i=!1)}}function $e(t,e,o){const i=t.ownerDocument||t;if(t instanceof Document)return function(t,e=!1,o=!1){let i=ye(t);for(;i;)Ce(i,e,o),i=ye(t)}(i,e,o);ue.get(i)?.has(t)?Le(t,ue.get(i),e,o):(He(ue.get(i)||new Set,e,o),ge.get(i)?.has(t)&&Le(t,ge.get(i),e,o))}var De=new WeakMap;function Re(t){if(!t.isTrusted)return;const e=t.composedPath()[0];if(!e)return;const o=e.ownerDocument;if(!ye(o))return;const i=function(t){const e=Te(t),o=function(t){for(;t;){const e=t.popoverTargetElement;if(e instanceof HTMLElement)return e;if((t=t.parentElement||Se(t))instanceof de&&(t=t.host),t instanceof Document)return}}(t);return xe(e)>xe(o)?e:o}(e);if(i&&"pointerdown"===t.type)De.set(o,i);else if("pointerup"===t.type){const t=De.get(o)===i;De.delete(o),t&&$e(i||o,!1,!0)}}var je=new WeakMap;function Oe(t,e=!1){if(!t)return;je.has(t)||je.set(t,t.getAttribute("aria-expanded"));const o=t.popoverTargetElement;if(o instanceof HTMLElement&&"auto"===o.popover)t.setAttribute("aria-expanded",String(e));else{const e=je.get(t);e?t.setAttribute("aria-expanded",e):t.removeAttribute("aria-expanded")}}var Be=globalThis.ShadowRoot||function(){};function Pe(t,e,o){const i=t[e];Object.defineProperty(t,e,{value(t){return i.call(this,o(t))}})}var Fe=/(^|[^\\]):popover-open\b/g;var Ne=null;function Ie(t){const e=function(){const t="function"==typeof globalThis.CSSLayerBlockRule;return`\n${t?"@layer popover-polyfill {":""}\n :where([popover]) {\n position: fixed;\n z-index: 2147483647;\n inset: 0;\n padding: 0.25em;\n width: fit-content;\n height: fit-content;\n border-width: initial;\n border-color: initial;\n border-image: initial;\n border-style: solid;\n background-color: canvas;\n color: canvastext;\n overflow: auto;\n margin: auto;\n }\n\n :where([popover]:not(.\\:popover-open)) {\n display: none;\n }\n\n :where(dialog[popover].\\:popover-open) {\n display: block;\n }\n\n :where(dialog[popover][open]) {\n display: revert;\n }\n\n :where([anchor].\\:popover-open) {\n inset: auto;\n }\n\n :where([anchor]:popover-open) {\n inset: auto;\n }\n\n @supports not (background-color: canvas) {\n :where([popover]) {\n background-color: white;\n color: black;\n }\n }\n\n @supports (width: -moz-fit-content) {\n :where([popover]) {\n width: -moz-fit-content;\n height: -moz-fit-content;\n }\n }\n\n @supports not (inset: 0) {\n :where([popover]) {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n }\n${t?"}":""}\n`}();if(null===Ne)try{(Ne=new CSSStyleSheet).replaceSync(e)}catch{Ne=!1}if(!1===Ne){const o=document.createElement("style");o.textContent=e,t instanceof Document?t.head.prepend(o):t.prepend(o)}else t.adoptedStyleSheets=[Ne,...t.adoptedStyleSheets]}const We=class{constructor(e){t(this,e),this.postToggle=n(this,"postToggle"),this.placement="top",this.edgeGap=8,this.animation=null,this.arrow=!1,this.manualClose=!1}validatePlacement(){h(this,"placement",b)}validateEdgeGap(){g(this,"edgeGap","number")}validateSafeSpace(){h(this,"safeSpace",["triangle","trapezoid"])}mouseTrackingHandler(t){this.host.style.setProperty("--post-safe-space-cursor-x",`${t.clientX}px`),this.host.style.setProperty("--post-safe-space-cursor-y",`${t.clientY}px`)}connectedCallback(){!l||"undefined"!=typeof HTMLElement&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||function(){if("undefined"==typeof window)return;function t(t){return t?.includes(":popover-open")&&(t=t.replace(Fe,"$1.\\:popover-open")),t}window.ToggleEvent=window.ToggleEvent||re,Pe(Document.prototype,"querySelector",t),Pe(Document.prototype,"querySelectorAll",t),Pe(Element.prototype,"querySelector",t),Pe(Element.prototype,"querySelectorAll",t),Pe(Element.prototype,"matches",t),Pe(Element.prototype,"closest",t),Pe(DocumentFragment.prototype,"querySelectorAll",t),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;const t=(this.getAttribute("popover")||"").toLowerCase();return""===t||"auto"==t?"auto":"hint"==t?"hint":"manual"},set(t){null===t?this.removeAttribute("popover"):this.setAttribute("popover",t)}},showPopover:{enumerable:!0,configurable:!0,value(t={}){Ae(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){Ce(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t={}){return"boolean"==typeof t&&(t={force:t}),"showing"===fe.get(this)&&void 0===t.force||!1===t.force?Ce(this,!0,!0):void 0!==t.force&&!0!==t.force||Ae(this),"showing"===fe.get(this)}}});const e=Element.prototype.attachShadow;e&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(t){const o=e.call(this,t);return Ie(o),o}}});const o=HTMLElement.prototype.attachInternals;o&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){const t=o.call(this);return t.shadowRoot&&Ie(t.shadowRoot),t}}});const i=new WeakMap;function n(t){Object.defineProperties(t.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(t){if(null===t)this.removeAttribute("popovertarget"),i.delete(this);else{if(!(t instanceof Element))throw new TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),i.set(this,t)}},get(){if("button"!==this.localName&&"input"!==this.localName)return null;if("input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type)return null;if(this.disabled)return null;if(this.form&&"submit"===this.type)return null;const t=i.get(this);if(t&&t.isConnected)return t;if(t&&!t.isConnected)return i.delete(this),null;const e=Se(this),o=this.getAttribute("popovertarget");return(e instanceof Document||e instanceof Be)&&o&&e.getElementById(o)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){const t=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===t||"hide"===t?t:"toggle"},set(t){this.setAttribute("popovertargetaction",t)}}})}var a;n(HTMLButtonElement),n(HTMLInputElement),(a=document).addEventListener("click",(t=>{const e=t.composedPath(),o=e[0];if(!(o instanceof Element)||o?.shadowRoot)return;const i=Se(o);if(!(i instanceof Be||i instanceof Document))return;const n=e.find((t=>t.matches?.("[popovertargetaction],[popovertarget]")));return n?(function(t){const e=t.popoverTargetElement;if(!(e instanceof HTMLElement))return;const o=me(e);"show"===t.popoverTargetAction&&"showing"===o||"hide"===t.popoverTargetAction&&"hidden"===o||("showing"===o?Ce(e,!0,!0):we(e,!1)&&(be.set(e,t),Ae(e)))}(n),void t.preventDefault()):void 0})),a.addEventListener("keydown",(t=>{const e=t.key,o=t.target;t.defaultPrevented||!o||"Escape"!==e&&"Esc"!==e||$e(o.ownerDocument,!0,!0)})),a.addEventListener("pointerdown",Re),a.addEventListener("pointerup",Re),Ie(document)}()}componentDidLoad(){this.host.addEventListener("beforetoggle",this.handleToggle.bind(this))}disconnectedCallback(){"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate()}async show(t){this.toggleTimeoutId||(this.eventTarget=t,this.calculatePosition(),this.host.showPopover())}async hide(){this.toggleTimeoutId||(this.eventTarget=null,this.host.hidePopover())}async toggle(t,e){return this.toggleTimeoutId||(this.eventTarget=t,this.calculatePosition(),this.host.togglePopover(e),this.toggleTimeoutId=null),this.host.matches(":where(:popover-open, .popover-open)")}handleToggle(t){this.toggleTimeoutId=window.setTimeout((()=>this.toggleTimeoutId=null),10);const e="open"===t.newState;e?(this.startAutoupdates(),this.safeSpace&&window.addEventListener("mousemove",this.mouseTrackingHandler.bind(this))):("function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate(),this.safeSpace&&window.removeEventListener("mousemove",this.mouseTrackingHandler.bind(this))),this.postToggle.emit(e)}startAutoupdates(){this.clearAutoUpdate=function(t,e,o,i){void 0===i&&(i={});const{ancestorScroll:n=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:r="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,c=Nt(t),d=n||a?[...c?Bt(c):[],...Bt(e)]:[];d.forEach((t=>{n&&t.addEventListener("scroll",o,{passive:!0}),a&&t.addEventListener("resize",o)}));const p=c&&r?function(t,e){let o,i=null;const n=ft(t);function a(){var t;clearTimeout(o),null==(t=i)||t.disconnect(),i=null}return function s(r,l){void 0===r&&(r=!1),void 0===l&&(l=1),a();const c=t.getBoundingClientRect(),{left:d,top:p,width:h,height:g}=c;if(r||e(),!h||!g)return;const u={rootMargin:-I(p)+"px "+-I(n.clientWidth-(d+h))+"px "+-I(n.clientHeight-(p+g))+"px "+-I(d)+"px",threshold:F(0,P(1,l))||1};let f=!0;function m(e){const i=e[0].intersectionRatio;if(i!==l){if(!f)return s();i?s(!1,i):o=setTimeout((()=>{s(!1,1e-7)}),1e3)}1!==i||ee(c,t.getBoundingClientRect())||s(),f=!1}try{i=new IntersectionObserver(m,{...u,root:n.ownerDocument})}catch(t){i=new IntersectionObserver(m,u)}i.observe(t)}(!0),a}(c,o):null;let h,g=-1,u=null;s&&(u=new ResizeObserver((t=>{let[i]=t;i&&i.target===c&&u&&(u.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var t;null==(t=u)||t.observe(e)}))),o()})),c&&!l&&u.observe(c),u.observe(e));let f=l?Ut(t):null;return l&&function e(){const i=Ut(t);f&&!ee(f,i)&&o(),f=i,h=requestAnimationFrame(e)}(),o(),()=>{var t;d.forEach((t=>{n&&t.removeEventListener("scroll",o),a&&t.removeEventListener("resize",o)})),null==p||p(),null==(t=u)||t.disconnect(),u=null,l&&cancelAnimationFrame(h)}}(this.eventTarget,this.host,this.calculatePosition.bind(this))}getHeaderHeight(){const t=document.querySelector("post-header");return t?parseFloat(getComputedStyle(t).height):0}async calculatePosition(){const{x:t,y:e,middlewareData:o,placement:i}=await this.computeMainPosition(),n=i.split("-")[0];if(this.host.style.left=`${t}px`,this.host.style.top=`${e}px`,this.arrow&&o.arrow){const{x:t,y:e}=o.arrow,i=We.STATIC_SIDES[n];i&&Object.assign(this.arrowRef.style,{left:t?`${t}px`:"",top:e?`${e}px`:"",[i]:"-7px"})}this.safeSpace&&this.eventTarget&&await this.updateSafeSpaceBoundaries(n)}async computeMainPosition(){const t=this.edgeGap,e=[ne({padding:this.getHeaderHeight()}),(void 0===o&&(o={}),{name:"inline",options:o,async fn(t){const{placement:e,elements:i,rects:n,platform:a,strategy:s}=t,{padding:r=2,x:l,y:c}=q(o,t),d=Array.from(await(null==a.getClientRects?void 0:a.getClientRects(i.reference))||[]),p=function(t){const e=t.slice().sort(((t,e)=>t.y-e.y)),o=[];let i=null;for(let t=0;t<e.length;t++){const n=e[t];!i||n.y-i.y>i.height/2?o.push([n]):o[o.length-1].push(n),i=n}return o.map((t=>rt(dt(t))))}(d),h=rt(dt(d)),g=st(r),u=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===p.length&&p[0].left>p[1].right&&null!=l&&null!=c)return p.find((t=>l>t.left-g.left&&l<t.right+g.right&&c>t.top-g.top&&c<t.bottom+g.bottom))||h;if(p.length>=2){if("y"===Z(e)){const t=p[0],o=p[p.length-1],i="top"===G(e),n=t.top,a=o.bottom,s=i?t.left:o.left,r=i?t.right:o.right;return{top:n,bottom:a,left:s,right:r,width:r-s,height:a-n,x:s,y:n}}const t="left"===G(e),o=F(...p.map((t=>t.right))),i=P(...p.map((t=>t.left))),n=p.filter((e=>t?e.left===i:e.right===o)),a=n[0].top,s=n[n.length-1].bottom;return{top:a,bottom:s,left:i,right:o,width:o-i,height:s-a,x:i,y:a}}return h}},floating:i.floating,strategy:s});return n.reference.x!==u.reference.x||n.reference.y!==u.reference.y||n.reference.width!==u.reference.width||n.reference.height!==u.reference.height?{reset:{rects:u}}:{}}}),ie({padding:t,limiter:se({offset:32})}),ae({apply({availableWidth:e,elements:o}){Object.assign(o.floating.style,{maxWidth:e-2*t+"px"})}}),oe(this.arrow?t+4:t)];var o;return this.arrow&&e.push((t=>({name:"arrow",options:t,async fn(e){const{x:o,y:i,placement:n,rects:a,platform:s,elements:r,middlewareData:l}=e,{element:c,padding:d=0}=q(t,e)||{};if(null==c)return{};const p=st(d),h={x:o,y:i},g=J(n),u=K(g),f=await s.getDimensions(c),m="y"===g,b=m?"top":"left",v=m?"bottom":"right",w=m?"clientHeight":"clientWidth",x=a.reference[u]+a.reference[g]-h[g]-a.floating[u],y=h[g]-a.reference[g],k=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let S=k?k[w]:0;S&&await(null==s.isElement?void 0:s.isElement(k))||(S=r.floating[w]||a.floating[u]);const T=x/2-y/2,E=S/2-f[u]/2-1,z=P(p[b],E),M=P(p[v],E),A=z,C=S-f[u]-M,H=S/2-f[u]/2+T,L=V(A,H,C),$=!l.arrow&&null!=X(n)&&H!==L&&a.reference[u]/2-(H<A?z:M)-f[u]/2<0,D=$?H<A?H-A:H-C:0;return{[g]:h[g]+D,data:{[g]:L,centerOffset:H-L-D,...$&&{alignmentOffset:D}},reset:$}}}))({element:this.arrowRef,padding:t})),((t,e,o)=>{const i=new Map,n={platform:te,...o},a={...n.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=o,r=a.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:d,y:p}=lt(c,i,l),h=i,g={},u=0;for(let o=0;o<r.length;o++){const{name:a,fn:f}=r[o],{x:m,y:b,data:v,reset:w}=await f({x:d,y:p,initialPlacement:i,placement:h,strategy:n,middlewareData:g,rects:c,platform:s,elements:{reference:t,floating:e}});d=null!=m?m:d,p=null!=b?b:p,g={...g,[a]:{...g[a],...v}},w&&u<=50&&(u++,"object"==typeof w&&(w.placement&&(h=w.placement),w.rects&&(c=!0===w.rects?await s.getElementRects({reference:t,floating:e,strategy:n}):w.rects),({x:d,y:p}=lt(c,h,l))),o=-1)}return{x:d,y:p,placement:h,strategy:n,middlewareData:g}})(t,e,{...n,platform:a})})(this.eventTarget,this.host,{placement:this.placement||"top",strategy:"fixed",middleware:e})}async updateSafeSpaceBoundaries(t){const e=this.eventTarget.getBoundingClientRect(),o="top"===t||"bottom"===t,i=((t,e,o)=>"top"===t||"bottom"===t?{popover:{y:"top"===t?e.bottom:e.top,xStart:e.left,xEnd:e.right},trigger:{y:"top"===t?o.top:o.bottom,xStart:o.left,xEnd:o.right}}:{popover:{x:"left"===t?e.right:e.left,yStart:e.top,yEnd:e.bottom},trigger:{x:"left"===t?o.left:o.right,yStart:o.top,yEnd:o.bottom}})(t,this.host.getBoundingClientRect(),e);We.PROPERTIES_TO_CLEAR.forEach((t=>{this.host.style.removeProperty(t)})),o?(this.host.style.setProperty("--post-safe-space-popover-y",`${i.popover.y}px`),this.host.style.setProperty("--post-safe-space-popover-x-start",`${i.popover.xStart}px`),this.host.style.setProperty("--post-safe-space-popover-x-end",`${i.popover.xEnd}px`),this.host.style.setProperty("--post-safe-space-trigger-y",`${i.trigger.y}px`),this.host.style.setProperty("--post-safe-space-trigger-x-start",`${i.trigger.xStart}px`),this.host.style.setProperty("--post-safe-space-trigger-x-end",`${i.trigger.xEnd}px`)):(this.host.style.setProperty("--post-safe-space-popover-x",`${i.popover.x}px`),this.host.style.setProperty("--post-safe-space-popover-y-start",`${i.popover.yStart}px`),this.host.style.setProperty("--post-safe-space-popover-y-end",`${i.popover.yEnd}px`),this.host.style.setProperty("--post-safe-space-trigger-x",`${i.trigger.x}px`),this.host.style.setProperty("--post-safe-space-trigger-y-start",`${i.trigger.yStart}px`),this.host.style.setProperty("--post-safe-space-trigger-y-end",`${i.trigger.yEnd}px`))}render(){return e(o,{key:"357f53696ca28ab2c137d47e2192038dc756c289","data-version":a,popover:this.manualClose?"manual":"auto"},e("div",{key:"9c40bdc5034ccf14157ee1ae8ce33fe58a9049e4",class:this.animation?`animate-${this.animation}`:""},this.arrow&&e("span",{key:"6133ab54aaea6f198560ca5cb30f5604318203f6",class:"arrow",ref:t=>{this.arrowRef=t}}),e("slot",{key:"39f53833a3f570b2c8807a5903b531c6733b0ada"})))}get host(){return i(this)}static get watchers(){return{placement:["validatePlacement"],edgeGap:["validateEdgeGap"],safeSpace:["validateSafeSpace"]}}};We.STATIC_SIDES={top:"bottom",right:"left",bottom:"top",left:"right"},We.PROPERTIES_TO_CLEAR=["--post-safe-space-popover-x","--post-safe-space-popover-y","--post-safe-space-popover-x-start","--post-safe-space-popover-x-end","--post-safe-space-popover-y-start","--post-safe-space-popover-y-end","--post-safe-space-trigger-x","--post-safe-space-trigger-y","--post-safe-space-trigger-x-start","--post-safe-space-trigger-x-end","--post-safe-space-trigger-y-start","--post-safe-space-trigger-y-end"],We.style='@keyframes popIn{from{transform:scale(0.9);opacity:0;transition-property:transform,opacity,overlay,display;transition-behavior:allow-discrete;transition-duration:var(--post-transition-duration, 0.35s);transition-timing-function:linear(0, 0.007, 0.029 2.2%, 0.118 4.7%, 0.625 14.4%, 0.826 19%, 0.902, 0.962, 1.008 26.1%, 1.041 28.7%, 1.064 32.1%, 1.07 36%, 1.061 40.5%, 1.015 53.4%, 0.999 61.6%, 0.995 71.2%, 1)}to{opacity:1;transform:scale(1)}}@layer polyfill{@supports not selector(:popover-open){[popover]:not(.\\:popover-open){display:none}}}:where(post-popovercontainer){background-color:rgba(0,0,0,0);border:rgba(0,0,0,0);position:fixed;margin:0;padding:0;overflow:visible}:where(post-popovercontainer)>div{box-shadow:var(--post-device-elevation-300);width:max-content;max-width:100%;color:var(--post-current-fg);background-color:var(--post-current-bg);border-radius:4px}:where(post-popovercontainer)>div.animate-pop-in{animation:popIn .25s ease-out forwards}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:where(post-popovercontainer)>div{border:2px solid rgba(0,0,0,0)}}:where(post-popovercontainer)[tooltip]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}:where(post-popovercontainer)[safe-space]::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:auto}:where(post-popovercontainer)[safe-space=triangle]::after{clip-path:polygon(var(--post-safe-space-cursor-x, 0) var(--post-safe-space-cursor-y, 0), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)))}:where(post-popovercontainer)[safe-space=trapezoid]::after{clip-path:polygon(var(--post-safe-space-trigger-x-start, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-start, 0)), var(--post-safe-space-trigger-x-end, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-end, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)))}:where(post-popovercontainer):not(:has(.arrow))>div{box-shadow:var(--post-device-elevation-300)}:where(post-popovercontainer):has(.arrow)>div{filter:drop-shadow(1px 2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(2px 4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(4px 8px 12px hsla(225, 7%, 11%, 0.15))}:where(post-popovercontainer):has(.arrow.top)>div{filter:drop-shadow(0px -2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(0px -4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(0px -8px 12px hsla(225, 7%, 11%, 0.15))}:where(post-popovercontainer):has(.arrow.left)>div{filter:drop-shadow(-2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(-4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(-8px 0px 12px hsla(225, 7%, 11%, 0.15))}:where(post-popovercontainer):has(.arrow.right)>div{filter:drop-shadow(2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(8px 0px 12px hsla(225, 7%, 11%, 0.15))}:where(post-popovercontainer) .arrow{position:absolute;width:.5825rem;height:.5825rem;background-color:inherit;rotate:45deg;pointer-events:none;z-index:-1}:where(post-popovercontainer) .arrow.top{border-block-start:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.right{border-block-start:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.left{border-block-end:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.bottom{border-block-end:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0)}';const _e=class{constructor(e){t(this,e),this.toggled=!1,this.handleClick=()=>{this.toggled=!this.toggled},this.handleKeydown=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.host.click())}}componentWillLoad(){this.host.addEventListener("click",(()=>this.handleClick())),this.host.addEventListener("keydown",(t=>this.handleKeydown(t)))}render(){return e(o,{key:"1cebe1d1314e2c89f141869e07521e7f30e58617","data-version":a,role:"button",tabindex:"0","aria-pressed":this.toggled.toString()},e("slot",{key:"8b8c33befde8e93eca73a6239170c3786e2cf2f2"}))}get host(){return i(this)}};_e.style=":host{cursor:pointer;outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host(:focus-visible){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(:focus-visible){outline-color:Highlight !important}}:host([aria-pressed=true]) ::slotted([data-showwhen=untoggled]){display:none}:host([aria-pressed=false]) ::slotted([data-showwhen=toggled]){display:none}";export{w as post_closebutton,S as post_header,z as post_icon,A as post_language_option,C as post_language_switch,H as post_list,L as post_list_item,$ as post_logo,D as post_mainnavigation,R as post_megadropdown,j as post_megadropdown_trigger,O as post_menu,B as post_menu_trigger,We as post_popovercontainer,_e as post_togglebutton}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:where(post-accordion,post-accordion-item,post-avatar,post-back-to-top,post-banner,post-breadcrumb-item,post-breadcrumbs,post-card-control,post-closebutton,post-collapsible,post-collapsible-trigger,post-footer,post-header,post-icon,post-language-option,post-language-switch,post-linkarea,post-list,post-list-item,post-logo,post-mainnavigation,post-megadropdown,post-megadropdown-trigger,post-menu,post-menu-item,post-menu-trigger,post-popover,post-popovercontainer,post-rating,post-tab-header,post-tab-panel,post-tabs,post-
|
|
1
|
+
:where(post-accordion,post-accordion-item,post-avatar,post-back-to-top,post-banner,post-breadcrumb-item,post-breadcrumbs,post-card-control,post-closebutton,post-collapsible,post-collapsible-trigger,post-footer,post-header,post-icon,post-language-option,post-language-switch,post-linkarea,post-list,post-list-item,post-logo,post-mainnavigation,post-megadropdown,post-megadropdown-trigger,post-menu,post-menu-item,post-menu-trigger,post-popover,post-popovercontainer,post-rating,post-tab-header,post-tab-panel,post-tabs,post-togglebutton,post-tooltip,post-tooltip-trigger):not([data-hydrated],:defined){visibility:hidden}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,g as a,b as l}from"./p-
|
|
1
|
+
import{p as e,g as a,b as l}from"./p-C8a0ddDa.js";export{s as setNonce}from"./p-C8a0ddDa.js";(()=>{const a=import.meta.url,l={};return""!==a&&(l.resourcesUrl=new URL(".",a).href),e(l)})().then((async e=>(await a(),l([["p-e4c72272",[[1,"post-breadcrumbs",{homeUrl:[1,"home-url"],homeText:[1,"home-text"],breadcrumbItems:[32],isConcatenated:[32],lastWindowWidth:[32]},null,{homeUrl:["validateHomeUrl"],homeText:["validateHomeText"]}]]],["p-b20922d5",[[1,"post-footer",{label:[1],device:[32],gridSlotDisplayed:[32]},null,{label:["validateLabel"]}]]],["p-830d243f",[[1,"post-back-to-top",{label:[513],belowFold:[32]},null,{label:["validateLabel"],belowFold:["watchBelowFold"]}]]],["p-3645ac4e",[[1,"post-banner",{dismissible:[4],dismissLabel:[1,"dismiss-label"],icon:[1],type:[1],bannerId:[32],classes:[32],hasActions:[32],hasHeading:[32],onDismissButtonClick:[32],dismiss:[64]},null,{dismissible:["checkDismissible"],icon:["validateIcon"],type:["validateType"]}]]],["p-635e2004",[[65,"post-card-control",{label:[513],description:[1],type:[1],name:[1],value:[1],checked:[1028],disabled:[1028],validity:[1028],icon:[1],focused:[32],reset:[64],groupReset:[64]},null,{label:["validateControlLabel"],description:["validateControlDescription"],type:["validateControlType"],name:["validateControlName"],value:["validateControlValue"],icon:["validateControlIcon"],checked:["updateControlChecked"],disabled:["updateControlDisabled"]}]]],["p-41dd61d4",[[1,"post-popover",{placement:[1],closeButtonCaption:[1,"close-button-caption"],arrow:[4],show:[64],hide:[64],toggle:[64]},null,{placement:["validatePlacement"],closeButtonCaption:["validateCloseButtonCaption"]}]]],["p-5e84d796",[[1,"post-rating",{label:[1],stars:[2],currentRating:[1026,"current-rating"],readonly:[4],hoveredIndex:[32]},null,{label:["validateLabel"],stars:["validateStars"],currentRating:["validateCurrentRating"]}]]],["p-9f0408e9",[[1,"post-tooltip",{placement:[1],arrow:[4],animation:[1],open:[1540],show:[64],hide:[64],toggle:[64]},null,{placement:["validatePlacement"]}]]],["p-0d3ab7f7",[[1,"post-avatar",{firstname:[513],lastname:[1],userid:[1],email:[1],slottedImage:[32],avatarType:[32],imageUrl:[32],imageAlt:[32],initials:[32]},null,{firstname:["validateFirstname"],lastname:["validateLastname"],userid:["validateUserid"],email:["validateEmail"]}]]],["p-4410eecd",[[1,"post-linkarea"]]],["p-f1e0c995",[[1,"post-tab-header",{panel:[513],tabId:[32]},null,{panel:["validateFor"]}]]],["p-69048834",[[1,"post-tab-panel",{name:[513],panelId:[32]},null,{name:["validateName"]}]]],["p-7b6a56ba",[[1,"post-tabs",{activePanel:[1,"active-panel"],fullWidth:[516,"full-width"],show:[64]}]]],["p-2f03d479",[[1,"post-tooltip-trigger",{for:[513],delay:[2]},null,{for:["validateControlFor"]}]]],["p-70d20143",[[1,"post-collapsible",{collapsed:[1028],toggle:[64]},null,{collapsed:["collapsedChange"]}],[1,"post-collapsible-trigger",{for:[513],update:[64]},null,{for:["validateAriaAttributes"]}]]],["p-f6ce2870",[[1,"post-language-switch",{caption:[1],description:[1],variant:[1],activeLang:[32]},[[0,"postChange","handlePostChange"],[0,"postLanguageOptionInitiallyActive","handleInitiallyActive"]],{caption:["validateCaption"],description:["validateDescription"],variant:["validateVariant"]}],[1,"post-closebutton"],[4,"post-mainnavigation",{canScrollLeft:[32],canScrollRight:[32]},[[9,"mouseup","stopScrolling"],[9,"mouseleave","stopScrolling"]]],[1,"post-header",{device:[32],mobileMenuExtended:[32],megadropdownOpen:[32],toggleMobileMenu:[64]},null,{device:["lockBody"],mobileMenuExtended:["lockBody"]}],[4,"post-language-option",{code:[1],active:[1540],variant:[1],name:[1],url:[1],select:[64]},null,{code:["validateCode"],variant:["validateVariant"],name:["validateName"],url:["validateUrl"]}],[4,"post-list",{titleHidden:[4,"title-hidden"],horizontal:[516],titleId:[32]}],[1,"post-list-item"],[1,"post-logo",{url:[1]},null,{url:["validateUrl"]}],[4,"post-megadropdown",{device:[32],isVisible:[32],animationClass:[32],toggle:[64],show:[64],hide:[64],focusFirst:[64]}],[4,"post-megadropdown-trigger",{for:[1],ariaExpanded:[32]},null,{for:["validateControlFor"]}],[1,"post-togglebutton",{toggled:[1028]}],[1,"post-menu",{placement:[1],isVisible:[32],toggle:[64],show:[64],hide:[64]},null,{placement:["validatePlacement"]}],[4,"post-menu-trigger",{for:[513],ariaExpanded:[32]},null,{for:["validateControlFor"]}],[4,"post-popovercontainer",{placement:[1],edgeGap:[2,"edge-gap"],animation:[1],arrow:[4],manualClose:[4,"manual-close"],safeSpace:[513,"safe-space"],show:[64],hide:[64],toggle:[64]},null,{placement:["validatePlacement"],edgeGap:["validateEdgeGap"],safeSpace:["validateSafeSpace"]}],[1,"post-icon",{animation:[1],base:[1],flipH:[4,"flip-h"],flipV:[4,"flip-v"],name:[513],rotate:[2],scale:[2]},null,{animation:["validateAnimation"],base:["validateBase"],name:["validateName"],rotate:["validateRotate"],scale:["validateScale"]}]]],["p-0fb50e3d",[[1,"post-accordion-item",{collapsed:[1028],headingLevel:[2,"heading-level"],id:[32],slottedLogo:[32],toggle:[64]},[[2,"postToggle","onCollapseToggle"]],{headingLevel:["validateHeadingLevel"]}],[1,"post-accordion",{headingLevel:[2,"heading-level"],multiple:[4],toggle:[64],expandAll:[64],collapseAll:[64]},[[0,"postToggle","collapseToggleHandler"]],{headingLevel:["validateHeadingLevel"]}]]],["p-bb139af8",[[1,"post-breadcrumb-item",{url:[1],fullUrl:[32]},null,{url:["validateUrl"]}],[4,"post-menu-item"]]]],e))));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Device } from "../../utils/index";
|
|
1
2
|
/**
|
|
2
3
|
* @slot grid-{1|2|3|4}-title - Slot for the accordion headers (mobile).
|
|
3
4
|
* @slot grid-{1|2|3|4} - Slot for the accordion bodies (mobile) and the grid cells (tablet, desktop).
|
|
@@ -13,7 +14,7 @@ export declare class PostFooter {
|
|
|
13
14
|
* The label to add to the footer (visually hidden).
|
|
14
15
|
*/
|
|
15
16
|
readonly label: string;
|
|
16
|
-
device:
|
|
17
|
+
device: Device;
|
|
17
18
|
gridSlotDisplayed: Record<string, boolean>;
|
|
18
19
|
validateLabel(): void;
|
|
19
20
|
constructor();
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Device } from "../../utils/breakpoints";
|
|
1
2
|
/**
|
|
2
3
|
* @slot post-logo - Should be used together with the `<post-logo>` component.
|
|
3
4
|
* @slot meta-navigation - Holds an `<ul>` with meta navigation links.
|
|
@@ -6,6 +7,7 @@
|
|
|
6
7
|
* @slot title - Holds the application title.
|
|
7
8
|
* @slot default - Custom controls or content, right aligned in the local header.
|
|
8
9
|
* @slot post-mainnavigation - Has a default slot because it's only meant to be used in the `<post-header>`.
|
|
10
|
+
* @slot target-group - Holds the list of buttons to choose the target group.
|
|
9
11
|
*/
|
|
10
12
|
export declare class PostHeader {
|
|
11
13
|
private firstFocusableEl;
|
|
@@ -17,7 +19,7 @@ export declare class PostHeader {
|
|
|
17
19
|
private localHeaderResizeObserver;
|
|
18
20
|
get scrollParent(): HTMLElement;
|
|
19
21
|
host: HTMLPostHeaderElement;
|
|
20
|
-
device:
|
|
22
|
+
device: Device;
|
|
21
23
|
mobileMenuExtended: boolean;
|
|
22
24
|
megadropdownOpen: boolean;
|
|
23
25
|
lockBody(newValue: boolean | string, _oldValue: boolean | string, propName: string): void;
|
|
@@ -37,6 +39,7 @@ export declare class PostHeader {
|
|
|
37
39
|
private getFocusableElements;
|
|
38
40
|
private getMenuButton;
|
|
39
41
|
private keyboardHandler;
|
|
42
|
+
private closeAllMegadropdowns;
|
|
40
43
|
private handleScrollEvent;
|
|
41
44
|
private updateLocalHeaderHeight;
|
|
42
45
|
private updateScrollParentHeight;
|
|
@@ -22,7 +22,6 @@ export declare class PostMainnavigation {
|
|
|
22
22
|
* Hack to fix the layout shift due to bold text on active elements
|
|
23
23
|
*/
|
|
24
24
|
private fixLayoutShift;
|
|
25
|
-
private handleBackButtonClick;
|
|
26
25
|
/**
|
|
27
26
|
* Returns whether scrolling is enabled in either the left or right direction.
|
|
28
27
|
*/
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { Device } from "../../utils/breakpoints";
|
|
2
3
|
export declare class PostMegadropdown {
|
|
3
4
|
private firstFocusableEl;
|
|
4
5
|
private lastFocusableEl;
|
|
5
|
-
device:
|
|
6
|
+
device: Device;
|
|
6
7
|
host: HTMLPostMegadropdownElement;
|
|
7
8
|
/** Tracks the currently active dropdown instance. */
|
|
8
9
|
private static activeDropdown;
|
|
@@ -19,6 +19,11 @@ export declare class PostTabs {
|
|
|
19
19
|
* **Changing this value after initialization has no effect.**
|
|
20
20
|
*/
|
|
21
21
|
readonly activePanel?: HTMLPostTabPanelElement['name'];
|
|
22
|
+
/**
|
|
23
|
+
* When set to true, this property allows the tabs container to span the
|
|
24
|
+
* full width of the screen, from edge to edge.
|
|
25
|
+
*/
|
|
26
|
+
fullWidth: boolean;
|
|
22
27
|
/**
|
|
23
28
|
* An event emitted after the active tab changes, when the fade in transition of its associated panel is finished.
|
|
24
29
|
* The payload is the name of the newly shown panel.
|
|
@@ -473,23 +473,14 @@ export namespace Components {
|
|
|
473
473
|
*/
|
|
474
474
|
"activePanel"?: HTMLPostTabPanelElement['name'];
|
|
475
475
|
/**
|
|
476
|
-
*
|
|
477
|
-
|
|
478
|
-
"show": (panelName: string) => Promise<void>;
|
|
479
|
-
}
|
|
480
|
-
interface PostTag {
|
|
481
|
-
/**
|
|
482
|
-
* Defines the icon `name` inside of the component. <span className="banner banner-sm banner-info">If not set the icon will not show up.</span> To learn which icons are available, please visit our <a href="/?path=/docs/0dcfe3c0-bfc0-4107-b43b-7e9d825b805f--docs">icon library</a>.
|
|
483
|
-
*/
|
|
484
|
-
"icon"?: string;
|
|
485
|
-
/**
|
|
486
|
-
* Defines the size of the component.
|
|
476
|
+
* When set to true, this property allows the tabs container to span the full width of the screen, from edge to edge.
|
|
477
|
+
* @default false
|
|
487
478
|
*/
|
|
488
|
-
"
|
|
479
|
+
"fullWidth": boolean;
|
|
489
480
|
/**
|
|
490
|
-
*
|
|
481
|
+
* Shows the panel with the given name and selects its associated tab. Any other panel that was previously shown becomes hidden and its associated tab is unselected.
|
|
491
482
|
*/
|
|
492
|
-
"
|
|
483
|
+
"show": (panelName: string) => Promise<void>;
|
|
493
484
|
}
|
|
494
485
|
interface PostTogglebutton {
|
|
495
486
|
/**
|
|
@@ -883,12 +874,6 @@ declare global {
|
|
|
883
874
|
prototype: HTMLPostTabsElement;
|
|
884
875
|
new (): HTMLPostTabsElement;
|
|
885
876
|
};
|
|
886
|
-
interface HTMLPostTagElement extends Components.PostTag, HTMLStencilElement {
|
|
887
|
-
}
|
|
888
|
-
var HTMLPostTagElement: {
|
|
889
|
-
prototype: HTMLPostTagElement;
|
|
890
|
-
new (): HTMLPostTagElement;
|
|
891
|
-
};
|
|
892
877
|
interface HTMLPostTogglebuttonElement extends Components.PostTogglebutton, HTMLStencilElement {
|
|
893
878
|
}
|
|
894
879
|
var HTMLPostTogglebuttonElement: {
|
|
@@ -940,7 +925,6 @@ declare global {
|
|
|
940
925
|
"post-tab-header": HTMLPostTabHeaderElement;
|
|
941
926
|
"post-tab-panel": HTMLPostTabPanelElement;
|
|
942
927
|
"post-tabs": HTMLPostTabsElement;
|
|
943
|
-
"post-tag": HTMLPostTagElement;
|
|
944
928
|
"post-togglebutton": HTMLPostTogglebuttonElement;
|
|
945
929
|
"post-tooltip": HTMLPostTooltipElement;
|
|
946
930
|
"post-tooltip-trigger": HTMLPostTooltipTriggerElement;
|
|
@@ -1347,23 +1331,14 @@ declare namespace LocalJSX {
|
|
|
1347
1331
|
*/
|
|
1348
1332
|
"activePanel"?: HTMLPostTabPanelElement['name'];
|
|
1349
1333
|
/**
|
|
1350
|
-
*
|
|
1351
|
-
|
|
1352
|
-
"onPostChange"?: (event: PostTabsCustomEvent<string>) => void;
|
|
1353
|
-
}
|
|
1354
|
-
interface PostTag {
|
|
1355
|
-
/**
|
|
1356
|
-
* Defines the icon `name` inside of the component. <span className="banner banner-sm banner-info">If not set the icon will not show up.</span> To learn which icons are available, please visit our <a href="/?path=/docs/0dcfe3c0-bfc0-4107-b43b-7e9d825b805f--docs">icon library</a>.
|
|
1357
|
-
*/
|
|
1358
|
-
"icon"?: string;
|
|
1359
|
-
/**
|
|
1360
|
-
* Defines the size of the component.
|
|
1334
|
+
* When set to true, this property allows the tabs container to span the full width of the screen, from edge to edge.
|
|
1335
|
+
* @default false
|
|
1361
1336
|
*/
|
|
1362
|
-
"
|
|
1337
|
+
"fullWidth"?: boolean;
|
|
1363
1338
|
/**
|
|
1364
|
-
*
|
|
1339
|
+
* An event emitted after the active tab changes, when the fade in transition of its associated panel is finished. The payload is the name of the newly shown panel.
|
|
1365
1340
|
*/
|
|
1366
|
-
"
|
|
1341
|
+
"onPostChange"?: (event: PostTabsCustomEvent<string>) => void;
|
|
1367
1342
|
}
|
|
1368
1343
|
interface PostTogglebutton {
|
|
1369
1344
|
/**
|
|
@@ -1437,7 +1412,6 @@ declare namespace LocalJSX {
|
|
|
1437
1412
|
"post-tab-header": PostTabHeader;
|
|
1438
1413
|
"post-tab-panel": PostTabPanel;
|
|
1439
1414
|
"post-tabs": PostTabs;
|
|
1440
|
-
"post-tag": PostTag;
|
|
1441
1415
|
"post-togglebutton": PostTogglebutton;
|
|
1442
1416
|
"post-tooltip": PostTooltip;
|
|
1443
1417
|
"post-tooltip-trigger": PostTooltipTrigger;
|
|
@@ -1485,7 +1459,6 @@ declare module "@stencil/core" {
|
|
|
1485
1459
|
"post-tab-header": LocalJSX.PostTabHeader & JSXBase.HTMLAttributes<HTMLPostTabHeaderElement>;
|
|
1486
1460
|
"post-tab-panel": LocalJSX.PostTabPanel & JSXBase.HTMLAttributes<HTMLPostTabPanelElement>;
|
|
1487
1461
|
"post-tabs": LocalJSX.PostTabs & JSXBase.HTMLAttributes<HTMLPostTabsElement>;
|
|
1488
|
-
"post-tag": LocalJSX.PostTag & JSXBase.HTMLAttributes<HTMLPostTagElement>;
|
|
1489
1462
|
"post-togglebutton": LocalJSX.PostTogglebutton & JSXBase.HTMLAttributes<HTMLPostTogglebuttonElement>;
|
|
1490
1463
|
"post-tooltip": LocalJSX.PostTooltip & JSXBase.HTMLAttributes<HTMLPostTooltipElement>;
|
|
1491
1464
|
"post-tooltip-trigger": LocalJSX.PostTooltipTrigger & JSXBase.HTMLAttributes<HTMLPostTooltipTriggerElement>;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
+
export type Device = 'desktop' | 'tablet' | 'mobile';
|
|
2
|
+
export type BreakpointKey = 'xl' | 'lg' | 'md' | 'sm' | 'xs';
|
|
3
|
+
export type BreakpointMinWidth = 1280 | 1024 | 780 | 600 | 0;
|
|
1
4
|
interface BreakpointDefinition {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
minWidth:
|
|
5
|
+
device: Device;
|
|
6
|
+
key: BreakpointKey;
|
|
7
|
+
minWidth: BreakpointMinWidth;
|
|
5
8
|
}
|
|
6
9
|
type BreakpointProperty = keyof BreakpointDefinition;
|
|
7
10
|
declare class Breakpoint {
|
|
8
11
|
private readonly breakpoints;
|
|
9
12
|
private currentBreakpoint;
|
|
10
13
|
constructor();
|
|
11
|
-
private getValues;
|
|
12
14
|
private updateCurrentBreakpoint;
|
|
13
15
|
private dispatchEvent;
|
|
14
16
|
get<T extends BreakpointProperty>(property: T): BreakpointDefinition[T];
|