@swisspost/design-system-components 10.0.0-next.68 → 10.0.0-next.69

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 (462) hide show
  1. package/dist/.config/rollup-plugin.air-datepicker-locale.js +30 -0
  2. package/dist/cjs/_air-datepicker-locale_ar-CWOSiErt.js +5 -0
  3. package/dist/cjs/_air-datepicker-locale_bg-JFWSZzWm.js +5 -0
  4. package/dist/cjs/_air-datepicker-locale_ca-D4TAa7rI.js +5 -0
  5. package/dist/cjs/_air-datepicker-locale_cs-DosuWhKM.js +5 -0
  6. package/dist/cjs/_air-datepicker-locale_da-B5NHFJuC.js +5 -0
  7. package/dist/cjs/_air-datepicker-locale_de-pCyAfzJ2.js +5 -0
  8. package/dist/cjs/_air-datepicker-locale_el-Cpwc-DA1.js +5 -0
  9. package/dist/cjs/_air-datepicker-locale_en-Be7ImjN_.js +5 -0
  10. package/dist/cjs/_air-datepicker-locale_es-Cv0KAzTX.js +5 -0
  11. package/dist/cjs/_air-datepicker-locale_eu-DIWyMMth.js +5 -0
  12. package/dist/cjs/_air-datepicker-locale_fi-D0NlYCfL.js +5 -0
  13. package/dist/cjs/_air-datepicker-locale_fr-SkEOXj1I.js +5 -0
  14. package/dist/cjs/_air-datepicker-locale_hr-BrTsx2iQ.js +5 -0
  15. package/dist/cjs/_air-datepicker-locale_hu-a5Toa3rt.js +5 -0
  16. package/dist/cjs/_air-datepicker-locale_id-h0ieLcJv.js +5 -0
  17. package/dist/cjs/_air-datepicker-locale_it-DQeeF5n7.js +5 -0
  18. package/dist/cjs/_air-datepicker-locale_ja-C78DHDAv.js +5 -0
  19. package/dist/cjs/_air-datepicker-locale_ko-BGSYNW_t.js +5 -0
  20. package/dist/cjs/_air-datepicker-locale_nb-BQkZ_Pvp.js +5 -0
  21. package/dist/cjs/_air-datepicker-locale_nl-DG6dvxj-.js +5 -0
  22. package/dist/cjs/_air-datepicker-locale_pl-mZxBq8TF.js +5 -0
  23. package/dist/cjs/_air-datepicker-locale_pt-sCO-c8dQ.js +5 -0
  24. package/dist/cjs/_air-datepicker-locale_ro-Cf2HyYTE.js +5 -0
  25. package/dist/cjs/_air-datepicker-locale_ru-BS-yHOKw.js +5 -0
  26. package/dist/cjs/_air-datepicker-locale_si-C-vceOjt.js +5 -0
  27. package/dist/cjs/_air-datepicker-locale_sk-D6Sexd7V.js +5 -0
  28. package/dist/cjs/_air-datepicker-locale_sl-C769P2Cr.js +5 -0
  29. package/dist/cjs/_air-datepicker-locale_sv-DV21M0v9.js +5 -0
  30. package/dist/cjs/_air-datepicker-locale_th-HFoj3y5r.js +5 -0
  31. package/dist/cjs/_air-datepicker-locale_tr-C4soRqRo.js +5 -0
  32. package/dist/cjs/_air-datepicker-locale_uk-BM5nVNZS.js +5 -0
  33. package/dist/cjs/_air-datepicker-locale_zh-B4bR_9wv.js +5 -0
  34. package/dist/cjs/{index-Du1lKw8D.js → index-DPdHkdGf.js} +353 -1933
  35. package/dist/cjs/index-YBj3gUJp.js +114540 -0
  36. package/dist/cjs/{index.browser-Doj636JV.js → index.browser-BVb9l9T_.js} +1 -1
  37. package/dist/cjs/loader.cjs.js +2 -2
  38. package/dist/{esm/long-press-event-C_2k3G1c.js → cjs/long-press-event-Dx21Ojod.js} +13 -1
  39. package/dist/cjs/{package-DB6yM9Rp.js → package-CzSn3NmD.js} +1 -1
  40. package/dist/cjs/post-accordion_2.cjs.entry.js +4 -4
  41. package/dist/cjs/post-autocomplete.cjs.entry.js +36 -10
  42. package/dist/cjs/post-avatar.cjs.entry.js +4 -4
  43. package/dist/cjs/post-back-to-top.cjs.entry.js +4 -4
  44. package/dist/cjs/post-banner.cjs.entry.js +4 -4
  45. package/dist/cjs/post-breadcrumb-item.cjs.entry.js +4 -4
  46. package/dist/cjs/post-breadcrumbs.cjs.entry.js +5 -5
  47. package/dist/cjs/post-closebutton_14.cjs.entry.js +59 -57
  48. package/dist/cjs/post-collapsible_2.cjs.entry.js +5 -5
  49. package/dist/cjs/post-components.cjs.js +3 -3
  50. package/dist/cjs/post-date-picker.cjs.entry.js +368 -268
  51. package/dist/cjs/post-footer.cjs.entry.js +5 -5
  52. package/dist/cjs/post-linkarea.cjs.entry.js +3 -3
  53. package/dist/cjs/post-listbox-option.cjs.entry.js +4 -4
  54. package/dist/cjs/post-listbox.cjs.entry.js +4 -4
  55. package/dist/cjs/post-login-widget.cjs.entry.js +3 -3
  56. package/dist/cjs/post-number-input.cjs.entry.js +7 -7
  57. package/dist/cjs/post-pagination.cjs.entry.js +5 -5
  58. package/dist/cjs/post-popover-trigger.cjs.entry.js +4 -4
  59. package/dist/cjs/post-popover.cjs.entry.js +4 -4
  60. package/dist/cjs/post-rating.cjs.entry.js +4 -4
  61. package/dist/cjs/post-stepper-item.cjs.entry.js +3 -3
  62. package/dist/cjs/post-stepper.cjs.entry.js +6 -6
  63. package/dist/cjs/post-tab-item.cjs.entry.js +5 -5
  64. package/dist/cjs/post-tab-panel.cjs.entry.js +5 -5
  65. package/dist/cjs/post-tabs.cjs.entry.js +5 -5
  66. package/dist/cjs/post-tooltip-trigger.cjs.entry.js +5 -5
  67. package/dist/cjs/post-tooltip.cjs.entry.js +5 -5
  68. package/dist/collection/collection-manifest.json +2 -1
  69. package/dist/collection/components/post-autocomplete/post-autocomplete.css +1 -1
  70. package/dist/collection/components/post-autocomplete/post-autocomplete.js +52 -7
  71. package/dist/collection/components/post-avatar/post-avatar.js +1 -1
  72. package/dist/collection/components/post-back-to-top/post-back-to-top.js +1 -1
  73. package/dist/collection/components/post-banner/post-banner.js +1 -1
  74. package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +1 -1
  75. package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +2 -2
  76. package/dist/collection/components/post-closebutton/post-closebutton.css +1 -1
  77. package/dist/collection/components/post-closebutton/post-closebutton.js +1 -1
  78. package/dist/collection/components/post-collapsible/post-collapsible.js +1 -1
  79. package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +1 -1
  80. package/dist/collection/components/post-date-picker/air-locales.js +34 -0
  81. package/dist/collection/components/post-date-picker/constants.js +42 -0
  82. package/dist/collection/components/post-date-picker/post-date-picker.css +6 -2
  83. package/dist/collection/components/post-date-picker/post-date-picker.js +295 -135
  84. package/dist/collection/components/post-footer/post-footer.js +1 -1
  85. package/dist/collection/components/post-header/post-header.css +1 -1
  86. package/dist/collection/components/post-header/post-header.js +5 -5
  87. package/dist/collection/components/post-icon/post-icon.js +1 -1
  88. package/dist/collection/components/post-language-menu/post-language-menu.css +1 -1
  89. package/dist/collection/components/post-language-menu/post-language-menu.js +11 -1
  90. package/dist/collection/components/post-linkarea/post-linkarea.js +1 -1
  91. package/dist/collection/components/post-listbox/post-listbox.js +1 -1
  92. package/dist/collection/components/post-listbox-option/post-listbox-option.js +2 -2
  93. package/dist/collection/components/post-login-widget/post-login-widget.js +1 -1
  94. package/dist/collection/components/post-logo/post-logo.js +1 -1
  95. package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +1 -1
  96. package/dist/collection/components/post-megadropdown/post-megadropdown.css +1 -1
  97. package/dist/collection/components/post-megadropdown/post-megadropdown.js +1 -1
  98. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +1 -1
  99. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +1 -1
  100. package/dist/collection/components/post-menu/post-menu.js +3 -2
  101. package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +1 -1
  102. package/dist/collection/components/post-number-input/post-number-input.css +1 -1
  103. package/dist/collection/components/post-number-input/post-number-input.js +2 -2
  104. package/dist/collection/components/post-pagination/post-pagination.css +1 -1
  105. package/dist/collection/components/post-popover/post-popover.js +2 -2
  106. package/dist/collection/components/post-popover-trigger/post-popover-trigger.js +1 -1
  107. package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
  108. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +4 -11
  109. package/dist/collection/components/post-rating/post-rating.js +1 -1
  110. package/dist/collection/components/post-stepper/post-stepper.js +4 -4
  111. package/dist/collection/components/post-stepper-item/post-stepper-item.js +1 -1
  112. package/dist/collection/components/post-tab-item/post-tab-item.js +1 -1
  113. package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
  114. package/dist/collection/components/post-tabs/post-tabs.js +2 -2
  115. package/dist/collection/components/post-togglebutton/post-togglebutton.js +1 -1
  116. package/dist/collection/components/post-tooltip/post-tooltip.css +1 -1
  117. package/dist/collection/components/post-tooltip/post-tooltip.js +2 -2
  118. package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +1 -1
  119. package/dist/collection/utils/index.js +1 -0
  120. package/dist/collection/utils/is-iso-date.js +7 -6
  121. package/dist/collection/utils/locales.js +17 -0
  122. package/dist/components/_air-datepicker-locale_ar.js +1 -0
  123. package/dist/components/_air-datepicker-locale_bg.js +1 -0
  124. package/dist/components/_air-datepicker-locale_ca.js +1 -0
  125. package/dist/components/_air-datepicker-locale_cs.js +1 -0
  126. package/dist/components/_air-datepicker-locale_da.js +1 -0
  127. package/dist/components/_air-datepicker-locale_de.js +1 -0
  128. package/dist/components/_air-datepicker-locale_el.js +1 -0
  129. package/dist/components/_air-datepicker-locale_en.js +1 -0
  130. package/dist/components/_air-datepicker-locale_es.js +1 -0
  131. package/dist/components/_air-datepicker-locale_eu.js +1 -0
  132. package/dist/components/_air-datepicker-locale_fi.js +1 -0
  133. package/dist/components/_air-datepicker-locale_fr.js +1 -0
  134. package/dist/components/_air-datepicker-locale_hr.js +1 -0
  135. package/dist/components/_air-datepicker-locale_hu.js +1 -0
  136. package/dist/components/_air-datepicker-locale_id.js +1 -0
  137. package/dist/components/_air-datepicker-locale_it.js +1 -0
  138. package/dist/components/_air-datepicker-locale_ja.js +1 -0
  139. package/dist/components/_air-datepicker-locale_ko.js +1 -0
  140. package/dist/components/_air-datepicker-locale_nb.js +1 -0
  141. package/dist/components/_air-datepicker-locale_nl.js +1 -0
  142. package/dist/components/_air-datepicker-locale_pl.js +1 -0
  143. package/dist/components/_air-datepicker-locale_pt.js +1 -0
  144. package/dist/components/_air-datepicker-locale_ro.js +1 -0
  145. package/dist/components/_air-datepicker-locale_ru.js +1 -0
  146. package/dist/components/_air-datepicker-locale_si.js +1 -0
  147. package/dist/components/_air-datepicker-locale_sk.js +1 -0
  148. package/dist/components/_air-datepicker-locale_sl.js +1 -0
  149. package/dist/components/_air-datepicker-locale_sv.js +1 -0
  150. package/dist/components/_air-datepicker-locale_th.js +1 -0
  151. package/dist/components/_air-datepicker-locale_tr.js +1 -0
  152. package/dist/components/_air-datepicker-locale_uk.js +1 -0
  153. package/dist/components/_air-datepicker-locale_zh.js +1 -0
  154. package/dist/components/index3.js +6 -0
  155. package/dist/components/long-press-event.js +1 -1
  156. package/dist/components/package.js +1 -1
  157. package/dist/components/post-accordion-item2.js +1 -1
  158. package/dist/components/post-accordion2.js +1 -1
  159. package/dist/components/post-autocomplete.js +1 -1
  160. package/dist/components/post-avatar.js +1 -1
  161. package/dist/components/post-back-to-top.js +1 -1
  162. package/dist/components/post-banner.js +1 -1
  163. package/dist/components/post-breadcrumb-item2.js +1 -1
  164. package/dist/components/post-breadcrumbs.js +1 -1
  165. package/dist/components/post-closebutton2.js +1 -1
  166. package/dist/components/post-collapsible-trigger2.js +1 -1
  167. package/dist/components/post-collapsible2.js +1 -1
  168. package/dist/components/post-date-picker.js +1 -1
  169. package/dist/components/post-footer.js +1 -1
  170. package/dist/components/post-header.js +1 -1
  171. package/dist/components/post-icon2.js +1 -1
  172. package/dist/components/post-language-menu-item.js +1 -1
  173. package/dist/components/post-language-menu.js +1 -1
  174. package/dist/components/post-linkarea.js +1 -1
  175. package/dist/components/post-listbox-option.js +1 -1
  176. package/dist/components/post-listbox.js +1 -1
  177. package/dist/components/post-login-widget.js +1 -1
  178. package/dist/components/post-logo.js +1 -1
  179. package/dist/components/post-mainnavigation.js +1 -1
  180. package/dist/components/post-megadropdown-trigger.js +1 -1
  181. package/dist/components/post-megadropdown.js +1 -1
  182. package/dist/components/post-menu-trigger2.js +1 -1
  183. package/dist/components/post-menu2.js +1 -1
  184. package/dist/components/post-number-input.js +1 -1
  185. package/dist/components/post-pagination.js +1 -1
  186. package/dist/components/post-popover-trigger.js +1 -1
  187. package/dist/components/post-popover.js +1 -1
  188. package/dist/components/post-popovercontainer2.js +1 -1
  189. package/dist/components/post-rating.js +1 -1
  190. package/dist/components/post-stepper-item.js +1 -1
  191. package/dist/components/post-stepper.js +1 -1
  192. package/dist/components/post-tab-item.js +1 -1
  193. package/dist/components/post-tab-panel.js +1 -1
  194. package/dist/components/post-tabs.js +1 -1
  195. package/dist/components/post-togglebutton2.js +1 -1
  196. package/dist/components/post-tooltip-trigger.js +1 -1
  197. package/dist/components/post-tooltip.js +1 -1
  198. package/dist/components/react/index.js +1 -1
  199. package/dist/components/react/p-B0UL6WWC.js +1 -0
  200. package/dist/components/react/p-B4l5EAoq.js +1 -0
  201. package/dist/components/react/{p-CmkOK7QT.js → p-B4tq6hiA.js} +1 -1
  202. package/dist/components/react/p-B5zHEJHg.js +1 -0
  203. package/dist/components/react/p-BI8IDv3x.js +1 -0
  204. package/dist/components/react/p-BL8Kkhue.js +1 -0
  205. package/dist/components/react/{p-C_2k3G1c.js → p-BNgqqRsB.js} +1 -1
  206. package/dist/components/react/{p-DSw_A3Mh.js → p-BYfHrHCb.js} +1 -1
  207. package/dist/components/react/p-B_mxRlWV.js +1 -0
  208. package/dist/components/react/p-BaE0RQYu.js +1 -0
  209. package/dist/components/react/p-BbOp03Tv.js +1 -0
  210. package/dist/components/react/p-BfPjPzPS.js +1 -0
  211. package/dist/components/react/p-BhrWATcv.js +1 -0
  212. package/dist/components/react/{p-CuiEdxy9.js → p-Bj33xnuq.js} +1 -1
  213. package/dist/components/react/p-Blr-q_ib.js +1 -0
  214. package/dist/components/react/p-ByHlofKQ.js +1 -0
  215. package/dist/components/react/p-BzFuQlXL.js +1 -0
  216. package/dist/components/react/p-C820VY6h.js +1 -0
  217. package/dist/components/react/p-CHD6fZJe.js +1 -0
  218. package/dist/components/react/p-CJcRbvrI.js +6 -0
  219. package/dist/components/react/p-CKeMJgsB.js +1 -0
  220. package/dist/components/react/p-CKmlbvS5.js +1 -0
  221. package/dist/components/react/p-CLO4Gc79.js +1 -0
  222. package/dist/components/react/p-COcQTTvB.js +1 -0
  223. package/dist/components/react/p-CY0xDY7T.js +1 -0
  224. package/dist/components/react/p-CaXZrKGy.js +1 -0
  225. package/dist/components/react/{p-BOqFllSV.js → p-CfQqdIV2.js} +1 -1
  226. package/dist/components/react/p-Cp9RABzO.js +1 -0
  227. package/dist/components/react/{p-wHDwT4JH.js → p-D1KBbwmi.js} +1 -1
  228. package/dist/components/react/p-D74-8pcb.js +1 -0
  229. package/dist/components/react/p-D7MKQ7S-.js +1 -0
  230. package/dist/components/react/p-DAIxJysJ.js +1 -0
  231. package/dist/components/react/p-DLWEDodU.js +1 -0
  232. package/dist/components/react/p-DQq5Bnk2.js +1 -0
  233. package/dist/components/react/{p-DPFq3I2q.js → p-DRtzK3cr.js} +1 -1
  234. package/dist/components/react/p-DYpJ3j2A.js +1 -0
  235. package/dist/components/react/{p-aFH1oGSZ.js → p-De_QjSNJ.js} +1 -1
  236. package/dist/components/react/p-DiNZLG90.js +1 -0
  237. package/dist/components/react/p-Dp41Pg4o.js +1 -0
  238. package/dist/components/react/{p-BFAXoyMM.js → p-DwJ5SwpN.js} +1 -1
  239. package/dist/components/react/{p-rEK_D60T.js → p-HNUXY1z7.js} +1 -1
  240. package/dist/components/react/p-TmutBiUy.js +1 -0
  241. package/dist/components/react/{p-ByN3t9FX.js → p-UY924tHr.js} +1 -1
  242. package/dist/components/react/p-bl3gSRgH.js +1 -0
  243. package/dist/components/react/p-jZZU8-Dx.js +1 -0
  244. package/dist/components/react/p-r5tpdxcW.js +1 -0
  245. package/dist/components/react/p-tHlklq2F.js +1 -0
  246. package/dist/components/react/post-accordion-item.js +1 -1
  247. package/dist/components/react/post-accordion.js +1 -1
  248. package/dist/components/react/post-autocomplete.js +1 -1
  249. package/dist/components/react/post-avatar.js +1 -1
  250. package/dist/components/react/post-back-to-top.js +1 -1
  251. package/dist/components/react/post-banner.js +1 -1
  252. package/dist/components/react/post-breadcrumb-item.js +1 -1
  253. package/dist/components/react/post-breadcrumbs.js +1 -1
  254. package/dist/components/react/post-closebutton.js +1 -1
  255. package/dist/components/react/post-collapsible-trigger.js +1 -1
  256. package/dist/components/react/post-collapsible.js +1 -1
  257. package/dist/components/react/post-date-picker.js +1 -1
  258. package/dist/components/react/post-footer.js +1 -1
  259. package/dist/components/react/post-header.js +1 -1
  260. package/dist/components/react/post-icon.js +1 -1
  261. package/dist/components/react/post-language-menu-item.js +1 -1
  262. package/dist/components/react/post-language-menu.js +1 -1
  263. package/dist/components/react/post-linkarea.js +1 -1
  264. package/dist/components/react/post-listbox-option.js +1 -1
  265. package/dist/components/react/post-listbox.js +1 -1
  266. package/dist/components/react/post-login-widget.js +1 -1
  267. package/dist/components/react/post-logo.js +1 -1
  268. package/dist/components/react/post-mainnavigation.js +1 -1
  269. package/dist/components/react/post-megadropdown-trigger.js +1 -1
  270. package/dist/components/react/post-megadropdown.js +1 -1
  271. package/dist/components/react/post-menu-item.js +1 -1
  272. package/dist/components/react/post-menu-trigger.js +1 -1
  273. package/dist/components/react/post-menu.js +1 -1
  274. package/dist/components/react/post-number-input.js +1 -1
  275. package/dist/components/react/post-pagination.js +1 -1
  276. package/dist/components/react/post-popover-trigger.js +1 -1
  277. package/dist/components/react/post-popover.js +1 -1
  278. package/dist/components/react/post-popovercontainer.js +1 -1
  279. package/dist/components/react/post-rating.js +1 -1
  280. package/dist/components/react/post-stepper-item.js +1 -1
  281. package/dist/components/react/post-stepper.js +1 -1
  282. package/dist/components/react/post-tab-item.js +1 -1
  283. package/dist/components/react/post-tab-panel.js +1 -1
  284. package/dist/components/react/post-tabs.js +1 -1
  285. package/dist/components/react/post-togglebutton.js +1 -1
  286. package/dist/components/react/post-tooltip-trigger.js +1 -1
  287. package/dist/components/react/post-tooltip.js +1 -1
  288. package/dist/docs.d.ts +26 -0
  289. package/dist/docs.json +113 -9
  290. package/dist/esm/_air-datepicker-locale_ar-DQq5Bnk2.js +3 -0
  291. package/dist/esm/_air-datepicker-locale_bg-bl3gSRgH.js +3 -0
  292. package/dist/esm/_air-datepicker-locale_ca-BI8IDv3x.js +3 -0
  293. package/dist/esm/_air-datepicker-locale_cs-COcQTTvB.js +3 -0
  294. package/dist/esm/_air-datepicker-locale_da-jZZU8-Dx.js +3 -0
  295. package/dist/esm/_air-datepicker-locale_de-DiNZLG90.js +3 -0
  296. package/dist/esm/_air-datepicker-locale_el-CY0xDY7T.js +3 -0
  297. package/dist/esm/_air-datepicker-locale_en-D74-8pcb.js +3 -0
  298. package/dist/esm/_air-datepicker-locale_es-TmutBiUy.js +3 -0
  299. package/dist/esm/_air-datepicker-locale_eu-Blr-q_ib.js +3 -0
  300. package/dist/esm/_air-datepicker-locale_fi-B5zHEJHg.js +3 -0
  301. package/dist/esm/_air-datepicker-locale_fr-CLO4Gc79.js +3 -0
  302. package/dist/esm/_air-datepicker-locale_hr-CKeMJgsB.js +3 -0
  303. package/dist/esm/_air-datepicker-locale_hu-B_mxRlWV.js +3 -0
  304. package/dist/esm/_air-datepicker-locale_id-BhrWATcv.js +3 -0
  305. package/dist/esm/_air-datepicker-locale_it-B0UL6WWC.js +3 -0
  306. package/dist/esm/_air-datepicker-locale_ja-DLWEDodU.js +3 -0
  307. package/dist/esm/_air-datepicker-locale_ko-BL8Kkhue.js +3 -0
  308. package/dist/esm/_air-datepicker-locale_nb-BzFuQlXL.js +3 -0
  309. package/dist/esm/_air-datepicker-locale_nl-ByHlofKQ.js +3 -0
  310. package/dist/esm/_air-datepicker-locale_pl-CaXZrKGy.js +3 -0
  311. package/dist/esm/_air-datepicker-locale_pt-CKmlbvS5.js +3 -0
  312. package/dist/esm/_air-datepicker-locale_ro-r5tpdxcW.js +3 -0
  313. package/dist/esm/_air-datepicker-locale_ru-BfPjPzPS.js +3 -0
  314. package/dist/esm/_air-datepicker-locale_si-Dp41Pg4o.js +3 -0
  315. package/dist/esm/_air-datepicker-locale_sk-BaE0RQYu.js +3 -0
  316. package/dist/esm/_air-datepicker-locale_sl-tHlklq2F.js +3 -0
  317. package/dist/esm/_air-datepicker-locale_sv-DYpJ3j2A.js +3 -0
  318. package/dist/esm/_air-datepicker-locale_th-D7MKQ7S-.js +3 -0
  319. package/dist/esm/_air-datepicker-locale_tr-CHD6fZJe.js +3 -0
  320. package/dist/esm/_air-datepicker-locale_uk-Cp9RABzO.js +3 -0
  321. package/dist/esm/_air-datepicker-locale_zh-C820VY6h.js +3 -0
  322. package/dist/esm/index-CJcRbvrI.js +114535 -0
  323. package/dist/esm/{index-Ci4L1rzN.js → index-DmAi35UF.js} +353 -1933
  324. package/dist/esm/{index.browser-BLchVpF6.js → index.browser-nA1BKco0.js} +1 -1
  325. package/dist/esm/loader.js +3 -3
  326. package/dist/{cjs/long-press-event-Q8jMUNXD.js → esm/long-press-event-BNgqqRsB.js} +11 -3
  327. package/dist/esm/package-B4l5EAoq.js +3 -0
  328. package/dist/esm/post-accordion_2.entry.js +4 -4
  329. package/dist/esm/post-autocomplete.entry.js +36 -10
  330. package/dist/esm/post-avatar.entry.js +4 -4
  331. package/dist/esm/post-back-to-top.entry.js +4 -4
  332. package/dist/esm/post-banner.entry.js +4 -4
  333. package/dist/esm/post-breadcrumb-item.entry.js +4 -4
  334. package/dist/esm/post-breadcrumbs.entry.js +5 -5
  335. package/dist/esm/post-closebutton_14.entry.js +56 -54
  336. package/dist/esm/post-collapsible_2.entry.js +5 -5
  337. package/dist/esm/post-components.js +4 -4
  338. package/dist/esm/post-date-picker.entry.js +352 -252
  339. package/dist/esm/post-footer.entry.js +4 -4
  340. package/dist/esm/post-linkarea.entry.js +3 -3
  341. package/dist/esm/post-listbox-option.entry.js +4 -4
  342. package/dist/esm/post-listbox.entry.js +4 -4
  343. package/dist/esm/post-login-widget.entry.js +3 -3
  344. package/dist/esm/post-number-input.entry.js +6 -6
  345. package/dist/esm/post-pagination.entry.js +5 -5
  346. package/dist/esm/post-popover-trigger.entry.js +4 -4
  347. package/dist/esm/post-popover.entry.js +4 -4
  348. package/dist/esm/post-rating.entry.js +4 -4
  349. package/dist/esm/post-stepper-item.entry.js +3 -3
  350. package/dist/esm/post-stepper.entry.js +6 -6
  351. package/dist/esm/post-tab-item.entry.js +5 -5
  352. package/dist/esm/post-tab-panel.entry.js +5 -5
  353. package/dist/esm/post-tabs.entry.js +5 -5
  354. package/dist/esm/post-tooltip-trigger.entry.js +5 -5
  355. package/dist/esm/post-tooltip.entry.js +5 -5
  356. package/dist/post-components/{p-4ad6993e.entry.js → p-0992cba9.entry.js} +1 -1
  357. package/dist/post-components/{p-9bdb92c0.entry.js → p-0c249c71.entry.js} +1 -1
  358. package/dist/post-components/{p-4c021d5f.entry.js → p-1e28d279.entry.js} +1 -1
  359. package/dist/post-components/{p-5f86479f.entry.js → p-220d0eab.entry.js} +1 -1
  360. package/dist/post-components/{p-38880c61.entry.js → p-272de102.entry.js} +1 -1
  361. package/dist/post-components/{p-5c66d070.entry.js → p-30e5bc99.entry.js} +1 -1
  362. package/dist/post-components/p-500a3fc7.entry.js +1 -0
  363. package/dist/post-components/{p-eb89eecb.entry.js → p-52f85cba.entry.js} +1 -1
  364. package/dist/post-components/{p-602960ff.entry.js → p-5664d5b5.entry.js} +1 -1
  365. package/dist/post-components/p-5ade4255.entry.js +1 -0
  366. package/dist/post-components/p-6644e626.entry.js +1 -0
  367. package/dist/post-components/p-694e76be.entry.js +1 -0
  368. package/dist/post-components/p-8b68164f.entry.js +1 -0
  369. package/dist/post-components/{p-cdc11592.entry.js → p-906b669b.entry.js} +1 -1
  370. package/dist/post-components/p-92e4a7f7.entry.js +1 -0
  371. package/dist/post-components/{p-df54677a.entry.js → p-95df4d4e.entry.js} +1 -1
  372. package/dist/post-components/{p-7ad4e293.entry.js → p-9fab1847.entry.js} +1 -1
  373. package/dist/post-components/p-B0UL6WWC.js +1 -0
  374. package/dist/post-components/p-B4l5EAoq.js +1 -0
  375. package/dist/post-components/p-B5zHEJHg.js +1 -0
  376. package/dist/post-components/p-BI8IDv3x.js +1 -0
  377. package/dist/post-components/p-BL8Kkhue.js +1 -0
  378. package/dist/post-components/{p-C_2k3G1c.js → p-BNgqqRsB.js} +1 -1
  379. package/dist/post-components/p-B_mxRlWV.js +1 -0
  380. package/dist/post-components/p-BaE0RQYu.js +1 -0
  381. package/dist/post-components/p-BfPjPzPS.js +1 -0
  382. package/dist/post-components/p-BhrWATcv.js +1 -0
  383. package/dist/post-components/p-Blr-q_ib.js +1 -0
  384. package/dist/post-components/p-ByHlofKQ.js +1 -0
  385. package/dist/post-components/p-BzFuQlXL.js +1 -0
  386. package/dist/post-components/p-C820VY6h.js +1 -0
  387. package/dist/post-components/p-CHD6fZJe.js +1 -0
  388. package/dist/post-components/p-CJcRbvrI.js +6 -0
  389. package/dist/post-components/p-CKeMJgsB.js +1 -0
  390. package/dist/post-components/p-CKmlbvS5.js +1 -0
  391. package/dist/post-components/p-CLO4Gc79.js +1 -0
  392. package/dist/post-components/p-COcQTTvB.js +1 -0
  393. package/dist/post-components/p-CY0xDY7T.js +1 -0
  394. package/dist/post-components/p-CaXZrKGy.js +1 -0
  395. package/dist/post-components/p-Cp9RABzO.js +1 -0
  396. package/dist/post-components/p-D74-8pcb.js +1 -0
  397. package/dist/post-components/p-D7MKQ7S-.js +1 -0
  398. package/dist/post-components/p-DLWEDodU.js +1 -0
  399. package/dist/post-components/p-DQq5Bnk2.js +1 -0
  400. package/dist/post-components/p-DYpJ3j2A.js +1 -0
  401. package/dist/post-components/p-DiNZLG90.js +1 -0
  402. package/dist/post-components/p-DmAi35UF.js +2 -0
  403. package/dist/post-components/p-Dp41Pg4o.js +1 -0
  404. package/dist/post-components/p-TmutBiUy.js +1 -0
  405. package/dist/post-components/p-bl3gSRgH.js +1 -0
  406. package/dist/post-components/p-c70cad6e.entry.js +1 -0
  407. package/dist/post-components/{p-319959ee.entry.js → p-c95fcb40.entry.js} +1 -1
  408. package/dist/post-components/{p-39b2b086.entry.js → p-cca0cf23.entry.js} +1 -1
  409. package/dist/post-components/{p-fd10d5b9.entry.js → p-cd6684e1.entry.js} +1 -1
  410. package/dist/post-components/p-d57462a3.entry.js +1 -0
  411. package/dist/post-components/{p-f64c6491.entry.js → p-d99bdef2.entry.js} +1 -1
  412. package/dist/post-components/{p-e331093d.entry.js → p-dfe811cc.entry.js} +1 -1
  413. package/dist/post-components/p-f14ca918.entry.js +1 -0
  414. package/dist/post-components/{p-e01ce660.entry.js → p-f88a161a.entry.js} +1 -1
  415. package/dist/post-components/p-fc2882a8.entry.js +1 -0
  416. package/dist/post-components/p-jZZU8-Dx.js +1 -0
  417. package/dist/post-components/p-r5tpdxcW.js +1 -0
  418. package/dist/post-components/p-tHlklq2F.js +1 -0
  419. package/dist/post-components/post-components.css +1 -1
  420. package/dist/post-components/post-components.esm.js +1 -1
  421. package/dist/prebuild.js +4 -1
  422. package/dist/types/components/post-autocomplete/post-autocomplete.d.ts +10 -0
  423. package/dist/types/components/post-date-picker/air-locales.d.ts +5 -0
  424. package/dist/types/components/post-date-picker/constants.d.ts +37 -0
  425. package/dist/types/components/post-date-picker/post-date-picker.d.ts +74 -18
  426. package/dist/types/components/post-language-menu/post-language-menu.d.ts +2 -0
  427. package/dist/types/components/post-stepper/post-stepper.d.ts +2 -2
  428. package/dist/types/components.d.ts +286 -80
  429. package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/.config/rollup-plugin.air-datepicker-locale.d.ts +12 -0
  430. package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/types/language-tags.d.ts +1 -0
  431. package/dist/types/language-tags.js +0 -0
  432. package/dist/types/stencil-public-runtime.d.ts +23 -2
  433. package/dist/types/utils/index.d.ts +1 -0
  434. package/dist/types/utils/locales.d.ts +11 -0
  435. package/hydrate/index.js +120010 -4831
  436. package/hydrate/index.mjs +120010 -4831
  437. package/package.json +14 -13
  438. package/dist/cjs/breakpoints-B0Olgvgc.js +0 -206
  439. package/dist/collection/components/post-date-picker/locales.js +0 -10
  440. package/dist/components/breakpoints.js +0 -1
  441. package/dist/components/react/p-BADyL6qQ.js +0 -1
  442. package/dist/components/react/p-BQ3HlJPr.js +0 -1
  443. package/dist/components/react/p-NDMNbu5d.js +0 -1
  444. package/dist/components/react/p-_AAbD0Gm.js +0 -1
  445. package/dist/esm/breakpoints-BQ3HlJPr.js +0 -202
  446. package/dist/esm/package-NDMNbu5d.js +0 -3
  447. package/dist/post-components/p-1edd4d7c.entry.js +0 -1
  448. package/dist/post-components/p-3364b421.entry.js +0 -1
  449. package/dist/post-components/p-631f4bdd.entry.js +0 -1
  450. package/dist/post-components/p-6336ea0b.entry.js +0 -1
  451. package/dist/post-components/p-82871134.entry.js +0 -1
  452. package/dist/post-components/p-8c91a9d8.entry.js +0 -1
  453. package/dist/post-components/p-BQ3HlJPr.js +0 -1
  454. package/dist/post-components/p-Ci4L1rzN.js +0 -2
  455. package/dist/post-components/p-NDMNbu5d.js +0 -1
  456. package/dist/post-components/p-e4fd234d.entry.js +0 -1
  457. package/dist/post-components/p-ee03eed0.entry.js +0 -1
  458. package/dist/post-components/p-f1813327.entry.js +0 -1
  459. package/dist/post-components/p-f1bff988.entry.js +0 -1
  460. package/dist/types/components/post-date-picker/locales.d.ts +0 -6
  461. /package/dist/components/react/{p-BLchVpF6.js → p-nA1BKco0.js} +0 -0
  462. /package/dist/post-components/{p-BLchVpF6.js → p-nA1BKco0.js} +0 -0
