@swisspost/design-system-components 9.0.0-next.7 → 9.0.0-next.8

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 (277) hide show
  1. package/dist/cjs/index-e1f32cce.js +4 -0
  2. package/dist/cjs/index.cjs.js +24 -22
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/{package-bc44930e.js → package-a2b895fc.js} +1 -1
  5. package/dist/cjs/{post-accordion-c55fef06.js → post-accordion-3ce01432.js} +2 -2
  6. package/dist/cjs/post-accordion-item-81601b1e.js +62 -0
  7. package/dist/cjs/post-accordion-item.cjs.entry.js +2 -2
  8. package/dist/cjs/post-accordion.cjs.entry.js +2 -2
  9. package/dist/cjs/{post-avatar-10d7b5c0.js → post-avatar-b1c97f51.js} +1 -1
  10. package/dist/cjs/post-avatar.cjs.entry.js +2 -2
  11. package/dist/cjs/post-back-to-top-0ce98569.js +98 -0
  12. package/dist/cjs/post-back-to-top.cjs.entry.js +14 -0
  13. package/dist/cjs/{post-banner-b286d37f.js → post-banner-8611eab5.js} +4 -4
  14. package/dist/cjs/post-banner.cjs.entry.js +2 -2
  15. package/dist/cjs/{post-breadcrumb-item-8cdc59a8.js → post-breadcrumb-item-2075462a.js} +2 -2
  16. package/dist/cjs/post-breadcrumb-item.cjs.entry.js +2 -2
  17. package/dist/cjs/post-card-control-acd30573.js +272 -0
  18. package/dist/cjs/post-card-control.cjs.entry.js +2 -2
  19. package/dist/cjs/post-closebutton_10.cjs.entry.js +2 -2
  20. package/dist/cjs/{post-collapsible-trigger-c8b3e767.js → post-collapsible-trigger-8ca4d85b.js} +2 -2
  21. package/dist/cjs/post-collapsible_2.cjs.entry.js +2 -2
  22. package/dist/cjs/post-components.cjs.js +1 -1
  23. package/dist/cjs/{post-language-option-8c1ec4fd.js → post-language-option-cf32d0ed.js} +2 -2
  24. package/dist/cjs/post-language-option.cjs.entry.js +2 -2
  25. package/dist/cjs/{post-megadropdown-trigger-9b9f1036.js → post-megadropdown-trigger-7376d867.js} +12 -12
  26. package/dist/cjs/{post-menu-5a71a6fe.js → post-menu-a3b7b63b.js} +2 -2
  27. package/dist/cjs/{post-menu-item-5c5c1aaf.js → post-menu-item-28ab1a72.js} +2 -2
  28. package/dist/cjs/post-menu-item.cjs.entry.js +2 -2
  29. package/dist/cjs/{post-menu-trigger-02d128c4.js → post-menu-trigger-821839f5.js} +2 -2
  30. package/dist/cjs/post-menu-trigger.cjs.entry.js +2 -2
  31. package/dist/cjs/post-menu.cjs.entry.js +2 -2
  32. package/dist/cjs/{post-popover-91a83e9d.js → post-popover-c4f50134.js} +2 -2
  33. package/dist/cjs/post-popover.cjs.entry.js +2 -2
  34. package/dist/cjs/{post-rating-57fcf949.js → post-rating-3a87ca46.js} +2 -2
  35. package/dist/cjs/post-rating.cjs.entry.js +2 -2
  36. package/dist/cjs/{post-tab-header-ce56b760.js → post-tab-header-5fdb05a1.js} +2 -2
  37. package/dist/cjs/post-tab-header.cjs.entry.js +2 -2
  38. package/dist/cjs/{post-tab-panel-70e49260.js → post-tab-panel-34aed8e6.js} +2 -2
  39. package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
  40. package/dist/cjs/{post-tabs-39262e55.js → post-tabs-dd2da5d2.js} +2 -2
  41. package/dist/cjs/post-tabs.cjs.entry.js +2 -2
  42. package/dist/cjs/{post-tag-b6bc5785.js → post-tag-59232922.js} +2 -2
  43. package/dist/cjs/post-tag.cjs.entry.js +2 -2
  44. package/dist/cjs/{post-togglebutton-2f39442e.js → post-togglebutton-59c6357b.js} +2 -2
  45. package/dist/cjs/post-togglebutton.cjs.entry.js +2 -2
  46. package/dist/cjs/{post-tooltip-8be3b2aa.js → post-tooltip-3e0c1509.js} +2 -2
  47. package/dist/cjs/post-tooltip.cjs.entry.js +2 -2
  48. package/dist/collection/animations/slide.js +23 -0
  49. package/dist/collection/collection-manifest.json +1 -0
  50. package/dist/collection/components/post-accordion/post-accordion.css +1 -1
  51. package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
  52. package/dist/collection/components/post-accordion-item/post-accordion-item.js +17 -5
  53. package/dist/collection/components/post-back-to-top/post-back-to-top.css +1 -0
  54. package/dist/collection/components/post-back-to-top/post-back-to-top.js +107 -0
  55. package/dist/collection/components/post-banner/post-banner.js +3 -3
  56. package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +1 -1
  57. package/dist/collection/components/post-card-control/post-card-control.css +1 -1
  58. package/dist/collection/components/post-card-control/post-card-control.js +2 -2
  59. package/dist/collection/components/post-closebutton/post-closebutton.js +1 -1
  60. package/dist/collection/components/post-collapsible/post-collapsible.js +1 -1
  61. package/dist/collection/components/post-header/post-header.js +1 -1
  62. package/dist/collection/components/post-icon/post-icon.js +1 -1
  63. package/dist/collection/components/post-language-option/post-language-option.js +1 -1
  64. package/dist/collection/components/post-list/post-list.js +1 -1
  65. package/dist/collection/components/post-list-item/post-list-item.js +1 -1
  66. package/dist/collection/components/post-logo/post-logo.js +1 -1
  67. package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +1 -1
  68. package/dist/collection/components/post-megadropdown/post-megadropdown.js +1 -1
  69. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +1 -1
  70. package/dist/collection/components/post-menu/post-menu.js +1 -1
  71. package/dist/collection/components/post-menu-item/post-menu-item.js +1 -1
  72. package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +1 -1
  73. package/dist/collection/components/post-popover/post-popover.js +1 -1
  74. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +2 -2
  75. package/dist/collection/components/post-rating/post-rating.js +1 -1
  76. package/dist/collection/components/post-tab-header/post-tab-header.js +1 -1
  77. package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
  78. package/dist/collection/components/post-tabs/post-tabs.js +1 -1
  79. package/dist/collection/components/post-tag/post-tag.js +1 -1
  80. package/dist/collection/components/post-togglebutton/post-togglebutton.js +1 -1
  81. package/dist/collection/components/post-tooltip/post-tooltip.js +1 -1
  82. package/dist/collection/index.js +1 -0
  83. package/dist/components/index.js +1 -0
  84. package/dist/components/package.js +1 -1
  85. package/dist/components/post-accordion-item2.js +26 -9
  86. package/dist/components/post-accordion2.js +1 -1
  87. package/dist/components/post-back-to-top.d.ts +11 -0
  88. package/dist/components/post-back-to-top.js +6 -0
  89. package/dist/components/post-back-to-top2.js +123 -0
  90. package/dist/components/post-banner2.js +3 -3
  91. package/dist/components/post-breadcrumb-item2.js +1 -1
  92. package/dist/components/post-card-control2.js +3 -3
  93. package/dist/components/post-closebutton2.js +1 -1
  94. package/dist/components/post-collapsible2.js +1 -1
  95. package/dist/components/post-header2.js +1 -1
  96. package/dist/components/post-icon2.js +1 -1
  97. package/dist/components/post-language-option2.js +1 -1
  98. package/dist/components/post-list-item2.js +1 -1
  99. package/dist/components/post-list2.js +1 -1
  100. package/dist/components/post-logo2.js +1 -1
  101. package/dist/components/post-mainnavigation2.js +1 -1
  102. package/dist/components/post-megadropdown-trigger2.js +1 -1
  103. package/dist/components/post-megadropdown2.js +1 -1
  104. package/dist/components/post-menu-item2.js +1 -1
  105. package/dist/components/post-menu-trigger2.js +1 -1
  106. package/dist/components/post-menu2.js +1 -1
  107. package/dist/components/post-popover2.js +1 -1
  108. package/dist/components/post-popovercontainer2.js +2 -2
  109. package/dist/components/post-rating2.js +1 -1
  110. package/dist/components/post-tab-header2.js +1 -1
  111. package/dist/components/post-tab-panel2.js +1 -1
  112. package/dist/components/post-tabs2.js +1 -1
  113. package/dist/components/post-tag2.js +1 -1
  114. package/dist/components/post-togglebutton2.js +1 -1
  115. package/dist/components/post-tooltip2.js +1 -1
  116. package/dist/docs.json +66 -1
  117. package/dist/esm/index-e1b64755.js +4 -0
  118. package/dist/esm/index.js +23 -22
  119. package/dist/esm/loader.js +1 -1
  120. package/dist/esm/package-9cafe148.js +3 -0
  121. package/dist/esm/{post-accordion-7268e29b.js → post-accordion-19e88941.js} +2 -2
  122. package/dist/esm/post-accordion-item-33bbe4de.js +60 -0
  123. package/dist/esm/post-accordion-item.entry.js +2 -2
  124. package/dist/esm/post-accordion.entry.js +2 -2
  125. package/dist/esm/{post-avatar-19162f90.js → post-avatar-d15a9f9e.js} +1 -1
  126. package/dist/esm/post-avatar.entry.js +2 -2
  127. package/dist/esm/post-back-to-top-bcf46150.js +96 -0
  128. package/dist/esm/post-back-to-top.entry.js +6 -0
  129. package/dist/esm/{post-banner-132709ad.js → post-banner-bf5e6a18.js} +4 -4
  130. package/dist/esm/post-banner.entry.js +2 -2
  131. package/dist/esm/{post-breadcrumb-item-5a77f988.js → post-breadcrumb-item-e3b41f74.js} +2 -2
  132. package/dist/esm/post-breadcrumb-item.entry.js +2 -2
  133. package/dist/esm/post-card-control-f0788f6f.js +270 -0
  134. package/dist/esm/post-card-control.entry.js +2 -2
  135. package/dist/esm/post-closebutton_10.entry.js +2 -2
  136. package/dist/esm/{post-collapsible-trigger-43fbbf03.js → post-collapsible-trigger-1d939eb6.js} +2 -2
  137. package/dist/esm/post-collapsible_2.entry.js +2 -2
  138. package/dist/esm/post-components.js +1 -1
  139. package/dist/esm/{post-language-option-f41240c3.js → post-language-option-1436370d.js} +2 -2
  140. package/dist/esm/post-language-option.entry.js +2 -2
  141. package/dist/esm/{post-megadropdown-trigger-813b5140.js → post-megadropdown-trigger-210b4ab3.js} +12 -12
  142. package/dist/esm/{post-menu-62c3e49a.js → post-menu-e853e28b.js} +2 -2
  143. package/dist/esm/{post-menu-item-f63a1521.js → post-menu-item-86d4c7ab.js} +2 -2
  144. package/dist/esm/post-menu-item.entry.js +2 -2
  145. package/dist/esm/{post-menu-trigger-b84f728d.js → post-menu-trigger-80c2bdf4.js} +2 -2
  146. package/dist/esm/post-menu-trigger.entry.js +2 -2
  147. package/dist/esm/post-menu.entry.js +2 -2
  148. package/dist/esm/{post-popover-abae1f3a.js → post-popover-7195d05a.js} +2 -2
  149. package/dist/esm/post-popover.entry.js +2 -2
  150. package/dist/esm/{post-rating-b963d4f2.js → post-rating-8baf86fe.js} +2 -2
  151. package/dist/esm/post-rating.entry.js +2 -2
  152. package/dist/esm/{post-tab-header-c16feb72.js → post-tab-header-a1d1d9d0.js} +2 -2
  153. package/dist/esm/post-tab-header.entry.js +2 -2
  154. package/dist/esm/{post-tab-panel-cb02df49.js → post-tab-panel-afce8d40.js} +2 -2
  155. package/dist/esm/post-tab-panel.entry.js +2 -2
  156. package/dist/esm/{post-tabs-81085d7b.js → post-tabs-fbb42496.js} +2 -2
  157. package/dist/esm/post-tabs.entry.js +2 -2
  158. package/dist/esm/{post-tag-103bfff5.js → post-tag-d67b6a19.js} +2 -2
  159. package/dist/esm/post-tag.entry.js +2 -2
  160. package/dist/esm/{post-togglebutton-0e714838.js → post-togglebutton-c3fb912d.js} +2 -2
  161. package/dist/esm/post-togglebutton.entry.js +2 -2
  162. package/dist/esm/{post-tooltip-2c5ff736.js → post-tooltip-7101ed24.js} +2 -2
  163. package/dist/esm/post-tooltip.entry.js +2 -2
  164. package/dist/post-components/index.esm.js +1 -1
  165. package/dist/post-components/{p-0f699dbc.js → p-00fa0152.js} +1 -1
  166. package/dist/post-components/p-1667387e.entry.js +1 -0
  167. package/dist/post-components/p-19551c18.entry.js +1 -0
  168. package/dist/post-components/p-1b627f80.js +1 -0
  169. package/dist/post-components/p-24673919.js +1 -0
  170. package/dist/post-components/p-266b734f.entry.js +1 -0
  171. package/dist/post-components/{p-bb103905.js → p-282115c4.js} +1 -1
  172. package/dist/post-components/p-2d0ffc1e.entry.js +1 -0
  173. package/dist/post-components/p-45018d7e.entry.js +1 -0
  174. package/dist/post-components/{p-8b6f7f04.js → p-485dafcf.js} +1 -1
  175. package/dist/post-components/{p-2a456317.js → p-4a647a78.js} +1 -1
  176. package/dist/post-components/p-4abfa65b.js +1 -0
  177. package/dist/post-components/{p-816623f0.entry.js → p-517f2b1f.entry.js} +1 -1
  178. package/dist/post-components/p-55224ee7.entry.js +1 -0
  179. package/dist/post-components/{p-31d38040.js → p-558a9849.js} +1 -1
  180. package/dist/post-components/{p-9abe554b.js → p-59b31557.js} +1 -1
  181. package/dist/post-components/p-5d1db85c.entry.js +1 -0
  182. package/dist/post-components/{p-ed834dde.js → p-61e79941.js} +1 -1
  183. package/dist/post-components/p-679978de.entry.js +1 -0
  184. package/dist/post-components/p-6a842b96.entry.js +1 -0
  185. package/dist/post-components/{p-6f56a13d.js → p-6cea23cd.js} +2 -2
  186. package/dist/post-components/{p-da449573.js → p-71f03424.js} +1 -1
  187. package/dist/post-components/p-8c2568c1.entry.js +1 -0
  188. package/dist/post-components/p-8fd3a3cb.entry.js +1 -0
  189. package/dist/post-components/{p-fa7af203.js → p-939f2ba7.js} +1 -1
  190. package/dist/post-components/p-a4c39296.entry.js +1 -0
  191. package/dist/post-components/p-af5d3b89.entry.js +1 -0
  192. package/dist/post-components/p-b4423249.entry.js +1 -0
  193. package/dist/post-components/{p-339e000e.entry.js → p-c31a7d65.entry.js} +1 -1
  194. package/dist/post-components/p-c544bb82.js +1 -0
  195. package/dist/post-components/{p-d4465c2b.js → p-ccb6dfa1.js} +1 -1
  196. package/dist/post-components/{p-c819933c.js → p-d0b8820a.js} +1 -1
  197. package/dist/post-components/{p-d4cef624.js → p-d36adfb5.js} +1 -1
  198. package/dist/post-components/p-da6a8268.entry.js +1 -0
  199. package/dist/post-components/p-ece14d88.js +1 -0
  200. package/dist/post-components/p-f0f8427e.js +1 -0
  201. package/dist/post-components/p-f2e1b4d8.js +1 -0
  202. package/dist/post-components/p-f627744e.js +1 -0
  203. package/dist/post-components/p-f7b6b96a.entry.js +1 -0
  204. package/dist/post-components/p-f812e93d.entry.js +1 -0
  205. package/dist/post-components/{p-3e65ba47.js → p-f8d41c32.js} +1 -1
  206. package/dist/post-components/p-fe516cdf.entry.js +1 -0
  207. package/dist/post-components/p-fe7467fb.entry.js +1 -0
  208. package/dist/post-components/post-components.esm.js +1 -1
  209. package/dist/types/animations/slide.d.ts +2 -0
  210. package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +5 -1
  211. package/dist/types/components/post-back-to-top/post-back-to-top.d.ts +19 -0
  212. package/dist/types/components.d.ts +21 -0
  213. package/dist/types/index.d.ts +1 -0
  214. package/loaders/index.d.ts +2 -0
  215. package/loaders/index.js +1 -0
  216. package/loaders/package.js +1 -1
  217. package/loaders/post-accordion-item.js +26 -9
  218. package/loaders/post-accordion.js +1 -1
  219. package/loaders/post-back-to-top.d.ts +11 -0
  220. package/loaders/post-back-to-top.js +126 -0
  221. package/loaders/post-banner.js +3 -3
  222. package/loaders/post-breadcrumb-item.js +1 -1
  223. package/loaders/post-card-control.js +3 -3
  224. package/loaders/post-closebutton.js +1 -1
  225. package/loaders/post-collapsible2.js +1 -1
  226. package/loaders/post-header.js +1 -1
  227. package/loaders/post-icon2.js +1 -1
  228. package/loaders/post-language-option.js +1 -1
  229. package/loaders/post-list-item.js +1 -1
  230. package/loaders/post-list.js +1 -1
  231. package/loaders/post-logo.js +1 -1
  232. package/loaders/post-mainnavigation.js +1 -1
  233. package/loaders/post-megadropdown-trigger.js +1 -1
  234. package/loaders/post-megadropdown.js +1 -1
  235. package/loaders/post-menu-item.js +1 -1
  236. package/loaders/post-menu-trigger.js +1 -1
  237. package/loaders/post-menu.js +1 -1
  238. package/loaders/post-popover.js +1 -1
  239. package/loaders/post-popovercontainer2.js +2 -2
  240. package/loaders/post-rating.js +1 -1
  241. package/loaders/post-tab-header.js +1 -1
  242. package/loaders/post-tab-panel.js +1 -1
  243. package/loaders/post-tabs.js +1 -1
  244. package/loaders/post-tag.js +1 -1
  245. package/loaders/post-togglebutton.js +1 -1
  246. package/loaders/post-tooltip.js +1 -1
  247. package/package.json +4 -3
  248. package/dist/cjs/post-accordion-item-641f0b42.js +0 -52
  249. package/dist/cjs/post-card-control-fc4aca2a.js +0 -272
  250. package/dist/esm/package-180da9f3.js +0 -3
  251. package/dist/esm/post-accordion-item-a5a76abb.js +0 -50
  252. package/dist/esm/post-card-control-5be9c80a.js +0 -270
  253. package/dist/post-components/p-06980a04.js +0 -1
  254. package/dist/post-components/p-0af7dfbb.js +0 -1
  255. package/dist/post-components/p-12262945.entry.js +0 -1
  256. package/dist/post-components/p-2504dace.entry.js +0 -1
  257. package/dist/post-components/p-27343d32.entry.js +0 -1
  258. package/dist/post-components/p-2c3980d2.js +0 -1
  259. package/dist/post-components/p-3b325360.entry.js +0 -1
  260. package/dist/post-components/p-3f417208.entry.js +0 -1
  261. package/dist/post-components/p-4922deaf.entry.js +0 -1
  262. package/dist/post-components/p-6c7546b8.entry.js +0 -1
  263. package/dist/post-components/p-7eee2b6a.js +0 -1
  264. package/dist/post-components/p-83cd3885.entry.js +0 -1
  265. package/dist/post-components/p-9ea6103e.entry.js +0 -1
  266. package/dist/post-components/p-a0a7c2c1.entry.js +0 -1
  267. package/dist/post-components/p-abf9ffdc.entry.js +0 -1
  268. package/dist/post-components/p-b4a2c7b7.entry.js +0 -1
  269. package/dist/post-components/p-b7ef401f.js +0 -1
  270. package/dist/post-components/p-b8a9cf2d.js +0 -1
  271. package/dist/post-components/p-ccd8a221.entry.js +0 -1
  272. package/dist/post-components/p-cfc1727f.entry.js +0 -1
  273. package/dist/post-components/p-df5bdda5.entry.js +0 -1
  274. package/dist/post-components/p-f1416918.entry.js +0 -1
  275. package/dist/post-components/p-f171b18b.entry.js +0 -1
  276. package/dist/post-components/p-f4dbd35f.entry.js +0 -1
  277. package/dist/post-components/p-f6b44820.js +0 -1
