@swisspost/internet-header 10.3.0 → 10.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (297) hide show
  1. package/dist/cjs/index.cjs.js +1 -1
  2. package/dist/cjs/{package-uiAqYqcY.js → package-CL8OSAS4.js} +1 -1
  3. package/dist/cjs/{package-Bk3UBVSc.js → package-HZ6bBKwJ.js} +1 -1
  4. package/dist/cjs/post-accordion_4.cjs.entry.js +1 -1
  5. package/dist/cjs/post-autocomplete.cjs.entry.js +1 -1
  6. package/dist/cjs/post-avatar.cjs.entry.js +1 -1
  7. package/dist/cjs/post-back-to-top.cjs.entry.js +1 -1
  8. package/dist/cjs/post-banner.cjs.entry.js +1 -1
  9. package/dist/cjs/post-breadcrumb-item.cjs.entry.js +2 -2
  10. package/dist/cjs/post-breadcrumbs.cjs.entry.js +5 -4
  11. package/dist/cjs/post-closebutton.cjs.entry.js +2 -2
  12. package/dist/cjs/post-date-picker.cjs.entry.js +33 -10
  13. package/dist/cjs/post-footer.cjs.entry.js +8 -5
  14. package/dist/cjs/post-header.cjs.entry.js +4 -4
  15. package/dist/cjs/post-icon.cjs.entry.js +2 -2
  16. package/dist/cjs/post-language-menu-item.cjs.entry.js +1 -1
  17. package/dist/cjs/post-language-menu.cjs.entry.js +3 -2
  18. package/dist/cjs/post-linkarea.cjs.entry.js +2 -2
  19. package/dist/cjs/post-listbox-option.cjs.entry.js +3 -3
  20. package/dist/cjs/post-listbox.cjs.entry.js +2 -2
  21. package/dist/cjs/post-logo.cjs.entry.js +2 -2
  22. package/dist/cjs/post-mainnavigation.cjs.entry.js +3 -3
  23. package/dist/cjs/post-megadropdown-trigger.cjs.entry.js +3 -3
  24. package/dist/cjs/post-megadropdown.cjs.entry.js +3 -3
  25. package/dist/cjs/post-menu-item.cjs.entry.js +2 -2
  26. package/dist/cjs/post-menu_2.cjs.entry.js +4 -4
  27. package/dist/cjs/post-number-input.cjs.entry.js +4 -4
  28. package/dist/cjs/post-pagination.cjs.entry.js +2 -2
  29. package/dist/cjs/post-popover-trigger.cjs.entry.js +2 -2
  30. package/dist/cjs/post-popover.cjs.entry.js +4 -4
  31. package/dist/cjs/post-popovercontainer.cjs.entry.js +3 -3
  32. package/dist/cjs/post-progressbar.cjs.entry.js +1 -1
  33. package/dist/cjs/post-rating.cjs.entry.js +2 -2
  34. package/dist/cjs/post-side-navigation-trigger.cjs.entry.js +2 -2
  35. package/dist/cjs/post-side-navigation.cjs.entry.js +12 -3
  36. package/dist/cjs/post-stepper-item.cjs.entry.js +2 -2
  37. package/dist/cjs/post-stepper.cjs.entry.js +2 -2
  38. package/dist/cjs/post-tab-item.cjs.entry.js +2 -2
  39. package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
  40. package/dist/cjs/post-tabs.cjs.entry.js +4 -4
  41. package/dist/cjs/post-togglebutton.cjs.entry.js +2 -2
  42. package/dist/cjs/post-tooltip-trigger.cjs.entry.js +2 -2
  43. package/dist/cjs/post-tooltip.cjs.entry.js +3 -3
  44. package/dist/cjs/swisspost-internet-footer.cjs.entry.js +1 -1
  45. package/dist/cjs/swisspost-internet-header.cjs.entry.js +1 -1
  46. package/dist/components/package.js +1 -1
  47. package/dist/components/package2.js +1 -1
  48. package/dist/components/post-breadcrumb-item.js +1 -1
  49. package/dist/components/post-breadcrumbs.js +1 -1
  50. package/dist/components/post-closebutton2.js +1 -1
  51. package/dist/components/post-date-picker.js +1 -1
  52. package/dist/components/post-footer2.js +1 -1
  53. package/dist/components/post-header2.js +1 -1
  54. package/dist/components/post-icon2.js +1 -1
  55. package/dist/components/post-language-menu2.js +1 -1
  56. package/dist/components/post-linkarea.js +1 -1
  57. package/dist/components/post-listbox-option.js +1 -1
  58. package/dist/components/post-listbox.js +1 -1
  59. package/dist/components/post-logo2.js +1 -1
  60. package/dist/components/post-mainnavigation2.js +1 -1
  61. package/dist/components/post-megadropdown-trigger.js +1 -1
  62. package/dist/components/post-megadropdown.js +1 -1
  63. package/dist/components/post-menu-item2.js +1 -1
  64. package/dist/components/post-menu-trigger2.js +1 -1
  65. package/dist/components/post-menu2.js +1 -1
  66. package/dist/components/post-number-input.js +1 -1
  67. package/dist/components/post-pagination.js +1 -1
  68. package/dist/components/post-popover-trigger.js +1 -1
  69. package/dist/components/post-popover.js +1 -1
  70. package/dist/components/post-popovercontainer2.js +1 -1
  71. package/dist/components/post-progressbar.js +1 -1
  72. package/dist/components/post-rating.js +1 -1
  73. package/dist/components/post-side-navigation-trigger.js +1 -1
  74. package/dist/components/post-side-navigation.js +1 -1
  75. package/dist/components/post-stepper-item.js +1 -1
  76. package/dist/components/post-stepper.js +1 -1
  77. package/dist/components/post-tab-item.js +1 -1
  78. package/dist/components/post-tab-panel.js +1 -1
  79. package/dist/components/post-tabs.js +1 -1
  80. package/dist/components/post-togglebutton2.js +1 -1
  81. package/dist/components/post-tooltip-trigger.js +1 -1
  82. package/dist/components/post-tooltip.js +1 -1
  83. package/dist/docs.json +1 -1
  84. package/dist/esm/index.js +1 -1
  85. package/dist/esm/{package-Dheuk3S-.js → package-B4lS4y6E.js} +1 -1
  86. package/dist/esm/{package-D9jUbrFT.js → package-tTf1w3A9.js} +1 -1
  87. package/dist/esm/post-accordion_4.entry.js +1 -1
  88. package/dist/esm/post-autocomplete.entry.js +1 -1
  89. package/dist/esm/post-avatar.entry.js +1 -1
  90. package/dist/esm/post-back-to-top.entry.js +1 -1
  91. package/dist/esm/post-banner.entry.js +1 -1
  92. package/dist/esm/post-breadcrumb-item.entry.js +2 -2
  93. package/dist/esm/post-breadcrumbs.entry.js +5 -4
  94. package/dist/esm/post-closebutton.entry.js +2 -2
  95. package/dist/esm/post-date-picker.entry.js +33 -10
  96. package/dist/esm/post-footer.entry.js +8 -5
  97. package/dist/esm/post-header.entry.js +4 -4
  98. package/dist/esm/post-icon.entry.js +2 -2
  99. package/dist/esm/post-language-menu-item.entry.js +1 -1
  100. package/dist/esm/post-language-menu.entry.js +4 -3
  101. package/dist/esm/post-linkarea.entry.js +2 -2
  102. package/dist/esm/post-listbox-option.entry.js +3 -3
  103. package/dist/esm/post-listbox.entry.js +2 -2
  104. package/dist/esm/post-logo.entry.js +2 -2
  105. package/dist/esm/post-mainnavigation.entry.js +3 -3
  106. package/dist/esm/post-megadropdown-trigger.entry.js +3 -3
  107. package/dist/esm/post-megadropdown.entry.js +3 -3
  108. package/dist/esm/post-menu-item.entry.js +2 -2
  109. package/dist/esm/post-menu_2.entry.js +4 -4
  110. package/dist/esm/post-number-input.entry.js +4 -4
  111. package/dist/esm/post-pagination.entry.js +2 -2
  112. package/dist/esm/post-popover-trigger.entry.js +2 -2
  113. package/dist/esm/post-popover.entry.js +4 -4
  114. package/dist/esm/post-popovercontainer.entry.js +3 -3
  115. package/dist/esm/post-progressbar.entry.js +1 -1
  116. package/dist/esm/post-rating.entry.js +2 -2
  117. package/dist/esm/post-side-navigation-trigger.entry.js +2 -2
  118. package/dist/esm/post-side-navigation.entry.js +12 -3
  119. package/dist/esm/post-stepper-item.entry.js +2 -2
  120. package/dist/esm/post-stepper.entry.js +2 -2
  121. package/dist/esm/post-tab-item.entry.js +2 -2
  122. package/dist/esm/post-tab-panel.entry.js +2 -2
  123. package/dist/esm/post-tabs.entry.js +4 -4
  124. package/dist/esm/post-togglebutton.entry.js +2 -2
  125. package/dist/esm/post-tooltip-trigger.entry.js +2 -2
  126. package/dist/esm/post-tooltip.entry.js +3 -3
  127. package/dist/esm/swisspost-internet-footer.entry.js +1 -1
  128. package/dist/esm/swisspost-internet-header.entry.js +1 -1
  129. package/dist/esm-es5/index.js +1 -1
  130. package/dist/esm-es5/{package-Dheuk3S-.js → package-B4lS4y6E.js} +1 -1
  131. package/dist/esm-es5/package-tTf1w3A9.js +1 -0
  132. package/dist/esm-es5/post-accordion_4.entry.js +1 -1
  133. package/dist/esm-es5/post-autocomplete.entry.js +1 -1
  134. package/dist/esm-es5/post-avatar.entry.js +1 -1
  135. package/dist/esm-es5/post-back-to-top.entry.js +1 -1
  136. package/dist/esm-es5/post-banner.entry.js +1 -1
  137. package/dist/esm-es5/post-breadcrumb-item.entry.js +1 -1
  138. package/dist/esm-es5/post-breadcrumbs.entry.js +1 -1
  139. package/dist/esm-es5/post-closebutton.entry.js +1 -1
  140. package/dist/esm-es5/post-date-picker.entry.js +1 -1
  141. package/dist/esm-es5/post-footer.entry.js +1 -1
  142. package/dist/esm-es5/post-header.entry.js +1 -1
  143. package/dist/esm-es5/post-icon.entry.js +1 -1
  144. package/dist/esm-es5/post-language-menu-item.entry.js +1 -1
  145. package/dist/esm-es5/post-language-menu.entry.js +1 -1
  146. package/dist/esm-es5/post-linkarea.entry.js +1 -1
  147. package/dist/esm-es5/post-listbox-option.entry.js +1 -1
  148. package/dist/esm-es5/post-listbox.entry.js +1 -1
  149. package/dist/esm-es5/post-logo.entry.js +1 -1
  150. package/dist/esm-es5/post-mainnavigation.entry.js +1 -1
  151. package/dist/esm-es5/post-megadropdown-trigger.entry.js +1 -1
  152. package/dist/esm-es5/post-megadropdown.entry.js +1 -1
  153. package/dist/esm-es5/post-menu-item.entry.js +1 -1
  154. package/dist/esm-es5/post-menu_2.entry.js +1 -1
  155. package/dist/esm-es5/post-number-input.entry.js +1 -1
  156. package/dist/esm-es5/post-pagination.entry.js +1 -1
  157. package/dist/esm-es5/post-popover-trigger.entry.js +1 -1
  158. package/dist/esm-es5/post-popover.entry.js +1 -1
  159. package/dist/esm-es5/post-popovercontainer.entry.js +1 -1
  160. package/dist/esm-es5/post-progressbar.entry.js +1 -1
  161. package/dist/esm-es5/post-rating.entry.js +1 -1
  162. package/dist/esm-es5/post-side-navigation-trigger.entry.js +1 -1
  163. package/dist/esm-es5/post-side-navigation.entry.js +1 -1
  164. package/dist/esm-es5/post-stepper-item.entry.js +1 -1
  165. package/dist/esm-es5/post-stepper.entry.js +1 -1
  166. package/dist/esm-es5/post-tab-item.entry.js +1 -1
  167. package/dist/esm-es5/post-tab-panel.entry.js +1 -1
  168. package/dist/esm-es5/post-tabs.entry.js +1 -1
  169. package/dist/esm-es5/post-togglebutton.entry.js +1 -1
  170. package/dist/esm-es5/post-tooltip-trigger.entry.js +1 -1
  171. package/dist/esm-es5/post-tooltip.entry.js +1 -1
  172. package/dist/esm-es5/swisspost-internet-footer.entry.js +1 -1
  173. package/dist/esm-es5/swisspost-internet-header.entry.js +1 -1
  174. package/dist/swisspost-internet-header/index.esm.js +1 -1
  175. package/dist/swisspost-internet-header/{p-8a3118d3.entry.js → p-06de7983.entry.js} +1 -1
  176. package/dist/swisspost-internet-header/{p-b266f922.entry.js → p-09d4521f.entry.js} +1 -1
  177. package/dist/swisspost-internet-header/p-0da236b6.system.entry.js +1 -0
  178. package/dist/swisspost-internet-header/{p-f5bc81a7.entry.js → p-0de83906.entry.js} +1 -1
  179. package/dist/swisspost-internet-header/p-120a2867.entry.js +1 -0
  180. package/dist/swisspost-internet-header/p-16182f34.system.entry.js +1 -0
  181. package/dist/swisspost-internet-header/{p-b6f7469f.system.entry.js → p-17a3d14a.system.entry.js} +1 -1
  182. package/dist/swisspost-internet-header/{p-0a3325bd.system.entry.js → p-1801d35d.system.entry.js} +1 -1
  183. package/dist/swisspost-internet-header/{p-0708d2ae.entry.js → p-1a39c0c7.entry.js} +1 -1
  184. package/dist/swisspost-internet-header/{p-3ce5350e.entry.js → p-1aeb1d6c.entry.js} +1 -1
  185. package/dist/swisspost-internet-header/{p-51c1b282.system.entry.js → p-1ec41382.system.entry.js} +1 -1
  186. package/dist/swisspost-internet-header/{p-d102dd8f.system.entry.js → p-1f30f235.system.entry.js} +1 -1
  187. package/dist/swisspost-internet-header/p-1fe8276f.entry.js +1 -0
  188. package/dist/swisspost-internet-header/{p-7a4d48c8.entry.js → p-2501eb09.entry.js} +1 -1
  189. package/dist/swisspost-internet-header/{p-941c9d63.entry.js → p-25a5281d.entry.js} +1 -1
  190. package/dist/swisspost-internet-header/{p-043b0295.entry.js → p-2738143c.entry.js} +1 -1
  191. package/dist/swisspost-internet-header/p-2990978f.system.entry.js +1 -0
  192. package/dist/swisspost-internet-header/{p-ce5265e7.system.entry.js → p-2b04e974.system.entry.js} +1 -1
  193. package/dist/swisspost-internet-header/{p-9482fbdf.system.entry.js → p-2ec721b4.system.entry.js} +1 -1
  194. package/dist/swisspost-internet-header/{p-a5c32bd3.entry.js → p-31f0de1e.entry.js} +1 -1
  195. package/dist/swisspost-internet-header/p-3373f238.system.entry.js +1 -0
  196. package/dist/swisspost-internet-header/p-34259104.entry.js +1 -0
  197. package/dist/swisspost-internet-header/{p-10dbaad3.entry.js → p-36be5234.entry.js} +1 -1
  198. package/dist/swisspost-internet-header/{p-e053e1b5.system.entry.js → p-3c228ed0.system.entry.js} +1 -1
  199. package/dist/swisspost-internet-header/p-3c917e9d.system.entry.js +1 -0
  200. package/dist/swisspost-internet-header/p-42394464.system.entry.js +1 -0
  201. package/dist/swisspost-internet-header/{p-b67b88ee.system.entry.js → p-429f04bc.system.entry.js} +1 -1
  202. package/dist/swisspost-internet-header/p-4876e706.system.entry.js +1 -0
  203. package/dist/swisspost-internet-header/{p-ea3a2c74.system.entry.js → p-48cace4d.system.entry.js} +1 -1
  204. package/dist/swisspost-internet-header/p-4b44ce5f.system.entry.js +1 -0
  205. package/dist/swisspost-internet-header/p-4d3939eb.entry.js +1 -0
  206. package/dist/swisspost-internet-header/p-52e305d7.system.entry.js +1 -0
  207. package/dist/swisspost-internet-header/{p-0e3b3739.system.entry.js → p-5efffa89.system.entry.js} +1 -1
  208. package/dist/swisspost-internet-header/{p-5c73925e.entry.js → p-658dd74d.entry.js} +1 -1
  209. package/dist/swisspost-internet-header/{p-1ad88e06.entry.js → p-65cfb55b.entry.js} +1 -1
  210. package/dist/swisspost-internet-header/p-756574fd.entry.js +1 -0
  211. package/dist/swisspost-internet-header/{p-9119d1d2.entry.js → p-79512699.entry.js} +1 -1
  212. package/dist/swisspost-internet-header/{p-38b3e48b.system.entry.js → p-7a66d431.system.entry.js} +1 -1
  213. package/dist/swisspost-internet-header/p-7baa1968.system.entry.js +1 -0
  214. package/dist/swisspost-internet-header/{p-32d8756e.entry.js → p-7c53064b.entry.js} +1 -1
  215. package/dist/swisspost-internet-header/{p-d586b0b6.system.entry.js → p-805ee472.system.entry.js} +1 -1
  216. package/dist/swisspost-internet-header/{p-9bead48d.system.entry.js → p-80993537.system.entry.js} +1 -1
  217. package/dist/swisspost-internet-header/{p-26f99143.entry.js → p-80cb2bdb.entry.js} +1 -1
  218. package/dist/swisspost-internet-header/p-83410f32.entry.js +1 -0
  219. package/dist/swisspost-internet-header/{p-522b6a34.system.entry.js → p-85087a43.system.entry.js} +1 -1
  220. package/dist/swisspost-internet-header/p-8b9c9fda.entry.js +1 -0
  221. package/dist/swisspost-internet-header/{p-4615095e.system.entry.js → p-8e61f407.system.entry.js} +1 -1
  222. package/dist/swisspost-internet-header/p-90e78f26.system.entry.js +1 -0
  223. package/dist/swisspost-internet-header/p-925c8906.entry.js +1 -0
  224. package/dist/swisspost-internet-header/{p-ff4b3e95.entry.js → p-92e0402a.entry.js} +1 -1
  225. package/dist/swisspost-internet-header/{p-145e9419.system.entry.js → p-999af688.system.entry.js} +1 -1
  226. package/dist/swisspost-internet-header/{p-56b1fbff.system.entry.js → p-9b4f74a6.system.entry.js} +1 -1
  227. package/dist/swisspost-internet-header/{p-b9e4f3a1.entry.js → p-9e57bd5a.entry.js} +1 -1
  228. package/dist/swisspost-internet-header/{p-B86vJMfc.js → p-B4kfqOjJ.js} +1 -1
  229. package/dist/swisspost-internet-header/{p-CUgd8XDw.system.js → p-BhneAPKT.system.js} +1 -1
  230. package/dist/swisspost-internet-header/{p-CVe9fdUw.system.js → p-CHYNOqn0.system.js} +1 -1
  231. package/dist/swisspost-internet-header/{p-B2xXTEH5.system.js → p-D8meK6Dd.system.js} +1 -1
  232. package/dist/swisspost-internet-header/p-R5BnOD0U.system.js +1 -1
  233. package/dist/swisspost-internet-header/{p-fcf9da41.system.entry.js → p-a204bb79.system.entry.js} +1 -1
  234. package/dist/swisspost-internet-header/{p-701461bc.system.entry.js → p-a9c5178f.system.entry.js} +1 -1
  235. package/dist/swisspost-internet-header/{p-e4b30e68.system.entry.js → p-ab97669b.system.entry.js} +1 -1
  236. package/dist/swisspost-internet-header/{p-8aec6b71.entry.js → p-acabba28.entry.js} +1 -1
  237. package/dist/swisspost-internet-header/p-aefc1c4c.entry.js +1 -0
  238. package/dist/swisspost-internet-header/p-b05dd248.system.entry.js +1 -0
  239. package/dist/swisspost-internet-header/{p-a3640c54.entry.js → p-b8bb2c10.entry.js} +1 -1
  240. package/dist/swisspost-internet-header/{p-dbe1d696.entry.js → p-bc470741.entry.js} +1 -1
  241. package/dist/swisspost-internet-header/{p-15564bd8.entry.js → p-bda3094c.entry.js} +1 -1
  242. package/dist/swisspost-internet-header/{p-5937df91.system.entry.js → p-be97ff93.system.entry.js} +1 -1
  243. package/dist/swisspost-internet-header/{p-091d408b.system.entry.js → p-bf2996de.system.entry.js} +1 -1
  244. package/dist/swisspost-internet-header/p-c1e959fb.entry.js +1 -0
  245. package/dist/swisspost-internet-header/p-c546bebe.entry.js +1 -0
  246. package/dist/swisspost-internet-header/{p-b98bd035.entry.js → p-ca9c885e.entry.js} +1 -1
  247. package/dist/swisspost-internet-header/{p-9dbc65e6.system.entry.js → p-d7e470ff.system.entry.js} +1 -1
  248. package/dist/swisspost-internet-header/{p-f917f79a.system.entry.js → p-db9eae5a.system.entry.js} +1 -1
  249. package/dist/swisspost-internet-header/{p-77075637.system.entry.js → p-de258c90.system.entry.js} +1 -1
  250. package/dist/swisspost-internet-header/{p-53627d54.entry.js → p-e26d9136.entry.js} +1 -1
  251. package/dist/swisspost-internet-header/{p-2affed30.entry.js → p-e3515572.entry.js} +1 -1
  252. package/dist/swisspost-internet-header/p-e9582f72.system.entry.js +1 -0
  253. package/dist/swisspost-internet-header/p-ec06df2f.entry.js +1 -0
  254. package/dist/swisspost-internet-header/{p-fc839150.entry.js → p-ec43767f.entry.js} +1 -1
  255. package/dist/swisspost-internet-header/p-ec45ed63.system.entry.js +1 -0
  256. package/dist/swisspost-internet-header/p-ecb554c7.system.entry.js +1 -0
  257. package/dist/swisspost-internet-header/{p-26e94f0f.entry.js → p-f2ed3863.entry.js} +1 -1
  258. package/dist/swisspost-internet-header/{p-abd1654a.entry.js → p-f32d49d7.entry.js} +1 -1
  259. package/dist/swisspost-internet-header/p-f523050e.entry.js +1 -0
  260. package/dist/swisspost-internet-header/p-f56fe63d.entry.js +1 -0
  261. package/dist/swisspost-internet-header/{p-0fdc3e18.system.entry.js → p-f7a9a615.system.entry.js} +1 -1
  262. package/dist/swisspost-internet-header/{p-0a1276dc.entry.js → p-fe440b79.entry.js} +1 -1
  263. package/dist/swisspost-internet-header/{p-31b363d3.system.entry.js → p-fe9ac5ca.system.entry.js} +1 -1
  264. package/dist/swisspost-internet-header/p-tTf1w3A9.js +1 -0
  265. package/dist/swisspost-internet-header/swisspost-internet-header.esm.js +1 -1
  266. package/package.json +3 -3
  267. package/dist/esm-es5/package-D9jUbrFT.js +0 -1
  268. package/dist/swisspost-internet-header/p-13bae547.system.entry.js +0 -1
  269. package/dist/swisspost-internet-header/p-2069109d.system.entry.js +0 -1
  270. package/dist/swisspost-internet-header/p-20ded6e8.entry.js +0 -1
  271. package/dist/swisspost-internet-header/p-27b2a48e.entry.js +0 -1
  272. package/dist/swisspost-internet-header/p-2bbec1fa.entry.js +0 -1
  273. package/dist/swisspost-internet-header/p-324bb578.entry.js +0 -1
  274. package/dist/swisspost-internet-header/p-324f6a1d.system.entry.js +0 -1
  275. package/dist/swisspost-internet-header/p-3b5b5f43.entry.js +0 -1
  276. package/dist/swisspost-internet-header/p-3e0d2f8e.entry.js +0 -1
  277. package/dist/swisspost-internet-header/p-3fb06291.entry.js +0 -1
  278. package/dist/swisspost-internet-header/p-468c06f1.system.entry.js +0 -1
  279. package/dist/swisspost-internet-header/p-48b9d8af.system.entry.js +0 -1
  280. package/dist/swisspost-internet-header/p-62e15c37.system.entry.js +0 -1
  281. package/dist/swisspost-internet-header/p-6dd426a3.system.entry.js +0 -1
  282. package/dist/swisspost-internet-header/p-6df1fef1.system.entry.js +0 -1
  283. package/dist/swisspost-internet-header/p-715fd00a.entry.js +0 -1
  284. package/dist/swisspost-internet-header/p-77955468.entry.js +0 -1
  285. package/dist/swisspost-internet-header/p-7e85acba.system.entry.js +0 -1
  286. package/dist/swisspost-internet-header/p-89dbe69c.entry.js +0 -1
  287. package/dist/swisspost-internet-header/p-8f560878.system.entry.js +0 -1
  288. package/dist/swisspost-internet-header/p-9510033c.entry.js +0 -1
  289. package/dist/swisspost-internet-header/p-D9jUbrFT.js +0 -1
  290. package/dist/swisspost-internet-header/p-a2b590f1.entry.js +0 -1
  291. package/dist/swisspost-internet-header/p-a79db979.system.entry.js +0 -1
  292. package/dist/swisspost-internet-header/p-ba60d0f6.entry.js +0 -1
  293. package/dist/swisspost-internet-header/p-c792d22e.entry.js +0 -1
  294. package/dist/swisspost-internet-header/p-ce4549eb.system.entry.js +0 -1
  295. package/dist/swisspost-internet-header/p-e711377e.system.entry.js +0 -1
  296. package/dist/swisspost-internet-header/p-e9c6db2d.system.entry.js +0 -1
  297. package/dist/swisspost-internet-header/p-fde0e9e3.system.entry.js +0 -1