@@ -2,257 +2,12 @@ const NAMESPACE = 'post-components';
2
2
  const BUILD = /* post-components */ { hotModuleReplacement: false, hydratedSelectorName: "data-hydrated", lazyLoad: true, propChangeCallback: true, slotRelocation: true, state: true, updatable: true};
3
3
 
4
4
  const globalScripts = () => {};
5
- const globalStyles = ":where(post-accordion,post-accordion-item,post-autocomplete,post-avatar,post-back-to-top,post-banner,post-breadcrumb-item,post-breadcrumbs,post-closebutton,post-collapsible,post-collapsible-trigger,post-date-picker,post-footer,post-header,post-icon,post-language-menu,post-language-menu-item,post-linkarea,post-listbox,post-listbox-option,post-login-widget,post-logo,post-mainnavigation,post-megadropdown,post-megadropdown-trigger,post-menu,post-menu-item,post-menu-trigger,post-number-input,post-pagination,post-popover,post-popover-trigger,post-popovercontainer,post-rating,post-stepper,post-stepper-item,post-tab-item,post-tab-panel,post-tabs,post-togglebutton,post-tooltip,post-tooltip-trigger):not(:defined):not(.hydrated,[data-hydrated]){visibility:hidden}@media (scripting: none){:where(post-accordion,post-accordion-item,post-autocomplete,post-avatar,post-back-to-top,post-banner,post-breadcrumb-item,post-breadcrumbs,post-closebutton,post-collapsible,post-collapsible-trigger,post-date-picker,post-footer,post-header,post-icon,post-language-menu,post-language-menu-item,post-linkarea,post-listbox,post-listbox-option,post-login-widget,post-logo,post-mainnavigation,post-megadropdown,post-megadropdown-trigger,post-menu,post-menu-item,post-menu-trigger,post-number-input,post-pagination,post-popover,post-popover-trigger,post-popovercontainer,post-rating,post-stepper,post-stepper-item,post-tab-item,post-tab-panel,post-tabs,post-togglebutton,post-tooltip,post-tooltip-trigger):not(:defined):not(.hydrated,[data-hydrated]){visibility:visible}}post-accordion:not([multiple]):not(:has([collapsed]))>post-accordion-item~post-accordion-item{--post-collapsible-initial-height:0;--post-collapsible-initial-overflow:hidden;--post-accordion-icon-initial-transform:rotate(-180deg)}.form-label:has(+post-number-input){display:block}.form-label:has(+post-number-input.number-input-sm){padding-inline:var(--post-device-spacing-padding-2);padding-block:var(--post-device-spacing-padding-30);font-weight:var(--post-device-font-weight-bold);font-size:var(--post-device-font-size-7)}.form-label:has(+post-number-input.disabled){color:var(--post-scheme-color-interactive-input-disabled-fg)}post-number-input.form-floating>input.form-control{padding:var(--post-device-spacing-padding-block-29) var(--post-device-spacing-padding-inline-1) var(--post-device-spacing-padding-block-3)}post-number-input.form-floating>input.form-control:focus~label,post-number-input.form-floating>input.form-control:not(:placeholder-shown)~label{padding-block-start:var(--post-device-spacing-padding-block-3);padding-inline:var(--post-device-spacing-padding-inline-1) var(--post-device-spacing-padding-15);font-size:var(--post-device-font-size-10)}post-number-input.form-floating::after{width:var(--post-device-sizing-notification-1);height:var(--post-device-sizing-notification-1)}post-number-input.form-floating:has(>input.form-control.is-valid:not(:disabled))::after,post-number-input.form-floating:has(>input.form-control:-webkit-autofill.is-valid)::after,post-number-input.form-floating:has(>input.form-control.is-invalid:not(:disabled))::after,post-number-input.form-floating:has(>input.form-control:-webkit-autofill.is-invalid)::after{top:calc(var(--post-device-sizing-interactive-button-height-6) / 2);right:calc(\n var(--post-device-spacing-padding-inline-1) +\n (var(--post-device-spacing-padding-23)* 2) +\n var(--post-device-sizing-interactive-icon-size6) +\n (var(--post-device-border-width-default) * 2)\n )}post-number-input input[type=number]{appearance:textfield}post-number-input input[type=number]::-webkit-inner-spin-button,post-number-input input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}post-login-widget>[slot=unauthenticated]{display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;border:unset;font-weight:unset;display:flex;padding:.25rem .625rem;gap:.375rem;font-size:1rem;border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}post-login-widget>[slot=unauthenticated]:hover{text-decoration:none}post-login-widget>[slot=unauthenticated]:disabled{border-style:var(--post-core-border-style-dash)}post-login-widget>[slot=unauthenticated]{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}post-login-widget>[slot=unauthenticated]:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-login-widget>[slot=unauthenticated]:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-login-widget>[slot=unauthenticated]:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-login-widget>[slot=unauthenticated]:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-login-widget>[slot=unauthenticated]:is(a){color:LinkText;border:unset}post-login-widget>[slot=unauthenticated]:is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}post-login-widget>[slot=unauthenticated]:not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}post-login-widget>[slot=unauthenticated]:not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}post-login-widget>[slot=unauthenticated]:hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}post-login-widget>[slot=unauthenticated]:is([aria-current],[aria-pressed=true],[aria-expanded=true],.active){box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-primary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-primary-enabled-bg);color:var(--post-scheme-color-interactive-button-primary-enabled-fg)}post-login-widget>[slot=unauthenticated]:is([aria-current],[aria-pressed=true],[aria-expanded=true],.active):hover{border-color:var(--post-scheme-color-interactive-button-primary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-primary-hover-bg);color:var(--post-scheme-color-interactive-button-primary-hover-fg)}post-login-widget>[slot=unauthenticated]{width:fit-content}@media screen and (min-width: 0)and (max-width: 599.98px){post-login-widget>[slot=unauthenticated]>:not(post-icon){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}post-login-widget>[slot=unauthenticated]>post-icon{font-size:1.5rem}}post-login-widget>[slot=authenticated]>post-menu-trigger>button{border-radius:var(--post-device-border-radius-round) !important}";
5
+ const globalStyles = ":where(post-accordion,post-accordion-item,post-autocomplete,post-avatar,post-back-to-top,post-banner,post-breadcrumb-item,post-breadcrumbs,post-closebutton,post-collapsible,post-collapsible-trigger,post-date-picker,post-footer,post-header,post-icon,post-language-menu,post-language-menu-item,post-linkarea,post-listbox,post-listbox-option,post-login-widget,post-logo,post-mainnavigation,post-megadropdown,post-megadropdown-trigger,post-menu,post-menu-item,post-menu-trigger,post-number-input,post-pagination,post-popover,post-popover-trigger,post-popovercontainer,post-rating,post-stepper,post-stepper-item,post-tab-item,post-tab-panel,post-tabs,post-togglebutton,post-tooltip,post-tooltip-trigger):not(:defined):not(.hydrated,[data-hydrated]){visibility:hidden}@media (scripting: none){:where(post-accordion,post-accordion-item,post-autocomplete,post-avatar,post-back-to-top,post-banner,post-breadcrumb-item,post-breadcrumbs,post-closebutton,post-collapsible,post-collapsible-trigger,post-date-picker,post-footer,post-header,post-icon,post-language-menu,post-language-menu-item,post-linkarea,post-listbox,post-listbox-option,post-login-widget,post-logo,post-mainnavigation,post-megadropdown,post-megadropdown-trigger,post-menu,post-menu-item,post-menu-trigger,post-number-input,post-pagination,post-popover,post-popover-trigger,post-popovercontainer,post-rating,post-stepper,post-stepper-item,post-tab-item,post-tab-panel,post-tabs,post-togglebutton,post-tooltip,post-tooltip-trigger):not(:defined):not(.hydrated,[data-hydrated]){visibility:visible}}post-accordion:not([multiple]):not(:has([collapsed]))>post-accordion-item~post-accordion-item{--post-collapsible-initial-height:0;--post-collapsible-initial-overflow:hidden;--post-accordion-icon-initial-transform:rotate(-180deg)}.form-label:has(+post-number-input){display:block}.form-label:has(+post-number-input.number-input-sm){padding-inline:var(--post-device-spacing-padding-2);padding-block:var(--post-device-spacing-padding-30);font-weight:var(--post-device-font-weight-bold);font-size:var(--post-device-font-size-7)}.form-label:has(+post-number-input.disabled){color:var(--post-scheme-color-interactive-input-disabled-fg)}post-number-input.form-floating>input.form-control{padding:var(--post-device-spacing-padding-block-29) var(--post-device-spacing-padding-inline-1) var(--post-device-spacing-padding-block-3)}post-number-input.form-floating>input.form-control:focus~label,post-number-input.form-floating>input.form-control:not(:placeholder-shown)~label{padding-block-start:var(--post-device-spacing-padding-block-3);padding-inline:var(--post-device-spacing-padding-inline-1) var(--post-device-spacing-padding-15);font-size:var(--post-device-font-size-10)}post-number-input.form-floating::after{width:var(--post-device-sizing-notification-1);height:var(--post-device-sizing-notification-1)}post-number-input.form-floating:has(>input.form-control.is-valid:not(:disabled))::after,post-number-input.form-floating:has(>input.form-control:-webkit-autofill.is-valid)::after,post-number-input.form-floating:has(>input.form-control.is-invalid:not(:disabled))::after,post-number-input.form-floating:has(>input.form-control:-webkit-autofill.is-invalid)::after{top:calc(var(--post-device-sizing-interactive-button-height-6) / 2);right:calc(\n var(--post-device-spacing-padding-inline-1) +\n (var(--post-device-spacing-padding-23)* 2) +\n var(--post-device-sizing-interactive-icon-size6) +\n (var(--post-device-border-width-default) * 2)\n )}post-number-input input[type=number]{appearance:textfield}post-number-input input[type=number]::-webkit-inner-spin-button,post-number-input input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}post-login-widget>[slot=unauthenticated]{display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;border:unset;font-weight:unset;display:flex;padding:.25rem .625rem;gap:.375rem;font-size:1rem;border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}post-login-widget>[slot=unauthenticated]:hover{text-decoration:none}post-login-widget>[slot=unauthenticated]:disabled{border-style:var(--post-core-border-style-dash)}post-login-widget>[slot=unauthenticated]{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}post-login-widget>[slot=unauthenticated]:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-login-widget>[slot=unauthenticated]:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-login-widget>[slot=unauthenticated]:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-login-widget>[slot=unauthenticated]:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-login-widget>[slot=unauthenticated]:is(a){color:LinkText;border:unset}post-login-widget>[slot=unauthenticated]:is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}post-login-widget>[slot=unauthenticated]:not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}post-login-widget>[slot=unauthenticated]:not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}post-login-widget>[slot=unauthenticated]:hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}post-login-widget>[slot=unauthenticated]:is([aria-current],[aria-pressed=true],[aria-expanded=true],.active){box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-primary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-primary-enabled-bg);color:var(--post-scheme-color-interactive-button-primary-enabled-fg)}post-login-widget>[slot=unauthenticated]:is([aria-current],[aria-pressed=true],[aria-expanded=true],.active):hover{border-color:var(--post-scheme-color-interactive-button-primary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-primary-hover-bg);color:var(--post-scheme-color-interactive-button-primary-hover-fg)}post-login-widget>[slot=unauthenticated]{width:fit-content}@media screen and (min-width: 0)and (max-width: 599.98px){post-login-widget>[slot=unauthenticated]>:not(post-icon){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}post-login-widget>[slot=unauthenticated]>post-icon{font-size:1.5rem}}post-login-widget>[slot=authenticated]>post-menu-trigger>button{border-radius:var(--post-device-border-radius-round) !important}";
6
6
 
