@swisspost/design-system-components 10.0.0-next.41 → 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.
Files changed (184) hide show
  1. package/dist/cjs/{breakpoints-DIH5Oaz7.js → breakpoints-DmZ_BQGo.js} +13 -17
  2. package/dist/cjs/{get-root-DmyBVSJ_.js → get-root-CfQ2PogP.js} +1 -1
  3. package/dist/cjs/{index-CRMt-jq2.js → index-CpDyH7Ww.js} +1 -5
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/{package-C2pR6Vs2.js → package-BFQrBDHY.js} +1 -1
  6. package/dist/cjs/post-accordion_2.cjs.entry.js +4 -4
  7. package/dist/cjs/post-avatar.cjs.entry.js +4 -4
  8. package/dist/cjs/post-back-to-top.cjs.entry.js +3 -3
  9. package/dist/cjs/post-banner.cjs.entry.js +4 -4
  10. package/dist/cjs/post-breadcrumb-item_2.cjs.entry.js +3 -3
  11. package/dist/cjs/post-breadcrumbs.cjs.entry.js +4 -4
  12. package/dist/cjs/post-card-control.cjs.entry.js +4 -4
  13. package/dist/cjs/post-closebutton_15.cjs.entry.js +47 -36
  14. package/dist/cjs/post-collapsible_2.cjs.entry.js +4 -4
  15. package/dist/cjs/post-components.cjs.js +2 -2
  16. package/dist/cjs/post-footer.cjs.entry.js +4 -4
  17. package/dist/cjs/post-linkarea.cjs.entry.js +3 -3
  18. package/dist/cjs/post-popover.cjs.entry.js +4 -4
  19. package/dist/cjs/post-rating.cjs.entry.js +3 -3
  20. package/dist/cjs/post-tab-header.cjs.entry.js +3 -3
  21. package/dist/cjs/post-tab-panel.cjs.entry.js +3 -3
  22. package/dist/cjs/post-tabs.cjs.entry.js +10 -5
  23. package/dist/cjs/post-tooltip-trigger.cjs.entry.js +4 -4
  24. package/dist/cjs/post-tooltip.cjs.entry.js +5 -5
  25. package/dist/collection/collection-manifest.json +0 -1
  26. package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
  27. package/dist/collection/components/post-avatar/post-avatar.css +1 -1
  28. package/dist/collection/components/post-banner/post-banner.css +1 -1
  29. package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.css +1 -1
  30. package/dist/collection/components/post-card-control/post-card-control.css +1 -1
  31. package/dist/collection/components/post-footer/post-footer.js +1 -1
  32. package/dist/collection/components/post-header/post-header.css +1 -1
  33. package/dist/collection/components/post-header/post-header.js +30 -11
  34. package/dist/collection/components/post-icon/post-icon.js +1 -1
  35. package/dist/collection/components/post-language-option/post-language-option.css +1 -1
  36. package/dist/collection/components/post-language-option/post-language-option.js +1 -1
  37. package/dist/collection/components/post-linkarea/post-linkarea.js +1 -1
  38. package/dist/collection/components/post-list/post-list.css +1 -1
  39. package/dist/collection/components/post-list/post-list.js +1 -1
  40. package/dist/collection/components/post-list-item/post-list-item.js +1 -1
  41. package/dist/collection/components/post-logo/post-logo.js +1 -1
  42. package/dist/collection/components/post-mainnavigation/post-mainnavigation.css +1 -1
  43. package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +1 -6
  44. package/dist/collection/components/post-megadropdown/post-megadropdown.js +2 -4
  45. package/dist/collection/components/post-menu/post-menu.js +1 -1
  46. package/dist/collection/components/post-popover/post-popover.css +1 -1
  47. package/dist/collection/components/post-popover/post-popover.js +1 -1
  48. package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
  49. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +1 -1
  50. package/dist/collection/components/post-tabs/post-tabs.css +1 -1
  51. package/dist/collection/components/post-tabs/post-tabs.js +26 -1
  52. package/dist/collection/components/post-togglebutton/post-togglebutton.js +1 -1
  53. package/dist/collection/components/post-tooltip/post-tooltip.css +1 -1
  54. package/dist/collection/components/post-tooltip/post-tooltip.js +2 -2
  55. package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +1 -1
  56. package/dist/collection/utils/breakpoints.js +13 -17
  57. package/dist/components/index.js +1 -1
  58. package/dist/components/{p-BLhBouGz.js → p-1ViVKUF6.js} +4 -4
  59. package/dist/components/{p-Cpaqct04.js → p-B9s3i4RA.js} +3 -3
  60. package/dist/components/{p-fmA57Ivd.js → p-C79jtIcS.js} +3 -3
  61. package/dist/components/{p-elg4VvHg.js → p-C99jx7Ii.js} +4 -4
  62. package/dist/components/{p-DBHo9yGF.js → p-CBFgkSgY.js} +1 -1
  63. package/dist/{esm/breakpoints-DyVir0ex.js → components/p-CJ80BZ06.js} +16 -20
  64. package/dist/components/p-CiFN4Rz9.js +3 -0
  65. package/dist/components/{p-CaPj3whI.js → p-Co3L0HjR.js} +3 -3
  66. package/dist/components/{p-DlEtlaNu.js → p-CqArUD7l.js} +2 -2
  67. package/dist/components/{p-DQuPPEca.js → p-D2SIHwlN.js} +1 -1
  68. package/dist/components/{p-D3LhzIrC.js → p-DWxTKWHJ.js} +3 -3
  69. package/dist/components/{p-DphlfQse.js → p-DdEQb55p.js} +2 -2
  70. package/dist/components/{p-CtNCtg2z.js → p-Dy3Riej-.js} +6 -6
  71. package/dist/components/post-accordion-item.js +1 -1
  72. package/dist/components/post-accordion.js +1 -1
  73. package/dist/components/post-avatar.js +3 -3
  74. package/dist/components/post-back-to-top.js +3 -3
  75. package/dist/components/post-banner.js +4 -4
  76. package/dist/components/post-breadcrumb-item.js +1 -1
  77. package/dist/components/post-breadcrumbs.js +9 -9
  78. package/dist/components/post-card-control.js +4 -4
  79. package/dist/components/post-closebutton.js +2 -2
  80. package/dist/components/post-collapsible-trigger.js +1 -1
  81. package/dist/components/post-collapsible.js +1 -1
  82. package/dist/components/post-footer.js +8 -8
  83. package/dist/components/post-header.js +31 -13
  84. package/dist/components/post-icon.js +1 -1
  85. package/dist/components/post-language-option.js +4 -4
  86. package/dist/components/post-language-switch.js +6 -6
  87. package/dist/components/post-linkarea.js +2 -2
  88. package/dist/components/post-list-item.js +2 -2
  89. package/dist/components/post-list.js +3 -3
  90. package/dist/components/post-logo.js +3 -3
  91. package/dist/components/post-mainnavigation.js +4 -9
  92. package/dist/components/post-megadropdown-trigger.js +2 -2
  93. package/dist/components/post-megadropdown.js +4 -6
  94. package/dist/components/post-menu-item.js +1 -1
  95. package/dist/components/post-menu-trigger.js +1 -1
  96. package/dist/components/post-menu.js +1 -1
  97. package/dist/components/post-popover.js +4 -4
  98. package/dist/components/post-popovercontainer.js +1 -1
  99. package/dist/components/post-rating.js +3 -3
  100. package/dist/components/post-tab-header.js +2 -2
  101. package/dist/components/post-tab-panel.js +2 -2
  102. package/dist/components/post-tabs.js +10 -4
  103. package/dist/components/post-togglebutton.js +2 -2
  104. package/dist/components/post-tooltip-trigger.js +3 -3
  105. package/dist/components/post-tooltip.js +5 -5
  106. package/dist/docs.json +45 -139
  107. package/dist/{components/p-Cx0AiN2A.js → esm/breakpoints-_0G7tavk.js} +16 -20
  108. package/dist/esm/{get-root-D9QC9-TY.js → get-root-hlzxoycr.js} +1 -1
  109. package/dist/esm/{index-CVhzhVv0.js → index-C8a0ddDa.js} +1 -5
  110. package/dist/esm/loader.js +3 -3
  111. package/dist/esm/package-CiFN4Rz9.js +3 -0
  112. package/dist/esm/post-accordion_2.entry.js +4 -4
  113. package/dist/esm/post-avatar.entry.js +4 -4
  114. package/dist/esm/post-back-to-top.entry.js +3 -3
  115. package/dist/esm/post-banner.entry.js +4 -4
  116. package/dist/esm/post-breadcrumb-item_2.entry.js +3 -3
  117. package/dist/esm/post-breadcrumbs.entry.js +4 -4
  118. package/dist/esm/post-card-control.entry.js +4 -4
  119. package/dist/esm/post-closebutton_15.entry.js +47 -36
  120. package/dist/esm/post-collapsible_2.entry.js +4 -4
  121. package/dist/esm/post-components.js +3 -3
  122. package/dist/esm/post-footer.entry.js +4 -4
  123. package/dist/esm/post-linkarea.entry.js +3 -3
  124. package/dist/esm/post-popover.entry.js +4 -4
  125. package/dist/esm/post-rating.entry.js +3 -3
  126. package/dist/esm/post-tab-header.entry.js +3 -3
  127. package/dist/esm/post-tab-panel.entry.js +3 -3
  128. package/dist/esm/post-tabs.entry.js +10 -5
  129. package/dist/esm/post-tooltip-trigger.entry.js +4 -4
  130. package/dist/esm/post-tooltip.entry.js +5 -5
  131. package/dist/post-components/{p-62982420.entry.js → p-0d3ab7f7.entry.js} +1 -1
  132. package/dist/post-components/{p-7a7d237b.entry.js → p-0fb50e3d.entry.js} +1 -1
  133. package/dist/post-components/{p-fb46e260.entry.js → p-2f03d479.entry.js} +1 -1
  134. package/dist/post-components/p-3645ac4e.entry.js +1 -0
  135. package/dist/post-components/{p-1e006e29.entry.js → p-41dd61d4.entry.js} +1 -1
  136. package/dist/post-components/{p-ec764922.entry.js → p-4410eecd.entry.js} +1 -1
  137. package/dist/post-components/{p-925aee3d.entry.js → p-5e84d796.entry.js} +1 -1
  138. package/dist/post-components/{p-8e89ccc1.entry.js → p-635e2004.entry.js} +1 -1
  139. package/dist/post-components/p-69048834.entry.js +1 -0
  140. package/dist/post-components/{p-50916d48.entry.js → p-70d20143.entry.js} +1 -1
  141. package/dist/post-components/p-7b6a56ba.entry.js +1 -0
  142. package/dist/post-components/{p-9003674b.entry.js → p-830d243f.entry.js} +1 -1
  143. package/dist/post-components/p-9f0408e9.entry.js +1 -0
  144. package/dist/post-components/{p-Bkp2QDth.js → p-BkvZk-PA.js} +1 -1
  145. package/dist/post-components/p-C8a0ddDa.js +2 -0
  146. package/dist/post-components/p-CiFN4Rz9.js +1 -0
  147. package/dist/post-components/p-_0G7tavk.js +1 -0
  148. package/dist/post-components/p-b20922d5.entry.js +1 -0
  149. package/dist/post-components/{p-8d5a4218.entry.js → p-bb139af8.entry.js} +1 -1
  150. package/dist/post-components/p-e4c72272.entry.js +1 -0
  151. package/dist/post-components/{p-78f4dd12.entry.js → p-f1e0c995.entry.js} +1 -1
  152. package/dist/post-components/p-f6ce2870.entry.js +1 -0
  153. package/dist/post-components/post-components.css +1 -1
  154. package/dist/post-components/post-components.esm.js +1 -1
  155. package/dist/types/components/post-footer/post-footer.d.ts +2 -1
  156. package/dist/types/components/post-header/post-header.d.ts +4 -1
  157. package/dist/types/components/post-mainnavigation/post-mainnavigation.d.ts +0 -1
  158. package/dist/types/components/post-megadropdown/post-megadropdown.d.ts +2 -1
  159. package/dist/types/components/post-tabs/post-tabs.d.ts +5 -0
  160. package/dist/types/components.d.ts +10 -37
  161. package/dist/types/utils/breakpoints.d.ts +6 -4
  162. package/hydrate/index.js +78 -128
  163. package/hydrate/index.mjs +78 -128
  164. package/package.json +7 -8
  165. package/dist/cjs/post-tag.cjs.entry.js +0 -55
  166. package/dist/collection/components/post-tag/post-tag.css +0 -1
  167. package/dist/collection/components/post-tag/post-tag.js +0 -133
  168. package/dist/components/p-1KLiMO0w.js +0 -3
  169. package/dist/components/post-tag.d.ts +0 -11
  170. package/dist/components/post-tag.js +0 -87
  171. package/dist/esm/package-1KLiMO0w.js +0 -3
  172. package/dist/esm/post-tag.entry.js +0 -53
  173. package/dist/post-components/p-0d08ab13.entry.js +0 -1
  174. package/dist/post-components/p-1KLiMO0w.js +0 -1
  175. package/dist/post-components/p-3a5bdb7f.entry.js +0 -1
  176. package/dist/post-components/p-4214b85e.entry.js +0 -1
  177. package/dist/post-components/p-5f4126d8.entry.js +0 -1
  178. package/dist/post-components/p-80174475.entry.js +0 -1
  179. package/dist/post-components/p-9b446561.entry.js +0 -1
  180. package/dist/post-components/p-9ec29527.entry.js +0 -1
  181. package/dist/post-components/p-CVhzhVv0.js +0 -2
  182. package/dist/post-components/p-DyVir0ex.js +0 -1
  183. package/dist/post-components/p-fa550b4a.entry.js +0 -1
  184. package/dist/types/components/post-tag/post-tag.d.ts +0 -29