@@ -1 +1 @@
1
- System.register(["./p-CN_0KCBp.system.js","./p-CVe9fdUw.system.js","./p-CiwQnVr3.system.js","./p-BMZcKRx0.system.js","./p-D4wq7hIE.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var n,i,a,e,r,o,s,f;return{setters:[function(t){n=t.r;i=t.h;a=t.H;e=t.g},function(t){r=t.v},function(t){o=t.O},function(t){s=t.T},function(t){f=t.R},null],execute:function(){var m=["cylon","cylon-vertical","spin","spin-reverse","fade","throb"];var c=function(){return":host{display:inline-block;width:1em;height:1em;vertical-align:-0.15em}span{display:block;width:100%;height:100%;fill:currentColor;forced-color-adjust:preserve-parent-color;background-color:currentColor;-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100%;mask-size:100%}:host([flip-h]:not([flip-h=false])){scale:-1 1}:host([flip-v]:not([flip-v=false])){scale:1 -1}:host([flip-h][flip-v]:not([flip-h=false],[flip-v=false])){scale:-1}:host([animation]){-webkit-transform-origin:center;transform-origin:center}:host([animation=cylon]){-webkit-animation:icon-animation-cylon .75s ease-in-out infinite alternate;animation:icon-animation-cylon .75s ease-in-out infinite alternate}:host([animation=cylon-vertical]){-webkit-animation:icon-animation-cylon-vertical .75s ease-in-out infinite alternate;animation:icon-animation-cylon-vertical .75s ease-in-out infinite alternate}:host([animation=spin]){-webkit-animation:icon-animation-spin 2s linear infinite normal;animation:icon-animation-spin 2s linear infinite normal}:host([animation=spin-reverse]){animation:icon-animation-spin 2s linear infinite reverse}:host([animation=fade]){-webkit-animation:icon-animation-fade .75s ease-in-out infinite alternate;animation:icon-animation-fade .75s ease-in-out infinite alternate}:host([animation=throb]){-webkit-animation:icon-animation-throb .75s ease-in-out infinite alternate;animation:icon-animation-throb .75s ease-in-out infinite alternate}@-webkit-keyframes icon-animation-cylon{from{-webkit-transform:translateX(-25%);transform:translateX(-25%)}to{-webkit-transform:translateX(25%);transform:translateX(25%)}}@keyframes icon-animation-cylon{from{-webkit-transform:translateX(-25%);transform:translateX(-25%)}to{-webkit-transform:translateX(25%);transform:translateX(25%)}}@-webkit-keyframes icon-animation-cylon-vertical{from{-webkit-transform:translateY(25%);transform:translateY(25%)}to{-webkit-transform:translateY(-25%);transform:translateY(-25%)}}@keyframes icon-animation-cylon-vertical{from{-webkit-transform:translateY(25%);transform:translateY(25%)}to{-webkit-transform:translateY(-25%);transform:translateY(-25%)}}@-webkit-keyframes icon-animation-fade{from{opacity:.1}to{opacity:1}}@keyframes icon-animation-fade{from{opacity:.1}to{opacity:1}}@-webkit-keyframes icon-animation-spin{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes icon-animation-spin{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-webkit-keyframes icon-animation-throb{from{opacity:.5;-webkit-transform:scale(0.5);transform:scale(0.5)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes icon-animation-throb{from{opacity:.5;-webkit-transform:scale(0.5);transform:scale(0.5)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}"};var l=undefined&&undefined.__decorate||function(t,n,i,a){var e=arguments.length,r=e<3?n:a===null?a=Object.getOwnPropertyDescriptor(n,i):a,o;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")r=Reflect.decorate(t,n,i,a);else for(var s=t.length-1;s>=0;s--)if(o=t[s])r=(e<3?o(r):e>3?o(n,i,r):o(n,i))||r;return e>3&&r&&Object.defineProperty(n,i,r),r};var u="https://unpkg.com/@swisspost/design-system-icons@".concat(r,"/public/post-icons/");var b=t("post_icon",function(){function t(t){n(this,t);this.flipH=false;this.flipV=false}t.prototype.getUrl=function(){var t,n,i;var a=(t=this.name)!==null&&t!==void 0?t:this.host.getAttribute("name");var e="".concat(a,".svg");if((n=this.url)===null||n===void 0?void 0:n.startsWith("data:image/")){return this.url}if(this.url){return this.url}var r=function(t){return/^https?:\/\//.test(t)};var o=function(t){return t&&!t.endsWith("/")?"".concat(t,"/"):t};var s=function(t){return t.replaceAll(/([^:])\/\//g,"$1/")};var f=globalThis.location.origin;var m=((i=document.querySelector("base[href]"))===null||i===void 0?void 0:i.getAttribute("href"))||"";var c="";{var l=document.querySelector('meta[name="design-system-settings"]');c=(l===null||l===void 0?void 0:l.getAttribute("data-post-icon-base"))||""}var b=function(t){var n=o(m);var i=o(t);if(r(n)){return"".concat(n).concat(i)}return"".concat(f).concat(n).concat(i)};var h;if(this.base){h=r(this.base)?"".concat(o(this.base)).concat(e):"".concat(b(this.base)).concat(e);return s(h)}if(c){h=r(c)?"".concat(o(c)).concat(e):"".concat(b(c)).concat(e);return s(h)}return s("".concat(u).concat(e))};t.prototype.getStyles=function(){var t=this.getUrl();return Object.fromEntries(Object.entries({"-webkit-mask-image":"url(".concat(t,")"),"mask-image":"url('".concat(t,"')"),transform:(this.scale&&!Number.isNaN(Number(this.scale))?"scale("+this.scale+")":"")+(this.rotate&&!Number.isNaN(Number(this.rotate))?" rotate("+this.rotate+"deg)":"")}).filter((function(t){var n=t[0],i=t[1];return i!==null})))};t.prototype.render=function(){return i(a,{key:"9d7b98a18fa098702c0fe1bd06544f605801db6a","data-version":r},i("span",{key:"847682d63ce72e26a541f40b29255e81febaf79e",style:this.getStyles()}))};Object.defineProperty(t.prototype,"host",{get:function(){return e(this)},enumerable:false,configurable:true});return t}());l([o(m)],b.prototype,"animation",void 0);l([s("string")],b.prototype,"base",void 0);l([f(),s("string")],b.prototype,"name",void 0);l([s("number")],b.prototype,"rotate",void 0);l([s("number")],b.prototype,"scale",void 0);b.style=c()}}}));
1
+ System.register(["./p-CN_0KCBp.system.js","./p-CHYNOqn0.system.js","./p-CiwQnVr3.system.js","./p-BMZcKRx0.system.js","./p-D4wq7hIE.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var n,i,a,e,r,o,s,f;return{setters:[function(t){n=t.r;i=t.h;a=t.H;e=t.g},function(t){r=t.v},function(t){o=t.O},function(t){s=t.T},function(t){f=t.R},null],execute:function(){var m=["cylon","cylon-vertical","spin","spin-reverse","fade","throb"];var c=function(){return":host{display:inline-block;width:1em;height:1em;vertical-align:-0.15em}span{display:block;width:100%;height:100%;fill:currentColor;forced-color-adjust:preserve-parent-color;background-color:currentColor;-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100%;mask-size:100%}:host([flip-h]:not([flip-h=false])){scale:-1 1}:host([flip-v]:not([flip-v=false])){scale:1 -1}:host([flip-h][flip-v]:not([flip-h=false],[flip-v=false])){scale:-1}:host([animation]){-webkit-transform-origin:center;transform-origin:center}:host([animation=cylon]){-webkit-animation:icon-animation-cylon .75s ease-in-out infinite alternate;animation:icon-animation-cylon .75s ease-in-out infinite alternate}:host([animation=cylon-vertical]){-webkit-animation:icon-animation-cylon-vertical .75s ease-in-out infinite alternate;animation:icon-animation-cylon-vertical .75s ease-in-out infinite alternate}:host([animation=spin]){-webkit-animation:icon-animation-spin 2s linear infinite normal;animation:icon-animation-spin 2s linear infinite normal}:host([animation=spin-reverse]){animation:icon-animation-spin 2s linear infinite reverse}:host([animation=fade]){-webkit-animation:icon-animation-fade .75s ease-in-out infinite alternate;animation:icon-animation-fade .75s ease-in-out infinite alternate}:host([animation=throb]){-webkit-animation:icon-animation-throb .75s ease-in-out infinite alternate;animation:icon-animation-throb .75s ease-in-out infinite alternate}@-webkit-keyframes icon-animation-cylon{from{-webkit-transform:translateX(-25%);transform:translateX(-25%)}to{-webkit-transform:translateX(25%);transform:translateX(25%)}}@keyframes icon-animation-cylon{from{-webkit-transform:translateX(-25%);transform:translateX(-25%)}to{-webkit-transform:translateX(25%);transform:translateX(25%)}}@-webkit-keyframes icon-animation-cylon-vertical{from{-webkit-transform:translateY(25%);transform:translateY(25%)}to{-webkit-transform:translateY(-25%);transform:translateY(-25%)}}@keyframes icon-animation-cylon-vertical{from{-webkit-transform:translateY(25%);transform:translateY(25%)}to{-webkit-transform:translateY(-25%);transform:translateY(-25%)}}@-webkit-keyframes icon-animation-fade{from{opacity:.1}to{opacity:1}}@keyframes icon-animation-fade{from{opacity:.1}to{opacity:1}}@-webkit-keyframes icon-animation-spin{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes icon-animation-spin{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-webkit-keyframes icon-animation-throb{from{opacity:.5;-webkit-transform:scale(0.5);transform:scale(0.5)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes icon-animation-throb{from{opacity:.5;-webkit-transform:scale(0.5);transform:scale(0.5)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}"};var l=undefined&&undefined.__decorate||function(t,n,i,a){var e=arguments.length,r=e<3?n:a===null?a=Object.getOwnPropertyDescriptor(n,i):a,o;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")r=Reflect.decorate(t,n,i,a);else for(var s=t.length-1;s>=0;s--)if(o=t[s])r=(e<3?o(r):e>3?o(n,i,r):o(n,i))||r;return e>3&&r&&Object.defineProperty(n,i,r),r};var u="https://unpkg.com/@swisspost/design-system-icons@".concat(r,"/public/post-icons/");var b=t("post_icon",function(){function t(t){n(this,t);this.flipH=false;this.flipV=false}t.prototype.getUrl=function(){var t,n,i;var a=(t=this.name)!==null&&t!==void 0?t:this.host.getAttribute("name");var e="".concat(a,".svg");if((n=this.url)===null||n===void 0?void 0:n.startsWith("data:image/")){return this.url}if(this.url){return this.url}var r=function(t){return/^https?:\/\//.test(t)};var o=function(t){return t&&!t.endsWith("/")?"".concat(t,"/"):t};var s=function(t){return t.replaceAll(/([^:])\/\//g,"$1/")};var f=globalThis.location.origin;var m=((i=document.querySelector("base[href]"))===null||i===void 0?void 0:i.getAttribute("href"))||"";var c="";{var l=document.querySelector('meta[name="design-system-settings"]');c=(l===null||l===void 0?void 0:l.getAttribute("data-post-icon-base"))||""}var b=function(t){var n=o(m);var i=o(t);if(r(n)){return"".concat(n).concat(i)}return"".concat(f).concat(n).concat(i)};var h;if(this.base){h=r(this.base)?"".concat(o(this.base)).concat(e):"".concat(b(this.base)).concat(e);return s(h)}if(c){h=r(c)?"".concat(o(c)).concat(e):"".concat(b(c)).concat(e);return s(h)}return s("".concat(u).concat(e))};t.prototype.getStyles=function(){var t=this.getUrl();return Object.fromEntries(Object.entries({"-webkit-mask-image":"url(".concat(t,")"),"mask-image":"url('".concat(t,"')"),transform:(this.scale&&!Number.isNaN(Number(this.scale))?"scale("+this.scale+")":"")+(this.rotate&&!Number.isNaN(Number(this.rotate))?" rotate("+this.rotate+"deg)":"")}).filter((function(t){var n=t[0],i=t[1];return i!==null})))};t.prototype.render=function(){return i(a,{key:"ce81db69bf77d09a0a331bac48cdaede7ff3cb8e","data-version":r},i("span",{key:"211f999da845687289fd991421f4315a090a67ba",style:this.getStyles()}))};Object.defineProperty(t.prototype,"host",{get:function(){return e(this)},enumerable:false,configurable:true});return t}());l([o(m)],b.prototype,"animation",void 0);l([s("string")],b.prototype,"base",void 0);l([f(),s("string")],b.prototype,"name",void 0);l([s("number")],b.prototype,"rotate",void 0);l([s("number")],b.prototype,"scale",void 0);b.style=c()}}}));
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,o,i){function r(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,n){function a(t){try{s(i.next(t))}catch(t){n(t)}}function c(t){try{s(i["throw"](t))}catch(t){n(t)}}function s(t){t.done?o(t.value):r(t.value).then(a,c)}s((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var o={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,r,n,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=c(0),a["throw"]=c(1),a["return"]=c(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return s([t,e])}}function s(c){if(i)throw new TypeError("Generator is already executing.");while(a&&(a=0,c[0]&&(o=0)),o)try{if(i=1,r&&(n=c[0]&2?r["return"]:c[0]?r["throw"]||((n=r["return"])&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;if(r=0,n)c=[c[0]&2,n.value];switch(c[0]){case 0:case 1:n=c;break;case 4:o.label++;return{value:c[1],done:false};case 5:o.label++;r=c[1];c=[0];continue;case 7:c=o.ops.pop();o.trys.pop();continue;default:if(!(n=o.trys,n=n.length>0&&n[n.length-1])&&(c[0]===6||c[0]===2)){o=0;continue}if(c[0]===3&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(c[0]===6&&o.label<n[1]){o.label=n[1];n=c;break}if(n&&o.label<n[2]){o.label=n[2];o.ops.push(c);break}if(n[2])o.ops.pop();o.trys.pop();continue}c=e.call(t,o)}catch(t){c=[6,t];r=0}finally{i=n=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};System.register(["./p-CN_0KCBp.system.js","./p-CVe9fdUw.system.js","./p-D4wq7hIE.system.js","./p-CiwQnVr3.system.js","./p-C1pxTt7y.system.js","./p-Bwi1IyPf.system.js","./p-BMZcKRx0.system.js","./p-qFxyG4GI.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var e,o,i,r,n,a,c,s,d,l,u,f;return{setters:[function(t){e=t.r;o=t.h;i=t.H;r=t.g;n=t.c},function(t){a=t.v},function(t){c=t.R},function(t){s=t.O},function(t){d=t.E},function(t){l=t.n},function(t){u=t.T},function(t){f=t.g},null],execute:function(){function b(){return globalThis.matchMedia?globalThis.matchMedia("(prefers-reduced-motion: reduce)").matches:true}var h=[1,2,3,4,5,6];var p=function(){return":host{display:block;-webkit-border-before:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-primary-enabled-stroke);border-block-start:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-primary-enabled-stroke)}"};var v=undefined&&undefined.__decorate||function(t,e,o,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")n=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)if(a=t[c])n=(r<3?a(n):r>3?a(e,o,n):a(e,o))||n;return r>3&&n&&Object.defineProperty(e,o,n),n};var g=t("post_accordion",function(){function t(t){e(this,t);this.expandedItems=new Set;this.multiple=false}t.prototype.syncHeadingLevel=function(){var t=this;this.accordionItems.forEach((function(e){e.setAttribute("heading-level",String(t.headingLevel))}))};t.prototype.componentWillLoad=function(){this.registerAccordionItems()};t.prototype.componentDidLoad=function(){this.syncHeadingLevel()};t.prototype.collapseToggleHandler=function(t){var e=t.target;var o=this.expandedItems.has(e);if(o){this.expandedItems.delete(e)}else{this.expandedItems.add(e)}if(this.multiple||o)return;Array.from(this.expandedItems.values()).filter((function(t){return t!==e})).forEach((function(t){t.toggle(false)}))};t.prototype.toggle=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(o){switch(o.label){case 0:e=this.accordionItems.find((function(e){return e.id===t}));if(!e)throw new Error("No post-accordion-item found with id #".concat(t,"."));return[4,e.toggle()];case 1:o.sent();return[2]}}))}))};t.prototype.expandAll=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!this.multiple)return[3,2];return[4,Promise.all(this.accordionItems.map((function(t){return t.toggle(true)})))];case 1:t.sent();return[3,4];case 2:if(!(this.expandedItems.size===0))return[3,4];return[4,this.accordionItems[0].toggle(true)];case 3:t.sent();t.label=4;case 4:return[2]}}))}))};t.prototype.collapseAll=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,Promise.all(this.accordionItems.map((function(t){return t.toggle(false)})))];case 1:t.sent();return[2]}}))}))};t.prototype.registerAccordionItems=function(){var t=this;this.accordionItems=Array.from(this.host.querySelectorAll("post-accordion-item"));this.accordionItems.filter((function(e){return!e.collapsed||t.expandedItems.has(e)})).forEach((function(e,o){if(!t.multiple&&o!==0){e.setAttribute("collapsed","");return}t.expandedItems.add(e)}))};t.prototype.render=function(){var t=this;return o(i,{key:"4e3df581ac99aa14dfaaab836c90cee788607a76","data-version":a},o("div",{key:"425615868542199dc79439d04b9ca9ba815b05f3",class:"accordion"},o("slot",{key:"ba7c05b69377101275cd76ecffb476516ca52c83",onSlotchange:function(){return t.registerAccordionItems()}})))};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{headingLevel:[{syncHeadingLevel:0}]}},enumerable:false,configurable:true});return t}());v([c(),s(h)],g.prototype,"headingLevel",void 0);v([d("post-accordion-item")],g.prototype,"collapseToggleHandler",null);g.style=p();var m=function(){return':host{display:block;-webkit-border-after:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-primary-enabled-stroke);border-block-end:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-primary-enabled-stroke)}:host:has(.accordion-button:hover){border-block-end-color:var(--post-scheme-color-interactive-primary-hover-stroke)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host:has(.accordion-button:hover){border-block-end-color:Highlight}}:host([collapsed]) .accordion-button post-icon{-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}.accordion-header{color:var(--post-scheme-color-interactive-primary-enabled-fg1);font-size:var(--post-device-font-size-5);margin:0;line-height:var(--post-device-line-height-heading);font-weight:var(--post-device-font-weight-extra-black)}.accordion-button{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:button;-moz-appearance:button;appearance:button;display:-ms-flexbox;display:flex;position:relative;width:100%;-ms-flex-align:center;align-items:center;text-align:start;gap:var(--post-device-spacing-gap-7);padding-block:var(--post-device-spacing-padding-19);padding-inline:var(--post-device-spacing-padding-5);-webkit-border-after:var(--post-device-border-width-default) var(--post-core-border-style-solid) rgba(0,0,0,0);border-block-end:var(--post-device-border-width-default) var(--post-core-border-style-solid) rgba(0,0,0,0);cursor:pointer;outline:none !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button{background-color:ButtonFace !important}.accordion-button:hover{background-color:Highlight !important}}.accordion-button::before{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}.accordion-button:is(:focus-visible,:has(:focus-visible),.pretend-focus)::before{outline-style:var(--post-core-border-style-solid) !important;display:block;content:"";position:absolute;inset:calc(var(--post-device-border-width-default)*-1) 0 calc(var(--post-device-border-width-default)*-1);border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:is(:focus-visible,:has(:focus-visible),.pretend-focus)::before{outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.accordion-button:is(:focus-visible,:focus-within,.pretend-focus)::before{outline-style:var(--post-core-border-style-solid) !important;display:block;content:"";position:absolute;inset:calc(var(--post-device-border-width-default)*-1) 0 calc(var(--post-device-border-width-default)*-1);border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:is(:focus-visible,:focus-within,.pretend-focus)::before{outline-color:Highlight !important}}}.accordion-button slot::slotted(span[slot=header]){-ms-flex-positive:1;flex-grow:1}.accordion-button post-icon{-ms-flex:none;flex:none;width:var(--post-core-dimension-24);aspect-ratio:1;-webkit-transition:-webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:var(--post-accordion-icon-initial-transform, none);transform:var(--post-accordion-icon-initial-transform, none)}.accordion-button.collapsed{-webkit-padding-before:var(--post-device-spacing-padding-19);padding-block-start:var(--post-device-spacing-padding-19);-webkit-padding-after:var(--post-device-spacing-padding-19);padding-block-end:var(--post-device-spacing-padding-19)}.accordion-button.collapsed post-icon{-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}.accordion-button:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}.accordion-button>::slotted(.text-truncate){display:block}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:hover,.accordion-button:focus-visible{color:Highlight}}post-collapsible{-webkit-margin-after:calc(var(--post-device-border-width-default)*-1);margin-block-end:calc(var(--post-device-border-width-default)*-1)}.accordion-body{-webkit-padding-before:var(--post-device-spacing-padding-15);padding-block-start:var(--post-device-spacing-padding-15);-webkit-padding-after:var(--post-device-spacing-padding-block-25);padding-block-end:var(--post-device-spacing-padding-block-25);padding-inline:var(--post-device-spacing-padding-5)}.logo-container{display:none;width:var(--post-device-sizing-logo-1);aspect-ratio:1}.logo-container.has-image{display:block}.logo-container slot::slotted(img){display:block;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.accordion-button>::slotted(:first-child),.accordion-body>::slotted(:first-child){-webkit-margin-before:0 !important;margin-block-start:0 !important}.accordion-button>::slotted(:last-child),.accordion-body>::slotted(:last-child){-webkit-margin-after:0 !important;margin-block-end:0 !important}'};var y=undefined&&undefined.__decorate||function(t,e,o,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")n=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)if(a=t[c])n=(r<3?a(n):r>3?a(e,o,n):a(e,o))||n;return r>3&&n&&Object.defineProperty(e,o,n),n};var w=t("post_accordion_item",function(){function t(t){e(this,t);this.collapsed=false}t.prototype.onCollapseToggle=function(t){this.collapsed=!t.detail};t.prototype.toggle=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.collapsible.toggle(t)]}))}))};t.prototype.onSlotLogoChange=function(){this.slottedLogo=this.host.querySelector('img[slot="logo"]')};t.prototype.componentWillRender=function(){this.slottedLogo=this.host.querySelector('img[slot="logo"]')};t.prototype.render=function(){var t=this;var e;var r="c".concat(l(6));var n=(e=this.host.closest("post-accordion"))===null||e===void 0?void 0:e.getAttribute("heading-level");var c="h".concat(n!==null&&n!==void 0?n:2);return o(i,{key:"b9699596d57887d99214c6f163355535c68eae1a","data-version":a},o("post-collapsible-trigger",{key:"ebd7c9d6bf2bc35d548867edc8766e31125d8509",for:r},o(c,{key:"93806261d7dba93569b09d37dff0c01b4f29268b",class:"accordion-header"},o("button",{key:"785a4bcff2c6705aade9b045e1176d43a2ef202b",type:"button",class:"accordion-button".concat(this.collapsed?" collapsed":""),part:"post-accordion-button"},o("span",{key:"87f8ba7f7ebe2ba851b6dc134656296820c467d0",class:{"logo-container":true,"has-image":!!this.slottedLogo}},o("slot",{key:"146256cb174f5895b25fd8f44464ca32fba6b6ee",name:"logo",onSlotchange:this.onSlotLogoChange.bind(this)})),o("slot",{key:"d742ef89a88280f85c7da697536d4ad2ff825f0b",name:"header"}),o("post-icon",{key:"f83e438c9d504ebaa0066df81b6f74ec14dcb08a",name:"chevronup"})))),o("post-collapsible",{key:"179f36eab7ebdb9faa909a70eb43e1d78503e6e1",id:r,collapsed:this.collapsed,ref:function(e){return t.collapsible=e}},o("div",{key:"e93c3570cf76c971b49bf28d3d5540ac289b2469",class:"accordion-body",part:"post-accordion-body"},o("slot",{key:"db26c35edb371cb855141b6f7552d96ea10e06a4"}))))};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());y([d("post-accordion-item")],w.prototype,"onCollapseToggle",null);w.style=m();var k=350;var _="ease";var j={height:"0",overflow:"hidden"};var x={duration:b()?0:k,easing:_,fill:"forwards"};function O(t){var e=globalThis.getComputedStyle(t).height;var o={height:e};return t.animate([o,j],x)}function R(t){var e={height:"".concat(t.scrollHeight,"px"),offset:1,overflow:"hidden"};var o={height:"auto",overflow:"visible"};return t.animate([j,e,o],x)}var T=function(){return":host{display:block;position:relative;overflow:var(--post-collapsible-initial-overflow, hidden);height:var(--post-collapsible-initial-height, auto)}"};var z=undefined&&undefined.__decorate||function(t,e,o,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")n=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)if(a=t[c])n=(r<3?a(n):r>3?a(e,o,n):a(e,o))||n;return r>3&&n&&Object.defineProperty(e,o,n),n};var H=t("post_collapsible",function(){function t(t){e(this,t);this.postToggle=n(this,"postToggle");this.collapsed=false}Object.defineProperty(t.prototype,"isExpanded",{get:function(){return!this.collapsed},enumerable:false,configurable:true});t.prototype.componentDidLoad=function(){this.updateTriggers()};t.prototype.toggle=function(){return __awaiter(this,arguments,void 0,(function(t){var e,o;if(t===void 0){t=!this.isExpanded}return __generator(this,(function(i){switch(i.label){case 0:if(t===this.isExpanded)return[2,this.isExpanded];this.collapsed=!t;e=this.isExpanded;o=e?R(this.host):O(this.host);this.postToggle.emit(e);return[4,o.finished];case 1:i.sent();o.commitStyles();this.updateTriggers();return[2,e]}}))}))};t.prototype.updateTriggers=function(){var t=this.host.id?Array.from(document.querySelectorAll('post-collapsible-trigger[for="'.concat(this.host.id,'"]'))):[];var e=this.host.closest("post-collapsible-trigger");if(e&&!t.includes(e)){t.push(e)}t.forEach((function(t){return t.update()}))};t.prototype.render=function(){return o(i,{key:"d4fef8eff9b716e9dff0e570f5993221ca631ed5","data-version":a,tabindex:this.collapsed?-1:undefined,style:this.collapsed?j:undefined},o("slot",{key:"ee957da050187c1cfd752e0dcb6b5f86505f5089"}))};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());z([u("boolean")],H.prototype,"collapsed",void 0);H.style=T();var S=undefined&&undefined.__decorate||function(t,e,o,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")n=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)if(a=t[c])n=(r<3?a(n):r>3?a(e,o,n):a(e,o))||n;return r>3&&n&&Object.defineProperty(e,o,n),n};var C=t("post_collapsible_trigger",function(){function t(t){var o=this;e(this,t);this.observer=new MutationObserver((function(){return o.setTrigger()}));this.handlePostToggle=this.handlePostToggle.bind(this)}t.prototype.connectedCallback=function(){this.root=f(this.host);this.root.addEventListener("postToggle",this.handlePostToggle);this.observer.observe(this.host,{childList:true,subtree:true})};t.prototype.componentDidLoad=function(){this.setTrigger();if(!this.trigger)console.warn("The post-collapsible-trigger must contain a button.");if(!this.collapsible){var t=this.for?'with id "'.concat(this.for,'"'):"nested inside <post-collapsible-trigger>";console.warn("No post-collapsible found ".concat(t,'. Either nest a post-collapsible inside the trigger or set the "for" attribute to the id of the collapsible.'))}};t.prototype.disconnectedCallback=function(){var t;this.observer.disconnect();(t=this.root)===null||t===void 0?void 0:t.removeEventListener("postToggle",this.handlePostToggle)};t.prototype.update=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.updateAriaAttributes();return[2]}))}))};t.prototype.handlePostToggle=function(t){if(this.trigger){this.trigger.setAttribute("aria-expanded","".concat(t.detail))}};t.prototype.updateAriaAttributes=function(){var t=this.collapsible;if(!this.trigger||!t)return;t.id||(t.id="collapsible-".concat(crypto.randomUUID()));var e=t.id;var o=this.trigger.getAttribute("aria-controls");var i=o?o.split(/\s+/):[];if(!i.includes(e)){i.push(e);this.trigger.setAttribute("aria-controls",i.join(" "))}this.trigger.setAttribute("aria-expanded","".concat(!t.collapsed))};t.prototype.toggleCollapsible=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,(t=this.collapsible)===null||t===void 0?void 0:t.toggle()];case 1:e.sent();return[2]}}))}))};Object.defineProperty(t.prototype,"collapsible",{get:function(){var t,e,o;var i=(t=this.host.querySelector("post-collapsible"))!==null&&t!==void 0?t:this.for?(o=(e=this.root)===null||e===void 0?void 0:e.getElementById(this.for))!==null&&o!==void 0?o:null:null;if(i&&i.localName==="post-collapsible"){return i}return null},enumerable:false,configurable:true});t.prototype.setTrigger=function(){var t=this;var e=Array.from(this.host.querySelectorAll("button")).find((function(e){var o=e.closest("post-collapsible");var i=!!o&&t.host.contains(o);return!i}));if(!e||this.trigger&&e.isEqualNode(this.trigger))return;this.trigger=e;this.trigger.addEventListener("click",(function(){return t.toggleCollapsible()}));this.updateAriaAttributes()};t.prototype.render=function(){return o(i,{key:"64dde42136274194be6c3c4f94fb87ded8a3a079","data-version":a},o("slot",{key:"f43727ec2f7692793178ad6c162bb56f0f2d842b"}))};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());S([u("string")],C.prototype,"for",void 0);S([d("post-collapsible")],C.prototype,"handlePostToggle",null)}}}));
1
+ var __awaiter=this&&this.__awaiter||function(t,e,o,i){function r(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,n){function a(t){try{s(i.next(t))}catch(t){n(t)}}function c(t){try{s(i["throw"](t))}catch(t){n(t)}}function s(t){t.done?o(t.value):r(t.value).then(a,c)}s((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var o={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,r,n,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=c(0),a["throw"]=c(1),a["return"]=c(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return s([t,e])}}function s(c){if(i)throw new TypeError("Generator is already executing.");while(a&&(a=0,c[0]&&(o=0)),o)try{if(i=1,r&&(n=c[0]&2?r["return"]:c[0]?r["throw"]||((n=r["return"])&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;if(r=0,n)c=[c[0]&2,n.value];switch(c[0]){case 0:case 1:n=c;break;case 4:o.label++;return{value:c[1],done:false};case 5:o.label++;r=c[1];c=[0];continue;case 7:c=o.ops.pop();o.trys.pop();continue;default:if(!(n=o.trys,n=n.length>0&&n[n.length-1])&&(c[0]===6||c[0]===2)){o=0;continue}if(c[0]===3&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(c[0]===6&&o.label<n[1]){o.label=n[1];n=c;break}if(n&&o.label<n[2]){o.label=n[2];o.ops.push(c);break}if(n[2])o.ops.pop();o.trys.pop();continue}c=e.call(t,o)}catch(t){c=[6,t];r=0}finally{i=n=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};System.register(["./p-CN_0KCBp.system.js","./p-CHYNOqn0.system.js","./p-D4wq7hIE.system.js","./p-CiwQnVr3.system.js","./p-C1pxTt7y.system.js","./p-Bwi1IyPf.system.js","./p-BMZcKRx0.system.js","./p-qFxyG4GI.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var e,o,i,r,n,a,c,s,d,l,u,f;return{setters:[function(t){e=t.r;o=t.h;i=t.H;r=t.g;n=t.c},function(t){a=t.v},function(t){c=t.R},function(t){s=t.O},function(t){d=t.E},function(t){l=t.n},function(t){u=t.T},function(t){f=t.g},null],execute:function(){function b(){return globalThis.matchMedia?globalThis.matchMedia("(prefers-reduced-motion: reduce)").matches:true}var h=[1,2,3,4,5,6];var p=function(){return":host{display:block;-webkit-border-before:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-primary-enabled-stroke);border-block-start:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-primary-enabled-stroke)}"};var v=undefined&&undefined.__decorate||function(t,e,o,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")n=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)if(a=t[c])n=(r<3?a(n):r>3?a(e,o,n):a(e,o))||n;return r>3&&n&&Object.defineProperty(e,o,n),n};var g=t("post_accordion",function(){function t(t){e(this,t);this.expandedItems=new Set;this.multiple=false}t.prototype.syncHeadingLevel=function(){var t=this;this.accordionItems.forEach((function(e){e.setAttribute("heading-level",String(t.headingLevel))}))};t.prototype.componentWillLoad=function(){this.registerAccordionItems()};t.prototype.componentDidLoad=function(){this.syncHeadingLevel()};t.prototype.collapseToggleHandler=function(t){var e=t.target;var o=this.expandedItems.has(e);if(o){this.expandedItems.delete(e)}else{this.expandedItems.add(e)}if(this.multiple||o)return;Array.from(this.expandedItems.values()).filter((function(t){return t!==e})).forEach((function(t){t.toggle(false)}))};t.prototype.toggle=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(o){switch(o.label){case 0:e=this.accordionItems.find((function(e){return e.id===t}));if(!e)throw new Error("No post-accordion-item found with id #".concat(t,"."));return[4,e.toggle()];case 1:o.sent();return[2]}}))}))};t.prototype.expandAll=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!this.multiple)return[3,2];return[4,Promise.all(this.accordionItems.map((function(t){return t.toggle(true)})))];case 1:t.sent();return[3,4];case 2:if(!(this.expandedItems.size===0))return[3,4];return[4,this.accordionItems[0].toggle(true)];case 3:t.sent();t.label=4;case 4:return[2]}}))}))};t.prototype.collapseAll=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,Promise.all(this.accordionItems.map((function(t){return t.toggle(false)})))];case 1:t.sent();return[2]}}))}))};t.prototype.registerAccordionItems=function(){var t=this;this.accordionItems=Array.from(this.host.querySelectorAll("post-accordion-item"));this.accordionItems.filter((function(e){return!e.collapsed||t.expandedItems.has(e)})).forEach((function(e,o){if(!t.multiple&&o!==0){e.setAttribute("collapsed","");return}t.expandedItems.add(e)}))};t.prototype.render=function(){var t=this;return o(i,{key:"4e3df581ac99aa14dfaaab836c90cee788607a76","data-version":a},o("div",{key:"425615868542199dc79439d04b9ca9ba815b05f3",class:"accordion"},o("slot",{key:"ba7c05b69377101275cd76ecffb476516ca52c83",onSlotchange:function(){return t.registerAccordionItems()}})))};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{headingLevel:[{syncHeadingLevel:0}]}},enumerable:false,configurable:true});return t}());v([c(),s(h)],g.prototype,"headingLevel",void 0);v([d("post-accordion-item")],g.prototype,"collapseToggleHandler",null);g.style=p();var m=function(){return':host{display:block;-webkit-border-after:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-primary-enabled-stroke);border-block-end:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-primary-enabled-stroke)}:host:has(.accordion-button:hover){border-block-end-color:var(--post-scheme-color-interactive-primary-hover-stroke)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host:has(.accordion-button:hover){border-block-end-color:Highlight}}:host([collapsed]) .accordion-button post-icon{-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}.accordion-header{color:var(--post-scheme-color-interactive-primary-enabled-fg1);font-size:var(--post-device-font-size-5);margin:0;line-height:var(--post-device-line-height-heading);font-weight:var(--post-device-font-weight-extra-black)}.accordion-button{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:button;-moz-appearance:button;appearance:button;display:-ms-flexbox;display:flex;position:relative;width:100%;-ms-flex-align:center;align-items:center;text-align:start;gap:var(--post-device-spacing-gap-7);padding-block:var(--post-device-spacing-padding-19);padding-inline:var(--post-device-spacing-padding-5);-webkit-border-after:var(--post-device-border-width-default) var(--post-core-border-style-solid) rgba(0,0,0,0);border-block-end:var(--post-device-border-width-default) var(--post-core-border-style-solid) rgba(0,0,0,0);cursor:pointer;outline:none !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button{background-color:ButtonFace !important}.accordion-button:hover{background-color:Highlight !important}}.accordion-button::before{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}.accordion-button:is(:focus-visible,:has(:focus-visible),.pretend-focus)::before{outline-style:var(--post-core-border-style-solid) !important;display:block;content:"";position:absolute;inset:calc(var(--post-device-border-width-default)*-1) 0 calc(var(--post-device-border-width-default)*-1);border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:is(:focus-visible,:has(:focus-visible),.pretend-focus)::before{outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.accordion-button:is(:focus-visible,:focus-within,.pretend-focus)::before{outline-style:var(--post-core-border-style-solid) !important;display:block;content:"";position:absolute;inset:calc(var(--post-device-border-width-default)*-1) 0 calc(var(--post-device-border-width-default)*-1);border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:is(:focus-visible,:focus-within,.pretend-focus)::before{outline-color:Highlight !important}}}.accordion-button slot::slotted(span[slot=header]){-ms-flex-positive:1;flex-grow:1}.accordion-button post-icon{-ms-flex:none;flex:none;width:var(--post-core-dimension-24);aspect-ratio:1;-webkit-transition:-webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:var(--post-accordion-icon-initial-transform, none);transform:var(--post-accordion-icon-initial-transform, none)}.accordion-button.collapsed{-webkit-padding-before:var(--post-device-spacing-padding-19);padding-block-start:var(--post-device-spacing-padding-19);-webkit-padding-after:var(--post-device-spacing-padding-19);padding-block-end:var(--post-device-spacing-padding-19)}.accordion-button.collapsed post-icon{-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}.accordion-button:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}.accordion-button>::slotted(.text-truncate){display:block}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:hover,.accordion-button:focus-visible{color:Highlight}}post-collapsible{-webkit-margin-after:calc(var(--post-device-border-width-default)*-1);margin-block-end:calc(var(--post-device-border-width-default)*-1)}.accordion-body{-webkit-padding-before:var(--post-device-spacing-padding-15);padding-block-start:var(--post-device-spacing-padding-15);-webkit-padding-after:var(--post-device-spacing-padding-block-25);padding-block-end:var(--post-device-spacing-padding-block-25);padding-inline:var(--post-device-spacing-padding-5)}.logo-container{display:none;width:var(--post-device-sizing-logo-1);aspect-ratio:1}.logo-container.has-image{display:block}.logo-container slot::slotted(img){display:block;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.accordion-button>::slotted(:first-child),.accordion-body>::slotted(:first-child){-webkit-margin-before:0 !important;margin-block-start:0 !important}.accordion-button>::slotted(:last-child),.accordion-body>::slotted(:last-child){-webkit-margin-after:0 !important;margin-block-end:0 !important}'};var y=undefined&&undefined.__decorate||function(t,e,o,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")n=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)if(a=t[c])n=(r<3?a(n):r>3?a(e,o,n):a(e,o))||n;return r>3&&n&&Object.defineProperty(e,o,n),n};var w=t("post_accordion_item",function(){function t(t){e(this,t);this.collapsed=false}t.prototype.onCollapseToggle=function(t){this.collapsed=!t.detail};t.prototype.toggle=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.collapsible.toggle(t)]}))}))};t.prototype.onSlotLogoChange=function(){this.slottedLogo=this.host.querySelector('img[slot="logo"]')};t.prototype.componentWillRender=function(){this.slottedLogo=this.host.querySelector('img[slot="logo"]')};t.prototype.render=function(){var t=this;var e;var r="c".concat(l(6));var n=(e=this.host.closest("post-accordion"))===null||e===void 0?void 0:e.getAttribute("heading-level");var c="h".concat(n!==null&&n!==void 0?n:2);return o(i,{key:"b9699596d57887d99214c6f163355535c68eae1a","data-version":a},o("post-collapsible-trigger",{key:"ebd7c9d6bf2bc35d548867edc8766e31125d8509",for:r},o(c,{key:"93806261d7dba93569b09d37dff0c01b4f29268b",class:"accordion-header"},o("button",{key:"785a4bcff2c6705aade9b045e1176d43a2ef202b",type:"button",class:"accordion-button".concat(this.collapsed?" collapsed":""),part:"post-accordion-button"},o("span",{key:"87f8ba7f7ebe2ba851b6dc134656296820c467d0",class:{"logo-container":true,"has-image":!!this.slottedLogo}},o("slot",{key:"146256cb174f5895b25fd8f44464ca32fba6b6ee",name:"logo",onSlotchange:this.onSlotLogoChange.bind(this)})),o("slot",{key:"d742ef89a88280f85c7da697536d4ad2ff825f0b",name:"header"}),o("post-icon",{key:"f83e438c9d504ebaa0066df81b6f74ec14dcb08a",name:"chevronup"})))),o("post-collapsible",{key:"179f36eab7ebdb9faa909a70eb43e1d78503e6e1",id:r,collapsed:this.collapsed,ref:function(e){return t.collapsible=e}},o("div",{key:"e93c3570cf76c971b49bf28d3d5540ac289b2469",class:"accordion-body",part:"post-accordion-body"},o("slot",{key:"db26c35edb371cb855141b6f7552d96ea10e06a4"}))))};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());y([d("post-accordion-item")],w.prototype,"onCollapseToggle",null);w.style=m();var k=350;var _="ease";var j={height:"0",overflow:"hidden"};var x={duration:b()?0:k,easing:_,fill:"forwards"};function O(t){var e=globalThis.getComputedStyle(t).height;var o={height:e};return t.animate([o,j],x)}function R(t){var e={height:"".concat(t.scrollHeight,"px"),offset:1,overflow:"hidden"};var o={height:"auto",overflow:"visible"};return t.animate([j,e,o],x)}var T=function(){return":host{display:block;position:relative;overflow:var(--post-collapsible-initial-overflow, hidden);height:var(--post-collapsible-initial-height, auto)}"};var z=undefined&&undefined.__decorate||function(t,e,o,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")n=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)if(a=t[c])n=(r<3?a(n):r>3?a(e,o,n):a(e,o))||n;return r>3&&n&&Object.defineProperty(e,o,n),n};var H=t("post_collapsible",function(){function t(t){e(this,t);this.postToggle=n(this,"postToggle");this.collapsed=false}Object.defineProperty(t.prototype,"isExpanded",{get:function(){return!this.collapsed},enumerable:false,configurable:true});t.prototype.componentDidLoad=function(){this.updateTriggers()};t.prototype.toggle=function(){return __awaiter(this,arguments,void 0,(function(t){var e,o;if(t===void 0){t=!this.isExpanded}return __generator(this,(function(i){switch(i.label){case 0:if(t===this.isExpanded)return[2,this.isExpanded];this.collapsed=!t;e=this.isExpanded;o=e?R(this.host):O(this.host);this.postToggle.emit(e);return[4,o.finished];case 1:i.sent();o.commitStyles();this.updateTriggers();return[2,e]}}))}))};t.prototype.updateTriggers=function(){var t=this.host.id?Array.from(document.querySelectorAll('post-collapsible-trigger[for="'.concat(this.host.id,'"]'))):[];var e=this.host.closest("post-collapsible-trigger");if(e&&!t.includes(e)){t.push(e)}t.forEach((function(t){return t.update()}))};t.prototype.render=function(){return o(i,{key:"d4fef8eff9b716e9dff0e570f5993221ca631ed5","data-version":a,tabindex:this.collapsed?-1:undefined,style:this.collapsed?j:undefined},o("slot",{key:"ee957da050187c1cfd752e0dcb6b5f86505f5089"}))};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());z([u("boolean")],H.prototype,"collapsed",void 0);H.style=T();var S=undefined&&undefined.__decorate||function(t,e,o,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")n=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)if(a=t[c])n=(r<3?a(n):r>3?a(e,o,n):a(e,o))||n;return r>3&&n&&Object.defineProperty(e,o,n),n};var C=t("post_collapsible_trigger",function(){function t(t){var o=this;e(this,t);this.observer=new MutationObserver((function(){return o.setTrigger()}));this.handlePostToggle=this.handlePostToggle.bind(this)}t.prototype.connectedCallback=function(){this.root=f(this.host);this.root.addEventListener("postToggle",this.handlePostToggle);this.observer.observe(this.host,{childList:true,subtree:true})};t.prototype.componentDidLoad=function(){this.setTrigger();if(!this.trigger)console.warn("The post-collapsible-trigger must contain a button.");if(!this.collapsible){var t=this.for?'with id "'.concat(this.for,'"'):"nested inside <post-collapsible-trigger>";console.warn("No post-collapsible found ".concat(t,'. Either nest a post-collapsible inside the trigger or set the "for" attribute to the id of the collapsible.'))}};t.prototype.disconnectedCallback=function(){var t;this.observer.disconnect();(t=this.root)===null||t===void 0?void 0:t.removeEventListener("postToggle",this.handlePostToggle)};t.prototype.update=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.updateAriaAttributes();return[2]}))}))};t.prototype.handlePostToggle=function(t){if(this.trigger){this.trigger.setAttribute("aria-expanded","".concat(t.detail))}};t.prototype.updateAriaAttributes=function(){var t=this.collapsible;if(!this.trigger||!t)return;t.id||(t.id="collapsible-".concat(crypto.randomUUID()));var e=t.id;var o=this.trigger.getAttribute("aria-controls");var i=o?o.split(/\s+/):[];if(!i.includes(e)){i.push(e);this.trigger.setAttribute("aria-controls",i.join(" "))}this.trigger.setAttribute("aria-expanded","".concat(!t.collapsed))};t.prototype.toggleCollapsible=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,(t=this.collapsible)===null||t===void 0?void 0:t.toggle()];case 1:e.sent();return[2]}}))}))};Object.defineProperty(t.prototype,"collapsible",{get:function(){var t,e,o;var i=(t=this.host.querySelector("post-collapsible"))!==null&&t!==void 0?t:this.for?(o=(e=this.root)===null||e===void 0?void 0:e.getElementById(this.for))!==null&&o!==void 0?o:null:null;if(i&&i.localName==="post-collapsible"){return i}return null},enumerable:false,configurable:true});t.prototype.setTrigger=function(){var t=this;var e=Array.from(this.host.querySelectorAll("button")).find((function(e){var o=e.closest("post-collapsible");var i=!!o&&t.host.contains(o);return!i}));if(!e||this.trigger&&e.isEqualNode(this.trigger))return;this.trigger=e;this.trigger.addEventListener("click",(function(){return t.toggleCollapsible()}));this.updateAriaAttributes()};t.prototype.render=function(){return o(i,{key:"64dde42136274194be6c3c4f94fb87ded8a3a079","data-version":a},o("slot",{key:"f43727ec2f7692793178ad6c162bb56f0f2d842b"}))};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());S([u("string")],C.prototype,"for",void 0);S([d("post-collapsible")],C.prototype,"handlePostToggle",null)}}}));
@@ -1 +1 @@
1
- import{r as t,c as s,h as i,H as e,g as o}from"./p-h3opCZqH.js";import{v as n}from"./p-D9jUbrFT.js";import{d as h}from"./p-C9hMpmsD.js";import{R as a}from"./p-DvaRK2lz.js";import{T as c}from"./p-DZMUeI8H.js";import"./p-vAzHgwTd.js";const r=class{constructor(i){t(this,i),this.postFilteringEvent=s(this,"postFilteringEvent"),this.debouncedHandleInput=h((t=>{this.handleInput(t)}),250),this.filterThreshold=0,this.clearable=!1,this.inputValue="",this.handleFocus=()=>{0===this.filterThreshold&&(this.inputElement&&""!==this.inputElement.value.trim()||this.postFilteringEvent.emit(""))},this.handleOnBlur=()=>{this.inputElement.value=this.inputValue,this.listBoxElement.filter(""),this.hideListBox()},this.handleInput=async t=>{if(!this.listBoxElement)return;const s=t.target.value.trim(),i=s.length>=this.filterThreshold?s:"",{defaultPrevented:e}=this.postFilteringEvent.emit(i&&i.length>=this.filterThreshold?i:"");e||(await this.listBoxElement.filter(i),i?(this.showListBox(),this.announceCount()):(this.inputValue="",this.clearAnnouncement()))},this.handleKeyDown=t=>{const{key:s,altKey:i}=t;switch(s){case"ArrowDown":t.preventDefault(),this.showListBox(),i||this.listBoxElement.navigate("down");break;case"ArrowUp":t.preventDefault(),this.listBoxElement.navigate("up");break;case"Enter":if(this.listBoxElement.hidden)return;t.preventDefault(),this.listBoxElement.selectActive(),this.hideListBox();break;case"Escape":this.hideListBox();break;case"Tab":this.listBoxElement.selectActive(),this.hideListBox();break;case"Home":t.preventDefault(),this.listBoxElement.navigate("first");break;case"End":t.preventDefault(),this.listBoxElement.navigate("last")}},this.handleOptionSelected=t=>{const s=t.detail;this.inputElement.value=s,this.inputValue=s,this.hideListBox()},this.handleOptionActive=t=>{const s=t.detail;s?this.inputElement.setAttribute("aria-activedescendant",s):this.inputElement.removeAttribute("aria-activedescendant")},this.hideListBox=()=>{this.clearAnnouncement(),this.listBoxElement.hide(),this.inputElement.ariaExpanded="false",this.host.removeAttribute("open"),this.inputElement.removeAttribute("aria-activedescendant")},this.showListBox=async()=>{await this.listBoxElement.show(),this.inputElement.ariaExpanded="true",this.host.setAttribute("open",""),this.announceCount()},this.clearInput=()=>{this.inputElement&&(this.inputElement.value="",this.inputValue="",this.listBoxElement.clearSelection(),this.hideListBox())}}get inputElement(){return this.host.querySelector("input")}get listBoxElement(){return this.listbox?document.getElementById(this.listbox):this.host.querySelector("post-listbox")}componentWillLoad(){if(!this.inputElement)return;if(this.inputElement.role="combobox",this.inputElement.ariaAutoComplete="list",!this.listBoxElement)return;this.listBoxElement.id||(this.listBoxElement.id=crypto.randomUUID()),this.inputElement.setAttribute("aria-controls",this.listBoxElement.id),this.inputElement.setAttribute("aria-expanded","false");const t=this.inputElement.labels?.[0];t&&(t.id||(t.id=crypto.randomUUID()),this.listBoxElement.setAttribute("aria-labelledby",t.id)),this.inputElement.autocomplete="off",this.attachInputListeners(),this.attachListboxListeners()}disconnectedCallback(){this.detachInputListeners(),this.detachListboxListeners()}attachInputListeners(){this.inputElement&&(this.inputElement.addEventListener("input",this.debouncedHandleInput),this.inputElement.addEventListener("keydown",this.handleKeyDown),this.inputElement.addEventListener("blur",this.handleOnBlur),this.inputElement.addEventListener("click",this.showListBox),this.inputElement.addEventListener("focus",this.handleFocus))}detachInputListeners(){this.inputElement&&(this.inputElement.removeEventListener("input",this.debouncedHandleInput),this.inputElement.removeEventListener("keydown",this.handleKeyDown),this.inputElement.removeEventListener("blur",this.handleOnBlur),this.inputElement.removeEventListener("click",this.showListBox),this.inputElement.removeEventListener("focus",this.handleFocus))}attachListboxListeners(){this.listBoxElement&&(this.listBoxElement.addEventListener("postOptionSelected",this.handleOptionSelected),this.listBoxElement.addEventListener("postOptionActive",this.handleOptionActive))}detachListboxListeners(){this.listBoxElement&&(this.listBoxElement.removeEventListener("postOptionSelected",this.handleOptionSelected),this.listBoxElement.removeEventListener("postOptionActive",this.handleOptionActive))}clearAnnouncement(){this.outputElement&&(this.outputElement.textContent="")}announceCount(){if(!this.outputElement||!this.listBoxElement)return;const t=this.listBoxElement.querySelectorAll("post-listbox-option:not([hidden])").length;this.outputElement.textContent=this.textAvailableSuggestions.replace("{count}",String(t))}render(){return i(e,{key:"ef5b821b235c6e6a19e9da612a7c3fbc33408e44","data-version":n},i("slot",{key:"a7855fd0e992be6c4fd737e9b7f29c77c1ec8e7f"}),this.clearable&&this.inputValue&&i("button",{key:"16a690d24deb1ac1cd50c85cea857ad3e5736fac",type:"button",class:"autocomplete-clear",onClick:this.clearInput},i("post-icon",{key:"f254bd331fb15ca6cb5a32ac2a5f5a25cb8e81ea","aria-hidden":"true",name:"closex"})),i("post-icon",{key:"87faa8280bb58683262ec40dbec383478c5999f5","aria-hidden":"true",class:"autocomplete-icon",name:"chevronDown"}),i("output",{key:"9f8ad0d40d1e12f611f4f2e9e14058dbcca3892e",class:"visually-hidden",ref:t=>this.outputElement=t}))}get host(){return o(this)}};(function(t,s,i,e){var o,n=arguments.length,h=n<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,s,i,e);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(h=(n<3?o(h):n>3?o(s,i,h):o(s,i))||h);n>3&&h&&Object.defineProperty(s,i,h)})([a(),c("string")],r.prototype,"textAvailableSuggestions",void 0),r.style=":host{position:relative;display:block}.autocomplete-icon,.autocomplete-clear{position:absolute;inset-block-start:16px}@media screen and (min-width: 780px){.autocomplete-icon,.autocomplete-clear{inset-block-start:20px}}.autocomplete-icon{inset-inline-end:16px;width:24px;height:24px;pointer-events:none;-webkit-transition:-webkit-transform .2s ease-in-out;transition:-webkit-transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out, -webkit-transform .2s ease-in-out}:host([open]) .autocomplete-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.autocomplete-clear{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;inset-inline-end:42px;background:none;border:none;cursor:pointer}.autocomplete-clear>post-icon{width:20px;height:20px}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}";export{r as post_autocomplete}
1
+ import{r as t,c as s,h as i,H as e,g as o}from"./p-h3opCZqH.js";import{v as n}from"./p-tTf1w3A9.js";import{d as h}from"./p-C9hMpmsD.js";import{R as a}from"./p-DvaRK2lz.js";import{T as c}from"./p-DZMUeI8H.js";import"./p-vAzHgwTd.js";const r=class{constructor(i){t(this,i),this.postFilteringEvent=s(this,"postFilteringEvent"),this.debouncedHandleInput=h((t=>{this.handleInput(t)}),250),this.filterThreshold=0,this.clearable=!1,this.inputValue="",this.handleFocus=()=>{0===this.filterThreshold&&(this.inputElement&&""!==this.inputElement.value.trim()||this.postFilteringEvent.emit(""))},this.handleOnBlur=()=>{this.inputElement.value=this.inputValue,this.listBoxElement.filter(""),this.hideListBox()},this.handleInput=async t=>{if(!this.listBoxElement)return;const s=t.target.value.trim(),i=s.length>=this.filterThreshold?s:"",{defaultPrevented:e}=this.postFilteringEvent.emit(i&&i.length>=this.filterThreshold?i:"");e||(await this.listBoxElement.filter(i),i?(this.showListBox(),this.announceCount()):(this.inputValue="",this.clearAnnouncement()))},this.handleKeyDown=t=>{const{key:s,altKey:i}=t;switch(s){case"ArrowDown":t.preventDefault(),this.showListBox(),i||this.listBoxElement.navigate("down");break;case"ArrowUp":t.preventDefault(),this.listBoxElement.navigate("up");break;case"Enter":if(this.listBoxElement.hidden)return;t.preventDefault(),this.listBoxElement.selectActive(),this.hideListBox();break;case"Escape":this.hideListBox();break;case"Tab":this.listBoxElement.selectActive(),this.hideListBox();break;case"Home":t.preventDefault(),this.listBoxElement.navigate("first");break;case"End":t.preventDefault(),this.listBoxElement.navigate("last")}},this.handleOptionSelected=t=>{const s=t.detail;this.inputElement.value=s,this.inputValue=s,this.hideListBox()},this.handleOptionActive=t=>{const s=t.detail;s?this.inputElement.setAttribute("aria-activedescendant",s):this.inputElement.removeAttribute("aria-activedescendant")},this.hideListBox=()=>{this.clearAnnouncement(),this.listBoxElement.hide(),this.inputElement.ariaExpanded="false",this.host.removeAttribute("open"),this.inputElement.removeAttribute("aria-activedescendant")},this.showListBox=async()=>{await this.listBoxElement.show(),this.inputElement.ariaExpanded="true",this.host.setAttribute("open",""),this.announceCount()},this.clearInput=()=>{this.inputElement&&(this.inputElement.value="",this.inputValue="",this.listBoxElement.clearSelection(),this.hideListBox())}}get inputElement(){return this.host.querySelector("input")}get listBoxElement(){return this.listbox?document.getElementById(this.listbox):this.host.querySelector("post-listbox")}componentWillLoad(){if(!this.inputElement)return;if(this.inputElement.role="combobox",this.inputElement.ariaAutoComplete="list",!this.listBoxElement)return;this.listBoxElement.id||(this.listBoxElement.id=crypto.randomUUID()),this.inputElement.setAttribute("aria-controls",this.listBoxElement.id),this.inputElement.setAttribute("aria-expanded","false");const t=this.inputElement.labels?.[0];t&&(t.id||(t.id=crypto.randomUUID()),this.listBoxElement.setAttribute("aria-labelledby",t.id)),this.inputElement.autocomplete="off",this.attachInputListeners(),this.attachListboxListeners()}disconnectedCallback(){this.detachInputListeners(),this.detachListboxListeners()}attachInputListeners(){this.inputElement&&(this.inputElement.addEventListener("input",this.debouncedHandleInput),this.inputElement.addEventListener("keydown",this.handleKeyDown),this.inputElement.addEventListener("blur",this.handleOnBlur),this.inputElement.addEventListener("click",this.showListBox),this.inputElement.addEventListener("focus",this.handleFocus))}detachInputListeners(){this.inputElement&&(this.inputElement.removeEventListener("input",this.debouncedHandleInput),this.inputElement.removeEventListener("keydown",this.handleKeyDown),this.inputElement.removeEventListener("blur",this.handleOnBlur),this.inputElement.removeEventListener("click",this.showListBox),this.inputElement.removeEventListener("focus",this.handleFocus))}attachListboxListeners(){this.listBoxElement&&(this.listBoxElement.addEventListener("postOptionSelected",this.handleOptionSelected),this.listBoxElement.addEventListener("postOptionActive",this.handleOptionActive))}detachListboxListeners(){this.listBoxElement&&(this.listBoxElement.removeEventListener("postOptionSelected",this.handleOptionSelected),this.listBoxElement.removeEventListener("postOptionActive",this.handleOptionActive))}clearAnnouncement(){this.outputElement&&(this.outputElement.textContent="")}announceCount(){if(!this.outputElement||!this.listBoxElement)return;const t=this.listBoxElement.querySelectorAll("post-listbox-option:not([hidden])").length;this.outputElement.textContent=this.textAvailableSuggestions.replace("{count}",String(t))}render(){return i(e,{key:"ef5b821b235c6e6a19e9da612a7c3fbc33408e44","data-version":n},i("slot",{key:"a7855fd0e992be6c4fd737e9b7f29c77c1ec8e7f"}),this.clearable&&this.inputValue&&i("button",{key:"16a690d24deb1ac1cd50c85cea857ad3e5736fac",type:"button",class:"autocomplete-clear",onClick:this.clearInput},i("post-icon",{key:"f254bd331fb15ca6cb5a32ac2a5f5a25cb8e81ea","aria-hidden":"true",name:"closex"})),i("post-icon",{key:"87faa8280bb58683262ec40dbec383478c5999f5","aria-hidden":"true",class:"autocomplete-icon",name:"chevronDown"}),i("output",{key:"9f8ad0d40d1e12f611f4f2e9e14058dbcca3892e",class:"visually-hidden",ref:t=>this.outputElement=t}))}get host(){return o(this)}};(function(t,s,i,e){var o,n=arguments.length,h=n<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,s,i,e);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(h=(n<3?o(h):n>3?o(s,i,h):o(s,i))||h);n>3&&h&&Object.defineProperty(s,i,h)})([a(),c("string")],r.prototype,"textAvailableSuggestions",void 0),r.style=":host{position:relative;display:block}.autocomplete-icon,.autocomplete-clear{position:absolute;inset-block-start:16px}@media screen and (min-width: 780px){.autocomplete-icon,.autocomplete-clear{inset-block-start:20px}}.autocomplete-icon{inset-inline-end:16px;width:24px;height:24px;pointer-events:none;-webkit-transition:-webkit-transform .2s ease-in-out;transition:-webkit-transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out, -webkit-transform .2s ease-in-out}:host([open]) .autocomplete-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.autocomplete-clear{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;inset-inline-end:42px;background:none;border:none;cursor:pointer}.autocomplete-clear>post-icon{width:20px;height:20px}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}";export{r as post_autocomplete}
@@ -1 +1 @@
1
- import{r as t,c as e,h as o,H as n,g as r}from"./p-h3opCZqH.js";import{v as s}from"./p-D9jUbrFT.js";import{O as i}from"./p-Drxf8XVU.js";import{P as a}from"./p-DRiVosES.js";import{T as p}from"./p-DZMUeI8H.js";import"./p-vAzHgwTd.js";const c=Math.min,l=Math.max,f=Math.round,u=Math.floor,h=t=>({x:t,y:t}),d={left:"right",right:"left",bottom:"top",top:"bottom"};function v(t,e,o){return l(t,c(e,o))}function m(t,e){return"function"==typeof t?t(e):t}function g(t){return t.split("-")[0]}function x(t){return t.split("-")[1]}function w(t){return"x"===t?"y":"x"}function b(t){return"y"===t?"height":"width"}function y(t){const e=t[0];return"t"===e||"b"===e?"y":"x"}function S(t){return w(y(t))}function k(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const T=["left","right"],E=["right","left"],M=["top","bottom"],A=["bottom","top"];function O(t){const e=g(t);return d[e]+t.slice(e.length)}function H(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 L(t){const{x:e,y:o,width:n,height:r}=t;return{width:n,height:r,top:o,left:e,right:e+n,bottom:o+r,x:e,y:o}}function $(t,e,o){let{reference:n,floating:r}=t;const s=y(e),i=S(e),a=b(i),p=g(e),c="y"===s,l=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2,u=n[a]/2-r[a]/2;let h;switch(p){case"top":h={x:l,y:n.y-r.height};break;case"bottom":h={x:l,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-r.width,y:f};break;default:h={x:n.x,y:n.y}}switch(x(e)){case"start":h[i]-=u*(o&&c?-1:1);break;case"end":h[i]+=u*(o&&c?-1:1)}return h}async function D(t,e){var o;void 0===e&&(e={});const{x:n,y:r,platform:s,rects:i,elements:a,strategy:p}=t,{boundary:c="clippingAncestors",rootBoundary:l="viewport",elementContext:f="floating",altBoundary:u=!1,padding:h=0}=m(e,t),d=H(h),v=a[u?"floating"===f?"reference":"floating":f],g=L(await s.getClippingRect({element:null==(o=await(null==s.isElement?void 0:s.isElement(v)))||o?v:v.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:l,strategy:p})),x="floating"===f?{x:n,y:r,width:i.floating.width,height:i.floating.height}:i.reference,w=await(null==s.getOffsetParent?void 0:s.getOffsetParent(a.floating)),b=await(null==s.isElement?void 0:s.isElement(w))&&await(null==s.getScale?void 0:s.getScale(w))||{x:1,y:1},y=L(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:w,strategy:p}):x);return{top:(g.top-y.top+d.top)/b.y,bottom:(y.bottom-g.bottom+d.bottom)/b.y,left:(g.left-y.left+d.left)/b.x,right:(y.right-g.right+d.right)/b.x}}function j(t){const e=c(...t.map((t=>t.left))),o=c(...t.map((t=>t.top)));return{x:e,y:o,width:l(...t.map((t=>t.right)))-e,height:l(...t.map((t=>t.bottom)))-o}}const R=new Set(["left","top"]);function z(){return"undefined"!=typeof window}function F(t){return W(t)?(t.nodeName||"").toLowerCase():"#document"}function C(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function P(t){var e;return null==(e=(W(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function W(t){return!!z()&&(t instanceof Node||t instanceof C(t).Node)}function B(t){return!!z()&&(t instanceof Element||t instanceof C(t).Element)}function q(t){return!!z()&&(t instanceof HTMLElement||t instanceof C(t).HTMLElement)}function I(t){return!(!z()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof C(t).ShadowRoot)}function N(t){const{overflow:e,overflowX:o,overflowY:n,display:r}=Q(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+o)&&"inline"!==r&&"contents"!==r}function U(t){return/^(table|td|th)$/.test(F(t))}function V(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}const G=/transform|translate|scale|rotate|perspective|filter/,X=/paint|layout|strict|content/,Z=t=>!!t&&"none"!==t;let _;function Y(t){const e=B(t)?Q(t):t;return Z(e.transform)||Z(e.translate)||Z(e.scale)||Z(e.rotate)||Z(e.perspective)||!J()&&(Z(e.backdropFilter)||Z(e.filter))||G.test(e.willChange||"")||X.test(e.contain||"")}function J(){return null==_&&(_="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),_}function K(t){return/^(html|body|#document)$/.test(F(t))}function Q(t){return C(t).getComputedStyle(t)}function tt(t){return B(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function et(t){if("html"===F(t))return t;const e=t.assignedSlot||t.parentNode||I(t)&&t.host||P(t);return I(e)?e.host:e}function ot(t){const e=et(t);return K(e)?t.ownerDocument?t.ownerDocument.body:t.body:q(e)&&N(e)?e:ot(e)}function nt(t,e,o){var n;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=ot(t),s=r===(null==(n=t.ownerDocument)?void 0:n.body),i=C(r);if(s){const t=rt(i);return e.concat(i,i.visualViewport||[],N(r)?r:[],t&&o?nt(t):[])}return e.concat(r,nt(r,[],o))}function rt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function st(t){const e=Q(t);let o=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const r=q(t),s=r?t.offsetWidth:o,i=r?t.offsetHeight:n,a=f(o)!==s||f(n)!==i;return a&&(o=s,n=i),{width:o,height:n,$:a}}function it(t){return B(t)?t:t.contextElement}function at(t){const e=it(t);if(!q(e))return h(1);const o=e.getBoundingClientRect(),{width:n,height:r,$:s}=st(e);let i=(s?f(o.width):o.width)/n,a=(s?f(o.height):o.height)/r;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}const pt=h(0);function ct(t){const e=C(t);return J()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:pt}function lt(t,e,o,n){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),s=it(t);let i=h(1);e&&(n?B(n)&&(i=at(n)):i=at(t));const a=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==C(t))&&e}(s,o,n)?ct(s):h(0);let p=(r.left+a.x)/i.x,c=(r.top+a.y)/i.y,l=r.width/i.x,f=r.height/i.y;if(s){const t=C(s),e=n&&B(n)?C(n):n;let o=t,r=rt(o);for(;r&&n&&e!==o;){const t=at(r),e=r.getBoundingClientRect(),n=Q(r),s=e.left+(r.clientLeft+parseFloat(n.paddingLeft))*t.x,i=e.top+(r.clientTop+parseFloat(n.paddingTop))*t.y;p*=t.x,c*=t.y,l*=t.x,f*=t.y,p+=s,c+=i,o=C(r),r=rt(o)}}return L({width:l,height:f,x:p,y:c})}function ft(t,e){const o=tt(t).scrollLeft;return e?e.left+o:lt(P(t)).left+o}function ut(t,e){const o=t.getBoundingClientRect();return{x:o.left+e.scrollLeft-ft(t,o),y:o.top+e.scrollTop}}function ht(t,e,o){let n;if("viewport"===e)n=function(t,e){const o=C(t),n=P(t),r=o.visualViewport;let s=n.clientWidth,i=n.clientHeight,a=0,p=0;if(r){s=r.width,i=r.height;const t=J();(!t||t&&"fixed"===e)&&(a=r.offsetLeft,p=r.offsetTop)}const c=ft(n);if(c<=0){const t=n.ownerDocument,e=t.body,o=getComputedStyle(e),r="CSS1Compat"===t.compatMode&&parseFloat(o.marginLeft)+parseFloat(o.marginRight)||0,i=Math.abs(n.clientWidth-e.clientWidth-r);i<=25&&(s-=i)}else c<=25&&(s+=c);return{width:s,height:i,x:a,y:p}}(t,o);else if("document"===e)n=function(t){const e=P(t),o=tt(t),n=t.ownerDocument.body,r=l(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=l(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-o.scrollLeft+ft(t);const a=-o.scrollTop;return"rtl"===Q(n).direction&&(i+=l(e.clientWidth,n.clientWidth)-r),{width:r,height:s,x:i,y:a}}(P(t));else if(B(e))n=function(t,e){const o=lt(t,!0,"fixed"===e),n=o.top+t.clientTop,r=o.left+t.clientLeft,s=q(t)?at(t):h(1);return{width:t.clientWidth*s.x,height:t.clientHeight*s.y,x:r*s.x,y:n*s.y}}(e,o);else{const o=ct(t);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return L(n)}function dt(t,e){const o=et(t);return!(o===e||!B(o)||K(o))&&("fixed"===Q(o).position||dt(o,e))}function vt(t,e,o){const n=q(e),r=P(e),s="fixed"===o,i=lt(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const p=h(0);function c(){p.x=ft(r)}if(n||!n&&!s)if(("body"!==F(e)||N(r))&&(a=tt(e)),n){const t=lt(e,!0,s,e);p.x=t.x+e.clientLeft,p.y=t.y+e.clientTop}else r&&c();s&&!n&&r&&c();const l=!r||n||s?h(0):ut(r,a);return{x:i.left+a.scrollLeft-p.x-l.x,y:i.top+a.scrollTop-p.y-l.y,width:i.width,height:i.height}}function mt(t){return"static"===Q(t).position}function gt(t,e){if(!q(t)||"fixed"===Q(t).position)return null;if(e)return e(t);let o=t.offsetParent;return P(t)===o&&(o=o.ownerDocument.body),o}function xt(t,e){const o=C(t);if(V(t))return o;if(!q(t)){let e=et(t);for(;e&&!K(e);){if(B(e)&&!mt(e))return e;e=et(e)}return o}let n=gt(t,e);for(;n&&U(n)&&mt(n);)n=gt(n,e);return n&&K(n)&&mt(n)&&!Y(n)?o:n||function(t){let e=et(t);for(;q(e)&&!K(e);){if(Y(e))return e;if(V(e))return null;e=et(e)}return null}(t)||o}const wt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:o,offsetParent:n,strategy:r}=t;const s="fixed"===r,i=P(n),a=!!e&&V(e.floating);if(n===i||a&&s)return o;let p={scrollLeft:0,scrollTop:0},c=h(1);const l=h(0),f=q(n);if((f||!f&&!s)&&(("body"!==F(n)||N(i))&&(p=tt(n)),f)){const t=lt(n);c=at(n),l.x=t.x+n.clientLeft,l.y=t.y+n.clientTop}const u=!i||f||s?h(0):ut(i,p);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-p.scrollLeft*c.x+l.x+u.x,y:o.y*c.y-p.scrollTop*c.y+l.y+u.y}},getDocumentElement:P,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:n,strategy:r}=t;const s=[..."clippingAncestors"===o?V(e)?[]:function(t,e){const o=e.get(t);if(o)return o;let n=nt(t,[],!1).filter((t=>B(t)&&"body"!==F(t))),r=null;const s="fixed"===Q(t).position;let i=s?et(t):t;for(;B(i)&&!K(i);){const e=Q(i),o=Y(i);o||"fixed"!==e.position||(r=null),(s?!o&&!r:!o&&"static"===e.position&&r&&("absolute"===r.position||"fixed"===r.position)||N(i)&&!o&&dt(t,i))?n=n.filter((t=>t!==i)):r=e,i=et(i)}return e.set(t,n),n}(e,this._c):[].concat(o),n],i=ht(e,s[0],r);let a=i.top,p=i.right,f=i.bottom,u=i.left;for(let t=1;t<s.length;t++){const o=ht(e,s[t],r);a=l(o.top,a),p=c(o.right,p),f=c(o.bottom,f),u=l(o.left,u)}return{width:p-u,height:f-a,x:u,y:a}},getOffsetParent:xt,getElementRects:async function(t){const e=this.getOffsetParent||xt,o=this.getDimensions,n=await o(t.floating);return{reference:vt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:o}=st(t);return{width:e,height:o}},getScale:at,isElement:B,isRTL:function(t){return"rtl"===Q(t).direction}};function bt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const yt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var o,n;const{x:r,y:s,placement:i,middlewareData:a}=e,p=await async function(t,e){const{placement:o,platform:n,elements:r}=t,s=await(null==n.isRTL?void 0:n.isRTL(r.floating)),i=g(o),a=x(o),p="y"===y(o),c=R.has(i)?-1:1,l=s&&p?-1:1,f=m(e,t);let{mainAxis:u,crossAxis:h,alignmentAxis:d}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof d&&(h="end"===a?-1*d:d),p?{x:h*l,y:u*c}:{x:u*c,y:h*l}}(e,t);return i===(null==(o=a.offset)?void 0:o.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:r+p.x,y:s+p.y,data:{...p,placement:i}}}}},St=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var o,n;const{placement:r,middlewareData:s,rects:i,initialPlacement:a,platform:p,elements:c}=e,{mainAxis:l=!0,crossAxis:f=!0,fallbackPlacements:u,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:v=!0,...w}=m(t,e);if(null!=(o=s.arrow)&&o.alignmentOffset)return{};const H=g(r),L=y(a),$=g(a)===a,D=await(null==p.isRTL?void 0:p.isRTL(c.floating)),j=u||($||!v?[O(a)]:function(t){const e=O(t);return[k(t),e,k(e)]}(a)),R="none"!==d;!u&&R&&j.push(...function(t,e,o,n){const r=x(t);let s=function(t,e,o){switch(t){case"top":case"bottom":return o?e?E:T:e?T:E;case"left":case"right":return e?M:A;default:return[]}}(g(t),"start"===o,n);return r&&(s=s.map((t=>t+"-"+r)),e&&(s=s.concat(s.map(k)))),s}(a,v,d,D));const z=[a,...j],F=await p.detectOverflow(e,w),C=[];let P=(null==(n=s.flip)?void 0:n.overflows)||[];if(l&&C.push(F[H]),f){const t=function(t,e,o){void 0===o&&(o=!1);const n=x(t),r=S(t),s=b(r);let i="x"===r?n===(o?"end":"start")?"right":"left":"start"===n?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=O(i)),[i,O(i)]}(r,i,D);C.push(F[t[0]],F[t[1]])}if(P=[...P,{placement:r,overflows:C}],!C.every((t=>t<=0))){var W,B;const t=((null==(W=s.flip)?void 0:W.index)||0)+1,e=z[t];if(e&&("alignment"!==f||L===y(e)||P.every((t=>y(t.placement)!==L||t.overflows[0]>0))))return{data:{index:t,overflows:P},reset:{placement:e}};let o=null==(B=P.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:B.placement;if(!o)switch(h){case"bestFit":{var q;const t=null==(q=P.filter((t=>{if(R){const e=y(t.placement);return e===L||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:q[0];t&&(o=t);break}case"initialPlacement":o=a}if(r!==o)return{reset:{placement:o}}}return{}}}},kt=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var o,n;const{placement:r,rects:s,platform:i,elements:a}=e,{apply:p=()=>{},...f}=m(t,e),u=await i.detectOverflow(e,f),h=g(r),d=x(r),v="y"===y(r),{width:w,height:b}=s.floating;let S,k;"top"===h||"bottom"===h?(S=h,k=d===(await(null==i.isRTL?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(k=h,S="end"===d?"top":"bottom");const T=b-u.top-u.bottom,E=w-u.left-u.right;let M=c(b-u[S],T),A=c(w-u[k],E);if(null!=(o=e.middlewareData.shift)&&o.enabled.x&&(A=E),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(M=T),!e.middlewareData.shift&&!d){const t=l(u.left,0),e=l(u.right,0),o=l(u.top,0),n=l(u.bottom,0);v?A=w-2*(0!==t||0!==e?t+e:l(u.left,u.right)):M=b-2*(0!==o||0!==n?o+n:l(u.top,u.bottom))}await p({...e,availableWidth:A,availableHeight:M});const O=await i.getDimensions(a.floating);return w!==O.width||b!==O.height?{reset:{rects:!0}}:{}}}},Tt=function(t){return void 0===t&&(t={}),{name:"inline",options:t,async fn(e){const{placement:o,elements:n,rects:r,platform:s,strategy:i}=e,{padding:a=2,x:p,y:f}=m(t,e),u=Array.from(await(null==s.getClientRects?void 0:s.getClientRects(n.reference))||[]),h=function(t){const e=t.slice().sort(((t,e)=>t.y-e.y)),o=[];let n=null;for(let t=0;t<e.length;t++){const r=e[t];!n||r.y-n.y>n.height/2?o.push([r]):o[o.length-1].push(r),n=r}return o.map((t=>L(j(t))))}(u),d=L(j(u)),v=H(a),x=await s.getElementRects({reference:{getBoundingClientRect:function(){if(2===h.length&&h[0].left>h[1].right&&null!=p&&null!=f)return h.find((t=>p>t.left-v.left&&p<t.right+v.right&&f>t.top-v.top&&f<t.bottom+v.bottom))||d;if(h.length>=2){if("y"===y(o)){const t=h[0],e=h[h.length-1],n="top"===g(o),r=t.top,s=e.bottom,i=n?t.left:e.left,a=n?t.right:e.right;return{top:r,bottom:s,left:i,right:a,width:a-i,height:s-r,x:i,y:r}}const t="left"===g(o),e=l(...h.map((t=>t.right))),n=c(...h.map((t=>t.left))),r=h.filter((o=>t?o.left===n:o.right===e)),s=r[0].top,i=r[r.length-1].bottom;return{top:s,bottom:i,left:n,right:e,width:e-n,height:i-s,x:n,y:s}}return d}},floating:n.floating,strategy:i});return r.reference.x!==x.reference.x||r.reference.y!==x.reference.y||r.reference.width!==x.reference.width||r.reference.height!==x.reference.height?{reset:{rects:x}}:{}}}};var Et=class extends Event{oldState;newState;constructor(t,{oldState:e="",newState:o="",...n}={}){super(t,n),this.oldState=String(e||""),this.newState=String(o||"")}},Mt=new WeakMap;function At(t,e,o){Mt.set(t,setTimeout((()=>{Mt.has(t)&&t.dispatchEvent(new Et("toggle",{cancelable:!1,oldState:e,newState:o}))}),0))}var Ot=globalThis.ShadowRoot||function(){},Ht=globalThis.HTMLDialogElement||function(){},Lt=new WeakMap,$t=new WeakMap,Dt=new WeakMap,jt=new WeakMap;function Rt(t){return jt.get(t)||"hidden"}var zt=new WeakMap;function Ft(t){return[...t].pop()}function Ct(t,e){return!("auto"!==t.popover&&"manual"!==t.popover&&"hint"!==t.popover||!t.isConnected||e&&"showing"!==Rt(t)||!e&&"hidden"!==Rt(t)||t instanceof Ht&&t.hasAttribute("open")||document.fullscreenElement===t)}function Pt(t){if(!t)return 0;const e=$t.get(document)||new Set,o=Dt.get(document)||new Set;return o.has(t)?[...o].indexOf(t)+e.size+1:e.has(t)?[...e].indexOf(t)+1:0}function Wt(t){let e;const o=Dt.get(t)||new Set,n=$t.get(t)||new Set,r=o.size>0?o:n.size>0?n:null;return r?(e=Ft(r),e.isConnected?e:(r.delete(e),Wt(t))):null}function Bt(t){for(const e of t||[]){if(e.isConnected)return e;t.delete(e)}return null}function qt(t){return"function"==typeof t.getRootNode?t.getRootNode():t.parentNode?qt(t.parentNode):t}function It(t){for(;t;){if(t instanceof HTMLElement&&"auto"===t.popover&&"showing"===jt.get(t))return t;if((t=t instanceof Element&&t.assignedSlot||t.parentElement||qt(t))instanceof Ot&&(t=t.host),t instanceof Document)return}}function Nt(t,e){const o=new Map;let n=0;for(const t of e||[])o.set(t,n),n+=1;o.set(t,n),n+=1;let r=null;return function(e){if(!e)return;let n=!1,s=null,i=null;for(;!n;){if(s=It(e)||null,null===s)return;if(!o.has(s))return;"hint"!==t.popover&&"auto"!==s.popover||(n=!0),n||(e=s.parentElement)}i=o.get(s),(null===r||o.get(r)<i)&&(r=s)}(t.parentElement||qt(t)),r}function Ut(t){return!(t.hidden||t instanceof Ot||(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 Vt=new WeakMap;function Gt(t){if(!Ct(t,!1))return;const e=t.ownerDocument;if(!t.dispatchEvent(new Et("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"})))return;if(!Ct(t,!1))return;let o=!1;const n=t.popover;let r=null;const s=Nt(t,$t.get(e)||new Set),i=Nt(t,Dt.get(e)||new Set);if("auto"===n&&(Zt(Dt.get(e)||new Set,o,!0),Yt(s||e,o,!0),r="auto"),"hint"===n&&(i?(Yt(i,o,!0),r="hint"):(Zt(Dt.get(e)||new Set,o,!0),s?(Yt(s,o,!0),r="auto"):r="hint")),"auto"===n||"hint"===n){if(n!==t.popover||!Ct(t,!1))return;Wt(e)||(o=!0),"auto"===r?($t.has(e)||$t.set(e,new Set),$t.get(e).add(t)):"hint"===r&&(Dt.has(e)||Dt.set(e,new Set),Dt.get(e).add(t))}Vt.delete(t);const a=e.activeElement;var p;t.classList.add(":popover-open"),jt.set(t,"showing"),Lt.has(e)||Lt.set(e,new Set),Lt.get(e).add(t),te(zt.get(t),!0),p=t,function(t){if(t.shadowRoot&&!0!==t.shadowRoot.delegatesFocus)return null;let e=t;e.shadowRoot&&(e=e.shadowRoot);let o=e.querySelector("[autofocus]");if(o)return o;{const t=e.querySelectorAll("slot");for(const e of t){const t=e.assignedElements({flatten:!0});for(const e of t){if(e.hasAttribute("autofocus"))return e;if(o=e.querySelector("[autofocus]"),o)return o}}}const n=t.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){if(Ut(r))return r;r=n.nextNode()}}(p)?.focus(),o&&a&&"auto"===t.popover&&Vt.set(t,a),At(t,"closed","open")}function Xt(t,e=!1,o=!1){if(!Ct(t,!0))return;const n=t.ownerDocument;if(["auto","hint"].includes(t.popover)&&(Yt(t,e,o),!Ct(t,!0)))return;const r=$t.get(n)||new Set,s=r.has(t)&&Ft(r)===t;if(te(zt.get(t),!1),zt.delete(t),o&&(t.dispatchEvent(new Et("beforetoggle",{oldState:"open",newState:"closed"})),s&&Ft(r)!==t&&Yt(t,e,o),!Ct(t,!0)))return;Lt.get(n)?.delete(t),r.delete(t),Dt.get(n)?.delete(t),t.classList.remove(":popover-open"),jt.set(t,"hidden"),o&&At(t,"open","closed");const i=Vt.get(t);i&&(Vt.delete(t),e&&i.focus())}function Zt(t,e=!1,o=!1){let n=Bt(t);for(;n;)Xt(n,e,o),n=Bt(t)}function _t(t,e,o,n){let r=!1,s=!1;for(;r||!s;){s=!0;let i=null,a=!1;for(const o of e)if(o===t)a=!0;else if(a){i=o;break}if(!i)return;for(;"showing"===Rt(i)&&e.size;)Xt(Ft(e),o,n);e.has(t)&&Ft(e)!==t&&(r=!0),r&&(n=!1)}}function Yt(t,e,o){const n=t.ownerDocument||t;if(t instanceof Document)return function(t,e=!1,o=!1){let n=Wt(t);for(;n;)Xt(n,e,o),n=Wt(t)}(n,e,o);Dt.get(n)?.has(t)?_t(t,Dt.get(n),e,o):(Zt(Dt.get(n)||new Set,e,o),$t.get(n)?.has(t)&&_t(t,$t.get(n),e,o))}var Jt=new WeakMap;function Kt(t){if(!t.isTrusted)return;const e=t.composedPath()[0];if(!e)return;const o=e.ownerDocument;if(!Wt(o))return;const n=function(t){const e=It(t),o=function(t){for(;t;){const e=t.popoverTargetElement;if(e instanceof HTMLElement)return e;if((t=t.parentElement||qt(t))instanceof Ot&&(t=t.host),t instanceof Document)return}}(t);return Pt(e)>Pt(o)?e:o}(e);if(n&&"pointerdown"===t.type)Jt.set(o,n);else if("pointerup"===t.type){const t=Jt.get(o)===n;Jt.delete(o),t&&Yt(n||o,!1,!0)}}var Qt=new WeakMap;function te(t,e=!1){if(!t)return;Qt.has(t)||Qt.set(t,t.getAttribute("aria-expanded"));const o=t.popoverTargetElement;if(o instanceof HTMLElement&&"auto"===o.popover)t.setAttribute("aria-expanded",String(e));else{const e=Qt.get(t);e?t.setAttribute("aria-expanded",e):t.removeAttribute("aria-expanded")}}var ee=globalThis.ShadowRoot||function(){};function oe(t,e,o){const n=t[e];Object.defineProperty(t,e,{value(t){return n.call(this,o(t))}})}var ne=/(^|[^\\]):popover-open\b/g;var re=null;function se(t){const e=function(){const t="function"==typeof globalThis.CSSLayerBlockRule;return`\n${t?"@layer popover-polyfill {":""}\n :where([popover]) {\n position: fixed;\n z-index: 2147483647;\n inset: 0;\n padding: 0.25em;\n width: fit-content;\n height: fit-content;\n border-width: initial;\n border-color: initial;\n border-image: initial;\n border-style: solid;\n background-color: canvas;\n color: canvastext;\n overflow: auto;\n margin: auto;\n }\n\n :where([popover]:not(.\\:popover-open)) {\n display: none;\n }\n\n :where(dialog[popover].\\:popover-open) {\n display: block;\n }\n\n :where(dialog[popover][open]) {\n display: revert;\n }\n\n :where([anchor].\\:popover-open) {\n inset: auto;\n }\n\n :where([anchor]:popover-open) {\n inset: auto;\n }\n\n @supports not (background-color: canvas) {\n :where([popover]) {\n background-color: white;\n color: black;\n }\n }\n\n @supports (width: -moz-fit-content) {\n :where([popover]) {\n width: -moz-fit-content;\n height: -moz-fit-content;\n }\n }\n\n @supports not (inset: 0) {\n :where([popover]) {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n }\n${t?"}":""}\n`}();if(null===re)try{(re=new CSSStyleSheet).replaceSync(e)}catch{re=!1}if(!1===re){const o=document.createElement("style");o.textContent=e,t instanceof Document?t.head.prepend(o):t.prepend(o)}else t.adoptedStyleSheets=[re,...t.adoptedStyleSheets]}var ie=function(t,e,o,n){var r,s=arguments.length,i=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(i=(s<3?r(i):s>3?r(e,o,i):r(e,o))||i);return s>3&&i&&Object.defineProperty(e,o,i),i};const ae={"pop-in":function(t){if(t)return t.animate([{transform:"scale(0.9)",opacity:0},{transform:"scale(1)",opacity:1}],{duration:250,easing:"ease-out",fill:"forwards"})}},pe=class{constructor(o){t(this,o),this.postBeforeShow=e(this,"postBeforeShow"),this.postShow=e(this,"postShow"),this.postHide=e(this,"postHide"),this.postBeforeToggle=e(this,"postBeforeToggle"),this.postToggle=e(this,"postToggle"),this.toggleTimeoutId=null,this.hasOpenedOnce=!0,this.placement="top",this.edgeGap=8,this.arrow=!1,this.animation="pop-in",this.currentAnimation=null,this.boundMouseTrackingHandler=this.mouseTrackingHandler.bind(this)}mouseTrackingHandler(t){this.host.style.setProperty("--post-safe-space-cursor-x",`${t.clientX}px`),this.host.style.setProperty("--post-safe-space-cursor-y",`${t.clientY}px`)}connectedCallback(){"undefined"!=typeof HTMLElement&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||function(){if("undefined"==typeof window)return;function t(t){return t?.includes(":popover-open")&&(t=t.replace(ne,"$1.\\:popover-open")),t}window.ToggleEvent=window.ToggleEvent||Et,oe(Document.prototype,"querySelector",t),oe(Document.prototype,"querySelectorAll",t),oe(Element.prototype,"querySelector",t),oe(Element.prototype,"querySelectorAll",t),oe(Element.prototype,"matches",t),oe(Element.prototype,"closest",t),oe(DocumentFragment.prototype,"querySelectorAll",t),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;const t=(this.getAttribute("popover")||"").toLowerCase();return""===t||"auto"==t?"auto":"hint"==t?"hint":"manual"},set(t){null===t?this.removeAttribute("popover"):this.setAttribute("popover",t)}},showPopover:{enumerable:!0,configurable:!0,value(t={}){Gt(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){Xt(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t={}){return"boolean"==typeof t&&(t={force:t}),"showing"===jt.get(this)&&void 0===t.force||!1===t.force?Xt(this,!0,!0):void 0!==t.force&&!0!==t.force||Gt(this),"showing"===jt.get(this)}}});const e=Element.prototype.attachShadow;e&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(t){const o=e.call(this,t);return se(o),o}}});const o=HTMLElement.prototype.attachInternals;o&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){const t=o.call(this);return t.shadowRoot&&se(t.shadowRoot),t}}});const n=new WeakMap;function r(t){Object.defineProperties(t.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(t){if(null===t)this.removeAttribute("popovertarget"),n.delete(this);else{if(!(t instanceof Element))throw new TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),n.set(this,t)}},get(){if("button"!==this.localName&&"input"!==this.localName)return null;if("input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type)return null;if(this.disabled)return null;if(this.form&&"submit"===this.type)return null;const t=n.get(this);if(t&&t.isConnected)return t;if(t&&!t.isConnected)return n.delete(this),null;const e=qt(this),o=this.getAttribute("popovertarget");return(e instanceof Document||e instanceof ee)&&o&&e.getElementById(o)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){const t=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===t||"hide"===t?t:"toggle"},set(t){this.setAttribute("popovertargetaction",t)}}})}var s;r(HTMLButtonElement),r(HTMLInputElement),(s=document).addEventListener("click",(t=>{const e=t.composedPath(),o=e[0];if(!(o instanceof Element)||o?.shadowRoot)return;const n=qt(o);if(!(n instanceof ee||n instanceof Document))return;const r=e.find((t=>t.matches?.("[popovertargetaction],[popovertarget]")));return r?(function(t){const e=t.popoverTargetElement;if(!(e instanceof HTMLElement))return;const o=Rt(e);"show"===t.popoverTargetAction&&"showing"===o||"hide"===t.popoverTargetAction&&"hidden"===o||("showing"===o?Xt(e,!0,!0):Ct(e,!1)&&(zt.set(e,t),Gt(e)))}(r),void t.preventDefault()):void 0})),s.addEventListener("keydown",(t=>{const e=t.key,o=t.target;t.defaultPrevented||!o||"Escape"!==e&&"Esc"!==e||Yt(o.ownerDocument,!0,!0)})),s.addEventListener("pointerdown",Kt),s.addEventListener("pointerup",Kt),se(document)}()}componentDidLoad(){this.host.addEventListener("beforetoggle",this.handleToggle.bind(this))}disconnectedCallback(){"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate(),this.host.removeEventListener("beforetoggle",this.handleToggle.bind(this))}async show(t){!this.toggleTimeoutId&&t&&(this.eventTarget=t,this.calculatePosition(),this.host.showPopover())}async hide(){this.toggleTimeoutId||(this.eventTarget=null,this.host.hidePopover(),this.postHide.emit())}async toggle(t,e){const o=this.host.matches(":where(:popover-open, .popover-open)");return!0!==e&&(void 0!==e||o)||t?(this.eventTarget=t,this.toggleTimeoutId||(this.calculatePosition(),this.host.togglePopover(e),this.toggleTimeoutId=null),this.host.matches(":where(:popover-open, .popover-open)")):o}open(){const t=this.host.shadowRoot?.querySelector(".popover-content");if(this.startAutoupdates(),t){const e=ae[this.animation];"function"==typeof e?this.runOpenAnimation(e,t):(this.postBeforeToggle.emit({willOpen:!0}),this.postBeforeShow.emit({first:this.hasOpenedOnce}),this.postToggle.emit({isOpen:!0}),this.postShow.emit({first:this.hasOpenedOnce}),this.hasOpenedOnce&&(this.hasOpenedOnce=!1))}this.safeSpace&&globalThis.addEventListener("mousemove",this.boundMouseTrackingHandler)}close(){"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate(),this.safeSpace&&globalThis.removeEventListener("mousemove",this.boundMouseTrackingHandler),this.currentAnimation&&(this.currentAnimation.cancel(),this.currentAnimation=null),this.postBeforeToggle.emit({willOpen:!1}),this.postToggle.emit({isOpen:!1}),this.postHide.emit()}async runOpenAnimation(t,e){let o;try{if(o=t(e),!o)return this.postBeforeToggle.emit({willOpen:!0}),this.postBeforeShow.emit({first:this.hasOpenedOnce}),this.postToggle.emit({isOpen:!0}),void this.postShow.emit({first:this.hasOpenedOnce});this.currentAnimation=o,"running"===o.playState&&(this.postBeforeToggle.emit({willOpen:!0}),this.postBeforeShow.emit({first:this.hasOpenedOnce})),await o.finished,this.postToggle.emit({isOpen:!0}),this.postShow.emit({first:this.hasOpenedOnce}),this.hasOpenedOnce=!0}catch(t){console.warn("Animation failed or was interrupted:",t),this.postBeforeToggle.emit({willOpen:!1}),this.postBeforeShow.emit({first:this.hasOpenedOnce}),this.postToggle.emit({isOpen:!1})}finally{this.currentAnimation===o&&(this.currentAnimation=null)}}handleToggle(t){this.toggleTimeoutId=globalThis.setTimeout((()=>this.toggleTimeoutId=null),10),"open"===t.newState?this.open():this.close()}startAutoupdates(){this.eventTarget&&this.host&&(this.clearAutoUpdate=function(t,e,o,n){void 0===n&&(n={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:p=!1}=n,f=it(t),h=r||s?[...f?nt(f):[],...e?nt(e):[]]:[];h.forEach((t=>{r&&t.addEventListener("scroll",o,{passive:!0}),s&&t.addEventListener("resize",o)}));const d=f&&a?function(t,e){let o,n=null;const r=P(t);function s(){var t;clearTimeout(o),null==(t=n)||t.disconnect(),n=null}return function i(a,p){void 0===a&&(a=!1),void 0===p&&(p=1),s();const f=t.getBoundingClientRect(),{left:h,top:d,width:v,height:m}=f;if(a||e(),!v||!m)return;const g={rootMargin:-u(d)+"px "+-u(r.clientWidth-(h+v))+"px "+-u(r.clientHeight-(d+m))+"px "+-u(h)+"px",threshold:l(0,c(1,p))||1};let x=!0;function w(e){const n=e[0].intersectionRatio;if(n!==p){if(!x)return i();n?i(!1,n):o=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==n||bt(f,t.getBoundingClientRect())||i(),x=!1}try{n=new IntersectionObserver(w,{...g,root:r.ownerDocument})}catch(t){n=new IntersectionObserver(w,g)}n.observe(t)}(!0),s}(f,o):null;let v,m=-1,g=null;i&&(g=new ResizeObserver((t=>{let[n]=t;n&&n.target===f&&g&&e&&(g.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var t;null==(t=g)||t.observe(e)}))),o()})),f&&!p&&g.observe(f),e&&g.observe(e));let x=p?lt(t):null;return p&&function e(){const n=lt(t);x&&!bt(x,n)&&o(),x=n,v=requestAnimationFrame(e)}(),o(),()=>{var t;h.forEach((t=>{r&&t.removeEventListener("scroll",o),s&&t.removeEventListener("resize",o)})),null==d||d(),null==(t=g)||t.disconnect(),g=null,p&&cancelAnimationFrame(v)}}(this.eventTarget,this.host,this.calculatePosition.bind(this)))}getHeaderHeight(){const t=document.querySelector("post-header");return t?Number.parseFloat(getComputedStyle(t).height):0}async calculatePosition(){const{x:t,y:e,middlewareData:o,placement:n}=await this.computeMainPosition(),r=n.split("-")[0];if(this.dynamicPlacement=r,this.host.style.left=`${t}px`,this.host.style.top=`${e}px`,this.arrow&&o.arrow){const{x:t,y:e}=o.arrow,n=pe.STATIC_SIDES[r],s=-.5*this.arrowRef.offsetWidth;n&&Object.assign(this.arrowRef.style,{left:t?`${t}px`:"",top:e?`${e}px`:"",[n]:`${s}px`})}this.safeSpace&&this.eventTarget&&await this.updateSafeSpaceBoundaries(r)}async computeMainPosition(){const t=this.edgeGap,e=(this.placement||"top").includes("-"),o=St({padding:this.getHeaderHeight(),crossAxis:!1}),n=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:n,placement:r,platform:s}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:p={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...c}=m(t,e),l={x:o,y:n},f=await s.detectOverflow(e,c),u=y(g(r)),h=w(u);let d=l[h],x=l[u];i&&(d=v(d+f["y"===h?"top":"left"],d,d-f["y"===h?"bottom":"right"])),a&&(x=v(x+f["y"===u?"top":"left"],x,x-f["y"===u?"bottom":"right"]));const b=p.fn({...e,[h]:d,[u]:x});return{...b,data:{x:b.x-o,y:b.y-n,enabled:{[h]:i,[u]:a}}}}}}({padding:t,limiter:(s={offset:32},void 0===s&&(s={}),{options:s,fn(t){const{x:e,y:o,placement:n,rects:r,middlewareData:i}=t,{offset:a=0,mainAxis:p=!0,crossAxis:c=!0}=m(s,t),l={x:e,y:o},f=y(n),u=w(f);let h=l[u],d=l[f];const v=m(a,t),x="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(p){const t="y"===u?"height":"width",e=r.reference[u]-r.floating[t]+x.mainAxis,o=r.reference[u]+r.reference[t]-x.mainAxis;h<e?h=e:h>o&&(h=o)}if(c){var b,S;const t="y"===u?"width":"height",e=R.has(g(n)),o=r.reference[f]-r.floating[t]+(e&&(null==(b=i.offset)?void 0:b[f])||0)+(e?0:x.crossAxis),s=r.reference[f]+r.reference[t]+(e?0:(null==(S=i.offset)?void 0:S[f])||0)-(e?x.crossAxis:0);d<o?d=o:d>s&&(d=s)}return{[u]:h,[f]:d}}})}),r=[yt(this.offset??(this.arrow?t+4:t)),Tt(),...e?[o,n]:[n,o],kt({apply({availableWidth:e,elements:o}){Object.assign(o.floating.style,{maxWidth:e-2*t+"px"})}})];var s;return this.arrow&&r.push((t=>({name:"arrow",options:t,async fn(e){const{x:o,y:n,placement:r,rects:s,platform:i,elements:a,middlewareData:p}=e,{element:l,padding:f=0}=m(t,e)||{};if(null==l)return{};const u=H(f),h={x:o,y:n},d=S(r),g=b(d),w=await i.getDimensions(l),y="y"===d,k=y?"top":"left",T=y?"bottom":"right",E=y?"clientHeight":"clientWidth",M=s.reference[g]+s.reference[d]-h[d]-s.floating[g],A=h[d]-s.reference[d],O=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l));let L=O?O[E]:0;L&&await(null==i.isElement?void 0:i.isElement(O))||(L=a.floating[E]||s.floating[g]);const $=M/2-A/2,D=L/2-w[g]/2-1,j=c(u[k],D),R=c(u[T],D),z=j,F=L-w[g]-R,C=L/2-w[g]/2+$,P=v(z,C,F),W=!p.arrow&&null!=x(r)&&C!==P&&s.reference[g]/2-(C<z?j:R)-w[g]/2<0,B=W?C<z?C-z:C-F:0;return{[d]:h[d]+B,data:{[d]:P,centerOffset:C-P-B,...W&&{alignmentOffset:B}},reset:W}}}))({element:this.arrowRef,padding:t})),((t,e,o)=>{const n=new Map,r={platform:wt,...o},s={...r.platform,_c:n};return(async(t,e,o)=>{const{placement:n="bottom",strategy:r="absolute",middleware:s=[],platform:i}=o,a=i.detectOverflow?i:{...i,detectOverflow:D},p=await(null==i.isRTL?void 0:i.isRTL(e));let c=await i.getElementRects({reference:t,floating:e,strategy:r}),{x:l,y:f}=$(c,n,p),u=n,h=0;const d={};for(let o=0;o<s.length;o++){const v=s[o];if(!v)continue;const{name:m,fn:g}=v,{x,y:w,data:b,reset:y}=await g({x:l,y:f,initialPlacement:n,placement:u,strategy:r,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:e}});l=null!=x?x:l,f=null!=w?w:f,d[m]={...d[m],...b},y&&h<50&&(h++,"object"==typeof y&&(y.placement&&(u=y.placement),y.rects&&(c=!0===y.rects?await i.getElementRects({reference:t,floating:e,strategy:r}):y.rects),({x:l,y:f}=$(c,u,p))),o=-1)}return{x:l,y:f,placement:u,strategy:r,middlewareData:d}})(t,e,{...r,platform:s})})(this.eventTarget,this.host,{placement:this.placement||"top",strategy:"fixed",middleware:r})}async updateSafeSpaceBoundaries(t){const e=this.eventTarget.getBoundingClientRect(),o="top"===t||"bottom"===t,n=((t,e,o)=>"top"===t||"bottom"===t?{popover:{y:"top"===t?e.bottom:e.top,xStart:e.left,xEnd:e.right},trigger:{y:"top"===t?o.top:o.bottom,xStart:o.left,xEnd:o.right}}:{popover:{x:"left"===t?e.right:e.left,yStart:e.top,yEnd:e.bottom},trigger:{x:"left"===t?o.left:o.right,yStart:o.top,yEnd:o.bottom}})(t,this.host.getBoundingClientRect(),e);pe.PROPERTIES_TO_CLEAR.forEach((t=>{this.host.style.removeProperty(t)})),o?(this.host.style.setProperty("--post-safe-space-popover-y",`${n.popover.y}px`),this.host.style.setProperty("--post-safe-space-popover-x-start",`${n.popover.xStart}px`),this.host.style.setProperty("--post-safe-space-popover-x-end",`${n.popover.xEnd}px`),this.host.style.setProperty("--post-safe-space-trigger-y",`${n.trigger.y}px`),this.host.style.setProperty("--post-safe-space-trigger-x-start",`${n.trigger.xStart}px`),this.host.style.setProperty("--post-safe-space-trigger-x-end",`${n.trigger.xEnd}px`)):(this.host.style.setProperty("--post-safe-space-popover-x",`${n.popover.x}px`),this.host.style.setProperty("--post-safe-space-popover-y-start",`${n.popover.yStart}px`),this.host.style.setProperty("--post-safe-space-popover-y-end",`${n.popover.yEnd}px`),this.host.style.setProperty("--post-safe-space-trigger-x",`${n.trigger.x}px`),this.host.style.setProperty("--post-safe-space-trigger-y-start",`${n.trigger.yStart}px`),this.host.style.setProperty("--post-safe-space-trigger-y-end",`${n.trigger.yEnd}px`))}render(){return o(n,{key:"be9f32a35f247f5b2cb54599b96e715ce1a5a1f1","data-version":s,popover:"auto"},o("div",{key:"ad2616c15dfec83e1e53ad14cb145aee2d625c9a",part:"post-popovercontainer-content",class:"popover-content"},this.arrow&&o("span",{key:"293ba9d1ba2a7b57297cd4aa716ba1369b2f8988","dynamic-placement":this.dynamicPlacement,class:"arrow",ref:t=>{this.arrowRef=t}}),o("span",{key:"7b9d47b53a4d4a672490eccdc88a7eb0552b5574",part:"post-popovercontainer-border-mask"}),o("slot",{key:"4b4249d6ebe1c247634bbb76b08ec01e73dc7d4b"})))}get host(){return r(this)}};pe.STATIC_SIDES={top:"bottom",right:"left",bottom:"top",left:"right"},pe.PROPERTIES_TO_CLEAR=["--post-safe-space-popover-x","--post-safe-space-popover-y","--post-safe-space-popover-x-start","--post-safe-space-popover-x-end","--post-safe-space-popover-y-start","--post-safe-space-popover-y-end","--post-safe-space-trigger-x","--post-safe-space-trigger-y","--post-safe-space-trigger-x-start","--post-safe-space-trigger-x-end","--post-safe-space-trigger-y-start","--post-safe-space-trigger-y-end"],ie([i(a)],pe.prototype,"placement",void 0),ie([p("number")],pe.prototype,"edgeGap",void 0),ie([i(["triangle","trapezoid"])],pe.prototype,"safeSpace",void 0),pe.style='@layer polyfill{@supports not selector(:popover-open){:host([popover]:not(.\\:popover-open)){display:none}}}:host{background-color:rgba(0,0,0,0);border:rgba(0,0,0,0);position:fixed;margin:0;padding:0;overflow:visible}:host>div{-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300);width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:100%;color:var(--post-current-fg);background-color:var(--post-current-bg);border-radius:4px;position:relative}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host>div{border:2px solid rgba(0,0,0,0)}}:host [part=post-popovercontainer-border-mask]{display:none;position:absolute;inset:0;border-radius:4px;pointer-events:none}:host .arrow{--post-popovercontainer-arrow-border: var(--post-popovercontainer-arrow-border-width, 0px) solid var(--post-popovercontainer-arrow-border-color, transparent);position:absolute;width:.5825rem;height:.5825rem;background-color:inherit;rotate:45deg;pointer-events:none;z-index:-1}:host .arrow[dynamic-placement=top]{border-bottom-right-radius:2px;border-bottom:var(--post-popovercontainer-arrow-border);border-right:var(--post-popovercontainer-arrow-border)}:host .arrow[dynamic-placement=right]{border-bottom-left-radius:2px;border-bottom:var(--post-popovercontainer-arrow-border);border-left:var(--post-popovercontainer-arrow-border)}:host .arrow[dynamic-placement=bottom]{border-top-left-radius:2px;border-top:var(--post-popovercontainer-arrow-border);border-left:var(--post-popovercontainer-arrow-border)}:host .arrow[dynamic-placement=left]{border-top-right-radius:2px;border-top:var(--post-popovercontainer-arrow-border);border-right:var(--post-popovercontainer-arrow-border)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .arrow[dynamic-placement=top]{-webkit-border-after:2px solid rgba(0,0,0,0);border-block-end:2px solid rgba(0,0,0,0);-webkit-border-end:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0);bottom:-0.3796735336rem !important}:host .arrow[dynamic-placement=left]{-webkit-border-before:2px solid rgba(0,0,0,0);border-block-start:2px solid rgba(0,0,0,0);-webkit-border-end:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0);right:-0.3796735336rem !important}:host .arrow[dynamic-placement=right]{-webkit-border-after:2px solid rgba(0,0,0,0);border-block-end:2px solid rgba(0,0,0,0);-webkit-border-start:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0);left:-0.3796735336rem !important}:host .arrow[dynamic-placement=bottom]{-webkit-border-before:2px solid rgba(0,0,0,0);border-block-start:2px solid rgba(0,0,0,0);-webkit-border-start:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0);top:-0.3796735336rem !important}}:host([tooltip]){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}:host([safe-space])::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:auto}:host([safe-space=triangle])::after{-webkit-clip-path:polygon(var(--post-safe-space-cursor-x, 0) var(--post-safe-space-cursor-y, 0), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)));clip-path:polygon(var(--post-safe-space-cursor-x, 0) var(--post-safe-space-cursor-y, 0), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)))}:host([safe-space=trapezoid])::after{-webkit-clip-path:polygon(var(--post-safe-space-trigger-x-start, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-start, 0)), var(--post-safe-space-trigger-x-end, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-end, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)));clip-path:polygon(var(--post-safe-space-trigger-x-start, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-start, 0)), var(--post-safe-space-trigger-x-end, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-end, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)))}:host(:not(:has(.arrow)))>div{-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300)}:host(:has(.arrow))>div{-webkit-filter:drop-shadow(1px 2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(2px 4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(4px 8px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(1px 2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(2px 4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(4px 8px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[dynamic-placement=top]))>div{-webkit-filter:drop-shadow(0px -2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(0px -4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(0px -8px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(0px -2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(0px -4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(0px -8px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[dynamic-placement=left]))>div{-webkit-filter:drop-shadow(-2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(-4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(-8px 0px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(-2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(-4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(-8px 0px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[dynamic-placement=right]))>div{-webkit-filter:drop-shadow(2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(8px 0px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(8px 0px 12px hsla(225, 7%, 11%, 0.15))}';export{pe as post_popovercontainer}
1
+ import{r as t,c as e,h as o,H as n,g as r}from"./p-h3opCZqH.js";import{v as s}from"./p-tTf1w3A9.js";import{O as i}from"./p-Drxf8XVU.js";import{P as a}from"./p-DRiVosES.js";import{T as p}from"./p-DZMUeI8H.js";import"./p-vAzHgwTd.js";const c=Math.min,l=Math.max,f=Math.round,u=Math.floor,h=t=>({x:t,y:t}),d={left:"right",right:"left",bottom:"top",top:"bottom"};function v(t,e,o){return l(t,c(e,o))}function m(t,e){return"function"==typeof t?t(e):t}function g(t){return t.split("-")[0]}function x(t){return t.split("-")[1]}function w(t){return"x"===t?"y":"x"}function b(t){return"y"===t?"height":"width"}function y(t){const e=t[0];return"t"===e||"b"===e?"y":"x"}function S(t){return w(y(t))}function k(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const T=["left","right"],E=["right","left"],M=["top","bottom"],A=["bottom","top"];function O(t){const e=g(t);return d[e]+t.slice(e.length)}function H(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 L(t){const{x:e,y:o,width:n,height:r}=t;return{width:n,height:r,top:o,left:e,right:e+n,bottom:o+r,x:e,y:o}}function $(t,e,o){let{reference:n,floating:r}=t;const s=y(e),i=S(e),a=b(i),p=g(e),c="y"===s,l=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2,u=n[a]/2-r[a]/2;let h;switch(p){case"top":h={x:l,y:n.y-r.height};break;case"bottom":h={x:l,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-r.width,y:f};break;default:h={x:n.x,y:n.y}}switch(x(e)){case"start":h[i]-=u*(o&&c?-1:1);break;case"end":h[i]+=u*(o&&c?-1:1)}return h}async function D(t,e){var o;void 0===e&&(e={});const{x:n,y:r,platform:s,rects:i,elements:a,strategy:p}=t,{boundary:c="clippingAncestors",rootBoundary:l="viewport",elementContext:f="floating",altBoundary:u=!1,padding:h=0}=m(e,t),d=H(h),v=a[u?"floating"===f?"reference":"floating":f],g=L(await s.getClippingRect({element:null==(o=await(null==s.isElement?void 0:s.isElement(v)))||o?v:v.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:l,strategy:p})),x="floating"===f?{x:n,y:r,width:i.floating.width,height:i.floating.height}:i.reference,w=await(null==s.getOffsetParent?void 0:s.getOffsetParent(a.floating)),b=await(null==s.isElement?void 0:s.isElement(w))&&await(null==s.getScale?void 0:s.getScale(w))||{x:1,y:1},y=L(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:w,strategy:p}):x);return{top:(g.top-y.top+d.top)/b.y,bottom:(y.bottom-g.bottom+d.bottom)/b.y,left:(g.left-y.left+d.left)/b.x,right:(y.right-g.right+d.right)/b.x}}function j(t){const e=c(...t.map((t=>t.left))),o=c(...t.map((t=>t.top)));return{x:e,y:o,width:l(...t.map((t=>t.right)))-e,height:l(...t.map((t=>t.bottom)))-o}}const R=new Set(["left","top"]);function z(){return"undefined"!=typeof window}function F(t){return W(t)?(t.nodeName||"").toLowerCase():"#document"}function C(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function P(t){var e;return null==(e=(W(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function W(t){return!!z()&&(t instanceof Node||t instanceof C(t).Node)}function B(t){return!!z()&&(t instanceof Element||t instanceof C(t).Element)}function q(t){return!!z()&&(t instanceof HTMLElement||t instanceof C(t).HTMLElement)}function I(t){return!(!z()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof C(t).ShadowRoot)}function N(t){const{overflow:e,overflowX:o,overflowY:n,display:r}=Q(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+o)&&"inline"!==r&&"contents"!==r}function V(t){return/^(table|td|th)$/.test(F(t))}function G(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}const U=/transform|translate|scale|rotate|perspective|filter/,X=/paint|layout|strict|content/,Z=t=>!!t&&"none"!==t;let _;function Y(t){const e=B(t)?Q(t):t;return Z(e.transform)||Z(e.translate)||Z(e.scale)||Z(e.rotate)||Z(e.perspective)||!J()&&(Z(e.backdropFilter)||Z(e.filter))||U.test(e.willChange||"")||X.test(e.contain||"")}function J(){return null==_&&(_="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),_}function K(t){return/^(html|body|#document)$/.test(F(t))}function Q(t){return C(t).getComputedStyle(t)}function tt(t){return B(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function et(t){if("html"===F(t))return t;const e=t.assignedSlot||t.parentNode||I(t)&&t.host||P(t);return I(e)?e.host:e}function ot(t){const e=et(t);return K(e)?t.ownerDocument?t.ownerDocument.body:t.body:q(e)&&N(e)?e:ot(e)}function nt(t,e,o){var n;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=ot(t),s=r===(null==(n=t.ownerDocument)?void 0:n.body),i=C(r);if(s){const t=rt(i);return e.concat(i,i.visualViewport||[],N(r)?r:[],t&&o?nt(t):[])}return e.concat(r,nt(r,[],o))}function rt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function st(t){const e=Q(t);let o=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const r=q(t),s=r?t.offsetWidth:o,i=r?t.offsetHeight:n,a=f(o)!==s||f(n)!==i;return a&&(o=s,n=i),{width:o,height:n,$:a}}function it(t){return B(t)?t:t.contextElement}function at(t){const e=it(t);if(!q(e))return h(1);const o=e.getBoundingClientRect(),{width:n,height:r,$:s}=st(e);let i=(s?f(o.width):o.width)/n,a=(s?f(o.height):o.height)/r;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}const pt=h(0);function ct(t){const e=C(t);return J()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:pt}function lt(t,e,o,n){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),s=it(t);let i=h(1);e&&(n?B(n)&&(i=at(n)):i=at(t));const a=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==C(t))&&e}(s,o,n)?ct(s):h(0);let p=(r.left+a.x)/i.x,c=(r.top+a.y)/i.y,l=r.width/i.x,f=r.height/i.y;if(s){const t=C(s),e=n&&B(n)?C(n):n;let o=t,r=rt(o);for(;r&&n&&e!==o;){const t=at(r),e=r.getBoundingClientRect(),n=Q(r),s=e.left+(r.clientLeft+parseFloat(n.paddingLeft))*t.x,i=e.top+(r.clientTop+parseFloat(n.paddingTop))*t.y;p*=t.x,c*=t.y,l*=t.x,f*=t.y,p+=s,c+=i,o=C(r),r=rt(o)}}return L({width:l,height:f,x:p,y:c})}function ft(t,e){const o=tt(t).scrollLeft;return e?e.left+o:lt(P(t)).left+o}function ut(t,e){const o=t.getBoundingClientRect();return{x:o.left+e.scrollLeft-ft(t,o),y:o.top+e.scrollTop}}function ht(t,e,o){let n;if("viewport"===e)n=function(t,e){const o=C(t),n=P(t),r=o.visualViewport;let s=n.clientWidth,i=n.clientHeight,a=0,p=0;if(r){s=r.width,i=r.height;const t=J();(!t||t&&"fixed"===e)&&(a=r.offsetLeft,p=r.offsetTop)}const c=ft(n);if(c<=0){const t=n.ownerDocument,e=t.body,o=getComputedStyle(e),r="CSS1Compat"===t.compatMode&&parseFloat(o.marginLeft)+parseFloat(o.marginRight)||0,i=Math.abs(n.clientWidth-e.clientWidth-r);i<=25&&(s-=i)}else c<=25&&(s+=c);return{width:s,height:i,x:a,y:p}}(t,o);else if("document"===e)n=function(t){const e=P(t),o=tt(t),n=t.ownerDocument.body,r=l(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=l(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-o.scrollLeft+ft(t);const a=-o.scrollTop;return"rtl"===Q(n).direction&&(i+=l(e.clientWidth,n.clientWidth)-r),{width:r,height:s,x:i,y:a}}(P(t));else if(B(e))n=function(t,e){const o=lt(t,!0,"fixed"===e),n=o.top+t.clientTop,r=o.left+t.clientLeft,s=q(t)?at(t):h(1);return{width:t.clientWidth*s.x,height:t.clientHeight*s.y,x:r*s.x,y:n*s.y}}(e,o);else{const o=ct(t);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return L(n)}function dt(t,e){const o=et(t);return!(o===e||!B(o)||K(o))&&("fixed"===Q(o).position||dt(o,e))}function vt(t,e,o){const n=q(e),r=P(e),s="fixed"===o,i=lt(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const p=h(0);function c(){p.x=ft(r)}if(n||!n&&!s)if(("body"!==F(e)||N(r))&&(a=tt(e)),n){const t=lt(e,!0,s,e);p.x=t.x+e.clientLeft,p.y=t.y+e.clientTop}else r&&c();s&&!n&&r&&c();const l=!r||n||s?h(0):ut(r,a);return{x:i.left+a.scrollLeft-p.x-l.x,y:i.top+a.scrollTop-p.y-l.y,width:i.width,height:i.height}}function mt(t){return"static"===Q(t).position}function gt(t,e){if(!q(t)||"fixed"===Q(t).position)return null;if(e)return e(t);let o=t.offsetParent;return P(t)===o&&(o=o.ownerDocument.body),o}function xt(t,e){const o=C(t);if(G(t))return o;if(!q(t)){let e=et(t);for(;e&&!K(e);){if(B(e)&&!mt(e))return e;e=et(e)}return o}let n=gt(t,e);for(;n&&V(n)&&mt(n);)n=gt(n,e);return n&&K(n)&&mt(n)&&!Y(n)?o:n||function(t){let e=et(t);for(;q(e)&&!K(e);){if(Y(e))return e;if(G(e))return null;e=et(e)}return null}(t)||o}const wt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:o,offsetParent:n,strategy:r}=t;const s="fixed"===r,i=P(n),a=!!e&&G(e.floating);if(n===i||a&&s)return o;let p={scrollLeft:0,scrollTop:0},c=h(1);const l=h(0),f=q(n);if((f||!f&&!s)&&(("body"!==F(n)||N(i))&&(p=tt(n)),f)){const t=lt(n);c=at(n),l.x=t.x+n.clientLeft,l.y=t.y+n.clientTop}const u=!i||f||s?h(0):ut(i,p);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-p.scrollLeft*c.x+l.x+u.x,y:o.y*c.y-p.scrollTop*c.y+l.y+u.y}},getDocumentElement:P,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:n,strategy:r}=t;const s=[..."clippingAncestors"===o?G(e)?[]:function(t,e){const o=e.get(t);if(o)return o;let n=nt(t,[],!1).filter((t=>B(t)&&"body"!==F(t))),r=null;const s="fixed"===Q(t).position;let i=s?et(t):t;for(;B(i)&&!K(i);){const e=Q(i),o=Y(i);o||"fixed"!==e.position||(r=null),(s?!o&&!r:!o&&"static"===e.position&&r&&("absolute"===r.position||"fixed"===r.position)||N(i)&&!o&&dt(t,i))?n=n.filter((t=>t!==i)):r=e,i=et(i)}return e.set(t,n),n}(e,this._c):[].concat(o),n],i=ht(e,s[0],r);let a=i.top,p=i.right,f=i.bottom,u=i.left;for(let t=1;t<s.length;t++){const o=ht(e,s[t],r);a=l(o.top,a),p=c(o.right,p),f=c(o.bottom,f),u=l(o.left,u)}return{width:p-u,height:f-a,x:u,y:a}},getOffsetParent:xt,getElementRects:async function(t){const e=this.getOffsetParent||xt,o=this.getDimensions,n=await o(t.floating);return{reference:vt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:o}=st(t);return{width:e,height:o}},getScale:at,isElement:B,isRTL:function(t){return"rtl"===Q(t).direction}};function bt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const yt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var o,n;const{x:r,y:s,placement:i,middlewareData:a}=e,p=await async function(t,e){const{placement:o,platform:n,elements:r}=t,s=await(null==n.isRTL?void 0:n.isRTL(r.floating)),i=g(o),a=x(o),p="y"===y(o),c=R.has(i)?-1:1,l=s&&p?-1:1,f=m(e,t);let{mainAxis:u,crossAxis:h,alignmentAxis:d}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof d&&(h="end"===a?-1*d:d),p?{x:h*l,y:u*c}:{x:u*c,y:h*l}}(e,t);return i===(null==(o=a.offset)?void 0:o.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:r+p.x,y:s+p.y,data:{...p,placement:i}}}}},St=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var o,n;const{placement:r,middlewareData:s,rects:i,initialPlacement:a,platform:p,elements:c}=e,{mainAxis:l=!0,crossAxis:f=!0,fallbackPlacements:u,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:v=!0,...w}=m(t,e);if(null!=(o=s.arrow)&&o.alignmentOffset)return{};const H=g(r),L=y(a),$=g(a)===a,D=await(null==p.isRTL?void 0:p.isRTL(c.floating)),j=u||($||!v?[O(a)]:function(t){const e=O(t);return[k(t),e,k(e)]}(a)),R="none"!==d;!u&&R&&j.push(...function(t,e,o,n){const r=x(t);let s=function(t,e,o){switch(t){case"top":case"bottom":return o?e?E:T:e?T:E;case"left":case"right":return e?M:A;default:return[]}}(g(t),"start"===o,n);return r&&(s=s.map((t=>t+"-"+r)),e&&(s=s.concat(s.map(k)))),s}(a,v,d,D));const z=[a,...j],F=await p.detectOverflow(e,w),C=[];let P=(null==(n=s.flip)?void 0:n.overflows)||[];if(l&&C.push(F[H]),f){const t=function(t,e,o){void 0===o&&(o=!1);const n=x(t),r=S(t),s=b(r);let i="x"===r?n===(o?"end":"start")?"right":"left":"start"===n?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=O(i)),[i,O(i)]}(r,i,D);C.push(F[t[0]],F[t[1]])}if(P=[...P,{placement:r,overflows:C}],!C.every((t=>t<=0))){var W,B;const t=((null==(W=s.flip)?void 0:W.index)||0)+1,e=z[t];if(e&&("alignment"!==f||L===y(e)||P.every((t=>y(t.placement)!==L||t.overflows[0]>0))))return{data:{index:t,overflows:P},reset:{placement:e}};let o=null==(B=P.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:B.placement;if(!o)switch(h){case"bestFit":{var q;const t=null==(q=P.filter((t=>{if(R){const e=y(t.placement);return e===L||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:q[0];t&&(o=t);break}case"initialPlacement":o=a}if(r!==o)return{reset:{placement:o}}}return{}}}},kt=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var o,n;const{placement:r,rects:s,platform:i,elements:a}=e,{apply:p=()=>{},...f}=m(t,e),u=await i.detectOverflow(e,f),h=g(r),d=x(r),v="y"===y(r),{width:w,height:b}=s.floating;let S,k;"top"===h||"bottom"===h?(S=h,k=d===(await(null==i.isRTL?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(k=h,S="end"===d?"top":"bottom");const T=b-u.top-u.bottom,E=w-u.left-u.right;let M=c(b-u[S],T),A=c(w-u[k],E);if(null!=(o=e.middlewareData.shift)&&o.enabled.x&&(A=E),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(M=T),!e.middlewareData.shift&&!d){const t=l(u.left,0),e=l(u.right,0),o=l(u.top,0),n=l(u.bottom,0);v?A=w-2*(0!==t||0!==e?t+e:l(u.left,u.right)):M=b-2*(0!==o||0!==n?o+n:l(u.top,u.bottom))}await p({...e,availableWidth:A,availableHeight:M});const O=await i.getDimensions(a.floating);return w!==O.width||b!==O.height?{reset:{rects:!0}}:{}}}},Tt=function(t){return void 0===t&&(t={}),{name:"inline",options:t,async fn(e){const{placement:o,elements:n,rects:r,platform:s,strategy:i}=e,{padding:a=2,x:p,y:f}=m(t,e),u=Array.from(await(null==s.getClientRects?void 0:s.getClientRects(n.reference))||[]),h=function(t){const e=t.slice().sort(((t,e)=>t.y-e.y)),o=[];let n=null;for(let t=0;t<e.length;t++){const r=e[t];!n||r.y-n.y>n.height/2?o.push([r]):o[o.length-1].push(r),n=r}return o.map((t=>L(j(t))))}(u),d=L(j(u)),v=H(a),x=await s.getElementRects({reference:{getBoundingClientRect:function(){if(2===h.length&&h[0].left>h[1].right&&null!=p&&null!=f)return h.find((t=>p>t.left-v.left&&p<t.right+v.right&&f>t.top-v.top&&f<t.bottom+v.bottom))||d;if(h.length>=2){if("y"===y(o)){const t=h[0],e=h[h.length-1],n="top"===g(o),r=t.top,s=e.bottom,i=n?t.left:e.left,a=n?t.right:e.right;return{top:r,bottom:s,left:i,right:a,width:a-i,height:s-r,x:i,y:r}}const t="left"===g(o),e=l(...h.map((t=>t.right))),n=c(...h.map((t=>t.left))),r=h.filter((o=>t?o.left===n:o.right===e)),s=r[0].top,i=r[r.length-1].bottom;return{top:s,bottom:i,left:n,right:e,width:e-n,height:i-s,x:n,y:s}}return d}},floating:n.floating,strategy:i});return r.reference.x!==x.reference.x||r.reference.y!==x.reference.y||r.reference.width!==x.reference.width||r.reference.height!==x.reference.height?{reset:{rects:x}}:{}}}};var Et=class extends Event{oldState;newState;constructor(t,{oldState:e="",newState:o="",...n}={}){super(t,n),this.oldState=String(e||""),this.newState=String(o||"")}},Mt=new WeakMap;function At(t,e,o){Mt.set(t,setTimeout((()=>{Mt.has(t)&&t.dispatchEvent(new Et("toggle",{cancelable:!1,oldState:e,newState:o}))}),0))}var Ot=globalThis.ShadowRoot||function(){},Ht=globalThis.HTMLDialogElement||function(){},Lt=new WeakMap,$t=new WeakMap,Dt=new WeakMap,jt=new WeakMap;function Rt(t){return jt.get(t)||"hidden"}var zt=new WeakMap;function Ft(t){return[...t].pop()}function Ct(t,e){return!("auto"!==t.popover&&"manual"!==t.popover&&"hint"!==t.popover||!t.isConnected||e&&"showing"!==Rt(t)||!e&&"hidden"!==Rt(t)||t instanceof Ht&&t.hasAttribute("open")||document.fullscreenElement===t)}function Pt(t){if(!t)return 0;const e=$t.get(document)||new Set,o=Dt.get(document)||new Set;return o.has(t)?[...o].indexOf(t)+e.size+1:e.has(t)?[...e].indexOf(t)+1:0}function Wt(t){let e;const o=Dt.get(t)||new Set,n=$t.get(t)||new Set,r=o.size>0?o:n.size>0?n:null;return r?(e=Ft(r),e.isConnected?e:(r.delete(e),Wt(t))):null}function Bt(t){for(const e of t||[]){if(e.isConnected)return e;t.delete(e)}return null}function qt(t){return"function"==typeof t.getRootNode?t.getRootNode():t.parentNode?qt(t.parentNode):t}function It(t){for(;t;){if(t instanceof HTMLElement&&"auto"===t.popover&&"showing"===jt.get(t))return t;if((t=t instanceof Element&&t.assignedSlot||t.parentElement||qt(t))instanceof Ot&&(t=t.host),t instanceof Document)return}}function Nt(t,e){const o=new Map;let n=0;for(const t of e||[])o.set(t,n),n+=1;o.set(t,n),n+=1;let r=null;return function(e){if(!e)return;let n=!1,s=null,i=null;for(;!n;){if(s=It(e)||null,null===s)return;if(!o.has(s))return;"hint"!==t.popover&&"auto"!==s.popover||(n=!0),n||(e=s.parentElement)}i=o.get(s),(null===r||o.get(r)<i)&&(r=s)}(t.parentElement||qt(t)),r}function Vt(t){return!(t.hidden||t instanceof Ot||(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 Gt=new WeakMap;function Ut(t){if(!Ct(t,!1))return;const e=t.ownerDocument;if(!t.dispatchEvent(new Et("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"})))return;if(!Ct(t,!1))return;let o=!1;const n=t.popover;let r=null;const s=Nt(t,$t.get(e)||new Set),i=Nt(t,Dt.get(e)||new Set);if("auto"===n&&(Zt(Dt.get(e)||new Set,o,!0),Yt(s||e,o,!0),r="auto"),"hint"===n&&(i?(Yt(i,o,!0),r="hint"):(Zt(Dt.get(e)||new Set,o,!0),s?(Yt(s,o,!0),r="auto"):r="hint")),"auto"===n||"hint"===n){if(n!==t.popover||!Ct(t,!1))return;Wt(e)||(o=!0),"auto"===r?($t.has(e)||$t.set(e,new Set),$t.get(e).add(t)):"hint"===r&&(Dt.has(e)||Dt.set(e,new Set),Dt.get(e).add(t))}Gt.delete(t);const a=e.activeElement;var p;t.classList.add(":popover-open"),jt.set(t,"showing"),Lt.has(e)||Lt.set(e,new Set),Lt.get(e).add(t),te(zt.get(t),!0),p=t,function(t){if(t.shadowRoot&&!0!==t.shadowRoot.delegatesFocus)return null;let e=t;e.shadowRoot&&(e=e.shadowRoot);let o=e.querySelector("[autofocus]");if(o)return o;{const t=e.querySelectorAll("slot");for(const e of t){const t=e.assignedElements({flatten:!0});for(const e of t){if(e.hasAttribute("autofocus"))return e;if(o=e.querySelector("[autofocus]"),o)return o}}}const n=t.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){if(Vt(r))return r;r=n.nextNode()}}(p)?.focus(),o&&a&&"auto"===t.popover&&Gt.set(t,a),At(t,"closed","open")}function Xt(t,e=!1,o=!1){if(!Ct(t,!0))return;const n=t.ownerDocument;if(["auto","hint"].includes(t.popover)&&(Yt(t,e,o),!Ct(t,!0)))return;const r=$t.get(n)||new Set,s=r.has(t)&&Ft(r)===t;if(te(zt.get(t),!1),zt.delete(t),o&&(t.dispatchEvent(new Et("beforetoggle",{oldState:"open",newState:"closed"})),s&&Ft(r)!==t&&Yt(t,e,o),!Ct(t,!0)))return;Lt.get(n)?.delete(t),r.delete(t),Dt.get(n)?.delete(t),t.classList.remove(":popover-open"),jt.set(t,"hidden"),o&&At(t,"open","closed");const i=Gt.get(t);i&&(Gt.delete(t),e&&i.focus())}function Zt(t,e=!1,o=!1){let n=Bt(t);for(;n;)Xt(n,e,o),n=Bt(t)}function _t(t,e,o,n){let r=!1,s=!1;for(;r||!s;){s=!0;let i=null,a=!1;for(const o of e)if(o===t)a=!0;else if(a){i=o;break}if(!i)return;for(;"showing"===Rt(i)&&e.size;)Xt(Ft(e),o,n);e.has(t)&&Ft(e)!==t&&(r=!0),r&&(n=!1)}}function Yt(t,e,o){const n=t.ownerDocument||t;if(t instanceof Document)return function(t,e=!1,o=!1){let n=Wt(t);for(;n;)Xt(n,e,o),n=Wt(t)}(n,e,o);Dt.get(n)?.has(t)?_t(t,Dt.get(n),e,o):(Zt(Dt.get(n)||new Set,e,o),$t.get(n)?.has(t)&&_t(t,$t.get(n),e,o))}var Jt=new WeakMap;function Kt(t){if(!t.isTrusted)return;const e=t.composedPath()[0];if(!e)return;const o=e.ownerDocument;if(!Wt(o))return;const n=function(t){const e=It(t),o=function(t){for(;t;){const e=t.popoverTargetElement;if(e instanceof HTMLElement)return e;if((t=t.parentElement||qt(t))instanceof Ot&&(t=t.host),t instanceof Document)return}}(t);return Pt(e)>Pt(o)?e:o}(e);if(n&&"pointerdown"===t.type)Jt.set(o,n);else if("pointerup"===t.type){const t=Jt.get(o)===n;Jt.delete(o),t&&Yt(n||o,!1,!0)}}var Qt=new WeakMap;function te(t,e=!1){if(!t)return;Qt.has(t)||Qt.set(t,t.getAttribute("aria-expanded"));const o=t.popoverTargetElement;if(o instanceof HTMLElement&&"auto"===o.popover)t.setAttribute("aria-expanded",String(e));else{const e=Qt.get(t);e?t.setAttribute("aria-expanded",e):t.removeAttribute("aria-expanded")}}var ee=globalThis.ShadowRoot||function(){};function oe(t,e,o){const n=t[e];Object.defineProperty(t,e,{value(t){return n.call(this,o(t))}})}var ne=/(^|[^\\]):popover-open\b/g;var re=null;function se(t){const e=function(){const t="function"==typeof globalThis.CSSLayerBlockRule;return`\n${t?"@layer popover-polyfill {":""}\n :where([popover]) {\n position: fixed;\n z-index: 2147483647;\n inset: 0;\n padding: 0.25em;\n width: fit-content;\n height: fit-content;\n border-width: initial;\n border-color: initial;\n border-image: initial;\n border-style: solid;\n background-color: canvas;\n color: canvastext;\n overflow: auto;\n margin: auto;\n }\n\n :where([popover]:not(.\\:popover-open)) {\n display: none;\n }\n\n :where(dialog[popover].\\:popover-open) {\n display: block;\n }\n\n :where(dialog[popover][open]) {\n display: revert;\n }\n\n :where([anchor].\\:popover-open) {\n inset: auto;\n }\n\n :where([anchor]:popover-open) {\n inset: auto;\n }\n\n @supports not (background-color: canvas) {\n :where([popover]) {\n background-color: white;\n color: black;\n }\n }\n\n @supports (width: -moz-fit-content) {\n :where([popover]) {\n width: -moz-fit-content;\n height: -moz-fit-content;\n }\n }\n\n @supports not (inset: 0) {\n :where([popover]) {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n }\n${t?"}":""}\n`}();if(null===re)try{(re=new CSSStyleSheet).replaceSync(e)}catch{re=!1}if(!1===re){const o=document.createElement("style");o.textContent=e,t instanceof Document?t.head.prepend(o):t.prepend(o)}else t.adoptedStyleSheets=[re,...t.adoptedStyleSheets]}var ie=function(t,e,o,n){var r,s=arguments.length,i=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(i=(s<3?r(i):s>3?r(e,o,i):r(e,o))||i);return s>3&&i&&Object.defineProperty(e,o,i),i};const ae={"pop-in":function(t){if(t)return t.animate([{transform:"scale(0.9)",opacity:0},{transform:"scale(1)",opacity:1}],{duration:250,easing:"ease-out",fill:"forwards"})}},pe=class{constructor(o){t(this,o),this.postBeforeShow=e(this,"postBeforeShow"),this.postShow=e(this,"postShow"),this.postHide=e(this,"postHide"),this.postBeforeToggle=e(this,"postBeforeToggle"),this.postToggle=e(this,"postToggle"),this.toggleTimeoutId=null,this.hasOpenedOnce=!0,this.placement="top",this.edgeGap=8,this.arrow=!1,this.animation="pop-in",this.currentAnimation=null,this.boundMouseTrackingHandler=this.mouseTrackingHandler.bind(this)}mouseTrackingHandler(t){this.host.style.setProperty("--post-safe-space-cursor-x",`${t.clientX}px`),this.host.style.setProperty("--post-safe-space-cursor-y",`${t.clientY}px`)}connectedCallback(){"undefined"!=typeof HTMLElement&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||function(){if("undefined"==typeof window)return;function t(t){return t?.includes(":popover-open")&&(t=t.replace(ne,"$1.\\:popover-open")),t}window.ToggleEvent=window.ToggleEvent||Et,oe(Document.prototype,"querySelector",t),oe(Document.prototype,"querySelectorAll",t),oe(Element.prototype,"querySelector",t),oe(Element.prototype,"querySelectorAll",t),oe(Element.prototype,"matches",t),oe(Element.prototype,"closest",t),oe(DocumentFragment.prototype,"querySelectorAll",t),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;const t=(this.getAttribute("popover")||"").toLowerCase();return""===t||"auto"==t?"auto":"hint"==t?"hint":"manual"},set(t){null===t?this.removeAttribute("popover"):this.setAttribute("popover",t)}},showPopover:{enumerable:!0,configurable:!0,value(t={}){Ut(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){Xt(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t={}){return"boolean"==typeof t&&(t={force:t}),"showing"===jt.get(this)&&void 0===t.force||!1===t.force?Xt(this,!0,!0):void 0!==t.force&&!0!==t.force||Ut(this),"showing"===jt.get(this)}}});const e=Element.prototype.attachShadow;e&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(t){const o=e.call(this,t);return se(o),o}}});const o=HTMLElement.prototype.attachInternals;o&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){const t=o.call(this);return t.shadowRoot&&se(t.shadowRoot),t}}});const n=new WeakMap;function r(t){Object.defineProperties(t.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(t){if(null===t)this.removeAttribute("popovertarget"),n.delete(this);else{if(!(t instanceof Element))throw new TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),n.set(this,t)}},get(){if("button"!==this.localName&&"input"!==this.localName)return null;if("input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type)return null;if(this.disabled)return null;if(this.form&&"submit"===this.type)return null;const t=n.get(this);if(t&&t.isConnected)return t;if(t&&!t.isConnected)return n.delete(this),null;const e=qt(this),o=this.getAttribute("popovertarget");return(e instanceof Document||e instanceof ee)&&o&&e.getElementById(o)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){const t=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===t||"hide"===t?t:"toggle"},set(t){this.setAttribute("popovertargetaction",t)}}})}var s;r(HTMLButtonElement),r(HTMLInputElement),(s=document).addEventListener("click",(t=>{const e=t.composedPath(),o=e[0];if(!(o instanceof Element)||o?.shadowRoot)return;const n=qt(o);if(!(n instanceof ee||n instanceof Document))return;const r=e.find((t=>t.matches?.("[popovertargetaction],[popovertarget]")));return r?(function(t){const e=t.popoverTargetElement;if(!(e instanceof HTMLElement))return;const o=Rt(e);"show"===t.popoverTargetAction&&"showing"===o||"hide"===t.popoverTargetAction&&"hidden"===o||("showing"===o?Xt(e,!0,!0):Ct(e,!1)&&(zt.set(e,t),Ut(e)))}(r),void t.preventDefault()):void 0})),s.addEventListener("keydown",(t=>{const e=t.key,o=t.target;t.defaultPrevented||!o||"Escape"!==e&&"Esc"!==e||Yt(o.ownerDocument,!0,!0)})),s.addEventListener("pointerdown",Kt),s.addEventListener("pointerup",Kt),se(document)}()}componentDidLoad(){this.host.addEventListener("beforetoggle",this.handleToggle.bind(this))}disconnectedCallback(){"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate(),this.host.removeEventListener("beforetoggle",this.handleToggle.bind(this))}async show(t){!this.toggleTimeoutId&&t&&(this.eventTarget=t,this.calculatePosition(),this.host.showPopover())}async hide(){this.toggleTimeoutId||(this.eventTarget=null,this.host.hidePopover(),this.postHide.emit())}async toggle(t,e){const o=this.host.matches(":where(:popover-open, .popover-open)");return!0!==e&&(void 0!==e||o)||t?(this.eventTarget=t,this.toggleTimeoutId||(this.calculatePosition(),this.host.togglePopover(e),this.toggleTimeoutId=null),this.host.matches(":where(:popover-open, .popover-open)")):o}open(){const t=this.host.shadowRoot?.querySelector(".popover-content");if(this.startAutoupdates(),t){const e=ae[this.animation];"function"==typeof e?this.runOpenAnimation(e,t):(this.postBeforeToggle.emit({willOpen:!0}),this.postBeforeShow.emit({first:this.hasOpenedOnce}),this.postToggle.emit({isOpen:!0}),this.postShow.emit({first:this.hasOpenedOnce}),this.hasOpenedOnce&&(this.hasOpenedOnce=!1))}this.safeSpace&&globalThis.addEventListener("mousemove",this.boundMouseTrackingHandler)}close(){"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate(),this.safeSpace&&globalThis.removeEventListener("mousemove",this.boundMouseTrackingHandler),this.currentAnimation&&(this.currentAnimation.cancel(),this.currentAnimation=null),this.postBeforeToggle.emit({willOpen:!1}),this.postToggle.emit({isOpen:!1}),this.postHide.emit()}async runOpenAnimation(t,e){let o;try{if(o=t(e),!o)return this.postBeforeToggle.emit({willOpen:!0}),this.postBeforeShow.emit({first:this.hasOpenedOnce}),this.postToggle.emit({isOpen:!0}),void this.postShow.emit({first:this.hasOpenedOnce});this.currentAnimation=o,"running"===o.playState&&(this.postBeforeToggle.emit({willOpen:!0}),this.postBeforeShow.emit({first:this.hasOpenedOnce})),await o.finished,this.postToggle.emit({isOpen:!0}),this.postShow.emit({first:this.hasOpenedOnce}),this.hasOpenedOnce=!0}catch(t){console.warn("Animation failed or was interrupted:",t),this.postBeforeToggle.emit({willOpen:!1}),this.postBeforeShow.emit({first:this.hasOpenedOnce}),this.postToggle.emit({isOpen:!1})}finally{this.currentAnimation===o&&(this.currentAnimation=null)}}handleToggle(t){this.toggleTimeoutId=globalThis.setTimeout((()=>this.toggleTimeoutId=null),10),"open"===t.newState?this.open():this.close()}startAutoupdates(){this.eventTarget&&this.host&&(this.clearAutoUpdate=function(t,e,o,n){void 0===n&&(n={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:p=!1}=n,f=it(t),h=r||s?[...f?nt(f):[],...e?nt(e):[]]:[];h.forEach((t=>{r&&t.addEventListener("scroll",o,{passive:!0}),s&&t.addEventListener("resize",o)}));const d=f&&a?function(t,e){let o,n=null;const r=P(t);function s(){var t;clearTimeout(o),null==(t=n)||t.disconnect(),n=null}return function i(a,p){void 0===a&&(a=!1),void 0===p&&(p=1),s();const f=t.getBoundingClientRect(),{left:h,top:d,width:v,height:m}=f;if(a||e(),!v||!m)return;const g={rootMargin:-u(d)+"px "+-u(r.clientWidth-(h+v))+"px "+-u(r.clientHeight-(d+m))+"px "+-u(h)+"px",threshold:l(0,c(1,p))||1};let x=!0;function w(e){const n=e[0].intersectionRatio;if(n!==p){if(!x)return i();n?i(!1,n):o=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==n||bt(f,t.getBoundingClientRect())||i(),x=!1}try{n=new IntersectionObserver(w,{...g,root:r.ownerDocument})}catch(t){n=new IntersectionObserver(w,g)}n.observe(t)}(!0),s}(f,o):null;let v,m=-1,g=null;i&&(g=new ResizeObserver((t=>{let[n]=t;n&&n.target===f&&g&&e&&(g.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var t;null==(t=g)||t.observe(e)}))),o()})),f&&!p&&g.observe(f),e&&g.observe(e));let x=p?lt(t):null;return p&&function e(){const n=lt(t);x&&!bt(x,n)&&o(),x=n,v=requestAnimationFrame(e)}(),o(),()=>{var t;h.forEach((t=>{r&&t.removeEventListener("scroll",o),s&&t.removeEventListener("resize",o)})),null==d||d(),null==(t=g)||t.disconnect(),g=null,p&&cancelAnimationFrame(v)}}(this.eventTarget,this.host,this.calculatePosition.bind(this)))}getHeaderHeight(){const t=document.querySelector("post-header");return t?Number.parseFloat(getComputedStyle(t).height):0}async calculatePosition(){const{x:t,y:e,middlewareData:o,placement:n}=await this.computeMainPosition(),r=n.split("-")[0];if(this.dynamicPlacement=r,this.host.style.left=`${t}px`,this.host.style.top=`${e}px`,this.arrow&&o.arrow){const{x:t,y:e}=o.arrow,n=pe.STATIC_SIDES[r],s=-.5*this.arrowRef.offsetWidth;n&&Object.assign(this.arrowRef.style,{left:t?`${t}px`:"",top:e?`${e}px`:"",[n]:`${s}px`})}this.safeSpace&&this.eventTarget&&await this.updateSafeSpaceBoundaries(r)}async computeMainPosition(){const t=this.edgeGap,e=(this.placement||"top").includes("-"),o=St({padding:this.getHeaderHeight(),crossAxis:!1}),n=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:n,placement:r,platform:s}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:p={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...c}=m(t,e),l={x:o,y:n},f=await s.detectOverflow(e,c),u=y(g(r)),h=w(u);let d=l[h],x=l[u];i&&(d=v(d+f["y"===h?"top":"left"],d,d-f["y"===h?"bottom":"right"])),a&&(x=v(x+f["y"===u?"top":"left"],x,x-f["y"===u?"bottom":"right"]));const b=p.fn({...e,[h]:d,[u]:x});return{...b,data:{x:b.x-o,y:b.y-n,enabled:{[h]:i,[u]:a}}}}}}({padding:t,limiter:(s={offset:32},void 0===s&&(s={}),{options:s,fn(t){const{x:e,y:o,placement:n,rects:r,middlewareData:i}=t,{offset:a=0,mainAxis:p=!0,crossAxis:c=!0}=m(s,t),l={x:e,y:o},f=y(n),u=w(f);let h=l[u],d=l[f];const v=m(a,t),x="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(p){const t="y"===u?"height":"width",e=r.reference[u]-r.floating[t]+x.mainAxis,o=r.reference[u]+r.reference[t]-x.mainAxis;h<e?h=e:h>o&&(h=o)}if(c){var b,S;const t="y"===u?"width":"height",e=R.has(g(n)),o=r.reference[f]-r.floating[t]+(e&&(null==(b=i.offset)?void 0:b[f])||0)+(e?0:x.crossAxis),s=r.reference[f]+r.reference[t]+(e?0:(null==(S=i.offset)?void 0:S[f])||0)-(e?x.crossAxis:0);d<o?d=o:d>s&&(d=s)}return{[u]:h,[f]:d}}})}),r=[yt(this.offset??(this.arrow?t+4:t)),Tt(),...e?[o,n]:[n,o],kt({apply({availableWidth:e,elements:o}){Object.assign(o.floating.style,{maxWidth:e-2*t+"px"})}})];var s;return this.arrow&&r.push((t=>({name:"arrow",options:t,async fn(e){const{x:o,y:n,placement:r,rects:s,platform:i,elements:a,middlewareData:p}=e,{element:l,padding:f=0}=m(t,e)||{};if(null==l)return{};const u=H(f),h={x:o,y:n},d=S(r),g=b(d),w=await i.getDimensions(l),y="y"===d,k=y?"top":"left",T=y?"bottom":"right",E=y?"clientHeight":"clientWidth",M=s.reference[g]+s.reference[d]-h[d]-s.floating[g],A=h[d]-s.reference[d],O=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l));let L=O?O[E]:0;L&&await(null==i.isElement?void 0:i.isElement(O))||(L=a.floating[E]||s.floating[g]);const $=M/2-A/2,D=L/2-w[g]/2-1,j=c(u[k],D),R=c(u[T],D),z=j,F=L-w[g]-R,C=L/2-w[g]/2+$,P=v(z,C,F),W=!p.arrow&&null!=x(r)&&C!==P&&s.reference[g]/2-(C<z?j:R)-w[g]/2<0,B=W?C<z?C-z:C-F:0;return{[d]:h[d]+B,data:{[d]:P,centerOffset:C-P-B,...W&&{alignmentOffset:B}},reset:W}}}))({element:this.arrowRef,padding:t})),((t,e,o)=>{const n=new Map,r={platform:wt,...o},s={...r.platform,_c:n};return(async(t,e,o)=>{const{placement:n="bottom",strategy:r="absolute",middleware:s=[],platform:i}=o,a=i.detectOverflow?i:{...i,detectOverflow:D},p=await(null==i.isRTL?void 0:i.isRTL(e));let c=await i.getElementRects({reference:t,floating:e,strategy:r}),{x:l,y:f}=$(c,n,p),u=n,h=0;const d={};for(let o=0;o<s.length;o++){const v=s[o];if(!v)continue;const{name:m,fn:g}=v,{x,y:w,data:b,reset:y}=await g({x:l,y:f,initialPlacement:n,placement:u,strategy:r,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:e}});l=null!=x?x:l,f=null!=w?w:f,d[m]={...d[m],...b},y&&h<50&&(h++,"object"==typeof y&&(y.placement&&(u=y.placement),y.rects&&(c=!0===y.rects?await i.getElementRects({reference:t,floating:e,strategy:r}):y.rects),({x:l,y:f}=$(c,u,p))),o=-1)}return{x:l,y:f,placement:u,strategy:r,middlewareData:d}})(t,e,{...r,platform:s})})(this.eventTarget,this.host,{placement:this.placement||"top",strategy:"fixed",middleware:r})}async updateSafeSpaceBoundaries(t){const e=this.eventTarget.getBoundingClientRect(),o="top"===t||"bottom"===t,n=((t,e,o)=>"top"===t||"bottom"===t?{popover:{y:"top"===t?e.bottom:e.top,xStart:e.left,xEnd:e.right},trigger:{y:"top"===t?o.top:o.bottom,xStart:o.left,xEnd:o.right}}:{popover:{x:"left"===t?e.right:e.left,yStart:e.top,yEnd:e.bottom},trigger:{x:"left"===t?o.left:o.right,yStart:o.top,yEnd:o.bottom}})(t,this.host.getBoundingClientRect(),e);pe.PROPERTIES_TO_CLEAR.forEach((t=>{this.host.style.removeProperty(t)})),o?(this.host.style.setProperty("--post-safe-space-popover-y",`${n.popover.y}px`),this.host.style.setProperty("--post-safe-space-popover-x-start",`${n.popover.xStart}px`),this.host.style.setProperty("--post-safe-space-popover-x-end",`${n.popover.xEnd}px`),this.host.style.setProperty("--post-safe-space-trigger-y",`${n.trigger.y}px`),this.host.style.setProperty("--post-safe-space-trigger-x-start",`${n.trigger.xStart}px`),this.host.style.setProperty("--post-safe-space-trigger-x-end",`${n.trigger.xEnd}px`)):(this.host.style.setProperty("--post-safe-space-popover-x",`${n.popover.x}px`),this.host.style.setProperty("--post-safe-space-popover-y-start",`${n.popover.yStart}px`),this.host.style.setProperty("--post-safe-space-popover-y-end",`${n.popover.yEnd}px`),this.host.style.setProperty("--post-safe-space-trigger-x",`${n.trigger.x}px`),this.host.style.setProperty("--post-safe-space-trigger-y-start",`${n.trigger.yStart}px`),this.host.style.setProperty("--post-safe-space-trigger-y-end",`${n.trigger.yEnd}px`))}render(){return o(n,{key:"bffef7c8067f21aa99c45deaaf2bc122ea455191","data-version":s,popover:"auto"},o("div",{key:"023339edd5b36827e0051179bee464236bccc62a",part:"post-popovercontainer-content",class:"popover-content"},this.arrow&&o("span",{key:"ae921c38aa8c33ad8b37453a56d22ee7b4b9950c","dynamic-placement":this.dynamicPlacement,class:"arrow",ref:t=>{this.arrowRef=t}}),o("span",{key:"f7c2720a3bedb808855628482c5b1f377e2719a8",part:"post-popovercontainer-border-mask"}),o("slot",{key:"e0fee3fded9fea41bc0260f45be0375e236463f9"})))}get host(){return r(this)}};pe.STATIC_SIDES={top:"bottom",right:"left",bottom:"top",left:"right"},pe.PROPERTIES_TO_CLEAR=["--post-safe-space-popover-x","--post-safe-space-popover-y","--post-safe-space-popover-x-start","--post-safe-space-popover-x-end","--post-safe-space-popover-y-start","--post-safe-space-popover-y-end","--post-safe-space-trigger-x","--post-safe-space-trigger-y","--post-safe-space-trigger-x-start","--post-safe-space-trigger-x-end","--post-safe-space-trigger-y-start","--post-safe-space-trigger-y-end"],ie([i(a)],pe.prototype,"placement",void 0),ie([p("number")],pe.prototype,"edgeGap",void 0),ie([i(["triangle","trapezoid"])],pe.prototype,"safeSpace",void 0),pe.style='@layer polyfill{@supports not selector(:popover-open){:host([popover]:not(.\\:popover-open)){display:none}}}:host{background-color:rgba(0,0,0,0);border:rgba(0,0,0,0);position:fixed;margin:0;padding:0;overflow:visible}:host>div{-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300);width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:100%;color:var(--post-current-fg);background-color:var(--post-current-bg);border-radius:4px;position:relative}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host>div{border:2px solid rgba(0,0,0,0)}}:host [part=post-popovercontainer-border-mask]{display:none;position:absolute;inset:0;border-radius:4px;pointer-events:none}:host .arrow{--post-popovercontainer-arrow-border: var(--post-popovercontainer-arrow-border-width, 0px) solid var(--post-popovercontainer-arrow-border-color, transparent);position:absolute;width:.5825rem;height:.5825rem;background-color:inherit;rotate:45deg;pointer-events:none;z-index:-1}:host .arrow[dynamic-placement=top]{border-bottom-right-radius:2px;border-bottom:var(--post-popovercontainer-arrow-border);border-right:var(--post-popovercontainer-arrow-border)}:host .arrow[dynamic-placement=right]{border-bottom-left-radius:2px;border-bottom:var(--post-popovercontainer-arrow-border);border-left:var(--post-popovercontainer-arrow-border)}:host .arrow[dynamic-placement=bottom]{border-top-left-radius:2px;border-top:var(--post-popovercontainer-arrow-border);border-left:var(--post-popovercontainer-arrow-border)}:host .arrow[dynamic-placement=left]{border-top-right-radius:2px;border-top:var(--post-popovercontainer-arrow-border);border-right:var(--post-popovercontainer-arrow-border)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .arrow[dynamic-placement=top]{-webkit-border-after:2px solid rgba(0,0,0,0);border-block-end:2px solid rgba(0,0,0,0);-webkit-border-end:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0);bottom:-0.3796735336rem !important}:host .arrow[dynamic-placement=left]{-webkit-border-before:2px solid rgba(0,0,0,0);border-block-start:2px solid rgba(0,0,0,0);-webkit-border-end:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0);right:-0.3796735336rem !important}:host .arrow[dynamic-placement=right]{-webkit-border-after:2px solid rgba(0,0,0,0);border-block-end:2px solid rgba(0,0,0,0);-webkit-border-start:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0);left:-0.3796735336rem !important}:host .arrow[dynamic-placement=bottom]{-webkit-border-before:2px solid rgba(0,0,0,0);border-block-start:2px solid rgba(0,0,0,0);-webkit-border-start:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0);top:-0.3796735336rem !important}}:host([tooltip]){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}:host([safe-space])::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:auto}:host([safe-space=triangle])::after{-webkit-clip-path:polygon(var(--post-safe-space-cursor-x, 0) var(--post-safe-space-cursor-y, 0), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)));clip-path:polygon(var(--post-safe-space-cursor-x, 0) var(--post-safe-space-cursor-y, 0), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)))}:host([safe-space=trapezoid])::after{-webkit-clip-path:polygon(var(--post-safe-space-trigger-x-start, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-start, 0)), var(--post-safe-space-trigger-x-end, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-end, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)));clip-path:polygon(var(--post-safe-space-trigger-x-start, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-start, 0)), var(--post-safe-space-trigger-x-end, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-end, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)))}:host(:not(:has(.arrow)))>div{-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300)}:host(:has(.arrow))>div{-webkit-filter:drop-shadow(1px 2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(2px 4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(4px 8px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(1px 2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(2px 4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(4px 8px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[dynamic-placement=top]))>div{-webkit-filter:drop-shadow(0px -2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(0px -4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(0px -8px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(0px -2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(0px -4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(0px -8px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[dynamic-placement=left]))>div{-webkit-filter:drop-shadow(-2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(-4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(-8px 0px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(-2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(-4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(-8px 0px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[dynamic-placement=right]))>div{-webkit-filter:drop-shadow(2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(8px 0px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(8px 0px 12px hsla(225, 7%, 11%, 0.15))}';export{pe as post_popovercontainer}
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,o){function n(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function c(e){try{a(o.next(e))}catch(e){r(e)}}function s(e){try{a(o["throw"](e))}catch(e){r(e)}}function a(e){e.done?i(e.value):n(e.value).then(c,s)}a((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,n,r,c=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return c.next=s(0),c["throw"]=s(1),c["return"]=s(2),typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function s(e){return function(t){return a([e,t])}}function a(s){if(o)throw new TypeError("Generator is already executing.");while(c&&(c=0,s[0]&&(i=0)),i)try{if(o=1,n&&(r=s[0]&2?n["return"]:s[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;if(n=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;n=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){i.label=s[1];break}if(s[0]===6&&i.label<r[1]){i.label=r[1];r=s;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(s);break}if(r[2])i.ops.pop();i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e];n=0}finally{o=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-CN_0KCBp.system.js","./p-CVe9fdUw.system.js","./p-CHIhqOmO.system.js","./p-CiwQnVr3.system.js","./p-C1pxTt7y.system.js","./p-BCAukqif.system.js","./p-DaxAbTyB.system.js"],(function(e){"use strict";var t,i,o,n,r,c,s,a,f;return{setters:[function(e){t=e.r;i=e.c;o=e.h;n=e.H;r=e.g},function(e){c=e.v},function(e){s=e.f},function(e){a=e.O},function(e){f=e.E},null,null],execute:function(){var d=["success","warning","error","info"];var l=function(){return':host{position:relative;display:grid;grid-template-columns:1fr;grid-auto-rows:auto;grid-auto-flow:row;min-height:calc(var(--post-device-sizing-notification-icon-2) + (2 * var(--post-device-spacing-padding-10)));padding:var(--post-device-spacing-padding-10);-webkit-padding-start:calc( var(--post-device-spacing-padding-10) + var(--post-device-sizing-notification-icon-2) + var(--post-device-spacing-gap-inline-6) );padding-inline-start:calc( var(--post-device-spacing-padding-10) + var(--post-device-sizing-notification-icon-2) + var(--post-device-spacing-gap-inline-6) );color:var(--post-current-fg);border-style:var(--post-core-border-style-solid);border-width:var(--post-device-border-width-default);border-radius:var(--post-device-border-radius-2);-webkit-box-shadow:var(--post-device-elevation-100);box-shadow:var(--post-device-elevation-100);background-color:var(--post-scheme-color-interactive-notification-info-bg);border-color:var(--post-scheme-color-interactive-notification-info-stroke)}:host::before{content:"";display:block;position:absolute;height:var(--post-device-sizing-notification-icon-2);width:var(--post-device-sizing-notification-icon-2);inset-block-start:var(--post-device-spacing-padding-10);inset-inline-start:var(--post-device-spacing-padding-10);background-image:var(--post-signal-icon-info)}:host([type=info]){background-color:var(--post-scheme-color-interactive-notification-info-bg);border-color:var(--post-scheme-color-interactive-notification-info-stroke)}:host([type=info])::before{background-image:var(--post-signal-icon-info)}:host([type=success]){background-color:var(--post-scheme-color-interactive-notification-success-bg);border-color:var(--post-scheme-color-interactive-notification-success-stroke)}:host([type=success])::before{background-image:var(--post-signal-icon-success)}:host([type=warning]){background-color:var(--post-scheme-color-interactive-notification-warning-bg);border-color:var(--post-scheme-color-interactive-notification-warning-stroke)}:host([type=warning])::before{background-image:var(--post-signal-icon-warning)}:host([type=error]){background-color:var(--post-scheme-color-interactive-notification-error-bg);border-color:var(--post-scheme-color-interactive-notification-error-stroke)}:host([type=error])::before{background-image:var(--post-signal-icon-error)}.post-banner-content{display:grid;grid-template-columns:1fr;row-gap:var(--post-device-spacing-gap-block-1);overflow-x:auto}.actions{display:-ms-flexbox;display:flex;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-webkit-margin-before:var(--post-device-spacing-padding-block-10);margin-block-start:var(--post-device-spacing-padding-block-10);gap:var(--post-device-spacing-gap-1)}@media screen and (min-width: 0)and (max-width: 599.98px){.actions{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch}}::slotted(*){margin-block:0 !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host{border-color:CanvasText}:host::before{color:CanvasText}}'};var u=undefined&&undefined.__decorate||function(e,t,i,o){var n=arguments.length,r=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,i):o,c;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")r=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)if(c=e[s])r=(n<3?c(r):n>3?c(t,i,r):c(t,i))||r;return n>3&&r&&Object.defineProperty(t,i,r),r};var p=e("post_banner",function(){function e(e){t(this,e);this.postDismissed=i(this,"postDismissed");this.mutationObserver=new MutationObserver(this.checkContent.bind(this));this.hasActions=false;this.type="info"}e.prototype.connectedCallback=function(){this.mutationObserver.observe(this.host,{childList:true})};e.prototype.componentDidLoad=function(){this.checkContent()};e.prototype.disconnectedCallback=function(){this.mutationObserver.disconnect()};e.prototype.dismiss=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=s(this.host,"out");return[4,e.finished];case 1:t.sent();this.postDismissed.emit();this.host.remove();return[2]}}))}))};e.prototype.onCloseButtonClick=function(){void this.dismiss()};e.prototype.checkContent=function(){this.hasActions=this.host.querySelectorAll('[slot="actions"]').length>0};e.prototype.render=function(){return o(n,{key:"afa4834733c7e9d985d2102a3e421f09f94b44ba","data-version":c,role:"alert","data-color-scheme":"light"},o("slot",{key:"39dfccec7bf829ff354bac467a9b399e003ce473",name:"close-button"}),o("div",{key:"e6dfc60165185da4384c4143153ee34db1299088",class:"post-banner-content"},o("slot",{key:"9fc1e8e81cf396eb1ae1e5dfff7f04ccc6443986",name:"heading"}),o("slot",{key:"e7d21db6f7feb1507c612319c3d56595b797a3c4"}),this.hasActions&&o("div",{key:"d4229d09accb5cfb2a096c44ca523a132da4755d",class:"actions"},o("slot",{key:"b01633122bd45df2f95b7ee5e4694a83aceb68bd",name:"actions"}))))};Object.defineProperty(e.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());u([a(d)],p.prototype,"type",void 0);u([f("post-closebutton",{allowDescendants:true})],p.prototype,"onCloseButtonClick",null);p.style=l()}}}));
1
+ var __awaiter=this&&this.__awaiter||function(t,e,i,o){function n(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,r){function c(t){try{a(o.next(t))}catch(t){r(t)}}function s(t){try{a(o["throw"](t))}catch(t){r(t)}}function a(t){t.done?i(t.value):n(t.value).then(c,s)}a((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,n,r,c=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return c.next=s(0),c["throw"]=s(1),c["return"]=s(2),typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function s(t){return function(e){return a([t,e])}}function a(s){if(o)throw new TypeError("Generator is already executing.");while(c&&(c=0,s[0]&&(i=0)),i)try{if(o=1,n&&(r=s[0]&2?n["return"]:s[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;if(n=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;n=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){i.label=s[1];break}if(s[0]===6&&i.label<r[1]){i.label=r[1];r=s;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(s);break}if(r[2])i.ops.pop();i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t];n=0}finally{o=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-CN_0KCBp.system.js","./p-CHYNOqn0.system.js","./p-CHIhqOmO.system.js","./p-CiwQnVr3.system.js","./p-C1pxTt7y.system.js","./p-BCAukqif.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var e,i,o,n,r,c,s,a,f;return{setters:[function(t){e=t.r;i=t.c;o=t.h;n=t.H;r=t.g},function(t){c=t.v},function(t){s=t.f},function(t){a=t.O},function(t){f=t.E},null,null],execute:function(){var d=["success","warning","error","info"];var l=function(){return':host{position:relative;display:grid;grid-template-columns:1fr;grid-auto-rows:auto;grid-auto-flow:row;min-height:calc(var(--post-device-sizing-notification-icon-2) + (2 * var(--post-device-spacing-padding-10)));padding:var(--post-device-spacing-padding-10);-webkit-padding-start:calc( var(--post-device-spacing-padding-10) + var(--post-device-sizing-notification-icon-2) + var(--post-device-spacing-gap-inline-6) );padding-inline-start:calc( var(--post-device-spacing-padding-10) + var(--post-device-sizing-notification-icon-2) + var(--post-device-spacing-gap-inline-6) );color:var(--post-current-fg);border-style:var(--post-core-border-style-solid);border-width:var(--post-device-border-width-default);border-radius:var(--post-device-border-radius-2);-webkit-box-shadow:var(--post-device-elevation-100);box-shadow:var(--post-device-elevation-100);background-color:var(--post-scheme-color-interactive-notification-info-bg);border-color:var(--post-scheme-color-interactive-notification-info-stroke)}:host::before{content:"";display:block;position:absolute;height:var(--post-device-sizing-notification-icon-2);width:var(--post-device-sizing-notification-icon-2);inset-block-start:var(--post-device-spacing-padding-10);inset-inline-start:var(--post-device-spacing-padding-10);background-image:var(--post-signal-icon-info)}:host([type=info]){background-color:var(--post-scheme-color-interactive-notification-info-bg);border-color:var(--post-scheme-color-interactive-notification-info-stroke)}:host([type=info])::before{background-image:var(--post-signal-icon-info)}:host([type=success]){background-color:var(--post-scheme-color-interactive-notification-success-bg);border-color:var(--post-scheme-color-interactive-notification-success-stroke)}:host([type=success])::before{background-image:var(--post-signal-icon-success)}:host([type=warning]){background-color:var(--post-scheme-color-interactive-notification-warning-bg);border-color:var(--post-scheme-color-interactive-notification-warning-stroke)}:host([type=warning])::before{background-image:var(--post-signal-icon-warning)}:host([type=error]){background-color:var(--post-scheme-color-interactive-notification-error-bg);border-color:var(--post-scheme-color-interactive-notification-error-stroke)}:host([type=error])::before{background-image:var(--post-signal-icon-error)}.post-banner-content{display:grid;grid-template-columns:1fr;row-gap:var(--post-device-spacing-gap-block-1);overflow-x:auto}.actions{display:-ms-flexbox;display:flex;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-webkit-margin-before:var(--post-device-spacing-padding-block-10);margin-block-start:var(--post-device-spacing-padding-block-10);gap:var(--post-device-spacing-gap-1)}@media screen and (min-width: 0)and (max-width: 599.98px){.actions{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch}}::slotted(*){margin-block:0 !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host{border-color:CanvasText}:host::before{color:CanvasText}}'};var u=undefined&&undefined.__decorate||function(t,e,i,o){var n=arguments.length,r=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,i):o,c;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")r=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)if(c=t[s])r=(n<3?c(r):n>3?c(e,i,r):c(e,i))||r;return n>3&&r&&Object.defineProperty(e,i,r),r};var p=t("post_banner",function(){function t(t){e(this,t);this.postDismissed=i(this,"postDismissed");this.mutationObserver=new MutationObserver(this.checkContent.bind(this));this.hasActions=false;this.type="info"}t.prototype.connectedCallback=function(){this.mutationObserver.observe(this.host,{childList:true})};t.prototype.componentDidLoad=function(){this.checkContent()};t.prototype.disconnectedCallback=function(){this.mutationObserver.disconnect()};t.prototype.dismiss=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:t=s(this.host,"out");return[4,t.finished];case 1:e.sent();this.postDismissed.emit();this.host.remove();return[2]}}))}))};t.prototype.onCloseButtonClick=function(){void this.dismiss()};t.prototype.checkContent=function(){this.hasActions=this.host.querySelectorAll('[slot="actions"]').length>0};t.prototype.render=function(){return o(n,{key:"afa4834733c7e9d985d2102a3e421f09f94b44ba","data-version":c,role:"alert","data-color-scheme":"light"},o("slot",{key:"39dfccec7bf829ff354bac467a9b399e003ce473",name:"close-button"}),o("div",{key:"e6dfc60165185da4384c4143153ee34db1299088",class:"post-banner-content"},o("slot",{key:"9fc1e8e81cf396eb1ae1e5dfff7f04ccc6443986",name:"heading"}),o("slot",{key:"e7d21db6f7feb1507c612319c3d56595b797a3c4"}),this.hasActions&&o("div",{key:"d4229d09accb5cfb2a096c44ca523a132da4755d",class:"actions"},o("slot",{key:"b01633122bd45df2f95b7ee5e4694a83aceb68bd",name:"actions"}))))};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());u([a(d)],p.prototype,"type",void 0);u([f("post-closebutton",{allowDescendants:true})],p.prototype,"onCloseButtonClick",null);p.style=l()}}}));
@@ -1 +1 @@
1
- System.register(["./p-CN_0KCBp.system.js","./p-CVe9fdUw.system.js","./p-Bwi1IyPf.system.js","./p-D4wq7hIE.system.js","./p-BMZcKRx0.system.js","./p-DaxAbTyB.system.js"],(function(e){"use strict";var t,n,s,f,i,u,c,o;return{setters:[function(e){t=e.r;n=e.h;s=e.H;f=e.g},function(e){i=e.v},function(e){u=e.n},function(e){c=e.R},function(e){o=e.T},null],execute:function(){var r=function(){return":host{display:none}"};var d=undefined&&undefined.__decorate||function(e,t,n,s){var f=arguments.length,i=f<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,u;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")i=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)if(u=e[c])i=(f<3?u(i):f>3?u(t,n,i):u(t,n))||i;return f>3&&i&&Object.defineProperty(t,n,i),i};var a=e("post_tab_panel",function(){function e(e){t(this,e)}e.prototype.componentWillLoad=function(){this.panelId="panel-".concat(this.host.id||u(6))};e.prototype.render=function(){return n(s,{key:"07d93ddaa69253a956ed50cd9ecd6ed039fbc6e2","data-version":i,id:this.panelId,role:"tabpanel",slot:"panels",style:undefined},n("slot",{key:"d6887db4e0e4dc22f8f8fdf098d6068ef4bd1a91"}))};Object.defineProperty(e.prototype,"host",{get:function(){return f(this)},enumerable:false,configurable:true});return e}());d([c(),o("string")],a.prototype,"for",void 0);a.style=r()}}}));
1
+ System.register(["./p-CN_0KCBp.system.js","./p-CHYNOqn0.system.js","./p-Bwi1IyPf.system.js","./p-D4wq7hIE.system.js","./p-BMZcKRx0.system.js","./p-DaxAbTyB.system.js"],(function(e){"use strict";var t,n,s,f,i,u,c,o;return{setters:[function(e){t=e.r;n=e.h;s=e.H;f=e.g},function(e){i=e.v},function(e){u=e.n},function(e){c=e.R},function(e){o=e.T},null],execute:function(){var r=function(){return":host{display:none}"};var a=undefined&&undefined.__decorate||function(e,t,n,s){var f=arguments.length,i=f<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,u;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")i=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)if(u=e[c])i=(f<3?u(i):f>3?u(t,n,i):u(t,n))||i;return f>3&&i&&Object.defineProperty(t,n,i),i};var l=e("post_tab_panel",function(){function e(e){t(this,e)}e.prototype.componentWillLoad=function(){this.panelId="panel-".concat(this.host.id||u(6))};e.prototype.render=function(){return n(s,{key:"51119127b00717573aa2fa270186ea907ce8bfbc","data-version":i,id:this.panelId,role:"tabpanel",slot:"panels",style:undefined},n("slot",{key:"7defd4cfb69b1f2b5f3d36cea10df5aed65eb440"}))};Object.defineProperty(e.prototype,"host",{get:function(){return f(this)},enumerable:false,configurable:true});return e}());a([c(),o("string")],l.prototype,"for",void 0);l.style=r()}}}));
@@ -0,0 +1 @@
1
+ import{r as o,h as e,H as t,g as a}from"./p-h3opCZqH.js";import{v as i}from"./p-tTf1w3A9.js";import{b as s}from"./p-Ck6UMUSA.js";import{R as r}from"./p-DvaRK2lz.js";import{T as n}from"./p-DZMUeI8H.js";import"./p-bR8vy6-s.js";import"./p-vAzHgwTd.js";const d=["grid-1","grid-2","grid-3","grid-4"],p=["prefooter","socialmedia","app","businesssectors","meta","copyright"],l=class{constructor(e){o(this,e),this.device=s.get("device"),this.slotDisplayed={},this.breakpointChange=o=>{this.device=o.detail},this.handleGridSlotChange=this.handleGridSlotChange.bind(this),this.handleSlotChange=this.handleSlotChange.bind(this)}connectedCallback(){globalThis.addEventListener("postBreakpoint:device",this.breakpointChange)}componentWillLoad(){[...d,...p].forEach((o=>{const e=this.host.querySelectorAll(`[slot="${o}"]`);this.updateSlotDisplay(o,e.length>0)}))}disconnectedCallback(){globalThis.removeEventListener("postBreakpoint:device",this.breakpointChange)}handleGridSlotChange(...o){return e=>{o.includes(this.device)&&e.target instanceof HTMLSlotElement&&this.updateSlotDisplay(e.target.name,e.target.assignedElements().length>0)}}handleSlotChange(o){o.target instanceof HTMLSlotElement&&this.updateSlotDisplay(o.target.name,o.target.assignedElements().length>0)}updateSlotDisplay(o,e){this.slotDisplayed[o]!==e&&(this.slotDisplayed={...this.slotDisplayed,[o]:e})}renderAccordion(){return e("post-accordion",{headingLevel:3,multiple:!0},d.map((o=>e("post-accordion-item",{key:o,class:{"d-none":!this.slotDisplayed[o]},collapsed:!0},e("span",{slot:"header"},e("slot",{name:o+"-title"})),e("slot",{onSlotchange:this.handleGridSlotChange("mobile"),name:o})))))}renderColumns(){return d.map((o=>e("div",{key:o,class:{"d-none":!this.slotDisplayed[o]}},e("h3",null,e("slot",{name:o+"-title"})),e("slot",{onSlotchange:this.handleGridSlotChange("tablet","desktop"),name:o}))))}render(){const o=this.slotDisplayed.prefooter,a=this.slotDisplayed.socialmedia,s=this.slotDisplayed.app,r=this.slotDisplayed.businesssectors,n=this.slotDisplayed.meta,p=this.slotDisplayed.copyright,l=d.every((o=>!this.slotDisplayed[o])),f=!l||a||s||r,c=p||n;return e(t,{key:"f668d6ba8da065dacae35ef5b62ee53de08e752b","data-version":i,"data-color-scheme":"light"},e("footer",{key:"a2d5506e10de46e0c457795a241f7c121bccabbf"},e("h2",{key:"6ab3e65fca3282f2c9e885b380759ccd06fdebb1",class:"visually-hidden"},this.textFooter),e("div",{key:"77575484be6954dedaea636720d739fabd12393b",class:{prefooter:!0,"d-none":!o}},e("div",{key:"10c9bd63fe081645b83e0e4630185da0b2f3125b",class:"footer-container"},e("slot",{key:"c73b907f6f0b2210c0fc33d3980e89b303599ca6",onSlotchange:this.handleSlotChange,name:"prefooter"}))),e("div",{key:"facda7dade1905087e8f1d23505f2afc381f56df",class:{"footer-main":!0,"d-none":!f}},e("div",{key:"09fcf43c02bab8f475d400c5fed66fababde2bfd",class:"footer-container"},e("div",{key:"25362e6384b6f1cdea3e7901e1afef6926e7b855",class:{"footer-grid":!0,"d-none":l}},"mobile"===this.device?this.renderAccordion():this.renderColumns()),e("div",{key:"0d4f176302870c035b517a9d6df34fd5bd2268ae",class:{"footer-column":!0,"d-none":!a&&!s}},e("div",{key:"c109f4a4e6ee2654f3312924c0afe2ccb86c35c5",class:{"footer-socialmedia":!0,"d-none":!a}},e("slot",{key:"50b9083d8962ac635f5b8e9124d401cb8113fd16",onSlotchange:this.handleSlotChange,name:"socialmedia"})),e("div",{key:"f27f992e9f3fa51f0b1a46263b8b06db904c7326",class:{"footer-app":!0,"d-none":!s}},e("slot",{key:"b2312f504866d55a4214ea2c5a959f63d72224f5",onSlotchange:this.handleSlotChange,name:"app"}))),e("div",{key:"08887180c9834a3c843227e74038c10e59eff574",class:{"footer-businesssectors":!0,"d-none":!r}},e("slot",{key:"3c06ae979a57241646898761d7e4c07110f9982b",onSlotchange:this.handleSlotChange,name:"businesssectors"})))),e("div",{key:"2b306190837589565cb1f7a849ae5ed6fb95e2f4",class:{"footer-base":!0,"d-none":!c}},e("div",{key:"e399157216b6acd98e6fcb802f01fc50086c268c",class:"footer-container"},e("div",{key:"2b594870e3256173f6a2bd293e5050cc7733e215",class:{"footer-copyright":!0,"d-none":!p}},e("slot",{key:"a79f43ab477dc12d1b9d34635784ac45feeeab59",onSlotchange:this.handleSlotChange,name:"copyright"})),e("div",{key:"3298f106b3ae0fd387dd407f5b3276d99e584eeb",class:{"footer-meta":!0,"d-none":!n}},e("slot",{key:"49b28b37aad643116441612ef10f9edcad9df2c3",onSlotchange:this.handleSlotChange,name:"meta"}))))))}get host(){return a(this)}};(function(o,e,t,a){var i,s=arguments.length,r=s<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,e,t,a);else for(var n=o.length-1;n>=0;n--)(i=o[n])&&(r=(s<3?i(r):s>3?i(e,t,r):i(e,t))||r);s>3&&r&&Object.defineProperty(e,t,r)})([r(),n("string")],l.prototype,"textFooter",void 0),l.style=":host{display:block}footer{--post-footer-container-padding-inline:16px;--post-footer-container-max-width:1200px;--post-footer-prefooter-padding-block:16px;--post-footer-grid-template:auto / auto;--post-footer-grid-padding-block:32px;--post-footer-column-flex-direction:column;--post-footer-column-align-items:start;--post-footer-column-gap:0;--post-footer-list-flex-direction:column;--post-footer-list-gap:8px;--post-footer-list-align-items:start;--post-footer-socialmedia-padding-block:16px;--post-footer-app-padding-block:var(--post-footer-socialmedia-padding-block);--post-footer-businesssectors-padding-block:var(--post-footer-socialmedia-padding-block);--post-footer-base-padding-block:var(--post-footer-socialmedia-padding-block);--post-footer-base-gap:8px;--post-footer-meta-font-size:inherit;--post-footer-copyright-font-size:var(--post-footer-meta-font-size)}@media screen and (min-width: 600px){footer{--post-footer-prefooter-padding-block:32px;--post-footer-grid-template:repeat(2, auto) / repeat(2, auto);--post-footer-list-flex-direction:row;--post-footer-list-gap:16px;--post-footer-list-align-items:center;--post-footer-base-gap:4px}}@media screen and (min-width: 780px){footer{--post-footer-container-padding-inline:40px;--post-footer-grid-padding-block:48px;--post-footer-socialmedia-padding-block:24px}}@media screen and (min-width: 1024px){footer{--post-footer-grid-template:auto / repeat(4, auto);--post-footer-column-flex-direction:row;--post-footer-column-align-items:center;--post-footer-column-gap:32px;--post-footer-list-gap:24px;--post-footer-meta-font-size:16px}}:is(h3,.h3){margin:0;font-size:var(--post-device-font-size-6);line-height:var(--post-device-line-height-heading);font-weight:var(--post-device-font-weight-extra-black);text-wrap:balance}::slotted(ul){list-style:none;padding:0;margin:0}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.footer-container{-webkit-box-sizing:content-box;box-sizing:content-box;margin:0 auto;padding-inline:var(--post-footer-container-padding-inline);max-width:var(--post-footer-container-max-width)}.prefooter{background-color:#fafafa;-webkit-border-before:1px solid #373632;border-block-start:1px solid #373632;padding-block:var(--post-footer-prefooter-padding-block)}.prefooter .footer-container{padding-block:0}.footer-main{background-color:#fc0;-webkit-border-before:1px solid #373632;border-block-start:1px solid #373632}.prefooter:not(.d-none)+.footer-main{-webkit-border-before:unset;border-block-start:unset}.footer-grid{display:grid;grid-template:var(--post-footer-grid-template);gap:32px 24px;padding-block:var(--post-footer-grid-padding-block)}.footer-grid ::part(button),.footer-grid ::part(body){padding-inline:0}.footer-column{display:-ms-flexbox;display:flex;-ms-flex-direction:var(--post-footer-column-flex-direction);flex-direction:var(--post-footer-column-flex-direction);-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:var(--post-footer-column-align-items);align-items:var(--post-footer-column-align-items);-webkit-column-gap:var(--post-footer-column-gap);-moz-column-gap:var(--post-footer-column-gap);column-gap:var(--post-footer-column-gap)}.footer-socialmedia ::slotted(div),.footer-app ::slotted(div),.footer-meta ::slotted(div){display:-ms-flexbox !important;display:flex !important;-ms-flex-direction:var(--post-footer-list-flex-direction) !important;flex-direction:var(--post-footer-list-flex-direction) !important;gap:var(--post-footer-list-gap) !important;-ms-flex-align:var(--post-footer-list-align-items) !important;align-items:var(--post-footer-list-align-items) !important}.footer-socialmedia{padding-block:var(--post-footer-socialmedia-padding-block)}.footer-app{padding-block:var(--post-footer-app-padding-block)}.prefooter ::slotted(div),.footer-businesssectors ::slotted(div){display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;gap:var(--post-footer-list-gap) !important}.footer-businesssectors{padding-block:var(--post-footer-businesssectors-padding-block)}.footer-base{background-color:#fc0;-webkit-border-before:1px solid #373632;border-block-start:1px solid #373632;padding-block:var(--post-footer-base-padding-block);gap:var(--post-footer-base-gap)}.footer-meta{font-size:var(--post-footer-meta-font-size)}.footer-copyright{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;font-size:var(--post-footer-copyright-font-size)}.d-none{display:none}";export{l as post_footer}
@@ -1 +1 @@
1
- import{r as t,h as e,H as o,g as i}from"./p-h3opCZqH.js";import{v as r}from"./p-D9jUbrFT.js";const s=["a","button","input","select","textarea","label","fieldset","optgroup","option"].join(","),n=["a","label[for]",'input[type="checkbox"]','input[type="radio"]'].join(",");function a(t){const e=t.closest("fieldset");return!(!e||!e.disabled)||"disabled"in t&&Boolean(t.disabled)}const c=class{constructor(e){t(this,e)}getDirectTarget(t){for(const e of t.composedPath()){if(e instanceof HTMLSlotElement)break;if(e===this.host)break;if(e instanceof HTMLElement&&e.matches(s))return e}return null}getDelegateTarget(){return this.host.querySelector(n)}dispatchClick(t){const e=this.getDirectTarget(t);if(e&&!a(e))return;const o=this.getDelegateTarget();if(!o||a(o))return;const{ctrlKey:i,shiftKey:r,altKey:s,metaKey:n,button:c}=t;o.dispatchEvent(new MouseEvent("click",{cancelable:!0,bubbles:!0,ctrlKey:i,shiftKey:r,altKey:s,metaKey:n,button:c}))}render(){return e(o,{key:"aa721ba7506fefd66348e09fd17ce828dec89050","data-version":r,onClick:t=>this.dispatchClick(t)},e("slot",{key:"1ad85663662fc0f6c877ff88a6570ff4d4b1fa33"}))}get host(){return i(this)}};c.style=":host{display:block;cursor:pointer;outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host(:focus-within){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(:focus-within){outline-color:Highlight !important}}";export{c as post_linkarea}
1
+ import{r as t,h as e,H as o,g as i}from"./p-h3opCZqH.js";import{v as r}from"./p-tTf1w3A9.js";const s=["a","button","input","select","textarea","label","fieldset","optgroup","option"].join(","),n=["a","label[for]",'input[type="checkbox"]','input[type="radio"]'].join(",");function a(t){const e=t.closest("fieldset");return!(!e||!e.disabled)||"disabled"in t&&Boolean(t.disabled)}const c=class{constructor(e){t(this,e)}getDirectTarget(t){for(const e of t.composedPath()){if(e instanceof HTMLSlotElement)break;if(e===this.host)break;if(e instanceof HTMLElement&&e.matches(s))return e}return null}getDelegateTarget(){return this.host.querySelector(n)}dispatchClick(t){const e=this.getDirectTarget(t);if(e&&!a(e))return;const o=this.getDelegateTarget();if(!o||a(o))return;const{ctrlKey:i,shiftKey:r,altKey:s,metaKey:n,button:c}=t;o.dispatchEvent(new MouseEvent("click",{cancelable:!0,bubbles:!0,ctrlKey:i,shiftKey:r,altKey:s,metaKey:n,button:c}))}render(){return e(o,{key:"ceaff2e12e49f0df50b12770d803f9708b0d7a1c","data-version":r,onClick:t=>this.dispatchClick(t)},e("slot",{key:"f4230e0a8c74fdc143dd1e60843a74a1221396f7"}))}get host(){return i(this)}};c.style=":host{display:block;cursor:pointer;outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host(:focus-within){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(:focus-within){outline-color:Highlight !important}}";export{c as post_linkarea}
@@ -1 +1 @@
1
- import{r as t,h as i,H as e,g as a}from"./p-h3opCZqH.js";import{v as s}from"./p-D9jUbrFT.js";import{P as r}from"./p-BBIc4yKQ.js";import{R as o}from"./p-DvaRK2lz.js";import{T as n}from"./p-DZMUeI8H.js";import"./p-vAzHgwTd.js";var c=function(t,i,e,a){var s,r=arguments.length,o=r<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,e,a);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(o=(r<3?s(o):r>3?s(i,e,o):s(i,e))||o);return r>3&&o&&Object.defineProperty(i,e,o),o};const l=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;var d;!function(t){t.Slotted="slotted",t.Image="image",t.Initials="initials",t[t.Null=null]="Null"}(d||(d={}));const h=class{constructor(i){t(this,i),this.avatarType=null,this.imageUrl="",this.imageAlt="",this.initials="",this.storageKey=""}updateEmail(){this.getAvatarImage()}async getAvatarImage(){let t=!1;this.slottedImage=this.host.querySelector("img");const i=this.slottedImage?.getAttribute("src");i?await this.getImageByProp(i,this.fetchSlottedImage.bind(this))?this.slottedImage.style.display="block":(this.slottedImage.style.display="none",this.avatarType=d.Initials):(this.email?.match(l)&&(t=await this.getImageByProp(this.email,this.fetchImageByEmail.bind(this))),t||(this.avatarType=d.Initials))}async getImageByProp(t,i){if(!t)return!1;let e;try{e=await i(t)}catch(t){return console.info("Loading avatar image failed.",t),!1}return!!e?.ok&&(this.imageUrl=e.url,this.imageAlt=`${this.firstname} ${this.lastname} avatar`,this.avatarType=d.Image,!0)}async fetchImageByEmail(){const t=await async function(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("")))}(this.email),i="https://www.gravatar.com/avatar/{email}?s=80&d=404&r=g".replace("{email}",t);return await fetch(i)}async fetchSlottedImage(t){return await fetch(t,{method:"HEAD"})}slotChanged(){const t=this.host.shadowRoot.querySelector("slot");(t?.assignedNodes({flatten:!0})||[]).forEach((t=>{t.nodeType===Node.ELEMENT_NODE&&"IMG"===t.tagName&&this.observeImageSrcChanges(t)})),this.getAvatarImage()}observeImageSrcChanges(t){this.slottedImageObserver&&this.slottedImageObserver.disconnect(),this.slottedImageObserver=new MutationObserver((t=>{t.forEach((t=>{"attributes"===t.type&&"src"===t.attributeName&&this.getAvatarImage()}))})),this.slottedImageObserver.observe(t,{attributes:!0,attributeFilter:["src"]})}connectedCallback(){this.avatarType=d.Initials,this.getAvatarImage()}render(){const t=[this.firstname,this.lastname].filter(Boolean).map((t=>t.trim())),a=t.map((t=>t.charAt(0))).join("").trim(),r=t.join(" ");return i(e,{key:"ba9c39d64f6a1b77131ba8c603c9be3aad113c53","data-version":s},i("span",{key:"27a9ac87e8978fabf1717f3eb978e39d06670507",class:"slotted"===this.avatarType?"":"d-none"},i("slot",{key:"3fa13670176f2fc3a79a8b11659962f433c37c2e",onSlotchange:this.slotChanged.bind(this)})),"image"===this.avatarType&&i("img",{key:"232099852c2ad8f2c4660eb1077c6d618092cdca",src:this.imageUrl,alt:this.imageAlt}),"initials"===this.avatarType&&i("span",{key:"e6b3bf751a95997a2abef2a16dcd8e2c78d308fa",class:"initials"},a,i("span",{key:"8d869a374678094e2ec5abc146b0b981c9079c15"},this.description??r)))}get host(){return a(this)}static get watchers(){return{email:[{updateEmail:0}]}}};c([o(),n("string")],h.prototype,"firstname",void 0),c([n("string")],h.prototype,"lastname",void 0),c([r(l)],h.prototype,"email",void 0),c([n("string")],h.prototype,"description",void 0),h.style=':host{--post-avatar-bg:var(--post-scheme-color-interactive-primary-enabled-bg2);--post-avatar-fg:var(--post-scheme-color-interactive-primary-enabled-fg3);display:-ms-inline-flexbox;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{-webkit-box-sizing:border-box;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:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;position:relative;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;font-weight:400;-webkit-transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms}.initials span{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}';export{h as post_avatar}
1
+ import{r as t,h as i,H as e,g as a}from"./p-h3opCZqH.js";import{v as s}from"./p-tTf1w3A9.js";import{P as r}from"./p-BBIc4yKQ.js";import{R as o}from"./p-DvaRK2lz.js";import{T as n}from"./p-DZMUeI8H.js";import"./p-vAzHgwTd.js";var c=function(t,i,e,a){var s,r=arguments.length,o=r<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,e,a);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(o=(r<3?s(o):r>3?s(i,e,o):s(i,e))||o);return r>3&&o&&Object.defineProperty(i,e,o),o};const l=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;var d;!function(t){t.Slotted="slotted",t.Image="image",t.Initials="initials",t[t.Null=null]="Null"}(d||(d={}));const h=class{constructor(i){t(this,i),this.avatarType=null,this.imageUrl="",this.imageAlt="",this.initials="",this.storageKey=""}updateEmail(){this.getAvatarImage()}async getAvatarImage(){let t=!1;this.slottedImage=this.host.querySelector("img");const i=this.slottedImage?.getAttribute("src");i?await this.getImageByProp(i,this.fetchSlottedImage.bind(this))?this.slottedImage.style.display="block":(this.slottedImage.style.display="none",this.avatarType=d.Initials):(this.email?.match(l)&&(t=await this.getImageByProp(this.email,this.fetchImageByEmail.bind(this))),t||(this.avatarType=d.Initials))}async getImageByProp(t,i){if(!t)return!1;let e;try{e=await i(t)}catch(t){return console.info("Loading avatar image failed.",t),!1}return!!e?.ok&&(this.imageUrl=e.url,this.imageAlt=`${this.firstname} ${this.lastname} avatar`,this.avatarType=d.Image,!0)}async fetchImageByEmail(){const t=await async function(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("")))}(this.email),i="https://www.gravatar.com/avatar/{email}?s=80&d=404&r=g".replace("{email}",t);return await fetch(i)}async fetchSlottedImage(t){return await fetch(t,{method:"HEAD"})}slotChanged(){const t=this.host.shadowRoot.querySelector("slot");(t?.assignedNodes({flatten:!0})||[]).forEach((t=>{t.nodeType===Node.ELEMENT_NODE&&"IMG"===t.tagName&&this.observeImageSrcChanges(t)})),this.getAvatarImage()}observeImageSrcChanges(t){this.slottedImageObserver&&this.slottedImageObserver.disconnect(),this.slottedImageObserver=new MutationObserver((t=>{t.forEach((t=>{"attributes"===t.type&&"src"===t.attributeName&&this.getAvatarImage()}))})),this.slottedImageObserver.observe(t,{attributes:!0,attributeFilter:["src"]})}connectedCallback(){this.avatarType=d.Initials,this.getAvatarImage()}render(){const t=[this.firstname,this.lastname].filter(Boolean).map((t=>t.trim())),a=t.map((t=>t.charAt(0))).join("").trim(),r=t.join(" ");return i(e,{key:"ba9c39d64f6a1b77131ba8c603c9be3aad113c53","data-version":s},i("span",{key:"27a9ac87e8978fabf1717f3eb978e39d06670507",class:"slotted"===this.avatarType?"":"d-none"},i("slot",{key:"3fa13670176f2fc3a79a8b11659962f433c37c2e",onSlotchange:this.slotChanged.bind(this)})),"image"===this.avatarType&&i("img",{key:"232099852c2ad8f2c4660eb1077c6d618092cdca",src:this.imageUrl,alt:this.imageAlt}),"initials"===this.avatarType&&i("span",{key:"e6b3bf751a95997a2abef2a16dcd8e2c78d308fa",class:"initials"},a,i("span",{key:"8d869a374678094e2ec5abc146b0b981c9079c15"},this.description??r)))}get host(){return a(this)}static get watchers(){return{email:[{updateEmail:0}]}}};c([o(),n("string")],h.prototype,"firstname",void 0),c([n("string")],h.prototype,"lastname",void 0),c([r(l)],h.prototype,"email",void 0),c([n("string")],h.prototype,"description",void 0),h.style=':host{--post-avatar-bg:var(--post-scheme-color-interactive-primary-enabled-bg2);--post-avatar-fg:var(--post-scheme-color-interactive-primary-enabled-fg3);display:-ms-inline-flexbox;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{-webkit-box-sizing:border-box;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:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;position:relative;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;font-weight:400;-webkit-transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms}.initials span{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}';export{h as post_avatar}
@@ -1 +1 @@
1
- import{r as t,c as s,h as i,H as e,g as o}from"./p-h3opCZqH.js";import{v as h}from"./p-D9jUbrFT.js";import{E as a}from"./p-rEfV4v4a.js";const n=class{constructor(i){t(this,i),this.postOptionActive=s(this,"postOptionActive"),this.highlightedIndex=-1,this.visibleOptions=[],this.diacriticPattern=/[\u0300-\u036F]/u,this.registerOptions=()=>{this.visibleOptions=this.options},this.updateSelection=t=>{this.options.forEach((s=>{s.selected=s.value===t,s.highlighted=!1})),this.highlightedIndex=-1,this.filter("")},this.clearActive=()=>{this.highlightedIndex=-1,this.postOptionActive.emit(null)},this.normalizeText=t=>t.trim().normalize("NFD").replace(this.diacriticPattern,"").toLocaleLowerCase(),this.resetFilter=()=>{this.visibleOptions=this.options,this.options.forEach((t=>{t.hidden=!1,t.highlighted=!1}))}}get options(){return Array.from(this.host.querySelectorAll("post-listbox-option"))}get inputElement(){let t=this.host.closest("post-autocomplete");return t||(t=document.querySelector(`post-autocomplete[listbox="${this.host.id}"]`)),t?.querySelector("input")}componentWillLoad(){this.registerOptions()}async show(){const t=this.inputElement;t&&this.popoverContainer?.show(t)}async hide(){this.popoverContainer?.hide()}async filter(t){const s=this.normalizeText(t);s?this.visibleOptions=this.options.filter((t=>{const i=this.normalizeText(t.textContent),e=this.normalizeText(t.value).includes(s)||i.includes(s);return t.hidden=!e,e})):this.resetFilter(),this.clearActive()}async clearSelection(){this.updateSelection()}async navigate(t){if(0===this.visibleOptions.length)return;switch(this.highlightedIndex>=0&&(this.visibleOptions[this.highlightedIndex].highlighted=!1),t){case"first":this.highlightedIndex=0;break;case"last":this.highlightedIndex=this.visibleOptions.length-1;break;case"up":this.highlightedIndex=(this.highlightedIndex-1+this.visibleOptions.length)%this.visibleOptions.length;break;case"down":this.highlightedIndex=(this.highlightedIndex+1)%this.visibleOptions.length}const s=this.visibleOptions[this.highlightedIndex];s.scrollIntoView({behavior:"smooth",block:"end"}),s.highlighted=!0,this.postOptionActive.emit(s.id)}async selectActive(){if(this.highlightedIndex>=0){const t=this.visibleOptions[this.highlightedIndex];this.updateSelection(t.value),this.host.dispatchEvent(new CustomEvent("postOptionSelected",{bubbles:!0,detail:t.value}))}}optionClicked(t){this.updateSelection(t.detail)}render(){return i(e,{key:"d9008aa55aca4e0a65fdffd67485d74ddc4069f6","data-version":h,role:"listbox"},i("post-popovercontainer",{key:"5ba4d68483581101ca4bf6fea04102fa883b71d1",placement:"bottom-start",ref:t=>this.popoverContainer=t},i("slot",{key:"286a31eff1b70ec35efcfa745103933598589f2a",name:"blank-slate"}),i("slot",{key:"4cebce7de3143c3eb1deafa57209f7295aa6ec44"})))}get host(){return o(this)}};(function(t,s,i,e){var o,h=arguments.length,a=h<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,s,i,e);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(h<3?o(a):h>3?o(s,i,a):o(s,i))||a);h>3&&a&&Object.defineProperty(s,i,a)})([a("post-listbox-option")],n.prototype,"optionClicked",null),n.style="post-popovercontainer{border-radius:4px;overflow:hidden;-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300)}div[role=listbox]{max-height:384px;overflow:auto;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}";export{n as post_listbox}
1
+ import{r as t,c as s,h as i,H as e,g as o}from"./p-h3opCZqH.js";import{v as h}from"./p-tTf1w3A9.js";import{E as a}from"./p-rEfV4v4a.js";const n=class{constructor(i){t(this,i),this.postOptionActive=s(this,"postOptionActive"),this.highlightedIndex=-1,this.visibleOptions=[],this.diacriticPattern=/[\u0300-\u036F]/u,this.registerOptions=()=>{this.visibleOptions=this.options},this.updateSelection=t=>{this.options.forEach((s=>{s.selected=s.value===t,s.highlighted=!1})),this.highlightedIndex=-1,this.filter("")},this.clearActive=()=>{this.highlightedIndex=-1,this.postOptionActive.emit(null)},this.normalizeText=t=>t.trim().normalize("NFD").replace(this.diacriticPattern,"").toLocaleLowerCase(),this.resetFilter=()=>{this.visibleOptions=this.options,this.options.forEach((t=>{t.hidden=!1,t.highlighted=!1}))}}get options(){return Array.from(this.host.querySelectorAll("post-listbox-option"))}get inputElement(){let t=this.host.closest("post-autocomplete");return t||(t=document.querySelector(`post-autocomplete[listbox="${this.host.id}"]`)),t?.querySelector("input")}componentWillLoad(){this.registerOptions()}async show(){const t=this.inputElement;t&&this.popoverContainer?.show(t)}async hide(){this.popoverContainer?.hide()}async filter(t){const s=this.normalizeText(t);s?this.visibleOptions=this.options.filter((t=>{const i=this.normalizeText(t.textContent),e=this.normalizeText(t.value).includes(s)||i.includes(s);return t.hidden=!e,e})):this.resetFilter(),this.clearActive()}async clearSelection(){this.updateSelection()}async navigate(t){if(0===this.visibleOptions.length)return;switch(this.highlightedIndex>=0&&(this.visibleOptions[this.highlightedIndex].highlighted=!1),t){case"first":this.highlightedIndex=0;break;case"last":this.highlightedIndex=this.visibleOptions.length-1;break;case"up":this.highlightedIndex=(this.highlightedIndex-1+this.visibleOptions.length)%this.visibleOptions.length;break;case"down":this.highlightedIndex=(this.highlightedIndex+1)%this.visibleOptions.length}const s=this.visibleOptions[this.highlightedIndex];s.scrollIntoView({behavior:"smooth",block:"end"}),s.highlighted=!0,this.postOptionActive.emit(s.id)}async selectActive(){if(this.highlightedIndex>=0){const t=this.visibleOptions[this.highlightedIndex];this.updateSelection(t.value),this.host.dispatchEvent(new CustomEvent("postOptionSelected",{bubbles:!0,detail:t.value}))}}optionClicked(t){this.updateSelection(t.detail)}render(){return i(e,{key:"55f1f7335a5eed38163aa58a43f091f130a9a2ff","data-version":h,role:"listbox"},i("post-popovercontainer",{key:"303a6b38d8c5e5fae7b295dd0a58008c7b39a23f",placement:"bottom-start",ref:t=>this.popoverContainer=t},i("slot",{key:"165627beb864c21081796db3d380eded51e780dc",name:"blank-slate"}),i("slot",{key:"57d445590587148bdb5e4d5d7338fb4003020a2a"})))}get host(){return o(this)}};(function(t,s,i,e){var o,h=arguments.length,a=h<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,s,i,e);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(h<3?o(a):h>3?o(s,i,a):o(s,i))||a);h>3&&a&&Object.defineProperty(s,i,a)})([a("post-listbox-option")],n.prototype,"optionClicked",null),n.style="post-popovercontainer{border-radius:4px;overflow:hidden;-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300)}div[role=listbox]{max-height:384px;overflow:auto;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}";export{n as post_listbox}