7
7
  /*
8
- Stencil Client Platform v4.41.1 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Platform v4.43.3 | MIT Licensed | https://stenciljs.com
9
9
  */
10
- var __create = Object.create;
11
- var __defProp = Object.defineProperty;
12
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
13
- var __getOwnPropNames = Object.getOwnPropertyNames;
14
- var __getProtoOf = Object.getPrototypeOf;
15
- var __hasOwnProp = Object.prototype.hasOwnProperty;
16
- var __typeError = (msg) => {
17
- throw TypeError(msg);
18
- };
19
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
20
- var __commonJS = (cb, mod) => function __require() {
21
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
22
- };
23
- var __export = (target, all) => {
24
- for (var name in all)
25
- __defProp(target, name, { get: all[name], enumerable: true });
26
- };
27
- var __copyProps = (to, from, except, desc) => {
28
- if (from && typeof from === "object" || typeof from === "function") {
29
- for (let key of __getOwnPropNames(from))
30
- if (!__hasOwnProp.call(to, key) && key !== except)
31
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
32
- }
33
- return to;
34
- };
35
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
36
- // If the importer is in node compatibility mode or this is not an ESM
37
- // file that has been converted to a CommonJS file using a Babel-
38
- // compatible transform (i.e. "__esModule" has not been set), then set
39
- // "default" to the CommonJS "module.exports" for node compatibility.
40
- __defProp(target, "default", { value: mod, enumerable: true }) ,
41
- mod
42
- ));
43
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
44
- var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
45
- var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
46
- var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
47
- var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
48
- var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
49
10
 
50
- // node_modules/balanced-match/index.js
51
- var require_balanced_match = __commonJS({
52
- "node_modules/balanced-match/index.js"(exports, module) {
53
- module.exports = balanced;
54
- function balanced(a, b, str) {
55
- if (a instanceof RegExp) a = maybeMatch(a, str);
56
- if (b instanceof RegExp) b = maybeMatch(b, str);
57
- var r = range(a, b, str);
58
- return r && {
59
- start: r[0],
60
- end: r[1],
61
- pre: str.slice(0, r[0]),
62
- body: str.slice(r[0] + a.length, r[1]),
63
- post: str.slice(r[1] + b.length)
64
- };
65
- }
66
- function maybeMatch(reg, str) {
67
- var m = str.match(reg);
68
- return m ? m[0] : null;
69
- }
70
- balanced.range = range;
71
- function range(a, b, str) {
72
- var begs, beg, left, right, result;
73
- var ai = str.indexOf(a);
74
- var bi = str.indexOf(b, ai + 1);
75
- var i2 = ai;
76
- if (ai >= 0 && bi > 0) {
77
- if (a === b) {
78
- return [ai, bi];
79
- }
80
- begs = [];
81
- left = str.length;
82
- while (i2 >= 0 && !result) {
83
- if (i2 == ai) {
84
- begs.push(i2);
85
- ai = str.indexOf(a, i2 + 1);
86
- } else if (begs.length == 1) {
87
- result = [begs.pop(), bi];
88
- } else {
89
- beg = begs.pop();
90
- if (beg < left) {
91
- left = beg;
92
- right = bi;
93
- }
94
- bi = str.indexOf(b, i2 + 1);
95
- }
96
- i2 = ai < bi && ai >= 0 ? ai : bi;
97
- }
98
- if (begs.length) {
99
- result = [left, right];
100
- }
101
- }
102
- return result;
103
- }
104
- }
105
- });
106
-
107
- // node_modules/brace-expansion/index.js
108
- var require_brace_expansion = __commonJS({
109
- "node_modules/brace-expansion/index.js"(exports, module) {
110
- var balanced = require_balanced_match();
111
- module.exports = expandTop;
112
- var escSlash = "\0SLASH" + Math.random() + "\0";
113
- var escOpen = "\0OPEN" + Math.random() + "\0";
114
- var escClose = "\0CLOSE" + Math.random() + "\0";
115
- var escComma = "\0COMMA" + Math.random() + "\0";
116
- var escPeriod = "\0PERIOD" + Math.random() + "\0";
117
- function numeric(str) {
118
- return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0);
119
- }
120
- function escapeBraces(str) {
121
- return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod);
122
- }
123
- function unescapeBraces(str) {
124
- return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".");
125
- }
126
- function parseCommaParts(str) {
127
- if (!str)
128
- return [""];
129
- var parts = [];
130
- var m = balanced("{", "}", str);
131
- if (!m)
132
- return str.split(",");
133
- var pre = m.pre;
134
- var body = m.body;
135
- var post = m.post;
136
- var p = pre.split(",");
137
- p[p.length - 1] += "{" + body + "}";
138
- var postParts = parseCommaParts(post);
139
- if (post.length) {
140
- p[p.length - 1] += postParts.shift();
141
- p.push.apply(p, postParts);
142
- }
143
- parts.push.apply(parts, p);
144
- return parts;
145
- }
146
- function expandTop(str) {
147
- if (!str)
148
- return [];
149
- if (str.substr(0, 2) === "{}") {
150
- str = "\\{\\}" + str.substr(2);
151
- }
152
- return expand2(escapeBraces(str), true).map(unescapeBraces);
153
- }
154
- function embrace(str) {
155
- return "{" + str + "}";
156
- }
157
- function isPadded(el) {
158
- return /^-?0\d/.test(el);
159
- }
160
- function lte(i2, y) {
161
- return i2 <= y;
162
- }
163
- function gte(i2, y) {
164
- return i2 >= y;
165
- }
166
- function expand2(str, isTop) {
167
- var expansions = [];
168
- var m = balanced("{", "}", str);
169
- if (!m) return [str];
170
- var pre = m.pre;
171
- var post = m.post.length ? expand2(m.post, false) : [""];
172
- if (/\$$/.test(m.pre)) {
173
- for (var k = 0; k < post.length; k++) {
174
- var expansion = pre + "{" + m.body + "}" + post[k];
175
- expansions.push(expansion);
176
- }
177
- } else {
178
- var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
179
- var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
180
- var isSequence = isNumericSequence || isAlphaSequence;
181
- var isOptions = m.body.indexOf(",") >= 0;
182
- if (!isSequence && !isOptions) {
183
- if (m.post.match(/,(?!,).*\}/)) {
184
- str = m.pre + "{" + m.body + escClose + m.post;
185
- return expand2(str);
186
- }
187
- return [str];
188
- }
189
- var n;
190
- if (isSequence) {
191
- n = m.body.split(/\.\./);
192
- } else {
193
- n = parseCommaParts(m.body);
194
- if (n.length === 1) {
195
- n = expand2(n[0], false).map(embrace);
196
- if (n.length === 1) {
197
- return post.map(function(p) {
198
- return m.pre + n[0] + p;
199
- });
200
- }
201
- }
202
- }
203
- var N;
204
- if (isSequence) {
205
- var x = numeric(n[0]);
206
- var y = numeric(n[1]);
207
- var width = Math.max(n[0].length, n[1].length);
208
- var incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1;
209
- var test = lte;
210
- var reverse = y < x;
211
- if (reverse) {
212
- incr *= -1;
213
- test = gte;
214
- }
215
- var pad = n.some(isPadded);
216
- N = [];
217
- for (var i2 = x; test(i2, y); i2 += incr) {
218
- var c;
219
- if (isAlphaSequence) {
220
- c = String.fromCharCode(i2);
221
- if (c === "\\")
222
- c = "";
223
- } else {
224
- c = String(i2);
225
- if (pad) {
226
- var need = width - c.length;
227
- if (need > 0) {
228
- var z = new Array(need + 1).join("0");
229
- if (i2 < 0)
230
- c = "-" + z + c.slice(1);
231
- else
232
- c = z + c;
233
- }
234
- }
235
- }
236
- N.push(c);
237
- }
238
- } else {
239
- N = [];
240
- for (var j = 0; j < n.length; j++) {
241
- N.push.apply(N, expand2(n[j], false));
242
- }
243
- }
244
- for (var j = 0; j < N.length; j++) {
245
- for (var k = 0; k < post.length; k++) {
246
- var expansion = pre + N[j] + post[k];
247
- if (!isTop || isSequence || expansion)
248
- expansions.push(expansion);
249
- }
250
- }
251
- }
252
- return expansions;
253
- }
254
- }
255
- });
256
11
 
