@swisspost/design-system-components 10.6.0 → 10.8.0

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 (295) hide show
  1. package/dist/cjs/{create-validator-decorator-Cy5yN6u9.js → create-validator-decorator-DVm_SDrR.js} +1 -1
  2. package/dist/cjs/{index-B3PXzvDk.js → index-DY4QxKNv.js} +5 -5
  3. package/dist/cjs/is-focus-visible-B3CqVQsX.js +19 -0
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/{one-of-CRFrfihj.js → one-of-qu7_EPxf.js} +1 -1
  6. package/dist/cjs/{package-pKyFPwiA.js → package-DAEQGHsE.js} +1 -1
  7. package/dist/cjs/{pattern-D329DFcf.js → pattern-EpwCKMyC.js} +1 -1
  8. package/dist/cjs/post-accordion_2.cjs.entry.js +6 -6
  9. package/dist/cjs/post-autocomplete.cjs.entry.js +5 -5
  10. package/dist/cjs/post-avatar.cjs.entry.js +85 -61
  11. package/dist/cjs/post-back-to-top.cjs.entry.js +6 -6
  12. package/dist/cjs/post-banner.cjs.entry.js +5 -5
  13. package/dist/cjs/post-breadcrumb-item.cjs.entry.js +8 -8
  14. package/dist/cjs/post-breadcrumbs.cjs.entry.js +7 -7
  15. package/dist/cjs/post-closebutton_14.cjs.entry.js +477 -593
  16. package/dist/cjs/post-collapsible_2.cjs.entry.js +13 -7
  17. package/dist/cjs/post-components.cjs.js +2 -2
  18. package/dist/cjs/post-date-picker.cjs.entry.js +43 -27
  19. package/dist/cjs/post-footer.cjs.entry.js +6 -6
  20. package/dist/cjs/post-linkarea.cjs.entry.js +2 -2
  21. package/dist/cjs/post-listbox-option.cjs.entry.js +2 -2
  22. package/dist/cjs/post-listbox.cjs.entry.js +2 -2
  23. package/dist/cjs/post-number-input.cjs.entry.js +3 -3
  24. package/dist/cjs/post-pagination.cjs.entry.js +6 -6
  25. package/dist/cjs/post-popover-trigger.cjs.entry.js +4 -4
  26. package/dist/cjs/post-popover.cjs.entry.js +9 -9
  27. package/dist/cjs/post-progressbar.cjs.entry.js +3 -3
  28. package/dist/cjs/post-rating.cjs.entry.js +5 -5
  29. package/dist/cjs/post-side-navigation-trigger.cjs.entry.js +5 -5
  30. package/dist/cjs/post-side-navigation.cjs.entry.js +14 -9
  31. package/dist/cjs/post-stepper-item.cjs.entry.js +2 -2
  32. package/dist/cjs/post-stepper.cjs.entry.js +6 -6
  33. package/dist/cjs/post-tab-item.cjs.entry.js +5 -5
  34. package/dist/cjs/post-tab-panel.cjs.entry.js +5 -5
  35. package/dist/cjs/post-tabs.cjs.entry.js +8 -8
  36. package/dist/cjs/post-tooltip-trigger.cjs.entry.js +6 -6
  37. package/dist/cjs/post-tooltip.cjs.entry.js +8 -6
  38. package/dist/cjs/{required-DhAEd0c7.js → required-Dgzo-rb5.js} +1 -1
  39. package/dist/cjs/{type-2Ma9dvHs.js → type-DBRxpBZI.js} +1 -1
  40. package/dist/cjs/{url-DePscsTj.js → url-Dl1JABeP.js} +1 -1
  41. package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
  42. package/dist/collection/components/post-avatar/avatar-utils.js +1 -2
  43. package/dist/collection/components/post-avatar/post-avatar.js +77 -59
  44. package/dist/collection/components/post-back-to-top/post-back-to-top.css +1 -1
  45. package/dist/collection/components/post-banner/post-banner.css +1 -1
  46. package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.css +1 -1
  47. package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.css +1 -1
  48. package/dist/collection/components/post-closebutton/post-closebutton.css +1 -1
  49. package/dist/collection/components/post-collapsible/post-collapsible.js +9 -3
  50. package/dist/collection/components/post-date-picker/post-date-picker.css +1 -1
  51. package/dist/collection/components/post-date-picker/post-date-picker.js +36 -22
  52. package/dist/collection/components/post-footer/post-footer.css +1 -1
  53. package/dist/collection/components/post-header/post-header.css +1 -1
  54. package/dist/collection/components/post-header/post-header.js +38 -13
  55. package/dist/collection/components/post-language-menu/post-language-menu.css +1 -1
  56. package/dist/collection/components/post-language-menu/post-language-menu.js +1 -1
  57. package/dist/collection/components/post-logo/post-logo.css +1 -1
  58. package/dist/collection/components/post-megadropdown/post-megadropdown.css +1 -1
  59. package/dist/collection/components/post-megadropdown/post-megadropdown.js +34 -16
  60. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +1 -1
  61. package/dist/collection/components/post-menu/post-menu.css +1 -1
  62. package/dist/collection/components/post-menu/post-menu.js +3 -14
  63. package/dist/collection/components/post-menu-item/post-menu-item.css +1 -1
  64. package/dist/collection/components/post-number-input/post-number-input.css +2 -2
  65. package/dist/collection/components/post-pagination/post-pagination.css +1 -1
  66. package/dist/collection/components/post-popover/post-popover.css +1 -1
  67. package/dist/collection/components/post-popover/post-popover.js +2 -2
  68. package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
  69. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +211 -323
  70. package/dist/collection/components/post-side-navigation/post-side-navigation.css +1 -1
  71. package/dist/collection/components/post-side-navigation/post-side-navigation.js +7 -3
  72. package/dist/collection/components/post-tabs/post-tabs.css +1 -1
  73. package/dist/collection/components/post-tabs/post-tabs.js +2 -2
  74. package/dist/collection/components/post-tooltip/post-tooltip.css +1 -1
  75. package/dist/collection/components/post-tooltip/post-tooltip.js +3 -1
  76. package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +1 -1
  77. package/dist/collection/utils/floating-ui/middleware/flip.js +77 -0
  78. package/dist/collection/utils/floating-ui/middleware/safe-space.js +52 -0
  79. package/dist/collection/utils/floating-ui/util.js +10 -0
  80. package/dist/collection/utils/index.js +1 -0
  81. package/dist/collection/utils/is-focus-visible.js +15 -0
  82. package/dist/components/is-focus-visible.js +1 -0
  83. package/dist/components/package.js +1 -1
  84. package/dist/components/post-accordion-item2.js +1 -1
  85. package/dist/components/post-avatar.js +1 -1
  86. package/dist/components/post-back-to-top.js +1 -1
  87. package/dist/components/post-banner.js +1 -1
  88. package/dist/components/post-breadcrumb-item.js +1 -1
  89. package/dist/components/post-breadcrumbs.js +1 -1
  90. package/dist/components/post-closebutton2.js +1 -1
  91. package/dist/components/post-collapsible2.js +1 -1
  92. package/dist/components/post-date-picker.js +1 -1
  93. package/dist/components/post-footer.js +1 -1
  94. package/dist/components/post-header.js +1 -1
  95. package/dist/components/post-language-menu.js +1 -1
  96. package/dist/components/post-logo.js +1 -1
  97. package/dist/components/post-megadropdown-trigger.js +1 -1
  98. package/dist/components/post-megadropdown.js +1 -1
  99. package/dist/components/post-menu-item2.js +1 -1
  100. package/dist/components/post-menu2.js +1 -1
  101. package/dist/components/post-number-input.js +1 -1
  102. package/dist/components/post-pagination.js +1 -1
  103. package/dist/components/post-popover.js +1 -1
  104. package/dist/components/post-popovercontainer2.js +1 -1
  105. package/dist/components/post-side-navigation.js +1 -1
  106. package/dist/components/post-tabs.js +1 -1
  107. package/dist/components/post-tooltip-trigger.js +1 -1
  108. package/dist/components/post-tooltip.js +1 -1
  109. package/dist/components/react/index.js +1 -1
  110. package/dist/components/react/p-5kW0ZF_f.js +1 -0
  111. package/dist/components/react/p-BMCit4BU.js +1 -0
  112. package/dist/components/react/p-BWwWKRO5.js +1 -0
  113. package/dist/components/react/p-BdiQsTQm.js +1 -0
  114. package/dist/components/react/p-BeRGbt65.js +1 -0
  115. package/dist/components/react/{p-DffT6evQ.js → p-C8i672qm.js} +1 -1
  116. package/dist/components/react/{p-m1-sOx5T.js → p-C_JY6ipN.js} +1 -1
  117. package/dist/components/react/p-DRJ9K8sv.js +1 -0
  118. package/dist/components/react/{p-CcDLIogT.js → p-DygUkCKz.js} +1 -1
  119. package/dist/components/react/p-DzYMQFK2.js +1 -0
  120. package/dist/components/react/{p-CzsG0uCA.js → p-E-8qAn1z.js} +1 -1
  121. package/dist/components/react/p-Q5LQWL2X.js +1 -0
  122. package/dist/components/react/{p-CdggfEzz.js → p-UXyZDQt4.js} +1 -1
  123. package/dist/components/react/post-accordion-item.js +1 -1
  124. package/dist/components/react/post-accordion.js +1 -1
  125. package/dist/components/react/post-autocomplete.js +1 -1
  126. package/dist/components/react/post-avatar.js +1 -1
  127. package/dist/components/react/post-back-to-top.js +1 -1
  128. package/dist/components/react/post-banner.js +1 -1
  129. package/dist/components/react/post-breadcrumb-item.js +1 -1
  130. package/dist/components/react/post-breadcrumbs.js +1 -1
  131. package/dist/components/react/post-closebutton.js +1 -1
  132. package/dist/components/react/post-collapsible-trigger.js +1 -1
  133. package/dist/components/react/post-collapsible.js +1 -1
  134. package/dist/components/react/post-date-picker.js +1 -1
  135. package/dist/components/react/post-footer.js +1 -1
  136. package/dist/components/react/post-header.js +1 -1
  137. package/dist/components/react/post-icon.js +1 -1
  138. package/dist/components/react/post-language-menu-item.js +1 -1
  139. package/dist/components/react/post-language-menu.js +1 -1
  140. package/dist/components/react/post-linkarea.js +1 -1
  141. package/dist/components/react/post-listbox-option.js +1 -1
  142. package/dist/components/react/post-listbox.js +1 -1
  143. package/dist/components/react/post-logo.js +1 -1
  144. package/dist/components/react/post-mainnavigation.js +1 -1
  145. package/dist/components/react/post-megadropdown-trigger.js +1 -1
  146. package/dist/components/react/post-megadropdown.js +1 -1
  147. package/dist/components/react/post-menu-item.js +1 -1
  148. package/dist/components/react/post-menu-trigger.js +1 -1
  149. package/dist/components/react/post-menu.js +1 -1
  150. package/dist/components/react/post-number-input.js +1 -1
  151. package/dist/components/react/post-pagination.js +1 -1
  152. package/dist/components/react/post-popover-trigger.js +1 -1
  153. package/dist/components/react/post-popover.js +1 -1
  154. package/dist/components/react/post-popovercontainer.js +1 -1
  155. package/dist/components/react/post-rating.js +1 -1
  156. package/dist/components/react/post-side-navigation-trigger.js +1 -1
  157. package/dist/components/react/post-side-navigation.js +1 -1
  158. package/dist/components/react/post-stepper-item.js +1 -1
  159. package/dist/components/react/post-stepper.js +1 -1
  160. package/dist/components/react/post-tab-item.js +1 -1
  161. package/dist/components/react/post-tab-panel.js +1 -1
  162. package/dist/components/react/post-tabs.js +1 -1
  163. package/dist/components/react/post-togglebutton.js +1 -1
  164. package/dist/components/react/post-tooltip-trigger.js +1 -1
  165. package/dist/components/react/post-tooltip.js +1 -1
  166. package/dist/docs.json +67 -45
  167. package/dist/esm/{create-validator-decorator-C2XlYkNB.js → create-validator-decorator-Cp_NUmrr.js} +1 -1
  168. package/dist/esm/{index-BjziJWh2.js → index-D0jX3Fts.js} +5 -5
  169. package/dist/esm/is-focus-visible-BWwWKRO5.js +17 -0
  170. package/dist/esm/loader.js +3 -3
  171. package/dist/esm/{one-of-Do1iao-k.js → one-of-B9locHPx.js} +1 -1
  172. package/dist/esm/{package-T8T3po4z.js → package-BdiQsTQm.js} +1 -1
  173. package/dist/esm/{pattern-BZDucOTq.js → pattern-BL3OBU8C.js} +1 -1
  174. package/dist/esm/post-accordion_2.entry.js +6 -6
  175. package/dist/esm/post-autocomplete.entry.js +5 -5
  176. package/dist/esm/post-avatar.entry.js +85 -61
  177. package/dist/esm/post-back-to-top.entry.js +6 -6
  178. package/dist/esm/post-banner.entry.js +5 -5
  179. package/dist/esm/post-breadcrumb-item.entry.js +8 -8
  180. package/dist/esm/post-breadcrumbs.entry.js +7 -7
  181. package/dist/esm/post-closebutton_14.entry.js +477 -593
  182. package/dist/esm/post-collapsible_2.entry.js +13 -7
  183. package/dist/esm/post-components.js +3 -3
  184. package/dist/esm/post-date-picker.entry.js +43 -27
  185. package/dist/esm/post-footer.entry.js +6 -6
  186. package/dist/esm/post-linkarea.entry.js +2 -2
  187. package/dist/esm/post-listbox-option.entry.js +2 -2
  188. package/dist/esm/post-listbox.entry.js +2 -2
  189. package/dist/esm/post-number-input.entry.js +3 -3
  190. package/dist/esm/post-pagination.entry.js +6 -6
  191. package/dist/esm/post-popover-trigger.entry.js +4 -4
  192. package/dist/esm/post-popover.entry.js +9 -9
  193. package/dist/esm/post-progressbar.entry.js +3 -3
  194. package/dist/esm/post-rating.entry.js +5 -5
  195. package/dist/esm/post-side-navigation-trigger.entry.js +5 -5
  196. package/dist/esm/post-side-navigation.entry.js +14 -9
  197. package/dist/esm/post-stepper-item.entry.js +2 -2
  198. package/dist/esm/post-stepper.entry.js +6 -6
  199. package/dist/esm/post-tab-item.entry.js +5 -5
  200. package/dist/esm/post-tab-panel.entry.js +5 -5
  201. package/dist/esm/post-tabs.entry.js +8 -8
  202. package/dist/esm/post-tooltip-trigger.entry.js +6 -6
  203. package/dist/esm/post-tooltip.entry.js +8 -6
  204. package/dist/esm/{required-B0X7uy13.js → required-CDaQB1gC.js} +1 -1
  205. package/dist/esm/{type-CF1dOg6D.js → type-CQ7XuPCZ.js} +1 -1
  206. package/dist/esm/{url-BL7d6iWZ.js → url-B-86gtTK.js} +1 -1
  207. package/dist/post-components/p-0688d296.entry.js +1 -0
  208. package/dist/post-components/p-0b0b2f02.entry.js +1 -0
  209. package/dist/post-components/{p-c9dcdebb.entry.js → p-0d25c033.entry.js} +1 -1
  210. package/dist/post-components/{p-655ded00.entry.js → p-229d324e.entry.js} +1 -1
  211. package/dist/post-components/{p-88f754e9.entry.js → p-2a5312a7.entry.js} +1 -1
  212. package/dist/post-components/{p-ba1b4ba0.entry.js → p-330fd6cd.entry.js} +1 -1
  213. package/dist/post-components/p-3712133b.entry.js +1 -0
  214. package/dist/post-components/{p-87b1034f.entry.js → p-379780a3.entry.js} +1 -1
  215. package/dist/post-components/{p-dc285087.entry.js → p-3fdb8ebc.entry.js} +1 -1
  216. package/dist/post-components/{p-2005eb98.entry.js → p-456b0786.entry.js} +1 -1
  217. package/dist/post-components/p-4d30c65d.entry.js +1 -0
  218. package/dist/post-components/{p-de6f1816.entry.js → p-534ca27e.entry.js} +1 -1
  219. package/dist/post-components/p-5369b9c2.entry.js +1 -0
  220. package/dist/post-components/p-6833be12.entry.js +1 -0
  221. package/dist/post-components/p-6ad44691.entry.js +1 -0
  222. package/dist/post-components/{p-1ec27142.entry.js → p-82c62e90.entry.js} +1 -1
  223. package/dist/post-components/{p-8012cc3b.entry.js → p-91a2ef3c.entry.js} +1 -1
  224. package/dist/post-components/p-95f5d5ea.entry.js +1 -0
  225. package/dist/post-components/p-9dd286bf.entry.js +1 -0
  226. package/dist/post-components/p-9fedcfba.entry.js +1 -0
  227. package/dist/post-components/p-BCPv4bcY.js +1 -0
  228. package/dist/post-components/p-BWwWKRO5.js +1 -0
  229. package/dist/post-components/p-BdiQsTQm.js +1 -0
  230. package/dist/post-components/p-CP3LjuFR.js +1 -0
  231. package/dist/post-components/p-D0jX3Fts.js +2 -0
  232. package/dist/post-components/p-D6mVqZLg.js +1 -0
  233. package/dist/post-components/{p-DgnQe03V.js → p-DSaWK_q-.js} +1 -1
  234. package/dist/post-components/p-VPHnF9fB.js +1 -0
  235. package/dist/post-components/{p-f9a8ee94.entry.js → p-ab0500b7.entry.js} +1 -1
  236. package/dist/post-components/p-c123ecde.entry.js +1 -0
  237. package/dist/post-components/{p-cdc7b8d3.entry.js → p-d2de31b7.entry.js} +1 -1
  238. package/dist/post-components/p-dffeb751.entry.js +1 -0
  239. package/dist/post-components/{p-60550edb.entry.js → p-e11ccdbe.entry.js} +1 -1
  240. package/dist/post-components/{p-a32d3050.entry.js → p-e560767b.entry.js} +1 -1
  241. package/dist/post-components/p-ee7fade4.entry.js +1 -0
  242. package/dist/post-components/{p-2cff5b3a.entry.js → p-f2629077.entry.js} +1 -1
  243. package/dist/post-components/{p-d7c9a969.entry.js → p-f2b24bbd.entry.js} +1 -1
  244. package/dist/post-components/p-gv9b-Z15.js +1 -0
  245. package/dist/post-components/post-components.css +2 -2
  246. package/dist/post-components/post-components.esm.js +1 -1
  247. package/dist/types/components/post-avatar/avatar-utils.d.ts +0 -2
  248. package/dist/types/components/post-avatar/post-avatar.d.ts +11 -9
  249. package/dist/types/components/post-date-picker/post-date-picker.d.ts +4 -1
  250. package/dist/types/components/post-header/post-header.d.ts +5 -1
  251. package/dist/types/components/post-language-menu/post-language-menu.d.ts +3 -0
  252. package/dist/types/components/post-megadropdown/post-megadropdown.d.ts +1 -1
  253. package/dist/types/components/post-menu/post-menu.d.ts +0 -1
  254. package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +74 -69
  255. package/dist/types/components.d.ts +39 -26
  256. package/dist/types/utils/floating-ui/middleware/flip.d.ts +14 -0
  257. package/dist/types/utils/floating-ui/middleware/safe-space.d.ts +10 -0
  258. package/dist/types/utils/floating-ui/util.d.ts +4 -0
  259. package/dist/types/utils/index.d.ts +1 -0
  260. package/dist/types/utils/is-focus-visible.d.ts +5 -0
  261. package/dist/vrt/helpers/header-test-config.js +2 -1
  262. package/hydrate/index.js +564 -623
  263. package/hydrate/index.mjs +564 -623
  264. package/package.json +11 -10
  265. package/dist/components/react/p-3RU9XwVO.js +0 -1
  266. package/dist/components/react/p-B1TcktiB.js +0 -1
  267. package/dist/components/react/p-BN2dfUQ0.js +0 -1
  268. package/dist/components/react/p-BPUhha1U.js +0 -1
  269. package/dist/components/react/p-Bnb_TyDh.js +0 -1
  270. package/dist/components/react/p-T8T3po4z.js +0 -1
  271. package/dist/components/react/p-WXzzOdnl.js +0 -1
  272. package/dist/post-components/p-0e922531.entry.js +0 -1
  273. package/dist/post-components/p-53bd2128.entry.js +0 -1
  274. package/dist/post-components/p-59b30e90.entry.js +0 -1
  275. package/dist/post-components/p-76cc3c9a.entry.js +0 -1
  276. package/dist/post-components/p-819c93de.entry.js +0 -1
  277. package/dist/post-components/p-840acd3c.entry.js +0 -1
  278. package/dist/post-components/p-9S_5_Zh8.js +0 -1
  279. package/dist/post-components/p-BYfu3J2D.js +0 -1
  280. package/dist/post-components/p-BjziJWh2.js +0 -2
  281. package/dist/post-components/p-BoYe-VVx.js +0 -1
  282. package/dist/post-components/p-CbbADNiv.js +0 -1
  283. package/dist/post-components/p-DlKbBdcP.js +0 -1
  284. package/dist/post-components/p-T8T3po4z.js +0 -1
  285. package/dist/post-components/p-b4229624.entry.js +0 -1
  286. package/dist/post-components/p-b9faa76b.entry.js +0 -1
  287. package/dist/post-components/p-c0ae13b7.entry.js +0 -1
  288. package/dist/post-components/p-ccf8020b.entry.js +0 -1
  289. package/dist/post-components/p-cd68d3a2.entry.js +0 -1
  290. package/dist/post-components/p-db11f781.entry.js +0 -1
  291. package/dist/post-components/p-dec8bd99.entry.js +0 -1
  292. package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/vrt/helpers/header-variants.config.d.ts +0 -23
  293. package/dist/vrt/helpers/header-variants.config.js +0 -157
  294. /package/dist/collection/utils/{floating-ui.js → floating-ui/platform/safe-area.js} +0 -0
  295. /package/dist/types/utils/{floating-ui.d.ts → floating-ui/platform/safe-area.d.ts} +0 -0