@@ -0,0 +1 @@
1
+ import{r as e,h as t,H as s}from"./p-3eab790d.js";import{v as d}from"./p-f2e1b4d8.js";const o=class{constructor(t){e(this,t),this.handleClick=()=>{this.toggled=!this.toggled},this.handleKeydown=e=>{"Enter"===e.key&&(this.toggled=!this.toggled)},this.toggled=!1}render(){return t(s,{key:"82fc4126d97650255d1d5fd041208b3d11cf0ded",slot:"post-togglebutton",tabindex:"0","data-version":d,role:"button","aria-pressed":this.toggled.toString(),onClick:this.handleClick,onKeyDown:this.handleKeydown},t("span",{key:"0364e8b63cc2c7955282f62533683c3627aa6626",hidden:this.toggled},t("slot",{key:"11ccb62855497ddf395276e7f7e88a8409fa36e4",name:"untoggled"})),t("span",{key:"463f4571ceecc51063a4d4495d22063b6b75d0df",hidden:!this.toggled},t("slot",{key:"7d41e35a64deefd22087524bc57530603aae18fa",name:"toggled"})))}};o.style=":host{cursor:pointer}";export{o as P}
@@ -0,0 +1 @@
1
+ export{P as post_tab_panel}from"./p-1b627f80.js";import"./p-3eab790d.js";import"./p-f2e1b4d8.js";
@@ -1 +1 @@
1
- import{r as e,h as o,H as t,g as s}from"./p-3eab790d.js";import{v as i}from"./p-f6b44820.js";import{g as r}from"./p-6adeaa6c.js";let a=0;const n="data-popover-target",c=e=>{const o=e.target;if(!o||!("getAttribute"in o))return;const t=o.getAttribute(n);if(!t||"key"in e&&"Enter"!==e.key)return;const s=document.getElementById(t);null==s||s.toggle(o)},d=r(n,(e=>{const o=e.hasAttribute(n);e.setAttribute("aria-expanded",o?"false":null)})),l=class{constructor(o){e(this,o),this.placement="top",this.closeButtonCaption=void 0,this.arrow=!0,this.localBeforeToggleHandler=this.beforeToggleHandler.bind(this)}connectedCallback(){0===a&&(window.addEventListener("pointerup",c),window.addEventListener("keydown",c),d.observe(document.body,{subtree:!0,childList:!0,attributeFilter:[n]})),a++,this.triggers.forEach((e=>e.setAttribute("aria-expanded","false")))}componentDidLoad(){this.popoverRef.addEventListener("beforetoggle",this.localBeforeToggleHandler)}disconnectedCallback(){a--,0===a&&(window.removeEventListener("click",c),window.removeEventListener("keydown",c),d.disconnect()),this.popoverRef.removeEventListener("beforetoggle",this.localBeforeToggleHandler),this.triggers.forEach((e=>e.removeAttribute("aria-expanded")))}async show(e){this.popoverRef.show(e),e.setAttribute("aria-expanded","true")}async hide(){this.popoverRef.hide(),this.triggers.forEach((e=>e.setAttribute("aria-expanded","false")))}async toggle(e,o){const t=await this.popoverRef.toggle(e,o);this.triggers.forEach((e=>e.setAttribute("aria-expanded","false"))),e.setAttribute("aria-expanded",`${t}`)}get triggers(){return document.querySelectorAll(`[${n}="${this.host.id}"]`)}beforeToggleHandler(){this.triggers.forEach((e=>e.setAttribute("aria-expanded","false")))}render(){return o(t,{key:"e716f0b45da8a21c43afba019dbf84a87bc49fab","data-version":i},o("post-popovercontainer",{key:"530ffbd07a0f2b2edc26db0c5667c9de372edf01",arrow:this.arrow,placement:this.placement,ref:e=>this.popoverRef=e},o("div",{key:"4d7420876786f835aef9decf92030651f5117f52",class:"popover-container"},o("div",{key:"e557e3e1f4566fc81b1255ef628e7c58d59fc596",class:"popover-content"},o("slot",{key:"ea5e3407ec41868471d388a02cb8a4ba32889d6c"})),o("button",{key:"af21850867d713f7c5a825d4ac824b12ce40f3e7",class:"btn-close",onClick:()=>this.hide()},o("span",{key:"b2f85d5efd0fd424448efa73ee9ad07c5bab2947",class:"visually-hidden"},this.closeButtonCaption)))))}get host(){return s(this)}};l.style="/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */.btn-close{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;border-radius:var(--post-device-border-radius-round);color:#000;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;cursor:pointer}.btn-close{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-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.btn-close::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;content:\"\";display:block;height:1.5rem;width:1.5rem}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:#000}.btn-close:disabled{color:var(--post-gray-40)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close{color:CanvasText;forced-color-adjust:none}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:Highlight}}.btn-close-white{color:#e6e6e6}.btn-close-white:focus,.btn-close-white:not(:disabled):hover,.btn-close-white.pretend-hover{color:#fff}.btn-close-white:disabled{color:#999}*{box-sizing:border-box}:host{--post-contrast-color:#fff;--post-bg-rgb:51, 51, 51;display:block}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.popover-container{display:flex;align-items:self-start;padding:.5em;min-width:160px;max-width:280px;max-width:100%}.popover-content{padding:.5em;flex-grow:1}.btn-close{color:inherit}";export{l as P}
1
+ import{r as e,h as o,H as t,g as s}from"./p-3eab790d.js";import{v as i}from"./p-f2e1b4d8.js";import{g as r}from"./p-6adeaa6c.js";let a=0;const c="data-popover-target",n=e=>{const o=e.target;if(!o||!("getAttribute"in o))return;const t=o.getAttribute(c);if(!t||"key"in e&&"Enter"!==e.key)return;const s=document.getElementById(t);null==s||s.toggle(o)},d=r(c,(e=>{const o=e.hasAttribute(c);e.setAttribute("aria-expanded",o?"false":null)})),l=class{constructor(o){e(this,o),this.placement="top",this.closeButtonCaption=void 0,this.arrow=!0,this.localBeforeToggleHandler=this.beforeToggleHandler.bind(this)}connectedCallback(){0===a&&(window.addEventListener("pointerup",n),window.addEventListener("keydown",n),d.observe(document.body,{subtree:!0,childList:!0,attributeFilter:[c]})),a++,this.triggers.forEach((e=>e.setAttribute("aria-expanded","false")))}componentDidLoad(){this.popoverRef.addEventListener("beforetoggle",this.localBeforeToggleHandler)}disconnectedCallback(){a--,0===a&&(window.removeEventListener("click",n),window.removeEventListener("keydown",n),d.disconnect()),this.popoverRef.removeEventListener("beforetoggle",this.localBeforeToggleHandler),this.triggers.forEach((e=>e.removeAttribute("aria-expanded")))}async show(e){this.popoverRef.show(e),e.setAttribute("aria-expanded","true")}async hide(){this.popoverRef.hide(),this.triggers.forEach((e=>e.setAttribute("aria-expanded","false")))}async toggle(e,o){const t=await this.popoverRef.toggle(e,o);this.triggers.forEach((e=>e.setAttribute("aria-expanded","false"))),e.setAttribute("aria-expanded",`${t}`)}get triggers(){return document.querySelectorAll(`[${c}="${this.host.id}"]`)}beforeToggleHandler(){this.triggers.forEach((e=>e.setAttribute("aria-expanded","false")))}render(){return o(t,{key:"e73d0edf5c6992db8c8c6e162a9c50e95a335d79","data-version":i},o("post-popovercontainer",{key:"206cbec19db4af9772899c1ec4cc870c362f590e",arrow:this.arrow,placement:this.placement,ref:e=>this.popoverRef=e},o("div",{key:"8d744d6784d892313b137ee03dd9967ea4b77184",class:"popover-container"},o("div",{key:"aa78aee830e853945f0049d0708710f8fad90d36",class:"popover-content"},o("slot",{key:"50a5aeae0c0db36e5c0aa2495f3d95474bed13fc"})),o("button",{key:"4389f79f9e1b2a0977a0ecb177b385f049cc8484",class:"btn-close",onClick:()=>this.hide()},o("span",{key:"e302e17cef666fc280a547ebc3caeedacdc544b0",class:"visually-hidden"},this.closeButtonCaption)))))}get host(){return s(this)}};l.style="/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */.btn-close{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;border-radius:var(--post-device-border-radius-round);color:#000;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;cursor:pointer}.btn-close{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-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.btn-close::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;content:\"\";display:block;height:1.5rem;width:1.5rem}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:#000}.btn-close:disabled{color:var(--post-gray-40)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close{color:CanvasText;forced-color-adjust:none}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:Highlight}}.btn-close-white{color:#e6e6e6}.btn-close-white:focus,.btn-close-white:not(:disabled):hover,.btn-close-white.pretend-hover{color:#fff}.btn-close-white:disabled{color:#999}*{box-sizing:border-box}:host{--post-contrast-color:#fff;--post-bg-rgb:51, 51, 51;display:block}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.popover-container{display:flex;align-items:self-start;padding:.5em;min-width:160px;max-width:280px;max-width:100%}.popover-content{padding:.5em;flex-grow:1}.btn-close{color:inherit}";export{l as P}
@@ -0,0 +1 @@
1
+ export{P as post_tabs}from"./p-ccb6dfa1.js";import"./p-3eab790d.js";import"./p-f2e1b4d8.js";import"./p-2737eaf5.js";
@@ -0,0 +1 @@
1
+ export{P as post_accordion_item}from"./p-ece14d88.js";import"./p-3eab790d.js";import"./p-f2e1b4d8.js";import"./p-247a1668.js";import"./p-0338f9da.js";import"./p-440193f4.js";import"./p-611b3c41.js";import"./p-4a3f67ab.js";
@@ -1 +1 @@
1
- import{r as t,h as a,H as e,g}from"./p-3eab790d.js";import{v as i}from"./p-f6b44820.js";const s=class{constructor(a){t(this,a),this.classes=void 0,this.variant=void 0,this.size=null,this.icon=null,this.setClasses=this.setClasses.bind(this)}variantChanged(){this.setClasses()}sizeChanged(){this.setClasses()}setClasses(){this.classes=["tag",this.size?`tag-${this.size}`:null,this.variant?`tag-${this.variant}`:null].filter((t=>null!==t)).join(" ")}connectedCallback(){this.setClasses()}render(){return a(e,{key:"52768516080d294eaf20034e18e6a776149fa97e","data-version":i},a("div",{key:"f342d20bfccfdf650f5c6e943065f090a13fd94c",class:this.classes},this.icon?a("post-icon",{name:this.icon}):null,a("div",{key:"5286cb07cbfa5b20e0dfbbd4847a3dda49a19278",class:"tag-text"},a("slot",{key:"6215a61b4e10d6c0274019f183ef90e46d282114"}))))}get host(){return g(this)}static get watchers(){return{variant:["variantChanged"],size:["sizeChanged"]}}};s.style="/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */.tag,.tag:where(:has(:not(pre))){--post-tag-bg:hsl(0, 0%, 90%);--post-tag-fg:#000;display:inline-flex;align-items:center;gap:.25rem;padding:0 .5rem;max-width:100%;background-color:var(--post-tag-bg);border:1px solid rgba(0,0,0,0);border-radius:.25rem;font-size:1rem;line-height:1.875rem;white-space:nowrap;color:var(--post-tag-fg)}.tag post-icon,.tag:where(:has(:not(pre))) post-icon{flex:0 0 auto;width:1.25rem;height:1.25rem}.tag .tag-text,.tag:where(:has(:not(pre))) .tag-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag .tag-text svg,.tag .tag-text img,.tag:where(:has(:not(pre))) .tag-text svg,.tag:where(:has(:not(pre))) .tag-text img{display:inline-block;height:1.25rem !important;vertical-align:text-top}.tag.tag-sm,.tag:where(:has(:not(pre))).tag-sm{line-height:1.5rem}.tag.tag-sm .tag-icon,.tag:where(:has(:not(pre))).tag-sm .tag-icon{width:1rem;height:1rem}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{--post-tag-bg:#fff;--post-tag-fg:#000}.tag.tag-yellow,.tag:where(:has(:not(pre))).tag-yellow{--post-tag-bg:#fc0;--post-tag-fg:#000}.tag.tag-success,.tag:where(:has(:not(pre))).tag-success{--post-tag-bg:#2c871d;--post-tag-fg:#fff}.tag.tag-warning,.tag:where(:has(:not(pre))).tag-warning{--post-tag-bg:#f49e00;--post-tag-fg:#000}.tag.tag-danger,.tag:where(:has(:not(pre))).tag-danger{--post-tag-bg:#a51728;--post-tag-fg:#fff}.tag.tag-info,.tag:where(:has(:not(pre))).tag-info{--post-tag-bg:#cce4ee;--post-tag-fg:#000}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{border-color:var(--post-contrast-color)}pre .tag,pre .tag:where(:has(:not(pre))){display:inline;padding:initial;max-width:initial;background:initial;border:initial;border-radius:initial;font-size:inherit;line-height:inherit;white-space:unset}*,*:before,*:after{box-sizing:border-box}.tag-text ::slotted(svg),.tag-text ::slotted(img){display:inline-block !important;height:1.25rem !important;vertical-align:text-top !important}";export{s as P}
1
+ import{r as t,h as a,H as e,g}from"./p-3eab790d.js";import{v as i}from"./p-f2e1b4d8.js";const s=class{constructor(a){t(this,a),this.classes=void 0,this.variant=void 0,this.size=null,this.icon=null,this.setClasses=this.setClasses.bind(this)}variantChanged(){this.setClasses()}sizeChanged(){this.setClasses()}setClasses(){this.classes=["tag",this.size?`tag-${this.size}`:null,this.variant?`tag-${this.variant}`:null].filter((t=>null!==t)).join(" ")}connectedCallback(){this.setClasses()}render(){return a(e,{key:"e2d95e10853f66d7b05768b80a0350e0bc05051d","data-version":i},a("div",{key:"72bac44cca9c4197e9042e6a4896f235d057a5c9",class:this.classes},this.icon?a("post-icon",{name:this.icon}):null,a("div",{key:"1b54b8a89320306aa09fe1e50dffd453b44fc587",class:"tag-text"},a("slot",{key:"52f4f5b2d62f8ae245c7b472cdbc9f5202b554c1"}))))}get host(){return g(this)}static get watchers(){return{variant:["variantChanged"],size:["sizeChanged"]}}};s.style="/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */.tag,.tag:where(:has(:not(pre))){--post-tag-bg:hsl(0, 0%, 90%);--post-tag-fg:#000;display:inline-flex;align-items:center;gap:.25rem;padding:0 .5rem;max-width:100%;background-color:var(--post-tag-bg);border:1px solid rgba(0,0,0,0);border-radius:.25rem;font-size:1rem;line-height:1.875rem;white-space:nowrap;color:var(--post-tag-fg)}.tag post-icon,.tag:where(:has(:not(pre))) post-icon{flex:0 0 auto;width:1.25rem;height:1.25rem}.tag .tag-text,.tag:where(:has(:not(pre))) .tag-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag .tag-text svg,.tag .tag-text img,.tag:where(:has(:not(pre))) .tag-text svg,.tag:where(:has(:not(pre))) .tag-text img{display:inline-block;height:1.25rem !important;vertical-align:text-top}.tag.tag-sm,.tag:where(:has(:not(pre))).tag-sm{line-height:1.5rem}.tag.tag-sm .tag-icon,.tag:where(:has(:not(pre))).tag-sm .tag-icon{width:1rem;height:1rem}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{--post-tag-bg:#fff;--post-tag-fg:#000}.tag.tag-yellow,.tag:where(:has(:not(pre))).tag-yellow{--post-tag-bg:#fc0;--post-tag-fg:#000}.tag.tag-success,.tag:where(:has(:not(pre))).tag-success{--post-tag-bg:#2c871d;--post-tag-fg:#fff}.tag.tag-warning,.tag:where(:has(:not(pre))).tag-warning{--post-tag-bg:#f49e00;--post-tag-fg:#000}.tag.tag-danger,.tag:where(:has(:not(pre))).tag-danger{--post-tag-bg:#a51728;--post-tag-fg:#fff}.tag.tag-info,.tag:where(:has(:not(pre))).tag-info{--post-tag-bg:#cce4ee;--post-tag-fg:#000}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{border-color:var(--post-contrast-color)}pre .tag,pre .tag:where(:has(:not(pre))){display:inline;padding:initial;max-width:initial;background:initial;border:initial;border-radius:initial;font-size:inherit;line-height:inherit;white-space:unset}*,*:before,*:after{box-sizing:border-box}.tag-text ::slotted(svg),.tag-text ::slotted(img){display:inline-block !important;height:1.25rem !important;vertical-align:text-top !important}";export{s as P}
@@ -1 +1 @@
1
- import{r as t,c as s,h as e,H as o,g as i}from"./p-3eab790d.js";import{v as n}from"./p-f6b44820.js";const a=`:where(${["button",'input:not([type="hidden"])',"[tabindex]","select","textarea","[contenteditable]","a[href]","iframe","audio[controls]","video[controls]","area[href]","details > summary:first-of-type"].join(",")})`,r=`:where(${["[inert]","[inert] *",":disabled","dialog:not([open]) *","[popover]:not(:popover-open) *","details:not([open]) > *:not(details > summary:first-of-type)","details:not([open]) > *:not(details > summary:first-of-type) *"].join(",")})`,h=t=>(null==t?void 0:t.matches(a))&&!(null==t?void 0:t.matches(r)),c=class{constructor(e){t(this,e),this.toggleMenu=s(this,"toggleMenu",7),this.lastFocusedElement=null,this.KEYCODES={SPACE:" ",ENTER:"Enter",UP:"ArrowUp",DOWN:"ArrowDown",TAB:"Tab",HOME:"Home",END:"End",ESCAPE:"Escape"},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)},this.placement="bottom",this.isVisible=!1}connectedCallback(){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)}componentDidLoad(){this.popoverRef.addEventListener("postToggle",(t=>{this.isVisible=t.detail,this.toggleMenu.emit(this.isVisible)}))}async toggle(t){this.isVisible?await this.hide():await this.show(t)}async show(t){if(this.popoverRef){await this.popoverRef.show(t),this.lastFocusedElement=document.activeElement;const s=this.getSlottedItems();s.length>0&&s[0].focus()}else console.error("show: popoverRef is null or undefined")}async hide(){this.popoverRef?(await this.popoverRef.hide(),this.lastFocusedElement&&this.lastFocusedElement.focus()):console.error("hide: popoverRef is null or undefined")}controlKeyDownHandler(t){const s=this.getSlottedItems();if(!s.length)return;const e=document.activeElement;let o=s.findIndex((t=>t===e));switch(t.key){case this.KEYCODES.UP:t.preventDefault(),o=(o-1+s.length)%s.length;break;case this.KEYCODES.DOWN:t.preventDefault(),o=(o+1)%s.length;break;case this.KEYCODES.HOME:o=0;break;case this.KEYCODES.END:o=s.length-1;break;case this.KEYCODES.SPACE:case this.KEYCODES.ENTER:return void this.toggle(this.host);case this.KEYCODES.TAB:this.toggle(this.host)}s[o]&&s[o].focus()}getSlottedItems(){const t=this.host.shadowRoot.querySelector("slot"),s=(t?t.assignedElements():[]).filter((t=>"POST-MENU-ITEM"===t.tagName)).map((t=>{const s=t.shadowRoot.querySelector("slot");return(s?s.assignedElements():[]).filter(h)})).flat();return s}render(){return e(o,{key:"80720b7f1d029833de466c84c9fe931460a5b9b1","data-version":n},e("post-popovercontainer",{key:"b1e610ad0c0f33a09ac3fee5954567e957653e76",placement:this.placement,ref:t=>this.popoverRef=t},e("div",{key:"a9cd7f6efcd762b548acb7c8d3bf614ccdedd504",class:"popover-container"},e("slot",{key:"e278c4020b70c8bd5f6a1e4a3ac8cbaf37f2b786"}))))}get host(){return i(this)}};c.style="/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:block}post-popovercontainer{padding:var(--post-menu-padding);background-color:var(--post-menu-bg, #ffffff);border-color:var(--post-menu-bg, #ffffff)}";export{c as P}
1
+ import{r as t,c as s,h as e,H as o,g as i}from"./p-3eab790d.js";import{v as n}from"./p-f2e1b4d8.js";const a=`:where(${["button",'input:not([type="hidden"])',"[tabindex]","select","textarea","[contenteditable]","a[href]","iframe","audio[controls]","video[controls]","area[href]","details > summary:first-of-type"].join(",")})`,r=`:where(${["[inert]","[inert] *",":disabled","dialog:not([open]) *","[popover]:not(:popover-open) *","details:not([open]) > *:not(details > summary:first-of-type)","details:not([open]) > *:not(details > summary:first-of-type) *"].join(",")})`,h=t=>(null==t?void 0:t.matches(a))&&!(null==t?void 0:t.matches(r)),c=class{constructor(e){t(this,e),this.toggleMenu=s(this,"toggleMenu",7),this.lastFocusedElement=null,this.KEYCODES={SPACE:" ",ENTER:"Enter",UP:"ArrowUp",DOWN:"ArrowDown",TAB:"Tab",HOME:"Home",END:"End",ESCAPE:"Escape"},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)},this.placement="bottom",this.isVisible=!1}connectedCallback(){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)}componentDidLoad(){this.popoverRef.addEventListener("postToggle",(t=>{this.isVisible=t.detail,this.toggleMenu.emit(this.isVisible)}))}async toggle(t){this.isVisible?await this.hide():await this.show(t)}async show(t){if(this.popoverRef){await this.popoverRef.show(t),this.lastFocusedElement=document.activeElement;const s=this.getSlottedItems();s.length>0&&s[0].focus()}else console.error("show: popoverRef is null or undefined")}async hide(){this.popoverRef?(await this.popoverRef.hide(),this.lastFocusedElement&&this.lastFocusedElement.focus()):console.error("hide: popoverRef is null or undefined")}controlKeyDownHandler(t){const s=this.getSlottedItems();if(!s.length)return;const e=document.activeElement;let o=s.findIndex((t=>t===e));switch(t.key){case this.KEYCODES.UP:t.preventDefault(),o=(o-1+s.length)%s.length;break;case this.KEYCODES.DOWN:t.preventDefault(),o=(o+1)%s.length;break;case this.KEYCODES.HOME:o=0;break;case this.KEYCODES.END:o=s.length-1;break;case this.KEYCODES.SPACE:case this.KEYCODES.ENTER:return void this.toggle(this.host);case this.KEYCODES.TAB:this.toggle(this.host)}s[o]&&s[o].focus()}getSlottedItems(){const t=this.host.shadowRoot.querySelector("slot"),s=(t?t.assignedElements():[]).filter((t=>"POST-MENU-ITEM"===t.tagName)).map((t=>{const s=t.shadowRoot.querySelector("slot");return(s?s.assignedElements():[]).filter(h)})).flat();return s}render(){return e(o,{key:"c3fa319c92cc36b562590df18b6585b1bc18f133","data-version":n},e("post-popovercontainer",{key:"7d297b7598fecb01f46c3f1b999b6017ee878d06",placement:this.placement,ref:t=>this.popoverRef=t},e("div",{key:"3ae32950348ae8910094cddd34afef060ca517f1",class:"popover-container"},e("slot",{key:"7faa98f2f4c50ef1ac424387a6c3890dcf09adce"}))))}get host(){return i(this)}};c.style="/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:block}post-popovercontainer{padding:var(--post-menu-padding);background-color:var(--post-menu-bg, #ffffff);border-color:var(--post-menu-bg, #ffffff)}";export{c as P}
@@ -0,0 +1 @@
1
+ import{r as t,h as o,H as e,g as i}from"./p-3eab790d.js";import{v as s}from"./p-f2e1b4d8.js";import{c as r}from"./p-4a3f67ab.js";import{c as a}from"./p-b095519d.js";const n="ease",c="forwards",l=(t,o="8rem")=>t.animate([{transform:`translateY(-${o})`},{transform:"translateY(0)"}],{duration:500,easing:n,fill:c}),d=class{constructor(o){t(this,o),this.handleScroll=()=>{this.belowFold=this.isBelowFold()},this.label=void 0,this.belowFold=!1}isBelowFold(){return window.scrollY>window.innerHeight}watchBelowFold(t){t?l(this.el,this.translateY):((t,o="8rem")=>{this.el.animate([{transform:"translateY(0)"},{transform:`translateY(-${o})`}],{duration:500,easing:n,fill:c})})(0,this.translateY)}scrollToTop(){window.scrollTo({top:0})}validateLabel(){r(this.label,"string","The label property of the Back to Top component is required for accessibility purposes. Please ensure it is set."),a(this.label,"The label property of the Back to Top component must not be empty. Please provide a proper text for the label")}componentWillLoad(){this.belowFold=this.isBelowFold()}componentDidLoad(){window.addEventListener("scroll",this.handleScroll,!1),this.translateY=window.getComputedStyle(this.el).getPropertyValue("--post-floating-button-translate-y"),this.belowFold||(this.el.style.transform=`translateY(-${this.translateY})`),this.belowFold&&l(this.el,this.translateY),this.validateLabel()}disconnectedCallback(){window.removeEventListener("scroll",this.handleScroll)}render(){return o(e,{key:"24d2bc9d7cc6a9cc2ffc7fb47196282993c49f02","data-version":s},o("button",{key:"4ab2b8f8c812f202ec18461581541ef7f0134b63",class:"back-to-top","aria-hidden":this.belowFold?"false":"true",tabindex:this.belowFold?"0":"-1",onClick:this.scrollToTop},o("post-icon",{key:"eb1ed42514d1187121625f9108e35dea86812ae4","aria-hidden":"true",name:"3026"}),o("span",{key:"9215f4777c859b8225580a10bf2df48ab68f4eb1",class:"visually-hidden"},this.label)))}get el(){return i(this)}static get watchers(){return{belowFold:["watchBelowFold"],label:["validateLabel"]}}};d.style=":host{--post-floating-button-translate-y:var(--post-core-dimension-112);position:fixed;top:var(--post-device-position-1);right:var(--post-device-position-1)}:host .back-to-top{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;box-shadow:.5px 3px 4px rgba(0,0,0,.1),2px 4px 10px 4px rgba(0,0,0,.12);cursor:pointer;border-radius:var(--post-device-border-radius-round);width:var(--post-device-sizing-interactive-button-height-2);height:var(--post-device-sizing-interactive-button-height-2);border:var(--post-device-border-width-default) solid 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);display:flex;align-items:center;justify-content:center}:host .back-to-top{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 .back-to-top:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .back-to-top:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host .back-to-top: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){:host .back-to-top:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}:host .back-to-top: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)}:host .back-to-top post-icon{height:var(--post-device-sizing-interactive-button-icon-3);width:var(--post-device-sizing-interactive-button-icon-3)}:host .visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}";export{d as P}
@@ -1 +1 @@
1
- export{P as post_collapsible,a as post_collapsible_trigger}from"./p-31d38040.js";import"./p-3eab790d.js";import"./p-f6b44820.js";import"./p-0338f9da.js";import"./p-440193f4.js";import"./p-611b3c41.js";import"./p-4a3f67ab.js";import"./p-b095519d.js";import"./p-fc91cbc2.js";
1
+ export{P as post_collapsible,a as post_collapsible_trigger}from"./p-558a9849.js";import"./p-3eab790d.js";import"./p-f2e1b4d8.js";import"./p-0338f9da.js";import"./p-440193f4.js";import"./p-611b3c41.js";import"./p-4a3f67ab.js";import"./p-b095519d.js";import"./p-fc91cbc2.js";
@@ -0,0 +1 @@
1
+ export{P as post_togglebutton}from"./p-24673919.js";import"./p-3eab790d.js";import"./p-f2e1b4d8.js";
@@ -1 +1 @@
1
- import{r as t,c as s,h as i,H as e,g as o}from"./p-3eab790d.js";import{v as a}from"./p-f6b44820.js";import{d as r}from"./p-0338f9da.js";import{c as h}from"./p-4a3f67ab.js";import{c as l}from"./p-b095519d.js";import{g as n}from"./p-fc91cbc2.js";const c={height:"0",overflow:"hidden"},d={duration:350,easing:"ease",fill:"forwards"},p=class{constructor(i){t(this,i),this.postToggle=s(this,"postToggle",7),this.isLoaded=!1,this.isOpen=!0,this.collapsed=!1}collapsedChange(){r(this.collapsed,"boolean","The `collapsed` property of the `post-collapsible` must be a boolean."),this.toggle(!this.collapsed)}componentDidLoad(){this.collapsedChange(),this.isLoaded=!0,this.updateTriggers()}async toggle(t=!this.isOpen){if(t===this.isOpen)return t;this.isOpen=t,this.collapsed=!t,this.isLoaded&&this.postToggle.emit(t);const s=t?(i=this.host).animate([c,{height:`${i.scrollHeight}px`,offset:1},{height:"auto"}],d):(t=>{const s={height:window.getComputedStyle(t).height};return t.animate([s,c],d)})(this.host);var i;return this.isLoaded&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches||s.finish(),await s.finished,this.host.offsetParent&&s.commitStyles(),t}updateTriggers(){document.querySelectorAll(`post-collapsible-trigger[for="${this.host.id}"]`).forEach((t=>t.update()))}render(){return i(e,{key:"a24e6d781135a558657a23355eb2da4d2ba71066","data-version":a},i("slot",{key:"de655cf8f55f41532447bc0ac3c7a4aa6a807dae"}))}get host(){return o(this)}static get watchers(){return{collapsed:["collapsedChange"]}}};p.style=":host{display:block;overflow:hidden}";const u=class{constructor(s){t(this,s),this.observer=new MutationObserver((()=>this.setTrigger())),this.debouncedUpdate=function(t,s=200){let i;return(...e)=>{i&&clearTimeout(i),i=setTimeout(t,s,...e)}}((()=>{var t;if(!this.trigger)return;const s=this.trigger.getAttribute("aria-controls");(null==s?void 0:s.includes(this.for))||this.trigger.setAttribute("aria-controls",s?`${s} ${this.for}`:this.for);const i=null===(t=this.collapsible)||void 0===t?void 0:t.collapsed;this.trigger.setAttribute("aria-expanded",`${void 0!==i?!i:void 0}`)})),this.for=void 0}setAriaAttributes(){l(this.for,'The post-collapsible-trigger "for" prop is required.'),h(this.for,"string",'The post-collapsible-trigger "for" prop should be a id.'),this.update()}connectedCallback(){this.observer.observe(this.host,{childList:!0,subtree:!0})}componentWillLoad(){this.root=n(this.host),this.root.addEventListener("postToggle",(t=>{this.trigger&&t.target.isEqualNode(this.collapsible)&&this.trigger.setAttribute("aria-expanded",`${t.detail}`)}))}componentDidLoad(){this.host.setAttribute("data-version",a),this.setTrigger(),this.trigger||console.warn("The post-collapsible-trigger must contain a button.")}disconnectedCallback(){this.observer.disconnect()}async update(){this.debouncedUpdate()}async toggleCollapsible(){var t;await(null===(t=this.collapsible)||void 0===t?void 0:t.toggle())}get collapsible(){const t=this.root.getElementById(this.for);return t&&"post-collapsible"===t.localName?t:null}setTrigger(){const t=this.host.querySelector("button");!t||this.trigger&&t.isEqualNode(this.trigger)||(this.trigger=t,this.trigger.addEventListener("click",(()=>this.toggleCollapsible())),this.setAriaAttributes())}get host(){return o(this)}static get watchers(){return{for:["setAriaAttributes"]}}};export{p as P,u as a}
1
+ import{r as t,c as s,h as i,H as e,g as o}from"./p-3eab790d.js";import{v as r}from"./p-f2e1b4d8.js";import{d as h}from"./p-0338f9da.js";import{c as a}from"./p-4a3f67ab.js";import{c as l}from"./p-b095519d.js";import{g as n}from"./p-fc91cbc2.js";const c={height:"0",overflow:"hidden"},d={duration:350,easing:"ease",fill:"forwards"},p=class{constructor(i){t(this,i),this.postToggle=s(this,"postToggle",7),this.isLoaded=!1,this.isOpen=!0,this.collapsed=!1}collapsedChange(){h(this.collapsed,"boolean","The `collapsed` property of the `post-collapsible` must be a boolean."),this.toggle(!this.collapsed)}componentDidLoad(){this.collapsedChange(),this.isLoaded=!0,this.updateTriggers()}async toggle(t=!this.isOpen){if(t===this.isOpen)return t;this.isOpen=t,this.collapsed=!t,this.isLoaded&&this.postToggle.emit(t);const s=t?(i=this.host).animate([c,{height:`${i.scrollHeight}px`,offset:1},{height:"auto"}],d):(t=>{const s={height:window.getComputedStyle(t).height};return t.animate([s,c],d)})(this.host);var i;return this.isLoaded&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches||s.finish(),await s.finished,this.host.offsetParent&&s.commitStyles(),t}updateTriggers(){document.querySelectorAll(`post-collapsible-trigger[for="${this.host.id}"]`).forEach((t=>t.update()))}render(){return i(e,{key:"5b3622ee79d02725071a6d7a2d9f72d0d5305619","data-version":r},i("slot",{key:"9db4642e4e5b4867c7880964070ee5d774455fd2"}))}get host(){return o(this)}static get watchers(){return{collapsed:["collapsedChange"]}}};p.style=":host{display:block;overflow:hidden}";const u=class{constructor(s){t(this,s),this.observer=new MutationObserver((()=>this.setTrigger())),this.debouncedUpdate=function(t,s=200){let i;return(...e)=>{i&&clearTimeout(i),i=setTimeout(t,s,...e)}}((()=>{var t;if(!this.trigger)return;const s=this.trigger.getAttribute("aria-controls");(null==s?void 0:s.includes(this.for))||this.trigger.setAttribute("aria-controls",s?`${s} ${this.for}`:this.for);const i=null===(t=this.collapsible)||void 0===t?void 0:t.collapsed;this.trigger.setAttribute("aria-expanded",`${void 0!==i?!i:void 0}`)})),this.for=void 0}setAriaAttributes(){l(this.for,'The post-collapsible-trigger "for" prop is required.'),a(this.for,"string",'The post-collapsible-trigger "for" prop should be a id.'),this.update()}connectedCallback(){this.observer.observe(this.host,{childList:!0,subtree:!0})}componentWillLoad(){this.root=n(this.host),this.root.addEventListener("postToggle",(t=>{this.trigger&&t.target.isEqualNode(this.collapsible)&&this.trigger.setAttribute("aria-expanded",`${t.detail}`)}))}componentDidLoad(){this.host.setAttribute("data-version",r),this.setTrigger(),this.trigger||console.warn("The post-collapsible-trigger must contain a button.")}disconnectedCallback(){this.observer.disconnect()}async update(){this.debouncedUpdate()}async toggleCollapsible(){var t;await(null===(t=this.collapsible)||void 0===t?void 0:t.toggle())}get collapsible(){const t=this.root.getElementById(this.for);return t&&"post-collapsible"===t.localName?t:null}setTrigger(){const t=this.host.querySelector("button");!t||this.trigger&&t.isEqualNode(this.trigger)||(this.trigger=t,this.trigger.addEventListener("click",(()=>this.toggleCollapsible())),this.setAriaAttributes())}get host(){return o(this)}static get watchers(){return{for:["setAriaAttributes"]}}};export{p as P,u as a}
@@ -1 +1 @@
1
- import{r as t,h as s,H as i,g as o}from"./p-3eab790d.js";import{v as r}from"./p-f6b44820.js";import{c as e}from"./p-4a3f67ab.js";import{g as h}from"./p-fc91cbc2.js";const n=class{constructor(s){t(this,s),this.slottedButton=null,this.handleKeyDown=t=>{"ArrowUp"!==t.key&&"ArrowDown"!==t.key||(t.preventDefault(),this.handleToggle())},this.for=void 0,this.ariaExpanded=!1}validateControlFor(t=this.for){e(t,"string",'The "for" property is required and should be a string.')}get menu(){const t=this.root.getElementById(this.for);return t&&"post-menu"===t.localName?t:null}handleToggle(){const t=this.menu;t&&this.slottedButton?(this.ariaExpanded=!this.ariaExpanded,this.slottedButton.setAttribute("aria-expanded",this.ariaExpanded.toString()),t.toggle(this.host)):console.warn(`No post-menu found with ID: ${this.for}`)}componentDidLoad(){this.root=h(this.host),this.validateControlFor(),this.slottedButton=this.host.querySelector("button"),this.slottedButton?(this.slottedButton.setAttribute("aria-haspopup","menu"),this.slottedButton.addEventListener("click",(()=>{this.handleToggle()})),this.slottedButton.addEventListener("keydown",this.handleKeyDown)):console.warn("No button found within post-menu-trigger")}render(){return s(i,{key:"5c07c2a808f5048b870d77f1f65d84bc2007431f","data-version":r,"tab-index":"-1"},s("slot",{key:"ab779f01983e2c88f09707ab8b12eb326ac6946b"}))}get host(){return o(this)}static get watchers(){return{for:["validateControlFor"]}}};n.style=":host{display:inline-block}";export{n as P}
1
+ import{r as t,h as s,H as i,g as o}from"./p-3eab790d.js";import{v as e}from"./p-f2e1b4d8.js";import{c as r}from"./p-4a3f67ab.js";import{g as h}from"./p-fc91cbc2.js";const n=class{constructor(s){t(this,s),this.slottedButton=null,this.handleKeyDown=t=>{"ArrowUp"!==t.key&&"ArrowDown"!==t.key||(t.preventDefault(),this.handleToggle())},this.for=void 0,this.ariaExpanded=!1}validateControlFor(t=this.for){r(t,"string",'The "for" property is required and should be a string.')}get menu(){const t=this.root.getElementById(this.for);return t&&"post-menu"===t.localName?t:null}handleToggle(){const t=this.menu;t&&this.slottedButton?(this.ariaExpanded=!this.ariaExpanded,this.slottedButton.setAttribute("aria-expanded",this.ariaExpanded.toString()),t.toggle(this.host)):console.warn(`No post-menu found with ID: ${this.for}`)}componentDidLoad(){this.root=h(this.host),this.validateControlFor(),this.slottedButton=this.host.querySelector("button"),this.slottedButton?(this.slottedButton.setAttribute("aria-haspopup","menu"),this.slottedButton.addEventListener("click",(()=>{this.handleToggle()})),this.slottedButton.addEventListener("keydown",this.handleKeyDown)):console.warn("No button found within post-menu-trigger")}render(){return s(i,{key:"d6b5619d0b4035887eaffdcc3c153eb0a5fe4ceb","data-version":e,"tab-index":"-1"},s("slot",{key:"5d87c80dae6188470b10207993822d92adc714b1"}))}get host(){return o(this)}static get watchers(){return{for:["validateControlFor"]}}};n.style=":host{display:inline-block}";export{n as P}
@@ -0,0 +1 @@
1
+ export{P as post_popover}from"./p-282115c4.js";import"./p-3eab790d.js";import"./p-f2e1b4d8.js";import"./p-6adeaa6c.js";
@@ -1 +1 @@
1
- import{r as t,h as i,H as a,g as e}from"./p-3eab790d.js";import{v as s}from"./p-f6b44820.js";import{c as r}from"./p-b095519d.js";var o;!function(t){t.Slotted="slotted",t.Image="image",t.Initials="initials",t[t.Null=null]="Null"}(o||(o={}));const n=class{constructor(i){t(this,i),this.firstname=void 0,this.lastname=void 0,this.userid=void 0,this.email=void 0,this.slottedImage=void 0,this.avatarType=null,this.imageUrl="",this.imageAlt="",this.initials=""}validateFirstname(){r(this.firstname,"The `firstname` property of the `post-avatar` is required!")}async getAvatar(){if(null!==this.slottedImage)this.avatarType=o.Slotted;else{let t=!1;!t&&this.userid&&(t=await this.getImageByProp(this.userid,this.fetchImageByUserId.bind(this))),!t&&this.email&&(t=await this.getImageByProp(this.email,this.fetchImageByEmail.bind(this))),t||this.getAvatarByInitials()}}async getImageByProp(t,i){var a;if(!t)return!1;const e=null!==(a=await this.getStorageItem(t))&&void 0!==a?a:{ok:!1,url:""};if(!e.ok)try{const t=await i();e.ok=t.ok,e.url=t.url,this.imageUrl=e.url,this.imageAlt=`${this.firstname} ${this.lastname} avatar`,this.avatarType=o.Image,this.setStorageItem(this.userid,JSON.stringify(e))}catch(i){this.removeStorageItem(t),console.info(`Loading avatar by type "${o.Image}" failed.`)}return e.ok}async fetchImageByUserId(){return await fetch(n.INTERNAL_USERID_IMAGE_SRC.replace("{userid}",encodeURIComponent(this.userid)))}async fetchImageByEmail(){const t=await this.cryptify(this.email),i="https://www.gravatar.com/avatar/{email}?s=80&d=404&r=g".replace("{email}",t);return await fetch(i)}getAvatarByInitials(){this.initials=this.getInitials(),this.avatarType=o.Initials}getNames(){return[this.firstname,this.lastname].filter((t=>t))}getInitials(){return this.getNames().map((t=>t.charAt(0))).join("").trim()}async getStorageItem(t){var i;const a=await this.cryptify(t),e=null===(i=null===window||void 0===window?void 0:window.sessionStorage)||void 0===i?void 0:i.getItem(a);return e?JSON.parse(e):null}async setStorageItem(t,i){var a;const e=await this.cryptify(t);null===(a=null===window||void 0===window?void 0:window.sessionStorage)||void 0===a||a.setItem(e,i)}async removeStorageItem(t){var i;const a=await this.cryptify(t);null===(i=null===window||void 0===window?void 0:window.sessionStorage)||void 0===i||i.removeItem(a)}async cryptify(t){return await crypto.subtle.digest("SHA-256",(new TextEncoder).encode(t)).then((t=>Array.from(new Uint8Array(t)).map((t=>t.toString(16).padStart(2,"0"))).join("")))}onSlotDefaultChange(){this.slottedImage=this.host.querySelector("img"),this.getAvatar()}componentWillRender(){this.slottedImage=this.host.querySelector("img"),this.getAvatar()}componentDidLoad(){this.validateFirstname()}render(){const t=this.getNames().reduce(((t,a,e)=>(e>0&&t.push(i("span",null," ")),t.push(a.charAt(0)),t.push(i("span",null,a.slice(1))),t)),[]);return i(a,{"data-version":s},i("slot",{onSlotchange:this.onSlotDefaultChange.bind(this)},"image"===this.avatarType&&i("img",{src:this.imageUrl,alt:this.imageAlt}),"initials"===this.avatarType&&i("div",{class:"initials"},t)))}get host(){return e(this)}static get watchers(){return{firstname:["validateFirstname"]}}};n.INTERNAL_USERID_IMAGE_SRC="https://web.post.ch/UserProfileImage/{userid}.png",n.style='/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{--post-avatar-bg:var(--post-scheme-color-interactive-primary-enabled-bg2);--post-avatar-fg:var(--post-scheme-color-interactive-primary-enabled-fg3);display:inline-flex;position:relative;width:var(--post-device-sizing-interactive-icon-size3);height:var(--post-device-sizing-interactive-icon-size3);background-color:var(--post-scheme-color-interactive-primary-enabled-stroke3);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-enabled-stroke3);border-radius:var(--post-device-border-radius-round);font-size:var(--post-device-font-size-8);vertical-align:top;line-height:1}:host::after{display:block;content:"";position:absolute;inset:0;z-index:1;border-radius:inherit}*,*::before,*::after{box-sizing:border-box}slot,img,::slotted(img){display:block;width:100%;height:100%}img,::slotted(img){border-radius:var(--post-device-border-radius-round)}::slotted(:not(img)){display:none !important}.initials{display:flex;justify-content:center;align-items:center;position:relative;z-index:2;width:100%;height:100%;background-color:var(--post-avatar-bg);border-radius:var(--post-device-border-radius-round);color:var(--post-avatar-fg);text-transform:uppercase}.initials span{width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.initials span:not(caption){position:absolute !important}';export{n as P}
1
+ import{r as t,h as i,H as a,g as e}from"./p-3eab790d.js";import{v as s}from"./p-f2e1b4d8.js";import{c as r}from"./p-b095519d.js";var o;!function(t){t.Slotted="slotted",t.Image="image",t.Initials="initials",t[t.Null=null]="Null"}(o||(o={}));const n=class{constructor(i){t(this,i),this.firstname=void 0,this.lastname=void 0,this.userid=void 0,this.email=void 0,this.slottedImage=void 0,this.avatarType=null,this.imageUrl="",this.imageAlt="",this.initials=""}validateFirstname(){r(this.firstname,"The `firstname` property of the `post-avatar` is required!")}async getAvatar(){if(null!==this.slottedImage)this.avatarType=o.Slotted;else{let t=!1;!t&&this.userid&&(t=await this.getImageByProp(this.userid,this.fetchImageByUserId.bind(this))),!t&&this.email&&(t=await this.getImageByProp(this.email,this.fetchImageByEmail.bind(this))),t||this.getAvatarByInitials()}}async getImageByProp(t,i){var a;if(!t)return!1;const e=null!==(a=await this.getStorageItem(t))&&void 0!==a?a:{ok:!1,url:""};if(!e.ok)try{const t=await i();e.ok=t.ok,e.url=t.url,this.imageUrl=e.url,this.imageAlt=`${this.firstname} ${this.lastname} avatar`,this.avatarType=o.Image,this.setStorageItem(this.userid,JSON.stringify(e))}catch(i){this.removeStorageItem(t),console.info(`Loading avatar by type "${o.Image}" failed.`)}return e.ok}async fetchImageByUserId(){return await fetch(n.INTERNAL_USERID_IMAGE_SRC.replace("{userid}",encodeURIComponent(this.userid)))}async fetchImageByEmail(){const t=await this.cryptify(this.email),i="https://www.gravatar.com/avatar/{email}?s=80&d=404&r=g".replace("{email}",t);return await fetch(i)}getAvatarByInitials(){this.initials=this.getInitials(),this.avatarType=o.Initials}getNames(){return[this.firstname,this.lastname].filter((t=>t))}getInitials(){return this.getNames().map((t=>t.charAt(0))).join("").trim()}async getStorageItem(t){var i;const a=await this.cryptify(t),e=null===(i=null===window||void 0===window?void 0:window.sessionStorage)||void 0===i?void 0:i.getItem(a);return e?JSON.parse(e):null}async setStorageItem(t,i){var a;const e=await this.cryptify(t);null===(a=null===window||void 0===window?void 0:window.sessionStorage)||void 0===a||a.setItem(e,i)}async removeStorageItem(t){var i;const a=await this.cryptify(t);null===(i=null===window||void 0===window?void 0:window.sessionStorage)||void 0===i||i.removeItem(a)}async cryptify(t){return await crypto.subtle.digest("SHA-256",(new TextEncoder).encode(t)).then((t=>Array.from(new Uint8Array(t)).map((t=>t.toString(16).padStart(2,"0"))).join("")))}onSlotDefaultChange(){this.slottedImage=this.host.querySelector("img"),this.getAvatar()}componentWillRender(){this.slottedImage=this.host.querySelector("img"),this.getAvatar()}componentDidLoad(){this.validateFirstname()}render(){const t=this.getNames().reduce(((t,a,e)=>(e>0&&t.push(i("span",null," ")),t.push(a.charAt(0)),t.push(i("span",null,a.slice(1))),t)),[]);return i(a,{"data-version":s},i("slot",{onSlotchange:this.onSlotDefaultChange.bind(this)},"image"===this.avatarType&&i("img",{src:this.imageUrl,alt:this.imageAlt}),"initials"===this.avatarType&&i("div",{class:"initials"},t)))}get host(){return e(this)}static get watchers(){return{firstname:["validateFirstname"]}}};n.INTERNAL_USERID_IMAGE_SRC="https://web.post.ch/UserProfileImage/{userid}.png",n.style='/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{--post-avatar-bg:var(--post-scheme-color-interactive-primary-enabled-bg2);--post-avatar-fg:var(--post-scheme-color-interactive-primary-enabled-fg3);display:inline-flex;position:relative;width:var(--post-device-sizing-interactive-icon-size3);height:var(--post-device-sizing-interactive-icon-size3);background-color:var(--post-scheme-color-interactive-primary-enabled-stroke3);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-enabled-stroke3);border-radius:var(--post-device-border-radius-round);font-size:var(--post-device-font-size-8);vertical-align:top;line-height:1}:host::after{display:block;content:"";position:absolute;inset:0;z-index:1;border-radius:inherit}*,*::before,*::after{box-sizing:border-box}slot,img,::slotted(img){display:block;width:100%;height:100%}img,::slotted(img){border-radius:var(--post-device-border-radius-round)}::slotted(:not(img)){display:none !important}.initials{display:flex;justify-content:center;align-items:center;position:relative;z-index:2;width:100%;height:100%;background-color:var(--post-avatar-bg);border-radius:var(--post-device-border-radius-round);color:var(--post-avatar-fg);text-transform:uppercase}.initials span{width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.initials span:not(caption){position:absolute !important}';export{n as P}
@@ -0,0 +1 @@
1
+ export{P as post_menu_trigger}from"./p-59b31557.js";import"./p-3eab790d.js";import"./p-f2e1b4d8.js";import"./p-4a3f67ab.js";import"./p-fc91cbc2.js";
@@ -0,0 +1 @@
1
+ export{P as post_tag}from"./p-485dafcf.js";import"./p-3eab790d.js";import"./p-f2e1b4d8.js";
@@ -1,4 +1,4 @@
1
- import{r as e,h as t,H as n,g as r}from"./p-3eab790d.js";import{v as o}from"./p-f6b44820.js";import{g as i}from"./p-6adeaa6c.js";import{d as a}from"./p-0338f9da.js";var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var c,d,s={exports:{}},f={exports:{}},b={exports:{}},v={exports:{}},p={exports:{}};c=p,d=p.exports,Object.defineProperty(d,"__esModule",{value:!0}),d.default=function(e){if(!e)return[];if(Array.isArray(e))return e;if(void 0!==e.nodeType)return[e];if("string"==typeof e&&(e=document.querySelectorAll(e)),void 0!==e.length)return[].slice.call(e,0);throw new TypeError("unexpected input "+String(e))},c.exports=d.default,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.label,n=void 0===t?"context-to-element":t,o=e.resolveDocument,i=e.defaultToDocument,a=(0,r.default)(e.context)[0];if(o&&a&&a.nodeType===Node.DOCUMENT_NODE&&(a=a.documentElement),!a&&i)return document.documentElement;if(!a)throw new TypeError(n+" requires valid options.context");if(a.nodeType!==Node.ELEMENT_NODE&&a.nodeType!==Node.DOCUMENT_FRAGMENT_NODE)throw new TypeError(n+" requires options.context to be an Element");return a};var n,r=(n=p.exports)&&n.__esModule?n:{default:n};e.exports=t.default}(v,v.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=[],t=(0,r.default)({label:"get/parents",context:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).context});t;)e.push(t),(t=t.parentNode)&&t.nodeType!==Node.ELEMENT_NODE&&(t=null);return e};var n,r=(n=v.exports)&&n.__esModule?n:{default:n};e.exports=t.default}(b,b.exports);var m={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return r||function(e){n.some((function(t){return!!e[t]&&(r=t,!0)}))}(e),e[r](t)};var n=["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector"],r=null;e.exports=t.default}(m,m.exports);var x={exports:{}},h={exports:{}},g={exports:{}},O={exports:{}},w={exports:{}},S={exports:{}};
1
+ import{r as e,h as t,H as n,g as r}from"./p-3eab790d.js";import{v as o}from"./p-f2e1b4d8.js";import{g as i}from"./p-6adeaa6c.js";import{d as a}from"./p-0338f9da.js";var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var c,d,s={exports:{}},f={exports:{}},b={exports:{}},v={exports:{}},p={exports:{}};c=p,d=p.exports,Object.defineProperty(d,"__esModule",{value:!0}),d.default=function(e){if(!e)return[];if(Array.isArray(e))return e;if(void 0!==e.nodeType)return[e];if("string"==typeof e&&(e=document.querySelectorAll(e)),void 0!==e.length)return[].slice.call(e,0);throw new TypeError("unexpected input "+String(e))},c.exports=d.default,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.label,n=void 0===t?"context-to-element":t,o=e.resolveDocument,i=e.defaultToDocument,a=(0,r.default)(e.context)[0];if(o&&a&&a.nodeType===Node.DOCUMENT_NODE&&(a=a.documentElement),!a&&i)return document.documentElement;if(!a)throw new TypeError(n+" requires valid options.context");if(a.nodeType!==Node.ELEMENT_NODE&&a.nodeType!==Node.DOCUMENT_FRAGMENT_NODE)throw new TypeError(n+" requires options.context to be an Element");return a};var n,r=(n=p.exports)&&n.__esModule?n:{default:n};e.exports=t.default}(v,v.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=[],t=(0,r.default)({label:"get/parents",context:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).context});t;)e.push(t),(t=t.parentNode)&&t.nodeType!==Node.ELEMENT_NODE&&(t=null);return e};var n,r=(n=v.exports)&&n.__esModule?n:{default:n};e.exports=t.default}(b,b.exports);var m={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return r||function(e){n.some((function(t){return!!e[t]&&(r=t,!0)}))}(e),e[r](t)};var n=["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector"],r=null;e.exports=t.default}(m,m.exports);var x={exports:{}},h={exports:{}},g={exports:{}},O={exports:{}},w={exports:{}},S={exports:{}};
2
2
  /*!
3
3
  * Platform.js <https://mths.be/platform>
4
4
  * Copyright 2014-2016 Benjamin Tan <https://demoneaux.github.io/>
@@ -12,4 +12,4 @@ import{r as e,h as t,H as n,g as r}from"./p-3eab790d.js";import{v as o}from"./p-
12
12
  * https://github.com/john-doherty/long-press-event
13
13
  * @author John Doherty <www.johndoherty.info>
14
14
  * @license MIT
15
- */!function(e,t){var n=null,r="PointerEvent"in e||e.navigator&&"msPointerEnabled"in e.navigator,o="ontouchstart"in e||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0,i=r?"pointerdown":o?"touchstart":"mousedown",a=r?"pointerup":o?"touchend":"mouseup",u=r?"pointermove":o?"touchmove":"mousemove",l=r?"pointerleave":o?"touchleave":"mouseleave",c=0,d=0;function s(e){var n;b(),e=void 0!==(n=e).changedTouches?n.changedTouches[0]:n,this.dispatchEvent(new CustomEvent("long-press",{bubbles:!0,cancelable:!0,detail:{clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,pageX:e.pageX,pageY:e.pageY},clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,pageX:e.pageX,pageY:e.pageY,screenX:e.screenX,screenY:e.screenY}))||t.addEventListener("click",(function e(n){t.removeEventListener("click",e,!0),function(e){e.stopImmediatePropagation(),e.preventDefault(),e.stopPropagation()}(n)}),!0)}function f(r){b();var o=r.target,i=parseInt(function(e){for(;e&&e!==t.documentElement;){var n=e.getAttribute("data-long-press-delay");if(n)return n;e=e.parentNode}return"1500"}(o),10);n=function(t,n){if(!(e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame&&e.mozCancelRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame))return e.setTimeout(t,n);var r=(new Date).getTime(),o={},i=function(){(new Date).getTime()-r>=n?t.call():o.value=requestAnimFrame(i)};return o.value=requestAnimFrame(i),o}(s.bind(o,r),i)}function b(){var t;(t=n)&&(e.cancelAnimationFrame?e.cancelAnimationFrame(t.value):e.webkitCancelAnimationFrame?e.webkitCancelAnimationFrame(t.value):e.webkitCancelRequestAnimationFrame?e.webkitCancelRequestAnimationFrame(t.value):e.mozCancelRequestAnimationFrame?e.mozCancelRequestAnimationFrame(t.value):e.oCancelRequestAnimationFrame?e.oCancelRequestAnimationFrame(t.value):e.msCancelRequestAnimationFrame?e.msCancelRequestAnimationFrame(t.value):clearTimeout(t)),n=null}"function"!=typeof e.CustomEvent&&(e.CustomEvent=function(e,n){n=n||{bubbles:!1,cancelable:!1,detail:void 0};var r=t.createEvent("CustomEvent");return r.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),r},e.CustomEvent.prototype=e.Event.prototype),e.requestAnimFrame=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(t){e.setTimeout(t,1e3/60)},t.addEventListener(a,b,!0),t.addEventListener(l,b,!0),t.addEventListener(u,(function(e){var t=Math.abs(c-e.clientX),n=Math.abs(d-e.clientY);(t>=10||n>=10)&&b()}),!0),t.addEventListener("wheel",b,!0),t.addEventListener("scroll",b,!0),t.addEventListener("contextmenu",b,!0),t.addEventListener(i,(function(e){c=e.clientX,d=e.clientY,f(e)}),!0)}(window,document);let Ze=0,$e=null;const Ne="data-tooltip-target",Ge=`[${Ne}]`;let Xe,De=null;const Le=e=>{const t=e.target.closest(Ge);if(Xe=t,!t||!("getAttribute"in t))return void clearTimeout(De);const n=t.getAttribute(Ne);if(!n||""===n)return;const r=document.getElementById(n);null==r||r.show(t,"focusin"===e.type),$e&&(window.clearTimeout($e),$e=null)},Ke=e=>{const t=e.target.closest(Ge);if(!t||!("getAttribute"in t))return;const n=t.getAttribute(Ne);if(!n||""===n)return;const r=document.getElementById(n);He(r)},He=e=>{$e=window.setTimeout((()=>{e.hide(),$e=null}),42)},ze=e=>{const t=e.getAttribute("aria-describedby"),n=e.getAttribute(Ne);(null==t?void 0:t.includes(n))||e.setAttribute("aria-describedby",t?`${t} ${n}`:n),Re(e)||e.setAttribute("tabindex","0")},Ve=i(Ne,ze),Je=class{constructor(t){e(this,t),this.wasOpenedByFocus=!1,this.placement="top",this.arrow=!0,this.delayed=!1}validateDelayed(){a(this.delayed,"boolean",'The post-tooltip "delayed" property should be a boolean.')}connectedCallback(){this.validateDelayed()}componentDidLoad(){if(!this.host.id)throw new Error("No id set: <post-tooltip> must have an id, linking it to it's target element using the data-tooltip-target attribute.")}componentWillLoad(){0===Ze&&(document.addEventListener("pointerover",Le),document.addEventListener("pointerout",Ke),document.addEventListener("focusin",Le),document.addEventListener("focusout",Ke),document.addEventListener("long-press",Le),document.querySelectorAll("[data-tooltip-target]").forEach(ze),Ve.observe(document.body,{subtree:!0,childList:!0,attributeFilter:[Ne]})),Ze++}disconnectedCallback(){Ze--,Ze<=0&&(document.removeEventListener("pointerover",Le),document.removeEventListener("pointerout",Ke),document.removeEventListener("focusin",Le),document.removeEventListener("focusout",Ke),document.removeEventListener("long-press",Le),Ve.disconnect())}async show(e,t=!1){const n=()=>{Xe===e&&(this.wasOpenedByFocus=t,this.host.style.pointerEvents=this.wasOpenedByFocus?"none":"auto",this.popoverRef.show(e))};this.delayed?De=setTimeout((()=>{n()}),650):n()}async hide(){this.popoverRef.hide()}async toggle(e,t){this.popoverRef.toggle(e,t)}handleInterest(){$e&&(window.clearTimeout($e),$e=null)}handleInterestLost(){He(this),this.host.style.pointerEvents="auto"}render(){return t(n,{key:"8c14096295ee459a3a727e361eaacf0892eb1824","data-version":o,role:"tooltip",onPointerOver:this.handleInterest,onPointerOut:this.handleInterestLost,onFocusIn:this.handleInterest,onFocusOut:this.handleInterestLost},t("post-popovercontainer",{key:"65138a845ec05bd830e6534519ac4df7bb00067d",class:this.arrow?" has-arrow":"",arrow:this.arrow,placement:this.placement,ref:e=>this.popoverRef=e},t("slot",{key:"5296d0864df7d07b498924a40a475ff7c94be6b8"})))}get host(){return r(this)}static get watchers(){return{delayed:["validateDelayed"]}}};Je.style=':host{--post-contrast-color:#fff;--post-bg-rgb:51, 51, 51}post-popovercontainer{padding:.25rem .5rem;max-width:13.5rem;min-height:1rem}post-popovercontainer[arrow]::after{position:absolute;content:"";inset:-13px;z-index:-1}';export{Je as P}
15
+ */!function(e,t){var n=null,r="PointerEvent"in e||e.navigator&&"msPointerEnabled"in e.navigator,o="ontouchstart"in e||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0,i=r?"pointerdown":o?"touchstart":"mousedown",a=r?"pointerup":o?"touchend":"mouseup",u=r?"pointermove":o?"touchmove":"mousemove",l=r?"pointerleave":o?"touchleave":"mouseleave",c=0,d=0;function s(e){var n;b(),e=void 0!==(n=e).changedTouches?n.changedTouches[0]:n,this.dispatchEvent(new CustomEvent("long-press",{bubbles:!0,cancelable:!0,detail:{clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,pageX:e.pageX,pageY:e.pageY},clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,pageX:e.pageX,pageY:e.pageY,screenX:e.screenX,screenY:e.screenY}))||t.addEventListener("click",(function e(n){t.removeEventListener("click",e,!0),function(e){e.stopImmediatePropagation(),e.preventDefault(),e.stopPropagation()}(n)}),!0)}function f(r){b();var o=r.target,i=parseInt(function(e){for(;e&&e!==t.documentElement;){var n=e.getAttribute("data-long-press-delay");if(n)return n;e=e.parentNode}return"1500"}(o),10);n=function(t,n){if(!(e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame&&e.mozCancelRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame))return e.setTimeout(t,n);var r=(new Date).getTime(),o={},i=function(){(new Date).getTime()-r>=n?t.call():o.value=requestAnimFrame(i)};return o.value=requestAnimFrame(i),o}(s.bind(o,r),i)}function b(){var t;(t=n)&&(e.cancelAnimationFrame?e.cancelAnimationFrame(t.value):e.webkitCancelAnimationFrame?e.webkitCancelAnimationFrame(t.value):e.webkitCancelRequestAnimationFrame?e.webkitCancelRequestAnimationFrame(t.value):e.mozCancelRequestAnimationFrame?e.mozCancelRequestAnimationFrame(t.value):e.oCancelRequestAnimationFrame?e.oCancelRequestAnimationFrame(t.value):e.msCancelRequestAnimationFrame?e.msCancelRequestAnimationFrame(t.value):clearTimeout(t)),n=null}"function"!=typeof e.CustomEvent&&(e.CustomEvent=function(e,n){n=n||{bubbles:!1,cancelable:!1,detail:void 0};var r=t.createEvent("CustomEvent");return r.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),r},e.CustomEvent.prototype=e.Event.prototype),e.requestAnimFrame=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(t){e.setTimeout(t,1e3/60)},t.addEventListener(a,b,!0),t.addEventListener(l,b,!0),t.addEventListener(u,(function(e){var t=Math.abs(c-e.clientX),n=Math.abs(d-e.clientY);(t>=10||n>=10)&&b()}),!0),t.addEventListener("wheel",b,!0),t.addEventListener("scroll",b,!0),t.addEventListener("contextmenu",b,!0),t.addEventListener(i,(function(e){c=e.clientX,d=e.clientY,f(e)}),!0)}(window,document);let Ze=0,$e=null;const Ne="data-tooltip-target",Ge=`[${Ne}]`;let Xe,De=null;const Le=e=>{const t=e.target.closest(Ge);if(Xe=t,!t||!("getAttribute"in t))return void clearTimeout(De);const n=t.getAttribute(Ne);if(!n||""===n)return;const r=document.getElementById(n);null==r||r.show(t,"focusin"===e.type),$e&&(window.clearTimeout($e),$e=null)},Ke=e=>{const t=e.target.closest(Ge);if(!t||!("getAttribute"in t))return;const n=t.getAttribute(Ne);if(!n||""===n)return;const r=document.getElementById(n);He(r)},He=e=>{$e=window.setTimeout((()=>{e.hide(),$e=null}),42)},ze=e=>{const t=e.getAttribute("aria-describedby"),n=e.getAttribute(Ne);(null==t?void 0:t.includes(n))||e.setAttribute("aria-describedby",t?`${t} ${n}`:n),Re(e)||e.setAttribute("tabindex","0")},Ve=i(Ne,ze),Je=class{constructor(t){e(this,t),this.wasOpenedByFocus=!1,this.placement="top",this.arrow=!0,this.delayed=!1}validateDelayed(){a(this.delayed,"boolean",'The post-tooltip "delayed" property should be a boolean.')}connectedCallback(){this.validateDelayed()}componentDidLoad(){if(!this.host.id)throw new Error("No id set: <post-tooltip> must have an id, linking it to it's target element using the data-tooltip-target attribute.")}componentWillLoad(){0===Ze&&(document.addEventListener("pointerover",Le),document.addEventListener("pointerout",Ke),document.addEventListener("focusin",Le),document.addEventListener("focusout",Ke),document.addEventListener("long-press",Le),document.querySelectorAll("[data-tooltip-target]").forEach(ze),Ve.observe(document.body,{subtree:!0,childList:!0,attributeFilter:[Ne]})),Ze++}disconnectedCallback(){Ze--,Ze<=0&&(document.removeEventListener("pointerover",Le),document.removeEventListener("pointerout",Ke),document.removeEventListener("focusin",Le),document.removeEventListener("focusout",Ke),document.removeEventListener("long-press",Le),Ve.disconnect())}async show(e,t=!1){const n=()=>{Xe===e&&(this.wasOpenedByFocus=t,this.host.style.pointerEvents=this.wasOpenedByFocus?"none":"auto",this.popoverRef.show(e))};this.delayed?De=setTimeout((()=>{n()}),650):n()}async hide(){this.popoverRef.hide()}async toggle(e,t){this.popoverRef.toggle(e,t)}handleInterest(){$e&&(window.clearTimeout($e),$e=null)}handleInterestLost(){He(this),this.host.style.pointerEvents="auto"}render(){return t(n,{key:"accf9ab04bcac0d6ed46818dc00e9110f936e593","data-version":o,role:"tooltip",onPointerOver:this.handleInterest,onPointerOut:this.handleInterestLost,onFocusIn:this.handleInterest,onFocusOut:this.handleInterestLost},t("post-popovercontainer",{key:"e31610624b6833e78de7cb6ec52fb3fc5ca02d49",class:this.arrow?" has-arrow":"",arrow:this.arrow,placement:this.placement,ref:e=>this.popoverRef=e},t("slot",{key:"206925925cc51d3b0eb4f2c0b1e8ca65ab3fd8c4"})))}get host(){return r(this)}static get watchers(){return{delayed:["validateDelayed"]}}};Je.style=':host{--post-contrast-color:#fff;--post-bg-rgb:51, 51, 51}post-popovercontainer{padding:.25rem .5rem;max-width:13.5rem;min-height:1rem}post-popovercontainer[arrow]::after{position:absolute;content:"";inset:-13px;z-index:-1}';export{Je as P}
@@ -1 +1 @@
1
- import{r as t,h as e,H as n,g as o,c as i}from"./p-3eab790d.js";import{v as a}from"./p-f6b44820.js";import{c as r,d as s,b as l}from"./p-0338f9da.js";import{c}from"./p-b095519d.js";import{c as d}from"./p-4a3f67ab.js";const f=class{constructor(e){t(this,e)}render(){return e(n,{key:"b7e24245bf8319049c57737d754f566abf70b2ff","data-version":a},e("button",{key:"ab26b009632b4050d45eafc4dcab0e8ede55f943",class:"btn btn-icon-close"},e("post-icon",{key:"fa8da29f6f0795c3f0128c008e2fd8caee272fe5","aria-hidden":"true",name:"2043"}),e("span",{key:"f55941d6449a08911a2432213cf2f4c2b3f961aa",class:"visually-hidden"},e("slot",{key:"172454f7bbb2fa54f245137c49d4bde0527a1308"}))))}get host(){return o(this)}},p=["cylon","cylon-vertical","spin","spin-reverse","fade","throb"],h=class{constructor(e){t(this,e),this.animation=null,this.base=null,this.flipH=!1,this.flipV=!1,this.name=void 0,this.rotate=null,this.scale=null}validateAnimation(t=this.animation){void 0!==t&&r(t,p,`The post-icon "animation" prop requires one of the following values: ${p.join(", ")}.`)}validateBase(t=this.base){s(t,"string",'The post-icon "base" prop should be a string.')}validateFlipH(t=this.flipH){s(t,"boolean",'The post-icon "flipH" prop should be a boolean.')}validateFlipV(t=this.flipV){s(t,"boolean",'The post-icon "flipV" prop should be a boolean.')}validateName(t=this.name){c(t,'The post-icon "name" prop is required!.'),d(t,"string",'The post-icon "name" prop should be a string.')}validateRotate(t=this.rotate){s(t,"number",'The post-icon "rotate" prop should be a number.')}validateScale(t=this.scale){s(t,"number",'The post-icon "scale" prop should be a number.')}getPath(){var t,e,n,o,i,a;const r=null!==(e=null===(t=document.head.querySelector('meta[name="design-system-settings"][data-post-icon-base]'))||void 0===t?void 0:t.getAttribute("data-post-icon-base"))&&void 0!==e?e:null,s=null===(n=document.getElementsByTagName("base")[0])||void 0===n?void 0:n.href,l=`${null!==(a=null!==(i=null!==(o=this.base)&&void 0!==o?o:r)&&void 0!==i?i:s)&&void 0!==a?a:"https://unpkg.com/@swisspost/design-system-icons/public/post-icons"}/`.replace(/\/\/$/,"/");return new URL(`${l}${this.name}.svg#i-${this.name}`,window.location.origin).toString()}getStyles(){return Object.entries({transform:(this.scale&&!isNaN(Number(this.scale))?"scale("+this.scale+")":"")+(this.rotate&&!isNaN(Number(this.rotate))?" rotate("+this.rotate+"deg)":"")}).filter((([t,e])=>null!==e)).reduce(((t,[e,n])=>Object.assign(t,{[e]:n})),{})}componentDidLoad(){this.validateBase(),this.validateName(),this.validateFlipH(),this.validateFlipV(),this.validateScale(),this.validateRotate(),this.validateAnimation()}render(){return e(n,{key:"34a48ba95a05ab98ccbd7d5c59423f8f261c2a77","data-version":a},e("svg",{key:"34a70353c83fba4b8606ee4516cda7982c042ea2",style:this.getStyles()},e("use",{key:"3241328a9e9b1f7929d79fff89725d98e5e162a0",href:this.getPath()})))}get host(){return o(this)}static get watchers(){return{animation:["validateAnimation"],base:["validateBase"],flipH:["validateFlipH"],flipV:["validateFlipV"],name:["validateName"],rotate:["validateRotate"],scale:["validateScale"]}}};h.style=":host{container-name:post-icon;container-type:inline-size;display:inline-block;width:1em;height:1em;vertical-align:-0.15em}svg{display:block;width:100%;height:100%;fill:currentColor;forced-color-adjust:preserve-parent-color}@container post-icon (max-width: 23.98px){svg{--pis-16: block}}@container post-icon (min-width: 24px) and (max-width: 31.98px){svg{--pis-24: block}}@container post-icon (min-width: 32px) and (max-width: 39.98px){svg{--pis-32: block}}@container post-icon (min-width: 40px) and (max-width: 47.98px){svg{--pis-40: block}}@container post-icon (min-width: 48px) and (max-width: 63.98px){svg{--pis-48: block}}@container post-icon (min-width: 64px){svg{--pis-64: block}}: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 u=class{constructor(e){t(this,e),this.url=void 0}validateUrl(){l(this.url,'The "url" property of the post-logo is invalid')}componentDidLoad(){this.validateUrl(),this.checkDescription()}checkDescription(){this.host.textContent||console.warn("Be sure to add descriptive text in the post-logo to ensure good accessibility of the component.")}render(){const t=this.url&&("string"==typeof this.url?this.url:this.url.href);return e(n,{key:"d3dd408c30b4e22712b9a293906c7334e7d1852b","data-version":a,slot:"post-logo"},e(t?"a":"span",Object.assign({key:"4eb08a4d1b4a0ec2557b63678225a16d287c692c",class:"logo"},t?{href:t}:{}),e("span",{key:"ab3b1a8da4a7b87aa0a020d47586a7018619e9c3",class:"description"},e("slot",{key:"a9c39b1f2f54fd4ceb79a82ab30571c161a29adb",onSlotchange:()=>this.checkDescription()})),e("svg",{key:"af4c3fbdb2a72e0b8518a6c16cefdb795f41244c",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 72 72","aria-hidden":"true"},e("g",{key:"05e25c1522dd4edfc676b04cf9092ed519d95381",id:"Logo"},e("rect",{key:"12e1b7878e990e110c8ae83ef742bb6fa4c48a2f",fill:"#ffcc00",x:"0",y:"0",width:"72",height:"72"}),e("polygon",{key:"0e1120c70769c4a23b3711c1157e6f1742e3a75b",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:"ccc271be1919898fc6eed78bf2e012e71dd96c48",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 o(this)}static get watchers(){return{url:["validateUrl"]}}};u.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}";const b=Math.min,m=Math.max,g=Math.round,v=Math.floor,y=t=>({x:t,y:t}),w={left:"right",right:"left",bottom:"top",top:"bottom"},x={start:"end",end:"start"};function k(t,e,n){return m(t,b(e,n))}function T(t,e){return"function"==typeof t?t(e):t}function S(t){return t.split("-")[0]}function M(t){return t.split("-")[1]}function E(t){return"x"===t?"y":"x"}function A(t){return"y"===t?"height":"width"}function L(t){return["top","bottom"].includes(S(t))?"y":"x"}function D(t){return E(L(t))}function H(t){return t.replace(/start|end/g,(t=>x[t]))}function z(t){return t.replace(/left|right|bottom|top/g,(t=>w[t]))}function O(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function C(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function j(t,e,n){let{reference:o,floating:i}=t;const a=L(e),r=D(e),s=A(r),l=S(e),c="y"===a,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[s]/2-i[s]/2;let h;switch(l){case"top":h={x:d,y:o.y-i.height};break;case"bottom":h={x:d,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-i.width,y:f};break;default:h={x:o.x,y:o.y}}switch(M(e)){case"start":h[r]-=p*(n&&c?-1:1);break;case"end":h[r]+=p*(n&&c?-1:1)}return h}async function R(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:a,rects:r,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=T(e,t),u=O(h),b=s[p?"floating"===f?"reference":"floating":f],m=C(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(b)))||n?b:b.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),g="floating"===f?{...r.floating,x:o,y:i}:r.reference,v=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),y=await(null==a.isElement?void 0:a.isElement(v))&&await(null==a.getScale?void 0:a.getScale(v))||{x:1,y:1},w=C(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:v,strategy:l}):g);return{top:(m.top-w.top+u.top)/y.y,bottom:(w.bottom-m.bottom+u.bottom)/y.y,left:(m.left-w.left+u.left)/y.x,right:(w.right-m.right+u.right)/y.x}}function P(t){const e=b(...t.map((t=>t.left))),n=b(...t.map((t=>t.top)));return{x:e,y:n,width:m(...t.map((t=>t.right)))-e,height:m(...t.map((t=>t.bottom)))-n}}function F(t){return $(t)?(t.nodeName||"").toLowerCase():"#document"}function B(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function W(t){var e;return null==(e=($(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function $(t){return t instanceof Node||t instanceof B(t).Node}function N(t){return t instanceof Element||t instanceof B(t).Element}function q(t){return t instanceof HTMLElement||t instanceof B(t).HTMLElement}function I(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof B(t).ShadowRoot)}function V(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=J(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function Y(t){return["table","td","th"].includes(F(t))}function G(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function U(t){const e=X(),n=N(t)?J(t):t;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function X(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function _(t){return["html","body","#document"].includes(F(t))}function J(t){return B(t).getComputedStyle(t)}function K(t){return N(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Q(t){if("html"===F(t))return t;const e=t.assignedSlot||t.parentNode||I(t)&&t.host||W(t);return I(e)?e.host:e}function Z(t){const e=Q(t);return _(e)?t.ownerDocument?t.ownerDocument.body:t.body:q(e)&&V(e)?e:Z(e)}function tt(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=Z(t),a=i===(null==(o=t.ownerDocument)?void 0:o.body),r=B(i);return a?e.concat(r,r.visualViewport||[],V(i)?i:[],r.frameElement&&n?tt(r.frameElement):[]):e.concat(i,tt(i,[],n))}function et(t){const e=J(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=q(t),a=i?t.offsetWidth:n,r=i?t.offsetHeight:o,s=g(n)!==a||g(o)!==r;return s&&(n=a,o=r),{width:n,height:o,$:s}}function nt(t){return N(t)?t:t.contextElement}function ot(t){const e=nt(t);if(!q(e))return y(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:a}=et(e);let r=(a?g(n.width):n.width)/o,s=(a?g(n.height):n.height)/i;return r&&Number.isFinite(r)||(r=1),s&&Number.isFinite(s)||(s=1),{x:r,y:s}}const it=y(0);function at(t){const e=B(t);return X()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:it}function rt(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),a=nt(t);let r=y(1);e&&(o?N(o)&&(r=ot(o)):r=ot(t));const s=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==B(t))&&e}(a,n,o)?at(a):y(0);let l=(i.left+s.x)/r.x,c=(i.top+s.y)/r.y,d=i.width/r.x,f=i.height/r.y;if(a){const t=B(a),e=o&&N(o)?B(o):o;let n=t,i=n.frameElement;for(;i&&o&&e!==n;){const t=ot(i),e=i.getBoundingClientRect(),o=J(i),a=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,r=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;l*=t.x,c*=t.y,d*=t.x,f*=t.y,l+=a,c+=r,n=B(i),i=n.frameElement}}return C({width:d,height:f,x:l,y:c})}function st(t){return rt(W(t)).left+K(t).scrollLeft}function lt(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=B(t),o=W(t),i=n.visualViewport;let a=o.clientWidth,r=o.clientHeight,s=0,l=0;if(i){a=i.width,r=i.height;const t=X();(!t||t&&"fixed"===e)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:r,x:s,y:l}}(t,n);else if("document"===e)o=function(t){const e=W(t),n=K(t),o=t.ownerDocument.body,i=m(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=m(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let r=-n.scrollLeft+st(t);const s=-n.scrollTop;return"rtl"===J(o).direction&&(r+=m(e.clientWidth,o.clientWidth)-i),{width:i,height:a,x:r,y:s}}(W(t));else if(N(e))o=function(t,e){const n=rt(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,a=q(t)?ot(t):y(1);return{width:t.clientWidth*a.x,height:t.clientHeight*a.y,x:i*a.x,y:o*a.y}}(e,n);else{const n=at(t);o={...e,x:e.x-n.x,y:e.y-n.y}}return C(o)}function ct(t,e){const n=Q(t);return!(n===e||!N(n)||_(n))&&("fixed"===J(n).position||ct(n,e))}function dt(t,e,n){const o=q(e),i=W(e),a="fixed"===n,r=rt(t,!0,a,e);let s={scrollLeft:0,scrollTop:0};const l=y(0);if(o||!o&&!a)if(("body"!==F(e)||V(i))&&(s=K(e)),o){const t=rt(e,!0,a,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else i&&(l.x=st(i));return{x:r.left+s.scrollLeft-l.x,y:r.top+s.scrollTop-l.y,width:r.width,height:r.height}}function ft(t){return"static"===J(t).position}function pt(t,e){return q(t)&&"fixed"!==J(t).position?e?e(t):t.offsetParent:null}function ht(t,e){const n=B(t);if(G(t))return n;if(!q(t)){let e=Q(t);for(;e&&!_(e);){if(N(e)&&!ft(e))return e;e=Q(e)}return n}let o=pt(t,e);for(;o&&Y(o)&&ft(o);)o=pt(o,e);return o&&_(o)&&ft(o)&&!U(o)?n:o||function(t){let e=Q(t);for(;q(e)&&!_(e);){if(U(e))return e;if(G(e))return null;e=Q(e)}return null}(t)||n}const ut={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const a="fixed"===i,r=W(o),s=!!e&&G(e.floating);if(o===r||s&&a)return n;let l={scrollLeft:0,scrollTop:0},c=y(1);const d=y(0),f=q(o);if((f||!f&&!a)&&(("body"!==F(o)||V(r))&&(l=K(o)),q(o))){const t=rt(o);c=ot(o),d.x=t.x+o.clientLeft,d.y=t.y+o.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x,y:n.y*c.y-l.scrollTop*c.y+d.y}},getDocumentElement:W,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const a=[..."clippingAncestors"===n?G(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=tt(t,[],!1).filter((t=>N(t)&&"body"!==F(t))),i=null;const a="fixed"===J(t).position;let r=a?Q(t):t;for(;N(r)&&!_(r);){const e=J(r),n=U(r);n||"fixed"!==e.position||(i=null),(a?!n&&!i:!n&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||V(r)&&!n&&ct(t,r))?o=o.filter((t=>t!==r)):i=e,r=Q(r)}return e.set(t,o),o}(e,this._c):[].concat(n),o],r=a.reduce(((t,n)=>{const o=lt(e,n,i);return t.top=m(o.top,t.top),t.right=b(o.right,t.right),t.bottom=b(o.bottom,t.bottom),t.left=m(o.left,t.left),t}),lt(e,a[0],i));return{width:r.right-r.left,height:r.bottom-r.top,x:r.left,y:r.top}},getOffsetParent:ht,getElementRects:async function(t){const e=this.getOffsetParent||ht,n=this.getDimensions,o=await n(t.floating);return{reference:dt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=et(t);return{width:e,height:n}},getScale:ot,isElement:N,isRTL:function(t){return"rtl"===J(t).direction}};const bt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:a,placement:r,middlewareData:s}=e,l=await async function(t,e){const{placement:n,platform:o,elements:i}=t,a=await(null==o.isRTL?void 0:o.isRTL(i.floating)),r=S(n),s=M(n),l="y"===L(n),c=["left","top"].includes(r)?-1:1,d=a&&l?-1:1,f=T(e,t);let{mainAxis:p,crossAxis:h,alignmentAxis:u}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&"number"==typeof u&&(h="end"===s?-1*u:u),l?{x:h*d,y:p*c}:{x:p*c,y:h*d}}(e,t);return r===(null==(n=s.offset)?void 0:n.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:r}}}}},mt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:a=!0,crossAxis:r=!1,limiter:s={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=T(t,e),c={x:n,y:o},d=await R(e,l),f=L(S(i)),p=E(f);let h=c[p],u=c[f];a&&(h=k(h+d["y"===p?"top":"left"],h,h-d["y"===p?"bottom":"right"])),r&&(u=k(u+d["y"===f?"top":"left"],u,u-d["y"===f?"bottom":"right"]));const b=s.fn({...e,[p]:h,[f]:u});return{...b,data:{x:b.x-n,y:b.y-o}}}}},gt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:a,rects:r,initialPlacement:s,platform:l,elements:c}=e,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:b=!0,...m}=T(t,e);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const g=S(i),v=S(s)===s,y=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(v||!b?[z(s)]:function(t){const e=z(t);return[H(t),e,H(e)]}(s));p||"none"===u||w.push(...function(t,e,n,o){const i=M(t);let a=function(t,e,n){const o=["left","right"],i=["right","left"],a=["top","bottom"],r=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?a:r;default:return[]}}(S(t),"start"===n,o);return i&&(a=a.map((t=>t+"-"+i)),e&&(a=a.concat(a.map(H)))),a}(s,b,u,y));const x=[s,...w],k=await R(e,m),E=[];let L=(null==(o=a.flip)?void 0:o.overflows)||[];if(d&&E.push(k[g]),f){const t=function(t,e,n){void 0===n&&(n=!1);const o=M(t),i=D(t),a=A(i);let r="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[a]>e.floating[a]&&(r=z(r)),[r,z(r)]}(i,r,y);E.push(k[t[0]],k[t[1]])}if(L=[...L,{placement:i,overflows:E}],!E.every((t=>t<=0))){var O,C;const t=((null==(O=a.flip)?void 0:O.index)||0)+1,e=x[t];if(e)return{data:{index:t,overflows:L},reset:{placement:e}};let n=null==(C=L.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:C.placement;if(!n)switch(h){case"bestFit":{var j;const t=null==(j=L.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:j[0];t&&(n=t);break}case"initialPlacement":n=s}if(i!==n)return{reset:{placement:n}}}return{}}}},vt=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:i,elements:a}=e,{apply:r=(()=>{}),...s}=T(t,e),l=await R(e,s),c=S(n),d=M(n),f="y"===L(n),{width:p,height:h}=o.floating;let u,g;"top"===c||"bottom"===c?(u=c,g=d===(await(null==i.isRTL?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(g=c,u="end"===d?"top":"bottom");const v=h-l[u],y=p-l[g],w=!e.middlewareData.shift;let x=v,k=y;if(f){const t=p-l.left-l.right;k=d||w?b(y,t):t}else{const t=h-l.top-l.bottom;x=d||w?b(v,t):t}if(w&&!d){const t=m(l.left,0),e=m(l.right,0),n=m(l.top,0),o=m(l.bottom,0);f?k=p-2*(0!==t||0!==e?t+e:m(l.left,l.right)):x=h-2*(0!==n||0!==o?n+o:m(l.top,l.bottom))}await r({...e,availableWidth:k,availableHeight:x});const E=await i.getDimensions(a.floating);return p!==E.width||h!==E.height?{reset:{rects:!0}}:{}}}},yt=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:i,rects:a,middlewareData:r}=e,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=T(t,e),d={x:n,y:o},f=L(i),p=E(f);let h=d[p],u=d[f];const b=T(s,e),m="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){const t="y"===p?"height":"width",e=a.reference[p]-a.floating[t]+m.mainAxis,n=a.reference[p]+a.reference[t]-m.mainAxis;h<e?h=e:h>n&&(h=n)}if(c){var g,v;const t="y"===p?"width":"height",e=["top","left"].includes(S(i)),n=a.reference[f]-a.floating[t]+(e&&(null==(g=r.offset)?void 0:g[f])||0)+(e?0:m.crossAxis),o=a.reference[f]+a.reference[t]+(e?0:(null==(v=r.offset)?void 0:v[f])||0)-(e?m.crossAxis:0);u<n?u=n:u>o&&(u=o)}return{[p]:h,[f]:u}}}};(()=>{var t=class extends Event{oldState;newState;constructor(t,{oldState:e="",newState:n="",...o}={}){super(t,o),this.oldState=String(e||""),this.newState=String(n||"")}},e=new WeakMap;function n(n,o,i){e.set(n,setTimeout((()=>{e.has(n)&&n.dispatchEvent(new t("toggle",{cancelable:!1,oldState:o,newState:i}))}),0))}var o=globalThis.ShadowRoot||function(){},i=globalThis.HTMLDialogElement||function(){},a=new WeakMap,r=new WeakMap,s=new WeakMap;function l(t){return s.get(t)||"hidden"}var c=new WeakMap;function d(t,e){return!("auto"!==t.popover&&"manual"!==t.popover||!t.isConnected||e&&"showing"!==l(t)||!e&&"hidden"!==l(t)||t instanceof i&&t.hasAttribute("open")||document.fullscreenElement===t)}function f(t){return t?Array.from(r.get(t.ownerDocument)||[]).indexOf(t)+1:0}function p(t){let e=r.get(t);for(let t of e||[]){if(t.isConnected)return t;e.delete(t)}return null}function h(t){return"function"==typeof t.getRootNode?t.getRootNode():t.parentNode?h(t.parentNode):t}function u(t){for(;t;){if(t instanceof HTMLElement&&"auto"===t.popover&&"showing"===s.get(t))return t;if((t=t.parentElement||h(t))instanceof o&&(t=t.host),t instanceof Document)return}}function b(t){return!(t.hidden||t instanceof o||(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 m=new WeakMap;function g(e){if(!d(e,!1))return;let o=e.ownerDocument;if(!e.dispatchEvent(new t("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!d(e,!1))return;let i=!1;if("auto"===e.popover){let t=e.getAttribute("popover"),n=function(t){let e=new Map,n=0,o=t.ownerDocument;for(let t of r.get(o)||[])e.set(t,n),n+=1;e.set(t,n),n+=1;let i=null;return function(t){let n=u(t);if(null===n)return null;let o=e.get(n);(null===i||e.get(i)<o)&&(i=n)}(t?.parentElement),i}(e)||o;if(w(n,!1,!0),t!==e.getAttribute("popover")||!d(e,!1))return}p(o)||(i=!0),m.delete(e);let l=o.activeElement;e.classList.add(":popover-open"),s.set(e,"showing"),a.has(o)||a.set(o,new Set),a.get(o).add(e),function(t){(function(t){if(t.shadowRoot&&!0!==t.shadowRoot.delegatesFocus)return null;let e=t;e.shadowRoot&&(e=e.shadowRoot);let n=e.querySelector("[autofocus]");if(n)return n;{let t=e.querySelectorAll("slot");for(let e of t){let t=e.assignedElements({flatten:!0});for(let e of t){if(e.hasAttribute("autofocus"))return e;if(n=e.querySelector("[autofocus]"),n)return n}}}let o=t.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT),i=o.currentNode;for(;i;){if(b(i))return i;i=o.nextNode()}})(t)?.focus()}(e),"auto"===e.popover&&(r.has(o)||r.set(o,new Set),r.get(o).add(e),S(c.get(e),!0)),i&&l&&"auto"===e.popover&&m.set(e,l),n(e,"closed","open")}function v(e,o=!1,i=!1){if(!d(e,!0))return;let l=e.ownerDocument;if("auto"===e.popover&&(w(e,o,i),!d(e,!0))||(S(c.get(e),!1),c.delete(e),i&&(e.dispatchEvent(new t("beforetoggle",{oldState:"open",newState:"closed"})),!d(e,!0))))return;a.get(l)?.delete(e),r.get(l)?.delete(e),e.classList.remove(":popover-open"),s.set(e,"hidden"),i&&n(e,"open","closed");let f=m.get(e);f&&(m.delete(e),o&&f.focus())}function y(t,e=!1,n=!1){let o=p(t);for(;o;)v(o,e,n),o=p(t)}function w(t,e,n){let o=t.ownerDocument||t;if(t instanceof Document)return y(o,e,n);let i=null,a=!1;for(let e of r.get(o)||[])if(e===t)a=!0;else if(a){i=e;break}if(!a)return y(o,e,n);for(;i&&"showing"===l(i)&&r.get(o)?.size;)v(i,e,n)}var x=new WeakMap;function k(t){if(!t.isTrusted)return;let e=t.composedPath()[0];if(!e)return;let n=e.ownerDocument;if(!p(n))return;let i=function(t){let e=u(t),n=function(t){for(;t;){let e=t.popoverTargetElement;if(e instanceof HTMLElement)return e;if((t=t.parentElement||h(t))instanceof o&&(t=t.host),t instanceof Document)return}}(t);return f(e)>f(n)?e:n}(e);if(i&&"pointerdown"===t.type)x.set(n,i);else if("pointerup"===t.type){let t=x.get(n)===i;x.delete(n),t&&w(i||n,!1,!0)}}var T=new WeakMap;function S(t,e=!1){if(!t)return;T.has(t)||T.set(t,t.getAttribute("aria-expanded"));let n=t.popoverTargetElement;if(n instanceof HTMLElement&&"auto"===n.popover)t.setAttribute("aria-expanded",String(e));else{let e=T.get(t);e?t.setAttribute("aria-expanded",e):t.removeAttribute("aria-expanded")}}var M=globalThis.ShadowRoot||function(){};function E(t,e,n){let o=t[e];Object.defineProperty(t,e,{value(t){return o.call(this,n(t))}})}var A=/(^|[^\\]):popover-open\b/g,L="\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(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\n :where([popover]:not(.\\:popover-open)) {\n display: none;\n }\n",D=null;function H(t){if(null===D)try{(D=new CSSStyleSheet).replaceSync(L)}catch{D=!1}if(!1===D){let e=document.createElement("style");e.textContent=L,t instanceof Document?t.head.prepend(e):t.prepend(e)}else t.adoptedStyleSheets=[D,...t.adoptedStyleSheets]}typeof HTMLElement<"u"&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||function(){function e(t){return t?.includes(":popover-open")&&(t=t.replace(A,"$1.\\:popover-open")),t}window.ToggleEvent=window.ToggleEvent||t,E(Document.prototype,"querySelector",e),E(Document.prototype,"querySelectorAll",e),E(Element.prototype,"querySelector",e),E(Element.prototype,"querySelectorAll",e),E(Element.prototype,"matches",e),E(Element.prototype,"closest",e),E(DocumentFragment.prototype,"querySelectorAll",e),E(DocumentFragment.prototype,"querySelectorAll",e),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;let t=(this.getAttribute("popover")||"").toLowerCase();return""===t||"auto"==t?"auto":"manual"},set(t){this.setAttribute("popover",t)}},showPopover:{enumerable:!0,configurable:!0,value(){g(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){v(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t){"showing"===s.get(this)&&void 0===t||!1===t?v(this,!0,!0):(void 0===t||!0===t)&&g(this)}}});let n=Element.prototype.attachShadow;n&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(t){let e=n.call(this,t);return H(e),e}}});let o=HTMLElement.prototype.attachInternals;o&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){let t=o.call(this);return t.shadowRoot&&H(t.shadowRoot),t}}});let i=new WeakMap;function a(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||"input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type||this.disabled||this.form&&"submit"===this.type)return null;let t=i.get(this);if(t&&t.isConnected)return t;if(t&&!t.isConnected)return i.delete(this),null;let e=h(this),n=this.getAttribute("popovertarget");return(e instanceof Document||e instanceof M)&&n&&e.getElementById(n)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){let t=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===t||"hide"===t?t:"toggle"},set(t){this.setAttribute("popovertargetaction",t)}}})}a(HTMLButtonElement),a(HTMLInputElement);var r;(r=document).addEventListener("click",(t=>{if(!t.isTrusted)return;let e=t.composedPath()[0];if(!(e instanceof Element)||e?.shadowRoot)return;let n=h(e);if(!(n instanceof M||n instanceof Document))return;let o=e.closest("[popovertargetaction],[popovertarget]");return o?(function(t){let e=t.popoverTargetElement;if(!(e instanceof HTMLElement))return;let n=l(e);"show"===t.popoverTargetAction&&"showing"===n||"hide"===t.popoverTargetAction&&"hidden"===n||("showing"===n?v(e,!0,!0):d(e,!1)&&(c.set(e,t),g(e)))}(o),void t.preventDefault()):void 0})),r.addEventListener("keydown",(t=>{let e=t.key,n=t.target;!t.defaultPrevented&&n&&("Escape"===e||"Esc"===e)&&w(n.ownerDocument,!0,!0)})),r.addEventListener("pointerdown",k),r.addEventListener("pointerup",k),H(document)}()})();const wt={top:"bottom",right:"left",bottom:"top",left:"right"},xt=class{constructor(e){t(this,e),this.postToggle=i(this,"postToggle",7),this.placement="top",this.edgeGap=8,this.arrow=!1}componentDidLoad(){this.host.setAttribute("popover",""),this.host.addEventListener("beforetoggle",this.handleToggle.bind(this))}disconnectedCallback(){"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate()}async show(t){this.toggleTimeoutId||(this.eventTarget=t,this.calculatePosition(),this.host.showPopover())}async hide(){this.toggleTimeoutId||(this.eventTarget=null,this.host.hidePopover())}async toggle(t,e){return this.toggleTimeoutId||(this.eventTarget=t,this.calculatePosition(),this.host.togglePopover(e),this.toggleTimeoutId=null),this.host.matches(":where(:popover-open, .popover-open")}handleToggle(t){this.toggleTimeoutId=window.setTimeout((()=>this.toggleTimeoutId=null),10);const e="open"===t.newState;e?this.startAutoupdates():"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate(),this.postToggle.emit(e)}startAutoupdates(){this.clearAutoUpdate=function(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:r="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=o,c=nt(t),d=i||a?[...c?tt(c):[],...tt(e)]:[];d.forEach((t=>{i&&t.addEventListener("scroll",n,{passive:!0}),a&&t.addEventListener("resize",n)}));const f=c&&s?function(t,e){let n,o=null;const i=W(t);function a(){var t;clearTimeout(n),null==(t=o)||t.disconnect(),o=null}return function r(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const{left:c,top:d,width:f,height:p}=t.getBoundingClientRect();if(s||e(),!f||!p)return;const h={rootMargin:-v(d)+"px "+-v(i.clientWidth-(c+f))+"px "+-v(i.clientHeight-(d+p))+"px "+-v(c)+"px",threshold:m(0,b(1,l))||1};let u=!0;function g(t){const e=t[0].intersectionRatio;if(e!==l){if(!u)return r();e?r(!1,e):n=setTimeout((()=>{r(!1,1e-7)}),1e3)}u=!1}try{o=new IntersectionObserver(g,{...h,root:i.ownerDocument})}catch(t){o=new IntersectionObserver(g,h)}o.observe(t)}(!0),a}(c,n):null;let p,h=-1,u=null;r&&(u=new ResizeObserver((t=>{let[o]=t;o&&o.target===c&&u&&(u.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var t;null==(t=u)||t.observe(e)}))),n()})),c&&!l&&u.observe(c),u.observe(e));let g=l?rt(t):null;return l&&function e(){const o=rt(t);!g||o.x===g.x&&o.y===g.y&&o.width===g.width&&o.height===g.height||n(),g=o,p=requestAnimationFrame(e)}(),n(),()=>{var t;d.forEach((t=>{i&&t.removeEventListener("scroll",n),a&&t.removeEventListener("resize",n)})),null==f||f(),null==(t=u)||t.disconnect(),u=null,l&&cancelAnimationFrame(p)}}(this.eventTarget,this.host,this.calculatePosition.bind(this))}async calculatePosition(){const t=this.edgeGap,e=[gt(),(void 0===n&&(n={}),{name:"inline",options:n,async fn(t){const{placement:e,elements:o,rects:i,platform:a,strategy:r}=t,{padding:s=2,x:l,y:c}=T(n,t),d=Array.from(await(null==a.getClientRects?void 0:a.getClientRects(o.reference))||[]),f=function(t){const e=t.slice().sort(((t,e)=>t.y-e.y)),n=[];let o=null;for(let t=0;t<e.length;t++){const i=e[t];!o||i.y-o.y>o.height/2?n.push([i]):n[n.length-1].push(i),o=i}return n.map((t=>C(P(t))))}(d),p=C(P(d)),h=O(s),u=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===f.length&&f[0].left>f[1].right&&null!=l&&null!=c)return f.find((t=>l>t.left-h.left&&l<t.right+h.right&&c>t.top-h.top&&c<t.bottom+h.bottom))||p;if(f.length>=2){if("y"===L(e)){const t=f[0],n=f[f.length-1],o="top"===S(e),i=t.top,a=n.bottom,r=o?t.left:n.left,s=o?t.right:n.right;return{top:i,bottom:a,left:r,right:s,width:s-r,height:a-i,x:r,y:i}}const t="left"===S(e),n=m(...f.map((t=>t.right))),o=b(...f.map((t=>t.left))),i=f.filter((e=>t?e.left===o:e.right===n)),a=i[0].top,r=i[i.length-1].bottom;return{top:a,bottom:r,left:o,right:n,width:n-o,height:r-a,x:o,y:a}}return p}},floating:o.floating,strategy:r});return i.reference.x!==u.reference.x||i.reference.y!==u.reference.y||i.reference.width!==u.reference.width||i.reference.height!==u.reference.height?{reset:{rects:u}}:{}}}),mt({padding:t,limiter:yt({offset:32})}),vt({apply({availableWidth:e,elements:n}){Object.assign(n.floating.style,{maxWidth:e-2*t+"px"})}}),bt(this.arrow?t+4:t)];var n;this.arrow&&e.push((t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:a,platform:r,elements:s,middlewareData:l}=e,{element:c,padding:d=0}=T(t,e)||{};if(null==c)return{};const f=O(d),p={x:n,y:o},h=D(i),u=A(h),m=await r.getDimensions(c),g="y"===h,v=g?"top":"left",y=g?"bottom":"right",w=g?"clientHeight":"clientWidth",x=a.reference[u]+a.reference[h]-p[h]-a.floating[u],S=p[h]-a.reference[h],E=await(null==r.getOffsetParent?void 0:r.getOffsetParent(c));let L=E?E[w]:0;L&&await(null==r.isElement?void 0:r.isElement(E))||(L=s.floating[w]||a.floating[u]);const H=x/2-S/2,z=L/2-m[u]/2-1,C=b(f[v],z),j=b(f[y],z),R=C,P=L-m[u]-j,F=L/2-m[u]/2+H,B=k(R,F,P),W=!l.arrow&&null!=M(i)&&F!==B&&a.reference[u]/2-(F<R?C:j)-m[u]/2<0,$=W?F<R?F-R:F-P:0;return{[h]:p[h]+$,data:{[h]:B,centerOffset:F-B-$,...W&&{alignmentOffset:$}},reset:W}}}))({element:this.arrowRef,padding:t}));const{x:o,y:i,middlewareData:a,placement:r}=await((t,e,n)=>{const o=new Map,i={platform:ut,...n},a={...i.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:r}=n,s=a.filter(Boolean),l=await(null==r.isRTL?void 0:r.isRTL(e));let c=await r.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:f}=j(c,o,l),p=o,h={},u=0;for(let n=0;n<s.length;n++){const{name:a,fn:b}=s[n],{x:m,y:g,data:v,reset:y}=await b({x:d,y:f,initialPlacement:o,placement:p,strategy:i,middlewareData:h,rects:c,platform:r,elements:{reference:t,floating:e}});d=null!=m?m:d,f=null!=g?g:f,h={...h,[a]:{...h[a],...v}},y&&u<=50&&(u++,"object"==typeof y&&(y.placement&&(p=y.placement),y.rects&&(c=!0===y.rects?await r.getElementRects({reference:t,floating:e,strategy:i}):y.rects),({x:d,y:f}=j(c,p,l))),n=-1)}return{x:d,y:f,placement:p,strategy:i,middlewareData:h}})(t,e,{...i,platform:a})})(this.eventTarget,this.host,{placement:this.placement||"top",strategy:"fixed",middleware:e});if(this.host.style.left=`${o}px`,this.host.style.top=`${i}px`,this.arrow){const t=r.split("-")[0],{x:e,y:n}=a.arrow,o=wt[t],i=2;Object.assign(this.arrowRef.style,{top:n?`${n}px`:"",left:e?`${e}px`:"",[o]:-this.arrowRef.offsetWidth/2-i+"px"}),this.arrowRef.classList.remove(...Object.values(wt)),this.arrowRef.classList.add(o)}}render(){return e(n,{key:"11e3be5293791aa58da291f2a0f17677ad0e0e63","data-version":a},this.arrow&&e("span",{key:"00d76dcd41bf267bb50290ae439c49333ade68b3",class:"arrow",ref:t=>{this.arrowRef=t}}),e("slot",{key:"7c579254fc1b76c91ddecf0952945339cf5bc7fd"}))}get host(){return o(this)}};xt.style="@layer polyfill{@supports not selector(:popover-open){[popover]:not(.\\:popover-open){display:none}}}:where(post-popovercontainer){box-shadow:.5px 3px 4px rgba(0,0,0,.1),2px 4px 10px 4px rgba(0,0,0,.12);position:fixed;z-index:1060;width:max-content;margin:0;padding:0;box-sizing:border-box;color:var(--post-contrast-color);background-color:rgb(var(--post-bg-rgb));border:2px solid rgba(0,0,0,0);border-radius:4px;overflow:visible}:where(post-popovercontainer)[tooltip]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}:where(post-popovercontainer) .arrow{position:absolute;width:.5825rem;height:.5825rem;background-color:inherit;rotate:45deg;pointer-events:none;z-index:-1}:where(post-popovercontainer) .arrow.top{border-left:2px solid rgba(0,0,0,0);border-top:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.right{border-right:2px solid rgba(0,0,0,0);border-top:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.left{border-left:2px solid rgba(0,0,0,0);border-bottom:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.bottom{border-right:2px solid rgba(0,0,0,0);border-bottom:2px solid rgba(0,0,0,0)}";const kt=class{constructor(e){t(this,e),this.titleId=void 0,this.titleHidden=!1,this.horizontal=!1}componentWillLoad(){this.titleId=`list-${crypto.randomUUID()}`}componentDidLoad(){this.checkTitle()}checkTitle(){if(!this.titleEl.textContent.trim())throw new Error("Please provide a title to the list component. Title is mandatory for accessibility purposes.")}render(){return e(n,{key:"7126a864e6c4d8152c9024bd8d390514bc8c0b7a","data-version":a},e("div",{key:"c3f56a0e41146dc5dbd2c3fc165152e05953956f",ref:t=>this.titleEl=t,id:this.titleId,class:"list-title"+(this.titleHidden?" visually-hidden":"")},e("slot",{key:"3de0cd83b48ef3a3201f854842781ccba9bedf29"})),e("div",{key:"4b8a4ac0a9c89451a408cc8de814878dc8da11b7",role:"list","aria-labelledby":this.titleId},e("slot",{key:"474d87804fc39241a0f3541a82bdfbe1491a4452",name:"post-list-item"})))}get host(){return o(this)}};kt.style="/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */post-list{display:flex;gap:var(--post-list-title-gap);flex-direction:column;align-items:flex-start}post-list>div[role=list]{flex-direction:column;display:flex;gap:var(--post-list-item-gap)}post-list[horizontal]:not([horizontal=false]){flex-direction:row;align-items:baseline}post-list[horizontal]:not([horizontal=false])>div[role=list]{flex-direction:row;align-items:center}post-list>.list-title.visually-hidden{width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}post-list>.list-title.visually-hidden:not(caption){position:absolute !important}";const Tt=class{constructor(e){t(this,e)}connectedCallback(){this.host.setAttribute("slot","post-list-item")}render(){return e(n,{key:"25532c40e8f02f335df6b112041cbaf6056576b6",role:"listitem"},e("slot",{key:"46ddc9e27c71040b271ab6bd59db2ac37fa4a112"}))}get host(){return o(this)}};Tt.style=":host{display:flex}";const St=class{constructor(e){t(this,e),this.scrollParent=null,this.throttledScroll=()=>this.handleScrollEvent(),this.throttledResize=function(t,e){var n,o={},i=o.noTrailing,a=void 0!==i&&i,r=o.noLeading,s=void 0!==r&&r,l=o.debounceMode,c=void 0===l?void 0:l,d=!1,f=0;function p(){n&&clearTimeout(n)}function h(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];var r=this,l=Date.now()-f;function h(){f=Date.now(),e.apply(r,o)}function u(){n=void 0}d||(s||!c||n||h(),p(),void 0===c&&l>50?s?(f=Date.now(),a||(n=setTimeout(c?u:h,50))):h():!0!==a&&(n=setTimeout(c?u:h,void 0===c?50-l:50)))}return h.cancel=function(t){var e=(t||{}).upcomingOnly,n=void 0!==e&&e;p(),d=!n},h}(0,(()=>this.handleResize())),this.device=null,this.mobileMenuExtended=!1}componentWillRender(){this.scrollParent=this.getScrollParent(this.host),this.scrollParent.addEventListener("scroll",this.throttledScroll,{passive:!0}),window.addEventListener("resize",this.throttledResize,{passive:!0}),this.handleResize(),this.handleScrollEvent()}handlePostMainNavigationClosed(){this.mobileMenuExtended=!1}handleScrollEvent(){const t=Math.max(0,this.scrollParent instanceof Document?this.scrollParent.documentElement.scrollTop:this.scrollParent.scrollTop);this.host.style.setProperty("--header-scroll-top",`${t}px`)}getScrollParent(t){let e=t.parentElement;for(;e;){if("BODY"===e.nodeName)return document;if(this.isScrollable(e))return e;e=e.parentElement}return document}isScrollable(t){if(!(t instanceof HTMLElement||t instanceof SVGElement))return!1;const e=getComputedStyle(t);return["overflow","overflow-x","overflow-y"].some((t=>{const n=e.getPropertyValue(t);return"auto"===n||"scroll"===n}))}handleResize(){const t=null===window||void 0===window?void 0:window.innerWidth;t>=1024?(this.device="desktop",this.mobileMenuExtended=!1):this.device=t>=600?"tablet":"mobile"}handleMobileMenuToggle(){this.mobileMenuExtended=!this.mobileMenuExtended}render(){const t=["main-navigation"];return this.mobileMenuExtended&&t.push("extended"),e(n,{key:"85b0f7c1d14b96947497cc6d1cdf059430eb9ab6",version:a},e("div",{key:"740ed42365e2e71215d4b8174cf98d8f8385fe9a",class:"global-header"},e("div",{key:"0a0b0a3bdb527c6988992e23a3401f9c51b02d51",class:"global-sub"},e("div",{key:"983bc0dacdc9f7f96a8aefdd3e17f31d0fbe1ef8",class:"logo"},e("slot",{key:"e9b97b26cfdbe836147493c50a98986791d8ce85",name:"post-logo"})),"desktop"===this.device&&e("slot",{key:"8a6d9c3c9d3f72de6d9ef0dbd2ecde3fd4982de6",name:"audience-navigation"})),e("div",{key:"a85add260edc38024612e7bc1f2e7d19a2b11fdf",class:"global-sub"},"desktop"===this.device&&e("slot",{key:"ffac0efc9078819711471067b6a85feaa807c9c9",name:"meta-navigation"}),e("slot",{key:"c8270ebb6c57bbba4db4e2799e69e33ea0a2c094",name:"global-controls"}),"desktop"===this.device&&e("slot",{key:"ac209cb8acd66dcaeb300c17994f0bae201cc0f8",name:"post-language-switch"}),e("div",{key:"210a5220eb97155138422a032a850d13992ac9a2",onClick:()=>this.handleMobileMenuToggle(),class:"mobile-toggle"},e("slot",{key:"42fb06418bc617252c80bab4ae64c64a74265723",name:"post-togglebutton"})))),e("div",{key:"62e1859020d65a54b86d53882a4452f6005589e9",class:"title-header d-flex space-between align-center"},e("slot",{key:"b285ac31f54fb3011813aab9f7c8ae1e9d64e8c2",name:"title"}),e("div",{key:"b529d4b6d01bc39c9344bd2ed15f698d0637fe35",class:"global-sub"},e("slot",{key:"da20b42e70bd715c89ef4e6c7419f115bb1bfb45",name:"local-controls"}),e("slot",{key:"d27c3b97b6597df51811913c74ae2ec157939563"}))),e("div",{key:"7d80d02dd4794598828d6c05779714d874818bbe",class:t.join(" ")},("mobile"===this.device||"tablet"===this.device)&&e("slot",{key:"dc02044dec14c3b716dd20209c5fb775d75d583f",name:"audience-navigation"}),e("slot",{key:"3f5a09fb4f69bb21924db2e236d554036a559d54",name:"post-mainnavigation"}),("mobile"===this.device||"tablet"===this.device)&&e("slot",{key:"f50c0ce8631109041c25200c4e4b3f57502cf434",name:"meta-navigation"}),("mobile"===this.device||"tablet"===this.device)&&e("slot",{key:"fc87fa82fd01021eb629bacc168f2d0a537409eb",name:"post-language-switch"})))}get host(){return o(this)}};St.style="*,::before,::after{box-sizing:border-box}:host{--global-header-height:72px;--main-header-height:56px;--header-height:calc(var(--global-header-height) + var(--main-header-height))}@media screen and (max-width: 1023.99px){:host{--global-header-height:64px}}.d-flex{display:flex}.space-between{justify-content:space-between}.global-header{background-color:#fc0;display:flex;justify-content:space-between;align-items:center;position:sticky;padding-inline-start:4px;padding-inline-end:12px;height:var(--global-header-height)}@media screen and (max-width: 1023.99px){.global-header{top:0}}@media screen and (min-width: 1024px){.global-header{top:calc((var(--global-header-height) - 24px)*-1)}}slot[name=post-logo]{align-self:flex-end}.global-sub{display:flex;align-items:center;gap:2rem;height:var(--global-header-height)}.align-end{align-items:flex-end}.logo{flex:1 0 auto;height:var(--global-header-height);width:var(--global-header-height);min-height:24px;align-self:flex-end}@media screen and (min-width: 1024px){.logo{height:calc(var(--global-header-height) - var(--header-scroll-top))}}::slotted(ul){margin-block:0;list-style:none;display:flex;padding-left:0;gap:1rem}.title-header,.main-navigation{display:flex;align-items:center;padding-inline:12px;background:#fff}.title-header{height:var(--main-header-height);display:flex;align-items:center}@media screen and (max-width: 1023.99px){.title-header{border-bottom:1px solid #000}}:host(:not(:has([slot=title]))) .title-header{display:none}::slotted(h1){margin:0 !important;font-size:28px !important}.main-navigation{position:sticky;top:24px;height:var(--main-header-height)}@media screen and (min-width: 1024px){.main-navigation{border-bottom:1px solid #000}}@media screen and (max-width: 1023.99px){.main-navigation{display:none;position:absolute;top:var(--header-height);bottom:0;width:100%;background-color:#fff;height:auto}.main-navigation.extended{display:block}}@media screen and (min-width: 1024px){.mobile-toggle{display:none}}";const Mt=class{constructor(e){t(this,e),this.postToggle=i(this,"postToggle",7)}handleMegadropdownToggled(t){let e,n=t.target;for(;null!==n;){if("POST-MEGADROPDOWN"===n.tagName){e=n;break}n=n.nextElementSibling}e&&e.toggle(t.target)}handleBackButtonClick(){this.postToggle.emit()}render(){return e(n,{key:"5006fede681cf581b878c84fd1a6b7fe4830cbd2",slot:"post-mainnavigation"},e("div",{key:"a2273bab074eac3f9197961b935c3ba19ecbbb21",onClick:()=>this.handleBackButtonClick(),class:"back-button"},e("slot",{key:"c42751bee76cecbb076bb227bd0ffcc634b354a2",name:"back-button"})),e("nav",{key:"89541b5efc3500a8feec250a3d10402ea4b1a3a2",class:"main-navigation"},e("slot",{key:"f5f5a030325e701aaaca13747131b1f1fa10e849"})))}};Mt.style="*,::before,::after{box-sizing:border-box}@media screen and (min-width: 1024px){slot[name=back-button],[slot=back-button]{display:none}}@media screen and (min-width: 1024px){h2{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}}post-mainnavigation{height:100%}:host{height:100%;display:block}.main-navigation{margin-block:0;list-style:none;display:flex;padding-left:0;gap:1rem}@media screen and (max-width: 1023.99px){.main-navigation{flex-direction:column}}.main-navigation>post-list{display:flex;align-items:stretch;gap:1rem;height:100%}@media screen and (max-width: 1023.99px){.main-navigation>post-list{flex-direction:column}}.main-navigation a,.main-navigation post-megadropdown-toggle{height:100%;display:flex;align-items:center}";const Et=class{constructor(e){t(this,e)}async show(t){return this.popoverRef.show(t)}async hide(){return this.popoverRef.hide()}async toggle(t,e){return this.popoverRef.toggle(t,null!=e?e:void 0)}handleBackButtonClick(){this.hide()}render(){return e(n,{key:"96d71da6b3cfcd8980d7e60cb383d545c754d7b3",slot:"post-mainnavigation"},e("post-popovercontainer",{key:"ec27bcdae9da77299d59d8869be60c08816eef85",placement:"bottom","edge-gap":"0",ref:t=>this.popoverRef=t},e("div",{key:"0b97d183a5fad18401aa876cf19d3975a1757d18",class:"megadropdown"},e("div",{key:"4eb9715d7cf88898dddae702f71d430f1e3810af",onClick:()=>this.handleBackButtonClick(),class:"back-button"},e("slot",{key:"a21d4b50b1d04211ecfb5d0b145452a6bbae0ae0",name:"back-button"})),e("slot",{key:"5a4dd77f0f91bf6a61ef1cf9bdd4371875a52d2e"}))))}};Et.style="*,::before,::after{box-sizing:border-box}post-popovercontainer{background-color:#fafafa;width:100%;border-bottom:1px solid #000}@media screen and (max-width: 1023.99px){post-popovercontainer{position:absolute;top:var(--header-height) !important;bottom:0;left:0;width:100%;height:auto}}.megadropdown{display:flex;gap:1rem;padding:1.5rem;border-radius:0 0 3px 3px}@media screen and (max-width: 1023.99px){.megadropdown{flex-direction:column}}.megadropdown post-list{display:flex;flex-direction:column;gap:.5rem}.megadropdown post-list-item{border-bottom:1px solid gray}.megadropdown post-list-item>a{padding-block:.25rem;display:block;text-decoration:none}.back-button{display:none}@media screen and (max-width: 1023.99px){.back-button{display:block}}post-closebutton{margin-left:auto}@media screen and (max-width: 1023.99px){post-closebutton{display:none}}h3{font-size:20px}";const At=class{constructor(e){t(this,e),this.postToggle=i(this,"postToggle",7),this.toggled=!1}handleClick(){this.toggled=!this.toggled,this.postToggle.emit()}render(){return e(n,{key:"0b3de3d7d035e7427ff55d5818ce89f3cadd3c57",slot:"post-megadropdown-trigger"},e("button",{key:"6e5ea2515fcafbf9ed4ea4f0532f85f6c044f2a5","aria-expanded":this.toggled,onClick:()=>this.handleClick()},e("slot",{key:"60daae26758894fea7576d696d9325fa61f3cc31"})))}};At.style=":host{display:inline-block}";export{f as P,h as a,u as b,xt as c,kt as d,Tt as e,St as f,Mt as g,Et as h,At as i}
1
+ import{r as t,h as e,H as n,g as o,c as i}from"./p-3eab790d.js";import{v as a}from"./p-f2e1b4d8.js";import{c as r,d as s,b as l}from"./p-0338f9da.js";import{c}from"./p-b095519d.js";import{c as d}from"./p-4a3f67ab.js";const f=class{constructor(e){t(this,e)}render(){return e(n,{key:"4e03f31cdefe37e70ae44d8c7baaa71abf660db4","data-version":a},e("button",{key:"bcb645f50e587470fbdc6bee7b369c58aef403fd",class:"btn btn-icon-close"},e("post-icon",{key:"5860a0b4c8a2cfd740cca788b22377e2e4bc9614","aria-hidden":"true",name:"2043"}),e("span",{key:"4381a0a47c99703b0a6ca9f864b69437afff167f",class:"visually-hidden"},e("slot",{key:"55a72682749ddac4716463c21f8bc31a89f285b9"}))))}get host(){return o(this)}},p=["cylon","cylon-vertical","spin","spin-reverse","fade","throb"],h=class{constructor(e){t(this,e),this.animation=null,this.base=null,this.flipH=!1,this.flipV=!1,this.name=void 0,this.rotate=null,this.scale=null}validateAnimation(t=this.animation){void 0!==t&&r(t,p,`The post-icon "animation" prop requires one of the following values: ${p.join(", ")}.`)}validateBase(t=this.base){s(t,"string",'The post-icon "base" prop should be a string.')}validateFlipH(t=this.flipH){s(t,"boolean",'The post-icon "flipH" prop should be a boolean.')}validateFlipV(t=this.flipV){s(t,"boolean",'The post-icon "flipV" prop should be a boolean.')}validateName(t=this.name){c(t,'The post-icon "name" prop is required!.'),d(t,"string",'The post-icon "name" prop should be a string.')}validateRotate(t=this.rotate){s(t,"number",'The post-icon "rotate" prop should be a number.')}validateScale(t=this.scale){s(t,"number",'The post-icon "scale" prop should be a number.')}getPath(){var t,e,n,o,i,a;const r=null!==(e=null===(t=document.head.querySelector('meta[name="design-system-settings"][data-post-icon-base]'))||void 0===t?void 0:t.getAttribute("data-post-icon-base"))&&void 0!==e?e:null,s=null===(n=document.getElementsByTagName("base")[0])||void 0===n?void 0:n.href,l=`${null!==(a=null!==(i=null!==(o=this.base)&&void 0!==o?o:r)&&void 0!==i?i:s)&&void 0!==a?a:"https://unpkg.com/@swisspost/design-system-icons/public/post-icons"}/`.replace(/\/\/$/,"/");return new URL(`${l}${this.name}.svg#i-${this.name}`,window.location.origin).toString()}getStyles(){return Object.entries({transform:(this.scale&&!isNaN(Number(this.scale))?"scale("+this.scale+")":"")+(this.rotate&&!isNaN(Number(this.rotate))?" rotate("+this.rotate+"deg)":"")}).filter((([t,e])=>null!==e)).reduce(((t,[e,n])=>Object.assign(t,{[e]:n})),{})}componentDidLoad(){this.validateBase(),this.validateName(),this.validateFlipH(),this.validateFlipV(),this.validateScale(),this.validateRotate(),this.validateAnimation()}render(){return e(n,{key:"1a04eea6f1039329937a9f58d64778c272088018","data-version":a},e("svg",{key:"843d95a54a58f839bfa1031d2aa834c70fbc6f9e",style:this.getStyles()},e("use",{key:"e93c6a6fd50ebd4757c92c1ee02f9c8cd65a65b7",href:this.getPath()})))}get host(){return o(this)}static get watchers(){return{animation:["validateAnimation"],base:["validateBase"],flipH:["validateFlipH"],flipV:["validateFlipV"],name:["validateName"],rotate:["validateRotate"],scale:["validateScale"]}}};h.style=":host{container-name:post-icon;container-type:inline-size;display:inline-block;width:1em;height:1em;vertical-align:-0.15em}svg{display:block;width:100%;height:100%;fill:currentColor;forced-color-adjust:preserve-parent-color}@container post-icon (max-width: 23.98px){svg{--pis-16: block}}@container post-icon (min-width: 24px) and (max-width: 31.98px){svg{--pis-24: block}}@container post-icon (min-width: 32px) and (max-width: 39.98px){svg{--pis-32: block}}@container post-icon (min-width: 40px) and (max-width: 47.98px){svg{--pis-40: block}}@container post-icon (min-width: 48px) and (max-width: 63.98px){svg{--pis-48: block}}@container post-icon (min-width: 64px){svg{--pis-64: block}}: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 u=class{constructor(e){t(this,e),this.url=void 0}validateUrl(){l(this.url,'The "url" property of the post-logo is invalid')}componentDidLoad(){this.validateUrl(),this.checkDescription()}checkDescription(){this.host.textContent||console.warn("Be sure to add descriptive text in the post-logo to ensure good accessibility of the component.")}render(){const t=this.url&&("string"==typeof this.url?this.url:this.url.href);return e(n,{key:"ec5f82baaa08c75a03808a6cda7a9971152a54d6","data-version":a,slot:"post-logo"},e(t?"a":"span",Object.assign({key:"ce6aeff4dfab0612376e4c6aa14c74c438213b5d",class:"logo"},t?{href:t}:{}),e("span",{key:"fa6f8ecaf3c3a4a8e60a8c8e2171dbd25d585ede",class:"description"},e("slot",{key:"2dcff76129e8e054e58244b2aa77a5b51e059b6b",onSlotchange:()=>this.checkDescription()})),e("svg",{key:"468282e3c21fb6cfc97fccee64298abe43542da5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 72 72","aria-hidden":"true"},e("g",{key:"d3f4e0a6a7372991ccef5be9fad206cab2f553e7",id:"Logo"},e("rect",{key:"3f17ddd240131ce23faf1e73a76ca4f702b029d7",fill:"#ffcc00",x:"0",y:"0",width:"72",height:"72"}),e("polygon",{key:"1b714023d9e587a57571fd86a9515701ec77f993",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:"b4064875cbad1263ac2278613fdf5db8d1697c2a",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 o(this)}static get watchers(){return{url:["validateUrl"]}}};u.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}";const m=Math.min,b=Math.max,g=Math.round,v=Math.floor,y=t=>({x:t,y:t}),w={left:"right",right:"left",bottom:"top",top:"bottom"},x={start:"end",end:"start"};function k(t,e,n){return b(t,m(e,n))}function T(t,e){return"function"==typeof t?t(e):t}function S(t){return t.split("-")[0]}function M(t){return t.split("-")[1]}function E(t){return"x"===t?"y":"x"}function A(t){return"y"===t?"height":"width"}function L(t){return["top","bottom"].includes(S(t))?"y":"x"}function D(t){return E(L(t))}function H(t){return t.replace(/start|end/g,(t=>x[t]))}function z(t){return t.replace(/left|right|bottom|top/g,(t=>w[t]))}function O(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function C(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function j(t,e,n){let{reference:o,floating:i}=t;const a=L(e),r=D(e),s=A(r),l=S(e),c="y"===a,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[s]/2-i[s]/2;let h;switch(l){case"top":h={x:d,y:o.y-i.height};break;case"bottom":h={x:d,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-i.width,y:f};break;default:h={x:o.x,y:o.y}}switch(M(e)){case"start":h[r]-=p*(n&&c?-1:1);break;case"end":h[r]+=p*(n&&c?-1:1)}return h}async function R(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:a,rects:r,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=T(e,t),u=O(h),m=s[p?"floating"===f?"reference":"floating":f],b=C(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(m)))||n?m:m.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),g="floating"===f?{...r.floating,x:o,y:i}:r.reference,v=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),y=await(null==a.isElement?void 0:a.isElement(v))&&await(null==a.getScale?void 0:a.getScale(v))||{x:1,y:1},w=C(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:v,strategy:l}):g);return{top:(b.top-w.top+u.top)/y.y,bottom:(w.bottom-b.bottom+u.bottom)/y.y,left:(b.left-w.left+u.left)/y.x,right:(w.right-b.right+u.right)/y.x}}function P(t){const e=m(...t.map((t=>t.left))),n=m(...t.map((t=>t.top)));return{x:e,y:n,width:b(...t.map((t=>t.right)))-e,height:b(...t.map((t=>t.bottom)))-n}}function F(t){return $(t)?(t.nodeName||"").toLowerCase():"#document"}function B(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function W(t){var e;return null==(e=($(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function $(t){return t instanceof Node||t instanceof B(t).Node}function N(t){return t instanceof Element||t instanceof B(t).Element}function q(t){return t instanceof HTMLElement||t instanceof B(t).HTMLElement}function I(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof B(t).ShadowRoot)}function V(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=J(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function Y(t){return["table","td","th"].includes(F(t))}function G(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function U(t){const e=X(),n=N(t)?J(t):t;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function X(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function _(t){return["html","body","#document"].includes(F(t))}function J(t){return B(t).getComputedStyle(t)}function K(t){return N(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Q(t){if("html"===F(t))return t;const e=t.assignedSlot||t.parentNode||I(t)&&t.host||W(t);return I(e)?e.host:e}function Z(t){const e=Q(t);return _(e)?t.ownerDocument?t.ownerDocument.body:t.body:q(e)&&V(e)?e:Z(e)}function tt(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=Z(t),a=i===(null==(o=t.ownerDocument)?void 0:o.body),r=B(i);return a?e.concat(r,r.visualViewport||[],V(i)?i:[],r.frameElement&&n?tt(r.frameElement):[]):e.concat(i,tt(i,[],n))}function et(t){const e=J(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=q(t),a=i?t.offsetWidth:n,r=i?t.offsetHeight:o,s=g(n)!==a||g(o)!==r;return s&&(n=a,o=r),{width:n,height:o,$:s}}function nt(t){return N(t)?t:t.contextElement}function ot(t){const e=nt(t);if(!q(e))return y(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:a}=et(e);let r=(a?g(n.width):n.width)/o,s=(a?g(n.height):n.height)/i;return r&&Number.isFinite(r)||(r=1),s&&Number.isFinite(s)||(s=1),{x:r,y:s}}const it=y(0);function at(t){const e=B(t);return X()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:it}function rt(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),a=nt(t);let r=y(1);e&&(o?N(o)&&(r=ot(o)):r=ot(t));const s=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==B(t))&&e}(a,n,o)?at(a):y(0);let l=(i.left+s.x)/r.x,c=(i.top+s.y)/r.y,d=i.width/r.x,f=i.height/r.y;if(a){const t=B(a),e=o&&N(o)?B(o):o;let n=t,i=n.frameElement;for(;i&&o&&e!==n;){const t=ot(i),e=i.getBoundingClientRect(),o=J(i),a=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,r=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;l*=t.x,c*=t.y,d*=t.x,f*=t.y,l+=a,c+=r,n=B(i),i=n.frameElement}}return C({width:d,height:f,x:l,y:c})}function st(t){return rt(W(t)).left+K(t).scrollLeft}function lt(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=B(t),o=W(t),i=n.visualViewport;let a=o.clientWidth,r=o.clientHeight,s=0,l=0;if(i){a=i.width,r=i.height;const t=X();(!t||t&&"fixed"===e)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:r,x:s,y:l}}(t,n);else if("document"===e)o=function(t){const e=W(t),n=K(t),o=t.ownerDocument.body,i=b(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=b(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let r=-n.scrollLeft+st(t);const s=-n.scrollTop;return"rtl"===J(o).direction&&(r+=b(e.clientWidth,o.clientWidth)-i),{width:i,height:a,x:r,y:s}}(W(t));else if(N(e))o=function(t,e){const n=rt(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,a=q(t)?ot(t):y(1);return{width:t.clientWidth*a.x,height:t.clientHeight*a.y,x:i*a.x,y:o*a.y}}(e,n);else{const n=at(t);o={...e,x:e.x-n.x,y:e.y-n.y}}return C(o)}function ct(t,e){const n=Q(t);return!(n===e||!N(n)||_(n))&&("fixed"===J(n).position||ct(n,e))}function dt(t,e,n){const o=q(e),i=W(e),a="fixed"===n,r=rt(t,!0,a,e);let s={scrollLeft:0,scrollTop:0};const l=y(0);if(o||!o&&!a)if(("body"!==F(e)||V(i))&&(s=K(e)),o){const t=rt(e,!0,a,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else i&&(l.x=st(i));return{x:r.left+s.scrollLeft-l.x,y:r.top+s.scrollTop-l.y,width:r.width,height:r.height}}function ft(t){return"static"===J(t).position}function pt(t,e){return q(t)&&"fixed"!==J(t).position?e?e(t):t.offsetParent:null}function ht(t,e){const n=B(t);if(G(t))return n;if(!q(t)){let e=Q(t);for(;e&&!_(e);){if(N(e)&&!ft(e))return e;e=Q(e)}return n}let o=pt(t,e);for(;o&&Y(o)&&ft(o);)o=pt(o,e);return o&&_(o)&&ft(o)&&!U(o)?n:o||function(t){let e=Q(t);for(;q(e)&&!_(e);){if(U(e))return e;if(G(e))return null;e=Q(e)}return null}(t)||n}const ut={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const a="fixed"===i,r=W(o),s=!!e&&G(e.floating);if(o===r||s&&a)return n;let l={scrollLeft:0,scrollTop:0},c=y(1);const d=y(0),f=q(o);if((f||!f&&!a)&&(("body"!==F(o)||V(r))&&(l=K(o)),q(o))){const t=rt(o);c=ot(o),d.x=t.x+o.clientLeft,d.y=t.y+o.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x,y:n.y*c.y-l.scrollTop*c.y+d.y}},getDocumentElement:W,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const a=[..."clippingAncestors"===n?G(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=tt(t,[],!1).filter((t=>N(t)&&"body"!==F(t))),i=null;const a="fixed"===J(t).position;let r=a?Q(t):t;for(;N(r)&&!_(r);){const e=J(r),n=U(r);n||"fixed"!==e.position||(i=null),(a?!n&&!i:!n&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||V(r)&&!n&&ct(t,r))?o=o.filter((t=>t!==r)):i=e,r=Q(r)}return e.set(t,o),o}(e,this._c):[].concat(n),o],r=a.reduce(((t,n)=>{const o=lt(e,n,i);return t.top=b(o.top,t.top),t.right=m(o.right,t.right),t.bottom=m(o.bottom,t.bottom),t.left=b(o.left,t.left),t}),lt(e,a[0],i));return{width:r.right-r.left,height:r.bottom-r.top,x:r.left,y:r.top}},getOffsetParent:ht,getElementRects:async function(t){const e=this.getOffsetParent||ht,n=this.getDimensions,o=await n(t.floating);return{reference:dt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=et(t);return{width:e,height:n}},getScale:ot,isElement:N,isRTL:function(t){return"rtl"===J(t).direction}};const mt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:a,placement:r,middlewareData:s}=e,l=await async function(t,e){const{placement:n,platform:o,elements:i}=t,a=await(null==o.isRTL?void 0:o.isRTL(i.floating)),r=S(n),s=M(n),l="y"===L(n),c=["left","top"].includes(r)?-1:1,d=a&&l?-1:1,f=T(e,t);let{mainAxis:p,crossAxis:h,alignmentAxis:u}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&"number"==typeof u&&(h="end"===s?-1*u:u),l?{x:h*d,y:p*c}:{x:p*c,y:h*d}}(e,t);return r===(null==(n=s.offset)?void 0:n.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:r}}}}},bt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:a=!0,crossAxis:r=!1,limiter:s={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=T(t,e),c={x:n,y:o},d=await R(e,l),f=L(S(i)),p=E(f);let h=c[p],u=c[f];a&&(h=k(h+d["y"===p?"top":"left"],h,h-d["y"===p?"bottom":"right"])),r&&(u=k(u+d["y"===f?"top":"left"],u,u-d["y"===f?"bottom":"right"]));const m=s.fn({...e,[p]:h,[f]:u});return{...m,data:{x:m.x-n,y:m.y-o}}}}},gt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:a,rects:r,initialPlacement:s,platform:l,elements:c}=e,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:m=!0,...b}=T(t,e);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const g=S(i),v=S(s)===s,y=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(v||!m?[z(s)]:function(t){const e=z(t);return[H(t),e,H(e)]}(s));p||"none"===u||w.push(...function(t,e,n,o){const i=M(t);let a=function(t,e,n){const o=["left","right"],i=["right","left"],a=["top","bottom"],r=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?a:r;default:return[]}}(S(t),"start"===n,o);return i&&(a=a.map((t=>t+"-"+i)),e&&(a=a.concat(a.map(H)))),a}(s,m,u,y));const x=[s,...w],k=await R(e,b),E=[];let L=(null==(o=a.flip)?void 0:o.overflows)||[];if(d&&E.push(k[g]),f){const t=function(t,e,n){void 0===n&&(n=!1);const o=M(t),i=D(t),a=A(i);let r="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[a]>e.floating[a]&&(r=z(r)),[r,z(r)]}(i,r,y);E.push(k[t[0]],k[t[1]])}if(L=[...L,{placement:i,overflows:E}],!E.every((t=>t<=0))){var O,C;const t=((null==(O=a.flip)?void 0:O.index)||0)+1,e=x[t];if(e)return{data:{index:t,overflows:L},reset:{placement:e}};let n=null==(C=L.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:C.placement;if(!n)switch(h){case"bestFit":{var j;const t=null==(j=L.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:j[0];t&&(n=t);break}case"initialPlacement":n=s}if(i!==n)return{reset:{placement:n}}}return{}}}},vt=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:i,elements:a}=e,{apply:r=(()=>{}),...s}=T(t,e),l=await R(e,s),c=S(n),d=M(n),f="y"===L(n),{width:p,height:h}=o.floating;let u,g;"top"===c||"bottom"===c?(u=c,g=d===(await(null==i.isRTL?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(g=c,u="end"===d?"top":"bottom");const v=h-l[u],y=p-l[g],w=!e.middlewareData.shift;let x=v,k=y;if(f){const t=p-l.left-l.right;k=d||w?m(y,t):t}else{const t=h-l.top-l.bottom;x=d||w?m(v,t):t}if(w&&!d){const t=b(l.left,0),e=b(l.right,0),n=b(l.top,0),o=b(l.bottom,0);f?k=p-2*(0!==t||0!==e?t+e:b(l.left,l.right)):x=h-2*(0!==n||0!==o?n+o:b(l.top,l.bottom))}await r({...e,availableWidth:k,availableHeight:x});const E=await i.getDimensions(a.floating);return p!==E.width||h!==E.height?{reset:{rects:!0}}:{}}}},yt=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:i,rects:a,middlewareData:r}=e,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=T(t,e),d={x:n,y:o},f=L(i),p=E(f);let h=d[p],u=d[f];const m=T(s,e),b="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const t="y"===p?"height":"width",e=a.reference[p]-a.floating[t]+b.mainAxis,n=a.reference[p]+a.reference[t]-b.mainAxis;h<e?h=e:h>n&&(h=n)}if(c){var g,v;const t="y"===p?"width":"height",e=["top","left"].includes(S(i)),n=a.reference[f]-a.floating[t]+(e&&(null==(g=r.offset)?void 0:g[f])||0)+(e?0:b.crossAxis),o=a.reference[f]+a.reference[t]+(e?0:(null==(v=r.offset)?void 0:v[f])||0)-(e?b.crossAxis:0);u<n?u=n:u>o&&(u=o)}return{[p]:h,[f]:u}}}};(()=>{var t=class extends Event{oldState;newState;constructor(t,{oldState:e="",newState:n="",...o}={}){super(t,o),this.oldState=String(e||""),this.newState=String(n||"")}},e=new WeakMap;function n(n,o,i){e.set(n,setTimeout((()=>{e.has(n)&&n.dispatchEvent(new t("toggle",{cancelable:!1,oldState:o,newState:i}))}),0))}var o=globalThis.ShadowRoot||function(){},i=globalThis.HTMLDialogElement||function(){},a=new WeakMap,r=new WeakMap,s=new WeakMap;function l(t){return s.get(t)||"hidden"}var c=new WeakMap;function d(t,e){return!("auto"!==t.popover&&"manual"!==t.popover||!t.isConnected||e&&"showing"!==l(t)||!e&&"hidden"!==l(t)||t instanceof i&&t.hasAttribute("open")||document.fullscreenElement===t)}function f(t){return t?Array.from(r.get(t.ownerDocument)||[]).indexOf(t)+1:0}function p(t){let e=r.get(t);for(let t of e||[]){if(t.isConnected)return t;e.delete(t)}return null}function h(t){return"function"==typeof t.getRootNode?t.getRootNode():t.parentNode?h(t.parentNode):t}function u(t){for(;t;){if(t instanceof HTMLElement&&"auto"===t.popover&&"showing"===s.get(t))return t;if((t=t.parentElement||h(t))instanceof o&&(t=t.host),t instanceof Document)return}}function m(t){return!(t.hidden||t instanceof o||(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 b=new WeakMap;function g(e){if(!d(e,!1))return;let o=e.ownerDocument;if(!e.dispatchEvent(new t("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!d(e,!1))return;let i=!1;if("auto"===e.popover){let t=e.getAttribute("popover"),n=function(t){let e=new Map,n=0,o=t.ownerDocument;for(let t of r.get(o)||[])e.set(t,n),n+=1;e.set(t,n),n+=1;let i=null;return function(t){let n=u(t);if(null===n)return null;let o=e.get(n);(null===i||e.get(i)<o)&&(i=n)}(t?.parentElement),i}(e)||o;if(w(n,!1,!0),t!==e.getAttribute("popover")||!d(e,!1))return}p(o)||(i=!0),b.delete(e);let l=o.activeElement;e.classList.add(":popover-open"),s.set(e,"showing"),a.has(o)||a.set(o,new Set),a.get(o).add(e),function(t){(function(t){if(t.shadowRoot&&!0!==t.shadowRoot.delegatesFocus)return null;let e=t;e.shadowRoot&&(e=e.shadowRoot);let n=e.querySelector("[autofocus]");if(n)return n;{let t=e.querySelectorAll("slot");for(let e of t){let t=e.assignedElements({flatten:!0});for(let e of t){if(e.hasAttribute("autofocus"))return e;if(n=e.querySelector("[autofocus]"),n)return n}}}let o=t.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT),i=o.currentNode;for(;i;){if(m(i))return i;i=o.nextNode()}})(t)?.focus()}(e),"auto"===e.popover&&(r.has(o)||r.set(o,new Set),r.get(o).add(e),S(c.get(e),!0)),i&&l&&"auto"===e.popover&&b.set(e,l),n(e,"closed","open")}function v(e,o=!1,i=!1){if(!d(e,!0))return;let l=e.ownerDocument;if("auto"===e.popover&&(w(e,o,i),!d(e,!0))||(S(c.get(e),!1),c.delete(e),i&&(e.dispatchEvent(new t("beforetoggle",{oldState:"open",newState:"closed"})),!d(e,!0))))return;a.get(l)?.delete(e),r.get(l)?.delete(e),e.classList.remove(":popover-open"),s.set(e,"hidden"),i&&n(e,"open","closed");let f=b.get(e);f&&(b.delete(e),o&&f.focus())}function y(t,e=!1,n=!1){let o=p(t);for(;o;)v(o,e,n),o=p(t)}function w(t,e,n){let o=t.ownerDocument||t;if(t instanceof Document)return y(o,e,n);let i=null,a=!1;for(let e of r.get(o)||[])if(e===t)a=!0;else if(a){i=e;break}if(!a)return y(o,e,n);for(;i&&"showing"===l(i)&&r.get(o)?.size;)v(i,e,n)}var x=new WeakMap;function k(t){if(!t.isTrusted)return;let e=t.composedPath()[0];if(!e)return;let n=e.ownerDocument;if(!p(n))return;let i=function(t){let e=u(t),n=function(t){for(;t;){let e=t.popoverTargetElement;if(e instanceof HTMLElement)return e;if((t=t.parentElement||h(t))instanceof o&&(t=t.host),t instanceof Document)return}}(t);return f(e)>f(n)?e:n}(e);if(i&&"pointerdown"===t.type)x.set(n,i);else if("pointerup"===t.type){let t=x.get(n)===i;x.delete(n),t&&w(i||n,!1,!0)}}var T=new WeakMap;function S(t,e=!1){if(!t)return;T.has(t)||T.set(t,t.getAttribute("aria-expanded"));let n=t.popoverTargetElement;if(n instanceof HTMLElement&&"auto"===n.popover)t.setAttribute("aria-expanded",String(e));else{let e=T.get(t);e?t.setAttribute("aria-expanded",e):t.removeAttribute("aria-expanded")}}var M=globalThis.ShadowRoot||function(){};function E(t,e,n){let o=t[e];Object.defineProperty(t,e,{value(t){return o.call(this,n(t))}})}var A=/(^|[^\\]):popover-open\b/g,L="\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(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\n :where([popover]:not(.\\:popover-open)) {\n display: none;\n }\n",D=null;function H(t){if(null===D)try{(D=new CSSStyleSheet).replaceSync(L)}catch{D=!1}if(!1===D){let e=document.createElement("style");e.textContent=L,t instanceof Document?t.head.prepend(e):t.prepend(e)}else t.adoptedStyleSheets=[D,...t.adoptedStyleSheets]}typeof HTMLElement<"u"&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||function(){function e(t){return t?.includes(":popover-open")&&(t=t.replace(A,"$1.\\:popover-open")),t}window.ToggleEvent=window.ToggleEvent||t,E(Document.prototype,"querySelector",e),E(Document.prototype,"querySelectorAll",e),E(Element.prototype,"querySelector",e),E(Element.prototype,"querySelectorAll",e),E(Element.prototype,"matches",e),E(Element.prototype,"closest",e),E(DocumentFragment.prototype,"querySelectorAll",e),E(DocumentFragment.prototype,"querySelectorAll",e),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;let t=(this.getAttribute("popover")||"").toLowerCase();return""===t||"auto"==t?"auto":"manual"},set(t){this.setAttribute("popover",t)}},showPopover:{enumerable:!0,configurable:!0,value(){g(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){v(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t){"showing"===s.get(this)&&void 0===t||!1===t?v(this,!0,!0):(void 0===t||!0===t)&&g(this)}}});let n=Element.prototype.attachShadow;n&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(t){let e=n.call(this,t);return H(e),e}}});let o=HTMLElement.prototype.attachInternals;o&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){let t=o.call(this);return t.shadowRoot&&H(t.shadowRoot),t}}});let i=new WeakMap;function a(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||"input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type||this.disabled||this.form&&"submit"===this.type)return null;let t=i.get(this);if(t&&t.isConnected)return t;if(t&&!t.isConnected)return i.delete(this),null;let e=h(this),n=this.getAttribute("popovertarget");return(e instanceof Document||e instanceof M)&&n&&e.getElementById(n)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){let t=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===t||"hide"===t?t:"toggle"},set(t){this.setAttribute("popovertargetaction",t)}}})}a(HTMLButtonElement),a(HTMLInputElement);var r;(r=document).addEventListener("click",(t=>{if(!t.isTrusted)return;let e=t.composedPath()[0];if(!(e instanceof Element)||e?.shadowRoot)return;let n=h(e);if(!(n instanceof M||n instanceof Document))return;let o=e.closest("[popovertargetaction],[popovertarget]");return o?(function(t){let e=t.popoverTargetElement;if(!(e instanceof HTMLElement))return;let n=l(e);"show"===t.popoverTargetAction&&"showing"===n||"hide"===t.popoverTargetAction&&"hidden"===n||("showing"===n?v(e,!0,!0):d(e,!1)&&(c.set(e,t),g(e)))}(o),void t.preventDefault()):void 0})),r.addEventListener("keydown",(t=>{let e=t.key,n=t.target;!t.defaultPrevented&&n&&("Escape"===e||"Esc"===e)&&w(n.ownerDocument,!0,!0)})),r.addEventListener("pointerdown",k),r.addEventListener("pointerup",k),H(document)}()})();const wt={top:"bottom",right:"left",bottom:"top",left:"right"},xt=class{constructor(e){t(this,e),this.postToggle=i(this,"postToggle",7),this.placement="top",this.edgeGap=8,this.arrow=!1}componentDidLoad(){this.host.setAttribute("popover",""),this.host.addEventListener("beforetoggle",this.handleToggle.bind(this))}disconnectedCallback(){"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate()}async show(t){this.toggleTimeoutId||(this.eventTarget=t,this.calculatePosition(),this.host.showPopover())}async hide(){this.toggleTimeoutId||(this.eventTarget=null,this.host.hidePopover())}async toggle(t,e){return this.toggleTimeoutId||(this.eventTarget=t,this.calculatePosition(),this.host.togglePopover(e),this.toggleTimeoutId=null),this.host.matches(":where(:popover-open, .popover-open")}handleToggle(t){this.toggleTimeoutId=window.setTimeout((()=>this.toggleTimeoutId=null),10);const e="open"===t.newState;e?this.startAutoupdates():"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate(),this.postToggle.emit(e)}startAutoupdates(){this.clearAutoUpdate=function(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:r="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=o,c=nt(t),d=i||a?[...c?tt(c):[],...tt(e)]:[];d.forEach((t=>{i&&t.addEventListener("scroll",n,{passive:!0}),a&&t.addEventListener("resize",n)}));const f=c&&s?function(t,e){let n,o=null;const i=W(t);function a(){var t;clearTimeout(n),null==(t=o)||t.disconnect(),o=null}return function r(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const{left:c,top:d,width:f,height:p}=t.getBoundingClientRect();if(s||e(),!f||!p)return;const h={rootMargin:-v(d)+"px "+-v(i.clientWidth-(c+f))+"px "+-v(i.clientHeight-(d+p))+"px "+-v(c)+"px",threshold:b(0,m(1,l))||1};let u=!0;function g(t){const e=t[0].intersectionRatio;if(e!==l){if(!u)return r();e?r(!1,e):n=setTimeout((()=>{r(!1,1e-7)}),1e3)}u=!1}try{o=new IntersectionObserver(g,{...h,root:i.ownerDocument})}catch(t){o=new IntersectionObserver(g,h)}o.observe(t)}(!0),a}(c,n):null;let p,h=-1,u=null;r&&(u=new ResizeObserver((t=>{let[o]=t;o&&o.target===c&&u&&(u.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var t;null==(t=u)||t.observe(e)}))),n()})),c&&!l&&u.observe(c),u.observe(e));let g=l?rt(t):null;return l&&function e(){const o=rt(t);!g||o.x===g.x&&o.y===g.y&&o.width===g.width&&o.height===g.height||n(),g=o,p=requestAnimationFrame(e)}(),n(),()=>{var t;d.forEach((t=>{i&&t.removeEventListener("scroll",n),a&&t.removeEventListener("resize",n)})),null==f||f(),null==(t=u)||t.disconnect(),u=null,l&&cancelAnimationFrame(p)}}(this.eventTarget,this.host,this.calculatePosition.bind(this))}async calculatePosition(){const t=this.edgeGap,e=[gt(),(void 0===n&&(n={}),{name:"inline",options:n,async fn(t){const{placement:e,elements:o,rects:i,platform:a,strategy:r}=t,{padding:s=2,x:l,y:c}=T(n,t),d=Array.from(await(null==a.getClientRects?void 0:a.getClientRects(o.reference))||[]),f=function(t){const e=t.slice().sort(((t,e)=>t.y-e.y)),n=[];let o=null;for(let t=0;t<e.length;t++){const i=e[t];!o||i.y-o.y>o.height/2?n.push([i]):n[n.length-1].push(i),o=i}return n.map((t=>C(P(t))))}(d),p=C(P(d)),h=O(s),u=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===f.length&&f[0].left>f[1].right&&null!=l&&null!=c)return f.find((t=>l>t.left-h.left&&l<t.right+h.right&&c>t.top-h.top&&c<t.bottom+h.bottom))||p;if(f.length>=2){if("y"===L(e)){const t=f[0],n=f[f.length-1],o="top"===S(e),i=t.top,a=n.bottom,r=o?t.left:n.left,s=o?t.right:n.right;return{top:i,bottom:a,left:r,right:s,width:s-r,height:a-i,x:r,y:i}}const t="left"===S(e),n=b(...f.map((t=>t.right))),o=m(...f.map((t=>t.left))),i=f.filter((e=>t?e.left===o:e.right===n)),a=i[0].top,r=i[i.length-1].bottom;return{top:a,bottom:r,left:o,right:n,width:n-o,height:r-a,x:o,y:a}}return p}},floating:o.floating,strategy:r});return i.reference.x!==u.reference.x||i.reference.y!==u.reference.y||i.reference.width!==u.reference.width||i.reference.height!==u.reference.height?{reset:{rects:u}}:{}}}),bt({padding:t,limiter:yt({offset:32})}),vt({apply({availableWidth:e,elements:n}){Object.assign(n.floating.style,{maxWidth:e-2*t+"px"})}}),mt(this.arrow?t+4:t)];var n;this.arrow&&e.push((t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:a,platform:r,elements:s,middlewareData:l}=e,{element:c,padding:d=0}=T(t,e)||{};if(null==c)return{};const f=O(d),p={x:n,y:o},h=D(i),u=A(h),b=await r.getDimensions(c),g="y"===h,v=g?"top":"left",y=g?"bottom":"right",w=g?"clientHeight":"clientWidth",x=a.reference[u]+a.reference[h]-p[h]-a.floating[u],S=p[h]-a.reference[h],E=await(null==r.getOffsetParent?void 0:r.getOffsetParent(c));let L=E?E[w]:0;L&&await(null==r.isElement?void 0:r.isElement(E))||(L=s.floating[w]||a.floating[u]);const H=x/2-S/2,z=L/2-b[u]/2-1,C=m(f[v],z),j=m(f[y],z),R=C,P=L-b[u]-j,F=L/2-b[u]/2+H,B=k(R,F,P),W=!l.arrow&&null!=M(i)&&F!==B&&a.reference[u]/2-(F<R?C:j)-b[u]/2<0,$=W?F<R?F-R:F-P:0;return{[h]:p[h]+$,data:{[h]:B,centerOffset:F-B-$,...W&&{alignmentOffset:$}},reset:W}}}))({element:this.arrowRef,padding:t}));const{x:o,y:i,middlewareData:a,placement:r}=await((t,e,n)=>{const o=new Map,i={platform:ut,...n},a={...i.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:r}=n,s=a.filter(Boolean),l=await(null==r.isRTL?void 0:r.isRTL(e));let c=await r.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:f}=j(c,o,l),p=o,h={},u=0;for(let n=0;n<s.length;n++){const{name:a,fn:m}=s[n],{x:b,y:g,data:v,reset:y}=await m({x:d,y:f,initialPlacement:o,placement:p,strategy:i,middlewareData:h,rects:c,platform:r,elements:{reference:t,floating:e}});d=null!=b?b:d,f=null!=g?g:f,h={...h,[a]:{...h[a],...v}},y&&u<=50&&(u++,"object"==typeof y&&(y.placement&&(p=y.placement),y.rects&&(c=!0===y.rects?await r.getElementRects({reference:t,floating:e,strategy:i}):y.rects),({x:d,y:f}=j(c,p,l))),n=-1)}return{x:d,y:f,placement:p,strategy:i,middlewareData:h}})(t,e,{...i,platform:a})})(this.eventTarget,this.host,{placement:this.placement||"top",strategy:"fixed",middleware:e});if(this.host.style.left=`${o}px`,this.host.style.top=`${i}px`,this.arrow){const t=r.split("-")[0],{x:e,y:n}=a.arrow,o=wt[t],i=2;Object.assign(this.arrowRef.style,{top:n?`${n}px`:"",left:e?`${e}px`:"",[o]:-this.arrowRef.offsetWidth/2-i+"px"}),this.arrowRef.classList.remove(...Object.values(wt)),this.arrowRef.classList.add(o)}}render(){return e(n,{key:"b8be8594adfd503c47f85872508d5bbd3473cc5a","data-version":a},this.arrow&&e("span",{key:"f046737966eb3b801af1e888555178543ea015eb",class:"arrow",ref:t=>{this.arrowRef=t}}),e("slot",{key:"5d478472a83442d47e4f16ff8121782c8e6a524b"}))}get host(){return o(this)}};xt.style="@layer polyfill{@supports not selector(:popover-open){[popover]:not(.\\:popover-open){display:none}}}:where(post-popovercontainer){box-shadow:.5px 3px 4px rgba(0,0,0,.1),2px 4px 10px 4px rgba(0,0,0,.12);position:fixed;z-index:1060;width:max-content;margin:0;padding:0;box-sizing:border-box;color:var(--post-contrast-color);background-color:rgb(var(--post-bg-rgb));border:2px solid rgba(0,0,0,0);border-radius:4px;overflow:visible}:where(post-popovercontainer)[tooltip]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}:where(post-popovercontainer) .arrow{position:absolute;width:.5825rem;height:.5825rem;background-color:inherit;rotate:45deg;pointer-events:none;z-index:-1}:where(post-popovercontainer) .arrow.top{border-left:2px solid rgba(0,0,0,0);border-top:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.right{border-right:2px solid rgba(0,0,0,0);border-top:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.left{border-left:2px solid rgba(0,0,0,0);border-bottom:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.bottom{border-right:2px solid rgba(0,0,0,0);border-bottom:2px solid rgba(0,0,0,0)}";const kt=class{constructor(e){t(this,e),this.titleId=void 0,this.titleHidden=!1,this.horizontal=!1}componentWillLoad(){this.titleId=`list-${crypto.randomUUID()}`}componentDidLoad(){this.checkTitle()}checkTitle(){if(!this.titleEl.textContent.trim())throw new Error("Please provide a title to the list component. Title is mandatory for accessibility purposes.")}render(){return e(n,{key:"017f05c43fa95bb93c856bbeddd5d26cbc2f4cfa","data-version":a},e("div",{key:"71fd7d32c761cecf7b4d5d5f39cedb3bf668a0cb",ref:t=>this.titleEl=t,id:this.titleId,class:"list-title"+(this.titleHidden?" visually-hidden":"")},e("slot",{key:"fe0e03d5d25f6a975e04be00549facae49a0970b"})),e("div",{key:"bb717e4338396c86fa28dbf8236f5f185823f9be",role:"list","aria-labelledby":this.titleId},e("slot",{key:"7fd25cab433f5fbbafaa7ca01f42774823cbf579",name:"post-list-item"})))}get host(){return o(this)}};kt.style="/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */post-list{display:flex;gap:var(--post-list-title-gap);flex-direction:column;align-items:flex-start}post-list>div[role=list]{flex-direction:column;display:flex;gap:var(--post-list-item-gap)}post-list[horizontal]:not([horizontal=false]){flex-direction:row;align-items:baseline}post-list[horizontal]:not([horizontal=false])>div[role=list]{flex-direction:row;align-items:center}post-list>.list-title.visually-hidden{width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}post-list>.list-title.visually-hidden:not(caption){position:absolute !important}";const Tt=class{constructor(e){t(this,e)}connectedCallback(){this.host.setAttribute("slot","post-list-item")}render(){return e(n,{key:"bbf12424f2997b7d2e7cd9e272def0bf2838f94f",role:"listitem"},e("slot",{key:"2ce4e71879485f16ad90dfddbd1b79512107bdb0"}))}get host(){return o(this)}};Tt.style=":host{display:flex}";const St=class{constructor(e){t(this,e),this.scrollParent=null,this.throttledScroll=()=>this.handleScrollEvent(),this.throttledResize=function(t,e){var n,o={},i=o.noTrailing,a=void 0!==i&&i,r=o.noLeading,s=void 0!==r&&r,l=o.debounceMode,c=void 0===l?void 0:l,d=!1,f=0;function p(){n&&clearTimeout(n)}function h(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];var r=this,l=Date.now()-f;function h(){f=Date.now(),e.apply(r,o)}function u(){n=void 0}d||(s||!c||n||h(),p(),void 0===c&&l>50?s?(f=Date.now(),a||(n=setTimeout(c?u:h,50))):h():!0!==a&&(n=setTimeout(c?u:h,void 0===c?50-l:50)))}return h.cancel=function(t){var e=(t||{}).upcomingOnly,n=void 0!==e&&e;p(),d=!n},h}(0,(()=>this.handleResize())),this.device=null,this.mobileMenuExtended=!1}componentWillRender(){this.scrollParent=this.getScrollParent(this.host),this.scrollParent.addEventListener("scroll",this.throttledScroll,{passive:!0}),window.addEventListener("resize",this.throttledResize,{passive:!0}),this.handleResize(),this.handleScrollEvent()}handlePostMainNavigationClosed(){this.mobileMenuExtended=!1}handleScrollEvent(){const t=Math.max(0,this.scrollParent instanceof Document?this.scrollParent.documentElement.scrollTop:this.scrollParent.scrollTop);this.host.style.setProperty("--header-scroll-top",`${t}px`)}getScrollParent(t){let e=t.parentElement;for(;e;){if("BODY"===e.nodeName)return document;if(this.isScrollable(e))return e;e=e.parentElement}return document}isScrollable(t){if(!(t instanceof HTMLElement||t instanceof SVGElement))return!1;const e=getComputedStyle(t);return["overflow","overflow-x","overflow-y"].some((t=>{const n=e.getPropertyValue(t);return"auto"===n||"scroll"===n}))}handleResize(){const t=null===window||void 0===window?void 0:window.innerWidth;t>=1024?(this.device="desktop",this.mobileMenuExtended=!1):this.device=t>=600?"tablet":"mobile"}handleMobileMenuToggle(){this.mobileMenuExtended=!this.mobileMenuExtended}render(){const t=["main-navigation"];return this.mobileMenuExtended&&t.push("extended"),e(n,{key:"a09985740ff01e4f38e7bbe5e0b9012d77e7cba2",version:a},e("div",{key:"c612b90e757d916036bee002d7bba8abfeb19073",class:"global-header"},e("div",{key:"d11c51f756d1c7a8c0b4f3b9625cfbe8cae88435",class:"global-sub"},e("div",{key:"43fb63bfe0350ffca0e44fd611bb6bbe6c3eef0c",class:"logo"},e("slot",{key:"8d90d7f20b0fd6a7cbc93e5dd95ad8200c027822",name:"post-logo"}))),e("div",{key:"b1bc83b4fcb3a0af6ffd99976af4acf454b3d29d",class:"global-sub"},"desktop"===this.device&&e("slot",{key:"bbe38f3e0d070bfd84e1656e7dd631816df0101c",name:"meta-navigation"}),e("slot",{key:"b1483eea11ecdc9cddf122077cf0746d88f69239",name:"global-controls"}),"desktop"===this.device&&e("slot",{key:"785f557f30bffc5cd282a0505e9ffc7e3e6e1029",name:"post-language-switch"}),e("div",{key:"f088ddb3df417929525b22a09fa3be113042e48f",onClick:()=>this.handleMobileMenuToggle(),class:"mobile-toggle"},e("slot",{key:"de65884a443290e057ed911289818d5a323f5a9c",name:"post-togglebutton"})))),e("div",{key:"56ebdec46003a6ead4f3710dc9c0f60e9a86ed8d",class:"title-header d-flex space-between align-center"},e("slot",{key:"8e61e4711ea8018e51fd11c5b5faa30a1ad9445c",name:"title"}),e("div",{key:"4d762d1f4d3f45470d52af167c7f4a71651e7970",class:"global-sub"},e("slot",{key:"c8c5b73b1fa0e665a7133ae8db0212ef8948ba29",name:"local-controls"}),e("slot",{key:"212640155af85dfab34182ab236bfe72456e77b1"}))),e("div",{key:"c4004d443fd546fac8a2651482725fae99c2db6c",class:t.join(" ")},e("slot",{key:"783787f85d25d9e42d96213ae77f6c689f872b70",name:"post-mainnavigation"}),("mobile"===this.device||"tablet"===this.device)&&e("slot",{key:"04cfd7d09d03ab85ac9c12f9c3d6cb31fbb65fc2",name:"meta-navigation"}),("mobile"===this.device||"tablet"===this.device)&&e("slot",{key:"117e76f18fdc93493115428e1cd0d6a119c7a652",name:"post-language-switch"})))}get host(){return o(this)}};St.style="*,::before,::after{box-sizing:border-box}:host{--global-header-height:72px;--main-header-height:56px;--header-height:calc(var(--global-header-height) + var(--main-header-height))}@media screen and (max-width: 1023.99px){:host{--global-header-height:64px}}.d-flex{display:flex}.space-between{justify-content:space-between}.global-header{background-color:#fc0;display:flex;justify-content:space-between;align-items:center;position:sticky;padding-inline-start:4px;padding-inline-end:12px;height:var(--global-header-height)}@media screen and (max-width: 1023.99px){.global-header{top:0}}@media screen and (min-width: 1024px){.global-header{top:calc((var(--global-header-height) - 24px)*-1)}}slot[name=post-logo]{align-self:flex-end}.global-sub{display:flex;align-items:center;gap:2rem;height:var(--global-header-height)}.align-end{align-items:flex-end}.logo{flex:1 0 auto;height:var(--global-header-height);width:var(--global-header-height);min-height:24px;align-self:flex-end}@media screen and (min-width: 1024px){.logo{height:calc(var(--global-header-height) - var(--header-scroll-top))}}::slotted(ul){margin-block:0;list-style:none;display:flex;padding-left:0;gap:1rem}.title-header,.main-navigation{display:flex;align-items:center;padding-inline:12px;background:#fff}.title-header{height:var(--main-header-height);display:flex;align-items:center}@media screen and (max-width: 1023.99px){.title-header{border-bottom:1px solid #000}}:host(:not(:has([slot=title]))) .title-header{display:none}::slotted(h1){margin:0 !important;font-size:28px !important}.main-navigation{position:sticky;top:24px;height:var(--main-header-height)}@media screen and (min-width: 1024px){.main-navigation{border-bottom:1px solid #000}}@media screen and (max-width: 1023.99px){.main-navigation{display:none;position:absolute;top:var(--header-height);bottom:0;width:100%;background-color:#fff;height:auto}.main-navigation.extended{display:block}}@media screen and (min-width: 1024px){.mobile-toggle{display:none}}";const Mt=class{constructor(e){t(this,e),this.postToggle=i(this,"postToggle",7)}handleMegadropdownToggled(t){let e,n=t.target;for(;null!==n;){if("POST-MEGADROPDOWN"===n.tagName){e=n;break}n=n.nextElementSibling}e&&e.toggle(t.target)}handleBackButtonClick(){this.postToggle.emit()}render(){return e(n,{key:"7179d087e93ab9e14dc21e16b52beaf965c53cd3",slot:"post-mainnavigation"},e("div",{key:"2aede886c29972bf1dfebbe4513c4acf2e47c6ea",onClick:()=>this.handleBackButtonClick(),class:"back-button"},e("slot",{key:"4697ec520be78fccee832a358b349f68081b2f54",name:"back-button"})),e("nav",{key:"5bae57025152af07b9d68a19a07b61d0149d31dc",class:"main-navigation"},e("slot",{key:"e2a73a4b814a39a7cb1f7733f87c3c588f484006"})))}};Mt.style="*,::before,::after{box-sizing:border-box}@media screen and (min-width: 1024px){slot[name=back-button],[slot=back-button]{display:none}}@media screen and (min-width: 1024px){h2{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}}post-mainnavigation{height:100%}:host{height:100%;display:block}.main-navigation{margin-block:0;list-style:none;display:flex;padding-left:0;gap:1rem}@media screen and (max-width: 1023.99px){.main-navigation{flex-direction:column}}.main-navigation>post-list{display:flex;align-items:stretch;gap:1rem;height:100%}@media screen and (max-width: 1023.99px){.main-navigation>post-list{flex-direction:column}}.main-navigation a,.main-navigation post-megadropdown-toggle{height:100%;display:flex;align-items:center}";const Et=class{constructor(e){t(this,e)}async show(t){return this.popoverRef.show(t)}async hide(){return this.popoverRef.hide()}async toggle(t,e){return this.popoverRef.toggle(t,null!=e?e:void 0)}handleBackButtonClick(){this.hide()}render(){return e(n,{key:"9b8e17f4120259f55ed3dbce4780559cb8876540",slot:"post-mainnavigation"},e("post-popovercontainer",{key:"ac48d1fffbcdff5aa20d9f2f6fed9beb4dd3be23",placement:"bottom","edge-gap":"0",ref:t=>this.popoverRef=t},e("div",{key:"af02d9fd35973b6d889b639f1d856dd3d9921ae1",class:"megadropdown"},e("div",{key:"445aa9b1a04e63c0d2b17466c610a30662f3db0e",onClick:()=>this.handleBackButtonClick(),class:"back-button"},e("slot",{key:"8d8f4cad3d5860fdfc1c615e7122ab5dd2ca5ed3",name:"back-button"})),e("slot",{key:"c9ba8c0941f86fd29a44153e186cd679bcd678f5"}))))}};Et.style="*,::before,::after{box-sizing:border-box}post-popovercontainer{background-color:#fafafa;width:100%;border-bottom:1px solid #000}@media screen and (max-width: 1023.99px){post-popovercontainer{position:absolute;top:var(--header-height) !important;bottom:0;left:0;width:100%;height:auto}}.megadropdown{display:flex;gap:1rem;padding:1.5rem;border-radius:0 0 3px 3px}@media screen and (max-width: 1023.99px){.megadropdown{flex-direction:column}}.megadropdown post-list{display:flex;flex-direction:column;gap:.5rem}.megadropdown post-list-item{border-bottom:1px solid gray}.megadropdown post-list-item>a{padding-block:.25rem;display:block;text-decoration:none}.back-button{display:none}@media screen and (max-width: 1023.99px){.back-button{display:block}}post-closebutton{margin-left:auto}@media screen and (max-width: 1023.99px){post-closebutton{display:none}}h3{font-size:20px}";const At=class{constructor(e){t(this,e),this.postToggle=i(this,"postToggle",7),this.toggled=!1}handleClick(){this.toggled=!this.toggled,this.postToggle.emit()}render(){return e(n,{key:"d139b405fe28c7334c01eec4846a6f8b5bf1e261",slot:"post-megadropdown-trigger"},e("button",{key:"d3aee53488359a79764974d440d7a058d5d96873","aria-expanded":this.toggled,onClick:()=>this.handleClick()},e("slot",{key:"7012055defbb7c8058481db5c4129919847010c6"})))}};At.style=":host{display:inline-block}";export{f as P,h as a,u as b,xt as c,kt as d,Tt as e,St as f,Mt as g,Et as h,At as i}
@@ -0,0 +1 @@
1
+ export{P as post_language_option}from"./p-f8d41c32.js";import"./p-3eab790d.js";import"./p-0338f9da.js";import"./p-440193f4.js";import"./p-611b3c41.js";import"./p-4a3f67ab.js";import"./p-f2e1b4d8.js";
@@ -0,0 +1 @@
1
+ export{P as post_tooltip}from"./p-6cea23cd.js";import"./p-3eab790d.js";import"./p-f2e1b4d8.js";import"./p-6adeaa6c.js";import"./p-0338f9da.js";import"./p-440193f4.js";import"./p-611b3c41.js";import"./p-4a3f67ab.js";
@@ -1 +1 @@
1
- import{r as o,h as t,H as r,g as a}from"./p-3eab790d.js";import{v as c}from"./p-f6b44820.js";import{c as e}from"./p-b095519d.js";const b=class{constructor(t){o(this,t),this.tabId=void 0,this.panel=void 0}validateFor(o){e(o,'The "panel" prop is required for the post-tab-header.')}componentWillLoad(){this.tabId=`tab-${this.host.id||crypto.randomUUID()}`}render(){return t(r,{key:"4ca8efb0e3a6a429442be5406eb43f9cd2406b49",id:this.tabId,role:"tab","data-version":c,"aria-selected":"false",tabindex:"-1",class:"tab-title",slot:"tabs"},t("slot",{key:"049d4c8378c42fc31b572d8b073fef523fbc6f37"}))}get host(){return a(this)}static get watchers(){return{panel:["validateFor"]}}};b.style='.tab-title[role=tab]{display:inline-block;cursor:pointer;position:relative;box-sizing:border-box;padding:1rem;transition:background-color 100ms;border-right:1px solid rgba(0,0,0,0);border-left:1px solid rgba(0,0,0,0);outline-color:currentColor;opacity:.7;color:var(--post-contrast-color);text-decoration:none;background-color:rgba(0,0,0,0)}.tab-title[role=tab]:focus{background-color:unset;color:var(--post-contrast-color)}.tab-title[role=tab]:hover{opacity:1;background-color:rgba(var(--post-contrast-color-rgb), 0.6);color:var(--post-contrast-color-inverted)}.tab-title[role=tab]:focus-visible{outline:rgba(0,0,0,0);opacity:1;background-color:rgba(var(--post-contrast-color-rgb), 0.6);color:var(--post-contrast-color-inverted);box-shadow:none}.tab-title[role=tab]:focus-visible::after{content:"";display:block;position:absolute;top:2px;right:1px;bottom:0;left:1px;box-shadow:0 0 0 1px #fff,0 0 0 2px #333}.tab-title[role=tab].active{z-index:1;border-right-color:#ccc;border-left-color:#ccc;opacity:1;background-color:var(--post-contrast-color-inverted);color:var(--post-contrast-color);font-weight:700}.tab-title[role=tab].active::before{content:"";display:block;position:absolute;top:0;right:-1px;left:-1px;height:.25rem;background-color:#fc0}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error) .tab-title[role=tab]:hover{background-color:rgba(255,255,255,.2)}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error) .tab-title[role=tab]:focus-visible{background-color:rgba(255,255,255,.2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tab-title[role=tab]{opacity:1;border-left-color:Canvas;border-right-color:Canvas;color:LinkText}.tab-title[role=tab]:hover,.tab-title[role=tab]:focus,.tab-title[role=tab]:focus-within,.tab-title[role=tab]:focus-visible{outline:2px solid Highlight;outline-offset:-0.25rem}.tab-title[role=tab].active{border-left-color:ButtonText;border-right-color:ButtonText;color:Highlight}.tab-title[role=tab].active::before{background-color:Highlight}}.bg-yellow .tab-title{background-color:#fc0}.bg-yellow .tab-title.active{background-color:#fc0}.bg-yellow .nav-item{background-color:#fc0}.bg-white .tab-title{background-color:#fff}.bg-white .tab-title.active{background-color:#fff}.bg-white .nav-item{background-color:#fff}.bg-light .tab-title{background-color:#faf9f8}.bg-light .tab-title.active{background-color:#faf9f8}.bg-light .nav-item{background-color:#faf9f8}.bg-gray .tab-title{background-color:#f4f3f1}.bg-gray .tab-title.active{background-color:#f4f3f1}.bg-gray .nav-item{background-color:#f4f3f1}.bg-dark .tab-title{background-color:#333}.bg-dark .tab-title.active{background-color:#333}.bg-dark .nav-item{background-color:#333}.bg-black .tab-title{background-color:#000}.bg-black .tab-title.active{background-color:#000}.bg-black .nav-item{background-color:#000}.bg-primary .tab-title{background-color:#333}.bg-primary .tab-title.active{background-color:#333}.bg-primary .nav-item{background-color:#333}.bg-secondary .tab-title{background-color:#666}.bg-secondary .tab-title.active{background-color:#666}.bg-secondary .nav-item{background-color:#666}.bg-success .tab-title{background-color:#2c871d}.bg-success .tab-title.active{background-color:#2c871d}.bg-success .nav-item{background-color:#2c871d}.bg-warning .tab-title{background-color:#f49e00}.bg-warning .tab-title.active{background-color:#f49e00}.bg-warning .nav-item{background-color:#f49e00}.bg-error .tab-title{background-color:#a51728}.bg-error .tab-title.active{background-color:#a51728}.bg-error .nav-item{background-color:#a51728}.bg-info .tab-title{background-color:#cce4ee}.bg-info .tab-title.active{background-color:#cce4ee}.bg-info .nav-item{background-color:#cce4ee}.bg-success-background .tab-title{background-color:#c0debb}.bg-success-background .tab-title.active{background-color:#c0debb}.bg-success-background .nav-item{background-color:#c0debb}.bg-warning-background .tab-title{background-color:#fce2b2}.bg-warning-background .tab-title.active{background-color:#fce2b2}.bg-warning-background .nav-item{background-color:#fce2b2}.bg-error-background .tab-title{background-color:#ffdade}.bg-error-background .tab-title.active{background-color:#ffdade}.bg-error-background .nav-item{background-color:#ffdade}[class*=bg-] .tab-title.active:focus::after{background-color:rgba(255,255,255,.2)}@supports selector(*:focus-visible){[class*=bg-] .tab-title.active:focus::after{background-color:unset}[class*=bg-] .tab-title.active:focus-visible::after{background-color:rgba(255,255,255,.2)}}/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:block}.tab-title{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button}';export{b as P}
1
+ import{r as o,h as t,H as r,g as a}from"./p-3eab790d.js";import{v as c}from"./p-f2e1b4d8.js";import{c as e}from"./p-b095519d.js";const b=class{constructor(t){o(this,t),this.tabId=void 0,this.panel=void 0}validateFor(o){e(o,'The "panel" prop is required for the post-tab-header.')}componentWillLoad(){this.tabId=`tab-${this.host.id||crypto.randomUUID()}`}render(){return t(r,{key:"af78e7b118f13ce64c76947af5dc3a6ed5ed09a0",id:this.tabId,role:"tab","data-version":c,"aria-selected":"false",tabindex:"-1",class:"tab-title",slot:"tabs"},t("slot",{key:"99a8257992b974f9c3503eb1f67652c50bbf0671"}))}get host(){return a(this)}static get watchers(){return{panel:["validateFor"]}}};b.style='.tab-title[role=tab]{display:inline-block;cursor:pointer;position:relative;box-sizing:border-box;padding:1rem;transition:background-color 100ms;border-right:1px solid rgba(0,0,0,0);border-left:1px solid rgba(0,0,0,0);outline-color:currentColor;opacity:.7;color:var(--post-contrast-color);text-decoration:none;background-color:rgba(0,0,0,0)}.tab-title[role=tab]:focus{background-color:unset;color:var(--post-contrast-color)}.tab-title[role=tab]:hover{opacity:1;background-color:rgba(var(--post-contrast-color-rgb), 0.6);color:var(--post-contrast-color-inverted)}.tab-title[role=tab]:focus-visible{outline:rgba(0,0,0,0);opacity:1;background-color:rgba(var(--post-contrast-color-rgb), 0.6);color:var(--post-contrast-color-inverted);box-shadow:none}.tab-title[role=tab]:focus-visible::after{content:"";display:block;position:absolute;top:2px;right:1px;bottom:0;left:1px;box-shadow:0 0 0 1px #fff,0 0 0 2px #333}.tab-title[role=tab].active{z-index:1;border-right-color:#ccc;border-left-color:#ccc;opacity:1;background-color:var(--post-contrast-color-inverted);color:var(--post-contrast-color);font-weight:700}.tab-title[role=tab].active::before{content:"";display:block;position:absolute;top:0;right:-1px;left:-1px;height:.25rem;background-color:#fc0}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error) .tab-title[role=tab]:hover{background-color:rgba(255,255,255,.2)}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error) .tab-title[role=tab]:focus-visible{background-color:rgba(255,255,255,.2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tab-title[role=tab]{opacity:1;border-left-color:Canvas;border-right-color:Canvas;color:LinkText}.tab-title[role=tab]:hover,.tab-title[role=tab]:focus,.tab-title[role=tab]:focus-within,.tab-title[role=tab]:focus-visible{outline:2px solid Highlight;outline-offset:-0.25rem}.tab-title[role=tab].active{border-left-color:ButtonText;border-right-color:ButtonText;color:Highlight}.tab-title[role=tab].active::before{background-color:Highlight}}.bg-yellow .tab-title{background-color:#fc0}.bg-yellow .tab-title.active{background-color:#fc0}.bg-yellow .nav-item{background-color:#fc0}.bg-white .tab-title{background-color:#fff}.bg-white .tab-title.active{background-color:#fff}.bg-white .nav-item{background-color:#fff}.bg-light .tab-title{background-color:#faf9f8}.bg-light .tab-title.active{background-color:#faf9f8}.bg-light .nav-item{background-color:#faf9f8}.bg-gray .tab-title{background-color:#f4f3f1}.bg-gray .tab-title.active{background-color:#f4f3f1}.bg-gray .nav-item{background-color:#f4f3f1}.bg-dark .tab-title{background-color:#333}.bg-dark .tab-title.active{background-color:#333}.bg-dark .nav-item{background-color:#333}.bg-black .tab-title{background-color:#000}.bg-black .tab-title.active{background-color:#000}.bg-black .nav-item{background-color:#000}.bg-primary .tab-title{background-color:#333}.bg-primary .tab-title.active{background-color:#333}.bg-primary .nav-item{background-color:#333}.bg-secondary .tab-title{background-color:#666}.bg-secondary .tab-title.active{background-color:#666}.bg-secondary .nav-item{background-color:#666}.bg-success .tab-title{background-color:#2c871d}.bg-success .tab-title.active{background-color:#2c871d}.bg-success .nav-item{background-color:#2c871d}.bg-warning .tab-title{background-color:#f49e00}.bg-warning .tab-title.active{background-color:#f49e00}.bg-warning .nav-item{background-color:#f49e00}.bg-error .tab-title{background-color:#a51728}.bg-error .tab-title.active{background-color:#a51728}.bg-error .nav-item{background-color:#a51728}.bg-info .tab-title{background-color:#cce4ee}.bg-info .tab-title.active{background-color:#cce4ee}.bg-info .nav-item{background-color:#cce4ee}.bg-success-background .tab-title{background-color:#c0debb}.bg-success-background .tab-title.active{background-color:#c0debb}.bg-success-background .nav-item{background-color:#c0debb}.bg-warning-background .tab-title{background-color:#fce2b2}.bg-warning-background .tab-title.active{background-color:#fce2b2}.bg-warning-background .nav-item{background-color:#fce2b2}.bg-error-background .tab-title{background-color:#ffdade}.bg-error-background .tab-title.active{background-color:#ffdade}.bg-error-background .nav-item{background-color:#ffdade}[class*=bg-] .tab-title.active:focus::after{background-color:rgba(255,255,255,.2)}@supports selector(*:focus-visible){[class*=bg-] .tab-title.active:focus::after{background-color:unset}[class*=bg-] .tab-title.active:focus-visible::after{background-color:rgba(255,255,255,.2)}}/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:block}.tab-title{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button}';export{b as P}
@@ -0,0 +1 @@
1
+ export{P as post_avatar}from"./p-61e79941.js";import"./p-3eab790d.js";import"./p-f2e1b4d8.js";import"./p-b095519d.js";import"./p-440193f4.js";
@@ -0,0 +1 @@
1
+ export{P as post_rating}from"./p-d0b8820a.js";import"./p-3eab790d.js";import"./p-f2e1b4d8.js";
@@ -0,0 +1 @@
1
+ export{P as post_breadcrumb_item}from"./p-d36adfb5.js";import"./p-3eab790d.js";import"./p-f2e1b4d8.js";import"./p-0338f9da.js";import"./p-440193f4.js";import"./p-611b3c41.js";import"./p-4a3f67ab.js";
@@ -1 +1 @@
1
- export{P as post_closebutton,f as post_header,a as post_icon,d as post_list,e as post_list_item,b as post_logo,g as post_mainnavigation,h as post_megadropdown,i as post_megadropdown_trigger,c as post_popovercontainer}from"./p-da449573.js";import"./p-3eab790d.js";import"./p-f6b44820.js";import"./p-0338f9da.js";import"./p-440193f4.js";import"./p-611b3c41.js";import"./p-4a3f67ab.js";import"./p-b095519d.js";
1
+ export{P as post_closebutton,f as post_header,a as post_icon,d as post_list,e as post_list_item,b as post_logo,g as post_mainnavigation,h as post_megadropdown,i as post_megadropdown_trigger,c as post_popovercontainer}from"./p-71f03424.js";import"./p-3eab790d.js";import"./p-f2e1b4d8.js";import"./p-0338f9da.js";import"./p-440193f4.js";import"./p-611b3c41.js";import"./p-4a3f67ab.js";import"./p-b095519d.js";
@@ -0,0 +1 @@
1
+ import{r as e,h as s,H as r,g as t}from"./p-3eab790d.js";import{v as o}from"./p-f2e1b4d8.js";const d=class{constructor(s){e(this,s)}render(){return s(r,{key:"8e20fdee0faff826319440bed6ec7be0c56e6d06",role:"menuitem","data-version":o},s("slot",{key:"69e2be9dec334ade8e84ccb268c7d4955dd2fefb"}))}get host(){return t(this)}};d.style=":host{display:block}";export{d as P}