257
12
  // src/utils/constants.ts
258
13
  var SVG_NS = "http://www.w3.org/2000/svg";
@@ -281,6 +36,19 @@ var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
281
36
  var TYPE_CONSTANT = "type";
282
37
  var VALUE_CONSTANT = "value";
283
38
  var SERIALIZED_PREFIX = "serialized:";
39
+
40
+ // src/utils/get-prop-descriptor.ts
41
+ function getPropertyDescriptor(obj, memberName, getOnly) {
42
+ const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
43
+ while (obj && obj !== stopAt) {
44
+ const desc = Object.getOwnPropertyDescriptor(obj, memberName);
45
+ if (desc && (!getOnly || desc.get)) return desc;
46
+ obj = Object.getPrototypeOf(obj);
47
+ }
48
+ return void 0;
49
+ }
50
+
51
+ // src/utils/es2022-rewire-class-members.ts
284
52
  var reWireGetterSetter = (instance, hostRef) => {
285
53
  var _a;
286
54
  const cmpMeta = hostRef.$cmpMeta$;
@@ -288,7 +56,7 @@ var reWireGetterSetter = (instance, hostRef) => {
288
56
  members.map(([memberName, [memberFlags]]) => {
289
57
  if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
290
58
  const ogValue = instance[memberName];
291
- const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName) || Object.getOwnPropertyDescriptor(instance, memberName);
59
+ const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
292
60
  if (ogDescriptor) {
293
61
  Object.defineProperty(instance, memberName, {
294
62
  get() {
@@ -301,18 +69,14 @@ var reWireGetterSetter = (instance, hostRef) => {
301
69
  enumerable: true
302
70
  });
303
71
  }
304
- instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
72
+ if (hostRef.$instanceValues$.has(memberName)) {
73
+ instance[memberName] = hostRef.$instanceValues$.get(memberName);
74
+ } else if (ogValue !== void 0) {
75
+ instance[memberName] = ogValue;
76
+ }
305
77
  }
306
78
  });
307
79
  };
308
- function getPropertyDescriptor(obj, memberName) {
309
- while (obj) {
310
- const desc = Object.getOwnPropertyDescriptor(obj, memberName);
311
- if (desc == null ? void 0 : desc.get) return desc;
312
- obj = Object.getPrototypeOf(obj);
313
- }
314
- return void 0;
315
- }
316
80
 
317
81
  // src/client/client-host-ref.ts
318
82
  var getHostRef = (ref) => {
@@ -530,1589 +294,69 @@ var plt = {
530
294
  };
531
295
  var supportsListenerOptions = /* @__PURE__ */ (() => {
532
296
  var _a;
533
- let supportsListenerOptions2 = false;
534
- try {
535
- (_a = win.document) == null ? void 0 : _a.addEventListener(
536
- "e",
537
- null,
538
- Object.defineProperty({}, "passive", {
539
- get() {
540
- supportsListenerOptions2 = true;
541
- }
542
- })
543
- );
544
- } catch (e) {
545
- }
546
- return supportsListenerOptions2;
547
- })();
548
- var promiseResolve = (v) => Promise.resolve(v);
549
- var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
550
- try {
551
- if (!win.document.adoptedStyleSheets) {
552
- return false;
553
- }
554
- new CSSStyleSheet();
555
- return typeof new CSSStyleSheet().replaceSync === "function";
556
- } catch (e) {
557
- }
558
- return false;
559
- })() ;
560
- var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
561
- var queuePending = false;
562
- var queueDomReads = [];
563
- var queueDomWrites = [];
564
- var queueTask = (queue, write) => (cb) => {
565
- queue.push(cb);
566
- if (!queuePending) {
567
- queuePending = true;
568
- if (write && plt.$flags$ & 4 /* queueSync */) {
569
- nextTick(flush);
570
- } else {
571
- plt.raf(flush);
572
- }
573
- }
574
- };
575
- var consume = (queue) => {
576
- for (let i2 = 0; i2 < queue.length; i2++) {
577
- try {
578
- queue[i2](performance.now());
579
- } catch (e) {
580
- consoleError(e);
581
- }
582
- }
583
- queue.length = 0;
584
- };
585
- var flush = () => {
586
- consume(queueDomReads);
587
- {
588
- consume(queueDomWrites);
589
- if (queuePending = queueDomReads.length > 0) {
590
- plt.raf(flush);
591
- }
592
- }
593
- };
594
- var nextTick = (cb) => promiseResolve().then(cb);
595
- var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
596
- var isComplexType = (o) => {
597
- o = typeof o;
598
- return o === "object" || o === "function";
599
- };
600
-
601
- // node_modules/minimatch/dist/esm/index.js
602
- var import_brace_expansion = __toESM(require_brace_expansion());
603
-
604
- // node_modules/minimatch/dist/esm/assert-valid-pattern.js
605
- var MAX_PATTERN_LENGTH = 1024 * 64;
606
- var assertValidPattern = (pattern) => {
607
- if (typeof pattern !== "string") {
608
- throw new TypeError("invalid pattern");
609
- }
610
- if (pattern.length > MAX_PATTERN_LENGTH) {
611
- throw new TypeError("pattern is too long");
612
- }
613
- };
614
-
615
- // node_modules/minimatch/dist/esm/brace-expressions.js
616
- var posixClasses = {
617
- "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
618
- "[:alpha:]": ["\\p{L}\\p{Nl}", true],
619
- "[:ascii:]": ["\\x00-\\x7f", false],
620
- "[:blank:]": ["\\p{Zs}\\t", true],
621
- "[:cntrl:]": ["\\p{Cc}", true],
622
- "[:digit:]": ["\\p{Nd}", true],
623
- "[:graph:]": ["\\p{Z}\\p{C}", true, true],
624
- "[:lower:]": ["\\p{Ll}", true],
625
- "[:print:]": ["\\p{C}", true],
626
- "[:punct:]": ["\\p{P}", true],
627
- "[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f", true],
628
- "[:upper:]": ["\\p{Lu}", true],
629
- "[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", true],
630
- "[:xdigit:]": ["A-Fa-f0-9", false]
631
- };
632
- var braceEscape = (s) => s.replace(/[[\]\\-]/g, "\\$&");
633
- var regexpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
634
- var rangesToString = (ranges) => ranges.join("");
635
- var parseClass = (glob, position) => {
636
- const pos = position;
637
- if (glob.charAt(pos) !== "[") {
638
- throw new Error("not in a brace expression");
639
- }
640
- const ranges = [];
641
- const negs = [];
642
- let i2 = pos + 1;
643
- let sawStart = false;
644
- let uflag = false;
645
- let escaping = false;
646
- let negate = false;
647
- let endPos = pos;
648
- let rangeStart = "";
649
- WHILE: while (i2 < glob.length) {
650
- const c = glob.charAt(i2);
651
- if ((c === "!" || c === "^") && i2 === pos + 1) {
652
- negate = true;
653
- i2++;
654
- continue;
655
- }
656
- if (c === "]" && sawStart && !escaping) {
657
- endPos = i2 + 1;
658
- break;
659
- }
660
- sawStart = true;
661
- if (c === "\\") {
662
- if (!escaping) {
663
- escaping = true;
664
- i2++;
665
- continue;
666
- }
667
- }
668
- if (c === "[" && !escaping) {
669
- for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) {
670
- if (glob.startsWith(cls, i2)) {
671
- if (rangeStart) {
672
- return ["$.", false, glob.length - pos, true];
673
- }
674
- i2 += cls.length;
675
- if (neg)
676
- negs.push(unip);
677
- else
678
- ranges.push(unip);
679
- uflag = uflag || u;
680
- continue WHILE;
681
- }
682
- }
683
- }
684
- escaping = false;
685
- if (rangeStart) {
686
- if (c > rangeStart) {
687
- ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c));
688
- } else if (c === rangeStart) {
689
- ranges.push(braceEscape(c));
690
- }
691
- rangeStart = "";
692
- i2++;
693
- continue;
694
- }
695
- if (glob.startsWith("-]", i2 + 1)) {
696
- ranges.push(braceEscape(c + "-"));
697
- i2 += 2;
698
- continue;
699
- }
700
- if (glob.startsWith("-", i2 + 1)) {
701
- rangeStart = c;
702
- i2 += 2;
703
- continue;
704
- }
705
- ranges.push(braceEscape(c));
706
- i2++;
707
- }
708
- if (endPos < i2) {
709
- return ["", false, 0, false];
710
- }
711
- if (!ranges.length && !negs.length) {
712
- return ["$.", false, glob.length - pos, true];
713
- }
714
- if (negs.length === 0 && ranges.length === 1 && /^\\?.$/.test(ranges[0]) && !negate) {
715
- const r = ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0];
716
- return [regexpEscape(r), false, endPos - pos, false];
717
- }
718
- const sranges = "[" + (negate ? "^" : "") + rangesToString(ranges) + "]";
719
- const snegs = "[" + (negate ? "" : "^") + rangesToString(negs) + "]";
720
- const comb = ranges.length && negs.length ? "(" + sranges + "|" + snegs + ")" : ranges.length ? sranges : snegs;
721
- return [comb, uflag, endPos - pos, true];
722
- };
723
-
724
- // node_modules/minimatch/dist/esm/unescape.js
725
- var unescape = (s, { windowsPathsNoEscape = false } = {}) => {
726
- return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
727
- };
728
-
729
- // node_modules/minimatch/dist/esm/ast.js
730
- var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
731
- var isExtglobType = (c) => types.has(c);
732
- var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
733
- var startNoDot = "(?!\\.)";
734
- var addPatternStart = /* @__PURE__ */ new Set(["[", "."]);
735
- var justDots = /* @__PURE__ */ new Set(["..", "."]);
736
- var reSpecials = new Set("().*{}+?[]^$\\!");
737
- var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
738
- var qmark = "[^/]";
739
- var star = qmark + "*?";
740
- var starNoEmpty = qmark + "+?";
741
- var _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, partsToRegExp_fn, parseGlob_fn;
742
- var _AST = class _AST {
743
- constructor(type, parent, options = {}) {
744
- __privateAdd(this, _AST_instances);
745
- __publicField(this, "type");
746
- __privateAdd(this, _root);
747
- __privateAdd(this, _hasMagic);
748
- __privateAdd(this, _uflag, false);
749
- __privateAdd(this, _parts, []);
750
- __privateAdd(this, _parent);
751
- __privateAdd(this, _parentIndex);
752
- __privateAdd(this, _negs);
753
- __privateAdd(this, _filledNegs, false);
754
- __privateAdd(this, _options);
755
- __privateAdd(this, _toString);
756
- // set to true if it's an extglob with no children
757
- // (which really means one child of '')
758
- __privateAdd(this, _emptyExt, false);
759
- this.type = type;
760
- if (type)
761
- __privateSet(this, _hasMagic, true);
762
- __privateSet(this, _parent, parent);
763
- __privateSet(this, _root, __privateGet(this, _parent) ? __privateGet(__privateGet(this, _parent), _root) : this);
764
- __privateSet(this, _options, __privateGet(this, _root) === this ? options : __privateGet(__privateGet(this, _root), _options));
765
- __privateSet(this, _negs, __privateGet(this, _root) === this ? [] : __privateGet(__privateGet(this, _root), _negs));
766
- if (type === "!" && !__privateGet(__privateGet(this, _root), _filledNegs))
767
- __privateGet(this, _negs).push(this);
768
- __privateSet(this, _parentIndex, __privateGet(this, _parent) ? __privateGet(__privateGet(this, _parent), _parts).length : 0);
769
- }
770
- get hasMagic() {
771
- if (__privateGet(this, _hasMagic) !== void 0)
772
- return __privateGet(this, _hasMagic);
773
- for (const p of __privateGet(this, _parts)) {
774
- if (typeof p === "string")
775
- continue;
776
- if (p.type || p.hasMagic)
777
- return __privateSet(this, _hasMagic, true);
778
- }
779
- return __privateGet(this, _hasMagic);
780
- }
781
- // reconstructs the pattern
782
- toString() {
783
- if (__privateGet(this, _toString) !== void 0)
784
- return __privateGet(this, _toString);
785
- if (!this.type) {
786
- return __privateSet(this, _toString, __privateGet(this, _parts).map((p) => String(p)).join(""));
787
- } else {
788
- return __privateSet(this, _toString, this.type + "(" + __privateGet(this, _parts).map((p) => String(p)).join("|") + ")");
789
- }
790
- }
791
- push(...parts) {
792
- for (const p of parts) {
793
- if (p === "")
794
- continue;
795
- if (typeof p !== "string" && !(p instanceof _AST && __privateGet(p, _parent) === this)) {
796
- throw new Error("invalid part: " + p);
797
- }
798
- __privateGet(this, _parts).push(p);
799
- }
800
- }
801
- toJSON() {
802
- var _a;
803
- const ret = this.type === null ? __privateGet(this, _parts).slice().map((p) => typeof p === "string" ? p : p.toJSON()) : [this.type, ...__privateGet(this, _parts).map((p) => p.toJSON())];
804
- if (this.isStart() && !this.type)
805
- ret.unshift([]);
806
- if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!")) {
807
- ret.push({});
808
- }
809
- return ret;
810
- }
811
- isStart() {
812
- var _a;
813
- if (__privateGet(this, _root) === this)
814
- return true;
815
- if (!((_a = __privateGet(this, _parent)) == null ? void 0 : _a.isStart()))
816
- return false;
817
- if (__privateGet(this, _parentIndex) === 0)
818
- return true;
819
- const p = __privateGet(this, _parent);
820
- for (let i2 = 0; i2 < __privateGet(this, _parentIndex); i2++) {
821
- const pp = __privateGet(p, _parts)[i2];
822
- if (!(pp instanceof _AST && pp.type === "!")) {
823
- return false;
824
- }
825
- }
826
- return true;
827
- }
828
- isEnd() {
829
- var _a, _b, _c;
830
- if (__privateGet(this, _root) === this)
831
- return true;
832
- if (((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!")
833
- return true;
834
- if (!((_b = __privateGet(this, _parent)) == null ? void 0 : _b.isEnd()))
835
- return false;
836
- if (!this.type)
837
- return (_c = __privateGet(this, _parent)) == null ? void 0 : _c.isEnd();
838
- const pl = __privateGet(this, _parent) ? __privateGet(__privateGet(this, _parent), _parts).length : 0;
839
- return __privateGet(this, _parentIndex) === pl - 1;
840
- }
841
- copyIn(part) {
842
- if (typeof part === "string")
843
- this.push(part);
844
- else
845
- this.push(part.clone(this));
846
- }
847
- clone(parent) {
848
- const c = new _AST(this.type, parent);
849
- for (const p of __privateGet(this, _parts)) {
850
- c.copyIn(p);
851
- }
852
- return c;
853
- }
854
- static fromGlob(pattern, options = {}) {
855
- var _a;
856
- const ast = new _AST(null, void 0, options);
857
- __privateMethod(_a = _AST, _AST_static, parseAST_fn).call(_a, pattern, ast, 0, options);
858
- return ast;
859
- }
860
- // returns the regular expression if there's magic, or the unescaped
861
- // string if not.
862
- toMMPattern() {
863
- if (this !== __privateGet(this, _root))
864
- return __privateGet(this, _root).toMMPattern();
865
- const glob = this.toString();
866
- const [re, body, hasMagic, uflag] = this.toRegExpSource();
867
- const anyMagic = hasMagic || __privateGet(this, _hasMagic) || __privateGet(this, _options).nocase && !__privateGet(this, _options).nocaseMagicOnly && glob.toUpperCase() !== glob.toLowerCase();
868
- if (!anyMagic) {
869
- return body;
870
- }
871
- const flags = (__privateGet(this, _options).nocase ? "i" : "") + (uflag ? "u" : "");
872
- return Object.assign(new RegExp(`^${re}$`, flags), {
873
- _src: re,
874
- _glob: glob
875
- });
876
- }
877
- get options() {
878
- return __privateGet(this, _options);
879
- }
880
- // returns the string match, the regexp source, whether there's magic
881
- // in the regexp (so a regular expression is required) and whether or
882
- // not the uflag is needed for the regular expression (for posix classes)
883
- // TODO: instead of injecting the start/end at this point, just return
884
- // the BODY of the regexp, along with the start/end portions suitable
885
- // for binding the start/end in either a joined full-path makeRe context
886
- // (where we bind to (^|/), or a standalone matchPart context (where
887
- // we bind to ^, and not /). Otherwise slashes get duped!
888
- //
889
- // In part-matching mode, the start is:
890
- // - if not isStart: nothing
891
- // - if traversal possible, but not allowed: ^(?!\.\.?$)
892
- // - if dots allowed or not possible: ^
893
- // - if dots possible and not allowed: ^(?!\.)
894
- // end is:
895
- // - if not isEnd(): nothing
896
- // - else: $
897
- //
898
- // In full-path matching mode, we put the slash at the START of the
899
- // pattern, so start is:
900
- // - if first pattern: same as part-matching mode
901
- // - if not isStart(): nothing
902
- // - if traversal possible, but not allowed: /(?!\.\.?(?:$|/))
903
- // - if dots allowed or not possible: /
904
- // - if dots possible and not allowed: /(?!\.)
905
- // end is:
906
- // - if last pattern, same as part-matching mode
907
- // - else nothing
908
- //
909
- // Always put the (?:$|/) on negated tails, though, because that has to be
910
- // there to bind the end of the negated pattern portion, and it's easier to
911
- // just stick it in now rather than try to inject it later in the middle of
912
- // the pattern.
913
- //
914
- // We can just always return the same end, and leave it up to the caller
915
- // to know whether it's going to be used joined or in parts.
916
- // And, if the start is adjusted slightly, can do the same there:
917
- // - if not isStart: nothing
918
- // - if traversal possible, but not allowed: (?:/|^)(?!\.\.?$)
919
- // - if dots allowed or not possible: (?:/|^)
920
- // - if dots possible and not allowed: (?:/|^)(?!\.)
921
- //
922
- // But it's better to have a simpler binding without a conditional, for
923
- // performance, so probably better to return both start options.
924
- //
925
- // Then the caller just ignores the end if it's not the first pattern,
926
- // and the start always gets applied.
927
- //
928
- // But that's always going to be $ if it's the ending pattern, or nothing,
929
- // so the caller can just attach $ at the end of the pattern when building.
930
- //
931
- // So the todo is:
932
- // - better detect what kind of start is needed
933
- // - return both flavors of starting pattern
934
- // - attach $ at the end of the pattern when creating the actual RegExp
935
- //
936
- // Ah, but wait, no, that all only applies to the root when the first pattern
937
- // is not an extglob. If the first pattern IS an extglob, then we need all
938
- // that dot prevention biz to live in the extglob portions, because eg
939
- // +(*|.x*) can match .xy but not .yx.
940
- //
941
- // So, return the two flavors if it's #root and the first child is not an
942
- // AST, otherwise leave it to the child AST to handle it, and there,
943
- // use the (?:^|/) style of start binding.
944
- //
945
- // Even simplified further:
946
- // - Since the start for a join is eg /(?!\.) and the start for a part
947
- // is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
948
- // or start or whatever) and prepend ^ or / at the Regexp construction.
949
- toRegExpSource(allowDot) {
950
- var _a;
951
- const dot = allowDot != null ? allowDot : !!__privateGet(this, _options).dot;
952
- if (__privateGet(this, _root) === this)
953
- __privateMethod(this, _AST_instances, fillNegs_fn).call(this);
954
- if (!this.type) {
955
- const noEmpty = this.isStart() && this.isEnd();
956
- const src = __privateGet(this, _parts).map((p) => {
957
- var _a2;
958
- const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(_a2 = _AST, _AST_static, parseGlob_fn).call(_a2, p, __privateGet(this, _hasMagic), noEmpty) : p.toRegExpSource(allowDot);
959
- __privateSet(this, _hasMagic, __privateGet(this, _hasMagic) || hasMagic);
960
- __privateSet(this, _uflag, __privateGet(this, _uflag) || uflag);
961
- return re;
962
- }).join("");
963
- let start2 = "";
964
- if (this.isStart()) {
965
- if (typeof __privateGet(this, _parts)[0] === "string") {
966
- const dotTravAllowed = __privateGet(this, _parts).length === 1 && justDots.has(__privateGet(this, _parts)[0]);
967
- if (!dotTravAllowed) {
968
- const aps = addPatternStart;
969
- const needNoTrav = (
970
- // dots are allowed, and the pattern starts with [ or .
971
- dot && aps.has(src.charAt(0)) || // the pattern starts with \., and then [ or .
972
- src.startsWith("\\.") && aps.has(src.charAt(2)) || // the pattern starts with \.\., and then [ or .
973
- src.startsWith("\\.\\.") && aps.has(src.charAt(4))
974
- );
975
- const needNoDot = !dot && !allowDot && aps.has(src.charAt(0));
976
- start2 = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : "";
977
- }
978
- }
979
- }
980
- let end = "";
981
- if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!") {
982
- end = "(?:$|\\/)";
983
- }
984
- const final2 = start2 + src + end;
985
- return [
986
- final2,
987
- unescape(src),
988
- __privateSet(this, _hasMagic, !!__privateGet(this, _hasMagic)),
989
- __privateGet(this, _uflag)
990
- ];
991
- }
992
- const repeated = this.type === "*" || this.type === "+";
993
- const start = this.type === "!" ? "(?:(?!(?:" : "(?:";
994
- let body = __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, dot);
995
- if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
996
- const s = this.toString();
997
- __privateSet(this, _parts, [s]);
998
- this.type = null;
999
- __privateSet(this, _hasMagic, void 0);
1000
- return [s, unescape(this.toString()), false, false];
1001
- }
1002
- let bodyDotAllowed = !repeated || allowDot || dot || false ? "" : __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, true);
1003
- if (bodyDotAllowed === body) {
1004
- bodyDotAllowed = "";
1005
- }
1006
- if (bodyDotAllowed) {
1007
- body = `(?:${body})(?:${bodyDotAllowed})*?`;
1008
- }
1009
- let final = "";
1010
- if (this.type === "!" && __privateGet(this, _emptyExt)) {
1011
- final = (this.isStart() && !dot ? startNoDot : "") + starNoEmpty;
1012
- } else {
1013
- const close = this.type === "!" ? (
1014
- // !() must match something,but !(x) can match ''
1015
- "))" + (this.isStart() && !dot && !allowDot ? startNoDot : "") + star + ")"
1016
- ) : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && bodyDotAllowed ? ")" : this.type === "*" && bodyDotAllowed ? `)?` : `)${this.type}`;
1017
- final = start + body + close;
1018
- }
1019
- return [
1020
- final,
1021
- unescape(body),
1022
- __privateSet(this, _hasMagic, !!__privateGet(this, _hasMagic)),
1023
- __privateGet(this, _uflag)
1024
- ];
1025
- }
1026
- };
1027
- _root = new WeakMap();
1028
- _hasMagic = new WeakMap();
1029
- _uflag = new WeakMap();
1030
- _parts = new WeakMap();
1031
- _parent = new WeakMap();
1032
- _parentIndex = new WeakMap();
1033
- _negs = new WeakMap();
1034
- _filledNegs = new WeakMap();
1035
- _options = new WeakMap();
1036
- _toString = new WeakMap();
1037
- _emptyExt = new WeakMap();
1038
- _AST_instances = new WeakSet();
1039
- fillNegs_fn = function() {
1040
- if (this !== __privateGet(this, _root))
1041
- throw new Error("should only call on root");
1042
- if (__privateGet(this, _filledNegs))
1043
- return this;
1044
- this.toString();
1045
- __privateSet(this, _filledNegs, true);
1046
- let n;
1047
- while (n = __privateGet(this, _negs).pop()) {
1048
- if (n.type !== "!")
1049
- continue;
1050
- let p = n;
1051
- let pp = __privateGet(p, _parent);
1052
- while (pp) {
1053
- for (let i2 = __privateGet(p, _parentIndex) + 1; !pp.type && i2 < __privateGet(pp, _parts).length; i2++) {
1054
- for (const part of __privateGet(n, _parts)) {
1055
- if (typeof part === "string") {
1056
- throw new Error("string part in extglob AST??");
1057
- }
1058
- part.copyIn(__privateGet(pp, _parts)[i2]);
1059
- }
1060
- }
1061
- p = pp;
1062
- pp = __privateGet(p, _parent);
1063
- }
1064
- }
1065
- return this;
1066
- };
1067
- _AST_static = new WeakSet();
1068
- parseAST_fn = function(str, ast, pos, opt) {
1069
- var _a, _b;
1070
- let escaping = false;
1071
- let inBrace = false;
1072
- let braceStart = -1;
1073
- let braceNeg = false;
1074
- if (ast.type === null) {
1075
- let i3 = pos;
1076
- let acc2 = "";
1077
- while (i3 < str.length) {
1078
- const c = str.charAt(i3++);
1079
- if (escaping || c === "\\") {
1080
- escaping = !escaping;
1081
- acc2 += c;
1082
- continue;
1083
- }
1084
- if (inBrace) {
1085
- if (i3 === braceStart + 1) {
1086
- if (c === "^" || c === "!") {
1087
- braceNeg = true;
1088
- }
1089
- } else if (c === "]" && !(i3 === braceStart + 2 && braceNeg)) {
1090
- inBrace = false;
1091
- }
1092
- acc2 += c;
1093
- continue;
1094
- } else if (c === "[") {
1095
- inBrace = true;
1096
- braceStart = i3;
1097
- braceNeg = false;
1098
- acc2 += c;
1099
- continue;
1100
- }
1101
- if (!opt.noext && isExtglobType(c) && str.charAt(i3) === "(") {
1102
- ast.push(acc2);
1103
- acc2 = "";
1104
- const ext2 = new _AST(c, ast);
1105
- i3 = __privateMethod(_a = _AST, _AST_static, parseAST_fn).call(_a, str, ext2, i3, opt);
1106
- ast.push(ext2);
1107
- continue;
1108
- }
1109
- acc2 += c;
1110
- }
1111
- ast.push(acc2);
1112
- return i3;
1113
- }
1114
- let i2 = pos + 1;
1115
- let part = new _AST(null, ast);
1116
- const parts = [];
1117
- let acc = "";
1118
- while (i2 < str.length) {
1119
- const c = str.charAt(i2++);
1120
- if (escaping || c === "\\") {
1121
- escaping = !escaping;
1122
- acc += c;
1123
- continue;
1124
- }
1125
- if (inBrace) {
1126
- if (i2 === braceStart + 1) {
1127
- if (c === "^" || c === "!") {
1128
- braceNeg = true;
1129
- }
1130
- } else if (c === "]" && !(i2 === braceStart + 2 && braceNeg)) {
1131
- inBrace = false;
1132
- }
1133
- acc += c;
1134
- continue;
1135
- } else if (c === "[") {
1136
- inBrace = true;
1137
- braceStart = i2;
1138
- braceNeg = false;
1139
- acc += c;
1140
- continue;
1141
- }
1142
- if (isExtglobType(c) && str.charAt(i2) === "(") {
1143
- part.push(acc);
1144
- acc = "";
1145
- const ext2 = new _AST(c, part);
1146
- part.push(ext2);
1147
- i2 = __privateMethod(_b = _AST, _AST_static, parseAST_fn).call(_b, str, ext2, i2, opt);
1148
- continue;
1149
- }
1150
- if (c === "|") {
1151
- part.push(acc);
1152
- acc = "";
1153
- parts.push(part);
1154
- part = new _AST(null, ast);
1155
- continue;
1156
- }
1157
- if (c === ")") {
1158
- if (acc === "" && __privateGet(ast, _parts).length === 0) {
1159
- __privateSet(ast, _emptyExt, true);
1160
- }
1161
- part.push(acc);
1162
- acc = "";
1163
- ast.push(...parts, part);
1164
- return i2;
1165
- }
1166
- acc += c;
1167
- }
1168
- ast.type = null;
1169
- __privateSet(ast, _hasMagic, void 0);
1170
- __privateSet(ast, _parts, [str.substring(pos - 1)]);
1171
- return i2;
1172
- };
1173
- partsToRegExp_fn = function(dot) {
1174
- return __privateGet(this, _parts).map((p) => {
1175
- if (typeof p === "string") {
1176
- throw new Error("string type in extglob ast??");
1177
- }
1178
- const [re, _, _hasMagic2, uflag] = p.toRegExpSource(dot);
1179
- __privateSet(this, _uflag, __privateGet(this, _uflag) || uflag);
1180
- return re;
1181
- }).filter((p) => !(this.isStart() && this.isEnd()) || !!p).join("|");
1182
- };
1183
- parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
1184
- let escaping = false;
1185
- let re = "";
1186
- let uflag = false;
1187
- for (let i2 = 0; i2 < glob.length; i2++) {
1188
- const c = glob.charAt(i2);
1189
- if (escaping) {
1190
- escaping = false;
1191
- re += (reSpecials.has(c) ? "\\" : "") + c;
1192
- continue;
1193
- }
1194
- if (c === "\\") {
1195
- if (i2 === glob.length - 1) {
1196
- re += "\\\\";
1197
- } else {
1198
- escaping = true;
1199
- }
1200
- continue;
1201
- }
1202
- if (c === "[") {
1203
- const [src, needUflag, consumed, magic] = parseClass(glob, i2);
1204
- if (consumed) {
1205
- re += src;
1206
- uflag = uflag || needUflag;
1207
- i2 += consumed - 1;
1208
- hasMagic = hasMagic || magic;
1209
- continue;
1210
- }
1211
- }
1212
- if (c === "*") {
1213
- if (noEmpty && glob === "*")
1214
- re += starNoEmpty;
1215
- else
1216
- re += star;
1217
- hasMagic = true;
1218
- continue;
1219
- }
1220
- if (c === "?") {
1221
- re += qmark;
1222
- hasMagic = true;
1223
- continue;
1224
- }
1225
- re += regExpEscape(c);
1226
- }
1227
- return [re, unescape(glob), !!hasMagic, uflag];
1228
- };
1229
- __privateAdd(_AST, _AST_static);
1230
- var AST = _AST;
1231
-
1232
- // node_modules/minimatch/dist/esm/escape.js
1233
- var escape = (s, { windowsPathsNoEscape = false } = {}) => {
1234
- return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
1235
- };
1236
-
1237
- // node_modules/minimatch/dist/esm/index.js
1238
- var minimatch = (p, pattern, options = {}) => {
1239
- assertValidPattern(pattern);
1240
- if (!options.nocomment && pattern.charAt(0) === "#") {
1241
- return false;
1242
- }
1243
- return new Minimatch(pattern, options).match(p);
1244
- };
1245
- var starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
1246
- var starDotExtTest = (ext2) => (f) => !f.startsWith(".") && f.endsWith(ext2);
1247
- var starDotExtTestDot = (ext2) => (f) => f.endsWith(ext2);
1248
- var starDotExtTestNocase = (ext2) => {
1249
- ext2 = ext2.toLowerCase();
1250
- return (f) => !f.startsWith(".") && f.toLowerCase().endsWith(ext2);
1251
- };
1252
- var starDotExtTestNocaseDot = (ext2) => {
1253
- ext2 = ext2.toLowerCase();
1254
- return (f) => f.toLowerCase().endsWith(ext2);
1255
- };
1256
- var starDotStarRE = /^\*+\.\*+$/;
1257
- var starDotStarTest = (f) => !f.startsWith(".") && f.includes(".");
1258
- var starDotStarTestDot = (f) => f !== "." && f !== ".." && f.includes(".");
1259
- var dotStarRE = /^\.\*+$/;
1260
- var dotStarTest = (f) => f !== "." && f !== ".." && f.startsWith(".");
1261
- var starRE = /^\*+$/;
1262
- var starTest = (f) => f.length !== 0 && !f.startsWith(".");
1263
- var starTestDot = (f) => f.length !== 0 && f !== "." && f !== "..";
1264
- var qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/;
1265
- var qmarksTestNocase = ([$0, ext2 = ""]) => {
1266
- const noext = qmarksTestNoExt([$0]);
1267
- if (!ext2)
1268
- return noext;
1269
- ext2 = ext2.toLowerCase();
1270
- return (f) => noext(f) && f.toLowerCase().endsWith(ext2);
1271
- };
1272
- var qmarksTestNocaseDot = ([$0, ext2 = ""]) => {
1273
- const noext = qmarksTestNoExtDot([$0]);
1274
- if (!ext2)
1275
- return noext;
1276
- ext2 = ext2.toLowerCase();
1277
- return (f) => noext(f) && f.toLowerCase().endsWith(ext2);
1278
- };
1279
- var qmarksTestDot = ([$0, ext2 = ""]) => {
1280
- const noext = qmarksTestNoExtDot([$0]);
1281
- return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2);
1282
- };
1283
- var qmarksTest = ([$0, ext2 = ""]) => {
1284
- const noext = qmarksTestNoExt([$0]);
1285
- return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2);
1286
- };
1287
- var qmarksTestNoExt = ([$0]) => {
1288
- const len = $0.length;
1289
- return (f) => f.length === len && !f.startsWith(".");
1290
- };
1291
- var qmarksTestNoExtDot = ([$0]) => {
1292
- const len = $0.length;
1293
- return (f) => f.length === len && f !== "." && f !== "..";
1294
- };
1295
- var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
1296
- var path = {
1297
- win32: { sep: "\\" },
1298
- posix: { sep: "/" }
1299
- };
1300
- var sep = defaultPlatform === "win32" ? path.win32.sep : path.posix.sep;
1301
- minimatch.sep = sep;
1302
- var GLOBSTAR = Symbol("globstar **");
1303
- minimatch.GLOBSTAR = GLOBSTAR;
1304
- var qmark2 = "[^/]";
1305
- var star2 = qmark2 + "*?";
1306
- var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
1307
- var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?";
1308
- var filter = (pattern, options = {}) => (p) => minimatch(p, pattern, options);
1309
- minimatch.filter = filter;
1310
- var ext = (a, b = {}) => Object.assign({}, a, b);
1311
- var defaults = (def) => {
1312
- if (!def || typeof def !== "object" || !Object.keys(def).length) {
1313
- return minimatch;
1314
- }
1315
- const orig = minimatch;
1316
- const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options));
1317
- return Object.assign(m, {
1318
- Minimatch: class Minimatch extends orig.Minimatch {
1319
- constructor(pattern, options = {}) {
1320
- super(pattern, ext(def, options));
1321
- }
1322
- static defaults(options) {
1323
- return orig.defaults(ext(def, options)).Minimatch;
1324
- }
1325
- },
1326
- AST: class AST extends orig.AST {
1327
- /* c8 ignore start */
1328
- constructor(type, parent, options = {}) {
1329
- super(type, parent, ext(def, options));
1330
- }
1331
- /* c8 ignore stop */
1332
- static fromGlob(pattern, options = {}) {
1333
- return orig.AST.fromGlob(pattern, ext(def, options));
1334
- }
1335
- },
1336
- unescape: (s, options = {}) => orig.unescape(s, ext(def, options)),
1337
- escape: (s, options = {}) => orig.escape(s, ext(def, options)),
1338
- filter: (pattern, options = {}) => orig.filter(pattern, ext(def, options)),
1339
- defaults: (options) => orig.defaults(ext(def, options)),
1340
- makeRe: (pattern, options = {}) => orig.makeRe(pattern, ext(def, options)),
1341
- braceExpand: (pattern, options = {}) => orig.braceExpand(pattern, ext(def, options)),
1342
- match: (list, pattern, options = {}) => orig.match(list, pattern, ext(def, options)),
1343
- sep: orig.sep,
1344
- GLOBSTAR
1345
- });
1346
- };
1347
- minimatch.defaults = defaults;
1348
- var braceExpand = (pattern, options = {}) => {
1349
- assertValidPattern(pattern);
1350
- if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
1351
- return [pattern];
1352
- }
1353
- return (0, import_brace_expansion.default)(pattern);
1354
- };
1355
- minimatch.braceExpand = braceExpand;
1356
- var makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
1357
- minimatch.makeRe = makeRe;
1358
- var match = (list, pattern, options = {}) => {
1359
- const mm = new Minimatch(pattern, options);
1360
- list = list.filter((f) => mm.match(f));
1361
- if (mm.options.nonull && !list.length) {
1362
- list.push(pattern);
1363
- }
1364
- return list;
1365
- };
1366
- minimatch.match = match;
1367
- var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
1368
- var regExpEscape2 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
1369
- var Minimatch = class {
1370
- options;
1371
- set;
1372
- pattern;
1373
- windowsPathsNoEscape;
1374
- nonegate;
1375
- negate;
1376
- comment;
1377
- empty;
1378
- preserveMultipleSlashes;
1379
- partial;
1380
- globSet;
1381
- globParts;
1382
- nocase;
1383
- isWindows;
1384
- platform;
1385
- windowsNoMagicRoot;
1386
- regexp;
1387
- constructor(pattern, options = {}) {
1388
- assertValidPattern(pattern);
1389
- options = options || {};
1390
- this.options = options;
1391
- this.pattern = pattern;
1392
- this.platform = options.platform || defaultPlatform;
1393
- this.isWindows = this.platform === "win32";
1394
- this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;
1395
- if (this.windowsPathsNoEscape) {
1396
- this.pattern = this.pattern.replace(/\\/g, "/");
1397
- }
1398
- this.preserveMultipleSlashes = !!options.preserveMultipleSlashes;
1399
- this.regexp = null;
1400
- this.negate = false;
1401
- this.nonegate = !!options.nonegate;
1402
- this.comment = false;
1403
- this.empty = false;
1404
- this.partial = !!options.partial;
1405
- this.nocase = !!this.options.nocase;
1406
- this.windowsNoMagicRoot = options.windowsNoMagicRoot !== void 0 ? options.windowsNoMagicRoot : !!(this.isWindows && this.nocase);
1407
- this.globSet = [];
1408
- this.globParts = [];
1409
- this.set = [];
1410
- this.make();
1411
- }
1412
- hasMagic() {
1413
- if (this.options.magicalBraces && this.set.length > 1) {
1414
- return true;
1415
- }
1416
- for (const pattern of this.set) {
1417
- for (const part of pattern) {
1418
- if (typeof part !== "string")
1419
- return true;
1420
- }
1421
- }
1422
- return false;
1423
- }
1424
- debug(..._) {
1425
- }
1426
- make() {
1427
- const pattern = this.pattern;
1428
- const options = this.options;
1429
- if (!options.nocomment && pattern.charAt(0) === "#") {
1430
- this.comment = true;
1431
- return;
1432
- }
1433
- if (!pattern) {
1434
- this.empty = true;
1435
- return;
1436
- }
1437
- this.parseNegate();
1438
- this.globSet = [...new Set(this.braceExpand())];
1439
- if (options.debug) {
1440
- this.debug = (...args) => console.error(...args);
1441
- }
1442
- this.debug(this.pattern, this.globSet);
1443
- const rawGlobParts = this.globSet.map((s) => this.slashSplit(s));
1444
- this.globParts = this.preprocess(rawGlobParts);
1445
- this.debug(this.pattern, this.globParts);
1446
- let set = this.globParts.map((s, _, __) => {
1447
- if (this.isWindows && this.windowsNoMagicRoot) {
1448
- const isUNC = s[0] === "" && s[1] === "" && (s[2] === "?" || !globMagic.test(s[2])) && !globMagic.test(s[3]);
1449
- const isDrive = /^[a-z]:/i.test(s[0]);
1450
- if (isUNC) {
1451
- return [...s.slice(0, 4), ...s.slice(4).map((ss) => this.parse(ss))];
1452
- } else if (isDrive) {
1453
- return [s[0], ...s.slice(1).map((ss) => this.parse(ss))];
1454
- }
1455
- }
1456
- return s.map((ss) => this.parse(ss));
1457
- });
1458
- this.debug(this.pattern, set);
1459
- this.set = set.filter((s) => s.indexOf(false) === -1);
1460
- if (this.isWindows) {
1461
- for (let i2 = 0; i2 < this.set.length; i2++) {
1462
- const p = this.set[i2];
1463
- if (p[0] === "" && p[1] === "" && this.globParts[i2][2] === "?" && typeof p[3] === "string" && /^[a-z]:$/i.test(p[3])) {
1464
- p[2] = "?";
1465
- }
1466
- }
1467
- }
1468
- this.debug(this.pattern, this.set);
1469
- }
1470
- // various transforms to equivalent pattern sets that are
1471
- // faster to process in a filesystem walk. The goal is to
1472
- // eliminate what we can, and push all ** patterns as far
1473
- // to the right as possible, even if it increases the number
1474
- // of patterns that we have to process.
1475
- preprocess(globParts) {
1476
- if (this.options.noglobstar) {
1477
- for (let i2 = 0; i2 < globParts.length; i2++) {
1478
- for (let j = 0; j < globParts[i2].length; j++) {
1479
- if (globParts[i2][j] === "**") {
1480
- globParts[i2][j] = "*";
1481
- }
1482
- }
1483
- }
1484
- }
1485
- const { optimizationLevel = 1 } = this.options;
1486
- if (optimizationLevel >= 2) {
1487
- globParts = this.firstPhasePreProcess(globParts);
1488
- globParts = this.secondPhasePreProcess(globParts);
1489
- } else if (optimizationLevel >= 1) {
1490
- globParts = this.levelOneOptimize(globParts);
1491
- } else {
1492
- globParts = this.adjascentGlobstarOptimize(globParts);
1493
- }
1494
- return globParts;
1495
- }
1496
- // just get rid of adjascent ** portions
1497
- adjascentGlobstarOptimize(globParts) {
1498
- return globParts.map((parts) => {
1499
- let gs = -1;
1500
- while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
1501
- let i2 = gs;
1502
- while (parts[i2 + 1] === "**") {
1503
- i2++;
1504
- }
1505
- if (i2 !== gs) {
1506
- parts.splice(gs, i2 - gs);
1507
- }
1508
- }
1509
- return parts;
1510
- });
1511
- }
1512
- // get rid of adjascent ** and resolve .. portions
1513
- levelOneOptimize(globParts) {
1514
- return globParts.map((parts) => {
1515
- parts = parts.reduce((set, part) => {
1516
- const prev = set[set.length - 1];
1517
- if (part === "**" && prev === "**") {
1518
- return set;
1519
- }
1520
- if (part === "..") {
1521
- if (prev && prev !== ".." && prev !== "." && prev !== "**") {
1522
- set.pop();
1523
- return set;
1524
- }
1525
- }
1526
- set.push(part);
1527
- return set;
1528
- }, []);
1529
- return parts.length === 0 ? [""] : parts;
1530
- });
1531
- }
1532
- levelTwoFileOptimize(parts) {
1533
- if (!Array.isArray(parts)) {
1534
- parts = this.slashSplit(parts);
1535
- }
1536
- let didSomething = false;
1537
- do {
1538
- didSomething = false;
1539
- if (!this.preserveMultipleSlashes) {
1540
- for (let i2 = 1; i2 < parts.length - 1; i2++) {
1541
- const p = parts[i2];
1542
- if (i2 === 1 && p === "" && parts[0] === "")
1543
- continue;
1544
- if (p === "." || p === "") {
1545
- didSomething = true;
1546
- parts.splice(i2, 1);
1547
- i2--;
1548
- }
1549
- }
1550
- if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
1551
- didSomething = true;
1552
- parts.pop();
1553
- }
1554
- }
1555
- let dd = 0;
1556
- while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
1557
- const p = parts[dd - 1];
1558
- if (p && p !== "." && p !== ".." && p !== "**") {
1559
- didSomething = true;
1560
- parts.splice(dd - 1, 2);
1561
- dd -= 2;
1562
- }
1563
- }
1564
- } while (didSomething);
1565
- return parts.length === 0 ? [""] : parts;
1566
- }
1567
- // First phase: single-pattern processing
1568
- // <pre> is 1 or more portions
1569
- // <rest> is 1 or more portions
1570
- // <p> is any portion other than ., .., '', or **
1571
- // <e> is . or ''
1572
- //
1573
- // **/.. is *brutal* for filesystem walking performance, because
1574
- // it effectively resets the recursive walk each time it occurs,
1575
- // and ** cannot be reduced out by a .. pattern part like a regexp
1576
- // or most strings (other than .., ., and '') can be.
1577
- //
1578
- // <pre>/**/../<p>/<p>/<rest> -> {<pre>/../<p>/<p>/<rest>,<pre>/**/<p>/<p>/<rest>}
1579
- // <pre>/<e>/<rest> -> <pre>/<rest>
1580
- // <pre>/<p>/../<rest> -> <pre>/<rest>
1581
- // **/**/<rest> -> **/<rest>
1582
- //
1583
- // **/*/<rest> -> */**/<rest> <== not valid because ** doesn't follow
1584
- // this WOULD be allowed if ** did follow symlinks, or * didn't
1585
- firstPhasePreProcess(globParts) {
1586
- let didSomething = false;
1587
- do {
1588
- didSomething = false;
1589
- for (let parts of globParts) {
1590
- let gs = -1;
1591
- while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
1592
- let gss = gs;
1593
- while (parts[gss + 1] === "**") {
1594
- gss++;
1595
- }
1596
- if (gss > gs) {
1597
- parts.splice(gs + 1, gss - gs);
1598
- }
1599
- let next = parts[gs + 1];
1600
- const p = parts[gs + 2];
1601
- const p2 = parts[gs + 3];
1602
- if (next !== "..")
1603
- continue;
1604
- if (!p || p === "." || p === ".." || !p2 || p2 === "." || p2 === "..") {
1605
- continue;
1606
- }
1607
- didSomething = true;
1608
- parts.splice(gs, 1);
1609
- const other = parts.slice(0);
1610
- other[gs] = "**";
1611
- globParts.push(other);
1612
- gs--;
1613
- }
1614
- if (!this.preserveMultipleSlashes) {
1615
- for (let i2 = 1; i2 < parts.length - 1; i2++) {
1616
- const p = parts[i2];
1617
- if (i2 === 1 && p === "" && parts[0] === "")
1618
- continue;
1619
- if (p === "." || p === "") {
1620
- didSomething = true;
1621
- parts.splice(i2, 1);
1622
- i2--;
1623
- }
1624
- }
1625
- if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
1626
- didSomething = true;
1627
- parts.pop();
1628
- }
1629
- }
1630
- let dd = 0;
1631
- while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
1632
- const p = parts[dd - 1];
1633
- if (p && p !== "." && p !== ".." && p !== "**") {
1634
- didSomething = true;
1635
- const needDot = dd === 1 && parts[dd + 1] === "**";
1636
- const splin = needDot ? ["."] : [];
1637
- parts.splice(dd - 1, 2, ...splin);
1638
- if (parts.length === 0)
1639
- parts.push("");
1640
- dd -= 2;
1641
- }
1642
- }
1643
- }
1644
- } while (didSomething);
1645
- return globParts;
1646
- }
1647
- // second phase: multi-pattern dedupes
1648
- // {<pre>/*/<rest>,<pre>/<p>/<rest>} -> <pre>/*/<rest>
1649
- // {<pre>/<rest>,<pre>/<rest>} -> <pre>/<rest>
1650
- // {<pre>/**/<rest>,<pre>/<rest>} -> <pre>/**/<rest>
1651
- //
1652
- // {<pre>/**/<rest>,<pre>/**/<p>/<rest>} -> <pre>/**/<rest>
1653
- // ^-- not valid because ** doens't follow symlinks
1654
- secondPhasePreProcess(globParts) {
1655
- for (let i2 = 0; i2 < globParts.length - 1; i2++) {
1656
- for (let j = i2 + 1; j < globParts.length; j++) {
1657
- const matched = this.partsMatch(globParts[i2], globParts[j], !this.preserveMultipleSlashes);
1658
- if (!matched)
1659
- continue;
1660
- globParts[i2] = matched;
1661
- globParts[j] = [];
1662
- }
1663
- }
1664
- return globParts.filter((gs) => gs.length);
1665
- }
1666
- partsMatch(a, b, emptyGSMatch = false) {
1667
- let ai = 0;
1668
- let bi = 0;
1669
- let result = [];
1670
- let which = "";
1671
- while (ai < a.length && bi < b.length) {
1672
- if (a[ai] === b[bi]) {
1673
- result.push(which === "b" ? b[bi] : a[ai]);
1674
- ai++;
1675
- bi++;
1676
- } else if (emptyGSMatch && a[ai] === "**" && b[bi] === a[ai + 1]) {
1677
- result.push(a[ai]);
1678
- ai++;
1679
- } else if (emptyGSMatch && b[bi] === "**" && a[ai] === b[bi + 1]) {
1680
- result.push(b[bi]);
1681
- bi++;
1682
- } else if (a[ai] === "*" && b[bi] && (this.options.dot || !b[bi].startsWith(".")) && b[bi] !== "**") {
1683
- if (which === "b")
1684
- return false;
1685
- which = "a";
1686
- result.push(a[ai]);
1687
- ai++;
1688
- bi++;
1689
- } else if (b[bi] === "*" && a[ai] && (this.options.dot || !a[ai].startsWith(".")) && a[ai] !== "**") {
1690
- if (which === "a")
1691
- return false;
1692
- which = "b";
1693
- result.push(b[bi]);
1694
- ai++;
1695
- bi++;
1696
- } else {
1697
- return false;
1698
- }
1699
- }
1700
- return a.length === b.length && result;
1701
- }
1702
- parseNegate() {
1703
- if (this.nonegate)
1704
- return;
1705
- const pattern = this.pattern;
1706
- let negate = false;
1707
- let negateOffset = 0;
1708
- for (let i2 = 0; i2 < pattern.length && pattern.charAt(i2) === "!"; i2++) {
1709
- negate = !negate;
1710
- negateOffset++;
1711
- }
1712
- if (negateOffset)
1713
- this.pattern = pattern.slice(negateOffset);
1714
- this.negate = negate;
1715
- }
1716
- // set partial to true to test if, for example,
1717
- // "/a/b" matches the start of "/*/b/*/d"
1718
- // Partial means, if you run out of file before you run
1719
- // out of pattern, then that's fine, as long as all
1720
- // the parts match.
1721
- matchOne(file, pattern, partial = false) {
1722
- const options = this.options;
1723
- if (this.isWindows) {
1724
- const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
1725
- const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
1726
- const patternDrive = typeof pattern[0] === "string" && /^[a-z]:$/i.test(pattern[0]);
1727
- const patternUNC = !patternDrive && pattern[0] === "" && pattern[1] === "" && pattern[2] === "?" && typeof pattern[3] === "string" && /^[a-z]:$/i.test(pattern[3]);
1728
- const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
1729
- const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
1730
- if (typeof fdi === "number" && typeof pdi === "number") {
1731
- const [fd, pd] = [file[fdi], pattern[pdi]];
1732
- if (fd.toLowerCase() === pd.toLowerCase()) {
1733
- pattern[pdi] = fd;
1734
- if (pdi > fdi) {
1735
- pattern = pattern.slice(pdi);
1736
- } else if (fdi > pdi) {
1737
- file = file.slice(fdi);
1738
- }
1739
- }
1740
- }
1741
- }
1742
- const { optimizationLevel = 1 } = this.options;
1743
- if (optimizationLevel >= 2) {
1744
- file = this.levelTwoFileOptimize(file);
1745
- }
1746
- this.debug("matchOne", this, { file, pattern });
1747
- this.debug("matchOne", file.length, pattern.length);
1748
- for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
1749
- this.debug("matchOne loop");
1750
- var p = pattern[pi];
1751
- var f = file[fi];
1752
- this.debug(pattern, p, f);
1753
- if (p === false) {
1754
- return false;
1755
- }
1756
- if (p === GLOBSTAR) {
1757
- this.debug("GLOBSTAR", [pattern, p, f]);
1758
- var fr = fi;
1759
- var pr = pi + 1;
1760
- if (pr === pl) {
1761
- this.debug("** at the end");
1762
- for (; fi < fl; fi++) {
1763
- if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
1764
- return false;
1765
- }
1766
- return true;
1767
- }
1768
- while (fr < fl) {
1769
- var swallowee = file[fr];
1770
- this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
1771
- if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
1772
- this.debug("globstar found match!", fr, fl, swallowee);
1773
- return true;
1774
- } else {
1775
- if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
1776
- this.debug("dot detected!", file, fr, pattern, pr);
1777
- break;
1778
- }
1779
- this.debug("globstar swallow a segment, and continue");
1780
- fr++;
1781
- }
1782
- }
1783
- if (partial) {
1784
- this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
1785
- if (fr === fl) {
1786
- return true;
1787
- }
1788
- }
1789
- return false;
1790
- }
1791
- let hit;
1792
- if (typeof p === "string") {
1793
- hit = f === p;
1794
- this.debug("string match", p, f, hit);
1795
- } else {
1796
- hit = p.test(f);
1797
- this.debug("pattern match", p, f, hit);
1798
- }
1799
- if (!hit)
1800
- return false;
1801
- }
1802
- if (fi === fl && pi === pl) {
1803
- return true;
1804
- } else if (fi === fl) {
1805
- return partial;
1806
- } else if (pi === pl) {
1807
- return fi === fl - 1 && file[fi] === "";
1808
- } else {
1809
- throw new Error("wtf?");
1810
- }
1811
- }
1812
- braceExpand() {
1813
- return braceExpand(this.pattern, this.options);
1814
- }
1815
- parse(pattern) {
1816
- assertValidPattern(pattern);
1817
- const options = this.options;
1818
- if (pattern === "**")
1819
- return GLOBSTAR;
1820
- if (pattern === "")
1821
- return "";
1822
- let m;
1823
- let fastTest = null;
1824
- if (m = pattern.match(starRE)) {
1825
- fastTest = options.dot ? starTestDot : starTest;
1826
- } else if (m = pattern.match(starDotExtRE)) {
1827
- fastTest = (options.nocase ? options.dot ? starDotExtTestNocaseDot : starDotExtTestNocase : options.dot ? starDotExtTestDot : starDotExtTest)(m[1]);
1828
- } else if (m = pattern.match(qmarksRE)) {
1829
- fastTest = (options.nocase ? options.dot ? qmarksTestNocaseDot : qmarksTestNocase : options.dot ? qmarksTestDot : qmarksTest)(m);
1830
- } else if (m = pattern.match(starDotStarRE)) {
1831
- fastTest = options.dot ? starDotStarTestDot : starDotStarTest;
1832
- } else if (m = pattern.match(dotStarRE)) {
1833
- fastTest = dotStarTest;
1834
- }
1835
- const re = AST.fromGlob(pattern, this.options).toMMPattern();
1836
- if (fastTest && typeof re === "object") {
1837
- Reflect.defineProperty(re, "test", { value: fastTest });
1838
- }
1839
- return re;
1840
- }
1841
- makeRe() {
1842
- if (this.regexp || this.regexp === false)
1843
- return this.regexp;
1844
- const set = this.set;
1845
- if (!set.length) {
1846
- this.regexp = false;
1847
- return this.regexp;
1848
- }
1849
- const options = this.options;
1850
- const twoStar = options.noglobstar ? star2 : options.dot ? twoStarDot : twoStarNoDot;
1851
- const flags = new Set(options.nocase ? ["i"] : []);
1852
- let re = set.map((pattern) => {
1853
- const pp = pattern.map((p) => {
1854
- if (p instanceof RegExp) {
1855
- for (const f of p.flags.split(""))
1856
- flags.add(f);
1857
- }
1858
- return typeof p === "string" ? regExpEscape2(p) : p === GLOBSTAR ? GLOBSTAR : p._src;
1859
- });
1860
- pp.forEach((p, i2) => {
1861
- const next = pp[i2 + 1];
1862
- const prev = pp[i2 - 1];
1863
- if (p !== GLOBSTAR || prev === GLOBSTAR) {
1864
- return;
1865
- }
1866
- if (prev === void 0) {
1867
- if (next !== void 0 && next !== GLOBSTAR) {
1868
- pp[i2 + 1] = "(?:\\/|" + twoStar + "\\/)?" + next;
1869
- } else {
1870
- pp[i2] = twoStar;
1871
- }
1872
- } else if (next === void 0) {
1873
- pp[i2 - 1] = prev + "(?:\\/|" + twoStar + ")?";
1874
- } else if (next !== GLOBSTAR) {
1875
- pp[i2 - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
1876
- pp[i2 + 1] = GLOBSTAR;
1877
- }
1878
- });
1879
- return pp.filter((p) => p !== GLOBSTAR).join("/");
1880
- }).join("|");
1881
- const [open, close] = set.length > 1 ? ["(?:", ")"] : ["", ""];
1882
- re = "^" + open + re + close + "$";
1883
- if (this.negate)
1884
- re = "^(?!" + re + ").+$";
1885
- try {
1886
- this.regexp = new RegExp(re, [...flags].join(""));
1887
- } catch (ex) {
1888
- this.regexp = false;
1889
- }
1890
- return this.regexp;
1891
- }
1892
- slashSplit(p) {
1893
- if (this.preserveMultipleSlashes) {
1894
- return p.split("/");
1895
- } else if (this.isWindows && /^\/\/[^\/]+/.test(p)) {
1896
- return ["", ...p.split(/\/+/)];
1897
- } else {
1898
- return p.split(/\/+/);
1899
- }
1900
- }
1901
- match(f, partial = this.partial) {
1902
- this.debug("match", f, this.pattern);
1903
- if (this.comment) {
1904
- return false;
1905
- }
1906
- if (this.empty) {
1907
- return f === "";
1908
- }
1909
- if (f === "/" && partial) {
1910
- return true;
1911
- }
1912
- const options = this.options;
1913
- if (this.isWindows) {
1914
- f = f.split("\\").join("/");
1915
- }
1916
- const ff = this.slashSplit(f);
1917
- this.debug(this.pattern, "split", ff);
1918
- const set = this.set;
1919
- this.debug(this.pattern, "set", set);
1920
- let filename = ff[ff.length - 1];
1921
- if (!filename) {
1922
- for (let i2 = ff.length - 2; !filename && i2 >= 0; i2--) {
1923
- filename = ff[i2];
1924
- }
1925
- }
1926
- for (let i2 = 0; i2 < set.length; i2++) {
1927
- const pattern = set[i2];
1928
- let file = ff;
1929
- if (options.matchBase && pattern.length === 1) {
1930
- file = [filename];
1931
- }
1932
- const hit = this.matchOne(file, pattern, partial);
1933
- if (hit) {
1934
- if (options.flipNegate) {
1935
- return true;
1936
- }
1937
- return !this.negate;
1938
- }
1939
- }
1940
- if (options.flipNegate) {
1941
- return false;
1942
- }
1943
- return this.negate;
1944
- }
1945
- static defaults(def) {
1946
- return minimatch.defaults(def).Minimatch;
1947
- }
1948
- };
1949
- minimatch.AST = AST;
1950
- minimatch.Minimatch = Minimatch;
1951
- minimatch.escape = escape;
1952
- minimatch.unescape = unescape;
1953
-
1954
- // src/utils/query-nonce-meta-tag-content.ts
1955
- function queryNonceMetaTagContent(doc) {
1956
- var _a, _b, _c;
1957
- return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
1958
- }
1959
-
1960
- // src/utils/regular-expression.ts
1961
- var escapeRegExpSpecialCharacters = (text) => {
1962
- return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1963
- };
1964
-
1965
- // src/utils/remote-value.ts
1966
- var RemoteValue = class _RemoteValue {
1967
- /**
1968
- * Deserializes a LocalValue serialized object back to its original JavaScript representation
1969
- *
1970
- * @param serialized The serialized LocalValue object
1971
- * @returns The original JavaScript value/object
1972
- */
1973
- static fromLocalValue(serialized) {
1974
- const type = serialized[TYPE_CONSTANT];
1975
- const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
1976
- switch (type) {
1977
- case "string" /* String */:
1978
- return value;
1979
- case "boolean" /* Boolean */:
1980
- return value;
1981
- case "bigint" /* BigInt */:
1982
- return BigInt(value);
1983
- case "undefined" /* Undefined */:
1984
- return void 0;
1985
- case "null" /* Null */:
1986
- return null;
1987
- case "number" /* Number */:
1988
- if (value === "NaN") return NaN;
1989
- if (value === "-0") return -0;
1990
- if (value === "Infinity") return Infinity;
1991
- if (value === "-Infinity") return -Infinity;
1992
- return value;
1993
- case "array" /* Array */:
1994
- return value.map((item) => _RemoteValue.fromLocalValue(item));
1995
- case "date" /* Date */:
1996
- return new Date(value);
1997
- case "map" /* Map */:
1998
- const map2 = /* @__PURE__ */ new Map();
1999
- for (const [key, val] of value) {
2000
- const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
2001
- const deserializedValue = _RemoteValue.fromLocalValue(val);
2002
- map2.set(deserializedKey, deserializedValue);
2003
- }
2004
- return map2;
2005
- case "object" /* Object */:
2006
- const obj = {};
2007
- for (const [key, val] of value) {
2008
- obj[key] = _RemoteValue.fromLocalValue(val);
2009
- }
2010
- return obj;
2011
- case "regexp" /* RegularExpression */:
2012
- const { pattern, flags } = value;
2013
- return new RegExp(pattern, flags);
2014
- case "set" /* Set */:
2015
- const set = /* @__PURE__ */ new Set();
2016
- for (const item of value) {
2017
- set.add(_RemoteValue.fromLocalValue(item));
2018
- }
2019
- return set;
2020
- case "symbol" /* Symbol */:
2021
- return Symbol(value);
2022
- default:
2023
- throw new Error(`Unsupported type: ${type}`);
2024
- }
2025
- }
2026
- /**
2027
- * Utility method to deserialize multiple LocalValues at once
2028
- *
2029
- * @param serializedValues Array of serialized LocalValue objects
2030
- * @returns Array of deserialized JavaScript values
2031
- */
2032
- static fromLocalValueArray(serializedValues) {
2033
- return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
2034
- }
2035
- /**
2036
- * Verifies if the given object matches the structure of a serialized LocalValue
2037
- *
2038
- * @param obj Object to verify
2039
- * @returns boolean indicating if the object has LocalValue structure
2040
- */
2041
- static isLocalValueObject(obj) {
2042
- if (typeof obj !== "object" || obj === null) {
2043
- return false;
2044
- }
2045
- if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
2046
- return false;
2047
- }
2048
- const type = obj[TYPE_CONSTANT];
2049
- const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
2050
- if (!hasTypeProperty) {
297
+ let supportsListenerOptions2 = false;
298
+ try {
299
+ (_a = win.document) == null ? void 0 : _a.addEventListener(
300
+ "e",
301
+ null,
302
+ Object.defineProperty({}, "passive", {
303
+ get() {
304
+ supportsListenerOptions2 = true;
305
+ }
306
+ })
307
+ );
308
+ } catch (e) {
309
+ }
310
+ return supportsListenerOptions2;
311
+ })();
312
+ var promiseResolve = (v) => Promise.resolve(v);
313
+ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
314
+ try {
315
+ if (!win.document.adoptedStyleSheets) {
2051
316
  return false;
2052
317
  }
2053
- if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
2054
- return obj.hasOwnProperty(VALUE_CONSTANT);
2055
- }
2056
- return true;
318
+ new CSSStyleSheet();
319
+ return typeof new CSSStyleSheet().replaceSync === "function";
320
+ } catch (e) {
2057
321
  }