@@ -1 +1 @@
1
- import{r as t,h as i,H as s,a as e}from"./p-BjziJWh2.js";import"./p-I1j7a0bW.js";import{v as o}from"./p-T8T3po4z.js";import{R as h}from"./p-DlKbBdcP.js";import{T as r}from"./p-9S_5_Zh8.js";import"./p-DgnQe03V.js";const n=["pointerenter","pointerleave","focusin","focusout"];let a;const l=class{constructor(i){t(this,i),this.delay=0,this.trigger=null,this.delayTimeout=null,this.boundTriggerHandler=this.handleTriggerEvent.bind(this),this.boundTooltipHandler=this.handleTooltipEvent.bind(this)}get tooltip(){const t=document.getElementById(this.for);return"post-tooltip"===t?.localName?t:null}componentWillLoad(){import("./p-BrY4VWTQ.js").then((function(t){return t.f})).then((t=>{a??=t.default}))}componentDidLoad(){this.setupTrigger(),this.attachListeners(),this.attachTooltipListeners()}disconnectedCallback(){this.removeListeners(),this.removeTooltipListeners(),this.cleanupTrigger(),this.delayTimeout&&(clearTimeout(this.delayTimeout),this.delayTimeout=null)}handleSlotChange(){this.cleanupTrigger(),this.setupTrigger()}cleanupTrigger(){if(this.trigger){const t=this.trigger.getAttribute("aria-describedby")||"";if(t.includes(this.for)){const i=t.split(" ").filter((t=>t!==this.for)).join(" ");i?this.trigger.setAttribute("aria-describedby",i):this.trigger.removeAttribute("aria-describedby")}this.trigger=null}}setupTrigger(){if(this.trigger=this.host.querySelector("*"),this.trigger){a?.(this.trigger)||this.trigger.setAttribute("tabindex","0");const t=this.trigger.getAttribute("aria-describedby")||"";t.includes(this.for)||this.trigger.setAttribute("aria-describedby",`${t} ${this.for}`.trim())}else console.warn("No content found in the post-tooltip-trigger slot. Please insert a focusable element or content that can receive focus.")}attachListeners(){n.forEach((t=>{this.host.addEventListener(t,this.boundTriggerHandler)}))}removeListeners(){n.forEach((t=>{this.host.removeEventListener(t,this.boundTriggerHandler)}))}attachTooltipListeners(){this.tooltip&&(this.tooltip.addEventListener("pointerenter",this.boundTooltipHandler),this.tooltip.addEventListener("pointerleave",this.boundTooltipHandler))}removeTooltipListeners(){this.tooltip&&(this.tooltip.removeEventListener("pointerenter",this.boundTooltipHandler),this.tooltip.removeEventListener("pointerleave",this.boundTooltipHandler))}handleTriggerEvent(t){switch(t.type){case"pointerenter":case"focusin":case"long-press":this.handleEnter();break;case"pointerleave":case"focusout":this.handleLeave(t)}}handleTooltipEvent(t){switch(t.type){case"pointerenter":this.handleEnter();break;case"pointerleave":this.handleLeave(t)}}handleEnter(){this.delayTimeout&&(clearTimeout(this.delayTimeout),this.delayTimeout=null),this.interestHandler()}handleLeave(t){const i=t.relatedTarget;this.tooltip&&i&&this.tooltip.contains(i)||i===this.trigger||this.interestLostHandler()}interestHandler(){this.trigger&&(this.delay>0?this.delayTimeout=globalThis.setTimeout((()=>{this.tooltip?.show(this.trigger),this.delayTimeout=null}),this.delay):this.tooltip?.show(this.trigger))}interestLostHandler(){this.delayTimeout&&(clearTimeout(this.delayTimeout),this.delayTimeout=null),this.tooltip?.hide()}render(){return i(s,{key:"55adc12f457aa8a5dd4357ed27876b0e526f7ae3","data-version":o},i("slot",{key:"84da1734ae1c1ac9376caa693108e3ed54bf176f",onSlotchange:()=>this.handleSlotChange()}))}get host(){return e(this)}};(function(t,i,s,e){var o,h=arguments.length,r=h<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,s,e);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(r=(h<3?o(r):h>3?o(i,s,r):o(i,s))||r);h>3&&r&&Object.defineProperty(i,s,r)})([h(),r("string")],l.prototype,"for",void 0),l.style="post-tooltip-trigger{vertical-align:top}:host{cursor:pointer}";export{l as post_tooltip_trigger}
1
+ import{r as t,h as s,H as i,a as e}from"./p-D0jX3Fts.js";import"./p-I1j7a0bW.js";import{v as o}from"./p-BdiQsTQm.js";import{R as h}from"./p-D6mVqZLg.js";import{T as r}from"./p-CP3LjuFR.js";import"./p-DSaWK_q-.js";const n=["pointerenter","pointerleave","focusin","focusout"];let a;const l=class{constructor(s){t(this,s),this.delay=0,this.trigger=null,this.delayTimeout=null,this.boundTriggerHandler=this.handleTriggerEvent.bind(this),this.boundTooltipHandler=this.handleTooltipEvent.bind(this)}get tooltip(){const t=document.getElementById(this.for);return"post-tooltip"===t?.localName?t:null}componentWillLoad(){import("./p-BrY4VWTQ.js").then((function(t){return t.f})).then((t=>{a??=t.default}))}componentDidLoad(){this.setupTrigger(),this.attachListeners(),this.attachTooltipListeners()}disconnectedCallback(){this.removeListeners(),this.removeTooltipListeners(),this.cleanupTrigger(),this.delayTimeout&&(clearTimeout(this.delayTimeout),this.delayTimeout=null)}handleSlotChange(){this.cleanupTrigger(),this.setupTrigger()}cleanupTrigger(){if(this.trigger){const t=this.trigger.getAttribute("aria-describedby")||"";if(t.includes(this.for)){const s=t.split(" ").filter((t=>t!==this.for)).join(" ");s?this.trigger.setAttribute("aria-describedby",s):this.trigger.removeAttribute("aria-describedby")}this.trigger=null}}setupTrigger(){if(this.trigger=this.host.querySelector("*"),this.trigger){a?.(this.trigger)||this.trigger.setAttribute("tabindex","0");const t=this.trigger.getAttribute("aria-describedby")||"";t.includes(this.for)||this.trigger.setAttribute("aria-describedby",`${t} ${this.for}`.trim())}else console.warn("No content found in the post-tooltip-trigger slot. Please insert a focusable element or content that can receive focus.")}attachListeners(){n.forEach((t=>{this.host.addEventListener(t,this.boundTriggerHandler)}))}removeListeners(){n.forEach((t=>{this.host.removeEventListener(t,this.boundTriggerHandler)}))}attachTooltipListeners(){this.tooltip&&(this.tooltip.addEventListener("pointerenter",this.boundTooltipHandler),this.tooltip.addEventListener("pointerleave",this.boundTooltipHandler))}removeTooltipListeners(){this.tooltip&&(this.tooltip.removeEventListener("pointerenter",this.boundTooltipHandler),this.tooltip.removeEventListener("pointerleave",this.boundTooltipHandler))}handleTriggerEvent(t){switch(t.type){case"pointerenter":case"focusin":case"long-press":this.handleEnter();break;case"pointerleave":case"focusout":this.handleLeave(t)}}handleTooltipEvent(t){switch(t.type){case"pointerenter":this.handleEnter();break;case"pointerleave":this.handleLeave(t)}}handleEnter(){this.delayTimeout&&(clearTimeout(this.delayTimeout),this.delayTimeout=null),this.interestHandler()}handleLeave(t){const s=t.relatedTarget;this.tooltip&&s&&this.tooltip.contains(s)||s===this.trigger||this.interestLostHandler()}interestHandler(){this.trigger&&(this.delay>0?this.delayTimeout=globalThis.setTimeout((()=>{this.tooltip?.show(this.trigger),this.delayTimeout=null}),this.delay):this.tooltip?.show(this.trigger))}interestLostHandler(){this.delayTimeout&&(clearTimeout(this.delayTimeout),this.delayTimeout=null),this.tooltip?.hide()}render(){return s(i,{key:"37f835a46c96f1f97019b611da8b6be2d6e1a8d7","data-version":o},s("slot",{key:"c2fc3d9080948fdcfbd8b2866730e76b770b87ba",onSlotchange:()=>this.handleSlotChange()}))}get host(){return e(this)}};(function(t,s,i,e){var o,h=arguments.length,r=h<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,s,i,e);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(r=(h<3?o(r):h>3?o(s,i,r):o(s,i))||r);h>3&&r&&Object.defineProperty(s,i,r)})([h(),r("string")],l.prototype,"for",void 0),l.style="post-tooltip-trigger{vertical-align:top}:host{cursor:pointer}";export{l as post_tooltip_trigger}
@@ -0,0 +1 @@
1
+ import{r,h as e,H as o,a as t}from"./p-D0jX3Fts.js";import{P as c}from"./p-DRiVosES.js";import"./p-I1j7a0bW.js";import{g as a}from"./p-DYYpZAAV.js";import{v as s}from"./p-BdiQsTQm.js";import{O as i}from"./p-BCPv4bcY.js";import{R as l}from"./p-D6mVqZLg.js";import{T as n}from"./p-CP3LjuFR.js";import"./p-08F-DB-d.js";import"./p-DSaWK_q-.js";var p=function(r,e,o,t){var c,a=arguments.length,s=a<3?e:null===t?t=Object.getOwnPropertyDescriptor(e,o):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(r,e,o,t);else for(var i=r.length-1;i>=0;i--)(c=r[i])&&(s=(a<3?c(s):a>3?c(e,o,s):c(e,o))||s);return a>3&&s&&Object.defineProperty(e,o,s),s};const h=class{constructor(e){r(this,e),this.placement="top",this.arrow=!0,this.breakpointChange=()=>{requestAnimationFrame((()=>this.updateEdgeGap()))}}async show(r){await this.popoverRef.show(r),this.focusFirstEl(),this.updateEdgeGap()}async hide(){this.popoverRef.hide()}async toggle(r,e){await this.popoverRef.toggle(r,e)&&(this.updateEdgeGap(),this.focusFirstEl())}connectedCallback(){globalThis.addEventListener("postBreakpoint:device",this.breakpointChange)}disconnectedCallback(){globalThis.removeEventListener("postBreakpoint:device",this.breakpointChange)}updateEdgeGap(){const r=this.host.shadowRoot?.querySelector("post-closebutton");if(!r)return;const e=r.getBoundingClientRect().width;e&&!Number.isNaN(e)&&(this.edgeGap=e/2)}focusFirstEl(){const r=a(this.host)[0];r&&r.focus()}render(){return e(o,{key:"0e57981004d99d528a4652598739afbf1208376c","data-version":s},e("post-popovercontainer",{key:"cfa3e03284033c19317fab6a565cbcef0d4aa458",arrow:this.arrow,placement:this.placement,edgeGap:this.edgeGap,autoHide:!0,autoResize:!0,ref:r=>{r&&(this.popoverRef=r)}},e("div",{key:"758a7d16666581674c48043aaaf4b266c3d754b8",class:"popover-container"},e("div",{key:"60ab881499fa6cc016dc285f962f2dbee884adee",class:"popover-content"},e("slot",{key:"78b457120894b4117a7f4008f313e9a346f539ab"})),e("post-closebutton",{key:"5cc2cc1e36e8840f2e2729dcf8c15a211c95ec12"},this.textClose))))}get host(){return t(this)}};p([i(c)],h.prototype,"placement",void 0),p([l(),n("string")],h.prototype,"textClose",void 0),h.style="@supports not (color: light-dark(black, white)){post-closebutton{--post-scheme-color-body-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-002);--post-scheme-color-body-bg:var(--post-scheme-color-body-bg-light, var(--post-core-color-sandgrey-080));--post-scheme-color-body-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-scheme-color-body-fg:var(--post-scheme-color-body-fg-light, var(--post-core-color-brand-white));--post-scheme-color-signal-success-dark-light:var(--post-fallback-prefers-light) var(--post-core-color-notification-green);--post-scheme-color-signal-success-dark:var(--post-scheme-color-signal-success-dark-light, var(--post-core-color-notification-green));--post-scheme-color-signal-success-light-light:var(--post-fallback-prefers-light) var(--post-core-color-notification-green-light);--post-scheme-color-signal-success-light:var(--post-scheme-color-signal-success-light-light, var(--post-core-color-notification-green-light));--post-scheme-color-signal-error-dark-light:var(--post-fallback-prefers-light) var(--post-core-color-notification-red);--post-scheme-color-signal-error-dark:var(--post-scheme-color-signal-error-dark-light, var(--post-core-color-notification-red));--post-scheme-color-signal-error-light-light:var(--post-fallback-prefers-light) var(--post-core-color-notification-red-light);--post-scheme-color-signal-error-light:var(--post-scheme-color-signal-error-light-light, var(--post-core-color-notification-red-light));--post-scheme-color-signal-warning-dark-light:var(--post-fallback-prefers-light) var(--post-core-color-notification-orange);--post-scheme-color-signal-warning-dark:var(--post-scheme-color-signal-warning-dark-light, var(--post-core-color-notification-orange));--post-scheme-color-signal-warning-light-light:var(--post-fallback-prefers-light) var(--post-core-color-notification-orange-light);--post-scheme-color-signal-warning-light:var(--post-scheme-color-signal-warning-light-light, var(--post-core-color-notification-orange-light));--post-scheme-color-signal-information-dark-light:var(--post-fallback-prefers-light) var(--post-core-color-notification-blue);--post-scheme-color-signal-information-dark:var(--post-scheme-color-signal-information-dark-light, var(--post-core-color-notification-blue));--post-scheme-color-signal-information-light-light:var(--post-fallback-prefers-light) var(--post-core-color-notification-blue-light);--post-scheme-color-signal-information-light:var(--post-scheme-color-signal-information-light-light, var(--post-core-color-notification-blue-light));--post-scheme-color-signal-success-solo-light:var(--post-fallback-prefers-light) var(--post-core-color-notification-green);--post-scheme-color-signal-success-solo:var(--post-scheme-color-signal-success-solo-light, var(--post-core-color-notification-green-night));--post-scheme-color-signal-error-solo-light:var(--post-fallback-prefers-light) var(--post-core-color-notification-red);--post-scheme-color-signal-error-solo:var(--post-scheme-color-signal-error-solo-light, var(--post-core-color-notification-red-night));--post-scheme-color-signal-info-solo-light:var(--post-fallback-prefers-light) var(--post-core-color-notification-blue);--post-scheme-color-signal-info-solo:var(--post-scheme-color-signal-info-solo-light, var(--post-core-color-notification-blue-night));--post-scheme-color-signal-warning-solo-light:var(--post-fallback-prefers-light) var(--post-core-color-notification-orange);--post-scheme-color-signal-warning-solo:var(--post-scheme-color-signal-warning-solo-light, var(--post-core-color-notification-orange-night));--post-scheme-color-interactive-button-primary-enabled-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-button-primary-enabled-fg:var(--post-scheme-color-interactive-button-primary-enabled-fg-light, var(--post-core-color-sandgrey-100));--post-scheme-color-interactive-button-primary-enabled-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-scheme-color-interactive-button-primary-enabled-bg:var(--post-scheme-color-interactive-button-primary-enabled-bg-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-button-primary-enabled-stroke-light:var(--post-fallback-prefers-light) var(--post-scheme-color-interactive-button-primary-enabled-bg);--post-scheme-color-interactive-button-primary-enabled-stroke:var(--post-scheme-color-interactive-button-primary-enabled-stroke-light, var(--post-scheme-color-interactive-button-primary-enabled-bg));--post-scheme-color-interactive-button-primary-enabled-fg-inverted-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-scheme-color-interactive-button-primary-enabled-fg-inverted:var(--post-scheme-color-interactive-button-primary-enabled-fg-inverted-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-button-primary-enabled-bg-inverted-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-button-primary-enabled-bg-inverted:var(--post-scheme-color-interactive-button-primary-enabled-bg-inverted-light, var(--post-core-color-sandgrey-100));--post-scheme-color-interactive-button-primary-enabled-stroke-inverted-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-button-primary-enabled-stroke-inverted:var(--post-scheme-color-interactive-button-primary-enabled-stroke-inverted-light, var(--post-core-color-sandgrey-100));--post-scheme-color-interactive-button-primary-hover-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-button-primary-hover-fg:var(--post-scheme-color-interactive-button-primary-hover-fg-light, var(--post-core-color-sandgrey-070));--post-scheme-color-interactive-button-primary-hover-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-070);--post-scheme-color-interactive-button-primary-hover-bg:var(--post-scheme-color-interactive-button-primary-hover-bg-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-button-primary-hover-stroke-light:var(--post-fallback-prefers-light) var(--post-scheme-color-interactive-button-primary-hover-bg);--post-scheme-color-interactive-button-primary-hover-stroke:var(--post-scheme-color-interactive-button-primary-hover-stroke-light, var(--post-scheme-color-interactive-button-primary-hover-bg));--post-scheme-color-interactive-button-primary-hover-fg-inverted-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-070);--post-scheme-color-interactive-button-primary-hover-fg-inverted:var(--post-scheme-color-interactive-button-primary-hover-fg-inverted-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-button-primary-hover-bg-inverted-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-button-primary-hover-bg-inverted:var(--post-scheme-color-interactive-button-primary-hover-bg-inverted-light, var(--post-core-color-sandgrey-070));--post-scheme-color-interactive-button-primary-hover-stroke-inverted-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-button-primary-hover-stroke-inverted:var(--post-scheme-color-interactive-button-primary-hover-stroke-inverted-light, var(--post-core-color-sandgrey-070));--post-scheme-color-interactive-button-primary-disabled-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-060);--post-scheme-color-interactive-button-primary-disabled-fg:var(--post-scheme-color-interactive-button-primary-disabled-fg-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-button-primary-disabled-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-button-primary-disabled-bg:var(--post-scheme-color-interactive-button-primary-disabled-bg-light, var(--post-core-color-sandgrey-060));--post-scheme-color-interactive-button-primary-disabled-stroke-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-060);--post-scheme-color-interactive-button-primary-disabled-stroke:var(--post-scheme-color-interactive-button-primary-disabled-stroke-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-button-primary-disabled-fg-inverted-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-button-primary-disabled-fg-inverted:var(--post-scheme-color-interactive-button-primary-disabled-fg-inverted-light, var(--post-core-color-sandgrey-060));--post-scheme-color-interactive-button-primary-disabled-bg-inverted-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-060);--post-scheme-color-interactive-button-primary-disabled-bg-inverted:var(--post-scheme-color-interactive-button-primary-disabled-bg-inverted-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-button-primary-disabled-stroke-inverted-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-button-primary-disabled-stroke-inverted:var(--post-scheme-color-interactive-button-primary-disabled-stroke-inverted-light, var(--post-core-color-sandgrey-060));--post-scheme-color-interactive-button-secondary-enabled-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-scheme-color-interactive-button-secondary-enabled-fg:var(--post-scheme-color-interactive-button-secondary-enabled-fg-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-button-secondary-enabled-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-button-secondary-enabled-bg:var(--post-scheme-color-interactive-button-secondary-enabled-bg-light, var(--post-core-color-colorless));--post-scheme-color-interactive-button-secondary-enabled-stroke-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-scheme-color-interactive-button-secondary-enabled-stroke:var(--post-scheme-color-interactive-button-secondary-enabled-stroke-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-button-secondary-enabled-fg-inverted-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-button-secondary-enabled-fg-inverted:var(--post-scheme-color-interactive-button-secondary-enabled-fg-inverted-light, var(--post-core-color-sandgrey-100));--post-scheme-color-interactive-button-secondary-enabled-bg-inverted-light:var(--post-fallback-prefers-light) var(--post-core-color-colorless);--post-scheme-color-interactive-button-secondary-enabled-bg-inverted:var(--post-scheme-color-interactive-button-secondary-enabled-bg-inverted-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-button-secondary-enabled-stroke-inverted-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-button-secondary-enabled-stroke-inverted:var(--post-scheme-color-interactive-button-secondary-enabled-stroke-inverted-light, var(--post-core-color-sandgrey-100));--post-scheme-color-interactive-button-secondary-hover-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-070);--post-scheme-color-interactive-button-secondary-hover-fg:var(--post-scheme-color-interactive-button-secondary-hover-fg-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-button-secondary-hover-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-button-secondary-hover-bg:var(--post-scheme-color-interactive-button-secondary-hover-bg-light, var(--post-core-color-sandgrey-alpha-lightsand-10));--post-scheme-color-interactive-button-secondary-hover-stroke-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-070);--post-scheme-color-interactive-button-secondary-hover-stroke:var(--post-scheme-color-interactive-button-secondary-hover-stroke-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-button-secondary-hover-fg-inverted-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-button-secondary-hover-fg-inverted:var(--post-scheme-color-interactive-button-secondary-hover-fg-inverted-light, var(--post-core-color-sandgrey-070));--post-scheme-color-interactive-button-secondary-hover-bg-inverted-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-alpha-lightsand-10);--post-scheme-color-interactive-button-secondary-hover-bg-inverted:var(--post-scheme-color-interactive-button-secondary-hover-bg-inverted-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-button-secondary-hover-stroke-inverted-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-button-secondary-hover-stroke-inverted:var(--post-scheme-color-interactive-button-secondary-hover-stroke-inverted-light, var(--post-core-color-sandgrey-070));--post-scheme-color-interactive-button-secondary-disabled-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-060);--post-scheme-color-interactive-button-secondary-disabled-fg:var(--post-scheme-color-interactive-button-secondary-disabled-fg-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-button-secondary-disabled-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-button-secondary-disabled-bg:var(--post-scheme-color-interactive-button-secondary-disabled-bg-light, var(--post-core-color-sandgrey-alpha-lightsand-30));--post-scheme-color-interactive-button-secondary-disabled-stroke-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-060);--post-scheme-color-interactive-button-secondary-disabled-stroke:var(--post-scheme-color-interactive-button-secondary-disabled-stroke-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-button-secondary-disabled-fg-inverted-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-button-secondary-disabled-fg-inverted:var(--post-scheme-color-interactive-button-secondary-disabled-fg-inverted-light, var(--post-core-color-sandgrey-060));--post-scheme-color-interactive-button-secondary-disabled-bg-inverted-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-alpha-lightsand-30);--post-scheme-color-interactive-button-secondary-disabled-bg-inverted:var(--post-scheme-color-interactive-button-secondary-disabled-bg-inverted-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-button-secondary-disabled-stroke-inverted-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-button-secondary-disabled-stroke-inverted:var(--post-scheme-color-interactive-button-secondary-disabled-stroke-inverted-light, var(--post-core-color-sandgrey-060));--post-scheme-color-interactive-button-tertiary-enabled-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-scheme-color-interactive-button-tertiary-enabled-fg:var(--post-scheme-color-interactive-button-tertiary-enabled-fg-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-button-tertiary-enabled-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-colorless);--post-scheme-color-interactive-button-tertiary-enabled-bg:var(--post-scheme-color-interactive-button-tertiary-enabled-bg-light, var(--post-core-color-colorless));--post-scheme-color-interactive-button-tertiary-enabled-stroke-light:var(--post-fallback-prefers-light) var(--post-scheme-color-interactive-button-tertiary-enabled-bg);--post-scheme-color-interactive-button-tertiary-enabled-stroke:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke-light, var(--post-scheme-color-interactive-button-tertiary-enabled-bg));--post-scheme-color-interactive-button-tertiary-enabled-fg-inverted-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-button-tertiary-enabled-fg-inverted:var(--post-scheme-color-interactive-button-tertiary-enabled-fg-inverted-light, var(--post-core-color-sandgrey-100));--post-scheme-color-interactive-button-tertiary-enabled-bg-inverted-light:var(--post-fallback-prefers-light) var(--post-core-color-colorless);--post-scheme-color-interactive-button-tertiary-enabled-bg-inverted:var(--post-scheme-color-interactive-button-tertiary-enabled-bg-inverted-light, var(--post-core-color-colorless));--post-scheme-color-interactive-button-tertiary-enabled-stroke-inverted-light:var(--post-fallback-prefers-light) var(--post-core-color-colorless);--post-scheme-color-interactive-button-tertiary-enabled-stroke-inverted:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke-inverted-light, var(--post-core-color-colorless));--post-scheme-color-interactive-button-tertiary-hover-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-070);--post-scheme-color-interactive-button-tertiary-hover-fg:var(--post-scheme-color-interactive-button-tertiary-hover-fg-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-button-tertiary-hover-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-colorless);--post-scheme-color-interactive-button-tertiary-hover-bg:var(--post-scheme-color-interactive-button-tertiary-hover-bg-light, var(--post-core-color-sandgrey-alpha-lightsand-10));--post-scheme-color-interactive-button-tertiary-hover-stroke-light:var(--post-fallback-prefers-light) var(--post-scheme-color-interactive-button-tertiary-hover-bg);--post-scheme-color-interactive-button-tertiary-hover-stroke:var(--post-scheme-color-interactive-button-tertiary-hover-stroke-light, var(--post-core-color-colorless));--post-scheme-color-interactive-button-tertiary-hover-fg-inverted-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-button-tertiary-hover-fg-inverted:var(--post-scheme-color-interactive-button-tertiary-hover-fg-inverted-light, var(--post-core-color-sandgrey-070));--post-scheme-color-interactive-button-tertiary-hover-bg-inverted-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-alpha-lightsand-10);--post-scheme-color-interactive-button-tertiary-hover-bg-inverted:var(--post-scheme-color-interactive-button-tertiary-hover-bg-inverted-light, var(--post-core-color-colorless));--post-scheme-color-interactive-button-tertiary-hover-stroke-inverted-light:var(--post-fallback-prefers-light) var(--post-core-color-colorless);--post-scheme-color-interactive-button-tertiary-hover-stroke-inverted:var(--post-scheme-color-interactive-button-tertiary-hover-stroke-inverted-light, var(--post-core-color-colorless));--post-scheme-color-interactive-button-tertiary-disabled-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-060);--post-scheme-color-interactive-button-tertiary-disabled-fg:var(--post-scheme-color-interactive-button-tertiary-disabled-fg-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-button-tertiary-disabled-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-colorless);--post-scheme-color-interactive-button-tertiary-disabled-bg:var(--post-scheme-color-interactive-button-tertiary-disabled-bg-light, var(--post-core-color-sandgrey-alpha-lightsand-30));--post-scheme-color-interactive-button-tertiary-disabled-stroke-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-060);--post-scheme-color-interactive-button-tertiary-disabled-stroke:var(--post-scheme-color-interactive-button-tertiary-disabled-stroke-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-button-tertiary-disabled-fg-inverted-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-button-tertiary-disabled-fg-inverted:var(--post-scheme-color-interactive-button-tertiary-disabled-fg-inverted-light, var(--post-core-color-sandgrey-060));--post-scheme-color-interactive-button-tertiary-disabled-bg-inverted-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-alpha-lightsand-30);--post-scheme-color-interactive-button-tertiary-disabled-bg-inverted:var(--post-scheme-color-interactive-button-tertiary-disabled-bg-inverted-light, var(--post-core-color-colorless));--post-scheme-color-interactive-button-tertiary-disabled-stroke-inverted-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-button-tertiary-disabled-stroke-inverted:var(--post-scheme-color-interactive-button-tertiary-disabled-stroke-inverted-light, var(--post-core-color-sandgrey-060));--post-scheme-color-interactive-focus-stroke-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-scheme-color-interactive-focus-stroke:var(--post-scheme-color-interactive-focus-stroke-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-focus-stroke-inverted-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-focus-stroke-inverted:var(--post-scheme-color-interactive-focus-stroke-inverted-light, var(--post-core-color-sandgrey-100));--post-scheme-color-interactive-primary-enabled-bg1-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-primary-enabled-bg1:var(--post-scheme-color-interactive-primary-enabled-bg1-light, var(--post-core-color-sandgrey-100));--post-scheme-color-interactive-primary-enabled-fg1-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-scheme-color-interactive-primary-enabled-fg1:var(--post-scheme-color-interactive-primary-enabled-fg1-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-primary-enabled-fg2-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-060);--post-scheme-color-interactive-primary-enabled-fg2:var(--post-scheme-color-interactive-primary-enabled-fg2-light, var(--post-core-color-sandgrey-060));--post-scheme-color-interactive-primary-enabled-stroke-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-scheme-color-interactive-primary-enabled-stroke:var(--post-scheme-color-interactive-primary-enabled-stroke-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-primary-enabled-fg3-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-primary-enabled-fg3:var(--post-scheme-color-interactive-primary-enabled-fg3-light, var(--post-core-color-sandgrey-100));--post-scheme-color-interactive-primary-enabled-bg2-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-scheme-color-interactive-primary-enabled-bg2:var(--post-scheme-color-interactive-primary-enabled-bg2-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-primary-enabled-stroke3-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-primary-enabled-stroke3:var(--post-scheme-color-interactive-primary-enabled-stroke3-light, var(--post-core-color-sandgrey-100));--post-scheme-color-interactive-primary-enabled-bg3-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-primary-enabled-bg3:var(--post-scheme-color-interactive-primary-enabled-bg3-light, var(--post-core-color-colorless));--post-scheme-color-interactive-primary-enabled-stroke4-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-030);--post-scheme-color-interactive-primary-enabled-stroke4:var(--post-scheme-color-interactive-primary-enabled-stroke4-light, var(--post-core-color-sandgrey-030));--post-scheme-color-interactive-primary-enabled-bg4-light:var(--post-fallback-prefers-light) var(--post-core-color-colorless);--post-scheme-color-interactive-primary-enabled-bg4:var(--post-scheme-color-interactive-primary-enabled-bg4-light, var(--post-core-color-colorless));--post-scheme-color-interactive-primary-enabled-stroke5-light:var(--post-fallback-prefers-light) var(--post-core-color-colorless);--post-scheme-color-interactive-primary-enabled-stroke5:var(--post-scheme-color-interactive-primary-enabled-stroke5-light, var(--post-core-color-colorless));--post-scheme-color-interactive-primary-enabled-bg5-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-primary-enabled-bg5:var(--post-scheme-color-interactive-primary-enabled-bg5-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-primary-enabled-fg5-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-scheme-color-interactive-primary-enabled-fg5:var(--post-scheme-color-interactive-primary-enabled-fg5-light, var(--post-core-color-sandgrey-100));--post-scheme-color-interactive-primary-enabled-fg6-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-primary-enabled-fg6:var(--post-scheme-color-interactive-primary-enabled-fg6-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-primary-enabled-bg6-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-scheme-color-interactive-primary-enabled-bg6:var(--post-scheme-color-interactive-primary-enabled-bg6-light, var(--post-core-color-sandgrey-100));--post-scheme-color-interactive-primary-hover-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-primary-hover-bg:var(--post-scheme-color-interactive-primary-hover-bg-light, var(--post-core-color-sandgrey-070));--post-scheme-color-interactive-primary-hover-fg1-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-070);--post-scheme-color-interactive-primary-hover-fg1:var(--post-scheme-color-interactive-primary-hover-fg1-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-primary-hover-stroke-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-070);--post-scheme-color-interactive-primary-hover-stroke:var(--post-scheme-color-interactive-primary-hover-stroke-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-primary-hover-fg3-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-primary-hover-fg3:var(--post-scheme-color-interactive-primary-hover-fg3-light, var(--post-core-color-sandgrey-070));--post-scheme-color-interactive-primary-hover-bg2-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-070);--post-scheme-color-interactive-primary-hover-bg2:var(--post-scheme-color-interactive-primary-hover-bg2-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-primary-hover-stroke3-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-primary-hover-stroke3:var(--post-scheme-color-interactive-primary-hover-stroke3-light, var(--post-core-color-sandgrey-070));--post-scheme-color-interactive-primary-hover-bg3-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-primary-hover-bg3:var(--post-scheme-color-interactive-primary-hover-bg3-light, var(--post-core-color-sandgrey-alpha-lightsand-20));--post-scheme-color-interactive-primary-hover-bg4-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-006);--post-scheme-color-interactive-primary-hover-bg4:var(--post-scheme-color-interactive-primary-hover-bg4-light, var(--post-core-color-sandgrey-006));--post-scheme-color-interactive-primary-hover-bg5-light:var(--post-fallback-prefers-light) var(--post-core-color-colorless);--post-scheme-color-interactive-primary-hover-bg5:var(--post-scheme-color-interactive-primary-hover-bg5-light, var(--post-core-color-colorless));--post-scheme-color-interactive-primary-hover-bg7-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-006);--post-scheme-color-interactive-primary-hover-bg7:var(--post-scheme-color-interactive-primary-hover-bg7-light, var(--post-core-color-sandgrey-alpha-lightsand-10));--post-scheme-color-interactive-primary-hover-bg8-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-primary-hover-bg8:var(--post-scheme-color-interactive-primary-hover-bg8-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-primary-hover-fg4-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-070);--post-scheme-color-interactive-primary-hover-fg4:var(--post-scheme-color-interactive-primary-hover-fg4-light, var(--post-core-color-sandgrey-070));--post-scheme-color-interactive-primary-disabled-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-primary-disabled-bg:var(--post-scheme-color-interactive-primary-disabled-bg-light, var(--post-core-color-sandgrey-060));--post-scheme-color-interactive-primary-disabled-fg1-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-060);--post-scheme-color-interactive-primary-disabled-fg1:var(--post-scheme-color-interactive-primary-disabled-fg1-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-primary-disabled-stroke-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-060);--post-scheme-color-interactive-primary-disabled-stroke:var(--post-scheme-color-interactive-primary-disabled-stroke-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-primary-disabled-fg3-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-primary-disabled-fg3:var(--post-scheme-color-interactive-primary-disabled-fg3-light, var(--post-core-color-sandgrey-060));--post-scheme-color-interactive-primary-disabled-stroke2-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-060);--post-scheme-color-interactive-primary-disabled-stroke2:var(--post-scheme-color-interactive-primary-disabled-stroke2-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-primary-disabled-bg4-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-060);--post-scheme-color-interactive-primary-disabled-bg4:var(--post-scheme-color-interactive-primary-disabled-bg4-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-primary-disabled-stroke3-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-primary-disabled-stroke3:var(--post-scheme-color-interactive-primary-disabled-stroke3-light, var(--post-core-color-sandgrey-060));--post-scheme-color-interactive-primary-disabled-bg5-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-012);--post-scheme-color-interactive-primary-disabled-bg5:var(--post-scheme-color-interactive-primary-disabled-bg5-light, var(--post-core-color-sandgrey-alpha-lightsand-10));--post-scheme-color-interactive-primary-disabled-fg4-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-060);--post-scheme-color-interactive-primary-disabled-fg4:var(--post-scheme-color-interactive-primary-disabled-fg4-light, var(--post-core-color-sandgrey-alpha-lightsand-60));--post-scheme-color-interactive-primary-disabled-stroke4-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-060);--post-scheme-color-interactive-primary-disabled-stroke4:var(--post-scheme-color-interactive-primary-disabled-stroke4-light, var(--post-core-color-sandgrey-alpha-lightsand-60));--post-scheme-color-interactive-primary-disabled-bg6-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-primary-disabled-bg6:var(--post-scheme-color-interactive-primary-disabled-bg6-light, var(--post-core-color-colorless));--post-scheme-color-interactive-primary-selected-bg1-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-primary-selected-bg1:var(--post-scheme-color-interactive-primary-selected-bg1-light, var(--post-core-color-sandgrey-100));--post-scheme-color-interactive-primary-selected-fg1-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-scheme-color-interactive-primary-selected-fg1:var(--post-scheme-color-interactive-primary-selected-fg1-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-primary-selected-stroke1-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-scheme-color-interactive-primary-selected-stroke1:var(--post-scheme-color-interactive-primary-selected-stroke1-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-primary-selected-fg3-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-primary-selected-fg3:var(--post-scheme-color-interactive-primary-selected-fg3-light, var(--post-core-color-sandgrey-100));--post-scheme-color-interactive-primary-selected-bg2-light:var(--post-fallback-prefers-light) var(--post-core-color-notification-green);--post-scheme-color-interactive-primary-selected-bg2:var(--post-scheme-color-interactive-primary-selected-bg2-light, var(--post-core-color-notification-green-light));--post-scheme-color-interactive-primary-selected-stroke4-light:var(--post-fallback-prefers-light) var(--post-core-color-notification-green);--post-scheme-color-interactive-primary-selected-stroke4:var(--post-scheme-color-interactive-primary-selected-stroke4-light, var(--post-core-color-notification-green-light));--post-scheme-color-interactive-primary-selected-stroke3-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-primary-selected-stroke3:var(--post-scheme-color-interactive-primary-selected-stroke3-light, var(--post-core-color-sandgrey-100));--post-scheme-color-interactive-primary-selected-bg4-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-scheme-color-interactive-primary-selected-bg4:var(--post-scheme-color-interactive-primary-selected-bg4-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-primary-selected-bg3-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-postyellow);--post-scheme-color-interactive-primary-selected-bg3:var(--post-scheme-color-interactive-primary-selected-bg3-light, var(--post-core-color-brand-postyellow));--post-scheme-color-interactive-notification-info-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-scheme-color-interactive-notification-info-fg:var(--post-scheme-color-interactive-notification-info-fg-light, var(--post-core-color-sandgrey-100));--post-scheme-color-interactive-notification-info-bg-light:var(--post-fallback-prefers-light) var(--post-scheme-color-signal-information-light);--post-scheme-color-interactive-notification-info-bg:var(--post-scheme-color-interactive-notification-info-bg-light, var(--post-scheme-color-signal-information-light));--post-scheme-color-interactive-notification-info-icon-light:var(--post-fallback-prefers-light) var(--post-scheme-color-signal-information-dark);--post-scheme-color-interactive-notification-info-icon:var(--post-scheme-color-interactive-notification-info-icon-light, var(--post-scheme-color-signal-information-dark));--post-scheme-color-interactive-notification-info-stroke-light:var(--post-fallback-prefers-light) var(--post-scheme-color-signal-information-dark);--post-scheme-color-interactive-notification-info-stroke:var(--post-scheme-color-interactive-notification-info-stroke-light, var(--post-scheme-color-signal-information-dark));--post-scheme-color-interactive-notification-success-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-scheme-color-interactive-notification-success-fg:var(--post-scheme-color-interactive-notification-success-fg-light, var(--post-core-color-sandgrey-100));--post-scheme-color-interactive-notification-success-bg-light:var(--post-fallback-prefers-light) var(--post-scheme-color-signal-success-light);--post-scheme-color-interactive-notification-success-bg:var(--post-scheme-color-interactive-notification-success-bg-light, var(--post-scheme-color-signal-success-light));--post-scheme-color-interactive-notification-success-icon-light:var(--post-fallback-prefers-light) var(--post-scheme-color-signal-success-dark);--post-scheme-color-interactive-notification-success-icon:var(--post-scheme-color-interactive-notification-success-icon-light, var(--post-scheme-color-signal-success-dark));--post-scheme-color-interactive-notification-success-stroke-light:var(--post-fallback-prefers-light) var(--post-scheme-color-signal-success-dark);--post-scheme-color-interactive-notification-success-stroke:var(--post-scheme-color-interactive-notification-success-stroke-light, var(--post-scheme-color-signal-success-dark));--post-scheme-color-interactive-notification-warning-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-scheme-color-interactive-notification-warning-fg:var(--post-scheme-color-interactive-notification-warning-fg-light, var(--post-core-color-sandgrey-100));--post-scheme-color-interactive-notification-warning-bg-light:var(--post-fallback-prefers-light) var(--post-scheme-color-signal-warning-light);--post-scheme-color-interactive-notification-warning-bg:var(--post-scheme-color-interactive-notification-warning-bg-light, var(--post-scheme-color-signal-warning-light));--post-scheme-color-interactive-notification-warning-icon-light:var(--post-fallback-prefers-light) var(--post-scheme-color-signal-warning-dark);--post-scheme-color-interactive-notification-warning-icon:var(--post-scheme-color-interactive-notification-warning-icon-light, var(--post-scheme-color-signal-warning-dark));--post-scheme-color-interactive-notification-warning-stroke-light:var(--post-fallback-prefers-light) var(--post-scheme-color-signal-warning-dark);--post-scheme-color-interactive-notification-warning-stroke:var(--post-scheme-color-interactive-notification-warning-stroke-light, var(--post-scheme-color-signal-warning-dark));--post-scheme-color-interactive-notification-error-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-scheme-color-interactive-notification-error-fg:var(--post-scheme-color-interactive-notification-error-fg-light, var(--post-core-color-sandgrey-100));--post-scheme-color-interactive-notification-error-bg-light:var(--post-fallback-prefers-light) var(--post-scheme-color-signal-error-light);--post-scheme-color-interactive-notification-error-bg:var(--post-scheme-color-interactive-notification-error-bg-light, var(--post-scheme-color-signal-error-light));--post-scheme-color-interactive-notification-error-icon-light:var(--post-fallback-prefers-light) var(--post-scheme-color-signal-error-dark);--post-scheme-color-interactive-notification-error-icon:var(--post-scheme-color-interactive-notification-error-icon-light, var(--post-scheme-color-signal-error-dark));--post-scheme-color-interactive-notification-error-stroke-light:var(--post-fallback-prefers-light) var(--post-scheme-color-signal-error-dark);--post-scheme-color-interactive-notification-error-stroke:var(--post-scheme-color-interactive-notification-error-stroke-light, var(--post-scheme-color-signal-error-dark));--post-scheme-color-interactive-input-enabled-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-input-enabled-bg:var(--post-scheme-color-interactive-input-enabled-bg-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-input-enabled-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-scheme-color-interactive-input-enabled-fg:var(--post-scheme-color-interactive-input-enabled-fg-light, var(--post-core-color-sandgrey-100));--post-scheme-color-interactive-input-enabled-border-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-scheme-color-interactive-input-enabled-border:var(--post-scheme-color-interactive-input-enabled-border-light, var(--post-core-color-sandgrey-100));--post-scheme-color-interactive-input-hover-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-interactive-input-hover-bg:var(--post-scheme-color-interactive-input-hover-bg-light, var(--post-core-color-brand-white));--post-scheme-color-interactive-input-hover-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-070);--post-scheme-color-interactive-input-hover-fg:var(--post-scheme-color-interactive-input-hover-fg-light, var(--post-core-color-sandgrey-070));--post-scheme-color-interactive-input-hover-border-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-070);--post-scheme-color-interactive-input-hover-border:var(--post-scheme-color-interactive-input-hover-border-light, var(--post-core-color-sandgrey-070));--post-scheme-color-interactive-input-disabled-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-colorless);--post-scheme-color-interactive-input-disabled-bg:var(--post-scheme-color-interactive-input-disabled-bg-light, var(--post-core-color-colorless));--post-scheme-color-interactive-input-disabled-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-060);--post-scheme-color-interactive-input-disabled-fg:var(--post-scheme-color-interactive-input-disabled-fg-light, var(--post-core-color-sandgrey-alpha-lightsand-60));--post-scheme-color-interactive-input-disabled-border-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-060);--post-scheme-color-interactive-input-disabled-border:var(--post-scheme-color-interactive-input-disabled-border-light, var(--post-core-color-sandgrey-alpha-lightsand-60));--post-scheme-color-interactive-card-hover-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-020);--post-scheme-color-interactive-card-hover-bg:var(--post-scheme-color-interactive-card-hover-bg-light, var(--post-core-color-sandgrey-020));--post-scheme-color-interactive-card-hover-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-scheme-color-interactive-card-hover-fg:var(--post-scheme-color-interactive-card-hover-fg-light, var(--post-core-color-sandgrey-100));--post-scheme-color-interactive-tabs-selected-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-scheme-color-interactive-tabs-selected-fg:var(--post-scheme-color-interactive-tabs-selected-fg-light, var(--post-core-color-sandgrey-100));--post-scheme-color-interactive-tabs-disabled-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-060);--post-scheme-color-interactive-tabs-disabled-fg:var(--post-scheme-color-interactive-tabs-disabled-fg-light, var(--post-core-color-sandgrey-060));--post-scheme-color-interactive-tabs-disabled-stroke-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-060);--post-scheme-color-interactive-tabs-disabled-stroke:var(--post-scheme-color-interactive-tabs-disabled-stroke-light, var(--post-core-color-sandgrey-060));--post-scheme-color-interactive-tabs-selected-hovered-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-070);--post-scheme-color-interactive-tabs-selected-hovered-fg:var(--post-scheme-color-interactive-tabs-selected-hovered-fg-light, var(--post-core-color-sandgrey-070));--post-scheme-color-interactive-tabs-selected-hovered-stroke-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-070);--post-scheme-color-interactive-tabs-selected-hovered-stroke:var(--post-scheme-color-interactive-tabs-selected-hovered-stroke-light, var(--post-core-color-sandgrey-002));--post-scheme-color-surface-default-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-002);--post-scheme-color-surface-default-bg:var(--post-scheme-color-surface-default-bg-light, var(--post-core-color-sandgrey-080));--post-scheme-color-surface-default-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-scheme-color-surface-default-fg:var(--post-scheme-color-surface-default-fg-light, var(--post-core-color-brand-white));--post-scheme-color-surface-default-stroke-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-scheme-color-surface-default-stroke:var(--post-scheme-color-surface-default-stroke-light, var(--post-core-color-brand-white));--post-scheme-color-surface-accent1-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-surface-accent1-bg:var(--post-scheme-color-surface-accent1-bg-light, var(--post-core-color-sandgrey-100));--post-scheme-color-surface-accent1-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-scheme-color-surface-accent1-fg:var(--post-scheme-color-surface-accent1-fg-light, var(--post-core-color-brand-white));--post-scheme-color-surface-alternate-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-006);--post-scheme-color-surface-alternate-bg:var(--post-scheme-color-surface-alternate-bg-light, var(--post-core-color-sandgrey-100));--post-scheme-color-surface-alternate-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-scheme-color-surface-alternate-fg:var(--post-scheme-color-surface-alternate-fg-light, var(--post-core-color-brand-white));--post-scheme-color-surface-alternate-secondary-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-surface-alternate-secondary-bg:var(--post-scheme-color-surface-alternate-secondary-bg-light, var(--post-core-color-brand-white));--post-scheme-color-surface-brand-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-postyellow);--post-scheme-color-surface-brand-bg:var(--post-scheme-color-surface-brand-bg-light, var(--post-core-color-brand-postyellow));--post-scheme-color-surface-brand-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-scheme-color-surface-brand-fg:var(--post-scheme-color-surface-brand-fg-light, var(--post-core-color-sandgrey-100));--post-scheme-color-surface-brand-fg-accent-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-scheme-color-surface-brand-fg-accent:var(--post-scheme-color-surface-brand-fg-accent-light, var(--post-core-color-sandgrey-100));--post-scheme-color-surface-brand-secondary-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-surface-brand-secondary-bg:var(--post-scheme-color-surface-brand-secondary-bg-light, var(--post-core-color-brand-white));--post-scheme-color-surface-accent-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-080);--post-scheme-color-surface-accent-bg:var(--post-scheme-color-surface-accent-bg-light, var(--post-core-color-sandgrey-002));--post-scheme-color-surface-accent-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-surface-accent-fg:var(--post-scheme-color-surface-accent-fg-light, var(--post-core-color-sandgrey-100));--post-scheme-color-surface-accent-fg-accent-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-postyellow);--post-scheme-color-surface-accent-fg-accent:var(--post-scheme-color-surface-accent-fg-accent-light, var(--post-core-color-sandgrey-100));--post-scheme-color-badge-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-notification-red);--post-scheme-color-badge-bg:var(--post-scheme-color-badge-bg-light, var(--post-core-color-notification-red));--post-scheme-color-badge-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-badge-fg:var(--post-scheme-color-badge-fg-light, var(--post-core-color-brand-white));--post-scheme-color-badge-stroke-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-scheme-color-badge-stroke:var(--post-scheme-color-badge-stroke-light, var(--post-core-color-brand-white));--post-scheme-color-popover-hover-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-020);--post-scheme-color-popover-hover:var(--post-scheme-color-popover-hover-light, var(--post-core-color-sandgrey-020));--post-scheme-color-divider-border-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-060);--post-scheme-color-divider-border:var(--post-scheme-color-divider-border-light, var(--post-core-color-sandgrey-050));--post-scheme-color-backdrop-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-alpha-darksand-80);--post-scheme-color-backdrop-bg:var(--post-scheme-color-backdrop-bg-light, var(--post-core-color-sandgrey-alpha-darksand-80));--post-scheme-color-datepicker-header-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-012);--post-scheme-color-datepicker-header-bg:var(--post-scheme-color-datepicker-header-bg-light, var(--post-core-color-sandgrey-070));--post-cargo-scheme-color-surface-default-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-002);--post-cargo-scheme-color-surface-default-bg:var(--post-cargo-scheme-color-surface-default-bg-light, var(--post-core-color-sandgrey-080));--post-cargo-scheme-color-surface-default-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-cargo-scheme-color-surface-default-fg:var(--post-cargo-scheme-color-surface-default-fg-light, var(--post-core-color-brand-white));--post-cargo-scheme-color-surface-default-stroke-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-cargo-scheme-color-surface-default-stroke:var(--post-cargo-scheme-color-surface-default-stroke-light, var(--post-core-color-brand-white));--post-cargo-scheme-color-surface-accent1-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-cargo-scheme-color-surface-accent1-bg:var(--post-cargo-scheme-color-surface-accent1-bg-light, var(--post-core-color-sandgrey-100));--post-cargo-scheme-color-surface-accent1-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-cargo-scheme-color-surface-accent1-fg:var(--post-cargo-scheme-color-surface-accent1-fg-light, var(--post-core-color-brand-white));--post-cargo-scheme-color-surface-alternate-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-006);--post-cargo-scheme-color-surface-alternate-bg:var(--post-cargo-scheme-color-surface-alternate-bg-light, var(--post-core-color-sandgrey-100));--post-cargo-scheme-color-surface-alternate-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-cargo-scheme-color-surface-alternate-fg:var(--post-cargo-scheme-color-surface-alternate-fg-light, var(--post-core-color-brand-white));--post-cargo-scheme-color-surface-brand-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-cargo-green);--post-cargo-scheme-color-surface-brand-bg:var(--post-cargo-scheme-color-surface-brand-bg-light, var(--post-core-color-cargo-green));--post-cargo-scheme-color-surface-brand-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-cargo-scheme-color-surface-brand-fg:var(--post-cargo-scheme-color-surface-brand-fg-light, var(--post-core-color-brand-white));--post-cargo-scheme-color-surface-brand-fg-accent-light:var(--post-fallback-prefers-light) var(--post-core-color-cargo-blue);--post-cargo-scheme-color-surface-brand-fg-accent:var(--post-cargo-scheme-color-surface-brand-fg-accent-light, var(--post-core-color-cargo-blue));--post-cargo-scheme-color-surface-brand-secondary-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-cargo-scheme-color-surface-brand-secondary-bg:var(--post-cargo-scheme-color-surface-brand-secondary-bg-light, var(--post-core-color-brand-white));--post-cargo-scheme-color-surface-accent-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-cargo-blue);--post-cargo-scheme-color-surface-accent-bg:var(--post-cargo-scheme-color-surface-accent-bg-light, var(--post-core-color-cargo-blue));--post-cargo-scheme-color-surface-accent-fg-light:var(--post-fallback-prefers-light) var(--post-core-color-sandgrey-100);--post-cargo-scheme-color-surface-accent-fg:var(--post-cargo-scheme-color-surface-accent-fg-light, var(--post-core-color-sandgrey-100));--post-cargo-scheme-color-surface-accent-fg-accent-light:var(--post-fallback-prefers-light) var(--post-core-color-cargo-green);--post-cargo-scheme-color-surface-accent-fg-accent:var(--post-cargo-scheme-color-surface-accent-fg-accent-light, var(--post-core-color-cargo-green));--post-cargo-scheme-color-surface-accent-secondary-bg-light:var(--post-fallback-prefers-light) var(--post-core-color-brand-white);--post-cargo-scheme-color-surface-accent-secondary-bg:var(--post-cargo-scheme-color-surface-accent-secondary-bg-light, var(--post-core-color-brand-white))}}*{box-sizing:border-box}:host{display:contents}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.popover-container{color:var(--post-current-fg);background-color:var(--post-current-bg);display:flex;align-items:self-start;padding:8px;max-width:var(--post-popover-max-width, 280px);max-height:100%;overflow-y:auto;overscroll-behavior:contain}.popover-content{padding:8px;flex-grow:1}@supports (color: light-dark(black, white)){post-closebutton{color-scheme:light}}@supports not (color: light-dark(black, white)){post-closebutton{}}post-popovercontainer::part(post-popovercontainer-content){min-width:160px}";export{h as post_popover}
@@ -1 +1 @@
1
- import{r as t,h as e,H as o,a as i}from"./p-BjziJWh2.js";import{v as r}from"./p-T8T3po4z.js";const s=["a","button","input","select","textarea","label","fieldset","optgroup","option"].join(","),n=["a","label[for]",'input[type="checkbox"]','input[type="radio"]'].join(",");function a(t){const e=t.closest("fieldset");return!(!e||!e.disabled)||"disabled"in t&&Boolean(t.disabled)}const c=class{constructor(e){t(this,e)}getDirectTarget(t){for(const e of t.composedPath()){if(e instanceof HTMLSlotElement)break;if(e===this.host)break;if(e instanceof HTMLElement&&e.matches(s))return e}return null}getDelegateTarget(){return this.host.querySelector(n)}dispatchClick(t){const e=this.getDirectTarget(t);if(e&&!a(e))return;const o=this.getDelegateTarget();if(!o||a(o))return;const{ctrlKey:i,shiftKey:r,altKey:s,metaKey:n,button:c}=t;o.dispatchEvent(new MouseEvent("click",{cancelable:!0,bubbles:!0,ctrlKey:i,shiftKey:r,altKey:s,metaKey:n,button:c}))}render(){return e(o,{key:"a187468c97584b393efb0f73966716947243fe1f","data-version":r,onClick:t=>this.dispatchClick(t)},e("slot",{key:"a374c748871f36acf8ceda423c121645e97a6ce1"}))}get host(){return i(this)}};c.style=":host{display:block;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-within){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-within){outline-color:Highlight !important}}";export{c as post_linkarea}
1
+ import{r as t,h as e,H as o,a as i}from"./p-D0jX3Fts.js";import{v as s}from"./p-BdiQsTQm.js";const r=["a","button","input","select","textarea","label","fieldset","optgroup","option"].join(","),n=["a","label[for]",'input[type="checkbox"]','input[type="radio"]'].join(",");function a(t){const e=t.closest("fieldset");return!(!e||!e.disabled)||"disabled"in t&&Boolean(t.disabled)}const c=class{constructor(e){t(this,e)}getDirectTarget(t){for(const e of t.composedPath()){if(e instanceof HTMLSlotElement)break;if(e===this.host)break;if(e instanceof HTMLElement&&e.matches(r))return e}return null}getDelegateTarget(){return this.host.querySelector(n)}dispatchClick(t){const e=this.getDirectTarget(t);if(e&&!a(e))return;const o=this.getDelegateTarget();if(!o||a(o))return;const{ctrlKey:i,shiftKey:s,altKey:r,metaKey:n,button:c}=t;o.dispatchEvent(new MouseEvent("click",{cancelable:!0,bubbles:!0,ctrlKey:i,shiftKey:s,altKey:r,metaKey:n,button:c}))}render(){return e(o,{key:"a187468c97584b393efb0f73966716947243fe1f","data-version":s,onClick:t=>this.dispatchClick(t)},e("slot",{key:"a374c748871f36acf8ceda423c121645e97a6ce1"}))}get host(){return i(this)}};c.style=":host{display:block;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-within){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-within){outline-color:Highlight !important}}";export{c as post_linkarea}
@@ -1 +1 @@
1
- import{r as e,h as t,H as i,a as s}from"./p-BjziJWh2.js";import"./p-I1j7a0bW.js";import{v as r}from"./p-T8T3po4z.js";import{R as n}from"./p-DlKbBdcP.js";import{T as a}from"./p-9S_5_Zh8.js";import{P as d}from"./p-BoYe-VVx.js";import"./p-DgnQe03V.js";var p=function(e,t,i,s){var r,n=arguments.length,a=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,s);else for(var d=e.length-1;d>=0;d--)(r=e[d])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};const c=class{constructor(t){e(this,t),this.currentIndex=-1}validateCurrentIndex(){this.stepItems&&(this.updateSteps(),this.checkIndexes())}validateSelectedIndex(){void 0===this.selectedIndex?this.selectedIndex=this.currentIndex:this.checkIndexes(),this.updateSteps()}updateActiveStepNumber(){this.textStepNumber&&(this.mobileActiveStepLabel=this.textStepNumber.replaceAll("{number}",`${this.selectedIndex+1}`),this.stepItems&&this.updateMobileActiveStepVisibility())}componentDidLoad(){setTimeout((()=>{this.validateCurrentIndex(),this.validateSelectedIndex()}))}checkIndexes(){this.selectedIndex>this.currentIndex&&console.error("The selected-index cannot be higher than the current-index, as only the current and completed steps can be selected.")}updateSteps(){this.stepItems=this.host.querySelectorAll("post-stepper-item"),!this.stepItems||this.stepItems.length<3?console.error("The post-stepper component should have at least three steps."):(this.updateActiveStepNumber(),this.stepItems.forEach(((e,t)=>{e.style.setProperty("--step-number",`"${t+1}"`),this.selectedIndex===t&&(this.mobileActiveStepName=e.innerHTML),e.classList.toggle("stepper-item-completed",this.currentIndex>t),e.classList.toggle("stepper-item-current",this.currentIndex===t),e.classList.toggle("stepper-item-selected",this.selectedIndex===t),e.classList.toggle("stepper-item-inactive",this.currentIndex<t),e.classList.toggle("stepper-item-after-current",t===this.currentIndex+1);const i=e.shadowRoot?.querySelector(".step-hidden-label");if(i){let e="";this.currentIndex>t&&(e=`${this.textCompletedStep}: `),this.selectedIndex===t&&(e=`${e}${this.textCurrentStep}: `),i.textContent=e}this.selectedIndex===t?(e.setAttribute("aria-current","step"),e.setAttribute("aria-live","polite")):(e.removeAttribute("aria-current"),e.removeAttribute("aria-live"))})),this.updateMobileActiveStepVisibility())}updateMobileActiveStepVisibility(){(this.selectedIndex>=this.stepItems.length||this.selectedIndex<0)&&(this.mobileActiveStepLabel="",this.mobileActiveStepName="")}render(){return t(i,{key:"e6d1f0498cb3de68badef6428cfe8fdff73b879b","data-version":r},t("ol",{key:"4c10c32d36eaeeb19712f7d99dcba7d5337d89a1"},t("slot",{key:"ced502f01025f44c09747299cf60c82ebcd905da",onSlotchange:()=>this.updateSteps()})),t("div",{key:"93cfc9fbd328d4a384c56ccf1f884053643f88e6",class:"active-step","aria-hidden":"true"},t("span",{key:"076fad4efc393852d024157011a0e86d90ecfe99",class:"active-step-label"},this.mobileActiveStepLabel),t("span",{key:"814817862389cd55859aec49205fae255cbbf1d7",innerHTML:this.mobileActiveStepName})))}get host(){return s(this)}static get watchers(){return{currentIndex:[{validateCurrentIndex:0}],selectedIndex:[{validateSelectedIndex:0}],textStepNumber:[{updateActiveStepNumber:0}]}}};p([n(),a("string")],c.prototype,"textCurrentStep",void 0),p([n(),a("string")],c.prototype,"textCompletedStep",void 0),p([n(),d(/\{number\}/)],c.prototype,"textStepNumber",void 0),p([n(),a("number")],c.prototype,"currentIndex",void 0),p([a("number")],c.prototype,"selectedIndex",void 0),c.style="ol{margin-block:0;padding-inline-start:0;list-style:none;counter-reset:step-index;display:grid;position:relative;overflow:hidden;grid-template-columns:20px;grid-auto-columns:minmax(0, 1fr);padding-inline-end:20px}@media screen and (max-width: 779.98px){ol{display:flex;padding-inline-end:0}}.active-step{font-size:var(--post-device-font-size-7);font-weight:var(--post-device-font-weight-bold);color:var(--post-scheme-color-interactive-primary-enabled-fg1)}.active-step .active-step-label:has(+span:empty){visibility:hidden}@media screen and (min-width: 780px){.active-step{display:none}}";export{c as post_stepper}
1
+ import{r as e,h as t,H as i,a as s}from"./p-D0jX3Fts.js";import"./p-I1j7a0bW.js";import{v as r}from"./p-BdiQsTQm.js";import{R as a}from"./p-D6mVqZLg.js";import{T as n}from"./p-CP3LjuFR.js";import{P as d}from"./p-VPHnF9fB.js";import"./p-DSaWK_q-.js";var p=function(e,t,i,s){var r,a=arguments.length,n=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,s);else for(var d=e.length-1;d>=0;d--)(r=e[d])&&(n=(a<3?r(n):a>3?r(t,i,n):r(t,i))||n);return a>3&&n&&Object.defineProperty(t,i,n),n};const c=class{constructor(t){e(this,t),this.currentIndex=-1}validateCurrentIndex(){this.stepItems&&(this.updateSteps(),this.checkIndexes())}validateSelectedIndex(){void 0===this.selectedIndex?this.selectedIndex=this.currentIndex:this.checkIndexes(),this.updateSteps()}updateActiveStepNumber(){this.textStepNumber&&(this.mobileActiveStepLabel=this.textStepNumber.replaceAll("{number}",`${this.selectedIndex+1}`),this.stepItems&&this.updateMobileActiveStepVisibility())}componentDidLoad(){setTimeout((()=>{this.validateCurrentIndex(),this.validateSelectedIndex()}))}checkIndexes(){this.selectedIndex>this.currentIndex&&console.error("The selected-index cannot be higher than the current-index, as only the current and completed steps can be selected.")}updateSteps(){this.stepItems=this.host.querySelectorAll("post-stepper-item"),!this.stepItems||this.stepItems.length<3?console.error("The post-stepper component should have at least three steps."):(this.updateActiveStepNumber(),this.stepItems.forEach(((e,t)=>{e.style.setProperty("--step-number",`"${t+1}"`),this.selectedIndex===t&&(this.mobileActiveStepName=e.innerHTML),e.classList.toggle("stepper-item-completed",this.currentIndex>t),e.classList.toggle("stepper-item-current",this.currentIndex===t),e.classList.toggle("stepper-item-selected",this.selectedIndex===t),e.classList.toggle("stepper-item-inactive",this.currentIndex<t),e.classList.toggle("stepper-item-after-current",t===this.currentIndex+1);const i=e.shadowRoot?.querySelector(".step-hidden-label");if(i){let e="";this.currentIndex>t&&(e=`${this.textCompletedStep}: `),this.selectedIndex===t&&(e=`${e}${this.textCurrentStep}: `),i.textContent=e}this.selectedIndex===t?(e.setAttribute("aria-current","step"),e.setAttribute("aria-live","polite")):(e.removeAttribute("aria-current"),e.removeAttribute("aria-live"))})),this.updateMobileActiveStepVisibility())}updateMobileActiveStepVisibility(){(this.selectedIndex>=this.stepItems.length||this.selectedIndex<0)&&(this.mobileActiveStepLabel="",this.mobileActiveStepName="")}render(){return t(i,{key:"e6d1f0498cb3de68badef6428cfe8fdff73b879b","data-version":r},t("ol",{key:"4c10c32d36eaeeb19712f7d99dcba7d5337d89a1"},t("slot",{key:"ced502f01025f44c09747299cf60c82ebcd905da",onSlotchange:()=>this.updateSteps()})),t("div",{key:"93cfc9fbd328d4a384c56ccf1f884053643f88e6",class:"active-step","aria-hidden":"true"},t("span",{key:"076fad4efc393852d024157011a0e86d90ecfe99",class:"active-step-label"},this.mobileActiveStepLabel),t("span",{key:"814817862389cd55859aec49205fae255cbbf1d7",innerHTML:this.mobileActiveStepName})))}get host(){return s(this)}static get watchers(){return{currentIndex:[{validateCurrentIndex:0}],selectedIndex:[{validateSelectedIndex:0}],textStepNumber:[{updateActiveStepNumber:0}]}}};p([a(),n("string")],c.prototype,"textCurrentStep",void 0),p([a(),n("string")],c.prototype,"textCompletedStep",void 0),p([a(),d(/\{number\}/)],c.prototype,"textStepNumber",void 0),p([a(),n("number")],c.prototype,"currentIndex",void 0),p([n("number")],c.prototype,"selectedIndex",void 0),c.style="ol{margin-block:0;padding-inline-start:0;list-style:none;counter-reset:step-index;display:grid;position:relative;overflow:hidden;grid-template-columns:20px;grid-auto-columns:minmax(0, 1fr);padding-inline-end:20px}@media screen and (max-width: 779.98px){ol{display:flex;padding-inline-end:0}}.active-step{font-size:var(--post-device-font-size-7);font-weight:var(--post-device-font-weight-bold);color:var(--post-scheme-color-interactive-primary-enabled-fg1)}.active-step .active-step-label:has(+span:empty){visibility:hidden}@media screen and (min-width: 780px){.active-step{display:none}}";export{c as post_stepper}
@@ -0,0 +1 @@
1
+ import{r as t,h as e,H as o,a as i,c as n}from"./p-D0jX3Fts.js";import{b as r}from"./p-I1j7a0bW.js";import{f as s,E as a}from"./p-BEcxHjuM.js";import{v as c}from"./p-BdiQsTQm.js";import{O as l}from"./p-BCPv4bcY.js";import{R as d}from"./p-D6mVqZLg.js";import{f as h}from"./p-D5knoiyy.js";import{g as p,a as u}from"./p-DYYpZAAV.js";import{t as b}from"./p-bR8vy6-s.js";import{T as f}from"./p-CP3LjuFR.js";import{n as m}from"./p-8LXe8Zt_.js";import{P as v}from"./p-VPHnF9fB.js";import{U as g}from"./p-gv9b-Z15.js";import{r as w}from"./p-CoDiS_Ik.js";import{f as y}from"./p-BVCjnh6Q.js";import{P as x}from"./p-DRiVosES.js";import{g as k}from"./p-08F-DB-d.js";import{i as z}from"./p-BWwWKRO5.js";import"./p-DSaWK_q-.js";const H=[{predicate:t=>"post-banner"===t.localName,close:t=>{t.dismiss()}},{predicate:t=>"post-popover"===t.localName,close:t=>{t.hide()}},{predicate:t=>"post-popovercontainer"===t.localName,close:t=>{t.hide()}},{predicate:t=>"post-collapsible"===t.localName,close:t=>{t.toggle(!1)}},{predicate:t=>"post-accordion-item"===t.localName,close:t=>{t.toggle(!1)}},{predicate:t=>"dialog"===t.localName,close:t=>t.close()},{predicate:t=>t.hasAttribute("popover"),close:t=>t.togglePopover(!1)}];var T=function(t,e,o,i){var n,r=arguments.length,s=r<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 a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};const S=class{constructor(e){t(this,e),e.$hostElement$["s-ei"]?this.internals=e.$hostElement$["s-ei"]:(this.internals=e.$hostElement$.attachInternals(),e.$hostElement$["s-ei"]=this.internals),this.buttonType="button",this.placement="auto",this.size="default",this.handleClick=()=>{const t=function(t){const e=s(t,(t=>H.some((e=>e.predicate(t)))));if(!e)return null;const o=H.find((t=>t.predicate(e)));return{element:e,close:()=>o.close(e)}}(this.host);t?.close()}}componentDidLoad(){globalThis.MutationObserver&&(this.mutationObserver=new MutationObserver(this.checkContent.bind(this)),this.mutationObserver.observe(this.host,{childList:!0})),this.checkContent()}disconnectedCallback(){this.mutationObserver&&this.mutationObserver.disconnect()}checkContent(){const t=this.visuallyHidden.querySelector("slot"),e=t?.assignedNodes({flatten:!0}).some((t=>t.textContent?.trim()));e||console.error(`The \`${this.host.localName}\` component requires content for accessibility.`)}render(){return e(o,{key:"b8e2214b904f5167fa3753aab947418891236fcf","data-version":c},e("button",{key:"224ca42d3be187062ba9717e4a534ff34eeafaf7",type:this.buttonType,class:"btn btn-icon btn-secondary btn-sm",onClick:this.handleClick},e("post-icon",{key:"5b289691599d6f9a3bb0fa7a28c71eecd1f5aee7","aria-hidden":"true",name:"closex"}),e("span",{key:"e22045f15b3dc8b8b228eb4282114e10db68b186",ref:t=>this.visuallyHidden=t,class:"visually-hidden"},e("slot",{key:"e492390c995a993ffc8988a1c90a41e59fbe39f5"}))))}static get formAssociated(){return!0}get host(){return i(this)}};T([l(["button","reset"])],S.prototype,"buttonType",void 0),T([d(),l(["manual","auto"])],S.prototype,"placement",void 0),T([d(),l(["default","small"])],S.prototype,"size",void 0),S.style=".btn{display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;white-space:normal;overflow-wrap:anywhere;text-wrap:pretty;text-align:center;min-height:var(--post-device-sizing-interactive-button-height-1);gap:var(--post-device-spacing-gap-inline-10);padding:0 var(--post-device-spacing-padding-inline-6);border-radius:calc(var(--post-device-sizing-interactive-button-height-1) / 2)}.btn:not(:disabled):hover{text-decoration:none}.btn:disabled{border-style:var(--post-core-border-style-dash);cursor:unset}.btn{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}.btn: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){.btn:focus-visible{outline-color:Highlight !important}}.pretend-focus.btn{outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.pretend-focus.btn{outline-color:Highlight !important}}.btn:has(: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){.btn:has(:focus-visible){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn: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){.btn:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn{border-width:1px !important;transition:none}.btn:is(button){background-color:ButtonFace !important;border-color:ButtonBorder !important}}.btn>post-icon{width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4);flex-shrink:0}.btn-primary{box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-primary-enabled-stroke);color:var(--post-scheme-color-interactive-button-primary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-primary-enabled-bg)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-primary:not(:disabled,.disabled):not(a.btn-tertiary.px-0):hover{background-color:Highlight !important}.btn-primary:not(:disabled,.disabled):not(a.btn-tertiary.px-0):hover>post-icon{color:HighlightText !important}}.btn-primary:disabled{border-color:var(--post-scheme-color-interactive-button-primary-disabled-stroke);color:var(--post-scheme-color-interactive-button-primary-disabled-fg);background-color:var(--post-scheme-color-interactive-button-primary-disabled-bg)}.btn-primary:not(:disabled):hover,.btn-primary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-primary-hover-stroke);color:var(--post-scheme-color-interactive-button-primary-hover-fg);background-color:var(--post-scheme-color-interactive-button-primary-hover-bg)}.btn-default{box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-secondary-enabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-default:not(:disabled,.disabled):not(a.btn-tertiary.px-0):hover{background-color:Highlight !important}.btn-default:not(:disabled,.disabled):not(a.btn-tertiary.px-0):hover>post-icon{color:HighlightText !important}}.btn-default:disabled{border-color:var(--post-scheme-color-interactive-button-secondary-disabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-disabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-disabled-bg)}.btn-default:not(:disabled):hover,.btn-default.pretend-hover{border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke);color:var(--post-scheme-color-interactive-button-secondary-hover-fg);background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg)}.btn-secondary{box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-secondary-enabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-secondary:not(:disabled,.disabled):not(a.btn-tertiary.px-0):hover{background-color:Highlight !important}.btn-secondary:not(:disabled,.disabled):not(a.btn-tertiary.px-0):hover>post-icon{color:HighlightText !important}}.btn-secondary:disabled{border-color:var(--post-scheme-color-interactive-button-secondary-disabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-disabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-disabled-bg)}.btn-secondary:not(:disabled):hover,.btn-secondary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke);color:var(--post-scheme-color-interactive-button-secondary-hover-fg);background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg)}.btn-tertiary{border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-tertiary:not(:disabled,.disabled):not(a.btn-tertiary.px-0):hover{background-color:Highlight !important}.btn-tertiary:not(:disabled,.disabled):not(a.btn-tertiary.px-0):hover>post-icon{color:HighlightText !important}}.btn-tertiary:disabled{border-color:var(--post-scheme-color-interactive-button-tertiary-disabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-disabled-bg)}.btn-tertiary:not(:disabled):hover,.btn-tertiary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg)}.btn-link{border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-link:disabled,.btn-link.disabled{text-decoration:none}}.btn-link:disabled{border-color:var(--post-scheme-color-interactive-button-tertiary-disabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg)}.btn-link:not(:disabled):hover,.btn-link.pretend-hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}.btn-sm{min-height:var(--post-device-sizing-interactive-button-height-4);gap:var(--post-device-spacing-gap-inline-11);padding:0 var(--post-device-spacing-padding-inline-7);border-radius:calc(var(--post-device-sizing-interactive-button-height-4) / 2)}.btn-sm>post-icon{width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5);flex-shrink:0}.btn-lg{min-height:var(--post-device-sizing-interactive-button-height-2);gap:var(--post-device-spacing-gap-inline-1);padding:0 var(--post-device-spacing-padding-inline-5);border-radius:calc(var(--post-device-sizing-interactive-button-height-2) / 2)}.btn-lg>post-icon{width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3);flex-shrink:0}.btn-link{-webkit-text-decoration:var(--post-core-text-decoration-underline);text-decoration:var(--post-core-text-decoration-underline);border:0 none;border-radius:0;min-height:0;font-size:inherit;font-weight:inherit;padding:0}.btn-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}.btn-link:focus-visible{outline-style:var(--post-core-border-style-solid) !important;border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-link:focus-visible{outline-color:Highlight !important}}.btn-link.pretend-focus{outline-style:var(--post-core-border-style-solid) !important;border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-link.pretend-focus{outline-color:Highlight !important}}.btn-link:has(:focus-visible){outline-style:var(--post-core-border-style-solid) !important;border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-link:has(:focus-visible){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn-link:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-link:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.btn-link:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}.btn-link:disabled{color:var(--post-scheme-color-interactive-primary-disabled-fg1);text-decoration-style:var(--post-core-border-style-dash)}.btn-icon{padding:0;width:var(--post-device-sizing-interactive-button-height-1);height:var(--post-device-sizing-interactive-button-height-1);min-height:0;vertical-align:text-bottom}.btn-icon.btn-link{width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-icon>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-icon.btn-sm{padding:0;width:var(--post-device-sizing-interactive-button-height-4);height:var(--post-device-sizing-interactive-button-height-4);min-height:0;vertical-align:text-bottom}.btn-icon.btn-sm.btn-link{width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-icon.btn-sm>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-icon.btn-lg{padding:0;width:var(--post-device-sizing-interactive-button-height-2);height:var(--post-device-sizing-interactive-button-height-2);min-height:0;vertical-align:text-bottom}.btn-icon.btn-lg.btn-link{width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.btn-icon.btn-lg>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}:host .btn{background-color:var(--post-scheme-color-interactive-primary-enabled-bg1)}:host .btn:not(:disabled):hover,:host .btn.pretend-hover{background-color:var(--post-scheme-color-interactive-primary-hover-bg)}:host(:not([placement])),:host([placement=auto]){position:absolute;inset-block-start:0;inset-inline-end:0;transform:translate(50%, -50%)}:host([size=small]) .btn{height:var(--post-device-sizing-interactive-button-height-7);width:var(--post-device-sizing-interactive-button-height-7)}";const M={translate:100,duration:500,easing:"ease",fill:"none"};var C=function(t,e,o,i){var n,r=arguments.length,s=r<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 a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};const j=class{get hasBurgerMenu(){return"desktop"!==this.device&&this.hasMainNav}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&&("burgerMenuExtended"===o?t:this.burgerMenuExtended)?(i.dataset.postScrollLocked="",this.host.addEventListener("keydown",this.keyboardHandler)):(delete i.dataset.postScrollLocked,this.host.removeEventListener("keydown",this.keyboardHandler))}constructor(e){t(this,e),this.throttledResize=b(50,(()=>this.updateLocalHeaderHeight())),this.animationOptions={duration:350,easing:"headerEase"},this.device=r.get("device"),this.hasTitle=!0,this.hasMainNav=!0,this.hasLocalNav=!0,this.burgerMenuExtended=!1,this.megadropdownOpen=!1,this.fullWidth=!1,this.breakpointChange=t=>{const e=this.device;this.device=t.detail,this.switchLanguageSwitchMode();const o="desktop"===this.device;"desktop"===e&&"desktop"!==this.device&&this.megadropdownOpen&&(this.burgerMenuExtended=!0),o&&this.burgerMenuExtended&&this.closeBurgerMenu()},this.onScroll=()=>{this.handleScrollEvent(),this.collapseIfNotKeyboardFocused()},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),this.checkSlottedContent=this.checkSlottedContent.bind(this),this.megadropdownStateHandler=this.megadropdownStateHandler.bind(this)}connectedCallback(){globalThis.addEventListener("resize",this.throttledResize,{passive:!0}),globalThis.addEventListener("scroll",this.onScroll,{passive:!0}),this.scrollParent.addEventListener("scroll",this.onScroll,{passive:!0}),document.addEventListener("postToggleMegadropdown",this.megadropdownStateHandler),globalThis.addEventListener("postBreakpoint:device",this.breakpointChange),this.handleScrollParentResize(),this.lockBody(!1,this.burgerMenuExtended,"burgerMenuExtended")}componentWillRender(){this.handleScrollEvent(),this.handleSlottedContentChanges(),this.switchLanguageSwitchMode()}componentDidRender(){this.getFocusableElements(),this.handleLocalHeaderResize(),this.burgerMenuButton&&this.burgerMenuButton.toggled!==this.burgerMenuExtended&&(this.burgerMenuButton.toggled=this.burgerMenuExtended)}componentDidLoad(){this.updateLocalHeaderHeight(),this.host.shadowRoot.addEventListener("click",this.handleLinkClick)}disconnectedCallback(){const t=this.scrollParent;globalThis.removeEventListener("postBreakpoint:device",this.breakpointChange),globalThis.removeEventListener("resize",this.throttledResize),globalThis.removeEventListener("scroll",this.onScroll),t&&t.removeEventListener("scroll",this.onScroll),document.removeEventListener("postToggleMegadropdown",this.megadropdownStateHandler),this.host.removeEventListener("keydown",this.keyboardHandler),this.host.shadowRoot&&this.host.shadowRoot.removeEventListener("click",this.handleLinkClick),this.scrollParentResizeObserver&&(this.scrollParentResizeObserver.disconnect(),this.scrollParentResizeObserver=null),this.localHeaderResizeObserver&&(this.localHeaderResizeObserver.disconnect(),this.localHeaderResizeObserver=null),this.slottedContentObserver&&(this.slottedContentObserver.disconnect(),this.slottedContentObserver=null),this.burgerMenuExtended=!1}async closeBurgerMenu(){this.burgerMenuAnimation?.finish(),this.burgerMenuButton&&(this.burgerMenuButton.toggled=!1),this.burgerMenuExtended=!1}async toggleBurgerMenu(t=!this.burgerMenuExtended){"desktop"!==this.device&&t!==this.burgerMenuExtended&&(this.burgerMenuAnimation=h(this.burgerMenu,this.burgerMenuExtended?"out":"in",this.animationOptions),this.burgerMenuButton&&this.burgerMenuButton.toggled!==t&&(this.burgerMenuButton.toggled=t),this.burgerMenuExtended?(await this.burgerMenuAnimation.finished,this.burgerMenuExtended=t,!1===this.burgerMenuExtended&&(this.closeAllMegadropdowns(),this.burgerMenu.scrollTop=0)):(this.burgerMenuExtended=t,this.megadropdownOpen&&this.closeAllMegadropdowns()))}megadropdownStateHandler(t){this.megadropdownOpen=t.detail.isVisible}getFocusableElements(){if(!this.burgerMenu)return;const t=[this.burgerMenuButton];t.push(...p(this.localHeader,(t=>!t.matches("post-megadropdown"))),...p(this.burgerMenu,(t=>!t.matches("post-megadropdown")))),this.firstFocusableEl=t[0],this.lastFocusableEl=t.at(-1)}keyboardHandler(t){if("Tab"!==t.key||!this.burgerMenuExtended)return;const e=this.host.shadowRoot.activeElement||document.activeElement;t.shiftKey&&e===this.firstFocusableEl?(t.preventDefault(),this.lastFocusableEl.focus()):t.shiftKey||e!==this.lastFocusableEl||(t.preventDefault(),this.firstFocusableEl.focus())}closeAllMegadropdowns(){Array.from(this.host.querySelectorAll("post-megadropdown")).forEach((t=>{t.hide(!1,!0)})),this.megadropdownOpen=!1}collapseIfNotKeyboardFocused(){"expanded"in this.host.dataset&&(this.getDeepActiveElement()?.matches(":focus-visible")||delete this.host.dataset.expanded)}handleScrollEvent(){const t=this.scrollParent===document.body?window.scrollY:this.scrollParent.scrollTop;document.documentElement.style.setProperty("--post-header-scroll-top",`${Math.max(t,0)}px`)}updateLocalHeaderHeight(){const t=this.host.shadowRoot.querySelector(".local-header");t&&document.documentElement.style.setProperty("--post-local-header-expanded-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.burgerMenuExtended&&(o||i)&&this.toggleBurgerMenu(!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))}handleSlottedContentChanges(){this.slottedContentObserver||(this.checkSlottedContent(),this.slottedContentObserver=new MutationObserver(this.checkSlottedContent),this.slottedContentObserver.observe(this.host,{childList:!0}))}checkSlottedContent(){this.hasTitle=!!this.host.querySelector('[slot="title"]'),this.hasMainNav=!!this.host.querySelector('[slot="main-nav"]'),this.hasLocalNav=!!this.host.querySelector('[slot="local-nav"]')}switchLanguageSwitchMode(){const t=this.hasBurgerMenu?"list":"menu";Array.from(this.host.querySelectorAll("post-language-menu")).forEach((e=>{e?.setAttribute("variant",t)}))}onFocusChange(t){if("focusout"===t.type){if(this.isWithinHeader(t.relatedTarget))return;return void delete this.host.dataset.expanded}const e=this.getDeepActiveElement()?.matches(":focus-visible");if(!e)return;const o="desktop"===this.device?this.globalHeader:this.localHeader,i=t.composedPath().includes(o);this.host.toggleAttribute("data-expanded",i)}isWithinHeader(t){return t instanceof Node&&(t===this.host||this.host.contains(t))}getDeepActiveElement(){let t=document.activeElement;for(;t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}renderBurgerMenu(){return e("div",{class:{"burger-menu":!0,extended:this.burgerMenuExtended,"second-level-open":this.megadropdownOpen},style:{"--post-header-navigation-current-inset":`${this.burgerMenu?.scrollTop??0}px`},ref:t=>this.burgerMenu=t},this.hasLocalNav&&!this.hasTitle&&e("div",{class:"local-nav"},e("slot",{name:"local-nav"})),e("div",{class:"burger-menu-body"},e("slot",{name:"audience"}),e("slot",{name:"main-nav"})),e("div",{class:"burger-menu-footer"},e("slot",{name:"global-nav-secondary"}),e("slot",{name:"language-menu"})))}render(){const t="desktop"===this.device,i="desktop"!==this.device;return e(o,{key:"4c74840c9613cb23844f18754a25acfc0d16f128","data-version":c,"data-color-scheme":"light","data-burger-menu":this.hasBurgerMenu,"data-menu-extended":this.burgerMenuExtended},e("header",{key:"711ff06b1294ab7cca504cbb1b18ea132f2e2a29"},e("div",{key:"91f37765845ec6df6f878a5750acb2f9d3a9a3ef",ref:t=>this.globalHeader=t,class:"global-header"},e("div",{key:"9ce59aeb02b710ebf435dd71a44daef5729784cb",class:"section"},e("div",{key:"9ae9b8a9d4d53eb18cee84167b6fd0900ca968bf",class:"logo"},e("slot",{key:"a0970fc3b536710b746d62013da387a03ac02ae6",name:"post-logo"})),e("div",{key:"685cf65541a21d8911705317b62ac7a5f900141a",class:"sliding-controls"},t&&e("div",{key:"540854418db78414095ef58d376401955e05458b",class:"audience"},e("slot",{key:"57f1a927cffb3baea05d7ea54d78fd57349dd81f",name:"audience"})),e("slot",{key:"1f473accb45b6da9ca0225ed1ee1c075a89cc5a4",name:"global-nav-primary"}),(t||!this.hasMainNav)&&[e("slot",{key:"global-nav-secondary",name:"global-nav-secondary"}),e("slot",{key:"language-menu",name:"language-menu"})],e("slot",{key:"2f22dad30f8b4482b86aa44f4806844a0543826e",name:"post-login"}),i&&this.hasMainNav&&e("post-togglebutton",{key:"d9440ab691459ee505bd3fee43df08eab4fd7d6e",class:"burger-button",ref:t=>this.burgerMenuButton=t,onClick:()=>this.toggleBurgerMenu()},e("span",{key:"c8e750756d635d4d145393db597e7e6c0aab0bf3"},this.textMenu),e("post-icon",{key:"ff251d5dd1815caccc2c1099dafbda2719e39531","aria-hidden":"true",name:"burger","data-showwhen":"untoggled"}),e("post-icon",{key:"1a607d5b4bf397b17aeeaa392b2444d480740e26","aria-hidden":"true",name:"closex","data-showwhen":"toggled"}))))),e("div",{key:"bdbd60cf795b45ff66c1078defaf388eaa9711a6",ref:t=>this.localHeader=t,class:{"local-header":!0,"megadropdown-open":this.megadropdownOpen}},e("div",{key:"3b065f633b1dbf16595ae2665c425448c08e01a5",class:"section"},e("slot",{key:"8d2a3f4491a348b16dbd71f439ed0e57b8856642",name:"side-nav"}),e("slot",{key:"2b169e02026daaa253e6c607d29b4c51373b30c5",name:"title"}),this.hasTitle&&e("slot",{key:"e4afc5c638c62533387cb35eb121e6736afc957d",name:"local-nav"}),t&&e("slot",{key:"2dedbbec1b4af4b5f22aaf555b0c1adc2260eca3",name:"main-nav"}),t&&!this.hasTitle&&e("slot",{key:"db0bf934df1bd189cbecb74ebc2cdc9b753c56f4",name:"local-nav"}))),this.hasBurgerMenu&&this.renderBurgerMenu()))}get host(){return i(this)}static get watchers(){return{device:[{lockBody:0}],burgerMenuExtended:[{lockBody:0}]}}};C([d(),f("boolean")],j.prototype,"fullWidth",void 0),C([d(),f("string")],j.prototype,"textMenu",void 0),C([a("post-megadropdown")],j.prototype,"megadropdownStateHandler",null),j.style=':host{--post-global-header-top:calc( var(--post-global-header-reduced-height) - var(--post-global-header-expanded-height) );--post-header-top:calc(var(--post-header-reduced-height) - var(--post-header-expanded-height));--post-logo-height:calc( var(--post-global-header-expanded-height) - var(--post-header-scroll-top, 0px) );--post-global-controls-top:clamp( 1000 * (var(--post-global-header-reduced-height) - var(--post-global-header-expanded-height)), calc( -1 * min(var(--post-header-scroll-top, 0px) / 4, var(--post-global-header-reduced-height)) ), 0px )}@media screen and (min-width: 1024px){:host{--post-header-gap:8px;--post-global-header-padding-inline-start:4px;--post-global-header-padding-inline-end:8px;--post-local-header-padding-inline-start:12px;--post-local-header-padding-inline-end:8px}}@media screen and (min-width: 600px)and (max-width: 1023.98px){:host{--post-header-gap:12px 8px;--post-global-header-padding-inline-start:4px;--post-global-header-padding-inline-end:4px;--post-local-header-padding-inline-start:12px;--post-local-header-padding-inline-end:4px;--post-local-header-padding-block:12px;--post-burger-menu-padding-inline:40px;--post-burger-menu-body-gap:32px;--post-burger-menu-footer-gap:24px}}@media screen and (min-width: 600px)and (max-width: 779.98px){:host{--post-burger-menu-padding-inline:16px}}@media screen and (min-width: 0)and (max-width: 599.98px){:host{--post-header-gap:12px 8px;--post-global-header-padding-inline-start:0px;--post-global-header-padding-inline-end:8px;--post-local-header-padding-inline-start:8px;--post-local-header-padding-inline-end:8px;--post-local-header-padding-block:8px;--post-burger-menu-padding-inline:16px;--post-burger-menu-body-gap:24px;--post-burger-menu-footer-gap:16px}}:host(:not([full-width])),:host([full-width=false]){--post-header-content-max-width:1440px}:host([data-expanded]),:host([data-menu-extended]){--post-header-top:0;--post-global-header-top:-0.001px;--post-global-controls-top:0;--post-global-header-reduced-height:var(--post-global-header-expanded-height)}*,::before,::after{box-sizing:border-box}:host,header,.global-header,.local-header{transition:inset-block-start 150ms cubic-bezier(0.4, 0, 0.2, 1)}.section,.sliding-controls{display:flex;align-items:center;justify-content:space-between;gap:var(--post-header-gap);flex-wrap:wrap}.section{max-width:var(--post-header-content-max-width);margin-inline:auto}:host{display:block;position:sticky;inset-block-start:var(--post-header-top);z-index:1020;box-shadow:var(--post-device-elevation-300)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host{border-bottom:1px solid}}.global-header{z-index:2;position:sticky;inset-block-start:var(--post-global-header-top);background-color:#fc0}.global-header::before{position:absolute;z-index:-1;left:0;bottom:0;width:100%;height:100dvh;content:"";background-color:#fc0}.global-header .section{height:var(--post-global-header-expanded-height);padding-inline-start:var(--post-global-header-padding-inline-start);padding-inline-end:var(--post-global-header-padding-inline-end)}.global-header .logo{align-self:flex-end;width:var(--post-global-header-expanded-height);height:var(--post-logo-height);min-height:var(--post-global-header-reduced-height);max-height:100%;margin-inline-end:calc(20px - var(--post-header-gap));margin-inline-start:clamp(var(--post-logo-expanded-offset),var(--post-logo-expanded-offset) + (var(--post-logo-reduced-offset) - var(--post-logo-expanded-offset))*min(var(--post-header-scroll-top, 0px),var(--post-global-header-expanded-height) - var(--post-global-header-reduced-height))/max(1px,var(--post-global-header-expanded-height) - var(--post-global-header-reduced-height)),var(--post-logo-reduced-offset))}.global-header .sliding-controls{flex-grow:1;justify-content:flex-end;position:relative;inset-block-start:var(--post-global-controls-top)}.global-header .audience{margin-inline-end:auto}@media screen and (max-width: 1023.98px){.global-header slot:where([name=audience],[name=global-nav-secondary]){display:none}}.local-header{position:relative;background-color:#fff;min-height:var(--post-local-header-expanded-min-height);display:var(--post-local-header-display, flex);align-items:var(--post-local-header-align-items, center)}.local-header .section{width:100%;padding-inline-start:var(--post-local-header-padding-inline-start);padding-inline-end:var(--post-local-header-padding-inline-end);padding-block:var(--post-local-header-padding-block)}@media screen and (min-width: 1024px){.local-header .section{display:grid;grid-template:var(--post-local-header-grid-template)}}@media screen and (max-width: 1023.98px){.local-header .section{display:flex;align-self:center}}@media screen and (max-width: 1023.98px)and (max-width: 599.98px){.local-header .section{justify-content:end}}.local-header:where(.megadropdown-open)::after,.local-header:has(~.burger-menu.extended)::after{content:"";display:block;position:absolute;inset-inline:0;inset-block-end:0;height:1px;background-color:#e1e0dc}.local-header .local-nav{flex:0 0 auto}@media screen and (max-width: 1023.98px){.local-header slot[name=main-nav]{display:none}}.burger-button{display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;border:unset;font-weight:unset;display:flex;padding:4px 10px;gap:6px;font-size:1rem;border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg);display:var(--post-burger-button-display, flex)}.burger-button:not(:disabled):hover{text-decoration:none}.burger-button:disabled{border-style:var(--post-core-border-style-dash);cursor:unset}.burger-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}.burger-button: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){.burger-button:focus-visible{outline-color:Highlight !important}}.burger-button.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){.burger-button.pretend-focus{outline-color:Highlight !important}}.burger-button:has(: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){.burger-button:has(:focus-visible){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.burger-button: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){.burger-button:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.burger-button{border-width:1px !important;transition:none}.burger-button:is(button){background-color:ButtonFace !important;border-color:ButtonBorder !important}}.burger-button:hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg)}.burger-button:is([aria-current],[aria-pressed=true],[aria-expanded=true],.active){box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-primary-enabled-stroke);color:var(--post-scheme-color-interactive-button-primary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-primary-enabled-bg)}.burger-button:is([aria-current],[aria-pressed=true],[aria-expanded=true],.active):hover{border-color:var(--post-scheme-color-interactive-button-primary-hover-stroke);color:var(--post-scheme-color-interactive-button-primary-hover-fg);background-color:var(--post-scheme-color-interactive-button-primary-hover-bg)}@media screen and (min-width: 0)and (max-width: 599.98px){.burger-button{padding:10px}.burger-button>:not(post-icon){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.burger-button>post-icon{font-size:1.5rem}}@media screen and (min-width: 1024px){.burger-button{display:none}}.burger-menu{z-index:-1;position:absolute;inset-inline:0;inset-block-start:100%;height:calc(min(var(--post-header-scroll-parent-height, 100dvh),100dvh) - var(--post-header-height));overflow:hidden auto;display:flex;flex-direction:column;background-color:#fafafa}.burger-menu.extended.second-level-open{overflow:hidden}.burger-menu:not(.extended){transform:translateY(-100%);display:none}.burger-menu:not(.extended)>*{display:none}.burger-menu .burger-menu-body,.burger-menu .burger-menu-footer{display:flex;flex-direction:column;padding-inline:var(--post-burger-menu-padding-inline)}.burger-menu .burger-menu-body{flex-grow:1;padding-block:24px;gap:var(--post-burger-menu-body-gap)}.burger-menu .burger-menu-footer{background-color:#f0efed;padding-block-start:16px;padding-block-end:max(24px, env(safe-area-inset-bottom, 0px));gap:var(--post-burger-menu-footer-gap)}.burger-menu .local-nav{min-height:56px;display:flex;align-items:center;justify-content:flex-end;padding-inline:4px}';var E=function(t,e,o,i){var n,r=arguments.length,s=r<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 a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};const R=`https://unpkg.com/@swisspost/design-system-icons@${c}/public/post-icons/`,O=class{constructor(e){t(this,e),this.flipH=!1,this.flipV=!1}getUrl(){const t=`${this.name??this.host.getAttribute("name")}.svg`;if(this.url?.startsWith("data:image/"))return this.url;if(this.url)return this.url;const e=t=>/^https?:\/\//.test(t),o=t=>t&&!t.endsWith("/")?`${t}/`:t,i=t=>t.replaceAll(/([^:])\/\//g,"$1/"),n=globalThis.location.origin,r=document.querySelector("base[href]")?.getAttribute("href")||"";let s="";{const t=document.querySelector('meta[name="design-system-settings"]');s=t?.getAttribute("data-post-icon-base")||""}const a=t=>{const i=o(r),s=o(t);return e(i)?`${i}${s}`:`${n}${i}${s}`};let c;return this.base?(c=e(this.base)?`${o(this.base)}${t}`:`${a(this.base)}${t}`,i(c)):s?(c=e(s)?`${o(s)}${t}`:`${a(s)}${t}`,i(c)):i(`${R}${t}`)}getStyles(){const t=this.getUrl();return Object.fromEntries(Object.entries({"-webkit-mask-image":`url(${t})`,"mask-image":`url('${t}')`,transform:(this.scale&&!Number.isNaN(Number(this.scale))?"scale("+this.scale+")":"")+(this.rotate&&!Number.isNaN(Number(this.rotate))?" rotate("+this.rotate+"deg)":"")}).filter((([t,e])=>null!==e)))}render(){return e(o,{key:"405ccfde4206c14f044575d0b23998d93a03ffb6","data-version":c},e("span",{key:"ad70ccf63add4b881ef6096ae460e13fba09f508",style:this.getStyles()}))}get host(){return i(this)}};E([l(["cylon","cylon-vertical","spin","spin-reverse","fade","throb"])],O.prototype,"animation",void 0),E([f("string")],O.prototype,"base",void 0),E([d(),f("string")],O.prototype,"name",void 0),E([f("number")],O.prototype,"rotate",void 0),E([f("number")],O.prototype,"scale",void 0),O.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 A=["list","menu"];var L=function(t,e,o,i){var n,r=arguments.length,s=r<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 a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};const B=class{constructor(e){t(this,e),this.postChange=n(this,"postChange"),this.menuId=`p${m(11)}`,this.listSpanId=`list-span-${m(11)}`,this.variant="menu"}get languageOptions(){return Array.from(this.host.querySelectorAll("post-language-menu-item"))}handleVariantChange(){this.updateChildrenVariant()}get description(){const t=this.activeLang&&document.querySelector(`post-language-menu-item[code="${this.activeLang}"]`);if(t)return this.textCurrentLanguage.replaceAll("{name}",t.name).replaceAll("#name",t.name)}componentDidLoad(){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()}hideMenuOnScroll(){this.menu&&this.menu.hide()}handleInitiallyActive(t){this.activeLang=t.detail}updateChildrenVariant(){this.languageOptions.forEach((t=>{t.setAttribute("variant",this.variant)}))}renderList(){return e(o,{"data-version":c},e("div",{class:"post-language-menu-list",role:"list","aria-label":this.textChangeLanguage,"aria-describedby":this.listSpanId},e("span",{id:this.listSpanId,class:"visually-hidden"},this.description),e("slot",null)))}renderDropdown(){return e(o,{"data-version":c},e("post-menu-trigger",{for:this.menuId},e("button",{class:"post-language-menu-trigger"},this.activeLang,e("span",{class:"visually-hidden"},this.textChangeLanguage),e("span",{class:"visually-hidden"},this.description),e("post-icon",{"aria-hidden":"true",name:"chevrondown"}))),e("post-menu",{ref:t=>this.menu=t,id:this.menuId,class:"post-language-menu-dropdown-container",label:this.textChangeLanguage,placement:"bottom-end"},e("slot",null)))}render(){return"list"===this.variant?this.renderList():this.renderDropdown()}get host(){return i(this)}static get watchers(){return{variant:[{handleVariantChange:0}]}}};L([d(),f("string")],B.prototype,"textChangeLanguage",void 0),L([d(),v(/(\{name\}|#name)/)],B.prototype,"textCurrentLanguage",void 0),L([l(A)],B.prototype,"variant",void 0),L([a("post-language-menu-item")],B.prototype,"handlePostChange",null),B.style=":host{display:flex}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.post-language-menu-dropdown-container{display:flex;flex-direction:column}.post-language-menu-trigger{display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;border:unset;font-weight:unset;display:flex;padding:4px 10px;gap:6px;font-size:1rem;border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg);text-transform:uppercase;line-height:inherit;cursor:pointer}.post-language-menu-trigger:not(:disabled):hover{text-decoration:none}.post-language-menu-trigger:disabled{border-style:var(--post-core-border-style-dash);cursor:unset}.post-language-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-language-menu-trigger: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){.post-language-menu-trigger:focus-visible{outline-color:Highlight !important}}.post-language-menu-trigger.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-menu-trigger.pretend-focus{outline-color:Highlight !important}}.post-language-menu-trigger:has(: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){.post-language-menu-trigger:has(:focus-visible){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.post-language-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-language-menu-trigger:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.post-language-menu-trigger{border-width:1px !important;transition:none}.post-language-menu-trigger:is(button){background-color:ButtonFace !important;border-color:ButtonBorder !important}}.post-language-menu-trigger:hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg)}.post-language-menu-trigger:is([aria-current],[aria-pressed=true],[aria-expanded=true],.active){box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-primary-enabled-stroke);color:var(--post-scheme-color-interactive-button-primary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-primary-enabled-bg)}.post-language-menu-trigger:is([aria-current],[aria-pressed=true],[aria-expanded=true],.active):hover{border-color:var(--post-scheme-color-interactive-button-primary-hover-stroke);color:var(--post-scheme-color-interactive-button-primary-hover-fg);background-color:var(--post-scheme-color-interactive-button-primary-hover-bg)}.post-language-menu-trigger post-icon{transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}.post-language-menu-trigger:is([aria-current],[aria-pressed=true],[aria-expanded=true]) post-icon{transform:rotate(180deg)}.post-language-menu-list{display:flex;gap:8px;margin-top:16px}";var D=function(t,e,o,i){var n,r=arguments.length,s=r<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 a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};const $=class{constructor(e){t(this,e),this.postChange=n(this,"postChange"),this.postLanguageMenuItemInitiallyActive=n(this,"postLanguageMenuItemInitiallyActive")}componentDidLoad(){if(!this.name&&this.isNameRequired())throw new Error('The "name" property of the post-language-menu-item component is required when the full language name is not displayed.');this.active&&this.postLanguageMenuItemInitiallyActive.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=t=>{"Enter"!==t.key&&" "!==t.key||this.emitChange()},n=this.url?e("a",{"aria-current":this.active?"page":void 0,href:this.url,hreflang:t,lang:t,"aria-description":this.description,onClick:()=>this.emitChange(),onKeyDown:i},e("slot",null),e("span",{class:"visually-hidden"},this.name)):e("button",{"aria-current":this.active?"true":void 0,lang:t,"aria-description":this.description,onClick:()=>this.emitChange(),onKeyDown:i},e("slot",null),e("span",{class:"visually-hidden"},this.name));return"list"===this.variant?e(o,{"data-version":c,role:"listitem"},n):e(o,{"data-version":c},e("post-menu-item",null,n))}get host(){return i(this)}};D([d(),f("string")],$.prototype,"code",void 0),D([l(A)],$.prototype,"variant",void 0),D([f("string")],$.prototype,"name",void 0),D([f("string")],$.prototype,"description",void 0),D([g()],$.prototype,"url",void 0),$.style="post-language-menu-item :is(a,button){text-transform:uppercase}post-language-menu-item:where([variant=menu]){min-width:72px}post-language-menu-item:where([variant=list]) 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-menu-item:where([variant=list]) button{background-color:ButtonFace !important}post-language-menu-item:where([variant=list]) button:hover{background-color:Highlight !important}}post-language-menu-item:where([variant=list]) a{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}post-language-menu-item:where([variant=list]) :is(a,button){width:40px;height:40px;border-radius:2px;border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg)}post-language-menu-item:where([variant=list]) :is(a,button):hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-language-menu-item:where([variant=list]) :is(a,button){border:1px solid ButtonBorder;color:ButtonText}}post-language-menu-item[active]:not([active=false]):where([variant=menu]){display:none}post-language-menu-item[active]:not([active=false]):where([variant=list]) :is(a,button){border-color:var(--post-scheme-color-interactive-button-primary-enabled-stroke);color:var(--post-scheme-color-interactive-button-primary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-primary-enabled-bg);cursor:default}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-language-menu-item[active]:not([active=false]):where([variant=list]) :is(a,button){background-color:Highlight !important;color:HighlightText}}post-language-menu-item .visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}";const P=class{constructor(e){t(this,e)}componentDidLoad(){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:"1f69b0ddc0ecf2fde47423cd7824fcbe76e4a529","data-version":c},e(t?"a":"span",{key:"096736bd50a6dd43e02a104e7e81897cb286db60",class:"logo "+(t?"logo-link":""),...t?{href:t}:{}},e("span",{key:"bc49b9591424f02744f771eb1079911f02ceca33",class:"description"},e("slot",{key:"ea905eac805e2a9940bfe50aa222bef738d15d27",onSlotchange:()=>this.checkDescription()})),e("svg",{key:"482d94c38347017269dabd0ab3d15f4ede14f187",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 72 72","aria-hidden":"true"},e("g",{key:"fcd3dc56e8a0e448abe65b557639a8bea8ca580f",id:"Logo"},e("rect",{key:"11ed7bad596ee07301f1c1101ddded089ef2bf99",fill:"#ffcc00",x:"0",y:"0",width:"72",height:"72"}),e("polygon",{key:"6ab9d28c8492c746a2620cff62dbd92a59a00aff",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:"8b96cee7ee8ad1ec3c22aaf7928f7a711c05c828",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)}};(function(t,e,o,i){var n,r=arguments.length,s=r<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 a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);r>3&&s&&Object.defineProperty(e,o,s)})([g()],P.prototype,"url",void 0),P.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: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){.logo-link:focus-visible{outline-color:Highlight !important}}.logo-link.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.pretend-focus{outline-color:Highlight !important}}.logo-link:has(: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){.logo-link:has(:focus-visible){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{outline-offset:var(--post-device-spacing-padding-28) !important}.logo-link:focus,.logo-link:focus-visible{border-radius:var(--post-device-border-radius-focus)}";const F=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.checkScrollability=this.checkScrollability.bind(this),this.resizeObserver=new ResizeObserver(this.checkScrollability),this.mutationObserver=new MutationObserver(this.checkScrollability)}componentDidLoad(){setTimeout((()=>{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)}get navigationItems(){return Array.from(this.host.querySelectorAll("a:not(post-megadropdown *), post-megadropdown-trigger"))}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=this.host.shadowRoot.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=this.host.shadowRoot.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:"cf7b2328a41b41ca28956120b8042590655e7bb2",version:c,class:this.canScroll?"scrollable":""},e("div",{key:"a25c55cf7b11a11ce86fb134dd57dbdad3d30301","aria-hidden":"true",class:{"scroll-control scroll-left":!0,"d-none":!this.canScrollLeft},onMouseDown:t=>this.handleScrollButtonClick(t,"left")},e("post-icon",{key:"013778591637d5ee0ac2cd2bf3f23c677ba2a13f","aria-hidden":"true",name:"chevronleft"})),e("nav",{key:"a007b7be57429580de35865e5eff0c54378d0a8e",ref:t=>this.navbar=t,"aria-label":this.textMain},e("slot",{key:"bc8e1db18430ee43b5963539fbaa65e1fb1b0c55"})),e("div",{key:"cdb413fedc9a90c712db0fe5d6ab760a426ff632","aria-hidden":"true",class:{"scroll-control scroll-right":!0,"d-none":!this.canScrollRight},onMouseDown:t=>this.handleScrollButtonClick(t,"right")},e("post-icon",{key:"b2df569a79881b3a044556ba9c0f2e2b0646e78b","aria-hidden":"true",name:"chevronright"})))}get host(){return i(this)}};(function(t,e,o,i){var n,r=arguments.length,s=r<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 a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);r>3&&s&&Object.defineProperty(e,o,s)})([d(),f("string")],F.prototype,"textMain",void 0),F.style=":host{display:flex;user-select:none;max-width:var(--post-header-content-max-width)}@media screen and (min-width: 1024px){:host{width:fit-content;margin-inline-start:calc(-1*var(--post-local-header-padding-inline-start));margin-inline-end:calc(-1*var(--post-local-header-padding-inline-end));overflow:hidden}}nav{flex:1 1 auto}@media screen and (min-width: 1024px){nav{scroll-behavior:smooth;max-width:100vw;overflow:hidden;height:var(--post-main-navigation-height)}}.scroll-control{z-index:1;cursor:pointer;padding:16px;background:#fff;box-shadow:var(--post-device-elevation-500);line-height:1}.scroll-control.scroll-left{margin-inline-end:-48px}.scroll-control.scroll-right{margin-inline-start:-48px}.scroll-control.d-none{display:none}.scroll-control post-icon{font-size:16px}";var W=function(t,e,o,i){var n,r=arguments.length,s=r<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 a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};const _=class{static{this.activeDropdown=null}get megadropdownTrigger(){const t=this.host.getAttribute("id");return t?document.querySelector(`post-megadropdown-trigger[for="${t}"]`):null}constructor(e){t(this,e),this.postToggleMegadropdown=n(this,"postToggleMegadropdown"),this.currentAnimation=null,this.animationDirection=null,this.fsAnimationOptions={translate:-10,duration:350,easing:"headerEase"},this.device=r.get("device"),this.isVisible=!1,this.trigger=!1,this.animationClass=null,this.breakpointChange=t=>{this.device=t.detail,this.cancelAnimation()},this.handleClickOutside=async t=>{if("desktop"!==this.device)return;const e=t.target;if(!this.host.contains(e)&&!this.megadropdownTrigger?.contains(e)){if(e instanceof HTMLElement){const t=e.closest("post-megadropdown-trigger");if(t&&t.getAttribute("for")!==this.host.id)return}await this.hide(!1)}},this.keyboardHandler=this.keyboardHandler.bind(this),this.handleTabOutside=this.handleTabOutside.bind(this),this.handleClickOutside=this.handleClickOutside.bind(this)}connectedCallback(){globalThis.addEventListener("postBreakpoint:device",this.breakpointChange)}componentDidRender(){this.getFocusableElements()}componentDidLoad(){this.checkInitialAriaCurrent(),this.setupObserver(),this.handleAriaCurrentChange([])}disconnectedCallback(){globalThis.removeEventListener("postBreakpoint:device",this.breakpointChange),_.activeDropdown===this&&(_.activeDropdown=null),this.removeListeners(),this.defaultSlotObserver&&this.defaultSlotObserver.disconnect()}async toggle(){return this.animationDirection?"in"===this.animationDirection?this.hide():this.show():this.isVisible?this.hide():this.show()}async show(){if("desktop"!==this.device){const t=this.megadropdownTrigger;t&&(this.megadropdownTitle=t.innerHTML)}let t=!1;if(_.activeDropdown&&_.activeDropdown!==this&&(_.activeDropdown.forceClose(),t=!0),this.cancelAnimation(),this.isVisible=!0,_.activeDropdown=this,this.postToggleMegadropdown.emit({isVisible:!0}),t)this.focusFirst(),this.addListeners();else try{await this.animate("in"),this.focusFirst(),this.addListeners()}catch{this.removeListeners(),this.isVisible=!1,_.activeDropdown===this&&(_.activeDropdown=null),this.postToggleMegadropdown.emit({isVisible:!1,focusParent:!0})}}async hide(t=!0,e=!1){if(e)this.forceClose();else if(this.isVisible&&"out"!==this.animationDirection){this.postToggleMegadropdown.emit({isVisible:!1,focusParent:t});try{await this.animate("out"),this.isVisible=!1,this.removeListeners(),_.activeDropdown===this&&(_.activeDropdown=null)}catch{_.activeDropdown=this,this.addListeners(),this.isVisible=!0,this.postToggleMegadropdown.emit({isVisible:!0,focusParent:!1})}}}async focusFirst(){this.firstFocusableEl?.focus()}forceClose(){this.removeListeners(),this.postToggleMegadropdown.emit({isVisible:!1,focusParent:!1}),this.isVisible=!1,_.activeDropdown===this&&(_.activeDropdown=null)}createAnimation(t){const e="out"===t?"forwards":"none";return"desktop"===this.device?y(this.animatedContainer,t,{...this.fsAnimationOptions,fill:e}):function(t,e,o={}){const i={...M,...o},{translate:n}=i,r=[{transform:`translateX(${n}%)`},{transform:"translateX(0)"}];return function(t,e,o){const{duration:i,easing:n,fill:r}={...M,...o};return t.animate(e,{duration:i,easing:w(n),fill:r})}(t,"in"===e?r:[...r].reverse(),o)}(this.animatedContainer,t,{translate:100,duration:350,easing:"in"===t?"ease-in":"ease-out",fill:e})}async animate(t){this.cancelAnimation(),this.currentAnimation=this.createAnimation(t),this.animationDirection=t;try{await this.currentAnimation.finished}finally{this.animationDirection===t&&(this.animationDirection=null)}"in"===t&&(this.currentAnimation=null)}cancelAnimation(){this.currentAnimation?.cancel(),this.currentAnimation=null}addListeners(){this.host.addEventListener("keydown",this.keyboardHandler),document.addEventListener("keyup",this.handleTabOutside),document.addEventListener("mousedown",this.handleClickOutside)}removeListeners(){this.host.removeEventListener("keydown",this.keyboardHandler),document.removeEventListener("keyup",this.handleTabOutside),document.removeEventListener("mousedown",this.handleClickOutside)}getFocusableElements(){const t=[...u(this.host),...u(this.host.shadowRoot)];this.firstFocusableEl=t[0],this.lastFocusableEl=t.at(-1)}keyboardHandler(t){if("Tab"!==t.key||"desktop"===this.device)return;const e=this.host.shadowRoot.activeElement||document.activeElement;t.shiftKey&&e===this.firstFocusableEl?(t.preventDefault(),this.lastFocusableEl.focus()):t.shiftKey||e!==this.lastFocusableEl||(t.preventDefault(),this.firstFocusableEl.focus())}handleTabOutside(t){if("Tab"!==t.key||"desktop"!==this.device||!this.isVisible)return;const e=t.target;this.host.contains(e)||this.megadropdownTrigger?.contains(e)||this.hide(!1)}setupObserver(){this.defaultSlotObserver=new MutationObserver(this.handleAriaCurrentChange.bind(this)),this.defaultSlotObserver.observe(this.host,{subtree:!0,attributes:!0,attributeFilter:["aria-current"]})}setTriggerActive(t){const e=this.megadropdownTrigger;e&&e.setAttribute("active",t.toString())}handleAriaCurrentChange(t){if(0===t.length)return;const e=t.some((t=>t.target instanceof HTMLElement&&"page"===t.target.getAttribute("aria-current")));this.setTriggerActive(e)}checkInitialAriaCurrent(){this.host.querySelector('[aria-current="page"]')&&this.setTriggerActive(!0)}render(){return e(o,{key:"8b9fe023f42390243b55d4efcf58e57d7bae8982",version:c},e("div",{key:"5840742453a8d44dd16f09f368958ac0f734ece7",ref:t=>this.animatedContainer=t,class:"megadropdown",style:this.isVisible?{}:{display:"none"}},e("div",{key:"76332b6f916948ab11411b3dfd5fe97ca6522847",class:"section"},"desktop"!==this.device&&this.megadropdownTitle&&e("p",{key:"3e7cf05cbd7a134ebb417fd5e83f2052874f6c38",class:"megadropdown-title"},this.megadropdownTitle),e("div",{key:"76f902df0e84fb68556ffc6735e5188b1c1babf8",class:"megadropdown-content"},e("slot",{key:"6b69815d2b418395b246dc2681a0597c47f59034"})),"desktop"===this.device?e("post-closebutton",{onClick:()=>this.hide(!0),class:"close-button",size:"small",placement:"manual"},this.textClose):e("button",{onClick:()=>this.hide(!0),class:"back-button"},e("post-icon",{name:"arrowleft"}),this.textBack))))}get host(){return i(this)}};W([d(),f("string")],_.prototype,"textClose",void 0),W([d(),f("string")],_.prototype,"textBack",void 0),_.style="*,::before,::after{box-sizing:border-box}.megadropdown{position:absolute;inset-inline:0;overflow-y:auto;box-shadow:var(--post-device-elevation-300)}@media screen and (min-width: 1024px){.megadropdown{max-height:calc(100vh - var(--post-header-height) - 48px);background-color:#f0efed;z-index:-1;inset-block-start:100%}.megadropdown.slide-in{animation:slide-down 350ms forwards}.megadropdown.slide-out{animation:slide-up 350ms forwards}}@media screen and (max-width: 1023.98px){.megadropdown{background-color:#fafafa;z-index:1;inset-block-start:var(--post-header-navigation-current-inset);overscroll-behavior:contain}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.megadropdown{border-block-end:1px solid CanvasText}}.section{width:100%;max-width:var(--post-header-content-max-width);margin-inline:auto;position:relative}@media screen and (min-width: 1024px){.section{padding:48px 40px 40px}}@media screen and (max-width: 1023.98px){.section{display:flex;flex-direction:column;height:calc(min(var(--post-header-scroll-parent-height, 100dvh),100dvh) - var(--post-header-height));padding-inline:var(--post-burger-menu-padding-inline);padding-block-start:24px}}@media screen and (max-width: 1023.98px){.section .megadropdown-content{padding-block-end:max(24px, env(safe-area-inset-bottom, 0px))}}.megadropdown-title{margin-block:0 16px;font-weight:950}@media screen and (min-width: 600px)and (max-width: 1023.98px){.megadropdown-title{font-size:1.25rem}}@media screen and (min-width: 0)and (max-width: 599.98px){.megadropdown-title{font-size:1.125rem}}.back-button{display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;min-height:var(--post-device-sizing-interactive-button-height-4);gap:var(--post-device-spacing-gap-inline-11);padding:0 var(--post-device-spacing-padding-inline-7);border-radius:calc(var(--post-device-sizing-interactive-button-height-4) / 2);border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg);order:-1;width:fit-content;padding-inline:0}.back-button:not(:disabled):hover{text-decoration:none}.back-button:disabled{border-style:var(--post-core-border-style-dash);cursor:unset}.back-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}.back-button: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){.back-button:focus-visible{outline-color:Highlight !important}}.back-button.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){.back-button.pretend-focus{outline-color:Highlight !important}}.back-button:has(: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){.back-button:has(:focus-visible){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.back-button: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){.back-button:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.back-button{border-width:1px !important;transition:none}.back-button:is(button){background-color:ButtonFace !important;border-color:ButtonBorder !important}}.back-button>post-icon{width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5);flex-shrink:0}.back-button:hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg)}@media screen and (min-width: 600px)and (max-width: 1023.98px){.back-button{margin-block-end:32px}}@media screen and (min-width: 0)and (max-width: 599.98px){.back-button{margin-block-end:24px}}.close-button{position:absolute;inset-block-start:8px;inset-inline-end:8px}@media screen and (max-width: 1023.98px){.close-button{display:none}}";var N=function(t,e,o,i){var n,r=arguments.length,s=r<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 a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};const I=class{constructor(e){t(this,e),this.isMegadropdownExpanded=!1,this.slottedContent=null,this.active=!1}componentWillRender(){this.handleSlottedContentChanges()}disconnectedCallback(){this.mutationObserver&&this.mutationObserver.disconnect()}onMegadropdownToggled(t){if(t.target.id===this.for){const e=this.isMegadropdownExpanded;if(this.isMegadropdownExpanded=t.detail.isVisible,!e||this.isMegadropdownExpanded||!t.detail.focusParent)return;setTimeout((()=>{this.interactiveButton.focus()}),100)}}get megadropdown(){const t=document.getElementById(this.for);return"post-megadropdown"!==t?.localName?(console.warn(`No post-megadropdown found with ID: ${this.for}`),null):t}handleSlottedContentChanges(){this.cloneSlottedButton(),this.mutationObserver=new MutationObserver(this.cloneSlottedButton.bind(this)),this.mutationObserver.observe(this.host,{childList:!0,subtree:!0})}cloneSlottedButton(){this.slottedContent=this.host.innerHTML}onClick(){this.megadropdown?.toggle()}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||this.megadropdown&&(t.preventDefault(),this.megadropdown.toggle())}render(){return e(o,{key:"7e6201e3cdea96113bbebdeeb805acff557c8bbb","data-version":c},e("button",{key:"1863f48dbd6e98b7a2b226b7c3b25b16a38c644b",ref:t=>this.interactiveButton=t,type:"button","aria-haspopup":"menu","aria-expanded":this.isMegadropdownExpanded.toString(),onClick:this.onClick.bind(this),onKeyDown:this.onKeyDown.bind(this),class:{active:this.active}},e("span",{key:"dee7e77e45914a3e40a9f5027570bef0035dfdf2"},e("span",{key:"362865f7946f14f45ecdb240e81f09370e3f6d10",innerHTML:this.slottedContent}),e("span",{key:"d61eb63433aa65631f787646df2c6705c3d6e7a1","aria-hidden":"true"},e("slot",{key:"c831f7299fe3c80b8229c861e01e09a2ee481bc8"}))),e("post-icon",{key:"bcc8ed53293e16d4571e989a491760f98425b298",name:"chevrondown"})))}get host(){return i(this)}};N([d(),f("string")],I.prototype,"for",void 0),N([a("post-megadropdown",{ignoreNestedComponents:!1})],I.prototype,"onMegadropdownToggled",null),I.style='button{display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;border:unset;font-weight:unset;display:flex;padding:4px 10px;gap:6px;font-size:1rem;border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg)}button:not(:disabled):hover{text-decoration:none}button:disabled{border-style:var(--post-core-border-style-dash);cursor:unset}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}button: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){button:focus-visible{outline-color:Highlight !important}}button.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){button.pretend-focus{outline-color:Highlight !important}}button:has(: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){button:has(:focus-visible){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){button: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){button:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){button{border-width:1px !important;transition:none}button:is(button){background-color:ButtonFace !important;border-color:ButtonBorder !important}}button:hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg)}button:is([aria-current],[aria-pressed=true],[aria-expanded=true],.active){box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-primary-enabled-stroke);color:var(--post-scheme-color-interactive-button-primary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-primary-enabled-bg)}button:is([aria-current],[aria-pressed=true],[aria-expanded=true],.active):hover{border-color:var(--post-scheme-color-interactive-button-primary-hover-stroke);color:var(--post-scheme-color-interactive-button-primary-hover-fg);background-color:var(--post-scheme-color-interactive-button-primary-hover-bg)}button{--post-nav-item-border-width:1px;width:100%;justify-content:start;position:relative;padding:12px 12px calc(12px - var(--post-nav-item-border-width)) 8px;gap:16px;border-radius:0;line-height:1.5;outline-color:currentColor !important;border-bottom:var(--post-nav-item-border-width) solid currentColor;height:100%}button:hover{border-color:var(--post-scheme-color-interactive-button-primary-hover-stroke);color:var(--post-scheme-color-interactive-button-primary-hover-fg);background-color:var(--post-scheme-color-interactive-button-primary-hover-bg);border-bottom-color:rgba(0,0,0,0)}button:is([aria-current],[aria-pressed=true],[aria-expanded=true],.active){box-shadow:none}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}button:focus-visible{outline-style:var(--post-core-border-style-solid) !important;outline:none !important}button:focus-visible::after{content:"";position:absolute;inset:calc(-1*var(--post-device-spacing-padding-28));border-width:var(--post-device-border-width-focus);border-style:var(--post-core-border-style-solid);border-color:var(--post-scheme-color-interactive-focus-stroke);border-radius:var(--post-device-border-radius-focus);pointer-events:none}button:focus-visible:hover::after{border-color:var(--post-scheme-color-interactive-focus-stroke-inverted)}button:focus-visible:is([aria-current],[aria-pressed=true],[aria-expanded=true],.active)::after{border-color:var(--post-scheme-color-interactive-focus-stroke-inverted)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){button:focus-visible{outline-color:Highlight !important}}button.pretend-focus{outline-style:var(--post-core-border-style-solid) !important;outline:none !important}button.pretend-focus::after{content:"";position:absolute;inset:calc(-1*var(--post-device-spacing-padding-28));border-width:var(--post-device-border-width-focus);border-style:var(--post-core-border-style-solid);border-color:var(--post-scheme-color-interactive-focus-stroke);border-radius:var(--post-device-border-radius-focus);pointer-events:none}button.pretend-focus:hover::after{border-color:var(--post-scheme-color-interactive-focus-stroke-inverted)}button.pretend-focus:is([aria-current],[aria-pressed=true],[aria-expanded=true],.active)::after{border-color:var(--post-scheme-color-interactive-focus-stroke-inverted)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){button.pretend-focus{outline-color:Highlight !important}}button:has(:focus-visible){outline-style:var(--post-core-border-style-solid) !important;outline:none !important}button:has(:focus-visible)::after{content:"";position:absolute;inset:calc(-1*var(--post-device-spacing-padding-28));border-width:var(--post-device-border-width-focus);border-style:var(--post-core-border-style-solid);border-color:var(--post-scheme-color-interactive-focus-stroke);border-radius:var(--post-device-border-radius-focus);pointer-events:none}button:has(:focus-visible):hover::after{border-color:var(--post-scheme-color-interactive-focus-stroke-inverted)}button:has(:focus-visible):is([aria-current],[aria-pressed=true],[aria-expanded=true],.active)::after{border-color:var(--post-scheme-color-interactive-focus-stroke-inverted)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){button:has(:focus-visible){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){button:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;outline:none !important}button:is(:focus-visible,:focus-within,.pretend-focus)::after{content:"";position:absolute;inset:calc(-1*var(--post-device-spacing-padding-28));border-width:var(--post-device-border-width-focus);border-style:var(--post-core-border-style-solid);border-color:var(--post-scheme-color-interactive-focus-stroke);border-radius:var(--post-device-border-radius-focus);pointer-events:none}button:is(:focus-visible,:focus-within,.pretend-focus):hover::after{border-color:var(--post-scheme-color-interactive-focus-stroke-inverted)}button:is(:focus-visible,:focus-within,.pretend-focus):is([aria-current],[aria-pressed=true],[aria-expanded=true],.active)::after{border-color:var(--post-scheme-color-interactive-focus-stroke-inverted)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){button:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}button>post-icon:where(:last-child){margin-inline-start:auto}@media screen and (min-width: 0)and (max-width: 599.98px){button{padding:9.5px 12px calc(9.5px - var(--post-nav-item-border-width)) 8px;gap:8px;font-size:.875rem}button>post-icon{font-size:1rem}}@media screen and (min-width: 600px)and (max-width: 1023.98px){button>post-icon{font-size:1.5rem}}@media screen and (min-width: 1024px){button{padding:16px 12px;gap:8px;border-bottom:0}}:host{position:relative;display:inline-block}button post-icon{transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}button:is([aria-current],[aria-pressed=true],[aria-expanded=true]) post-icon{transform:rotate(180deg)}button>span{position:relative}button>span>span[aria-hidden]{font-weight:700;visibility:hidden}button>span>span[aria-hidden]:where(span:empty+*){visibility:visible}button>span>span:not([aria-hidden]){position:absolute;inset:0}@media screen and (min-width: 1024px){button:is([aria-current],[aria-pressed=true],[aria-expanded=true],.active){font-weight:700}button[aria-expanded=true]{background-color:#f0efed;color:#050400;z-index:2}button[aria-expanded=true]:hover{box-shadow:inset 0 -0.7px 0 0 #f0efed}button[aria-expanded=true]{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}button[aria-expanded=true]:focus-visible{outline-style:var(--post-core-border-style-solid) !important}button[aria-expanded=true]:focus-visible::after{border-color:var(--post-scheme-color-interactive-focus-stroke)}}@media screen and (min-width: 1024px)and (forced-colors: active),screen and (min-width: 1024px)and (-ms-high-contrast: active),screen and (min-width: 1024px)and (-ms-high-contrast: white-on-black){button[aria-expanded=true]:focus-visible{outline-color:Highlight !important}}@media screen and (min-width: 1024px){button[aria-expanded=true].pretend-focus{outline-style:var(--post-core-border-style-solid) !important}button[aria-expanded=true].pretend-focus::after{border-color:var(--post-scheme-color-interactive-focus-stroke)}}@media screen and (min-width: 1024px)and (forced-colors: active),screen and (min-width: 1024px)and (-ms-high-contrast: active),screen and (min-width: 1024px)and (-ms-high-contrast: white-on-black){button[aria-expanded=true].pretend-focus{outline-color:Highlight !important}}@media screen and (min-width: 1024px){button[aria-expanded=true]:has(:focus-visible){outline-style:var(--post-core-border-style-solid) !important}button[aria-expanded=true]:has(:focus-visible)::after{border-color:var(--post-scheme-color-interactive-focus-stroke)}}@media screen and (min-width: 1024px)and (forced-colors: active),screen and (min-width: 1024px)and (-ms-high-contrast: active),screen and (min-width: 1024px)and (-ms-high-contrast: white-on-black){button[aria-expanded=true]:has(:focus-visible){outline-color:Highlight !important}}@media screen and (min-width: 1024px){@supports not selector(:has(:focus-visible)){button[aria-expanded=true]:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}button[aria-expanded=true]:is(:focus-visible,:focus-within,.pretend-focus)::after{border-color:var(--post-scheme-color-interactive-focus-stroke)}@media screen and (min-width: 1024px)and (forced-colors: active),screen and (min-width: 1024px)and (-ms-high-contrast: active),screen and (min-width: 1024px)and (-ms-high-contrast: white-on-black){button[aria-expanded=true]:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}}@media screen and (max-width: 1023.98px){button post-icon{margin-inline-start:auto;transform:rotate(-90deg) !important}}';var V=function(t,e,o,i){var n,r=arguments.length,s=r<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 a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};const q=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.handleClick=t=>{["BUTTON","A","INPUT","SELECT","TEXTAREA"].includes(t.target.tagName)&&this.toggle(this.host)}}connectedCallback(){this.root=k(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)}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")}handlePostShown(t){if(t.detail.first){this.host.setAttribute("role","menu");const t=this.getSlottedItems();for(const e of t)e.setAttribute("role","menuitem");this.label&&this.host.setAttribute("aria-label",this.label)}}handlePostBeforeToggle(t){this.isVisible=t.detail.willOpen,this.toggleMenu.emit(this.isVisible),this.isVisible?(this.lastFocusedElement=this.root?.activeElement,z(this.lastFocusedElement)&&requestAnimationFrame((()=>{const t=this.getSlottedItems();t.length>0&&t[0].focus()}))):this.lastFocusedElement&&this.lastFocusedElement.focus()}controlKeyDownHandler(t){const e=this.getSlottedItems();if(0===e.length)return;let o=e.findIndex((t=>t===k(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:t.preventDefault(),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.querySelectorAll("slot"),e=[];return t.forEach((t=>e.push(...t.assignedElements()))),e.flatMap((t=>t instanceof HTMLSlotElement?t.assignedElements():t)).flatMap((t=>[...u(t),...t.shadowRoot?u(t.shadowRoot):[]]))}render(){return e(o,{key:"988b77e3589a499e23e95eb6eff985edbadd4d2e","data-version":c},e("post-popovercontainer",{key:"fd0ee4d4234fe1f222757c00d778ebb2a2c5ac13",autoHide:!0,autoResize:!0,onPostShow:this.handlePostShown.bind(this),onPostBeforeToggle:this.handlePostBeforeToggle.bind(this),placement:this.placement,ref:t=>this.popoverRef=t},e("div",{key:"8b46a79db5944854c97c862608bd5a8d9113398e",part:"post-menu"},e("slot",{key:"a024a0ade2a865b12d1a452c6c33f9afde1f34e0",name:"header"}),e("slot",{key:"1465a5d8d9463e6557a2a8c32aa119429a4783b3"}))))}get host(){return i(this)}};V([l(x)],q.prototype,"placement",void 0),V([d(),f("string")],q.prototype,"label",void 0),V([a("post-popovercontainer")],q.prototype,"handlePostShown",null),V([a("post-popovercontainer")],q.prototype,"handlePostBeforeToggle",null),q.style=":host{display:block}:where([part=post-menu]){display:flex;flex-direction:column;padding-block:8px;overflow-y:auto;overscroll-behavior:contain}::slotted([slot=header]){margin-top:-8px;padding:16px;display:flex;align-items:center;gap:8px;border-block-end:1px solid #050400;font-weight:700}@media screen and (max-width: 1023.98px){::slotted([slot=header]){padding:12px 16px}}@media screen and (max-width: 779.98px){::slotted([slot=header]){padding:8px 16px}}post-popovercontainer::part(post-popovercontainer-content){background-color:#fff}";const K=class{constructor(e){t(this,e)}connectedCallback(){this.host.dataset.version=c}get host(){return i(this)}};K.style='post-menu-item 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;width:100%}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-menu-item button{background-color:ButtonFace !important}post-menu-item button:hover{background-color:Highlight !important}}post-menu-item button,post-menu-item a{position:relative;display:flex;align-items:center;padding:8px 12px 8px 16px;gap:12px;font-size:.875rem;color:#050400;border-radius:0;text-decoration:none}@media screen and (min-width: 780px){post-menu-item button,post-menu-item a{font-size:1rem;padding-block:12px;gap:16px}}@media screen and (min-width: 1024px){post-menu-item button,post-menu-item a{font-size:1.25rem;padding-block:13px}}post-menu-item button:focus-visible,post-menu-item a:focus-visible{outline:none !important}post-menu-item button.pretend-focus,post-menu-item a.pretend-focus{outline:none !important}post-menu-item button:has(:focus-visible),post-menu-item a:has(:focus-visible){outline:none !important}@supports not selector(:has(:focus-visible)){post-menu-item button:is(:focus-visible,:focus-within,.pretend-focus),post-menu-item a:is(:focus-visible,:focus-within,.pretend-focus){outline:none !important}}post-menu-item button::after,post-menu-item a::after{content:"";position:absolute;inset:0;width:100%;height:100%;border-radius:calc(var(--post-device-border-radius-focus) - var(--post-device-spacing-padding-44))}post-menu-item button::after,post-menu-item a::after{outline-offset:var(--post-device-spacing-padding-44) !important;outline:#050400 none var(--post-device-border-width-focus) !important}post-menu-item button:focus-visible::after,post-menu-item a:focus-visible::after{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-item button:focus-visible::after,post-menu-item a:focus-visible::after{outline-color:Highlight !important}}post-menu-item button.pretend-focus::after,post-menu-item a.pretend-focus::after{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-item button.pretend-focus::after,post-menu-item a.pretend-focus::after{outline-color:Highlight !important}}post-menu-item button:has(:focus-visible)::after,post-menu-item a:has(:focus-visible)::after{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-item button:has(:focus-visible)::after,post-menu-item a:has(:focus-visible)::after{outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-menu-item button:is(:focus-visible,:focus-within,.pretend-focus)::after,post-menu-item a:is(:focus-visible,:focus-within,.pretend-focus)::after{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-item button:is(:focus-visible,:focus-within,.pretend-focus)::after,post-menu-item a:is(:focus-visible,:focus-within,.pretend-focus)::after{outline-color:Highlight !important}}}post-menu-item button:hover,post-menu-item a:hover{background-color:#504f4b;color:#fff}post-menu-item button:hover:focus-visible::after,post-menu-item a:hover:focus-visible::after{outline-color:#fff !important}post-menu-item button:hover.pretend-focus::after,post-menu-item a:hover.pretend-focus::after{outline-color:#fff !important}post-menu-item button:hover:has(:focus-visible)::after,post-menu-item a:hover:has(:focus-visible)::after{outline-color:#fff !important}@supports not selector(:has(:focus-visible)){post-menu-item button:hover:is(:focus-visible,:focus-within,.pretend-focus)::after,post-menu-item a:hover:is(:focus-visible,:focus-within,.pretend-focus)::after{outline-color:#fff !important}}post-menu-item button post-icon,post-menu-item a post-icon{width:16px;height:16px;margin-block:4px}@media screen and (min-width: 780px){post-menu-item button post-icon,post-menu-item a post-icon{width:24px;height:24px;margin:0}}';const U=class{constructor(e){t(this,e),this.updateAriaExpanded=this.updateAriaExpanded.bind(this)}connectedCallback(){this.root=k(this.host)}componentDidLoad(){this.setAriaAttributes(),this.root&&this.root.addEventListener("toggleMenu",this.updateAriaExpanded)}disconnectedCallback(){this.root.removeEventListener("toggleMenu",this.updateAriaExpanded)}updateAriaExpanded(t){const e=t.target;"post-menu"===e.localName&&e.id===this.for&&this.slottedButton.setAttribute("aria-expanded",t.detail.toString())}setAriaAttributes(){const t=this.host.querySelectorAll("button");1===t.length?(this.slottedButton=t.item(0),this.slottedButton.setAttribute("type","button"),this.slottedButton.setAttribute("aria-haspopup","menu"),this.slottedButton.setAttribute("aria-expanded","false"),this.slottedButton.addEventListener("click",this.handleToggle.bind(this)),this.slottedButton.addEventListener("keydown",this.handleKeyDown.bind(this))):console.warn(`The post-menu-trigger should contain exactly one button (${t.length} found).`)}handleKeyDown(t){"ArrowUp"!==t.key&&"ArrowDown"!==t.key||(t.preventDefault(),this.handleToggle())}handleToggle(){const t=this.getMenu();t&&t.toggle(this.host)}getMenu(){const t=this.root.getElementById(this.for);return t&&"post-menu"===t.localName?t:(console.warn(`No post-menu found with ID: ${this.for}`),null)}render(){return e(o,{key:"f75522d28e9a45c80846a191cff3ea2eb51b5bde","data-version":c},e("slot",{key:"bc70e3ddc8dc372611c00a4cda52cd35ede02a3f"}))}get host(){return i(this)}};(function(t,e,o,i){var n,r=arguments.length,s=r<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 a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);r>3&&s&&Object.defineProperty(e,o,s)})([d(),f("string")],U.prototype,"for",void 0),U.style=":host{display:inline-block}";const X=["top","right","bottom","left"],Y=Math.min,Z=Math.max,Q=Math.round,G=Math.floor,J=t=>({x:t,y:t}),tt={left:"right",right:"left",bottom:"top",top:"bottom"};function et(t,e,o){return Z(t,Y(e,o))}function ot(t,e){return"function"==typeof t?t(e):t}function it(t){return t.split("-")[0]}function nt(t){return t.split("-")[1]}function rt(t){return"x"===t?"y":"x"}function st(t){return"y"===t?"height":"width"}function at(t){const e=t[0];return"t"===e||"b"===e?"y":"x"}function ct(t){return rt(at(t))}function lt(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const dt=["left","right"],ht=["right","left"],pt=["top","bottom"],ut=["bottom","top"];function bt(t){const e=it(t);return tt[e]+t.slice(e.length)}function ft(t){return"number"!=typeof t?function(t){var e,o,i,n;return{top:null!=(e=t.top)?e:0,right:null!=(o=t.right)?o:0,bottom:null!=(i=t.bottom)?i:0,left:null!=(n=t.left)?n:0}}(t):{top:t,right:t,bottom:t,left:t}}function mt(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 vt(t,e,o){let{reference:i,floating:n}=t;const r=at(e),s=ct(e),a=st(s),c=it(e),l="y"===r,d=i.x+i.width/2-n.width/2,h=i.y+i.height/2-n.height/2,p=i[a]/2-n[a]/2;let u;switch(c){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:h};break;case"left":u={x:i.x-n.width,y:h};break;default:u={x:i.x,y:i.y}}const b=nt(e);return b&&(u[s]+=p*("end"===b?1:-1)*(o&&l?-1:1)),u}async function gt(t,e){var o;void 0===e&&(e={});const{x:i,y:n,platform:r,rects:s,elements:a,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:p=!1,padding:u=0}=ot(e,t),b=ft(u),f=a[p?"floating"===h?"reference":"floating":h],m=mt(await r.getClippingRect({element:null==(o=await(null==r.isElement?void 0:r.isElement(f)))||o?f:f.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(a.floating)),boundary:l,rootBoundary:d,strategy:c})),v="floating"===h?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,g=await(null==r.getOffsetParent?void 0:r.getOffsetParent(a.floating)),w=await(null==r.isElement?void 0:r.isElement(g))&&await(null==r.getScale?void 0:r.getScale(g))||{x:1,y:1},y=mt(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:g,strategy:c}):v);return{top:(m.top-y.top+b.top)/w.y,bottom:(y.bottom-m.bottom+b.bottom)/w.y,left:(m.left-y.left+b.left)/w.x,right:(y.right-m.right+b.right)/w.x}}function wt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function yt(t){return X.some((e=>t[e]>=0))}function xt(t){const e=Y(...t.map((t=>t.left))),o=Y(...t.map((t=>t.top)));return{x:e,y:o,width:Z(...t.map((t=>t.right)))-e,height:Z(...t.map((t=>t.bottom)))-o}}const kt=new Set(["left","top"]);function zt(){return"undefined"!=typeof window}function Ht(t){return Mt(t)?(t.nodeName||"").toLowerCase():"#document"}function Tt(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function St(t){var e;return null==(e=(Mt(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Mt(t){return!!zt()&&(t instanceof Node||t instanceof Tt(t).Node)}function Ct(t){return!!zt()&&(t instanceof Element||t instanceof Tt(t).Element)}function jt(t){return!!zt()&&(t instanceof HTMLElement||t instanceof Tt(t).HTMLElement)}function Et(t){return!(!zt()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof Tt(t).ShadowRoot)}function Rt(t){const{overflow:e,overflowX:o,overflowY:i,display:n}=_t(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&"inline"!==n&&"contents"!==n}function Ot(t){return/^(table|td|th)$/.test(Ht(t))}function At(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}const Lt=/transform|translate|scale|rotate|perspective|filter/,Bt=/paint|layout|strict|content/,Dt=t=>!!t&&"none"!==t;let $t;function Pt(t){const e=Ct(t)?_t(t):t;return Dt(e.transform)||Dt(e.translate)||Dt(e.scale)||Dt(e.rotate)||Dt(e.perspective)||!Ft()&&(Dt(e.backdropFilter)||Dt(e.filter))||Lt.test(e.willChange||"")||Bt.test(e.contain||"")}function Ft(){return null==$t&&($t="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),$t}function Wt(t){return/^(html|body|#document)$/.test(Ht(t))}function _t(t){return Tt(t).getComputedStyle(t)}function Nt(t){return Ct(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function It(t){if("html"===Ht(t))return t;const e=t.assignedSlot||t.parentNode||Et(t)&&t.host||St(t);return Et(e)?e.host:e}function Vt(t){const e=It(t);return Wt(e)?(t.ownerDocument||t).body:jt(e)&&Rt(e)?e:Vt(e)}function qt(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const n=Vt(t),r=n===(null==(i=t.ownerDocument)?void 0:i.body),s=Tt(n);if(r){const t=Kt(s);return e.concat(s,s.visualViewport||[],Rt(n)?n:[],t&&o?qt(t):[])}return e.concat(n,qt(n,[],o))}function Kt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ut(t){const e=_t(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const n=jt(t),r=n?t.offsetWidth:o,s=n?t.offsetHeight:i,a=Q(o)!==r||Q(i)!==s;return a&&(o=r,i=s),{width:o,height:i,$:a}}function Xt(t){return Ct(t)?t:t.contextElement}function Yt(t){const e=Xt(t);if(!jt(e))return J(1);const o=e.getBoundingClientRect(),{width:i,height:n,$:r}=Ut(e);let s=(r?Q(o.width):o.width)/i,a=(r?Q(o.height):o.height)/n;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const Zt=J(0);function Qt(t){const e=Tt(t);return Ft()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Zt}function Gt(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const n=t.getBoundingClientRect(),r=Xt(t);let s=J(1);e&&(i?Ct(i)&&(s=Yt(i)):s=Yt(t));const a=function(t,e,o){return void 0===e&&(e=!1),!!o&&e&&o===Tt(t)}(r,o,i)?Qt(r):J(0);let c=(n.left+a.x)/s.x,l=(n.top+a.y)/s.y,d=n.width/s.x,h=n.height/s.y;if(r&&i){const t=Tt(r),e=Ct(i)?Tt(i):i;let o=t,n=Kt(o);for(;n&&e!==o;){const t=Yt(n),e=n.getBoundingClientRect(),i=_t(n),r=e.left+(n.clientLeft+parseFloat(i.paddingLeft))*t.x,s=e.top+(n.clientTop+parseFloat(i.paddingTop))*t.y;c*=t.x,l*=t.y,d*=t.x,h*=t.y,c+=r,l+=s,o=Tt(n),n=Kt(o)}}return mt({width:d,height:h,x:c,y:l})}function Jt(t,e){const o=Nt(t).scrollLeft;return e?e.left+o:Gt(St(t)).left+o}function te(t,e){const o=t.getBoundingClientRect();return{x:o.left+e.scrollLeft-Jt(t,o),y:o.top+e.scrollTop}}function ee(t,e,o){let i;if("viewport"===e||"layoutViewport"===e)i=function(t,e,o){void 0===o&&(o="viewport");const i="layoutViewport"===o,n=Tt(t),r=St(t),s=n.visualViewport;let a=r.clientWidth,c=r.clientHeight,l=0,d=0;if(s){const t=!Ft()||"fixed"===e;i?t||(l=-s.offsetLeft,d=-s.offsetTop):(a=s.width,c=s.height,t&&(l=s.offsetLeft,d=s.offsetTop))}if(Jt(r)<=0){const t=r.ownerDocument,e=t.body,o=getComputedStyle(e),i="CSS1Compat"===t.compatMode&&parseFloat(o.marginLeft)+parseFloat(o.marginRight)||0,n=Math.abs(r.clientWidth-e.clientWidth-i),s="stable both-edges"===getComputedStyle(r).scrollbarGutter?n/2:n;s<=25&&(a-=s)}return{width:a,height:c,x:l,y:d}}(t,o,e);else if("document"===e)i=function(t){const e=Nt(t),o=t.ownerDocument.body,i=Z(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),n=Z(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let r=-e.scrollLeft+Jt(t);const s=-e.scrollTop;return"rtl"===_t(o).direction&&(r+=Z(t.clientWidth,o.clientWidth)-i),{width:i,height:n,x:r,y:s}}(St(t));else if(Ct(e))i=function(t,e){const o=Gt(t,!0,"fixed"===e),i=o.top+t.clientTop,n=o.left+t.clientLeft,r=Yt(t);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:n*r.x,y:i*r.y}}(e,o);else{const o=Qt(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return mt(i)}function oe(t,e,o){const i=jt(e),n=St(e),r="fixed"===o,s=Gt(t,!0,r,e);let a={scrollLeft:0,scrollTop:0};const c=J(0);if((i||!r)&&(("body"!==Ht(e)||Rt(n))&&(a=Nt(e)),i)){const t=Gt(e,!0,r,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}!i&&n&&(c.x=Jt(n));const l=!n||i||r?J(0):te(n,a);return{x:s.left+a.scrollLeft-c.x-l.x,y:s.top+a.scrollTop-c.y-l.y,width:s.width,height:s.height}}function ie(t){return"static"===_t(t).position}function ne(t,e){if(!jt(t)||"fixed"===_t(t).position)return null;if(e)return e(t);let o=t.offsetParent;return St(t)===o&&(o=o.ownerDocument.body),o}function re(t,e){const o=Tt(t);if(At(t))return o;if(!jt(t)){let e=It(t);for(;e&&!Wt(e);){if(Ct(e)&&!ie(e))return e;e=It(e)}return o}let i=ne(t,e);for(;i&&Ot(i)&&ie(i);)i=ne(i,e);return i&&Wt(i)&&ie(i)&&!Pt(i)?o:i||function(t){let e=It(t);for(;jt(e)&&!Wt(e);){if(Pt(e))return e;if(At(e))return null;e=It(e)}return null}(t)||o}const se={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:o,offsetParent:i,strategy:n}=t;const r="fixed"===n,s=St(i),a=!!e&&At(e.floating);if(i===s||a&&r)return o;let c={scrollLeft:0,scrollTop:0},l=J(1);const d=J(0),h=jt(i);if((h||!r)&&(("body"!==Ht(i)||Rt(s))&&(c=Nt(i)),h)){const t=Gt(i);l=Yt(i),d.x=t.x+i.clientLeft,d.y=t.y+i.clientTop}const p=!s||h||r?J(0):te(s,c);return{width:o.width*l.x,height:o.height*l.y,x:o.x*l.x-c.scrollLeft*l.x+d.x+p.x,y:o.y*l.y-c.scrollTop*l.y+d.y+p.y}},getDocumentElement:St,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:n}=t;const r=[..."clippingAncestors"===o?At(e)?[]:function(t,e){const o=e.get(t);if(o)return o;let i=qt(t,[],!1).filter((t=>Ct(t)&&"body"!==Ht(t))),n=null;const r="fixed"===_t(t).position;let s=r?It(t):t;for(;Ct(s)&&!Wt(s);){const t=_t(s),e=Pt(s),o=n?n.position:r?"fixed":"";e||"fixed"!==o&&("absolute"!==o||"static"!==t.position)?n=t:i=i.filter((t=>t!==s)),s=It(s)}return e.set(t,i),i}(e,this._c):[].concat(o),i],s=ee(e,r[0],n);let a=s.top,c=s.right,l=s.bottom,d=s.left;for(let t=1;t<r.length;t++){const o=ee(e,r[t],n);a=Z(o.top,a),c=Y(o.right,c),l=Y(o.bottom,l),d=Z(o.left,d)}return{width:c-d,height:l-a,x:d,y:a}},getOffsetParent:re,getElementRects:async function(t){const e=this.getOffsetParent||re,o=this.getDimensions,i=await o(t.floating);return{reference:oe(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(t){return t.getClientRects?Array.from(t.getClientRects()):[]},getDimensions:function(t){const{width:e,height:o}=Ut(t);return{width:e,height:o}},getScale:Yt,isElement:Ct,isRTL:function(t){return"rtl"===_t(t).direction}};function ae(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const ce=gt,le=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var o,i;const{x:n,y:r,placement:s,middlewareData:a}=e,c=await async function(t,e){const{placement:o,platform:i,elements:n}=t,r=await(null==i.isRTL?void 0:i.isRTL(n.floating)),s=it(o),a=nt(o),c="y"===at(o),l=kt.has(s)?-1:1,d=r&&c?-1:1,h=ot(e,t);let{mainAxis:p,crossAxis:u,alignmentAxis:b}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&"number"==typeof b&&(u="end"===a?-1*b:b),c?{x:u*d,y:p*l}:{x:p*l,y:u*d}}(e,t);return s===(null==(o=a.offset)?void 0:o.placement)&&null!=(i=a.arrow)&&i.alignmentOffset?{}:{x:n+c.x,y:r+c.y,data:{...c,placement:s}}}}},de=function(t){return void 0===t&&(t={}),{name:"inline",options:t,async fn(e){const{placement:o,elements:i,rects:n,platform:r,strategy:s}=e,{padding:a=2,x:c,y:l}=ot(t,e),d=Array.from(await(null==r.getClientRects?void 0:r.getClientRects(i.reference))||[]);if(!d.length)return{};const h=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=>mt(xt(t))))}(d),p=mt(xt(d)),u=ft(a),b=await r.getElementRects({reference:{getBoundingClientRect:function(){if(2===h.length&&(h[0].left>h[1].right||h[1].left>h[0].right)&&null!=c&&null!=l)return h.find((t=>c>t.left-u.left&&c<t.right+u.right&&l>t.top-u.top&&l<t.bottom+u.bottom))||p;if(h.length>=2){if("y"===at(o)){const t=h[0],e=h[h.length-1],i="top"===it(o),n=t.top,r=i?t.left:e.left;return mt({x:r,y:n,width:(i?t.right:e.right)-r,height:e.bottom-n})}const t="left"===it(o),e=Z(...h.map((t=>t.right))),i=Y(...h.map((t=>t.left))),n=h.filter((o=>t?o.left===i:o.right===e)),r=n[0].top;return mt({x:i,y:r,width:e-i,height:n[n.length-1].bottom-r})}return p}},floating:i.floating,strategy:s});return n.reference.x!==b.reference.x||n.reference.y!==b.reference.y||n.reference.width!==b.reference.width||n.reference.height!==b.reference.height?{reset:{rects:b}}:{}}}},he=function(t){return void 0===t&&(t={}),{options:t,fn(e){var o,i;const{x:n,y:r,placement:s,rects:a,middlewareData:c}=e,{offset:l=0,mainAxis:d=!0,crossAxis:h=!0}=ot(t,e),p={x:n,y:r},u=at(s),b=rt(u);let f=p[b],m=p[u];const v=ot(l,e),g="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:null!=(o=v.mainAxis)?o:0,crossAxis:null!=(i=v.crossAxis)?i:0};if(d){const t="y"===b?"height":"width",e=a.reference[b]-a.floating[t]+g.mainAxis,o=a.reference[b]+a.reference[t]-g.mainAxis;f<e?f=e:f>o&&(f=o)}if(h){var w,y;const t="y"===b?"width":"height",e=kt.has(it(s)),o=a.reference[u]-a.floating[t]+(e&&(null==(w=c.offset)?void 0:w[u])||0)+(e?0:g.crossAxis),i=a.reference[u]+a.reference[t]+(e?0:(null==(y=c.offset)?void 0:y[u])||0)-(e?g.crossAxis:0);m<o?m=o:m>i&&(m=i)}return{[b]:f,[u]:m}}}};function pe(t,e){return X[(X.indexOf(t)+e)%4]}const ue=t=>pe(t,2),be="post-flip";function fe(t={}){return{name:be,options:t,async fn(e){const{middlewareData:o,placement:i}=e;if(o.arrow?.alignmentOffset)return{};const{minSize:n={},...r}=ot(t,e),s=Math.abs(o.offset?.[at(i)]??0),a=it(i),c=await ce(e,{...r,elementContext:"reference"}),l=await ce(e,{...r,elementContext:"floating"});if(Math.max(c[a],l[a])<=0)return{};const d=o[be],h={overflow:c,minSize:n,gap:s};let p=d?.deficits??[];const u=d?.placements??await async function(t,e){const{placement:o,platform:i,elements:n}=t,{overflow:r}=e,s=it(o),a=[o,bt(o)];if(Math.min(me(s,e),me(ue(s),e))<=0)return a;const c=function(t,e,o,i){const n=nt(t);let r=function(t,e,o){switch(t){case"top":case"bottom":return o?e?ht:dt:e?dt:ht;case"left":case"right":return e?pt:ut;default:return[]}}(it(t),"start"===o,i);return n&&(r=r.map((t=>t+"-"+n)),r=r.concat(r.map(lt))),r}(o,0,"start",await(i.isRTL?.(n.floating))??!1);return c.sort(((t,e)=>r[it(t)]-r[it(e)])),[...a,...c]}(e,h);p.length<u.length&&(p=[...p,me(a,h)]);const b={placements:u,deficits:p};if(p.length<u.length)return{data:b,reset:{placement:u[p.length]}};const f=b.placements[b.deficits.indexOf(Math.min(...b.deficits))];return f===i?{data:b}:{data:b,reset:{placement:f}}}}}function me(t,{minSize:e,overflow:o,gap:i}){return i+(e[st(at(t))]??0)+o[t]}const ve=Symbol("Clipping Rect Cache"),ge={...se,getClippingRect:async function(...t){const e=t[0].element,o=this[ve].get(e);if(o)return o;const i=await se.getClippingRect.apply(this,t);return function(t,e){const o=e.ownerDocument.querySelector("post-header");if(null===o)return;let i=e;for(;!Wt(i);)if(i=It(i),jt(i)&&(At(i)||i===o))return;const n=o.getBoundingClientRect(),r=Math.max(t.y,n.bottom);t.height-=r-t.y,t.y=r}(i,e),this[ve].set(e,i),i}};const we="post-safe-space";async function ye({elements:t,platform:e,strategy:o},i){return mt(await(e.convertOffsetParentRelativeRectToViewportRelativeRect?.({offsetParent:await(e.getOffsetParent?.(t.floating)),rect:i,elements:t,strategy:o}))??i)}function xe(t,e){const o=t[e],i=t[(t=>pe(t,3))(e)],n=t[(t=>pe(t,1))(e)];return"x"===at(e)?[o,i,o,n]:[i,o,n,o]}var ke=class extends Event{oldState;newState;constructor(t,{oldState:e="",newState:o="",...i}={}){super(t,i),this.oldState=String(e||""),this.newState=String(o||"")}},ze=new WeakMap;function He(t,e,o){ze.set(t,setTimeout((()=>{ze.has(t)&&t.dispatchEvent(new ke("toggle",{cancelable:!1,oldState:e,newState:o}))}),0))}var Te=globalThis.ShadowRoot||function(){},Se=globalThis.HTMLDialogElement||function(){},Me=new WeakMap,Ce=new WeakMap,je=new WeakMap,Ee=new WeakMap;function Re(t){return Ee.get(t)||"hidden"}var Oe=new WeakMap;function Ae(t){return[...t].pop()}function Le(t,e){return!("auto"!==t.popover&&"manual"!==t.popover&&"hint"!==t.popover||!t.isConnected||e&&"showing"!==Re(t)||!e&&"hidden"!==Re(t)||t instanceof Se&&t.hasAttribute("open")||document.fullscreenElement===t)}function Be(t){if(!t)return 0;const e=Ce.get(document)||new Set,o=je.get(document)||new Set;return o.has(t)?[...o].indexOf(t)+e.size+1:e.has(t)?[...e].indexOf(t)+1:0}function De(t){let e;const o=je.get(t)||new Set,i=Ce.get(t)||new Set,n=o.size>0?o:i.size>0?i:null;return n?(e=Ae(n),e.isConnected?e:(n.delete(e),De(t))):null}function $e(t){for(const e of t||[]){if(e.isConnected)return e;t.delete(e)}return null}function Pe(t){return"function"==typeof t.getRootNode?t.getRootNode():t.parentNode?Pe(t.parentNode):t}function Fe(t){for(;t;){if(t instanceof HTMLElement&&"auto"===t.popover&&"showing"===Ee.get(t))return t;if((t=t instanceof Element&&t.assignedSlot||t.parentElement||Pe(t))instanceof Te&&(t=t.host),t instanceof Document)return}}function We(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,r=null,s=null;for(;!i;){if(r=Fe(e)||null,null===r)return;if(!o.has(r))return;"hint"!==t.popover&&"auto"!==r.popover||(i=!0),i||(e=r.parentElement)}s=o.get(r),(null===n||o.get(n)<s)&&(n=r)}(t.parentElement||Pe(t)),n}function _e(t){return!(t.hidden||t instanceof Te||(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 Ne=new WeakMap;function Ie(t){if(!Le(t,!1))return;const e=t.ownerDocument;if(!t.dispatchEvent(new ke("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"})))return;if(!Le(t,!1))return;let o=!1;const i=t.popover;let n=null;const r=We(t,Ce.get(e)||new Set),s=We(t,je.get(e)||new Set);if("auto"===i&&(qe(je.get(e)||new Set,o,!0),Ue(r||e,o,!0),n="auto"),"hint"===i&&(s?(Ue(s,o,!0),n="hint"):(qe(je.get(e)||new Set,o,!0),r?(Ue(r,o,!0),n="auto"):n="hint")),"auto"===i||"hint"===i){if(i!==t.popover||!Le(t,!1))return;De(e)||(o=!0),"auto"===n?(Ce.has(e)||Ce.set(e,new Set),Ce.get(e).add(t)):"hint"===n&&(je.has(e)||je.set(e,new Set),je.get(e).add(t))}Ne.delete(t);const a=e.activeElement;var c;t.classList.add(":popover-open"),Ee.set(t,"showing"),Me.has(e)||Me.set(e,new Set),Me.get(e).add(t),Qe(Oe.get(t),!0),c=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(_e(n))return n;n=i.nextNode()}}(c)?.focus(),o&&a&&"auto"===t.popover&&Ne.set(t,a),He(t,"closed","open")}function Ve(t,e=!1,o=!1){if(!Le(t,!0))return;const i=t.ownerDocument;if(["auto","hint"].includes(t.popover)&&(Ue(t,e,o),!Le(t,!0)))return;const n=Ce.get(i)||new Set,r=n.has(t)&&Ae(n)===t;if(Qe(Oe.get(t),!1),Oe.delete(t),o&&(t.dispatchEvent(new ke("beforetoggle",{oldState:"open",newState:"closed"})),r&&Ae(n)!==t&&Ue(t,e,o),!Le(t,!0)))return;Me.get(i)?.delete(t),n.delete(t),je.get(i)?.delete(t),t.classList.remove(":popover-open"),Ee.set(t,"hidden"),o&&He(t,"open","closed");const s=Ne.get(t);s&&(Ne.delete(t),e&&s.focus())}function qe(t,e=!1,o=!1){let i=$e(t);for(;i;)Ve(i,e,o),i=$e(t)}function Ke(t,e,o,i){let n=!1,r=!1;for(;n||!r;){r=!0;let s=null,a=!1;for(const o of e)if(o===t)a=!0;else if(a){s=o;break}if(!s)return;for(;"showing"===Re(s)&&e.size;)Ve(Ae(e),o,i);e.has(t)&&Ae(e)!==t&&(n=!0),n&&(i=!1)}}function Ue(t,e,o){const i=t.ownerDocument||t;if(t instanceof Document)return function(t,e=!1,o=!1){let i=De(t);for(;i;)Ve(i,e,o),i=De(t)}(i,e,o);je.get(i)?.has(t)?Ke(t,je.get(i),e,o):(qe(je.get(i)||new Set,e,o),Ce.get(i)?.has(t)&&Ke(t,Ce.get(i),e,o))}var Xe=new WeakMap;function Ye(t){if(!t.isTrusted)return;const e=t.composedPath()[0];if(!e)return;const o=e.ownerDocument;if(!De(o))return;const i=function(t){const e=Fe(t),o=function(t){for(;t;){const e=t.popoverTargetElement;if(e instanceof HTMLElement)return e;if((t=t.parentElement||Pe(t))instanceof Te&&(t=t.host),t instanceof Document)return}}(t);return Be(e)>Be(o)?e:o}(e);if(i&&"pointerdown"===t.type)Xe.set(o,i);else if("pointerup"===t.type){const t=Xe.get(o)===i;Xe.delete(o),t&&Ue(i||o,!1,!0)}}var Ze=new WeakMap;function Qe(t,e=!1){if(!t)return;Ze.has(t)||Ze.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=Ze.get(t);e?t.setAttribute("aria-expanded",e):t.removeAttribute("aria-expanded")}}var Ge=globalThis.ShadowRoot||function(){};function Je(t,e,o){const i=t[e];Object.defineProperty(t,e,{value(t){return i.call(this,o(t))}})}var to=/(^|[^\\]):popover-open\b/g;var eo=null;function oo(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===eo)try{(eo=new CSSStyleSheet).replaceSync(e)}catch{eo=!1}if(!1===eo){const o=document.createElement("style");o.textContent=e,t instanceof Document?t.head.prepend(o):t.prepend(o)}else t.adoptedStyleSheets=[eo,...t.adoptedStyleSheets]}var io=function(t,e,o,i){var n,r=arguments.length,s=r<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 a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};const no="--post-popovercontainer-available-width",ro="--post-popovercontainer-available-height",so="--post-popovercontainer-safe-space",ao=class{constructor(e){t(this,e),this.postBeforeShow=n(this,"postBeforeShow"),this.postShow=n(this,"postShow"),this.postHide=n(this,"postHide"),this.postBeforeToggle=n(this,"postBeforeToggle"),this.postToggle=n(this,"postToggle"),this.anchorRef=null,this.arrowRef=null,this.hasBeenOpened=!1,this.toggleTimeoutId=null,this.runningAnimation=null,this.stopAutoUpdate=null,this.placement="top",this.edgeGap=8,this.arrow=!1}connectedCallback(){"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(to,"$1.\\:popover-open")),t}window.ToggleEvent=window.ToggleEvent||ke,Je(Document.prototype,"querySelector",t),Je(Document.prototype,"querySelectorAll",t),Je(Element.prototype,"querySelector",t),Je(Element.prototype,"querySelectorAll",t),Je(Element.prototype,"matches",t),Je(Element.prototype,"closest",t),Je(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={}){Ie(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){Ve(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t={}){return"boolean"==typeof t&&(t={force:t}),"showing"===Ee.get(this)&&void 0===t.force||!1===t.force?Ve(this,!0,!0):void 0!==t.force&&!0!==t.force||Ie(this),"showing"===Ee.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 oo(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&&oo(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=Pe(this),o=this.getAttribute("popovertarget");return(e instanceof Document||e instanceof Ge)&&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 r;n(HTMLButtonElement),n(HTMLInputElement),(r=document).addEventListener("click",(t=>{const e=t.composedPath(),o=e[0];if(!(o instanceof Element)||o?.shadowRoot)return;const i=Pe(o);if(!(i instanceof Ge||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=Re(e);"show"===t.popoverTargetAction&&"showing"===o||"hide"===t.popoverTargetAction&&"hidden"===o||("showing"===o?Ve(e,!0,!0):Le(e,!1)&&(Oe.set(e,t),Ie(e)))}(n),void t.preventDefault()):void 0})),r.addEventListener("keydown",(t=>{const e=t.key,o=t.target;t.defaultPrevented||!o||"Escape"!==e&&"Esc"!==e||Ue(o.ownerDocument,!0,!0)})),r.addEventListener("pointerdown",Ye),r.addEventListener("pointerup",Ye),oo(document)}()}componentDidLoad(){this.host.addEventListener("beforetoggle",this.handleToggle.bind(this))}disconnectedCallback(){this.cleanup(),this.host.removeEventListener("beforetoggle",this.handleToggle.bind(this))}cleanup(){this.stopAutoUpdate?.(),this.runningAnimation&&(this.runningAnimation.cancel(),this.runningAnimation=null)}isOpen(){return this.host?.matches(":where(:popover-open, .popover-open)")}getContent(){return this.host?.shadowRoot.querySelector('[part="post-popovercontainer-content"]')}getContentMinSize(){const t=this.getContent();if(!t)return{};const{minWidth:e,minHeight:o}=getComputedStyle(t);return{width:Number.parseFloat(e)||0,height:Number.parseFloat(o)||0}}async show(t){this.toggleTimeoutId||!t||this.isOpen()||(this.anchorRef=t,this.host.showPopover())}async hide(){!this.toggleTimeoutId&&this.isOpen()&&(this.anchorRef=null,this.host.hidePopover(),this.postHide.emit())}async toggle(t,e){const o=this.isOpen();if(!this.host||this.toggleTimeoutId)return o;const i=!0===e||void 0===e&&!o;return o===i||i&&!t?o:(this.anchorRef=i?t:null,this.host.togglePopover(e),this.toggleTimeoutId=null,this.isOpen())}async handleToggle(t){this.toggleTimeoutId=globalThis.setTimeout((()=>this.toggleTimeoutId=null),10),"open"===t.newState?await this.handleOpen():await this.handleClose()}async handleOpen(){this.postBeforeToggle.emit({willOpen:!0}),this.postBeforeShow.emit({first:!this.hasBeenOpened}),await this.updatePosition(!0),this.startAutoUpdate();try{await this.runOpenAnimation()}catch{return}this.postToggle.emit({isOpen:!0}),this.postShow.emit({first:!this.hasBeenOpened}),this.hasBeenOpened=!0}async runOpenAnimation(){const t=this.getContent();t&&(this.runningAnimation=function(t){if(t)return t.animate([{transform:"scale(0.9)",opacity:0},{transform:"scale(1)",opacity:1}],{duration:250,easing:"ease-out",fill:"forwards"})}(t),await this.runningAnimation.finished)}async handleClose(){this.postBeforeToggle.emit({willOpen:!1}),this.cleanup(),this.host.style.removeProperty(no),this.host.style.removeProperty(ro),this.host.style.removeProperty(so),this.postToggle.emit({isOpen:!1}),this.postHide.emit()}startAutoUpdate(){this.host&&this.anchorRef&&(this.stopAutoUpdate=function(t,e,o,i){void 0===i&&(i={});const{ancestorScroll:n=!0,ancestorResize:r=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=i,l=Xt(t),d=n||r?[...l?qt(l):[],...e?qt(e):[]]:[];d.forEach((t=>{n&&t.addEventListener("scroll",o),r&&t.addEventListener("resize",o)}));const h=l&&a?function(t,e,o){let i,n=null;const r=St(t);function s(){var t;clearTimeout(i),null==(t=n)||t.disconnect(),n=null}function a(o,c){void 0===o&&(o=!1),void 0===c&&(c=1),s();const l=t.getBoundingClientRect(),{left:d,top:h,width:p,height:u}=l;if(o||e(),!p||!u)return;const b={rootMargin:-G(h)+"px "+-G(r.clientWidth-(d+p))+"px "+-G(r.clientHeight-(h+u))+"px "+-G(d)+"px",threshold:Z(0,Y(1,c))||1};let f=!0;function m(e){const o=e[0].intersectionRatio;if(!ae(l,t.getBoundingClientRect()))return a();if(o!==c){if(!f)return a();o?a(!1,o):i=setTimeout((()=>{a(!1,1e-7)}),1e3)}f=!1}try{n=new IntersectionObserver(m,{...b,root:r.ownerDocument})}catch(t){n=new IntersectionObserver(m,b)}n.observe(t)}const c=Tt(t),l=()=>a(o);return c.addEventListener("resize",l),a(!0),()=>{c.removeEventListener("resize",l),s()}}(l,o,r):null;let p,u=-1,b=null;s&&(b=new ResizeObserver((t=>{let[i]=t;i&&i.target===l&&b&&e&&(b.unobserve(e),cancelAnimationFrame(u),u=requestAnimationFrame((()=>{var t;null==(t=b)||t.observe(e)}))),o()})),l&&!c&&b.observe(l),e&&b.observe(e));let f=c?Gt(t):null;return c&&function e(){const i=Gt(t);f&&!ae(f,i)&&o(),f=i,p=requestAnimationFrame(e)}(),o(),()=>{var t;d.forEach((t=>{n&&t.removeEventListener("scroll",o),r&&t.removeEventListener("resize",o)})),null==h||h(),null==(t=b)||t.disconnect(),b=null,c&&cancelAnimationFrame(p)}}(this.anchorRef,this.host,(()=>this.updatePosition(this.autoResize))))}async updatePosition(t=!1){const{x:e,y:o,middlewareData:i,placement:n}=await this.computePosition(t);i.hide?.referenceHidden?this.host.hidePopover():(this.side=it(n),this.host.style.left=`${e}px`,this.host.style.top=`${o}px`,i.arrow&&(this.arrowRef.style.left=i.arrow.x?`${i.arrow.x}px`:"",this.arrowRef.style.top=i.arrow.y?`${i.arrow.y}px`:"",this.arrowRef.style[ue(this.side)]=`-${this.arrowRef.offsetWidth/2}px`),i[we]&&this.host.style.setProperty(so,i[we].polygon))}async computePosition(t){const e=this.edgeGap??0,o=[le(this.offset??(this.arrow?e+4:e)),de()],i=fe({padding:e,minSize:this.getContentMinSize()}),n=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:i,placement:n,platform:r}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=ot(t,e),d={x:o,y:i},h=await r.detectOverflow(e,l),p=at(n),u=rt(p);let b=d[u],f=d[p];const m=(t,e)=>et(e+h["y"===t?"top":"left"],e,e-h["y"===t?"bottom":"right"]);s&&(b=m(u,b)),a&&(f=m(p,f));const v=c.fn({...e,[u]:b,[p]:f});return{...v,data:{x:v.x-o,y:v.y-i,enabled:{[u]:s,[p]:a}}}}}}({limiter:he({offset:32}),padding:e});return this.placement?.includes("-")?o.push(i,n):o.push(n,i),t&&o.push(function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:o,rects:i,platform:n,elements:r}=e,{apply:s=()=>{},...a}=ot(t,e),c=await n.detectOverflow(e,a),l=it(o),d=nt(o),h="y"===at(o),{width:p,height:u}=i.floating;let b,f;"top"===l||"bottom"===l?(b=l,f=d===(await(null==n.isRTL?void 0:n.isRTL(r.floating))?"start":"end")?"left":"right"):(f=l,b="end"===d?"top":"bottom");const m=u-c.top-c.bottom,v=p-c.left-c.right,g=Y(u-c[b],m),w=Y(p-c[f],v),y=e.middlewareData.shift;let x=g,k=w;null!=y&&y.enabled.x&&(k=v),null!=y&&y.enabled.y&&(x=m),!y&&!d&&(h?k=p-2*Z(c.left,c.right):x=u-2*Z(c.top,c.bottom)),await s({...e,availableWidth:k,availableHeight:x});const z=await n.getDimensions(r.floating);return p!==z.width||u!==z.height?{reset:{rects:!0}}:{}}}}({padding:e,apply({availableWidth:t,availableHeight:e,elements:o}){o.floating.style.setProperty(no,`${Math.max(0,t)}px`),o.floating.style.setProperty(ro,`${Math.max(0,e)}px`)}})),this.arrow&&o.push((t=>({name:"arrow",options:t,async fn(e){const{x:o,y:i,placement:n,rects:r,platform:s,elements:a,middlewareData:c}=e,{element:l,padding:d=0}=ot(t,e)||{};if(null==l)return{};const h=ft(d),p={x:o,y:i},u=ct(n),b=st(u),f=await s.getDimensions(l),m="y"===u,v=m?"top":"left",g=m?"bottom":"right",w=m?"clientHeight":"clientWidth",y=r.reference[b]+r.reference[u]-p[u]-r.floating[b],x=p[u]-r.reference[u],k=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let z=k?k[w]:0;z&&await(null==s.isElement?void 0:s.isElement(k))||(z=a.floating[w]||r.floating[b]);const H=y/2-x/2,T=z/2-f[b]/2-1,S=Y(h[v],T),M=Y(h[g],T),C=z-f[b]-M,j=z/2-f[b]/2+H,E=et(S,j,C),R=!c.arrow&&null!=nt(n)&&j!==E&&r.reference[b]/2-(j<S?S:M)-f[b]/2<0,O=R?j<S?j-S:j-C:0;return{[u]:p[u]+O,data:{[u]:E,centerOffset:j-E-O,...R&&{alignmentOffset:O}},reset:R}}}))({element:this.arrowRef,padding:e})),this.safeSpace&&o.push({name:we,async fn(t){const{placement:e,rects:o,x:i,y:n}=t,r=it(e),s=await ye(t,o.reference),a=[...xe(await ye(t,{...o.floating,x:i,y:n}),ue(r)),...xe(s,r)],c=[];for(let t=0;t<a.length;t+=2)c.push(`${a[t]}px ${a[t+1]}px`);return{data:{polygon:`polygon(${c.join(", ")})`}}}}),this.autoHide&&o.push(function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{rects:o,platform:i}=e,{strategy:n="referenceHidden",...r}=ot(t,e);switch(n){case"referenceHidden":{const t=wt(await i.detectOverflow(e,{...r,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:yt(t)}}}case"escaped":{const t=wt(await i.detectOverflow(e,{...r,altBoundary:!0}),o.floating);return{data:{escapedOffsets:t,escaped:yt(t)}}}default:return{}}}}}({strategy:"referenceHidden"})),r=this.anchorRef,s=this.host,a={placement:this.placement??"top",strategy:"fixed",middleware:o},a??={},((t,e,o)=>{const i=new Map,n=null!=o?o:{},r={...se,...n.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:n="absolute",middleware:r=[],platform:s}=o,a=s.detectOverflow?s:{...s,detectOverflow:gt},c=await(null==s.isRTL?void 0:s.isRTL(e));let l=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:d,y:h}=vt(l,i,c),p=i,u=0;const b={};for(let o=0;o<r.length;o++){const f=r[o];if(!f)continue;const{name:m,fn:v}=f,{x:g,y:w,data:y,reset:x}=await v({x:d,y:h,initialPlacement:i,placement:p,strategy:n,middlewareData:b,rects:l,platform:a,elements:{reference:t,floating:e}});d=null!=g?g:d,h=null!=w?w:h,b[m]={...b[m],...y},x&&u<50&&(u++,"object"==typeof x&&(x.placement&&(p=x.placement),x.rects&&(l=!0===x.rects?await s.getElementRects({reference:t,floating:e,strategy:n}):x.rects),({x:d,y:h}=vt(l,p,c))),o=-1)}return{x:d,y:h,placement:p,strategy:n,middlewareData:b}})(t,e,{...n,platform:r})})(r,s,{...a,platform:{...ge,...a.platform,[ve]:new Map}});var r,s,a}render(){return e(o,{key:"d48b21174f74b790f8a72b4294e9f741c3b64d14","data-version":c,popover:"auto"},e("div",{key:"455e84294ecb36e25cc62582eb6c41058f24f6bc",part:"post-popovercontainer-content"},this.arrow&&e("span",{key:"9d11f2596443876123eeaf5a02430d049c1c8b25","data-side":this.side,class:"arrow",ref:t=>this.arrowRef=t}),e("span",{key:"a562460cdfa5539e7d9c23f1d044a2c045df5b9f",part:"post-popovercontainer-border-mask"}),e("slot",{key:"5aa546bbdf6c70e2a0afabf818d421581060f8a7"})))}get host(){return i(this)}};io([l(x)],ao.prototype,"placement",void 0),io([f("number")],ao.prototype,"edgeGap",void 0),ao.style='@layer polyfill{@supports not selector(:popover-open){:host([popover]:not(.\\:popover-open)){display:none}}}:host{background-color:rgba(0,0,0,0);border:rgba(0,0,0,0);position:fixed;margin:0;padding:0;overflow:visible}:host [part=post-popovercontainer-content]{box-sizing:border-box;box-shadow:var(--post-device-elevation-300);width:max-content;max-width:var(--post-popovercontainer-available-width);max-height:var(--post-popovercontainer-available-height);color:var(--post-current-fg);background-color:var(--post-current-bg);border-radius:4px;position:relative;display:flex}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host [part=post-popovercontainer-content]{border:2px solid rgba(0,0,0,0)}}:host [part=post-popovercontainer-border-mask]{display:none;position:absolute;inset:0;border-radius:4px;pointer-events:none}:host .arrow{--post-popovercontainer-arrow-border: var(--post-popovercontainer-arrow-border-width, 0px) solid var(--post-popovercontainer-arrow-border-color, transparent);position:absolute;width:.5825rem;height:.5825rem;background-color:inherit;rotate:45deg;pointer-events:none;z-index:-1}:host .arrow[data-side=top]{border-bottom-right-radius:2px;border-bottom:var(--post-popovercontainer-arrow-border);border-right:var(--post-popovercontainer-arrow-border)}:host .arrow[data-side=right]{border-bottom-left-radius:2px;border-bottom:var(--post-popovercontainer-arrow-border);border-left:var(--post-popovercontainer-arrow-border)}:host .arrow[data-side=bottom]{border-top-left-radius:2px;border-top:var(--post-popovercontainer-arrow-border);border-left:var(--post-popovercontainer-arrow-border)}:host .arrow[data-side=left]{border-top-right-radius:2px;border-top:var(--post-popovercontainer-arrow-border);border-right:var(--post-popovercontainer-arrow-border)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .arrow[data-side=top]{border-block-end:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0);bottom:-0.3796735336rem !important}:host .arrow[data-side=left]{border-block-start:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0);right:-0.3796735336rem !important}:host .arrow[data-side=right]{border-block-end:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0);left:-0.3796735336rem !important}:host .arrow[data-side=bottom]{border-block-start:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0);top:-0.3796735336rem !important}}:host([tooltip]){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}:host([safe-space])::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:auto;clip-path:var(--post-popovercontainer-safe-space, polygon(0 0, 0 0, 0 0))}:host(:not(:has(.arrow)))>div{box-shadow:var(--post-device-elevation-300)}:host(: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))}:host(:has(.arrow[data-side=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))}:host(:has(.arrow[data-side=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))}:host(:has(.arrow[data-side=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))}';const co=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()),{capture:!0}),this.host.addEventListener("keydown",(t=>this.handleKeydown(t)),{capture:!0})}render(){return e(o,{key:"81fa9d922480059096e4146c10cf2ef72357b482","data-version":c,role:"button",tabindex:"0","aria-pressed":this.toggled.toString()},e("slot",{key:"4e8d793e3867ba4c9c8e17d509652309a79f032a"}))}get host(){return i(this)}};co.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{S as post_closebutton,j as post_header,O as post_icon,B as post_language_menu,$ as post_language_menu_item,P as post_logo,F as post_mainnavigation,_ as post_megadropdown,I as post_megadropdown_trigger,q as post_menu,K as post_menu_item,U as post_menu_trigger,ao as post_popovercontainer,co as post_togglebutton}
@@ -1 +1 @@
1
- import{r as t,c as s,h as i,H as e,a as o}from"./p-BjziJWh2.js";import"./p-I1j7a0bW.js";import{E as h}from"./p-BEcxHjuM.js";import{v as a}from"./p-T8T3po4z.js";const c=class{constructor(i){t(this,i),this.postOptionActive=s(this,"postOptionActive"),this.highlightedIndex=-1,this.visibleOptions=[],this.diacriticPattern=/[\u0300-\u036F]/u,this.registerOptions=()=>{this.visibleOptions=this.options},this.updateSelection=t=>{this.options.forEach((s=>{s.selected=s.value===t,s.highlighted=!1})),this.highlightedIndex=-1,this.clearActive()},this.clearActive=()=>{this.highlightedIndex=-1,this.postOptionActive.emit(null)},this.normalizeText=t=>t.trim().normalize("NFD").replace(this.diacriticPattern,"").toLocaleLowerCase(),this.resetFilter=()=>{this.visibleOptions=this.options,this.options.forEach((t=>{t.hidden=!1,t.highlighted=!1}))}}get options(){return Array.from(this.host.querySelectorAll("post-listbox-option"))}get inputElement(){let t=this.host.closest("post-autocomplete");return t||(t=document.querySelector(`post-autocomplete[listbox="${this.host.id}"]`)),t?.querySelector("input")}componentWillLoad(){this.registerOptions()}async show(){const t=this.inputElement;t&&this.popoverContainer?.show(t)}async hide(){this.popoverContainer?.hide()}async filter(t){const s=this.normalizeText(t);s?this.visibleOptions=this.options.filter((t=>{const i=this.normalizeText(t.textContent),e=this.normalizeText(t.value).includes(s)||i.includes(s);return t.hidden=!e,e})):this.resetFilter(),this.clearActive()}async clearSelection(){this.updateSelection()}async navigate(t){if(0===this.visibleOptions.length)return;switch(this.highlightedIndex>=0&&(this.visibleOptions[this.highlightedIndex].highlighted=!1),t){case"first":this.highlightedIndex=0;break;case"last":this.highlightedIndex=this.visibleOptions.length-1;break;case"up":this.highlightedIndex=(this.highlightedIndex-1+this.visibleOptions.length)%this.visibleOptions.length;break;case"down":this.highlightedIndex=(this.highlightedIndex+1)%this.visibleOptions.length}const s=this.visibleOptions[this.highlightedIndex];s.scrollIntoView({behavior:"smooth",block:"end"}),s.highlighted=!0,this.postOptionActive.emit(s.id)}async selectActive(){if(this.highlightedIndex>=0){const t=this.visibleOptions[this.highlightedIndex];this.updateSelection(t.value),this.host.dispatchEvent(new CustomEvent("postOptionSelected",{bubbles:!0,detail:t.value}))}}optionClicked(t){this.updateSelection(t.detail)}render(){return i(e,{key:"a59296af752a3f88bcd70663d0ce12f61718e92f","data-version":a,role:"listbox"},i("post-popovercontainer",{key:"665dd563705515022edc79a4d98e9ac43b80c525",placement:"bottom-start",ref:t=>this.popoverContainer=t},i("slot",{key:"d8a37fd905dfaca07286913a0c680e61744d65e1",name:"blank-slate"}),i("slot",{key:"22e367ae36329d0586e1a275692983cf0c004df4"})))}get host(){return o(this)}};(function(t,s,i,e){var o,h=arguments.length,a=h<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,s,i,e);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(h<3?o(a):h>3?o(s,i,a):o(s,i))||a);h>3&&a&&Object.defineProperty(s,i,a)})([h("post-listbox-option")],c.prototype,"optionClicked",null),c.style="post-popovercontainer{border-radius:4px;overflow:hidden;box-shadow:var(--post-device-elevation-300)}div[role=listbox]{max-height:384px;overflow:auto;display:flex;flex-direction:column}";export{c as post_listbox}
1
+ import{r as t,c as s,h as i,H as e,a as o}from"./p-D0jX3Fts.js";import"./p-I1j7a0bW.js";import{E as h}from"./p-BEcxHjuM.js";import{v as a}from"./p-BdiQsTQm.js";const c=class{constructor(i){t(this,i),this.postOptionActive=s(this,"postOptionActive"),this.highlightedIndex=-1,this.visibleOptions=[],this.diacriticPattern=/[\u0300-\u036F]/u,this.registerOptions=()=>{this.visibleOptions=this.options},this.updateSelection=t=>{this.options.forEach((s=>{s.selected=s.value===t,s.highlighted=!1})),this.highlightedIndex=-1,this.clearActive()},this.clearActive=()=>{this.highlightedIndex=-1,this.postOptionActive.emit(null)},this.normalizeText=t=>t.trim().normalize("NFD").replace(this.diacriticPattern,"").toLocaleLowerCase(),this.resetFilter=()=>{this.visibleOptions=this.options,this.options.forEach((t=>{t.hidden=!1,t.highlighted=!1}))}}get options(){return Array.from(this.host.querySelectorAll("post-listbox-option"))}get inputElement(){let t=this.host.closest("post-autocomplete");return t||(t=document.querySelector(`post-autocomplete[listbox="${this.host.id}"]`)),t?.querySelector("input")}componentWillLoad(){this.registerOptions()}async show(){const t=this.inputElement;t&&this.popoverContainer?.show(t)}async hide(){this.popoverContainer?.hide()}async filter(t){const s=this.normalizeText(t);s?this.visibleOptions=this.options.filter((t=>{const i=this.normalizeText(t.textContent),e=this.normalizeText(t.value).includes(s)||i.includes(s);return t.hidden=!e,e})):this.resetFilter(),this.clearActive()}async clearSelection(){this.updateSelection()}async navigate(t){if(0===this.visibleOptions.length)return;switch(this.highlightedIndex>=0&&(this.visibleOptions[this.highlightedIndex].highlighted=!1),t){case"first":this.highlightedIndex=0;break;case"last":this.highlightedIndex=this.visibleOptions.length-1;break;case"up":this.highlightedIndex=(this.highlightedIndex-1+this.visibleOptions.length)%this.visibleOptions.length;break;case"down":this.highlightedIndex=(this.highlightedIndex+1)%this.visibleOptions.length}const s=this.visibleOptions[this.highlightedIndex];s.scrollIntoView({behavior:"smooth",block:"end"}),s.highlighted=!0,this.postOptionActive.emit(s.id)}async selectActive(){if(this.highlightedIndex>=0){const t=this.visibleOptions[this.highlightedIndex];this.updateSelection(t.value),this.host.dispatchEvent(new CustomEvent("postOptionSelected",{bubbles:!0,detail:t.value}))}}optionClicked(t){this.updateSelection(t.detail)}render(){return i(e,{key:"a59296af752a3f88bcd70663d0ce12f61718e92f","data-version":a,role:"listbox"},i("post-popovercontainer",{key:"665dd563705515022edc79a4d98e9ac43b80c525",placement:"bottom-start",ref:t=>this.popoverContainer=t},i("slot",{key:"d8a37fd905dfaca07286913a0c680e61744d65e1",name:"blank-slate"}),i("slot",{key:"22e367ae36329d0586e1a275692983cf0c004df4"})))}get host(){return o(this)}};(function(t,s,i,e){var o,h=arguments.length,a=h<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,s,i,e);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(h<3?o(a):h>3?o(s,i,a):o(s,i))||a);h>3&&a&&Object.defineProperty(s,i,a)})([h("post-listbox-option")],c.prototype,"optionClicked",null),c.style="post-popovercontainer{border-radius:4px;overflow:hidden;box-shadow:var(--post-device-elevation-300)}div[role=listbox]{max-height:384px;overflow:auto;display:flex;flex-direction:column}";export{c as post_listbox}