@@ -1 +0,0 @@
1
- import{r as t,h as e,H as o,a as i,c as n}from"./p-CVhzhVv0.js";import{v as a}from"./p-1KLiMO0w.js";import{t as s,b as r,I as l}from"./p-DyVir0ex.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 u,c as g,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-Bkp2QDth.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()},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&&Array.from(this.host.querySelectorAll("post-megadropdown")).forEach((t=>{t.hide(!1,!0)})))}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-mainnavigation > .back-button, 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()))}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("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:"90a8c0bedc440a7242167267a62772939c3e92bc","data-version":a},e("div",{key:"605d0dd51867f6748cc1148d6336c3e42943a4cb",class:"global-header"},e("div",{key:"12ea812d7aca78f86cea0494029b92d7e7e5c4e7",class:"global-sub"},e("div",{key:"e6e2e92bedc2b2abd84546ed7bbf8d54b4cb6f79",class:"logo"},e("slot",{key:"52b5fa88095656878d81b5bfae5d9e2d4e154d6d",name:"post-logo"}))),e("div",{key:"428c5a10001e44fb0fc0f4806bca223697de874f",class:"global-sub"},"desktop"===this.device&&e("slot",{key:"806129b790ec2e92a2229c4c83b390604bf7402f",name:"meta-navigation"}),e("slot",{key:"d1b8d1967dc6847999040f7d6be49ccdb9888c73",name:"global-controls"}),"desktop"===this.device&&e("slot",{key:"c9dec95d646e20493efde8648e0962782844d218",name:"post-language-switch"}),e("div",{key:"ce6105955665c13392a38968cea359c431e002a4",onClick:()=>this.toggleMobileMenu(),class:"mobile-toggle"},e("slot",{key:"0dadceedde6aa20e0e2255c49b8b56995a2131b2",name:"post-togglebutton"})))),e("div",{key:"cffb43a5b2c1843f42b73288c713f633949879db",class:"local-header "+(this.mobileMenuExtended?"local-header-mobile-extended":"")},e("slot",{key:"d36e0dda59b4a6d5fe61b3ac48fcdc1868fd0a4b",name:"title"}),e("div",{key:"998114aff9f726b3d9edf256756d399efd2e0751",class:"local-sub"},e("slot",{key:"222017a680af7bbeca73d7414801fd3ce3a55099",name:"local-controls"}),e("slot",{key:"760849a61ffea59dc184c4ae31b254f7c53aaaa3"})),"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)}}.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{display:none;flex-direction:column;padding-block:16px 24px;padding-inline:32px}.navigation.extended ::slotted(post-mainnavigation),.navigation.extended .navigation-footer{display:flex}.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}::slotted(post-mainnavigation){gap:32px}.navigation-footer{background-color:#f0efed;gap:24px}}@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(){u(this,"base","string")}validateName(){g(this,"name","string")}validateRotate(){u(this,"rotate","number")}validateScale(){u(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:"1427e07f64159df95922a2e79343447675183c3c","data-version":a},e("span",{key:"a83eadbc13d9c5876d135cd5282cfa451951d2fe",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(){g(this,"code","string")}validateVariant(){h(this,"variant",M)}validateName(){u(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:"9e1364dd3214a5bec9d4fa7e4c794d2d3baa7796","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-scheme-color-surface-default-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(){g(this,"caption","string")}validateDescription(){g(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 L=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:"9c840e19d92cb7417aaa8395a1d15248dbe274dc","data-version":a},e("div",{key:"973c24857b843c96ae41e6937042ca968bf16d09",ref:t=>this.titleEl=t,id:this.titleId,class:"list-title"+(this.titleHidden?" visually-hidden":"")},e("slot",{key:"594403d0d7ce9bdf7d7b2b6a5bd6a4b75f305ac2"})),e("div",{key:"76cb68b6913f8a574c998d9554a68788170a5fa1",role:"list","aria-labelledby":this.titleId},e("slot",{key:"3b7f42ddec020297ac1bdd615274089bc4300f09",name:"post-list-item"})))}get host(){return i(this)}};L.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{width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}post-list>.list-title.visually-hidden:not(caption){position:absolute !important}";const H=class{constructor(e){t(this,e)}connectedCallback(){this.host.setAttribute("slot","post-list-item")}render(){return e(o,{key:"83d78cdee7b19cd48bd2d601d4ae8fd288027918",role:"listitem",slot:"post-list-item",version:a},e("slot",{key:"7b5900ae509b8ad98aa5e5d4f2053ee61889b140"}))}get host(){return i(this)}};H.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:"acbb3910083a3a8ba6250096f2a7330c0bae19bc","data-version":a},e(t?"a":"span",{key:"db6e237031f4d58e50cf56e9bd63124e9b8811d8",class:"logo "+(t?"logo-link":""),...t?{href:t}:{}},e("span",{key:"439f8c6fca5647bf36eab69361089bba97830933",class:"description"},e("slot",{key:"fbbd95d221c91dd6a22823802cbcd680fb3d2210",onSlotchange:()=>this.checkDescription()})),e("svg",{key:"4c12add52030e6bb414246acb073b4b5cb88cd8f",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 72 72","aria-hidden":"true"},e("g",{key:"a103907694067c20eff3db5695a85daa78f8e293",id:"Logo"},e("rect",{key:"bba502be5b0598df7a7a9be11ec878c4c98f813e",fill:"#ffcc00",x:"0",y:"0",width:"72",height:"72"}),e("polygon",{key:"d5b8cdf3ba35ff13ac037a59347f5decbd5266fe",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:"4dd42726bd15f4a47054e79c4b66093a5f1d088a",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 `}))}handleBackButtonClick(){const t=this.navbar.closest("post-header");t&&t.toggleMobileMenu()}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:"0aaf98ec2144bec91f4eec42ab367a419e406681",slot:"post-mainnavigation",version:a},e("div",{key:"b09cff2d01eb4bbc75824368433c7d730cbb2230",onClick:()=>this.handleBackButtonClick(),class:"back-button"},e("slot",{key:"0270f7b3fcd2702d44159d0325604c02b582a89e",name:"back-button"})),e("div",{key:"70f46db7348b1e8b34ec57a055763637fbde68e6","aria-hidden":"true",class:{"scroll-control scroll-left":!0,"d-none":!this.canScrollLeft},onMouseDown:t=>this.handleScrollButtonClick(t,"left")},e("post-icon",{key:"4326ec1115371476986e594556127f2710543b4f","aria-hidden":"true",name:"chevronleft"})),e("nav",{key:"e20213b2b307f29ea2ff6d39a766144bae5dff3b",ref:t=>this.navbar=t},e("slot",{key:"17c5b51c7a29ead6635f72df25bb5457d4b86ecf"})),e("div",{key:"9b8a2033a772315167c0c28b5ba769a4c5a957e8","aria-hidden":"true",class:{"scroll-control scroll-right":!0,"d-none":!this.canScrollRight},onMouseDown:t=>this.handleScrollButtonClick(t,"right")},e("post-icon",{key:"f941e874a0b28b784f248e0e6ec8eeb5feb61ef7","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}@media screen and (max-width: 1023.98px){post-mainnavigation .back-button{font-size:16px}}@media screen and (max-width: 599.98px){post-mainnavigation .back-button{font-size:14px}}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 (min-width: 1024px){post-mainnavigation [slot=back-button]{display:none}}@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)}}post-mainnavigation .back-button .btn{padding-inline:0}';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:"3e846f475540067d9c58b60f636730a2b38a0aff",version:a},e("div",{key:"47133c10dc15b7e5641a9fb47a1875ba89581e23",class:`megadropdown-container ${this.animationClass||""}`,style:this.isVisible?{}:{display:"none"},onAnimationEnd:()=>this.handleAnimationEnd()},e("div",{key:"8f64dc9ef745ed4434fe00a48f76cc12b96e6443",class:"megadropdown"},e("slot",{key:"5041727da18956a26ce43f870cde81264431cb23",name:"megadropdown-title"}),e("div",{key:"5ac34fe4ab27de09c9fc825c3999f2294abc624c",class:"megadropdown-content"},e("slot",{key:"f8917a15cd28082d0c0d88046f355aa85767255f"})),e("div",{key:"7fdaae11f771b92f11b2ed12be096f2936d9e08b",onClick:()=>this.hide(!0),class:"back-button"},e("slot",{key:"de791c42ef57abbde0ae9d24e1bcdb64b5e873cc",name:"back-button"})),e("div",{key:"be88c1f94bc3eb7507e5de0a558a87a31936b6a0",onClick:()=>this.hide(!0),class:"close-button"},e("slot",{key:"444b996c0001f283279406d00708e4291d5af5bc",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(){g(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 B=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")],B.prototype,"handlePostToggle",void 0),B.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 O=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(){g(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"]}}};O.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"},V={start:"end",end:"start"};function U(t,e,o){return F(t,P(e,o))}function q(t,e){return"function"==typeof t?t(e):t}function X(t){return t.split("-")[0]}function G(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 J(t){return Q.has(X(t))?"y":"x"}function Z(t){return Y(J(t))}function tt(t){return t.replace(/start|end/g,(t=>V[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=J(e),s=Z(e),r=K(s),l=X(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 u;switch(l){case"top":u={x:d,y:i.y-n.height};break;case"bottom":u={x:d,y:i.y+i.height};break;case"right":u={x:i.x+i.width,y:p};break;case"left":u={x:i.x-n.width,y:p};break;default:u={x:i.x,y:i.y}}switch(G(e)){case"start":u[s]-=h*(o&&c?-1:1);break;case"end":u[s]+=h*(o&&c?-1:1)}return u}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:u=0}=q(e,t),g=st(u),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+g.top)/w.y,bottom:(x.bottom-m.bottom+g.bottom)/w.y,left:(m.left-x.left+g.left)/w.x,right:(x.right-m.right+g.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 ut(t){return mt(t)?(t.nodeName||"").toLowerCase():"#document"}function gt(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 gt(t).Node)}function bt(t){return!!ht()&&(t instanceof Element||t instanceof gt(t).Element)}function vt(t){return!!ht()&&(t instanceof HTMLElement||t instanceof gt(t).HTMLElement)}function wt(t){return!(!ht()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof gt(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(ut(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=Lt(),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 Lt(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Ht=new Set(["html","body","#document"]);function $t(t){return Ht.has(ut(t))}function Dt(t){return gt(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"===ut(t))return t;const e=t.assignedSlot||t.parentNode||wt(t)&&t.host||ft(t);return wt(e)?e.host:e}function Bt(t){const e=jt(t);return $t(e)?t.ownerDocument?t.ownerDocument.body:t.body:vt(e)&&yt(e)?e:Bt(e)}function Ot(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const n=Bt(t),a=n===(null==(i=t.ownerDocument)?void 0:i.body),s=gt(n);if(a){const t=Pt(s);return e.concat(s,s.visualViewport||[],yt(n)?n:[],t&&o?Ot(t):[])}return e.concat(n,Ot(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=gt(t);return Lt()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Wt}function Vt(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!==gt(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=gt(a),e=i&&bt(i)?gt(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=gt(n),n=Pt(o)}}return rt({width:d,height:p,x:l,y:c})}function Ut(t,e){const o=Rt(t).scrollLeft;return e?e.left+o:Vt(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:Ut(t,i)),y:i.top+e.scrollTop}}const Xt=new Set(["absolute","fixed"]);function Gt(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=gt(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=Lt();(!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+Ut(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=Vt(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=Vt(t,!0,a,e);let r={scrollLeft:0,scrollTop:0};const l=W(0);function c(){l.x=Ut(n)}if(i||!i&&!a)if(("body"!==ut(e)||yt(n))&&(r=Rt(e)),i){const t=Vt(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 Jt(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 Zt(t,e){const o=gt(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=Jt(t,e);for(;i&&St(i)&&Qt(i);)i=Jt(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"!==ut(i)||yt(s))&&(l=Rt(i)),vt(i))){const t=Vt(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=Ot(t,[],!1).filter((t=>bt(t)&&"body"!==ut(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&&Xt.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=Gt(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}),Gt(e,a[0],n));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Zt,getElementRects:async function(t){const e=this.getOffsetParent||Zt,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=X(o),r=G(o),l="y"===J(o),c=pt.has(s)?-1:1,d=a&&l?-1:1,p=q(e,t);let{mainAxis:h,crossAxis:u,alignmentAxis:g}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return r&&"number"==typeof g&&(u="end"===r?-1*g:g),l?{x:u*d,y:h*c}:{x:h*c,y:u*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=J(X(n)),h=Y(p);let u=c[h],g=c[p];a&&(u=U(u+d["y"===h?"top":"left"],u,u-d["y"===h?"bottom":"right"])),s&&(g=U(g+d["y"===p?"top":"left"],g,g-d["y"===p?"bottom":"right"]));const f=r.fn({...e,[h]:u,[p]:g});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:u="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:f=!0,...m}=q(t,e);if(null!=(o=a.arrow)&&o.alignmentOffset)return{};const b=X(n),v=J(r),w=X(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"!==g;!h&&k&&y.push(...function(t,e,o,i){const n=G(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[]}}(X(t),"start"===o,i);return n&&(a=a.map((t=>t+"-"+n)),e&&(a=a.concat(a.map(tt)))),a}(r,f,g,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=G(t),n=Z(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===J(e)||z.every((t=>t.overflows[0]>0&&J(t.placement)===v))))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(u){case"bestFit":{var C;const t=null==(C=z.filter((t=>{if(k){const e=J(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=X(n),h=G(n),u="y"===J(n),{width:g,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=g-d.left-d.right;let x=P(f-d[m],v),y=P(g-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);u?y=g-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 g!==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=J(n),h=Y(p);let u=d[h],g=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;u<e?u=e:u>o&&(u=o)}if(c){var b,v;const t="y"===h?"width":"height",e=pt.has(X(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);g<o?g=o:g>i&&(g=i)}return{[h]:u,[p]:g}}}};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,ue=new WeakMap,ge=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=ue.get(document)||new Set,o=ge.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=ge.get(t)||new Set,i=ue.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,ue.get(e)||new Set),s=Ee(t,ge.get(e)||new Set);if("auto"===i&&(Le(ge.get(e)||new Set,o,!0),$e(a||e,o,!0),n="auto"),"hint"===i&&(s?($e(s,o,!0),n="hint"):(Le(ge.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?(ue.has(e)||ue.set(e,new Set),ue.get(e).add(t)):"hint"===n&&(ge.has(e)||ge.set(e,new Set),ge.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),Be(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=ue.get(i)||new Set,a=n.has(t)&&ve(n)===t;if(Be(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),ge.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 Le(t,e=!1,o=!1){let i=ke(t);for(;i;)Ce(i,e,o),i=ke(t)}function He(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);ge.get(i)?.has(t)?He(t,ge.get(i),e,o):(Le(ge.get(i)||new Set,e,o),ue.get(i)?.has(t)&&He(t,ue.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 Be(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 Oe=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(){u(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 Oe)&&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 Oe||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?Ot(c):[],...Ot(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:u}=c;if(r||e(),!h||!u)return;const g={rootMargin:-I(p)+"px "+-I(n.clientWidth-(d+h))+"px "+-I(n.clientHeight-(p+u))+"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,{...g,root:n.ownerDocument})}catch(t){i=new IntersectionObserver(m,g)}i.observe(t)}(!0),a}(c,o):null;let h,u=-1,g=null;s&&(g=new ResizeObserver((t=>{let[i]=t;i&&i.target===c&&g&&(g.unobserve(e),cancelAnimationFrame(u),u=requestAnimationFrame((()=>{var t;null==(t=g)||t.observe(e)}))),o()})),c&&!l&&g.observe(c),g.observe(e));let f=l?Vt(t):null;return l&&function e(){const i=Vt(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=g)||t.disconnect(),g=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)),u=st(r),g=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-u.left&&l<t.right+u.right&&c>t.top-u.top&&c<t.bottom+u.bottom))||h;if(p.length>=2){if("y"===J(e)){const t=p[0],o=p[p.length-1],i="top"===X(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"===X(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!==g.reference.x||n.reference.y!==g.reference.y||n.reference.width!==g.reference.width||n.reference.height!==g.reference.height?{reset:{rects:g}}:{}}}),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},u=Z(n),g=K(u),f=await s.getDimensions(c),m="y"===u,b=m?"top":"left",v=m?"bottom":"right",w=m?"clientHeight":"clientWidth",x=a.reference[g]+a.reference[u]-h[u]-a.floating[g],y=h[u]-a.reference[u],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[g]);const T=x/2-y/2,E=S/2-f[g]/2-1,z=P(p[b],E),M=P(p[v],E),A=z,C=S-f[g]-M,L=S/2-f[g]/2+T,H=U(A,L,C),$=!l.arrow&&null!=G(n)&&L!==H&&a.reference[g]/2-(L<A?z:M)-f[g]/2<0,D=$?L<A?L-A:L-C:0;return{[u]:h[u]+D,data:{[u]:H,centerOffset:L-H-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,u={},g=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:u,rects:c,platform:s,elements:{reference:t,floating:e}});d=null!=m?m:d,p=null!=b?b:p,u={...u,[a]:{...u[a],...v}},w&&g<=50&&(g++,"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:u}})(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-palette-fg);background-color:var(--post-current-palette-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:"1025fb988460e85c92e49241889363e1bcc840eb","data-version":a,role:"button",tabindex:"0","aria-pressed":this.toggled.toString()},e("slot",{key:"20d3eb9415685fb9a00a5613474c432f6638692e"}))}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,L as post_list,H as post_list_item,$ as post_logo,D as post_mainnavigation,R as post_megadropdown,j as post_megadropdown_trigger,B as post_menu,O as post_menu_trigger,We as post_popovercontainer,_e as post_togglebutton}
@@ -1 +0,0 @@
1
- import{r as t,h as a,H as e,a as i}from"./p-CVhzhVv0.js";import{v as s}from"./p-1KLiMO0w.js";import{e as o,a as r}from"./p-BWC0gtGU.js";import"./p-DyVir0ex.js";const g=class{constructor(a){t(this,a),this.setClasses=this.setClasses.bind(this)}variantChanged(){o(this,"variant",["white","info","success","error","warning","yellow"]),this.setClasses()}sizeChanged(){o(this,"size",["sm"]),this.setClasses()}validateName(){r(this,"icon","string")}setClasses(){this.classes=["tag",this.size?`tag-${this.size}`:null,this.variant?`tag-${this.variant}`:null].filter((t=>null!==t)).join(" ")}componentWillLoad(){this.validateName(),this.variantChanged(),this.sizeChanged()}connectedCallback(){this.setClasses()}render(){return a(e,{key:"9e30e11663e54fb6bc389cfe7b060cace37c304e","data-version":s},a("div",{key:"09b0ea2d6df0631f00d78a6978d4aad4b429f39e",class:this.classes},this.icon?a("post-icon",{name:this.icon}):null,a("div",{key:"a041daf35564806f3bff974d04536972b1564a35",class:"tag-text"},a("slot",{key:"97fb0e540d631062268b9080db3eb5e4aacf0242"}))))}get host(){return i(this)}static get watchers(){return{variant:["variantChanged"],size:["sizeChanged"],icon:["validateName"]}}};g.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)}}.tag,.tag:where(:has(:not(pre))){--post-tag-bg:hsl(0, 0%, 90%);--post-tag-fg:#000;display:inline-flex;align-items:center;gap:var(--post-core-dimension-4);padding:0 var(--post-core-dimension-8);max-width:100%;background-color:var(--post-tag-bg);border:var(--post-core-dimension-1) solid rgba(0,0,0,0);border-radius:var(--post-core-dimension-4);font-size:1rem;line-height:calc(var(--post-core-dimension-32) - var(--post-core-dimension-1)*2);white-space:nowrap;color:var(--post-tag-fg)}.tag post-icon,.tag:where(:has(:not(pre))) post-icon{flex:0 0 auto;width:1.25rem;height:1.25rem}.tag .tag-text,.tag:where(:has(:not(pre))) .tag-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag .tag-text svg,.tag .tag-text img,.tag:where(:has(:not(pre))) .tag-text svg,.tag:where(:has(:not(pre))) .tag-text img{display:inline-block;height:1.25rem !important;vertical-align:text-top}.tag.tag-sm,.tag:where(:has(:not(pre))).tag-sm{line-height:var(--post-core-dimension-24)}.tag.tag-sm .tag-icon,.tag:where(:has(:not(pre))).tag-sm .tag-icon{width:1rem;height:1rem}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{--post-tag-bg:#fff;--post-tag-fg:#000}.tag.tag-yellow,.tag:where(:has(:not(pre))).tag-yellow{--post-tag-bg:#fc0;--post-tag-fg:#000}.tag.tag-success,.tag:where(:has(:not(pre))).tag-success{--post-tag-bg:#2c871d;--post-tag-fg:#fff}.tag.tag-warning,.tag:where(:has(:not(pre))).tag-warning{--post-tag-bg:#f49e00;--post-tag-fg:#000}.tag.tag-danger,.tag:where(:has(:not(pre))).tag-danger{--post-tag-bg:#a51728;--post-tag-fg:#fff}.tag.tag-info,.tag:where(:has(:not(pre))).tag-info{--post-tag-bg:#cce4ee;--post-tag-fg:#000}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{border-color:#000}pre .tag,pre .tag:where(:has(:not(pre))){display:inline;padding:initial;max-width:initial;background:initial;border:initial;border-radius:initial;font-size:inherit;line-height:inherit;white-space:unset}*,*:before,*:after{box-sizing:border-box}.tag-text ::slotted(svg),.tag-text ::slotted(img){display:inline-block !important;height:1.25rem !important;vertical-align:text-top !important}";export{g as post_tag}
@@ -1 +0,0 @@
1
- import{r as t,h as a,H as e,a as s}from"./p-CVhzhVv0.js";import{v as r}from"./p-1KLiMO0w.js";import{n as o}from"./p-BLchVpF6.js";import{c as i}from"./p-BWC0gtGU.js";import"./p-DyVir0ex.js";const n=class{constructor(a){t(this,a)}validateName(){i(this,"name","string")}componentWillLoad(){this.validateName(),this.panelId=`panel-${this.host.id||o(6)}`}render(){return a(e,{key:"609dd2b8bf26e58e92a1dbc827e4479ac416d95b","data-version":r,id:this.panelId,role:"tabpanel"},a("slot",{key:"121538878e0298f1f16f6e20eeb15d5da8a5ba9c"}))}get host(){return s(this)}static get watchers(){return{name:["validateName"]}}};n.style=":host{display:none}";export{n as post_tab_panel}
@@ -1 +0,0 @@
1
- import{r as t,h as e,H as o,a as s}from"./p-CVhzhVv0.js";import{v as i}from"./p-1KLiMO0w.js";import{e as a}from"./p-BWC0gtGU.js";import"./p-DyVir0ex.js";import{P as n}from"./p-DRiVosES.js";const r=class{constructor(e){t(this,e),this.placement="top",this.arrow=!1,this.open=!1}validatePlacement(){a(this,"placement",n)}componentWillLoad(){this.validatePlacement()}componentDidLoad(){this.host.id||console.error("No id set: <post-tooltip> must have an id, linking it to it's target element with a <post-tooltip-trigger> element.")}async show(t){this.open||this.popoverRef.show(t)}async hide(){this.popoverRef.hide()}async toggle(t,e){this.popoverRef.toggle(t,e)}handleToggle(t){this.open=t.detail}render(){return e(o,{key:"1e1d3f4e204b42c8202af63bd7dec12de3c8e16a","data-version":i,role:"tooltip"},e("post-popovercontainer",{key:"e410952b4e75915e51d57eec2dbecce2b5d55733",safeSpace:"trapezoid",class:this.arrow?"has-arrow":"",arrow:this.arrow,animation:this.animation,placement:this.placement,onPostToggle:t=>this.handleToggle(t),ref:t=>this.popoverRef=t},e("slot",{key:"494e3136dbe96cf611a41753711efb03cab30a12"})))}get host(){return s(this)}static get watchers(){return{placement:["validatePlacement"]}}};r.style=':host{display:none}:host([open]){display:contents}post-popovercontainer[arrow]::after{position:absolute;content:"";inset:-13px;z-index:-1}post-popovercontainer>div{padding:var(--post-core-dimension-4) var(--post-core-dimension-8);max-width:280px;min-height:32px;word-wrap:break-word;white-space:normal}';export{r as post_tooltip}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as a,H as e,a as i}from"./p-CVhzhVv0.js";import{v as o}from"./p-1KLiMO0w.js";import{f as r,a as h}from"./p-SbIC4aZX.js";import"./p-DyVir0ex.js";const n=class{constructor(a){t(this,a),this.postChange=s(this,"postChange"),this.isLoaded=!1}get tabs(){return Array.from(this.host.querySelectorAll("post-tab-header")).filter((t=>t.closest("post-tabs")===this.host))}componentDidLoad(){this.moveMisplacedTabs(),this.enableTabs(),this.show(this.activePanel||this.tabs[0]?.panel),this.isLoaded=!0}async show(t){if(t===this.activeTab?.panel)return;const s=this.activeTab,a=this.host.querySelector(`post-tab-header[panel=${t}]`);this.activateTab(a),this.showing&&(this.showing.effect.target.style.display="none",this.showing.finish()),!s||this.showing||this.hiding||this.hidePanel(s.panel),this.hiding&&await this.hiding.finished,this.showSelectedPanel(),this.showing&&await this.showing.finished,this.isLoaded&&this.postChange.emit(this.activeTab.panel)}moveMisplacedTabs(){this.tabs&&this.tabs.forEach((t=>{"tabs"!==t.getAttribute("slot")&&t.setAttribute("slot","tabs")}))}enableTabs(){this.tabs&&(this.tabs.forEach((async t=>{if(await(s=t,"function"==typeof s.componentOnReady?s.componentOnReady():new Promise((t=>{return a=()=>{t(s)},"function"==typeof requestAnimationFrame?requestAnimationFrame(a):setTimeout(a);var a}))),t.getAttribute("aria-controls"))return;var s;const a=this.getPanel(t.panel);t.setAttribute("aria-controls",a.id),a.setAttribute("aria-labelledby",t.id),t.addEventListener("click",(()=>{this.show(t.panel)})),t.addEventListener("keydown",(s=>{"Enter"!==s.key&&" "!==s.key||(s.preventDefault(),this.show(t.panel))})),t.addEventListener("keydown",(s=>{"ArrowRight"!==s.key&&"ArrowLeft"!==s.key||this.navigateTabs(t,s.key)}))})),this.activeTab&&!this.activeTab.isConnected&&this.show(this.tabs[0]?.panel))}activateTab(t){this.activeTab&&(this.activeTab.setAttribute("aria-selected","false"),this.activeTab.setAttribute("tabindex","-1"),this.activeTab.classList.remove("active")),t.setAttribute("aria-selected","true"),t.setAttribute("tabindex","0"),t.classList.add("active"),this.activeTab=t}hidePanel(t){const s=this.getPanel(t);s&&(this.hiding=r(s),this.hiding.onfinish=()=>{s.style.display="none",this.hiding=null})}showSelectedPanel(){const t=this.getPanel(this.activeTab.panel);t.style.display="block",this.isLoaded&&(this.showing=h(t),this.showing.onfinish=()=>{this.showing=null})}getPanel(t){return this.host.querySelector(`post-tab-panel[name=${t}]`)}navigateTabs(t,s){const a=Array.from(this.tabs).indexOf(t);let e;e="ArrowRight"===s?this.tabs[a+1]||this.tabs[0]:this.tabs[a-1]||this.tabs[this.tabs.length-1],e&&e.focus()}render(){return a(e,{key:"d7beaed26b8f79f7a8641bf5524236b8722a56d4","data-version":o},a("div",{key:"75449ea13ad30ca5bb402354cdf2eee51a6c8096",class:"tabs-wrapper",part:"tabs"},a("div",{key:"4eeafd45c7bac47ff16ceffd2643adaabdd01234",class:"tabs",role:"tablist"},a("slot",{key:"e3299d68dc943c2b0bf2ff1b48d54de65f00eb94",name:"tabs",onSlotchange:()=>this.enableTabs()}))),a("div",{key:"7bb1bf2984063cba9c7170e92cecbf4d4a4a21d9",class:"tab-content",part:"content"},a("slot",{key:"8abb196b98d41eaa08c08598efed698533f215ec",onSlotchange:()=>this.moveMisplacedTabs()})))}get host(){return i(this)}};n.style='.tabs-wrapper{position:relative;padding-top:1rem;border:0;background-color:rgba(0,0,0,.02)}.tabs-wrapper::after{content:"";position:absolute;bottom:0;width:100%;height:1px;background-color:#ccc}.tabs-wrapper .tabs{background-color:rgba(0,0,0,0) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tabs-wrapper::after{background-color:ButtonBorder}}.tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap;margin-block:0;padding-inline-start:0;list-style:none}.tabs::after{content:"";display:block;flex:1 0 auto;width:1rem}.tab-content{padding-top:1rem}:host{display:block}';export{n as post_tabs}
@@ -1,2 +0,0 @@
1
- const t=()=>{};var e=Object.defineProperty,n=(t=>(t.Undefined="undefined",t.Null="null",t.String="string",t.Number="number",t.SpecialNumber="number",t.Boolean="boolean",t.BigInt="bigint",t))(n||{}),o=(t=>(t.Array="array",t.Date="date",t.Map="map",t.Object="object",t.RegularExpression="regexp",t.Set="set",t.Channel="channel",t.Symbol="symbol",t))(o||{}),l="type",s="value",r="serialized:",i=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},c=(t,e)=>{t.__stencil__getHostRef=()=>e,e.t=t},a=(t,e)=>e in t,u=(t,e)=>(0,console.error)(t,e),f=new Map,d=new Map,p="s-id",h="sty-id",$="c-id",m="slot-fb{display:contents}slot-fb[hidden]{display:none}",v="http://www.w3.org/1999/xlink",y=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],b="undefined"!=typeof window?window:{},g={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},w=t=>Promise.resolve(t),S=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),j=!1,k=[],O=[],x=(t,e)=>n=>{t.push(n),j||(j=!0,e&&4&g.o?N(E):g.raf(E))},C=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){u(t)}t.length=0},E=()=>{C(k),C(O),(j=k.length>0)&&g.raf(E)},N=t=>w().then(t),I=x(O,!0),M=t=>"object"==(t=typeof t)||"function"===t;function R(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}var L=class t{static fromLocalValue(e){const n=e[l],o=s in e?e[s]:void 0;switch(n){case"string":case"boolean":return o;case"bigint":return BigInt(o);case"undefined":return;case"null":return null;case"number":return"NaN"===o?NaN:"-0"===o?-0:"Infinity"===o?1/0:"-Infinity"===o?-1/0:o;case"array":return o.map((e=>t.fromLocalValue(e)));case"date":return new Date(o);case"map":const e=new Map;for(const[n,l]of o){const o="object"==typeof n&&null!==n?t.fromLocalValue(n):n,s=t.fromLocalValue(l);e.set(o,s)}return e;case"object":const l={};for(const[e,n]of o)l[e]=t.fromLocalValue(n);return l;case"regexp":const{pattern:s,flags:r}=o;return RegExp(s,r);case"set":const i=new Set;for(const e of o)i.add(t.fromLocalValue(e));return i;case"symbol":return Symbol(o);default:throw Error("Unsupported type: "+n)}}static fromLocalValueArray(e){return e.map((e=>t.fromLocalValue(e)))}static isLocalValueObject(t){if("object"!=typeof t||null===t)return!1;if(!t.hasOwnProperty(l))return!1;const e=t[l];return!!Object.values({...n,...o}).includes(e)&&("null"===e||"undefined"===e||t.hasOwnProperty(s))}};((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>P,map:()=>T,ok:()=>A,unwrap:()=>D,unwrapErr:()=>F});var A=t=>({isOk:!0,isErr:!1,value:t}),P=t=>({isOk:!1,isErr:!0,value:t});function T(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>A(t))):A(n)}if(t.isErr)return P(t.value);throw"should never get here"}var D=t=>{if(t.isOk)return t.value;throw t.value},F=t=>{if(t.isErr)return t.value;throw t.value};function U(){const t=this.attachShadow({mode:"open"});if(S){const e=new CSSStyleSheet;e.replaceSync(":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-tag,post-togglebutton,post-tooltip,post-tooltip-trigger):not([data-hydrated],:defined){visibility:hidden}"),t.adoptedStyleSheets.push(e)}}var W=t=>{const e=Y(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&V(e,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!_(t,z(t),!1).length)}));let n=0;for(n=0;n<e.length;n++){const t=e[n];1===t.nodeType&&Y(t,"childNodes").length&&W(t)}};function V(t,e,n){let o,l=0,s=[];for(;l<t.length;l++)o=t[l],!o["s-sr"]||e&&o["s-hn"]!==e||void 0!==n||s.push(o),s=[...s,...V(o.childNodes,e,n)];return s}var _=(t,e,n=!0)=>{const o=[];(n&&t["s-sr"]||!t["s-sr"])&&o.push(t);let l=t;for(;l=l.nextSibling;)z(l)!==e||!n&&l["s-sr"]||o.push(l);return o},B=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,H=(t,e,n,o)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const l=document.createTextNode("");if(l["s-nr"]=t,!e["s-cr"]||!e["s-cr"].parentNode)return;const s=e["s-cr"].parentNode,r=Y(s,"appendChild");if(void 0!==o){l["s-oo"]=o;const t=Y(s,"childNodes"),e=[l];t.forEach((t=>{t["s-nr"]&&e.push(t)})),e.sort(((t,e)=>!t["s-oo"]||t["s-oo"]<(e["s-oo"]||0)?-1:!e["s-oo"]||e["s-oo"]<t["s-oo"]?1:0)),e.forEach((t=>r.call(s,t)))}else r.call(s,l);t["s-ol"]=l,t["s-sh"]=e["s-hn"]},z=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function J(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const e=e=>function(t){const n=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:(t=>{const e=[];for(let n=0;n<t.length;n++){const o=t[n]["s-nr"]||void 0;o&&o.isConnected&&e.push(o)}return e})(l.childNodes)).forEach((t=>{o===z(t)&&n.push(t)})),e?n.filter((t=>1===t.nodeType)):n}.bind(t);t.assignedElements=e(!0),t.assignedNodes=e(!1)}function Y(t,e){if("__"+e in t){const n=t["__"+e];return"function"!=typeof n?n:n.bind(t)}return"function"!=typeof t[e]?t[e]:t[e].bind(t)}var q=(t,e,...n)=>{let o=null,l=null,s=null,r=!1,i=!1;const c=[],a=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?a(o):null!=o&&"boolean"!=typeof o&&((r="function"!=typeof t&&!M(o))&&(o+=""),r&&i?c[c.length-1].i+=o:c.push(r?G(null,o):o),i=r)};if(a(n),e){e.key&&(l=e.key),e.name&&(s=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,Q);const u=G(t,null);return u.u=e,c.length>0&&(u.p=c),u.h=l,u.$=s,u},G=(t,e)=>({o:0,m:t,i:e,v:null,p:null,u:null,h:null,$:null}),K={},Q={forEach:(t,e)=>t.map(X).forEach(e),map:(t,e)=>t.map(X).map(e).map(Z)},X=t=>({vattrs:t.u,vchildren:t.p,vkey:t.h,vname:t.$,vtag:t.m,vtext:t.i}),Z=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),q(t.vtag,e,...t.vchildren||[])}const e=G(t.vtag,t.vtext);return e.u=t.vattrs,e.p=t.vchildren,e.h=t.vkey,e.$=t.vname,e},tt=(t,e,n,o,l,s,r,i=[])=>{let c,a,u,f;if(1===s.nodeType){if(c=s.getAttribute($),c&&(a=c.split("."),a[0]===r||"0"===a[0])){u=nt({o:0,S:a[0],j:a[1],k:a[2],O:a[3],m:s.tagName.toLowerCase(),v:s,u:{class:s.className||""}}),e.push(u),s.removeAttribute($),t.p||(t.p=[]);const l=u.v.getAttribute("s-sn");"string"==typeof l&&("slot-fb"===u.m&&ot(l,a[2],u,s,t,e,n,o,i),u.v["s-sn"]=l,u.v.removeAttribute("s-sn")),void 0!==u.O&&(t.p[u.O]=u),t=u,o&&"0"===u.k&&(o[u.O]=u.v)}if(s.shadowRoot)for(f=s.shadowRoot.childNodes.length-1;f>=0;f--)tt(t,e,n,o,l,s.shadowRoot.childNodes[f],r,i);const d=s.__childNodes||s.childNodes;for(f=d.length-1;f>=0;f--)tt(t,e,n,o,l,d[f],r,i)}else if(8===s.nodeType)a=s.nodeValue.split("."),(a[1]===r||"0"===a[1])&&(c=a[0],u=nt({S:a[1],j:a[2],k:a[3],O:a[4]||"0",v:s,u:null,p:null,h:null,$:null,m:null,i:null}),"t"===c?(u.v=st(s,3),u.v&&3===u.v.nodeType&&(u.i=u.v.textContent,e.push(u),s.remove(),r===u.S&&(t.p||(t.p=[]),t.p[u.O]=u),o&&"0"===u.k&&(o[u.O]=u.v))):"c"===c?(u.v=st(s,8),u.v&&8===u.v.nodeType&&(e.push(u),s.remove())):u.S===r&&("s"===c?ot(s["s-sn"]=a[5]||"",a[2],u,s,t,e,n,o,i):"r"===c&&(o?s.remove():(l["s-cr"]=s,s["s-cn"]=!0))));else if(t&&"style"===t.m){const e=G(null,s.textContent);e.v=s,e.O="0",t.p=[e]}else 3!==s.nodeType||s.wholeText.trim()||s.remove();return t},et=(t,e)=>{if(1===t.nodeType){const n=t[p]||t.getAttribute(p);n&&e.set(n,t);let o=0;if(t.shadowRoot)for(;o<t.shadowRoot.childNodes.length;o++)et(t.shadowRoot.childNodes[o],e);const l=t.__childNodes||t.childNodes;for(o=0;o<l.length;o++)et(l[o],e)}else if(8===t.nodeType){const n=t.nodeValue.split(".");"o"===n[0]&&(e.set(n[1]+"."+n[2],t),t.nodeValue="",t["s-en"]=n[3])}},nt=t=>({o:0,S:null,j:null,k:null,O:"0",v:null,u:null,p:null,h:null,$:null,m:null,i:null,...t});function ot(t,e,n,o,l,s,r,i,c){o["s-sr"]=!0,n.$=t||null,n.m="slot";const a=(null==l?void 0:l.v)?l.v["s-id"]||l.v.getAttribute("s-id"):"";if(i&&b.document){const s=n.v=b.document.createElement(n.m);n.$&&n.v.setAttribute("name",t),a&&a!==n.S?l.v.insertBefore(s,l.v.children[0]):o.parentNode.insertBefore(n.v,o),lt(c,e,t,o,n.S),o.remove(),"0"===n.k&&(i[n.O]=n.v)}else{const r=n.v,i=a&&a!==n.S&&l.v.shadowRoot;lt(c,e,t,o,i?a:n.S),J(o),i&&l.v.insertBefore(r,l.v.children[0]),s.push(n)}r.push(n),l.p||(l.p=[]),l.p[n.O]=n}var lt=(t,e,n,o,l)=>{let s=o.nextSibling;for(t[e]=t[e]||[];s&&((s.getAttribute&&s.getAttribute("slot")||s["s-sn"])===n||""===n&&!s["s-sn"]&&(8===s.nodeType&&1!==s.nodeValue.indexOf(".")||3===s.nodeType));)s["s-sn"]=n,t[e].push({slot:o,node:s,hostId:l}),s=s.nextSibling},st=(t,e)=>{let n=t;do{n=n.nextSibling}while(n&&(n.nodeType!==e||!n.nodeValue));return n},rt=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};rt("::slotted"),rt(":host"),rt(":host-context");var it,ct,at=(t,e,n)=>{if("string"==typeof t&&(t.startsWith("{")&&t.endsWith("}")||t.startsWith("[")&&t.endsWith("]")))try{return JSON.parse(t)}catch(t){}return"string"==typeof t&&t.startsWith(r)?t=function(t){return"string"==typeof t&&t.startsWith(r)?L.fromLocalValue(JSON.parse(atob(t.slice(11)))):t}(t):null==t||M(t)?t:4&e?(n&&"string"==typeof t||"false"!==t)&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t},ut=t=>i(t).$hostElement$,ft=(t,e)=>{const n=ut(t);return{emit:t=>dt(n,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},dt=(t,e,n)=>{const o=g.ce(e,n);return t.dispatchEvent(o),o},pt=new WeakMap,ht=(t,e,n)=>{let o=d.get(t);S&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,d.set(t,o)},$t=(t,e)=>{var n;const o=mt(e),l=d.get(o);if(!b.document)return o;if(t=11===t.nodeType?t:b.document,l)if("string"==typeof l){let s,r=pt.get(t=t.head||t);if(r||pt.set(t,r=new Set),!r.has(o)){if(t.host&&(s=t.querySelector(`[${h}="${o}"]`)))s.innerHTML=l;else{s=b.document.createElement("style"),s.innerHTML=l;const o=null!=(n=g.C)?n:R(b.document);if(null!=o&&s.setAttribute("nonce",o),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(S){const e=new CSSStyleSheet;e.replaceSync(l),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(s)}else t.append(s);1&e.o&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=m),r&&r.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o},mt=t=>"sc-"+t.N,vt=t=>t.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),yt=(t,e,n,o,l,s,r)=>{if(n===o)return;let i=a(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=gt(n);let s=gt(o);t["s-si"]&&r?(s.push(t["s-si"]),l.forEach((e=>{e.startsWith(t["s-si"])&&s.push(e)})),s=[...new Set(s)],e.add(...s)):(e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t)))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("key"===e);else if("ref"===e)o&&o(t);else if(i||"o"!==e[0]||"n"!==e[1]){const r=M(o);if((i||r&&null!==o)&&!l)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?i=!1:null!=n&&t[e]==l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}let a=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(e=c,a=!0),null==o||!1===o?!1===o&&""!==t.getAttribute(e)||(a?t.removeAttributeNS(v,e):t.removeAttribute(e)):(!i||4&s||l)&&!r&&1===t.nodeType&&(o=!0===o?"":o,a?t.setAttributeNS(v,e,o):t.setAttribute(e,o))}else if(e="-"===e[2]?e.slice(3):a(b,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(wt);e=e.replace(St,""),n&&g.rel(t,e,n,l),o&&g.ael(t,e,o,l)}},bt=/\s/,gt=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(bt):[]),wt="Capture",St=RegExp(wt+"$"),jt=(t,e,n,o)=>{const l=11===e.v.nodeType&&e.v.host?e.v.host:e.v,s=t&&t.u||{},r=e.u||{};for(const t of kt(Object.keys(s)))t in r||yt(l,t,s[t],void 0,n,e.o,o);for(const t of kt(Object.keys(r)))yt(l,t,s[t],r[t],n,e.o,o)};function kt(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var Ot=!1,xt=!1,Ct=!1,Et=!1,Nt=(t,e,n)=>{var o;const l=e.p[n];let s,r,i,c=0;if(Ot||(Ct=!0,"slot"===l.m&&(l.o|=l.p?2:1)),null!==l.i)s=l.v=b.document.createTextNode(l.i);else if(1&l.o)s=l.v=b.document.createTextNode(""),jt(null,l,Et);else{if(Et||(Et="svg"===l.m),!b.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(s=l.v=b.document.createElementNS(Et?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!Ot&&2&l.o?"slot-fb":l.m),Et&&"foreignObject"===l.m&&(Et=!1),jt(null,l,Et),l.p)for(c=0;c<l.p.length;++c)r=Nt(t,l,c),r&&s.appendChild(r);"svg"===l.m?Et=!1:"foreignObject"===s.tagName&&(Et=!0)}return s["s-hn"]=ct,3&l.o&&(s["s-sr"]=!0,s["s-cr"]=it,s["s-sn"]=l.$||"",s["s-rf"]=null==(o=l.u)?void 0:o.ref,J(s),i=t&&t.p&&t.p[n],i&&i.m===l.m&&t.v&&It(t.v,!1)),s},It=(t,e)=>{g.o|=1;const n=Array.from(t.__childNodes||t.childNodes);for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==ct&&o["s-ol"]&&(Ut(At(o).parentNode,o,At(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,Ct=!0),e&&It(o,e)}g.o&=-2},Mt=(t,e,n,o,l,s)=>{let r,i=t["s-cr"]&&t["s-cr"].parentNode||t;for(i.shadowRoot&&i.tagName===ct&&(i=i.shadowRoot);l<=s;++l)o[l]&&(r=Nt(null,n,l),r&&(o[l].v=r,Ut(i,r,At(e))))},Rt=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.v;Ft(e),t&&(xt=!0,t["s-ol"]?t["s-ol"].remove():It(t,!0),t.remove())}}},Lt=(t,e,n=!1)=>t.m===e.m&&("slot"===t.m?t.$===e.$:n?(n&&!t.h&&e.h&&(t.h=e.h),!0):t.h===e.h),At=t=>t&&t["s-ol"]||t,Pt=(t,e,n=!1)=>{const o=e.v=t.v,l=t.p,s=e.p,r=e.m,i=e.i;let c;null===i?(jt(t,e,Et="svg"===r||"foreignObject"!==r&&Et,n),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,r,i=0,c=0,a=0,u=0,f=e.length-1,d=e[0],p=e[f],h=o.length-1,$=o[0],m=o[h];for(;i<=f&&c<=h;)if(null==d)d=e[++i];else if(null==p)p=e[--f];else if(null==$)$=o[++c];else if(null==m)m=o[--h];else if(Lt(d,$,l))Pt(d,$,l),d=e[++i],$=o[++c];else if(Lt(p,m,l))Pt(p,m,l),p=e[--f],m=o[--h];else if(Lt(d,m,l))"slot"!==d.m&&"slot"!==m.m||It(d.v.parentNode,!1),Pt(d,m,l),Ut(t,d.v,p.v.nextSibling),d=e[++i],m=o[--h];else if(Lt(p,$,l))"slot"!==d.m&&"slot"!==m.m||It(p.v.parentNode,!1),Pt(p,$,l),Ut(t,p.v,d.v),p=e[--f],$=o[++c];else{for(a=-1,u=i;u<=f;++u)if(e[u]&&null!==e[u].h&&e[u].h===$.h){a=u;break}a>=0?(r=e[a],r.m!==$.m?s=Nt(e&&e[c],n,a):(Pt(r,$,l),e[a]=void 0,s=r.v),$=o[++c]):(s=Nt(e&&e[c],n,c),$=o[++c]),s&&Ut(At(d.v).parentNode,s,At(d.v))}i>f?Mt(t,null==o[h+1]?null:o[h+1].v,n,o,c,h):c>h&&Rt(e,i,f)})(o,l,e,s,n):null!==s?(null!==t.i&&(o.textContent=""),Mt(o,null,e,s,0,s.length-1)):!n&&null!==l&&Rt(l,0,l.length-1),Et&&"svg"===r&&(Et=!1)):(c=o["s-cr"])?c.parentNode.textContent=i:t.i!==i&&(o.data=i)},Tt=[],Dt=t=>{let e,n,o;const l=t.__childNodes||t.childNodes;for(const t of l){if(t["s-sr"]&&(e=t["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;const l=t["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==t["s-hn"])if(B(e,l)){let n=Tt.find((t=>t.I===e));xt=!0,e["s-sn"]=e["s-sn"]||l,n?(n.I["s-sh"]=t["s-hn"],n.M=t):(e["s-sh"]=t["s-hn"],Tt.push({M:t,I:e})),e["s-sr"]&&Tt.map((t=>{B(t.I,e["s-sn"])&&(n=Tt.find((t=>t.I===e)),n&&!t.M&&(t.M=n.M))}))}else Tt.some((t=>t.I===e))||Tt.push({I:e})}1===t.nodeType&&Dt(t)}},Ft=t=>{t.u&&t.u.ref&&t.u.ref(null),t.p&&t.p.map(Ft)},Ut=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),Wt=(t,e)=>{if(e&&!t.R&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.R=()=>{e["s-p"].splice(n-1,1),o()})))}},Vt=(t,e)=>{if(t.o|=16,!(4&t.o))return Wt(t,t.L),I((()=>_t(t,e)));t.o|=512},_t=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return e?(t.o|=256,t.A&&(t.A.map((([t,e])=>Gt(o,t,e,n))),t.A=void 0),l=Gt(o,"componentWillLoad",void 0,n)):l=Gt(o,"componentWillUpdate",void 0,n),l=Bt(l,(()=>Gt(o,"componentWillRender",void 0,n))),Bt(l,(()=>zt(t,o,e)))},Bt=(t,e)=>Ht(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),Ht=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,zt=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.P,n=t.$hostElement$,o=e.o,l=$t(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);Jt(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>Yt(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},Jt=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{var o,l,s,r;const i=t.$hostElement$,c=t.P,a=t.T||G(null,null),u=(t=>t&&t.m===K)(e)?e:q(null,null,e);if(ct=i.tagName,c.D&&(u.u=u.u||{},c.D.map((([t,e])=>u.u[e]=i[t]))),n&&u.u)for(const t of Object.keys(u.u))i.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(u.u[t]=i[t]);if(u.m=null,u.o|=4,t.T=u,u.v=a.v=i.shadowRoot||i,Ot=!(!(1&c.o)||128&c.o),it=i["s-cr"],xt=!1,Pt(a,u,n),g.o|=1,Ct){Dt(u.v);for(const t of Tt){const e=t.I;if(!e["s-ol"]&&b.document){const t=b.document.createTextNode("");t["s-nr"]=e,Ut(e.parentNode,e["s-ol"]=t,e)}}for(const t of Tt){const e=t.I,i=t.M;if(i){const t=i.parentNode;let n=i.nextSibling;{let s=null==(o=e["s-ol"])?void 0:o.previousSibling;for(;s;){let o=null!=(l=s["s-nr"])?l:null;if(o&&o["s-sn"]===e["s-sn"]&&t===(o.__parentNode||o.parentNode)){for(o=o.nextSibling;o===e||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){n=o;break}}s=s.previousSibling}}(!n&&t!==(e.__parentNode||e.parentNode)||(e.__nextSibling||e.nextSibling)!==n)&&e!==n&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),Ut(t,e,n),1===e.nodeType&&"SLOT-FB"!==e.tagName&&(e.hidden=null!=(s=e["s-ih"])&&s)),e&&"function"==typeof i["s-rf"]&&i["s-rf"](i)}else 1===e.nodeType&&(n&&(e["s-ih"]=null!=(r=e.hidden)&&r),e.hidden=!0)}}xt&&W(u.v),g.o&=-2,Tt.length=0,it=void 0})(t,e,o)}catch(e){u(e,t.$hostElement$)}return null},Yt=t=>{const e=t.$hostElement$,n=t.t,o=t.L;Gt(n,"componentDidRender",void 0,e),64&t.o?Gt(n,"componentDidUpdate",void 0,e):(t.o|=64,Kt(e),Gt(n,"componentDidLoad",void 0,e),t.F(e),o||qt()),t.U(e),t.R&&(t.R(),t.R=void 0),512&t.o&&N((()=>Vt(t,!1))),t.o&=-517},qt=()=>{N((()=>dt(b,"appload",{detail:{namespace:"post-components"}})))},Gt=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){u(t,o)}},Kt=t=>t.setAttribute(null!="data-hydrated"?"data-hydrated":"hydrated",""),Qt=(t,e,n,o)=>{const l=i(t);if(!l)throw Error(`Couldn't find host element for "${o.N}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const s=l.$hostElement$,r=l.W.get(e),c=l.o,a=l.t;if(n=at(n,o.V[e][0],!!(64&o.o)),(!(8&c)||void 0===r)&&n!==r&&(!Number.isNaN(r)||!Number.isNaN(n))&&(l.W.set(e,n),a)){if(o._&&128&c){const t=o._[e];t&&t.map((t=>{try{a[t](n,r,e)}catch(t){u(t,s)}}))}if(2==(18&c)){if(a.componentShouldUpdate&&!1===a.componentShouldUpdate(n,r,e))return;Vt(l,!1)}}},Xt=(t,e,n)=>{var o,l;const s=t.prototype;if(64&e.o&&1&n&&y.forEach((t=>{Object.defineProperty(s,t,{value(...e){const n=i(this),o=n.t;if(o){const n=o[t];"function"==typeof n&&n.call(o,...e)}else n.B.then((n=>{const o=n[t];"function"==typeof o&&o.call(n,...e)}))}})})),e.V||e._||t.watchers){t.watchers&&!e._&&(e._=t.watchers);const r=Object.entries(null!=(o=e.V)?o:{});if(r.map((([t,[o]])=>{if(31&o||2&n&&32&o){const{get:l,set:r}=Object.getOwnPropertyDescriptor(s,t)||{};l&&(e.V[t][0]|=2048),r&&(e.V[t][0]|=4096),(1&n||!l)&&Object.defineProperty(s,t,{get(){{if(!(2048&e.V[t][0]))return((t,e)=>i(this).W.get(e))(0,t);const n=i(this),o=n?n.t:s;if(!o)return;return o[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(s,t,{set(l){const s=i(this);if(r){const n=32&o?this[t]:s.$hostElement$[t];return void 0===n&&s.W.get(t)?l=s.W.get(t):!s.W.get(t)&&n&&s.W.set(t,n),r.call(this,at(l,o,!!(64&e.o))),void Qt(this,t,l=32&o?this[t]:s.$hostElement$[t],e)}{if(!(1&n&&4096&e.V[t][0]))return Qt(this,t,l,e),void(1&n&&!s.t&&s.B.then((()=>{4096&e.V[t][0]&&s.t[t]!==s.W.get(t)&&(s.t[t]=l)})));const r=()=>{const n=s.t[t];!s.W.get(t)&&n&&s.W.set(t,n),s.t[t]=at(l,o,!!(64&e.o)),Qt(this,t,s.t[t],e)};s.t?r():s.B.then((()=>r()))}}})}else 1&n&&64&o&&Object.defineProperty(s,t,{value(...e){var n;const o=i(this);return null==(n=null==o?void 0:o.H)?void 0:n.then((()=>{var n;return null==(n=o.t)?void 0:n[t](...e)}))}})})),1&n){const n=new Map;s.attributeChangedCallback=function(t,o,l){g.jmp((()=>{var r;const c=n.get(t);if(this.hasOwnProperty(c))l=this[c],delete this[c];else{if(s.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==l)return;if(null==c){const n=i(this),s=null==n?void 0:n.o;if(s&&!(8&s)&&128&s&&l!==o){const s=n.t,i=null==(r=e._)?void 0:r[t];null==i||i.forEach((e=>{null!=s[e]&&s[e].call(s,l,o,t)}))}return}}const a=Object.getOwnPropertyDescriptor(s,c);(l=(null!==l||"boolean"!=typeof this[c])&&l)===this[c]||a.get&&!a.set||(this[c]=l)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(l=e._)?l:{}),...r.filter((([t,e])=>15&e[0])).map((([t,o])=>{var l;const s=o[1]||t;return n.set(s,t),512&o[0]&&(null==(l=e.D)||l.push([t,s])),s}))]))}}return t},Zt=(t,e)=>{Gt(t,"connectedCallback",void 0,e)},te=t=>{if(!(1&g.o)){const e=i(t),n=e.P,o=()=>{};if(1&e.o)le(t,e,n.J),(null==e?void 0:e.t)?Zt(e.t,t):(null==e?void 0:e.B)&&e.B.then((()=>Zt(e.t,t)));else{let o;if(e.o|=1,o=t.getAttribute(p),o){if(1&n.o){const e=$t(t.shadowRoot,n);t.classList.remove(e+"-h",e+"-s")}((t,e,n,o)=>{var l;const s=t.shadowRoot,r=[],i=[],c=s?[]:null,a=G(e,null);a.v=t,Object.entries((null==(l=o.P)?void 0:l.V)||{}).forEach((([e,[n,l]])=>{var s,r;if(!(31&n))return;const i=t.getAttribute(l||e);if(null!==i){const t=at(i,n,!!(64&(null==(s=o.P)?void 0:s.o)));null==(r=null==o?void 0:o.W)||r.set(e,t)}})),!b.document||g.Y&&g.Y.size||et(b.document.body,g.Y=new Map),t[p]=n,t.removeAttribute(p),o.T=tt(a,r,[],c,t,t,n,i);let u=0;const f=r.length;let d;for(;u<f;u++){d=r[u];const n=d.S+"."+d.j,o=g.Y.get(n),l=d.v;s||(l["s-hn"]=e.toUpperCase(),"slot"===d.m&&(l["s-cr"]=t["s-cr"])),"slot"===d.m&&(d.$=d.v["s-sn"]||d.v.name||null,d.p?(d.o|=2,d.v.childNodes.length||d.p.forEach((t=>{d.v.appendChild(t.v)}))):d.o|=1),o&&o.isConnected&&(s&&""===o["s-en"]&&o.parentNode.insertBefore(l,o.nextSibling),o.parentNode.removeChild(o),s||(l["s-oo"]=parseInt(d.j))),g.Y.delete(n)}const h=[],$=i.length;let m,v,y,w,S=0;for(;S<$;S++)if(m=i[S],m&&m.length)for(y=m.length,v=0;v<y;v++){if(w=m[v],h[w.hostId]||(h[w.hostId]=g.Y.get(w.hostId)),!h[w.hostId])continue;const t=h[w.hostId];t.shadowRoot&&s||(w.slot["s-cr"]=t["s-cr"],w.slot["s-cr"]=!w.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0],H(w.node,w.slot,0,w.node["s-oo"])),t.shadowRoot&&w.node.parentElement!==t&&t.appendChild(w.node)}if(s&&!s.childNodes.length){let e=0;const n=c.length;if(n){for(;e<n;e++)s.appendChild(c[e]);Array.from(t.childNodes).forEach((t=>{"string"!=typeof t["s-en"]&&"string"!=typeof t["s-sn"]&&(1===t.nodeType&&t.slot&&t.hidden?t.removeAttribute("hidden"):(8===t.nodeType||3===t.nodeType&&!t.wholeText.trim())&&t.parentNode.removeChild(t))}))}}g.Y.delete(t["s-id"]),o.$hostElement$=t})(t,n.N,o,e)}o||12&n.o&&ee(t);{let n=t;for(;n=n.parentNode||n.host;)if(1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){Wt(e,e.L=n);break}}n.V&&Object.entries(n.V).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.q){const l=((t,e)=>{const n=t.N.replace(/-/g,"_"),o=t.q;if(!o)return;const l=f.get(o);return l?l[n]:import(`./${o}.entry.js`).then((t=>(f.set(o,t),t[n])),(t=>{u(t,e.$hostElement$)}))
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(l&&"then"in l){const t=()=>{};o=await l,t()}else o=l;if(!o)throw Error(`Constructor for "${n.N}#${e.G}" was not found`);o.isProxied||(n._=o.watchers,Xt(o,n,2),o.isProxied=!0);const s=()=>{};e.o|=8;try{new o(e)}catch(e){u(e,t)}e.o&=-9,e.o|=128,s(),Zt(e.t,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=mt(n);if(!d.has(e)){const o=()=>{};ht(e,t,!!(1&n.o)),o()}}}const l=e.L,s=()=>Vt(e,!0);l&&l["s-rc"]?l["s-rc"].push(s):s()})(t,e,n)}o()}},ee=t=>{if(!b.document)return;const e=t["s-cr"]=b.document.createComment("");e["s-cn"]=!0,Ut(t,e,t.firstChild)},ne=(t,e)=>{Gt(t,"disconnectedCallback",void 0,e||t)},oe=(t,e={})=>{var n;if(!b.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const o=[],l=e.exclude||[],s=b.customElements,r=b.document.head,c=r.querySelector("meta[charset]"),a=b.document.createElement("style"),u=[];let f,d=!0;Object.assign(g,e),g.l=new URL(e.resourcesUrl||"./",b.document.baseURI).href,g.o|=2,(()=>{if(!b.document)return;const t=b.document.querySelectorAll(`[${h}]`);let e=0;for(;e<t.length;e++)ht(t[e].getAttribute(h),vt(t[e].innerHTML),!0)})();let p=!1;if(t.map((t=>{t[1].map((e=>{var n;const r={o:e[0],N:e[1],V:e[2],J:e[3]};4&r.o&&(p=!0),r.V=e[2],r.J=e[3],r.D=[],r._=null!=(n=e[4])?n:{};const c=r.N,a=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,e)=>{const n={o:0,$hostElement$:t,P:e,W:new Map};n.H=new Promise((t=>n.U=t)),n.B=new Promise((t=>n.F=t)),t["s-p"]=[],t["s-rc"]=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,r),1&r.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${r.N}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else U.call(t,r)}connectedCallback(){const t=i(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,le(this,t,r.J)),f&&(clearTimeout(f),f=null),d?u.push(this):g.jmp((()=>te(this)))}disconnectedCallback(){g.jmp((()=>(async t=>{if(!(1&g.o)){const e=i(t);e.K&&(e.K.map((t=>t())),e.K=void 0),(null==e?void 0:e.t)?ne(e.t,t):(null==e?void 0:e.B)&&e.B.then((()=>ne(e.t,t)))}pt.has(t)&&pt.delete(t),t.shadowRoot&&pt.has(t.shadowRoot)&&pt.delete(t.shadowRoot)})(this))),g.raf((()=>{var t;const e=i(this),n=u.findIndex((t=>t===this));n>-1&&u.splice(n,1),(null==(t=null==e?void 0:e.T)?void 0:t.v)instanceof Node&&!e.T.v.isConnected&&delete e.T.v}))}componentOnReady(){return i(this).B}};64&r.o&&(a.formAssociated=!0),r.q=t[0],l.includes(c)||s.get(c)||(o.push(c),s.define(c,Xt(a,r,1)))}))})),o.length>0&&(p&&(a.textContent+=m),a.innerHTML.length)){a.setAttribute("data-styles","");const t=null!=(n=g.C)?n:R(b.document);null!=t&&a.setAttribute("nonce",t),r.insertBefore(a,c?c.nextSibling:r.firstChild)}d=!1,u.length?u.map((t=>t.connectedCallback())):g.jmp((()=>f=setTimeout(qt,30)))},le=(t,e,n)=>{n&&b.document&&n.map((([n,o,l])=>{const s=re(b.document,t,n),r=se(e,l),i=ie(n);g.ael(s,o,r,i),(e.K=e.K||[]).push((()=>g.rel(s,o,r,i)))}))},se=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.A=t.A||[]).push([e,n])}catch(e){u(e,t.$hostElement$)}},re=(t,e,n)=>8&n?b:e,ie=t=>({passive:!!(1&t),capture:!!(2&t)}),ce=t=>g.C=t;export{K as H,ut as a,oe as b,ft as c,t as g,q as h,w as p,c as r,ce as s}
@@ -1 +0,0 @@
1
- function t(t,i){var e,s={},n=s.noTrailing,o=void 0!==n&&n,r=s.noLeading,d=void 0!==r&&r,h=s.debounceMode,a=void 0===h?void 0:h,u=!1,v=0;function c(){e&&clearTimeout(e)}function p(){for(var s=arguments.length,n=new Array(s),r=0;r<s;r++)n[r]=arguments[r];var h=this,p=Date.now()-v;function m(){v=Date.now(),i.apply(h,n)}function f(){e=void 0}u||(d||!a||e||m(),c(),void 0===a&&p>t?d?(v=Date.now(),o||(e=setTimeout(a?f:m,t))):m():!0!==o&&(e=setTimeout(a?f:m,void 0===a?t-p:t)))}return p.cancel=function(t){var i=(t||{}).upcomingOnly,e=void 0!==i&&i;c(),u=!e},p}const i="undefined"==typeof window,e=!i,s=new class{constructor(){if(this.updateCurrentBreakpoint=t(50,((t={emitEvents:!0})=>{const i=this.currentBreakpoint;this.currentBreakpoint=this.breakpoints.find((t=>t.minWidth<=innerWidth)),this.currentBreakpoint&&t.emitEvents&&Object.keys(this.currentBreakpoint).filter((t=>!i||this.currentBreakpoint[t]!==i[t])).forEach((t=>this.dispatchEvent(t)))})),i||this.breakpoints)return;const e=this.getValues("--post-grid-breakpoint-keys"),s=this.getValues("--post-grid-breakpoint-devices"),n=this.getValues("--post-grid-breakpoint-widths");this.breakpoints=n.map(((t,i)=>({key:e[i],device:s[i],minWidth:Number(t)}))).sort(((t,i)=>i.minWidth-t.minWidth)),this.updateCurrentBreakpoint({emitEvents:!1}),window.addEventListener("resize",(()=>this.updateCurrentBreakpoint()),{passive:!0})}getValues(t){const i=getComputedStyle(document.documentElement).getPropertyValue(t);return i?i.split(",").map((t=>t.trim())):[]}dispatchEvent(t){i||window.dispatchEvent(new CustomEvent(`postBreakpoint:${t}`,{detail:this.currentBreakpoint[t]}))}get(t){return this.updateCurrentBreakpoint({emitEvents:!1}),this.currentBreakpoint[t]}};export{e as I,s as b,t}
@@ -1 +0,0 @@
1
- import{r as e,h as t,H as i,a as o}from"./p-CVhzhVv0.js";import{v as r}from"./p-1KLiMO0w.js";import{f as a,a as s}from"./p-BWC0gtGU.js";import"./p-DyVir0ex.js";const n=class{constructor(t){e(this,t),this.homeText="Home",this.breadcrumbItems=[],this.waitForBreadcrumbsRef=function(e,t=200){let i;return(...o)=>{i&&clearTimeout(i),i=setTimeout(e,t,...o)}}((()=>{this.breadcrumbsNavRef?.clientWidth>0?this.checkConcatenation():this.waitForBreadcrumbsRef()}),50),this.handleResize=()=>{window.innerWidth!==this.lastWindowWidth&&(this.lastWindowWidth=window.innerWidth,this.checkConcatenation())}}validateHomeUrl(){a(this,"homeUrl")}validateHomeText(){s(this,"homeUrl","string")}componentWillLoad(){this.updateBreadcrumbItems()}componentDidLoad(){this.validateHomeUrl(),this.validateHomeText(),window.addEventListener("resize",this.handleResize),this.waitForBreadcrumbsRef()}disconnectedCallback(){window.removeEventListener("resize",this.handleResize)}updateBreadcrumbItems(){this.breadcrumbItems=Array.from(this.host.querySelectorAll("post-breadcrumb-item")).map((e=>({text:e.textContent||"",url:e.getAttribute("url")||""}))),this.lastItem=this.breadcrumbItems[this.breadcrumbItems.length-1]}getParentWidth(){let e=this.host.parentNode;for(;e&&!(e instanceof HTMLElement);)e=e.parentNode;return e instanceof HTMLElement?e.clientWidth:window.innerWidth}checkConcatenation(){if(!this.breadcrumbsNavRef)return;const e=this.getParentWidth(),t=Array.from(this.host.shadowRoot?.querySelectorAll(".hidden-breadcrumb-item")||[]).reduce(((e,t)=>e+t.getBoundingClientRect().width),0);this.isConcatenated=t>e}handleBreadcrumbItemClick(){if(this.host.shadowRoot){const e=this.host.shadowRoot?.querySelector(".menu-trigger-wrapper")?.querySelector("button");e&&e.click()}}render(){const e=this.breadcrumbItems.slice(0,-1);return t(i,{key:"bfb41c03aa8e4eb1b756386759a22cea673f8e58","data-version":r},t("nav",{key:"8ec1727edb8ace33cfb6aeff9694276a241400d2","aria-label":"Breadcrumbs",class:"breadcrumbs-nav",ref:e=>this.breadcrumbsNavRef=e},t("ol",{key:"7069c0b8affb3a0ae02fcbb8b4b141ec86560cba",class:"no-list breadcrumbs-list"},t("li",{key:"258f6a1b228f6695f6d28019da495ac2d7d6abe0"},t("a",{key:"223c58d20df9943972b36195f9a7401bfdba528b",href:this.homeUrl,class:"breadcrumb-link"},t("span",{key:"830865dbd6f0d0f01976e48866b4e85fb988070a",class:"visually-hidden"},this.homeText),t("post-icon",{key:"82ba4bcfbca701d0d5a96c1312c7f91540003b2b",name:"home",class:"home-icon"}))),this.isConcatenated?t("div",{class:"menu-trigger-wrapper","aria-label":"More breadcrumbs",onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.handleBreadcrumbItemClick())}},t("post-icon",{name:"2111",class:"breadcrumb-item-icon"}),t("div",{class:"actual-menu"},t("post-menu-trigger",{for:"breadcrumb-menu",tabIndex:0},t("button",{class:"btn test",tabIndex:-1},"...")),t("post-menu",{id:"breadcrumb-menu"},e.map((e=>t("post-menu-item",{key:e.url||e.text,class:"breadcrumb-item",onKeyDown:e=>{if("Enter"===e.key||" "===e.key){const t=e.currentTarget.querySelector("a");t?.click(),e.preventDefault()}}},e.url?t("a",{href:e.url},e.text):t("span",null,e.text))))))):e.map((e=>t("post-breadcrumb-item",{url:e.url,key:e.url||e.text},e.text))),this.lastItem&&t("post-breadcrumb-item",{key:"cfa5c9753eaaf330b5568501521b3706b16aa8e3",url:this.lastItem.url,"aria-current":"page",tabindex:-1},this.lastItem.text)),t("div",{key:"19ea40941aa73eeafde12372efbda93bc513e6d2",class:"hidden-items"},t("a",{key:"52ab7559148d3a897e0c4b2ab328f8e47f497353",href:this.homeUrl,class:"hidden-breadcrumb-item"},t("span",{key:"1d5eb01bb09c841199727c6f5a365976535819f1",class:"visually-hidden"},this.homeText),t("post-icon",{key:"b4e670439f527af22e6fd3a09685f4817b62ec94",name:"home",class:"home-icon"})),this.breadcrumbItems.map((e=>t("post-breadcrumb-item",{url:e.url,key:`hidden-${e.url||e.text}`,class:"hidden-breadcrumb-item"},e.text))))))}get host(){return o(this)}static get watchers(){return{homeUrl:["validateHomeUrl"],homeText:["validateHomeText"]}}};n.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:flex;align-items:center}.breadcrumbs-nav{display:flex;align-items:center}.hidden-items{gap:var(--post-device-spacing-gap-inline-4);position:absolute;height:0;overflow:hidden;white-space:nowrap}.breadcrumbs-list{display:flex;flex-wrap:nowrap;position:relative;margin:0;padding:0;list-style:none;align-items:center;height:100%;gap:var(--post-device-spacing-gap-inline-4)}post-icon{display:inline-block;box-sizing:border-box;color:var(--post-scheme-color-interactive-primary-enabled-fg1);height:var(--post-core-dimension-24);width:var(--post-core-dimension-24)}.breadcrumb-item-icon{padding-block:var(--post-core-dimension-4);padding-inline:var(--post-core-dimension-4)}li a{display:flex;align-items:center}li a{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}li a: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){li a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){li a: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){li a:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}li a:focus{border-radius:var(--post-device-border-radius-focus)}li a .home-icon{padding-block:var(--post-device-spacing-padding-4);padding-inline:var(--post-device-spacing-padding-4)}li a .home-icon:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){li a .home-icon a,li a .home-icon:focus,li a .home-icon:hover{color:CanvasText !important}}.menu-trigger-wrapper{display:flex;align-items:center;gap:var(--post-device-spacing-gap-inline-5)}.actual-menu{display:flex;align-items:center}post-menu-trigger{display:flex;align-items:center;padding-block:var(--post-device-spacing-padding-block-7)}post-menu-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-menu-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-menu-trigger:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-menu-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-menu-trigger:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}post-menu-trigger:focus{border-radius:var(--post-device-border-radius-focus)}post-menu-trigger button{background:none;border:none;line-height:150%;font-size:var(--post-device-font-size-6);cursor:pointer;padding:0;color:var(--post-scheme-color-interactive-primary-enabled-fg1)}post-menu-trigger button:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-menu-trigger button a,post-menu-trigger button:focus,post-menu-trigger button:hover{color:LinkText !important}}post-menu::part(popover-container){display:flex;flex-direction:column;align-items:start;padding:.6rem;gap:var(--post-device-spacing-gap-inline-4)}post-menu::part(popover-container) ::slotted(post-menu-item:not(:last-child)){margin-block-end:var(--post-device-spacing-gap-inline-4)}.breadcrumb-item{display:flex;align-items:center;justify-content:center;gap:var(--post-device-spacing-gap-inline-5)}.breadcrumb-item span:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);text-decoration:var(--post-core-text-decoration-underline)}.breadcrumb-item span:focus-visible{border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item a,.breadcrumb-item:focus,.breadcrumb-item:hover{color:LinkText !important}.breadcrumb-item:visited{color:VisitedText !important}}post-breadcrumb-item:last-of-type{pointer-events:none;color:var(--post-scheme-color-interactive-primary-selected-fg1);font-weight:var(--post-device-font-weight-bold);text-decoration:var(--post-core-text-decoration-none)}post-breadcrumb-item:last-of-type:hover{color:var(--post-scheme-color-interactive-primary-selected-fg1);text-decoration:none}.visually-hidden{width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.visually-hidden:not(caption){position:absolute !important}";export{n as post_breadcrumbs}
@@ -1,29 +0,0 @@
1
- /**
2
- * @slot default - Content to place in the `default` slot.<p>Markup accepted: <a href="https://developer.mozilla.org/en-US/docs/Glossary/Inline-level_content">inline content</a>.</p>
3
- */
4
- export declare class PostTag {
5
- host: HTMLPostTagElement;
6
- classes: string;
7
- /**
8
- * Defines the color variant of the component.
9
- */
10
- readonly variant?: 'white' | 'info' | 'success' | 'error' | 'warning' | 'yellow';
11
- /**
12
- * Defines the size of the component.
13
- */
14
- readonly size?: 'sm';
15
- /**
16
- * Defines the icon `name` inside of the component.
17
- * <span className="banner banner-sm banner-info">If not set the icon will not show up.</span>
18
- * To learn which icons are available, please visit our <a href="/?path=/docs/0dcfe3c0-bfc0-4107-b43b-7e9d825b805f--docs">icon library</a>.
19
- */
20
- readonly icon?: string;
21
- constructor();
22
- variantChanged(): void;
23
- sizeChanged(): void;
24
- validateName(): void;
25
- private setClasses;
26
- componentWillLoad(): void;
27
- connectedCallback(): void;
28
- render(): any;
29
- }