2058
- };
2059
-
2060
- // src/utils/result.ts
2061
- var result_exports = {};
2062
- __export(result_exports, {
2063
- err: () => err,
2064
- map: () => map,
2065
- ok: () => ok,
2066
- unwrap: () => unwrap,
2067
- unwrapErr: () => unwrapErr
2068
- });
2069
- var ok = (value) => ({
2070
- isOk: true,
2071
- isErr: false,
2072
- value
2073
- });
2074
- var err = (value) => ({
2075
- isOk: false,
2076
- isErr: true,
2077
- value
2078
- });
2079
- function map(result, fn) {
2080
- if (result.isOk) {
2081
- const val = fn(result.value);
2082
- if (val instanceof Promise) {
2083
- return val.then((newVal) => ok(newVal));
322
+ return false;
323
+ })() ;
324
+ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
325
+ var queuePending = false;
326
+ var queueDomReads = [];
327
+ var queueDomWrites = [];
328
+ var queueTask = (queue, write) => (cb) => {
329
+ queue.push(cb);
330
+ if (!queuePending) {
331
+ queuePending = true;
332
+ if (write && plt.$flags$ & 4 /* queueSync */) {
333
+ nextTick(flush);
2084
334
  } else {
2085
- return ok(val);
335
+ plt.raf(flush);
2086
336
  }
2087
337
  }
2088
- if (result.isErr) {
2089
- const value = result.value;
2090
- return err(value);
2091
- }
2092
- throw "should never get here";
2093
- }
2094
- var unwrap = (result) => {
2095
- if (result.isOk) {
2096
- return result.value;
2097
- } else {
2098
- throw result.value;
2099
- }
2100
338
  };
2101
- var unwrapErr = (result) => {
2102
- if (result.isErr) {
2103
- return result.value;
2104
- } else {
2105
- throw result.value;
339
+ var consume = (queue) => {
340
+ for (let i2 = 0; i2 < queue.length; i2++) {
341
+ try {
342
+ queue[i2](performance.now());
343
+ } catch (e) {
344
+ consoleError(e);
345
+ }
2106
346
  }
347
+ queue.length = 0;
2107
348
  };
2108
-
2109
- // src/utils/serialize.ts
2110
- function deserializeProperty(value) {
2111
- if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
2112
- return value;
349
+ var flush = () => {
350
+ consume(queueDomReads);
351
+ {
352
+ consume(queueDomWrites);
353
+ if (queuePending = queueDomReads.length > 0) {
354
+ plt.raf(flush);
355
+ }
2113
356
  }
2114
- return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
2115
- }
357
+ };
358
+ var nextTick = (cb) => promiseResolve().then(cb);
359
+ var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
2116
360
 
2117
361
  // src/utils/style.ts
2118
362
  function createStyleSheetIfNeededAndSupported(styles2) {
@@ -2302,6 +546,14 @@ var uniqueTime = (key, measureText) => {
2302
546
  };
2303
547
  }
2304
548
  };
549
+
550
+ // src/utils/query-nonce-meta-tag-content.ts
551
+ function queryNonceMetaTagContent(doc) {
552
+ var _a, _b, _c;
553
+ return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
554
+ }
555
+
556
+ // src/runtime/styles.ts
2305
557
  var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
2306
558
  var registerStyle = (scopeId2, cssText, allowCS) => {
2307
559
  let style = styles.get(scopeId2);
@@ -2335,10 +587,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
2335
587
  }
2336
588
  const existingStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
2337
589
  if (existingStyleElm) {
2338
- existingStyleElm.innerHTML = style;
590
+ existingStyleElm.textContent = style;
2339
591
  } else if (!appliedStyles.has(scopeId2)) {
2340
592
  styleElm = win.document.createElement("style");
2341
- styleElm.innerHTML = style;
593
+ styleElm.textContent = style;
2342
594
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
2343
595
  if (nonce != null) {
2344
596
  styleElm.setAttribute("nonce", nonce);
@@ -2363,8 +615,8 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
2363
615
  }
2364
616
  } else {
2365
617
  const existingStyleContainer = styleContainerNode.querySelector("style");
2366
- if (existingStyleContainer) {
2367
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
618
+ if (existingStyleContainer && true) {
619
+ existingStyleContainer.textContent = style + existingStyleContainer.textContent;
2368
620
  } else {
2369
621
  styleContainerNode.prepend(styleElm);
2370
622
  }
@@ -2377,7 +629,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
2377
629
  styleContainerNode.insertBefore(styleElm, null);
2378
630
  }
2379
631
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
2380
- styleElm.innerHTML += SLOT_FB_CSS;
632
+ styleElm.textContent += SLOT_FB_CSS;
2381
633
  }
2382
634
  if (appliedStyles) {
2383
635
  appliedStyles.add(scopeId2);
@@ -2405,6 +657,12 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
2405
657
  styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
2406
658
  }
2407
659
  appliedStyles.add(scopeId2);
660
+ if ("host" in styleContainerNode) {
661
+ const ssrStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
662
+ if (ssrStyleElm) {
663
+ writeTask(() => ssrStyleElm.remove());
664
+ }
665
+ }
2408
666
  }
2409
667
  }
2410
668
  }
@@ -2436,6 +694,12 @@ var hydrateScopedToShadow = () => {
2436
694
  registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
2437
695
  }
2438
696
  };
697
+ var isComplexType = (o) => {
698
+ o = typeof o;
699
+ return o === "object" || o === "function";
700
+ };
701
+
702
+ // src/runtime/vdom/h.ts
2439
703
  var h = (nodeName, vnodeData, ...children) => {
2440
704
  if (typeof nodeName === "string") {
2441
705
  nodeName = transformTag(nodeName);
@@ -2503,7 +767,8 @@ var newVNode = (tag, text) => {
2503
767
  const vnode = {
2504
768
  $flags$: 0,
2505
769
  $tag$: tag,
2506
- $text$: text,
770
+ // Normalize undefined to null to prevent rendering "undefined" as text
771
+ $text$: text != null ? text : null,
2507
772
  $elm$: null,
2508
773
  $children$: null
2509
774
  };
@@ -2597,7 +862,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
2597
862
  cmpMeta.$cmpMeta$);
2598
863
  const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
2599
864
  if (styleSheet) {
2600
- hostElm.shadowRoot.append(styleSheet.cloneNode(true));
865
+ shadowRootNodes.unshift(styleSheet.cloneNode(true));
2601
866
  }
2602
867
  }
2603
868
  }
@@ -2667,7 +932,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
2667
932
  currentPos = (slottedItem.node["s-oo"] || currentPos) + 1;
2668
933
  }
2669
934
  }
2670
- if (shadowRoot) {
935
+ if (shadowRoot && !shadowRoot.childNodes.length) {
2671
936
  let rnIdex = 0;
2672
937
  const rnLen = shadowRootNodes.length;
2673
938
  if (rnLen) {
@@ -2941,18 +1206,111 @@ var findCorrespondingNode = (node, type) => {
2941
1206
  } while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
2942
1207
  return sibling;
2943
1208
  };
2944
- var createSupportsRuleRe = (selector) => {
2945
- const safeSelector2 = escapeRegExpSpecialCharacters(selector);
2946
- return new RegExp(
2947
- // First capture group: match any context before the selector that's not inside @supports selector()
2948
- // Using negative lookahead to avoid matching inside @supports selector(...) condition
2949
- `(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
2950
- "g"
2951
- );
1209
+
1210
+ // src/utils/remote-value.ts
1211
+ var RemoteValue = class _RemoteValue {
1212
+ /**
1213
+ * Deserializes a LocalValue serialized object back to its original JavaScript representation
1214
+ *
1215
+ * @param serialized The serialized LocalValue object
1216
+ * @returns The original JavaScript value/object
1217
+ */
1218
+ static fromLocalValue(serialized) {
1219
+ const type = serialized[TYPE_CONSTANT];
1220
+ const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
1221
+ switch (type) {
1222
+ case "string" /* String */:
1223
+ return value;
1224
+ case "boolean" /* Boolean */:
1225
+ return value;
1226
+ case "bigint" /* BigInt */:
1227
+ return BigInt(value);
1228
+ case "undefined" /* Undefined */:
1229
+ return void 0;
1230
+ case "null" /* Null */:
1231
+ return null;
1232
+ case "number" /* Number */:
1233
+ if (value === "NaN") return NaN;
1234
+ if (value === "-0") return -0;
1235
+ if (value === "Infinity") return Infinity;
1236
+ if (value === "-Infinity") return -Infinity;
1237
+ return value;
1238
+ case "array" /* Array */:
1239
+ return value.map((item) => _RemoteValue.fromLocalValue(item));
1240
+ case "date" /* Date */:
1241
+ return new Date(value);
1242
+ case "map" /* Map */:
1243
+ const map = /* @__PURE__ */ new Map();
1244
+ for (const [key, val] of value) {
1245
+ const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
1246
+ const deserializedValue = _RemoteValue.fromLocalValue(val);
1247
+ map.set(deserializedKey, deserializedValue);
1248
+ }
1249
+ return map;
1250
+ case "object" /* Object */:
1251
+ const obj = {};
1252
+ for (const [key, val] of value) {
1253
+ obj[key] = _RemoteValue.fromLocalValue(val);
1254
+ }
1255
+ return obj;
1256
+ case "regexp" /* RegularExpression */:
1257
+ const { pattern, flags } = value;
1258
+ return new RegExp(pattern, flags);
1259
+ case "set" /* Set */:
1260
+ const set = /* @__PURE__ */ new Set();
1261
+ for (const item of value) {
1262
+ set.add(_RemoteValue.fromLocalValue(item));
1263
+ }
1264
+ return set;
1265
+ case "symbol" /* Symbol */:
1266
+ return Symbol(value);
1267
+ default:
1268
+ throw new Error(`Unsupported type: ${type}`);
1269
+ }
1270
+ }
1271
+ /**
1272
+ * Utility method to deserialize multiple LocalValues at once
1273
+ *
1274
+ * @param serializedValues Array of serialized LocalValue objects
1275
+ * @returns Array of deserialized JavaScript values
1276
+ */
1277
+ static fromLocalValueArray(serializedValues) {
1278
+ return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
1279
+ }
1280
+ /**
1281
+ * Verifies if the given object matches the structure of a serialized LocalValue
1282
+ *
1283
+ * @param obj Object to verify
1284
+ * @returns boolean indicating if the object has LocalValue structure
1285
+ */
1286
+ static isLocalValueObject(obj) {
1287
+ if (typeof obj !== "object" || obj === null) {
1288
+ return false;
1289
+ }
1290
+ if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
1291
+ return false;
1292
+ }
1293
+ const type = obj[TYPE_CONSTANT];
1294
+ const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
1295
+ if (!hasTypeProperty) {
1296
+ return false;
1297
+ }
1298
+ if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
1299
+ return obj.hasOwnProperty(VALUE_CONSTANT);
1300
+ }
1301
+ return true;
1302
+ }
2952
1303
  };
2953
- createSupportsRuleRe("::slotted");
2954
- createSupportsRuleRe(":host");
2955
- createSupportsRuleRe(":host-context");
1304
+
1305
+ // src/utils/serialize.ts
1306
+ function deserializeProperty(value) {
1307
+ if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
1308
+ return value;
1309
+ }
1310
+ return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
1311
+ }
1312
+
1313
+ // src/runtime/parse-property-value.ts
2956
1314
  var parsePropertyValue = (propValue, propType, isFormAssociated) => {
2957
1315
  if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
2958
1316
  propValue = deserializeProperty(propValue);
@@ -3043,7 +1401,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
3043
1401
  }
3044
1402
  } else if (memberName === "key") ; else if (memberName === "ref") {
3045
1403
  if (newValue) {
3046
- newValue(elm);
1404
+ queueRefAttachment(newValue, elm);
3047
1405
  }
3048
1406
  } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
3049
1407
  if (memberName[2] === "-") {
@@ -3063,6 +1421,36 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
3063
1421
  plt.ael(elm, memberName, newValue, capture);
3064
1422
  }
3065
1423
  }
1424
+ } else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
1425
+ const propName = memberName.slice(5);
1426
+ let attrName;
1427
+ {
1428
+ const hostRef = getHostRef(elm);
1429
+ if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
1430
+ const memberMeta = hostRef.$cmpMeta$.$members$[propName];
1431
+ if (memberMeta && memberMeta[1]) {
1432
+ attrName = memberMeta[1];
1433
+ }
1434
+ }
1435
+ }
1436
+ if (!attrName) {
1437
+ attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1438
+ }
1439
+ if (newValue == null || newValue === false) {
1440
+ if (newValue !== false || elm.getAttribute(attrName) === "") {
1441
+ elm.removeAttribute(attrName);
1442
+ }
1443
+ } else {
1444
+ elm.setAttribute(attrName, newValue === true ? "" : newValue);
1445
+ }
1446
+ return;
1447
+ } else if (memberName[0] === "p" && memberName.startsWith("prop:")) {
1448
+ const propName = memberName.slice(5);
1449
+ try {
1450
+ elm[propName] = newValue;
1451
+ } catch (e) {
1452
+ }
1453
+ return;
3066
1454
  } else {
3067
1455
  const isComplex = isComplexType(newValue);
3068
1456
  if ((isProp || isComplex && newValue !== null) && !isSvg) {
@@ -3071,7 +1459,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
3071
1459
  const n = newValue == null ? "" : newValue;
3072
1460
  if (memberName === "list") {
3073
1461
  isProp = false;
3074
- } else if (oldValue == null || elm[memberName] != n) {
1462
+ } else if (oldValue == null || elm[memberName] !== n) {
3075
1463
  if (typeof elm.__lookupSetter__(memberName) === "function") {
3076
1464
  elm[memberName] = n;
3077
1465
  } else {
@@ -3169,6 +1557,8 @@ var useNativeShadowDom = false;
3169
1557
  var checkSlotFallbackVisibility = false;
3170
1558
  var checkSlotRelocate = false;
3171
1559
  var isSvgMode = false;
1560
+ var refCallbacksToRemove = [];
1561
+ var refCallbacksToAttach = [];
3172
1562
  var createElm = (oldParentVNode, newParentVNode, childIndex) => {
3173
1563
  var _a;
3174
1564
  const newVNode2 = newParentVNode.$children$[childIndex];
@@ -3191,7 +1581,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
3191
1581
  );
3192
1582
  }
3193
1583
  }
3194
- if (newVNode2.$text$ !== null) {
1584
+ if (newVNode2.$text$ != null) {
3195
1585
  elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
3196
1586
  } else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
3197
1587
  elm = newVNode2.$elm$ = win.document.createTextNode("");
@@ -3203,9 +1593,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
3203
1593
  isSvgMode = newVNode2.$tag$ === "svg";
3204
1594
  }
3205
1595
  if (!win.document) {
3206
- throw new Error(
3207
- "You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
3208
- );
1596
+ throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
3209
1597
  }
3210
1598
  elm = newVNode2.$elm$ = win.document.createElementNS(
3211
1599
  isSvgMode ? SVG_NS : HTML_NS,
@@ -3453,7 +1841,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
3453
1841
  const tag = newVNode2.$tag$;
3454
1842
  const text = newVNode2.$text$;
3455
1843
  let defaultHolder;
3456
- if (text === null) {
1844
+ if (text == null) {
3457
1845
  {
3458
1846
  isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
3459
1847
  }
@@ -3542,16 +1930,33 @@ var markSlotContentForRelocation = (elm) => {
3542
1930
  };
3543
1931
  var nullifyVNodeRefs = (vNode) => {
3544
1932
  {
3545
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1933
+ if (vNode.$attrs$ && vNode.$attrs$.ref) {
1934
+ refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));
1935
+ }
3546
1936
  vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
3547
1937
  }
3548
1938
  };
1939
+ var queueRefAttachment = (refCallback, elm) => {
1940
+ {
1941
+ refCallbacksToAttach.push(() => refCallback(elm));
1942
+ }
1943
+ };
1944
+ var flushQueuedRefCallbacks = () => {
1945
+ {
1946
+ refCallbacksToRemove.forEach((cb) => cb());
1947
+ refCallbacksToRemove.length = 0;
1948
+ refCallbacksToAttach.forEach((cb) => cb());
1949
+ refCallbacksToAttach.length = 0;
1950
+ }
1951
+ };
3549
1952
  var insertBefore = (parent, newNode, reference, isInitialLoad) => {
3550
- if (typeof newNode["s-sn"] === "string") {
3551
- parent.insertBefore(newNode, reference);
3552
- const { slotNode } = findSlotFromSlottedNode(newNode);
3553
- if (slotNode && !isInitialLoad) dispatchSlotChangeEvent(slotNode);
3554
- return newNode;
1953
+ {
1954
+ if (typeof newNode["s-sn"] === "string") {
1955
+ parent.insertBefore(newNode, reference);
1956
+ const { slotNode } = findSlotFromSlottedNode(newNode);
1957
+ if (slotNode && !isInitialLoad) dispatchSlotChangeEvent(slotNode);
1958
+ return newNode;
1959
+ }
3555
1960
  }
3556
1961
  if (parent.__insertBefore) {
3557
1962
  return parent.__insertBefore(newNode, reference);
@@ -3687,6 +2092,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
3687
2092
  }
3688
2093
  }
3689
2094
  contentRef = void 0;
2095
+ flushQueuedRefCallbacks();
3690
2096
  };
3691
2097
 
3692
2098
  // src/runtime/update-component.ts
@@ -3755,8 +2161,8 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
3755
2161
  endSchedule();
3756
2162
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
3757
2163
  };
3758
- var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
3759
- console.error(err2);
2164
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
2165
+ console.error(err);
3760
2166
  fn();
3761
2167
  }) : fn();
3762
2168
  var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
@@ -3784,7 +2190,7 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
3784
2190
  if (childrenPromises.length === 0) {
3785
2191
  postUpdate();
3786
2192
  } else {
3787
- Promise.all(childrenPromises).then(postUpdate);
2193
+ Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
3788
2194
  hostRef.$flags$ |= 4 /* isWaitingForChildren */;
3789
2195
  childrenPromises.length = 0;
3790
2196
  }
@@ -3917,13 +2323,16 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
3917
2323
  });
3918
2324
  }
3919
2325
  }
3920
- if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
2326
+ if (flags & 2 /* hasRendered */) {
3921
2327
  if (instance.componentShouldUpdate) {
3922
- if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
2328
+ const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
2329
+ if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
3923
2330
  return;
3924
2331
  }
3925
2332
  }
3926
- scheduleUpdate(hostRef, false);
2333
+ if (!(flags & 16 /* isQueuedForUpdate */)) {
2334
+ scheduleUpdate(hostRef, false);
2335
+ }
3927
2336
  }
3928
2337
  }
3929
2338
  };
@@ -3947,7 +2356,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
3947
2356
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
3948
2357
  members.map(([memberName, [memberFlags]]) => {
3949
2358
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
3950
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
2359
+ const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
3951
2360
  if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
3952
2361
  if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
3953
2362
  if (flags & 1 /* isElementConstructor */ || !origGetter) {
@@ -4092,76 +2501,87 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
4092
2501
  // src/runtime/initialize-component.ts
4093
2502
  var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
4094
2503
  let Cstr;
4095
- if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
4096
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
4097
- const bundleId = cmpMeta.$lazyBundleId$;
4098
- if (bundleId) {
4099
- const CstrImport = loadModule(cmpMeta, hostRef);
4100
- if (CstrImport && "then" in CstrImport) {
4101
- const endLoad = uniqueTime();
4102
- Cstr = await CstrImport;
4103
- endLoad();
4104
- } else {
4105
- Cstr = CstrImport;
4106
- }
4107
- if (!Cstr) {
4108
- throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
4109
- }
4110
- if (!Cstr.isProxied) {
2504
+ try {
2505
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
2506
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
2507
+ const bundleId = cmpMeta.$lazyBundleId$;
2508
+ if (bundleId) {
2509
+ const CstrImport = loadModule(cmpMeta, hostRef);
2510
+ if (CstrImport && "then" in CstrImport) {
2511
+ const endLoad = uniqueTime();
2512
+ Cstr = await CstrImport;
2513
+ endLoad();
2514
+ } else {
2515
+ Cstr = CstrImport;
2516
+ }
2517
+ if (!Cstr) {
2518
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
2519
+ }
2520
+ if (!Cstr.isProxied) {
2521
+ {
2522
+ cmpMeta.$watchers$ = Cstr.watchers;
2523
+ cmpMeta.$serializers$ = Cstr.serializers;
2524
+ cmpMeta.$deserializers$ = Cstr.deserializers;
2525
+ }
2526
+ proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
2527
+ Cstr.isProxied = true;
2528
+ }
2529
+ const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
4111
2530
  {
4112
- cmpMeta.$watchers$ = Cstr.watchers;
4113
- cmpMeta.$serializers$ = Cstr.serializers;
4114
- cmpMeta.$deserializers$ = Cstr.deserializers;
2531
+ hostRef.$flags$ |= 8 /* isConstructingInstance */;
2532
+ }
2533
+ try {
2534
+ new Cstr(hostRef);
2535
+ } catch (e) {
2536
+ consoleError(e, elm);
2537
+ }
2538
+ {
2539
+ hostRef.$flags$ &= -9 /* isConstructingInstance */;
2540
+ }
2541
+ {
2542
+ hostRef.$flags$ |= 128 /* isWatchReady */;
2543
+ }
2544
+ endNewInstance();
2545
+ const needsDeferredCallback = cmpMeta.$flags$ & 4 /* hasSlotRelocation */;
2546
+ if (!needsDeferredCallback) {
2547
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
2548
+ } else {
2549
+ hostRef.$deferredConnectedCallback$ = true;
4115
2550
  }
4116
- proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
4117
- Cstr.isProxied = true;
4118
- }
4119
- const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
4120
- {
4121
- hostRef.$flags$ |= 8 /* isConstructingInstance */;
4122
- }
4123
- try {
4124
- new Cstr(hostRef);
4125
- } catch (e) {
4126
- consoleError(e, elm);
4127
- }
4128
- {
4129
- hostRef.$flags$ &= -9 /* isConstructingInstance */;
4130
- }
4131
- {
4132
- hostRef.$flags$ |= 128 /* isWatchReady */;
4133
- }
4134
- endNewInstance();
4135
- const needsDeferredCallback = cmpMeta.$flags$ & 4 /* hasSlotRelocation */;
4136
- if (!needsDeferredCallback) {
4137
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
4138
2551
  } else {
4139
- hostRef.$deferredConnectedCallback$ = true;
2552
+ Cstr = elm.constructor;
2553
+ const cmpTag = elm.localName;
2554
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
2555
+ }
2556
+ if (Cstr && Cstr.style) {
2557
+ let style;
2558
+ if (typeof Cstr.style === "string") {
2559
+ style = Cstr.style;
2560
+ }
2561
+ const scopeId2 = getScopeId(cmpMeta);
2562
+ if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
2563
+ const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
2564
+ registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
2565
+ endRegisterStyles();
2566
+ }
4140
2567
  }
2568
+ }
2569
+ const ancestorComponent = hostRef.$ancestorComponent$;
2570
+ const schedule = () => scheduleUpdate(hostRef, true);
2571
+ if (ancestorComponent && ancestorComponent["s-rc"]) {
2572
+ ancestorComponent["s-rc"].push(schedule);
4141
2573
  } else {
4142
- Cstr = elm.constructor;
4143
- const cmpTag = elm.localName;
4144
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
2574
+ schedule();
4145
2575
  }
4146
- if (Cstr && Cstr.style) {
4147
- let style;
4148
- if (typeof Cstr.style === "string") {
4149
- style = Cstr.style;
4150
- }
4151
- const scopeId2 = getScopeId(cmpMeta);
4152
- if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
4153
- const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
4154
- registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
4155
- endRegisterStyles();
4156
- }
2576
+ } catch (e) {
2577
+ consoleError(e, elm);
2578
+ if (hostRef.$onRenderResolve$) {
2579
+ hostRef.$onRenderResolve$();
2580
+ hostRef.$onRenderResolve$ = void 0;
2581
+ }
2582
+ if (hostRef.$onReadyResolve$) {
2583
+ hostRef.$onReadyResolve$(elm);
4157
2584
  }
4158
- }
4159
- const ancestorComponent = hostRef.$ancestorComponent$;
4160
- const schedule = () => scheduleUpdate(hostRef, true);
4161
- if (ancestorComponent && ancestorComponent["s-rc"]) {
4162
- ancestorComponent["s-rc"].push(schedule);
4163
- } else {
4164
- schedule();
4165
2585
  }
4166
2586
  };
4167
2587
  var fireConnectedCallback = (instance, elm) => {
@@ -4209,7 +2629,7 @@ var connectedCallback = (elm) => {
4209
2629
  }
4210
2630
  if (cmpMeta.$members$) {
4211
2631
  Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
4212
- if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
2632
+ if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
4213
2633
  const value = elm[memberName];
4214
2634
  delete elm[memberName];
4215
2635
  elm[memberName] = value;