@re-code/aurora 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1019) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +92 -2
  3. package/dist/aurora/aurora.esm.js +1 -0
  4. package/dist/aurora/index.esm.js +1 -0
  5. package/dist/aurora/p-038b2190.entry.js +1 -0
  6. package/dist/aurora/p-0608e910.entry.js +1 -0
  7. package/dist/aurora/p-17210bb6.entry.js +1 -0
  8. package/dist/aurora/p-17e65032.entry.js +1 -0
  9. package/dist/aurora/p-21786a68.entry.js +1 -0
  10. package/dist/aurora/p-23e57d65.entry.js +1 -0
  11. package/dist/aurora/p-278d3434.entry.js +1 -0
  12. package/dist/aurora/p-2a16d544.entry.js +1 -0
  13. package/dist/aurora/p-31a86367.entry.js +1 -0
  14. package/dist/aurora/p-35edd036.entry.js +1 -0
  15. package/dist/aurora/p-372a3416.entry.js +1 -0
  16. package/dist/aurora/p-40bb52c3.entry.js +1 -0
  17. package/dist/aurora/p-487df7d8.entry.js +1 -0
  18. package/dist/aurora/p-546a2f69.entry.js +1 -0
  19. package/dist/aurora/p-57512cd7.entry.js +1 -0
  20. package/dist/aurora/p-5d2a88ca.entry.js +1 -0
  21. package/dist/aurora/p-62ccacf0.entry.js +1 -0
  22. package/dist/aurora/p-64229ad2.entry.js +1 -0
  23. package/dist/aurora/p-685b9e53.entry.js +1 -0
  24. package/dist/aurora/p-689f37db.entry.js +1 -0
  25. package/dist/aurora/p-746825ce.entry.js +1 -0
  26. package/dist/aurora/p-88b72de7.entry.js +1 -0
  27. package/dist/aurora/p-89b66c7a.entry.js +1 -0
  28. package/dist/aurora/p-8de508c7.entry.js +1 -0
  29. package/dist/aurora/p-8ed72e5b.entry.js +1 -0
  30. package/dist/aurora/p-B3rlZvSP.js +7 -0
  31. package/dist/aurora/p-B71krpcd.js +1 -0
  32. package/dist/aurora/p-BTRtOC1j.js +1 -0
  33. package/dist/aurora/p-BTZwl4uD.js +7 -0
  34. package/dist/aurora/p-BvnCPjl5.js +1 -0
  35. package/dist/aurora/p-C-bRwiWx.js +1 -0
  36. package/dist/aurora/p-C2iVoG0G.js +1 -0
  37. package/dist/aurora/p-C48ks26E.js +1 -0
  38. package/dist/aurora/p-C6E5E18W.js +7 -0
  39. package/dist/aurora/p-CA3n-tpF.js +7 -0
  40. package/dist/aurora/p-CIZeCYao.js +1 -0
  41. package/dist/aurora/p-CJtRxiuh.js +7 -0
  42. package/dist/aurora/p-CU9sZ49I.js +7 -0
  43. package/dist/aurora/p-CfazOBmW.js +1 -0
  44. package/dist/aurora/p-Ci-XzGE3.js +1 -0
  45. package/dist/aurora/p-CnJOd66V.js +7 -0
  46. package/dist/aurora/p-CoyAdNcI.js +1 -0
  47. package/dist/aurora/p-Cq5N0E4D.js +7 -0
  48. package/dist/aurora/p-CrKUXDm4.js +1 -0
  49. package/dist/aurora/p-DBHfOAQc.js +1 -0
  50. package/dist/aurora/p-DD6GCVQb.js +1 -0
  51. package/dist/aurora/p-DQuL1Twl.js +1 -0
  52. package/dist/aurora/p-DTEnois3.js +7 -0
  53. package/dist/aurora/p-DVGjumbs.js +1 -0
  54. package/dist/aurora/p-DXbj-yic.js +1 -0
  55. package/dist/aurora/p-DgfWQsck.js +1 -0
  56. package/dist/aurora/p-Dogh3-Bf.js +1 -0
  57. package/dist/aurora/p-DqqWqhAT.js +1 -0
  58. package/dist/aurora/p-Dv3Jcvbc.js +1 -0
  59. package/dist/aurora/p-DzNA1eDU.js +1 -0
  60. package/dist/aurora/p-JU60IJxn.js +1 -0
  61. package/dist/aurora/p-KLUZmSN-.js +3 -0
  62. package/dist/aurora/p-TdUs41zm.js +1 -0
  63. package/dist/aurora/p-a1e257c7.entry.js +1 -0
  64. package/dist/aurora/p-a72596b4.entry.js +1 -0
  65. package/dist/aurora/p-a87dc1d3.entry.js +1 -0
  66. package/dist/aurora/p-a8e984e1.entry.js +1 -0
  67. package/dist/aurora/p-b2feddb2.entry.js +1 -0
  68. package/dist/aurora/p-bd1f6486.entry.js +1 -0
  69. package/dist/aurora/p-c330982c.entry.js +1 -0
  70. package/dist/aurora/p-c3668073.entry.js +1 -0
  71. package/dist/aurora/p-e1c97234.entry.js +1 -0
  72. package/dist/aurora/p-e72126a2.entry.js +1 -0
  73. package/dist/aurora/p-e7c81a6b.entry.js +1 -0
  74. package/dist/aurora/p-ec96e6ff.entry.js +1 -0
  75. package/dist/aurora/p-ed998b0c.entry.js +1 -0
  76. package/dist/aurora/p-ee2ea46e.entry.js +1 -0
  77. package/dist/aurora/p-ee4475a6.entry.js +1 -0
  78. package/dist/aurora/p-efa289c1.entry.js +1 -0
  79. package/dist/aurora/p-efd60427.entry.js +1 -0
  80. package/dist/aurora/p-f89bde2b.entry.js +1 -0
  81. package/dist/aurora/p-fd4e9cdd.entry.js +1 -0
  82. package/dist/aurora/p-gvyxpLwV.js +1 -0
  83. package/dist/aurora/p-kEvQ5xF7.js +1 -0
  84. package/dist/aurora/p-kbAXs-sG.js +7 -0
  85. package/dist/aurora/p-klxij34W.js +1 -0
  86. package/dist/aurora/p-kpQFQ7bu.js +7 -0
  87. package/dist/aurora/p-tdx7CCkD.js +7 -0
  88. package/dist/aurora/p-vjn4H-yX.js +1 -0
  89. package/dist/cjs/accordion-DlPfFEHE.js +37 -0
  90. package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
  91. package/dist/cjs/attributes-Bn886Odj.js +30 -0
  92. package/dist/cjs/au-accordion-item.cjs.entry.js +88 -0
  93. package/dist/cjs/au-accordion.cjs.entry.js +100 -0
  94. package/dist/cjs/au-alert.cjs.entry.js +117 -0
  95. package/dist/cjs/au-avatar.cjs.entry.js +177 -0
  96. package/dist/cjs/au-badge.cjs.entry.js +60 -0
  97. package/dist/cjs/au-breadcrumb-item.cjs.entry.js +84 -0
  98. package/dist/cjs/au-breadcrumb.cjs.entry.js +80 -0
  99. package/dist/cjs/au-button.cjs.entry.js +328 -0
  100. package/dist/cjs/au-card.cjs.entry.js +76 -0
  101. package/dist/cjs/au-checkbox.cjs.entry.js +183 -0
  102. package/dist/cjs/au-chip.cjs.entry.js +249 -0
  103. package/dist/cjs/au-code-block.cjs.entry.js +678 -0
  104. package/dist/cjs/au-combobox.cjs.entry.js +755 -0
  105. package/dist/cjs/au-container.cjs.entry.js +58 -0
  106. package/dist/cjs/au-dialog.cjs.entry.js +377 -0
  107. package/dist/cjs/au-divider.cjs.entry.js +106 -0
  108. package/dist/cjs/au-field.cjs.entry.js +185 -0
  109. package/dist/cjs/au-icon-D0L9Wwy0.js +350 -0
  110. package/dist/cjs/au-icon.cjs.entry.js +9 -0
  111. package/dist/cjs/au-input.cjs.entry.js +312 -0
  112. package/dist/cjs/au-label.cjs.entry.js +45 -0
  113. package/dist/cjs/au-menu-item.cjs.entry.js +71 -0
  114. package/dist/cjs/au-menu.cjs.entry.js +347 -0
  115. package/dist/cjs/au-nav-group.cjs.entry.js +50 -0
  116. package/dist/cjs/au-nav-link.cjs.entry.js +84 -0
  117. package/dist/cjs/au-navbar.cjs.entry.js +306 -0
  118. package/dist/cjs/au-number-input.cjs.entry.js +350 -0
  119. package/dist/cjs/au-popover.cjs.entry.js +130 -0
  120. package/dist/cjs/au-radio-group.cjs.entry.js +348 -0
  121. package/dist/cjs/au-radio.cjs.entry.js +45 -0
  122. package/dist/cjs/au-segmented-control.cjs.entry.js +544 -0
  123. package/dist/cjs/au-segmented-option.cjs.entry.js +78 -0
  124. package/dist/cjs/au-select.cjs.entry.js +336 -0
  125. package/dist/cjs/au-sidebar-nav.cjs.entry.js +178 -0
  126. package/dist/cjs/au-slider.cjs.entry.js +286 -0
  127. package/dist/cjs/au-splitter.cjs.entry.js +230 -0
  128. package/dist/cjs/au-switch.cjs.entry.js +175 -0
  129. package/dist/cjs/au-tab-panel.cjs.entry.js +63 -0
  130. package/dist/cjs/au-tab.cjs.entry.js +41 -0
  131. package/dist/cjs/au-tabs.cjs.entry.js +406 -0
  132. package/dist/cjs/au-textarea.cjs.entry.js +245 -0
  133. package/dist/cjs/au-toast-region.cjs.entry.js +692 -0
  134. package/dist/cjs/au-toast.cjs.entry.js +63 -0
  135. package/dist/cjs/au-toc.cjs.entry.js +445 -0
  136. package/dist/cjs/au-tooltip.cjs.entry.js +395 -0
  137. package/dist/cjs/aurora.cjs.js +25 -0
  138. package/dist/cjs/check-D8fNlWlh.js +16 -0
  139. package/dist/cjs/checkable-DhECpB9t.js +8 -0
  140. package/dist/cjs/circle-check-B3FqDucz.js +20 -0
  141. package/dist/cjs/circle-x-Tf2qIuBI.js +21 -0
  142. package/dist/cjs/constants.generated-CnWw9jDb.js +134 -0
  143. package/dist/cjs/control-id-CcdWN8_D.js +16 -0
  144. package/dist/cjs/copy-DJmgvzQq.js +19 -0
  145. package/dist/cjs/copy-check-Bktgfkg4.js +20 -0
  146. package/dist/cjs/deep-active-element-CoEYUbhF.js +11 -0
  147. package/dist/cjs/group-validity-D2brpooM.js +11 -0
  148. package/dist/cjs/icon-loader-DyRasOnf.js +111 -0
  149. package/dist/cjs/index-B8lDYTMv.js +2314 -0
  150. package/dist/cjs/index-DI4bia-1.js +159 -0
  151. package/dist/cjs/index.cjs.js +358 -0
  152. package/dist/cjs/info-BLcxKacU.js +20 -0
  153. package/dist/cjs/initial-value-CfGBZMr4.js +13 -0
  154. package/dist/cjs/item-update-DZTXbDLY.js +15 -0
  155. package/dist/cjs/link-state-B3rIWSPS.js +40 -0
  156. package/dist/cjs/live-announcer-vcS-BUxR.js +400 -0
  157. package/dist/cjs/loader.cjs.js +13 -0
  158. package/dist/cjs/menu-CSfWKlaI.js +41 -0
  159. package/dist/cjs/minus-6XziUaOZ.js +16 -0
  160. package/dist/cjs/navigation-lpcPjVEI.js +63 -0
  161. package/dist/cjs/octagon-alert-CFrlltqZ.js +27 -0
  162. package/dist/cjs/plus-D3o9M7Mi.js +19 -0
  163. package/dist/cjs/popover-controller-B95YfF3I.js +237 -0
  164. package/dist/cjs/popover-support-CmR5F5K2.js +250 -0
  165. package/dist/cjs/resolve-size-LxALRdcg.js +13 -0
  166. package/dist/cjs/restore-DQu6RpSH.js +148 -0
  167. package/dist/cjs/reveal-BTJffR-G.js +69 -0
  168. package/dist/cjs/roving-CFu47frk.js +70 -0
  169. package/dist/cjs/segmented-CfUI9Mjx.js +53 -0
  170. package/dist/cjs/slider-DX8MuU0y.js +84 -0
  171. package/dist/cjs/toast-request-C-x_BbsL.js +67 -0
  172. package/dist/cjs/triangle-alert-VJkqaFrl.js +27 -0
  173. package/dist/cjs/user-round-Bb69LiUK.js +20 -0
  174. package/dist/cjs/warn-once-lHF-gQZp.js +21 -0
  175. package/dist/cjs/x-BmyhNJrF.js +19 -0
  176. package/dist/collection/collection-manifest.json +56 -0
  177. package/dist/collection/components/actions/au-button/au-button.constants.js +65 -0
  178. package/dist/collection/components/actions/au-button/au-button.css +224 -0
  179. package/dist/collection/components/actions/au-button/au-button.js +636 -0
  180. package/dist/collection/components/actions/au-button/au-button.types.js +1 -0
  181. package/dist/collection/components/actions/au-button/index.js +2 -0
  182. package/dist/collection/components/data-display/au-accordion/au-accordion.constants.js +11 -0
  183. package/dist/collection/components/data-display/au-accordion/au-accordion.css +7 -0
  184. package/dist/collection/components/data-display/au-accordion/au-accordion.js +143 -0
  185. package/dist/collection/components/data-display/au-accordion/au-accordion.types.js +1 -0
  186. package/dist/collection/components/data-display/au-accordion/index.js +2 -0
  187. package/dist/collection/components/data-display/au-accordion-item/au-accordion-item.css +156 -0
  188. package/dist/collection/components/data-display/au-accordion-item/au-accordion-item.js +186 -0
  189. package/dist/collection/components/data-display/au-accordion-item/index.js +1 -0
  190. package/dist/collection/components/data-display/au-avatar/au-avatar.constants.js +26 -0
  191. package/dist/collection/components/data-display/au-avatar/au-avatar.css +93 -0
  192. package/dist/collection/components/data-display/au-avatar/au-avatar.js +308 -0
  193. package/dist/collection/components/data-display/au-avatar/au-avatar.types.js +1 -0
  194. package/dist/collection/components/data-display/au-avatar/index.js +2 -0
  195. package/dist/collection/components/data-display/au-avatar/internal/initials.js +41 -0
  196. package/dist/collection/components/data-display/au-badge/au-badge.constants.js +29 -0
  197. package/dist/collection/components/data-display/au-badge/au-badge.css +152 -0
  198. package/dist/collection/components/data-display/au-badge/au-badge.js +142 -0
  199. package/dist/collection/components/data-display/au-badge/au-badge.types.js +1 -0
  200. package/dist/collection/components/data-display/au-badge/index.js +2 -0
  201. package/dist/collection/components/data-display/au-card/au-card.constants.js +20 -0
  202. package/dist/collection/components/data-display/au-card/au-card.css +125 -0
  203. package/dist/collection/components/data-display/au-card/au-card.js +127 -0
  204. package/dist/collection/components/data-display/au-card/au-card.types.js +1 -0
  205. package/dist/collection/components/data-display/au-card/index.js +2 -0
  206. package/dist/collection/components/data-display/au-chip/au-chip.constants.js +22 -0
  207. package/dist/collection/components/data-display/au-chip/au-chip.css +207 -0
  208. package/dist/collection/components/data-display/au-chip/au-chip.js +371 -0
  209. package/dist/collection/components/data-display/au-chip/au-chip.types.js +1 -0
  210. package/dist/collection/components/data-display/au-chip/index.js +2 -0
  211. package/dist/collection/components/data-display/au-chip/internal/neighbor.js +48 -0
  212. package/dist/collection/components/data-display/au-chip/internal/remove-key.js +13 -0
  213. package/dist/collection/components/data-display/au-code-block/au-code-block.constants.js +31 -0
  214. package/dist/collection/components/data-display/au-code-block/au-code-block.css +331 -0
  215. package/dist/collection/components/data-display/au-code-block/au-code-block.js +576 -0
  216. package/dist/collection/components/data-display/au-code-block/au-code-block.types.js +1 -0
  217. package/dist/collection/components/data-display/au-code-block/index.js +2 -0
  218. package/dist/collection/components/data-display/au-code-block/internal/highlight-lines.js +29 -0
  219. package/dist/collection/components/data-display/au-code-block/internal/highlight-result.js +42 -0
  220. package/dist/collection/components/data-display/au-code-block/internal/light-source.js +30 -0
  221. package/dist/collection/components/data-display/au-code-block/internal/normalize-code.js +48 -0
  222. package/dist/collection/components/data-display/internal/accordion.js +31 -0
  223. package/dist/collection/components/feedback/au-alert/au-alert.constants.js +20 -0
  224. package/dist/collection/components/feedback/au-alert/au-alert.css +171 -0
  225. package/dist/collection/components/feedback/au-alert/au-alert.js +241 -0
  226. package/dist/collection/components/feedback/au-alert/au-alert.types.js +1 -0
  227. package/dist/collection/components/feedback/au-alert/index.js +2 -0
  228. package/dist/collection/components/feedback/au-toast/au-toast.constants.js +1 -0
  229. package/dist/collection/components/feedback/au-toast/au-toast.css +150 -0
  230. package/dist/collection/components/feedback/au-toast/au-toast.js +145 -0
  231. package/dist/collection/components/feedback/au-toast/au-toast.service.js +140 -0
  232. package/dist/collection/components/feedback/au-toast/au-toast.types.js +1 -0
  233. package/dist/collection/components/feedback/au-toast/index.js +2 -0
  234. package/dist/collection/components/feedback/au-toast-region/au-toast-region.css +71 -0
  235. package/dist/collection/components/feedback/au-toast-region/au-toast-region.js +653 -0
  236. package/dist/collection/components/feedback/au-toast-region/index.js +2 -0
  237. package/dist/collection/components/feedback/internal/toast-announcer.js +5 -0
  238. package/dist/collection/components/feedback/internal/toast-constants.js +52 -0
  239. package/dist/collection/components/feedback/internal/toast-options.js +64 -0
  240. package/dist/collection/components/feedback/internal/toast-popover.js +22 -0
  241. package/dist/collection/components/feedback/internal/toast-queue.js +74 -0
  242. package/dist/collection/components/feedback/internal/toast-registry.js +24 -0
  243. package/dist/collection/components/feedback/internal/toast-request.js +6 -0
  244. package/dist/collection/components/feedback/internal/toast-timers.js +61 -0
  245. package/dist/collection/components/feedback/internal/toast-timing.js +5 -0
  246. package/dist/collection/components/feedback/internal/toast-types.js +1 -0
  247. package/dist/collection/components/forms/au-checkbox/au-checkbox.constants.js +2 -0
  248. package/dist/collection/components/forms/au-checkbox/au-checkbox.css +212 -0
  249. package/dist/collection/components/forms/au-checkbox/au-checkbox.js +468 -0
  250. package/dist/collection/components/forms/au-checkbox/au-checkbox.types.js +1 -0
  251. package/dist/collection/components/forms/au-checkbox/index.js +2 -0
  252. package/dist/collection/components/forms/au-combobox/au-combobox.constants.js +26 -0
  253. package/dist/collection/components/forms/au-combobox/au-combobox.css +374 -0
  254. package/dist/collection/components/forms/au-combobox/au-combobox.js +1165 -0
  255. package/dist/collection/components/forms/au-combobox/au-combobox.types.js +1 -0
  256. package/dist/collection/components/forms/au-combobox/index.js +2 -0
  257. package/dist/collection/components/forms/au-field/au-field.css +78 -0
  258. package/dist/collection/components/forms/au-field/au-field.js +195 -0
  259. package/dist/collection/components/forms/au-field/index.js +1 -0
  260. package/dist/collection/components/forms/au-input/au-input.constants.js +35 -0
  261. package/dist/collection/components/forms/au-input/au-input.css +195 -0
  262. package/dist/collection/components/forms/au-input/au-input.js +845 -0
  263. package/dist/collection/components/forms/au-input/au-input.types.js +1 -0
  264. package/dist/collection/components/forms/au-input/index.js +2 -0
  265. package/dist/collection/components/forms/au-label/au-label.constants.js +7 -0
  266. package/dist/collection/components/forms/au-label/au-label.css +38 -0
  267. package/dist/collection/components/forms/au-label/au-label.js +109 -0
  268. package/dist/collection/components/forms/au-label/au-label.types.js +1 -0
  269. package/dist/collection/components/forms/au-label/index.js +2 -0
  270. package/dist/collection/components/forms/au-number-input/au-number-input.constants.js +15 -0
  271. package/dist/collection/components/forms/au-number-input/au-number-input.css +276 -0
  272. package/dist/collection/components/forms/au-number-input/au-number-input.js +711 -0
  273. package/dist/collection/components/forms/au-number-input/au-number-input.types.js +1 -0
  274. package/dist/collection/components/forms/au-number-input/index.js +2 -0
  275. package/dist/collection/components/forms/au-radio/au-radio.constants.js +2 -0
  276. package/dist/collection/components/forms/au-radio/au-radio.css +126 -0
  277. package/dist/collection/components/forms/au-radio/au-radio.js +129 -0
  278. package/dist/collection/components/forms/au-radio/au-radio.types.js +1 -0
  279. package/dist/collection/components/forms/au-radio/index.js +2 -0
  280. package/dist/collection/components/forms/au-radio-group/au-radio-group.constants.js +6 -0
  281. package/dist/collection/components/forms/au-radio-group/au-radio-group.css +67 -0
  282. package/dist/collection/components/forms/au-radio-group/au-radio-group.js +643 -0
  283. package/dist/collection/components/forms/au-radio-group/au-radio-group.types.js +1 -0
  284. package/dist/collection/components/forms/au-radio-group/index.js +2 -0
  285. package/dist/collection/components/forms/au-segmented-control/au-segmented-control.constants.js +26 -0
  286. package/dist/collection/components/forms/au-segmented-control/au-segmented-control.css +92 -0
  287. package/dist/collection/components/forms/au-segmented-control/au-segmented-control.js +916 -0
  288. package/dist/collection/components/forms/au-segmented-control/au-segmented-control.types.js +1 -0
  289. package/dist/collection/components/forms/au-segmented-control/index.js +2 -0
  290. package/dist/collection/components/forms/au-segmented-option/au-segmented-option.css +103 -0
  291. package/dist/collection/components/forms/au-segmented-option/au-segmented-option.js +191 -0
  292. package/dist/collection/components/forms/au-segmented-option/au-segmented-option.types.js +1 -0
  293. package/dist/collection/components/forms/au-segmented-option/index.js +1 -0
  294. package/dist/collection/components/forms/au-select/au-select.constants.js +7 -0
  295. package/dist/collection/components/forms/au-select/au-select.css +194 -0
  296. package/dist/collection/components/forms/au-select/au-select.js +589 -0
  297. package/dist/collection/components/forms/au-select/au-select.types.js +1 -0
  298. package/dist/collection/components/forms/au-select/index.js +2 -0
  299. package/dist/collection/components/forms/au-select/internal/read-select-options.js +45 -0
  300. package/dist/collection/components/forms/au-slider/au-slider.constants.js +11 -0
  301. package/dist/collection/components/forms/au-slider/au-slider.css +296 -0
  302. package/dist/collection/components/forms/au-slider/au-slider.js +675 -0
  303. package/dist/collection/components/forms/au-slider/au-slider.types.js +1 -0
  304. package/dist/collection/components/forms/au-slider/index.js +2 -0
  305. package/dist/collection/components/forms/au-switch/au-switch.constants.js +2 -0
  306. package/dist/collection/components/forms/au-switch/au-switch.css +201 -0
  307. package/dist/collection/components/forms/au-switch/au-switch.js +440 -0
  308. package/dist/collection/components/forms/au-switch/au-switch.types.js +1 -0
  309. package/dist/collection/components/forms/au-switch/index.js +2 -0
  310. package/dist/collection/components/forms/au-textarea/au-textarea.constants.js +16 -0
  311. package/dist/collection/components/forms/au-textarea/au-textarea.css +187 -0
  312. package/dist/collection/components/forms/au-textarea/au-textarea.js +694 -0
  313. package/dist/collection/components/forms/au-textarea/au-textarea.types.js +1 -0
  314. package/dist/collection/components/forms/au-textarea/index.js +2 -0
  315. package/dist/collection/components/forms/internal/combobox.js +86 -0
  316. package/dist/collection/components/forms/internal/number-input.js +54 -0
  317. package/dist/collection/components/forms/internal/segmented.js +43 -0
  318. package/dist/collection/components/forms/internal/slider.js +76 -0
  319. package/dist/collection/components/layout/au-container/au-container.constants.js +22 -0
  320. package/dist/collection/components/layout/au-container/au-container.css +109 -0
  321. package/dist/collection/components/layout/au-container/au-container.js +144 -0
  322. package/dist/collection/components/layout/au-container/au-container.types.js +1 -0
  323. package/dist/collection/components/layout/au-container/index.js +2 -0
  324. package/dist/collection/components/layout/au-divider/au-divider.constants.js +23 -0
  325. package/dist/collection/components/layout/au-divider/au-divider.css +73 -0
  326. package/dist/collection/components/layout/au-divider/au-divider.js +194 -0
  327. package/dist/collection/components/layout/au-divider/au-divider.types.js +1 -0
  328. package/dist/collection/components/layout/au-divider/index.js +2 -0
  329. package/dist/collection/components/layout/au-splitter/au-splitter.constants.js +9 -0
  330. package/dist/collection/components/layout/au-splitter/au-splitter.css +168 -0
  331. package/dist/collection/components/layout/au-splitter/au-splitter.js +376 -0
  332. package/dist/collection/components/layout/au-splitter/au-splitter.types.js +1 -0
  333. package/dist/collection/components/layout/au-splitter/index.js +2 -0
  334. package/dist/collection/components/layout/internal/splitter.js +27 -0
  335. package/dist/collection/components/navigation/au-breadcrumb/au-breadcrumb.constants.js +4 -0
  336. package/dist/collection/components/navigation/au-breadcrumb/au-breadcrumb.css +20 -0
  337. package/dist/collection/components/navigation/au-breadcrumb/au-breadcrumb.js +110 -0
  338. package/dist/collection/components/navigation/au-breadcrumb/index.js +2 -0
  339. package/dist/collection/components/navigation/au-breadcrumb-item/au-breadcrumb-item.css +127 -0
  340. package/dist/collection/components/navigation/au-breadcrumb-item/au-breadcrumb-item.js +186 -0
  341. package/dist/collection/components/navigation/au-breadcrumb-item/index.js +1 -0
  342. package/dist/collection/components/navigation/au-nav-group/au-nav-group.css +137 -0
  343. package/dist/collection/components/navigation/au-nav-group/au-nav-group.js +96 -0
  344. package/dist/collection/components/navigation/au-nav-group/index.js +1 -0
  345. package/dist/collection/components/navigation/au-nav-link/au-nav-link.css +128 -0
  346. package/dist/collection/components/navigation/au-nav-link/au-nav-link.js +205 -0
  347. package/dist/collection/components/navigation/au-nav-link/index.js +1 -0
  348. package/dist/collection/components/navigation/au-navbar/au-navbar.constants.js +40 -0
  349. package/dist/collection/components/navigation/au-navbar/au-navbar.css +185 -0
  350. package/dist/collection/components/navigation/au-navbar/au-navbar.js +409 -0
  351. package/dist/collection/components/navigation/au-navbar/au-navbar.types.js +1 -0
  352. package/dist/collection/components/navigation/au-navbar/index.js +2 -0
  353. package/dist/collection/components/navigation/au-navbar/internal/collapse.js +14 -0
  354. package/dist/collection/components/navigation/au-sidebar-nav/au-sidebar-nav.constants.js +2 -0
  355. package/dist/collection/components/navigation/au-sidebar-nav/au-sidebar-nav.css +29 -0
  356. package/dist/collection/components/navigation/au-sidebar-nav/au-sidebar-nav.js +251 -0
  357. package/dist/collection/components/navigation/au-sidebar-nav/index.js +2 -0
  358. package/dist/collection/components/navigation/au-tab/au-tab.css +84 -0
  359. package/dist/collection/components/navigation/au-tab/au-tab.js +107 -0
  360. package/dist/collection/components/navigation/au-tab/index.js +1 -0
  361. package/dist/collection/components/navigation/au-tab-panel/au-tab-panel.css +20 -0
  362. package/dist/collection/components/navigation/au-tab-panel/au-tab-panel.js +134 -0
  363. package/dist/collection/components/navigation/au-tab-panel/index.js +1 -0
  364. package/dist/collection/components/navigation/au-tabs/au-tabs.constants.js +12 -0
  365. package/dist/collection/components/navigation/au-tabs/au-tabs.css +107 -0
  366. package/dist/collection/components/navigation/au-tabs/au-tabs.js +554 -0
  367. package/dist/collection/components/navigation/au-tabs/au-tabs.types.js +1 -0
  368. package/dist/collection/components/navigation/au-tabs/index.js +2 -0
  369. package/dist/collection/components/navigation/au-tabs/internal/indicator-geometry.js +18 -0
  370. package/dist/collection/components/navigation/au-toc/au-toc.constants.js +6 -0
  371. package/dist/collection/components/navigation/au-toc/au-toc.css +107 -0
  372. package/dist/collection/components/navigation/au-toc/au-toc.js +462 -0
  373. package/dist/collection/components/navigation/au-toc/index.js +2 -0
  374. package/dist/collection/components/navigation/au-toc/internal/toc-model.js +89 -0
  375. package/dist/collection/components/navigation/internal/reveal.js +65 -0
  376. package/dist/collection/components/overlays/au-dialog/au-dialog.constants.js +29 -0
  377. package/dist/collection/components/overlays/au-dialog/au-dialog.css +324 -0
  378. package/dist/collection/components/overlays/au-dialog/au-dialog.js +618 -0
  379. package/dist/collection/components/overlays/au-dialog/au-dialog.types.js +1 -0
  380. package/dist/collection/components/overlays/au-dialog/index.js +2 -0
  381. package/dist/collection/components/overlays/au-menu/au-menu.constants.js +37 -0
  382. package/dist/collection/components/overlays/au-menu/au-menu.css +163 -0
  383. package/dist/collection/components/overlays/au-menu/au-menu.js +507 -0
  384. package/dist/collection/components/overlays/au-menu/au-menu.types.js +1 -0
  385. package/dist/collection/components/overlays/au-menu/index.js +2 -0
  386. package/dist/collection/components/overlays/au-menu-item/au-menu-item.css +127 -0
  387. package/dist/collection/components/overlays/au-menu-item/au-menu-item.js +185 -0
  388. package/dist/collection/components/overlays/au-menu-item/au-menu-item.types.js +1 -0
  389. package/dist/collection/components/overlays/au-menu-item/index.js +1 -0
  390. package/dist/collection/components/overlays/au-popover/au-popover.constants.js +24 -0
  391. package/dist/collection/components/overlays/au-popover/au-popover.css +149 -0
  392. package/dist/collection/components/overlays/au-popover/au-popover.js +253 -0
  393. package/dist/collection/components/overlays/au-popover/au-popover.types.js +1 -0
  394. package/dist/collection/components/overlays/au-popover/index.js +2 -0
  395. package/dist/collection/components/overlays/au-tooltip/au-tooltip.constants.js +19 -0
  396. package/dist/collection/components/overlays/au-tooltip/au-tooltip.css +144 -0
  397. package/dist/collection/components/overlays/au-tooltip/au-tooltip.js +517 -0
  398. package/dist/collection/components/overlays/au-tooltip/index.js +2 -0
  399. package/dist/collection/components/overlays/internal/menu.js +34 -0
  400. package/dist/collection/components/overlays/internal/popover-controller.js +233 -0
  401. package/dist/collection/components/overlays/internal/typeahead.js +28 -0
  402. package/dist/collection/components/primitives/au-icon/au-icon.constants.js +3 -0
  403. package/dist/collection/components/primitives/au-icon/au-icon.css +36 -0
  404. package/dist/collection/components/primitives/au-icon/au-icon.js +367 -0
  405. package/dist/collection/components/primitives/au-icon/au-icon.types.js +1 -0
  406. package/dist/collection/components/primitives/au-icon/core-icons.js +20 -0
  407. package/dist/collection/components/primitives/au-icon/icon-loader.js +76 -0
  408. package/dist/collection/components/primitives/au-icon/index.js +1 -0
  409. package/dist/collection/foundations/constants/constants.generated.mjs +119 -0
  410. package/dist/collection/foundations/constants/index.js +2 -0
  411. package/dist/collection/foundations/constants/resolve-size.js +9 -0
  412. package/dist/collection/foundations/icons/autoload.js +21 -0
  413. package/dist/collection/foundations/icons/icon-autoload-hook.js +13 -0
  414. package/dist/collection/foundations/icons/icon-registry.js +147 -0
  415. package/dist/collection/foundations/icons/icon-sizes.js +8 -0
  416. package/dist/collection/foundations/icons/icon-slug.js +26 -0
  417. package/dist/collection/foundations/icons/icon.constants.generated.js +2284 -0
  418. package/dist/collection/foundations/icons/icon.constants.js +18 -0
  419. package/dist/collection/foundations/icons/icon.types.js +1 -0
  420. package/dist/collection/foundations/icons/index.js +3 -0
  421. package/dist/collection/foundations/icons/mdi-map.js +86 -0
  422. package/dist/collection/foundations/icons/register-lucide-icons.js +30 -0
  423. package/dist/collection/foundations/themes/theme.js +161 -0
  424. package/dist/collection/foundations/tokens/index.js +2 -0
  425. package/dist/collection/foundations/tokens/tokens.generated.mjs +178 -0
  426. package/dist/collection/index.js +10 -0
  427. package/dist/collection/integrations/basics/index.js +2 -0
  428. package/dist/collection/integrations/basics/is-plain-object.js +1 -0
  429. package/dist/collection/integrations/flux/index.js +1 -0
  430. package/dist/collection/integrations/flux/loader.js +66 -0
  431. package/dist/collection/integrations/flux/provide.js +16 -0
  432. package/dist/collection/integrations/flux/registry.js +42 -0
  433. package/dist/collection/shared/anchored/anchor-position.js +101 -0
  434. package/dist/collection/shared/anchored/js-positioning.js +113 -0
  435. package/dist/collection/shared/anchored/popover-support.js +30 -0
  436. package/dist/collection/shared/clipboard/clipboard.js +14 -0
  437. package/dist/collection/shared/clipboard/copy-procedure.js +189 -0
  438. package/dist/collection/shared/clipboard/copy-types.js +15 -0
  439. package/dist/collection/shared/focus/deep-active-element.js +7 -0
  440. package/dist/collection/shared/focus/index.js +1 -0
  441. package/dist/collection/shared/form-control/attributes.js +25 -0
  442. package/dist/collection/shared/form-control/checkable.js +4 -0
  443. package/dist/collection/shared/form-control/control-id.js +11 -0
  444. package/dist/collection/shared/form-control/described-by.js +5 -0
  445. package/dist/collection/shared/form-control/form-control-controller.js +88 -0
  446. package/dist/collection/shared/form-control/group-validity.js +7 -0
  447. package/dist/collection/shared/form-control/host-events.js +19 -0
  448. package/dist/collection/shared/form-control/index.js +10 -0
  449. package/dist/collection/shared/form-control/initial-value.js +9 -0
  450. package/dist/collection/shared/form-control/restore.js +12 -0
  451. package/dist/collection/shared/form-control/validation-message.js +12 -0
  452. package/dist/collection/shared/live-announcer/announce-queue.js +141 -0
  453. package/dist/collection/shared/live-announcer/announce-timing.js +12 -0
  454. package/dist/collection/shared/live-announcer/index.js +1 -0
  455. package/dist/collection/shared/live-announcer/live-announcer.js +150 -0
  456. package/dist/collection/shared/live-announcer/public.js +6 -0
  457. package/dist/collection/shared/modal-placement.js +42 -0
  458. package/dist/collection/shared/modal-target.js +59 -0
  459. package/dist/collection/shared/navigation/index.js +2 -0
  460. package/dist/collection/shared/navigation/link-state.js +34 -0
  461. package/dist/collection/shared/navigation/navigation.js +56 -0
  462. package/dist/collection/shared/observers/index.js +180 -0
  463. package/dist/collection/shared/roving-focus/index.js +2 -0
  464. package/dist/collection/shared/roving-focus/item-update.js +11 -0
  465. package/dist/collection/shared/roving-focus/roving.js +65 -0
  466. package/dist/collection/shared/warn-once.js +17 -0
  467. package/dist/components/au-accordion-item.d.ts +11 -0
  468. package/dist/components/au-accordion-item.js +1 -0
  469. package/dist/components/au-accordion.d.ts +11 -0
  470. package/dist/components/au-accordion.js +1 -0
  471. package/dist/components/au-alert.d.ts +11 -0
  472. package/dist/components/au-alert.js +1 -0
  473. package/dist/components/au-avatar.d.ts +11 -0
  474. package/dist/components/au-avatar.js +1 -0
  475. package/dist/components/au-badge.d.ts +11 -0
  476. package/dist/components/au-badge.js +1 -0
  477. package/dist/components/au-breadcrumb-item.d.ts +11 -0
  478. package/dist/components/au-breadcrumb-item.js +1 -0
  479. package/dist/components/au-breadcrumb.d.ts +11 -0
  480. package/dist/components/au-breadcrumb.js +1 -0
  481. package/dist/components/au-button.d.ts +11 -0
  482. package/dist/components/au-button.js +1 -0
  483. package/dist/components/au-card.d.ts +11 -0
  484. package/dist/components/au-card.js +1 -0
  485. package/dist/components/au-checkbox.d.ts +11 -0
  486. package/dist/components/au-checkbox.js +1 -0
  487. package/dist/components/au-chip.d.ts +11 -0
  488. package/dist/components/au-chip.js +1 -0
  489. package/dist/components/au-code-block.d.ts +11 -0
  490. package/dist/components/au-code-block.js +1 -0
  491. package/dist/components/au-combobox.d.ts +11 -0
  492. package/dist/components/au-combobox.js +1 -0
  493. package/dist/components/au-container.d.ts +11 -0
  494. package/dist/components/au-container.js +1 -0
  495. package/dist/components/au-dialog.d.ts +11 -0
  496. package/dist/components/au-dialog.js +1 -0
  497. package/dist/components/au-divider.d.ts +11 -0
  498. package/dist/components/au-divider.js +1 -0
  499. package/dist/components/au-field.d.ts +11 -0
  500. package/dist/components/au-field.js +1 -0
  501. package/dist/components/au-icon.d.ts +11 -0
  502. package/dist/components/au-icon.js +1 -0
  503. package/dist/components/au-input.d.ts +11 -0
  504. package/dist/components/au-input.js +1 -0
  505. package/dist/components/au-label.d.ts +11 -0
  506. package/dist/components/au-label.js +1 -0
  507. package/dist/components/au-menu-item.d.ts +11 -0
  508. package/dist/components/au-menu-item.js +1 -0
  509. package/dist/components/au-menu.d.ts +11 -0
  510. package/dist/components/au-menu.js +1 -0
  511. package/dist/components/au-nav-group.d.ts +11 -0
  512. package/dist/components/au-nav-group.js +1 -0
  513. package/dist/components/au-nav-link.d.ts +11 -0
  514. package/dist/components/au-nav-link.js +1 -0
  515. package/dist/components/au-navbar.d.ts +11 -0
  516. package/dist/components/au-navbar.js +1 -0
  517. package/dist/components/au-number-input.d.ts +11 -0
  518. package/dist/components/au-number-input.js +1 -0
  519. package/dist/components/au-popover.d.ts +11 -0
  520. package/dist/components/au-popover.js +1 -0
  521. package/dist/components/au-radio-group.d.ts +11 -0
  522. package/dist/components/au-radio-group.js +1 -0
  523. package/dist/components/au-radio.d.ts +11 -0
  524. package/dist/components/au-radio.js +1 -0
  525. package/dist/components/au-segmented-control.d.ts +11 -0
  526. package/dist/components/au-segmented-control.js +1 -0
  527. package/dist/components/au-segmented-option.d.ts +11 -0
  528. package/dist/components/au-segmented-option.js +1 -0
  529. package/dist/components/au-select.d.ts +11 -0
  530. package/dist/components/au-select.js +1 -0
  531. package/dist/components/au-sidebar-nav.d.ts +11 -0
  532. package/dist/components/au-sidebar-nav.js +1 -0
  533. package/dist/components/au-slider.d.ts +11 -0
  534. package/dist/components/au-slider.js +1 -0
  535. package/dist/components/au-splitter.d.ts +11 -0
  536. package/dist/components/au-splitter.js +1 -0
  537. package/dist/components/au-switch.d.ts +11 -0
  538. package/dist/components/au-switch.js +1 -0
  539. package/dist/components/au-tab-panel.d.ts +11 -0
  540. package/dist/components/au-tab-panel.js +1 -0
  541. package/dist/components/au-tab.d.ts +11 -0
  542. package/dist/components/au-tab.js +1 -0
  543. package/dist/components/au-tabs.d.ts +11 -0
  544. package/dist/components/au-tabs.js +1 -0
  545. package/dist/components/au-textarea.d.ts +11 -0
  546. package/dist/components/au-textarea.js +1 -0
  547. package/dist/components/au-toast-region.d.ts +11 -0
  548. package/dist/components/au-toast-region.js +1 -0
  549. package/dist/components/au-toast.d.ts +11 -0
  550. package/dist/components/au-toast.js +1 -0
  551. package/dist/components/au-toc.d.ts +11 -0
  552. package/dist/components/au-toc.js +1 -0
  553. package/dist/components/au-tooltip.d.ts +11 -0
  554. package/dist/components/au-tooltip.js +1 -0
  555. package/dist/components/index.d.ts +35 -0
  556. package/dist/components/index.js +1 -0
  557. package/dist/components/p-B3rlZvSP.js +7 -0
  558. package/dist/components/p-B71krpcd.js +1 -0
  559. package/dist/components/p-BTRtOC1j.js +1 -0
  560. package/dist/components/p-BTZwl4uD.js +7 -0
  561. package/dist/components/p-BvnCPjl5.js +1 -0
  562. package/dist/components/p-C-bRwiWx.js +1 -0
  563. package/dist/components/p-C2iVoG0G.js +1 -0
  564. package/dist/components/p-C48ks26E.js +1 -0
  565. package/dist/components/p-C6E5E18W.js +7 -0
  566. package/dist/components/p-CA3n-tpF.js +7 -0
  567. package/dist/components/p-CIZeCYao.js +1 -0
  568. package/dist/components/p-CJtRxiuh.js +7 -0
  569. package/dist/components/p-CU9sZ49I.js +7 -0
  570. package/dist/components/p-CfazOBmW.js +1 -0
  571. package/dist/components/p-Ci-XzGE3.js +1 -0
  572. package/dist/components/p-CnJOd66V.js +7 -0
  573. package/dist/components/p-Cq5N0E4D.js +7 -0
  574. package/dist/components/p-CrKUXDm4.js +1 -0
  575. package/dist/components/p-DAqsVCAy.js +1 -0
  576. package/dist/components/p-DBHfOAQc.js +1 -0
  577. package/dist/components/p-DD6GCVQb.js +1 -0
  578. package/dist/components/p-DIL-tsh4.js +1 -0
  579. package/dist/components/p-DTEnois3.js +7 -0
  580. package/dist/components/p-DTeHrc-Q.js +1 -0
  581. package/dist/components/p-DgfWQsck.js +1 -0
  582. package/dist/components/p-Dogh3-Bf.js +1 -0
  583. package/dist/components/p-DqqWqhAT.js +1 -0
  584. package/dist/components/p-Dv3Jcvbc.js +1 -0
  585. package/dist/components/p-DzNA1eDU.js +1 -0
  586. package/dist/components/p-JU60IJxn.js +1 -0
  587. package/dist/components/p-M21eKzKU.js +1 -0
  588. package/dist/components/p-TdUs41zm.js +1 -0
  589. package/dist/components/p-gvyxpLwV.js +1 -0
  590. package/dist/components/p-kEvQ5xF7.js +1 -0
  591. package/dist/components/p-kbAXs-sG.js +7 -0
  592. package/dist/components/p-klxij34W.js +1 -0
  593. package/dist/components/p-kpQFQ7bu.js +7 -0
  594. package/dist/components/p-tdx7CCkD.js +7 -0
  595. package/dist/components/p-vjn4H-yX.js +1 -0
  596. package/dist/custom-elements.json +9944 -0
  597. package/dist/esm/accordion-CfazOBmW.js +33 -0
  598. package/dist/esm/app-globals-DQuL1Twl.js +3 -0
  599. package/dist/esm/attributes-CrKUXDm4.js +27 -0
  600. package/dist/esm/au-accordion-item.entry.js +86 -0
  601. package/dist/esm/au-accordion.entry.js +98 -0
  602. package/dist/esm/au-alert.entry.js +115 -0
  603. package/dist/esm/au-avatar.entry.js +175 -0
  604. package/dist/esm/au-badge.entry.js +58 -0
  605. package/dist/esm/au-breadcrumb-item.entry.js +82 -0
  606. package/dist/esm/au-breadcrumb.entry.js +78 -0
  607. package/dist/esm/au-button.entry.js +326 -0
  608. package/dist/esm/au-card.entry.js +74 -0
  609. package/dist/esm/au-checkbox.entry.js +181 -0
  610. package/dist/esm/au-chip.entry.js +247 -0
  611. package/dist/esm/au-code-block.entry.js +676 -0
  612. package/dist/esm/au-combobox.entry.js +753 -0
  613. package/dist/esm/au-container.entry.js +56 -0
  614. package/dist/esm/au-dialog.entry.js +375 -0
  615. package/dist/esm/au-divider.entry.js +104 -0
  616. package/dist/esm/au-field.entry.js +183 -0
  617. package/dist/esm/au-icon-B17psn7x.js +344 -0
  618. package/dist/esm/au-icon.entry.js +3 -0
  619. package/dist/esm/au-input.entry.js +310 -0
  620. package/dist/esm/au-label.entry.js +43 -0
  621. package/dist/esm/au-menu-item.entry.js +69 -0
  622. package/dist/esm/au-menu.entry.js +345 -0
  623. package/dist/esm/au-nav-group.entry.js +48 -0
  624. package/dist/esm/au-nav-link.entry.js +82 -0
  625. package/dist/esm/au-navbar.entry.js +304 -0
  626. package/dist/esm/au-number-input.entry.js +348 -0
  627. package/dist/esm/au-popover.entry.js +128 -0
  628. package/dist/esm/au-radio-group.entry.js +346 -0
  629. package/dist/esm/au-radio.entry.js +43 -0
  630. package/dist/esm/au-segmented-control.entry.js +542 -0
  631. package/dist/esm/au-segmented-option.entry.js +76 -0
  632. package/dist/esm/au-select.entry.js +334 -0
  633. package/dist/esm/au-sidebar-nav.entry.js +176 -0
  634. package/dist/esm/au-slider.entry.js +284 -0
  635. package/dist/esm/au-splitter.entry.js +228 -0
  636. package/dist/esm/au-switch.entry.js +173 -0
  637. package/dist/esm/au-tab-panel.entry.js +61 -0
  638. package/dist/esm/au-tab.entry.js +39 -0
  639. package/dist/esm/au-tabs.entry.js +404 -0
  640. package/dist/esm/au-textarea.entry.js +243 -0
  641. package/dist/esm/au-toast-region.entry.js +690 -0
  642. package/dist/esm/au-toast.entry.js +61 -0
  643. package/dist/esm/au-toc.entry.js +443 -0
  644. package/dist/esm/au-tooltip.entry.js +393 -0
  645. package/dist/esm/aurora.js +21 -0
  646. package/dist/esm/check-CnJOd66V.js +14 -0
  647. package/dist/esm/checkable-kEvQ5xF7.js +6 -0
  648. package/dist/esm/circle-check-kpQFQ7bu.js +18 -0
  649. package/dist/esm/circle-x-tdx7CCkD.js +19 -0
  650. package/dist/esm/constants.generated-DqqWqhAT.js +120 -0
  651. package/dist/esm/control-id-C48ks26E.js +13 -0
  652. package/dist/esm/copy-B3rlZvSP.js +17 -0
  653. package/dist/esm/copy-check-Cq5N0E4D.js +18 -0
  654. package/dist/esm/deep-active-element-C-bRwiWx.js +9 -0
  655. package/dist/esm/group-validity-C2iVoG0G.js +9 -0
  656. package/dist/esm/icon-loader-CqLCmu4h.js +109 -0
  657. package/dist/esm/index-JU60IJxn.js +155 -0
  658. package/dist/esm/index-KLUZmSN-.js +2304 -0
  659. package/dist/esm/index.js +321 -0
  660. package/dist/esm/info-CA3n-tpF.js +18 -0
  661. package/dist/esm/initial-value-B71krpcd.js +11 -0
  662. package/dist/esm/item-update-DgfWQsck.js +13 -0
  663. package/dist/esm/link-state-DhPKwPml.js +37 -0
  664. package/dist/esm/live-announcer-CXd2OhYs.js +391 -0
  665. package/dist/esm/loader.js +11 -0
  666. package/dist/esm/menu-vjn4H-yX.js +35 -0
  667. package/dist/esm/minus-kbAXs-sG.js +14 -0
  668. package/dist/esm/navigation-TdUs41zm.js +58 -0
  669. package/dist/esm/octagon-alert-DTEnois3.js +25 -0
  670. package/dist/esm/plus-CU9sZ49I.js +17 -0
  671. package/dist/esm/popover-controller-DUrPFfIx.js +235 -0
  672. package/dist/esm/popover-support-DBHfOAQc.js +247 -0
  673. package/dist/esm/resolve-size-DD6GCVQb.js +11 -0
  674. package/dist/esm/restore-gvyxpLwV.js +141 -0
  675. package/dist/esm/reveal-BvnCPjl5.js +67 -0
  676. package/dist/esm/roving-Dogh3-Bf.js +67 -0
  677. package/dist/esm/segmented-BTRtOC1j.js +45 -0
  678. package/dist/esm/slider-CIZeCYao.js +78 -0
  679. package/dist/esm/toast-request-Kwv9rt06.js +55 -0
  680. package/dist/esm/triangle-alert-CJtRxiuh.js +25 -0
  681. package/dist/esm/user-round-C6E5E18W.js +18 -0
  682. package/dist/esm/warn-once-Ci-XzGE3.js +19 -0
  683. package/dist/esm/x-BTZwl4uD.js +17 -0
  684. package/dist/foundations/accessibility/_index.scss +34 -0
  685. package/dist/foundations/constants/_config.scss +119 -0
  686. package/dist/foundations/constants/_index.scss +1 -0
  687. package/dist/foundations/interactions/_index.scss +19 -0
  688. package/dist/foundations/responsive/_breakpoints.scss +104 -0
  689. package/dist/foundations/responsive/_index.scss +1 -0
  690. package/dist/foundations/themes/_dark.scss +60 -0
  691. package/dist/foundations/themes/_default.scss +37 -0
  692. package/dist/foundations/themes/_glass.scss +98 -0
  693. package/dist/foundations/themes/_index.scss +2 -0
  694. package/dist/foundations/themes/_minimal.scss +54 -0
  695. package/dist/foundations/tokens/_config.scss +186 -0
  696. package/dist/foundations/tokens/_functions.scss +19 -0
  697. package/dist/foundations/tokens/_index.scss +3 -0
  698. package/dist/foundations/tokens/_runtime.scss +102 -0
  699. package/dist/foundations/utilities/_borders.scss +116 -0
  700. package/dist/foundations/utilities/_colors.scss +17 -0
  701. package/dist/foundations/utilities/_flex.scss +144 -0
  702. package/dist/foundations/utilities/_grid.scss +105 -0
  703. package/dist/foundations/utilities/_index.scss +92 -0
  704. package/dist/foundations/utilities/_positioning.scss +44 -0
  705. package/dist/foundations/utilities/_sizing.scss +38 -0
  706. package/dist/foundations/utilities/_spacing.scss +119 -0
  707. package/dist/foundations/utilities/_typography.scss +85 -0
  708. package/dist/icons/foundations/icons/autoload.d.ts +9 -0
  709. package/dist/icons/foundations/icons/autoload.js +21 -0
  710. package/dist/icons/foundations/icons/icon-autoload-hook.d.ts +14 -0
  711. package/dist/icons/foundations/icons/icon-autoload-hook.js +13 -0
  712. package/dist/icons/foundations/icons/icon-registry.d.ts +11 -0
  713. package/dist/icons/foundations/icons/icon-registry.js +147 -0
  714. package/dist/icons/foundations/icons/icon-sizes.d.ts +8 -0
  715. package/dist/icons/foundations/icons/icon-sizes.js +8 -0
  716. package/dist/icons/foundations/icons/icon-slug.d.ts +6 -0
  717. package/dist/icons/foundations/icons/icon-slug.js +26 -0
  718. package/dist/icons/foundations/icons/icon.constants.d.ts +14 -0
  719. package/dist/icons/foundations/icons/icon.constants.generated.d.ts +2281 -0
  720. package/dist/icons/foundations/icons/icon.constants.generated.js +2284 -0
  721. package/dist/icons/foundations/icons/icon.constants.js +18 -0
  722. package/dist/icons/foundations/icons/icon.types.d.ts +21 -0
  723. package/dist/icons/foundations/icons/icon.types.js +1 -0
  724. package/dist/icons/foundations/icons/index.d.ts +5 -0
  725. package/dist/icons/foundations/icons/index.js +3 -0
  726. package/dist/icons/foundations/icons/mdi-map.d.ts +92 -0
  727. package/dist/icons/foundations/icons/mdi-map.js +86 -0
  728. package/dist/icons/foundations/icons/register-lucide-icons.d.ts +14 -0
  729. package/dist/icons/foundations/icons/register-lucide-icons.js +30 -0
  730. package/dist/icons/index.d.ts +2 -0
  731. package/dist/icons/index.js +2 -0
  732. package/dist/icons/integrations/basics/index.d.ts +2 -0
  733. package/dist/icons/integrations/basics/index.js +2 -0
  734. package/dist/icons/integrations/basics/is-plain-object.d.ts +1 -0
  735. package/dist/icons/integrations/basics/is-plain-object.js +1 -0
  736. package/dist/icons/package.json +3 -0
  737. package/dist/index.cjs.js +1 -0
  738. package/dist/index.js +1 -0
  739. package/dist/scss/index.scss +4 -0
  740. package/dist/scss/interactions.scss +1 -0
  741. package/dist/scss/responsive.scss +2 -0
  742. package/dist/scss/themes/dark.scss +1 -0
  743. package/dist/scss/themes/default.scss +1 -0
  744. package/dist/scss/themes/glass.scss +1 -0
  745. package/dist/scss/themes/minimal.scss +1 -0
  746. package/dist/scss/tokens.scss +1 -0
  747. package/dist/scss/utilities/_index.scss +5 -0
  748. package/dist/scss/utilities/borders.scss +3 -0
  749. package/dist/scss/utilities/colors.scss +2 -0
  750. package/dist/scss/utilities/flex.scss +1 -0
  751. package/dist/scss/utilities/grid.scss +1 -0
  752. package/dist/scss/utilities/positioning.scss +2 -0
  753. package/dist/scss/utilities/sizing.scss +3 -0
  754. package/dist/scss/utilities/spacing.scss +3 -0
  755. package/dist/scss/utilities/typography.scss +3 -0
  756. package/dist/styles.css +263 -0
  757. package/dist/themes/glass.css +88 -0
  758. package/dist/themes/minimal.css +50 -0
  759. package/dist/tokens.cjs +38 -0
  760. package/dist/tokens.d.ts +337 -0
  761. package/dist/tokens.mjs +35 -0
  762. package/dist/types/components/actions/au-button/au-button.constants.d.ts +57 -0
  763. package/dist/types/components/actions/au-button/au-button.d.ts +93 -0
  764. package/dist/types/components/actions/au-button/au-button.types.d.ts +9 -0
  765. package/dist/types/components/actions/au-button/index.d.ts +2 -0
  766. package/dist/types/components/data-display/au-accordion/au-accordion.constants.d.ts +12 -0
  767. package/dist/types/components/data-display/au-accordion/au-accordion.d.ts +27 -0
  768. package/dist/types/components/data-display/au-accordion/au-accordion.types.d.ts +1 -0
  769. package/dist/types/components/data-display/au-accordion/index.d.ts +3 -0
  770. package/dist/types/components/data-display/au-accordion-item/au-accordion-item.d.ts +31 -0
  771. package/dist/types/components/data-display/au-accordion-item/index.d.ts +1 -0
  772. package/dist/types/components/data-display/au-avatar/au-avatar.constants.d.ts +26 -0
  773. package/dist/types/components/data-display/au-avatar/au-avatar.d.ts +39 -0
  774. package/dist/types/components/data-display/au-avatar/au-avatar.types.d.ts +1 -0
  775. package/dist/types/components/data-display/au-avatar/index.d.ts +3 -0
  776. package/dist/types/components/data-display/au-avatar/internal/initials.d.ts +7 -0
  777. package/dist/types/components/data-display/au-badge/au-badge.constants.d.ts +43 -0
  778. package/dist/types/components/data-display/au-badge/au-badge.d.ts +15 -0
  779. package/dist/types/components/data-display/au-badge/au-badge.types.d.ts +1 -0
  780. package/dist/types/components/data-display/au-badge/index.d.ts +3 -0
  781. package/dist/types/components/data-display/au-card/au-card.constants.d.ts +29 -0
  782. package/dist/types/components/data-display/au-card/au-card.d.ts +17 -0
  783. package/dist/types/components/data-display/au-card/au-card.types.d.ts +1 -0
  784. package/dist/types/components/data-display/au-card/index.d.ts +3 -0
  785. package/dist/types/components/data-display/au-chip/au-chip.constants.d.ts +23 -0
  786. package/dist/types/components/data-display/au-chip/au-chip.d.ts +46 -0
  787. package/dist/types/components/data-display/au-chip/au-chip.types.d.ts +10 -0
  788. package/dist/types/components/data-display/au-chip/index.d.ts +3 -0
  789. package/dist/types/components/data-display/au-chip/internal/neighbor.d.ts +6 -0
  790. package/dist/types/components/data-display/au-chip/internal/remove-key.d.ts +16 -0
  791. package/dist/types/components/data-display/au-code-block/au-code-block.constants.d.ts +32 -0
  792. package/dist/types/components/data-display/au-code-block/au-code-block.d.ts +89 -0
  793. package/dist/types/components/data-display/au-code-block/au-code-block.types.d.ts +17 -0
  794. package/dist/types/components/data-display/au-code-block/index.d.ts +3 -0
  795. package/dist/types/components/data-display/au-code-block/internal/highlight-lines.d.ts +10 -0
  796. package/dist/types/components/data-display/au-code-block/internal/highlight-result.d.ts +22 -0
  797. package/dist/types/components/data-display/au-code-block/internal/light-source.d.ts +10 -0
  798. package/dist/types/components/data-display/au-code-block/internal/normalize-code.d.ts +9 -0
  799. package/dist/types/components/data-display/internal/accordion.d.ts +26 -0
  800. package/dist/types/components/feedback/au-alert/au-alert.constants.d.ts +24 -0
  801. package/dist/types/components/feedback/au-alert/au-alert.d.ts +37 -0
  802. package/dist/types/components/feedback/au-alert/au-alert.types.d.ts +1 -0
  803. package/dist/types/components/feedback/au-alert/index.d.ts +3 -0
  804. package/dist/types/components/feedback/au-toast/au-toast.constants.d.ts +2 -0
  805. package/dist/types/components/feedback/au-toast/au-toast.d.ts +25 -0
  806. package/dist/types/components/feedback/au-toast/au-toast.service.d.ts +8 -0
  807. package/dist/types/components/feedback/au-toast/au-toast.types.d.ts +1 -0
  808. package/dist/types/components/feedback/au-toast/index.d.ts +3 -0
  809. package/dist/types/components/feedback/au-toast-region/au-toast-region.d.ts +106 -0
  810. package/dist/types/components/feedback/au-toast-region/index.d.ts +4 -0
  811. package/dist/types/components/feedback/internal/toast-announcer.d.ts +5 -0
  812. package/dist/types/components/feedback/internal/toast-constants.d.ts +70 -0
  813. package/dist/types/components/feedback/internal/toast-options.d.ts +28 -0
  814. package/dist/types/components/feedback/internal/toast-popover.d.ts +4 -0
  815. package/dist/types/components/feedback/internal/toast-queue.d.ts +39 -0
  816. package/dist/types/components/feedback/internal/toast-registry.d.ts +11 -0
  817. package/dist/types/components/feedback/internal/toast-request.d.ts +10 -0
  818. package/dist/types/components/feedback/internal/toast-timers.d.ts +19 -0
  819. package/dist/types/components/feedback/internal/toast-timing.d.ts +5 -0
  820. package/dist/types/components/feedback/internal/toast-types.d.ts +37 -0
  821. package/dist/types/components/forms/au-checkbox/au-checkbox.constants.d.ts +2 -0
  822. package/dist/types/components/forms/au-checkbox/au-checkbox.d.ts +63 -0
  823. package/dist/types/components/forms/au-checkbox/au-checkbox.types.d.ts +23 -0
  824. package/dist/types/components/forms/au-checkbox/index.d.ts +3 -0
  825. package/dist/types/components/forms/au-combobox/au-combobox.constants.d.ts +26 -0
  826. package/dist/types/components/forms/au-combobox/au-combobox.d.ts +167 -0
  827. package/dist/types/components/forms/au-combobox/au-combobox.types.d.ts +49 -0
  828. package/dist/types/components/forms/au-combobox/index.d.ts +4 -0
  829. package/dist/types/components/forms/au-field/au-field.d.ts +31 -0
  830. package/dist/types/components/forms/au-field/index.d.ts +1 -0
  831. package/dist/types/components/forms/au-input/au-input.constants.d.ts +35 -0
  832. package/dist/types/components/forms/au-input/au-input.d.ts +104 -0
  833. package/dist/types/components/forms/au-input/au-input.types.d.ts +35 -0
  834. package/dist/types/components/forms/au-input/index.d.ts +4 -0
  835. package/dist/types/components/forms/au-label/au-label.constants.d.ts +7 -0
  836. package/dist/types/components/forms/au-label/au-label.d.ts +12 -0
  837. package/dist/types/components/forms/au-label/au-label.types.d.ts +7 -0
  838. package/dist/types/components/forms/au-label/index.d.ts +2 -0
  839. package/dist/types/components/forms/au-number-input/au-number-input.constants.d.ts +15 -0
  840. package/dist/types/components/forms/au-number-input/au-number-input.d.ts +93 -0
  841. package/dist/types/components/forms/au-number-input/au-number-input.types.d.ts +35 -0
  842. package/dist/types/components/forms/au-number-input/index.d.ts +4 -0
  843. package/dist/types/components/forms/au-radio/au-radio.constants.d.ts +2 -0
  844. package/dist/types/components/forms/au-radio/au-radio.d.ts +13 -0
  845. package/dist/types/components/forms/au-radio/au-radio.types.d.ts +11 -0
  846. package/dist/types/components/forms/au-radio/index.d.ts +3 -0
  847. package/dist/types/components/forms/au-radio-group/au-radio-group.constants.d.ts +6 -0
  848. package/dist/types/components/forms/au-radio-group/au-radio-group.d.ts +89 -0
  849. package/dist/types/components/forms/au-radio-group/au-radio-group.types.d.ts +23 -0
  850. package/dist/types/components/forms/au-radio-group/index.d.ts +4 -0
  851. package/dist/types/components/forms/au-segmented-control/au-segmented-control.constants.d.ts +26 -0
  852. package/dist/types/components/forms/au-segmented-control/au-segmented-control.d.ts +113 -0
  853. package/dist/types/components/forms/au-segmented-control/au-segmented-control.types.d.ts +30 -0
  854. package/dist/types/components/forms/au-segmented-control/index.d.ts +4 -0
  855. package/dist/types/components/forms/au-segmented-option/au-segmented-option.d.ts +23 -0
  856. package/dist/types/components/forms/au-segmented-option/au-segmented-option.types.d.ts +14 -0
  857. package/dist/types/components/forms/au-segmented-option/index.d.ts +2 -0
  858. package/dist/types/components/forms/au-select/au-select.constants.d.ts +7 -0
  859. package/dist/types/components/forms/au-select/au-select.d.ts +91 -0
  860. package/dist/types/components/forms/au-select/au-select.types.d.ts +25 -0
  861. package/dist/types/components/forms/au-select/index.d.ts +4 -0
  862. package/dist/types/components/forms/au-select/internal/read-select-options.d.ts +28 -0
  863. package/dist/types/components/forms/au-slider/au-slider.constants.d.ts +11 -0
  864. package/dist/types/components/forms/au-slider/au-slider.d.ts +84 -0
  865. package/dist/types/components/forms/au-slider/au-slider.types.d.ts +41 -0
  866. package/dist/types/components/forms/au-slider/index.d.ts +4 -0
  867. package/dist/types/components/forms/au-switch/au-switch.constants.d.ts +2 -0
  868. package/dist/types/components/forms/au-switch/au-switch.d.ts +61 -0
  869. package/dist/types/components/forms/au-switch/au-switch.types.d.ts +21 -0
  870. package/dist/types/components/forms/au-switch/index.d.ts +3 -0
  871. package/dist/types/components/forms/au-textarea/au-textarea.constants.d.ts +16 -0
  872. package/dist/types/components/forms/au-textarea/au-textarea.d.ts +87 -0
  873. package/dist/types/components/forms/au-textarea/au-textarea.types.d.ts +33 -0
  874. package/dist/types/components/forms/au-textarea/index.d.ts +4 -0
  875. package/dist/types/components/forms/internal/combobox.d.ts +51 -0
  876. package/dist/types/components/forms/internal/number-input.d.ts +18 -0
  877. package/dist/types/components/forms/internal/segmented.d.ts +34 -0
  878. package/dist/types/components/forms/internal/slider.d.ts +42 -0
  879. package/dist/types/components/layout/au-container/au-container.constants.d.ts +24 -0
  880. package/dist/types/components/layout/au-container/au-container.d.ts +15 -0
  881. package/dist/types/components/layout/au-container/au-container.types.d.ts +1 -0
  882. package/dist/types/components/layout/au-container/index.d.ts +3 -0
  883. package/dist/types/components/layout/au-divider/au-divider.constants.d.ts +23 -0
  884. package/dist/types/components/layout/au-divider/au-divider.d.ts +23 -0
  885. package/dist/types/components/layout/au-divider/au-divider.types.d.ts +1 -0
  886. package/dist/types/components/layout/au-divider/index.d.ts +3 -0
  887. package/dist/types/components/layout/au-splitter/au-splitter.constants.d.ts +9 -0
  888. package/dist/types/components/layout/au-splitter/au-splitter.d.ts +53 -0
  889. package/dist/types/components/layout/au-splitter/au-splitter.types.d.ts +19 -0
  890. package/dist/types/components/layout/au-splitter/index.d.ts +4 -0
  891. package/dist/types/components/layout/internal/splitter.d.ts +22 -0
  892. package/dist/types/components/navigation/au-breadcrumb/au-breadcrumb.constants.d.ts +4 -0
  893. package/dist/types/components/navigation/au-breadcrumb/au-breadcrumb.d.ts +23 -0
  894. package/dist/types/components/navigation/au-breadcrumb/index.d.ts +2 -0
  895. package/dist/types/components/navigation/au-breadcrumb-item/au-breadcrumb-item.d.ts +28 -0
  896. package/dist/types/components/navigation/au-breadcrumb-item/index.d.ts +1 -0
  897. package/dist/types/components/navigation/au-nav-group/au-nav-group.d.ts +16 -0
  898. package/dist/types/components/navigation/au-nav-group/index.d.ts +1 -0
  899. package/dist/types/components/navigation/au-nav-link/au-nav-link.d.ts +25 -0
  900. package/dist/types/components/navigation/au-nav-link/index.d.ts +1 -0
  901. package/dist/types/components/navigation/au-navbar/au-navbar.constants.d.ts +40 -0
  902. package/dist/types/components/navigation/au-navbar/au-navbar.d.ts +74 -0
  903. package/dist/types/components/navigation/au-navbar/au-navbar.types.d.ts +9 -0
  904. package/dist/types/components/navigation/au-navbar/index.d.ts +4 -0
  905. package/dist/types/components/navigation/au-navbar/internal/collapse.d.ts +6 -0
  906. package/dist/types/components/navigation/au-sidebar-nav/au-sidebar-nav.constants.d.ts +2 -0
  907. package/dist/types/components/navigation/au-sidebar-nav/au-sidebar-nav.d.ts +49 -0
  908. package/dist/types/components/navigation/au-sidebar-nav/index.d.ts +2 -0
  909. package/dist/types/components/navigation/au-tab/au-tab.d.ts +11 -0
  910. package/dist/types/components/navigation/au-tab/index.d.ts +1 -0
  911. package/dist/types/components/navigation/au-tab-panel/au-tab-panel.d.ts +20 -0
  912. package/dist/types/components/navigation/au-tab-panel/index.d.ts +1 -0
  913. package/dist/types/components/navigation/au-tabs/au-tabs.constants.d.ts +12 -0
  914. package/dist/types/components/navigation/au-tabs/au-tabs.d.ts +79 -0
  915. package/dist/types/components/navigation/au-tabs/au-tabs.types.d.ts +7 -0
  916. package/dist/types/components/navigation/au-tabs/index.d.ts +4 -0
  917. package/dist/types/components/navigation/au-tabs/internal/indicator-geometry.d.ts +31 -0
  918. package/dist/types/components/navigation/au-toc/au-toc.constants.d.ts +6 -0
  919. package/dist/types/components/navigation/au-toc/au-toc.d.ts +84 -0
  920. package/dist/types/components/navigation/au-toc/index.d.ts +2 -0
  921. package/dist/types/components/navigation/au-toc/internal/toc-model.d.ts +41 -0
  922. package/dist/types/components/navigation/internal/reveal.d.ts +24 -0
  923. package/dist/types/components/overlays/au-dialog/au-dialog.constants.d.ts +33 -0
  924. package/dist/types/components/overlays/au-dialog/au-dialog.d.ts +103 -0
  925. package/dist/types/components/overlays/au-dialog/au-dialog.types.d.ts +11 -0
  926. package/dist/types/components/overlays/au-dialog/index.d.ts +3 -0
  927. package/dist/types/components/overlays/au-menu/au-menu.constants.d.ts +37 -0
  928. package/dist/types/components/overlays/au-menu/au-menu.d.ts +67 -0
  929. package/dist/types/components/overlays/au-menu/au-menu.types.d.ts +12 -0
  930. package/dist/types/components/overlays/au-menu/index.d.ts +4 -0
  931. package/dist/types/components/overlays/au-menu-item/au-menu-item.d.ts +19 -0
  932. package/dist/types/components/overlays/au-menu-item/au-menu-item.types.d.ts +14 -0
  933. package/dist/types/components/overlays/au-menu-item/index.d.ts +2 -0
  934. package/dist/types/components/overlays/au-popover/au-popover.constants.d.ts +33 -0
  935. package/dist/types/components/overlays/au-popover/au-popover.d.ts +28 -0
  936. package/dist/types/components/overlays/au-popover/au-popover.types.d.ts +10 -0
  937. package/dist/types/components/overlays/au-popover/index.d.ts +3 -0
  938. package/dist/types/components/overlays/au-tooltip/au-tooltip.constants.d.ts +28 -0
  939. package/dist/types/components/overlays/au-tooltip/au-tooltip.d.ts +80 -0
  940. package/dist/types/components/overlays/au-tooltip/index.d.ts +3 -0
  941. package/dist/types/components/overlays/internal/menu.d.ts +34 -0
  942. package/dist/types/components/overlays/internal/popover-controller.d.ts +102 -0
  943. package/dist/types/components/overlays/internal/typeahead.d.ts +17 -0
  944. package/dist/types/components/primitives/au-icon/au-icon.constants.d.ts +5 -0
  945. package/dist/types/components/primitives/au-icon/au-icon.d.ts +37 -0
  946. package/dist/types/components/primitives/au-icon/au-icon.types.d.ts +13 -0
  947. package/dist/types/components/primitives/au-icon/core-icons.d.ts +9 -0
  948. package/dist/types/components/primitives/au-icon/icon-loader.d.ts +8 -0
  949. package/dist/types/components/primitives/au-icon/index.d.ts +3 -0
  950. package/dist/types/components.d.ts +4419 -0
  951. package/dist/types/foundations/constants/constants.generated.d.mts +136 -0
  952. package/dist/types/foundations/constants/index.d.ts +3 -0
  953. package/dist/types/foundations/constants/resolve-size.d.ts +5 -0
  954. package/dist/types/foundations/icons/autoload.d.ts +9 -0
  955. package/dist/types/foundations/icons/icon-autoload-hook.d.ts +14 -0
  956. package/dist/types/foundations/icons/icon-registry.d.ts +11 -0
  957. package/dist/types/foundations/icons/icon-sizes.d.ts +8 -0
  958. package/dist/types/foundations/icons/icon-slug.d.ts +6 -0
  959. package/dist/types/foundations/icons/icon.constants.d.ts +14 -0
  960. package/dist/types/foundations/icons/icon.constants.generated.d.ts +2281 -0
  961. package/dist/types/foundations/icons/icon.types.d.ts +21 -0
  962. package/dist/types/foundations/icons/index.d.ts +5 -0
  963. package/dist/types/foundations/icons/mdi-map.d.ts +92 -0
  964. package/dist/types/foundations/icons/register-lucide-icons.d.ts +14 -0
  965. package/dist/types/foundations/themes/theme.d.ts +68 -0
  966. package/dist/types/foundations/tokens/index.d.ts +4 -0
  967. package/dist/types/foundations/tokens/tokens.generated.d.mts +199 -0
  968. package/dist/types/index.d.ts +3 -0
  969. package/dist/types/integrations/basics/index.d.ts +2 -0
  970. package/dist/types/integrations/basics/is-plain-object.d.ts +1 -0
  971. package/dist/types/integrations/flux/index.d.ts +2 -0
  972. package/dist/types/integrations/flux/loader.d.ts +21 -0
  973. package/dist/types/integrations/flux/provide.d.ts +12 -0
  974. package/dist/types/integrations/flux/registry.d.ts +25 -0
  975. package/dist/types/shared/anchored/anchor-position.d.ts +43 -0
  976. package/dist/types/shared/anchored/js-positioning.d.ts +36 -0
  977. package/dist/types/shared/anchored/popover-support.d.ts +15 -0
  978. package/dist/types/shared/clipboard/clipboard.d.ts +13 -0
  979. package/dist/types/shared/clipboard/copy-procedure.d.ts +17 -0
  980. package/dist/types/shared/clipboard/copy-types.d.ts +33 -0
  981. package/dist/types/shared/focus/deep-active-element.d.ts +2 -0
  982. package/dist/types/shared/focus/index.d.ts +1 -0
  983. package/dist/types/shared/form-control/attributes.d.ts +11 -0
  984. package/dist/types/shared/form-control/checkable.d.ts +5 -0
  985. package/dist/types/shared/form-control/control-id.d.ts +7 -0
  986. package/dist/types/shared/form-control/described-by.d.ts +2 -0
  987. package/dist/types/shared/form-control/form-control-controller.d.ts +40 -0
  988. package/dist/types/shared/form-control/group-validity.d.ts +5 -0
  989. package/dist/types/shared/form-control/host-events.d.ts +13 -0
  990. package/dist/types/shared/form-control/index.d.ts +11 -0
  991. package/dist/types/shared/form-control/initial-value.d.ts +5 -0
  992. package/dist/types/shared/form-control/restore.d.ts +4 -0
  993. package/dist/types/shared/form-control/validation-message.d.ts +11 -0
  994. package/dist/types/shared/live-announcer/announce-queue.d.ts +51 -0
  995. package/dist/types/shared/live-announcer/announce-timing.d.ts +12 -0
  996. package/dist/types/shared/live-announcer/index.d.ts +2 -0
  997. package/dist/types/shared/live-announcer/live-announcer.d.ts +31 -0
  998. package/dist/types/shared/live-announcer/public.d.ts +7 -0
  999. package/dist/types/shared/modal-placement.d.ts +14 -0
  1000. package/dist/types/shared/modal-target.d.ts +22 -0
  1001. package/dist/types/shared/navigation/index.d.ts +4 -0
  1002. package/dist/types/shared/navigation/link-state.d.ts +34 -0
  1003. package/dist/types/shared/navigation/navigation.d.ts +28 -0
  1004. package/dist/types/shared/observers/index.d.ts +42 -0
  1005. package/dist/types/shared/roving-focus/index.d.ts +3 -0
  1006. package/dist/types/shared/roving-focus/item-update.d.ts +8 -0
  1007. package/dist/types/shared/roving-focus/roving.d.ts +22 -0
  1008. package/dist/types/shared/warn-once.d.ts +5 -0
  1009. package/dist/types/stencil-public-runtime.d.ts +1879 -0
  1010. package/dist/types/vue.d.ts +68 -0
  1011. package/dist/utilities/base.css +3160 -0
  1012. package/dist/utilities/responsive.css +11165 -0
  1013. package/dist/utilities.css +14326 -0
  1014. package/loader/cdn.js +1 -0
  1015. package/loader/index.cjs.js +1 -0
  1016. package/loader/index.d.ts +24 -0
  1017. package/loader/index.es2017.js +1 -0
  1018. package/loader/index.js +2 -0
  1019. package/package.json +493 -4
@@ -0,0 +1,2314 @@
1
+ 'use strict';
2
+
3
+ const NAMESPACE = 'aurora';
4
+ const BUILD = /* aurora */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, slotRelocation: true, state: true, updatable: true};
5
+
6
+ /*
7
+ Stencil Client Platform v4.45.2 | MIT Licensed | https://stenciljs.com
8
+ */
9
+
10
+
11
+ // src/utils/constants.ts
12
+ var SVG_NS = "http://www.w3.org/2000/svg";
13
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
14
+
15
+ // src/utils/get-prop-descriptor.ts
16
+ function getPropertyDescriptor(obj, memberName, getOnly) {
17
+ const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
18
+ while (obj && obj !== stopAt) {
19
+ const desc = Object.getOwnPropertyDescriptor(obj, memberName);
20
+ if (desc && (!getOnly || desc.get)) return desc;
21
+ obj = Object.getPrototypeOf(obj);
22
+ }
23
+ return void 0;
24
+ }
25
+
26
+ // src/utils/es2022-rewire-class-members.ts
27
+ var reWireGetterSetter = (instance, hostRef) => {
28
+ var _a;
29
+ const cmpMeta = hostRef.$cmpMeta$;
30
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
31
+ members.map(([memberName, [memberFlags]]) => {
32
+ if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
33
+ const ogValue = instance[memberName];
34
+ const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
35
+ if (ogDescriptor) {
36
+ Object.defineProperty(instance, memberName, {
37
+ get() {
38
+ return ogDescriptor.get.call(this);
39
+ },
40
+ set(newValue) {
41
+ ogDescriptor.set.call(this, newValue);
42
+ },
43
+ configurable: true,
44
+ enumerable: true
45
+ });
46
+ }
47
+ if (hostRef.$instanceValues$.has(memberName)) {
48
+ instance[memberName] = hostRef.$instanceValues$.get(memberName);
49
+ } else if (ogValue !== void 0) {
50
+ instance[memberName] = ogValue;
51
+ }
52
+ }
53
+ });
54
+ };
55
+
56
+ // src/client/client-host-ref.ts
57
+ var getHostRef = (ref) => {
58
+ if (ref.__stencil__getHostRef) {
59
+ return ref.__stencil__getHostRef();
60
+ }
61
+ return void 0;
62
+ };
63
+ var registerInstance = (lazyInstance, hostRef) => {
64
+ if (!hostRef) return;
65
+ lazyInstance.__stencil__getHostRef = () => hostRef;
66
+ hostRef.$lazyInstance$ = lazyInstance;
67
+ if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
68
+ reWireGetterSetter(lazyInstance, hostRef);
69
+ }
70
+ };
71
+ var registerHost = (hostElement, cmpMeta) => {
72
+ const hostRef = {
73
+ $flags$: 0,
74
+ $hostElement$: hostElement,
75
+ $cmpMeta$: cmpMeta,
76
+ $instanceValues$: /* @__PURE__ */ new Map(),
77
+ $serializerValues$: /* @__PURE__ */ new Map()
78
+ };
79
+ {
80
+ hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
81
+ }
82
+ {
83
+ hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
84
+ hostElement["s-p"] = [];
85
+ hostElement["s-rc"] = [];
86
+ }
87
+ {
88
+ hostRef.$fetchedCbList$ = [];
89
+ }
90
+ const ref = hostRef;
91
+ hostElement.__stencil__getHostRef = () => ref;
92
+ return ref;
93
+ };
94
+ var isMemberInElement = (elm, memberName) => memberName in elm;
95
+ var consoleError = (e, el) => (0, console.error)(e, el);
96
+
97
+ // src/client/client-load-module.ts
98
+ var cmpModules = /* @__PURE__ */ new Map();
99
+ var failedLoadAttempts = /* @__PURE__ */ new Map();
100
+ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
101
+ var _a;
102
+ const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
103
+ const bundleId = cmpMeta.$lazyBundleId$;
104
+ if (!bundleId) {
105
+ return void 0;
106
+ }
107
+ const module = cmpModules.get(bundleId) ;
108
+ if (module) {
109
+ return module[exportName];
110
+ }
111
+ const retryCount = (_a = failedLoadAttempts.get(bundleId)) != null ? _a : 0;
112
+ const cacheBustParams = [
113
+ retryCount > 0 ? `s-retry=${retryCount}` : "",
114
+ ""
115
+ ].filter(Boolean).join("&");
116
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
117
+ return import(
118
+ /* @vite-ignore */
119
+ /* webpackInclude: /\.entry\.js$/ */
120
+ /* webpackExclude: /\.system\.entry\.js$/ */
121
+ /* webpackMode: "lazy" */
122
+ `./${bundleId}.entry.js${cacheBustParams ? "?" + cacheBustParams : ""}`
123
+ ).then(
124
+ (importedModule) => {
125
+ {
126
+ failedLoadAttempts.delete(bundleId);
127
+ cmpModules.set(bundleId, importedModule);
128
+ }
129
+ return importedModule[exportName];
130
+ },
131
+ (e) => {
132
+ failedLoadAttempts.set(bundleId, retryCount + 1);
133
+ consoleError(e, hostRef.$hostElement$);
134
+ }
135
+ );
136
+ };
137
+
138
+ // src/client/client-style.ts
139
+ var styles = /* @__PURE__ */ new Map();
140
+ var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
141
+ var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
142
+ var XLINK_NS = "http://www.w3.org/1999/xlink";
143
+ var MAX_LAZY_LOAD_RETRIES = 3;
144
+ var LAZY_LOAD_RETRY_INTERVAL_MS = 1e3;
145
+ var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
146
+ "formAssociatedCallback",
147
+ "formResetCallback",
148
+ "formDisabledCallback",
149
+ "formStateRestoreCallback"
150
+ ];
151
+ var win = typeof window !== "undefined" ? window : {};
152
+ var plt = {
153
+ $flags$: 0,
154
+ $resourcesUrl$: "",
155
+ jmp: (h2) => h2(),
156
+ raf: (h2) => requestAnimationFrame(h2),
157
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
158
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
159
+ ce: (eventName, opts) => new CustomEvent(eventName, opts)
160
+ };
161
+ var supportsListenerOptions = /* @__PURE__ */ (() => {
162
+ var _a;
163
+ let supportsListenerOptions2 = false;
164
+ try {
165
+ (_a = win.document) == null ? void 0 : _a.addEventListener(
166
+ "e",
167
+ null,
168
+ Object.defineProperty({}, "passive", {
169
+ get() {
170
+ supportsListenerOptions2 = true;
171
+ }
172
+ })
173
+ );
174
+ } catch (e) {
175
+ }
176
+ return supportsListenerOptions2;
177
+ })();
178
+ var promiseResolve = (v) => Promise.resolve(v);
179
+ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
180
+ try {
181
+ if (!win.document.adoptedStyleSheets) {
182
+ return false;
183
+ }
184
+ new CSSStyleSheet();
185
+ return typeof new CSSStyleSheet().replaceSync === "function";
186
+ } catch (e) {
187
+ }
188
+ return false;
189
+ })() ;
190
+ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
191
+ var queuePending = false;
192
+ var queueDomReads = [];
193
+ var queueDomWrites = [];
194
+ var scheduleFlush = () => {
195
+ var _a;
196
+ return ((_a = win.document) == null ? void 0 : _a.hidden) ? setTimeout(flush, 16) : plt.raf(flush);
197
+ };
198
+ var queueTask = (queue, write) => (cb) => {
199
+ queue.push(cb);
200
+ if (!queuePending) {
201
+ queuePending = true;
202
+ if (write && plt.$flags$ & 4 /* queueSync */) {
203
+ nextTick(flush);
204
+ } else {
205
+ scheduleFlush();
206
+ }
207
+ }
208
+ };
209
+ var consume = (queue) => {
210
+ for (let i2 = 0; i2 < queue.length; i2++) {
211
+ try {
212
+ queue[i2](performance.now());
213
+ } catch (e) {
214
+ consoleError(e);
215
+ }
216
+ }
217
+ queue.length = 0;
218
+ };
219
+ var flush = () => {
220
+ consume(queueDomReads);
221
+ {
222
+ consume(queueDomWrites);
223
+ if (queuePending = queueDomReads.length > 0) {
224
+ scheduleFlush();
225
+ }
226
+ }
227
+ };
228
+ var nextTick = (cb) => promiseResolve().then(cb);
229
+ var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
230
+
231
+ // src/utils/style.ts
232
+ function createStyleSheetIfNeededAndSupported(styles2) {
233
+ return void 0;
234
+ }
235
+
236
+ // src/utils/shadow-root.ts
237
+ var globalStyleSheet;
238
+ function createShadowRoot(cmpMeta) {
239
+ var _a;
240
+ const opts = { mode: "open" };
241
+ {
242
+ opts.delegatesFocus = !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */);
243
+ }
244
+ const shadowRoot = this.attachShadow(opts);
245
+ if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
246
+ if (globalStyleSheet) {
247
+ if (supportsMutableAdoptedStyleSheets) {
248
+ shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
249
+ } else {
250
+ shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
251
+ }
252
+ }
253
+ }
254
+ var updateFallbackSlotVisibility = (elm) => {
255
+ const childNodes = internalCall(elm, "childNodes");
256
+ if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
257
+ getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
258
+ if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
259
+ if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
260
+ slotNode.hidden = true;
261
+ } else {
262
+ slotNode.hidden = false;
263
+ }
264
+ }
265
+ });
266
+ }
267
+ let i2 = 0;
268
+ for (i2 = 0; i2 < childNodes.length; i2++) {
269
+ const childNode = childNodes[i2];
270
+ if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, "childNodes").length) {
271
+ updateFallbackSlotVisibility(childNode);
272
+ }
273
+ }
274
+ };
275
+ var getSlottedChildNodes = (childNodes) => {
276
+ const result = [];
277
+ for (let i2 = 0; i2 < childNodes.length; i2++) {
278
+ const slottedNode = childNodes[i2]["s-nr"] || void 0;
279
+ if (slottedNode && slottedNode.isConnected) {
280
+ result.push(slottedNode);
281
+ }
282
+ }
283
+ return result;
284
+ };
285
+ function getHostSlotNodes(childNodes, hostName, slotName) {
286
+ let i2 = 0;
287
+ let slottedNodes = [];
288
+ let childNode;
289
+ for (; i2 < childNodes.length; i2++) {
290
+ childNode = childNodes[i2];
291
+ if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0 || getSlotName(childNode) === slotName)) {
292
+ slottedNodes.push(childNode);
293
+ if (typeof slotName !== "undefined") return slottedNodes;
294
+ }
295
+ slottedNodes = [...slottedNodes, ...getHostSlotNodes(internalCall(childNode, "childNodes"), hostName, slotName)];
296
+ }
297
+ return slottedNodes;
298
+ }
299
+ var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
300
+ const childNodes = [];
301
+ if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
302
+ let node = slot;
303
+ while (node = node.nextSibling) {
304
+ if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
305
+ }
306
+ return childNodes;
307
+ };
308
+ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
309
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
310
+ if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
311
+ return true;
312
+ }
313
+ if (nodeToRelocate.getAttribute("slot") === slotName) {
314
+ return true;
315
+ }
316
+ return false;
317
+ }
318
+ if (nodeToRelocate["s-sn"] === slotName) {
319
+ return true;
320
+ }
321
+ return slotName === "";
322
+ };
323
+ var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
324
+ function patchSlotNode(node) {
325
+ if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
326
+ const assignedFactory = (elementsOnly) => (function(opts) {
327
+ const toReturn = [];
328
+ const slotName = this["s-sn"];
329
+ if (opts == null ? void 0 : opts.flatten) {
330
+ console.error(`
331
+ Flattening is not supported for Stencil non-shadow slots.
332
+ You can use \`.childNodes\` to nested slot fallback content.
333
+ If you have a particular use case, please open an issue on the Stencil repo.
334
+ `);
335
+ }
336
+ const parent = this["s-cr"].parentElement;
337
+ const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
338
+ slottedNodes.forEach((n) => {
339
+ if (slotName === getSlotName(n)) {
340
+ toReturn.push(n);
341
+ }
342
+ });
343
+ if (elementsOnly) {
344
+ return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
345
+ }
346
+ return toReturn;
347
+ }).bind(node);
348
+ node.assignedElements = assignedFactory(true);
349
+ node.assignedNodes = assignedFactory(false);
350
+ }
351
+ function dispatchSlotChangeEvent(elm) {
352
+ elm.dispatchEvent(new CustomEvent("slotchange", { bubbles: false, cancelable: false, composed: false }));
353
+ }
354
+ function findSlotFromSlottedNode(slottedNode, parentHost) {
355
+ var _a;
356
+ parentHost = parentHost || ((_a = slottedNode["s-ol"]) == null ? void 0 : _a.parentElement);
357
+ if (!parentHost) return { slotNode: null, slotName: "" };
358
+ const slotName = slottedNode["s-sn"] = getSlotName(slottedNode) || "";
359
+ const childNodes = internalCall(parentHost, "childNodes");
360
+ const slotNode = getHostSlotNodes(childNodes, parentHost.tagName, slotName)[0];
361
+ return { slotNode, slotName };
362
+ }
363
+ function internalCall(node, method) {
364
+ if ("__" + method in node) {
365
+ const toReturn = node["__" + method];
366
+ if (typeof toReturn !== "function") return toReturn;
367
+ return toReturn.bind(node);
368
+ } else {
369
+ if (typeof node[method] !== "function") return node[method];
370
+ return node[method].bind(node);
371
+ }
372
+ }
373
+ var createTime = (fnName, tagName = "") => {
374
+ {
375
+ return () => {
376
+ return;
377
+ };
378
+ }
379
+ };
380
+ var uniqueTime = (key, measureText) => {
381
+ {
382
+ return () => {
383
+ return;
384
+ };
385
+ }
386
+ };
387
+
388
+ // src/utils/query-nonce-meta-tag-content.ts
389
+ function queryNonceMetaTagContent(doc) {
390
+ var _a, _b, _c;
391
+ 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;
392
+ }
393
+
394
+ // src/runtime/styles.ts
395
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
396
+ var registerStyle = (scopeId2, cssText, allowCS) => {
397
+ let style = styles.get(scopeId2);
398
+ if (supportsConstructableStylesheets && allowCS) {
399
+ style = style || new CSSStyleSheet();
400
+ if (typeof style === "string") {
401
+ style = cssText;
402
+ } else {
403
+ style.replaceSync(cssText);
404
+ }
405
+ } else {
406
+ style = cssText;
407
+ }
408
+ styles.set(scopeId2, style);
409
+ };
410
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
411
+ var _a, _b, _c;
412
+ const scopeId2 = getScopeId(cmpMeta);
413
+ const style = styles.get(scopeId2);
414
+ if (!win.document) {
415
+ return scopeId2;
416
+ }
417
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
418
+ if (style) {
419
+ if (typeof style === "string") {
420
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
421
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
422
+ let styleElm;
423
+ if (!appliedStyles) {
424
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
425
+ }
426
+ if (!appliedStyles.has(scopeId2)) {
427
+ styleElm = win.document.createElement("style");
428
+ styleElm.textContent = style;
429
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
430
+ if (nonce != null) {
431
+ styleElm.setAttribute("nonce", nonce);
432
+ }
433
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
434
+ if (styleContainerNode.nodeName === "HEAD") {
435
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
436
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
437
+ styleContainerNode.insertBefore(
438
+ styleElm,
439
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
440
+ );
441
+ } else if ("host" in styleContainerNode) {
442
+ if (supportsConstructableStylesheets) {
443
+ const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;
444
+ const stylesheet = new currentWindow.CSSStyleSheet();
445
+ stylesheet.replaceSync(style);
446
+ if (supportsMutableAdoptedStyleSheets) {
447
+ styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
448
+ } else {
449
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
450
+ }
451
+ } else {
452
+ const existingStyleContainer = styleContainerNode.querySelector("style");
453
+ if (existingStyleContainer && true) {
454
+ existingStyleContainer.textContent = style + existingStyleContainer.textContent;
455
+ } else {
456
+ styleContainerNode.prepend(styleElm);
457
+ }
458
+ }
459
+ } else {
460
+ styleContainerNode.append(styleElm);
461
+ }
462
+ }
463
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
464
+ styleContainerNode.insertBefore(styleElm, null);
465
+ }
466
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
467
+ styleElm.textContent += SLOT_FB_CSS;
468
+ }
469
+ if (appliedStyles) {
470
+ appliedStyles.add(scopeId2);
471
+ }
472
+ }
473
+ } else {
474
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
475
+ if (!appliedStyles) {
476
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
477
+ }
478
+ if (!appliedStyles.has(scopeId2)) {
479
+ const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;
480
+ let stylesheet;
481
+ if (style.constructor === currentWindow.CSSStyleSheet) {
482
+ stylesheet = style;
483
+ } else {
484
+ stylesheet = new currentWindow.CSSStyleSheet();
485
+ for (let i2 = 0; i2 < style.cssRules.length; i2++) {
486
+ stylesheet.insertRule(style.cssRules[i2].cssText, i2);
487
+ }
488
+ }
489
+ if (supportsMutableAdoptedStyleSheets) {
490
+ styleContainerNode.adoptedStyleSheets.push(stylesheet);
491
+ } else {
492
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
493
+ }
494
+ appliedStyles.add(scopeId2);
495
+ }
496
+ }
497
+ }
498
+ return scopeId2;
499
+ };
500
+ var attachStyles = (hostRef) => {
501
+ const cmpMeta = hostRef.$cmpMeta$;
502
+ const elm = hostRef.$hostElement$;
503
+ const flags = cmpMeta.$flags$;
504
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
505
+ const scopeId2 = addStyle(
506
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
507
+ cmpMeta);
508
+ if (flags & 10 /* needsScopedEncapsulation */) {
509
+ elm["s-sc"] = scopeId2;
510
+ elm.classList.add(scopeId2 + "-h");
511
+ }
512
+ endAttachStyles();
513
+ };
514
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
515
+
516
+ // src/utils/helpers.ts
517
+ var isDef = (v) => v != null && v !== void 0;
518
+ var isComplexType = (o) => {
519
+ o = typeof o;
520
+ return o === "object" || o === "function";
521
+ };
522
+
523
+ // src/runtime/vdom/h.ts
524
+ var h = (nodeName, vnodeData, ...children) => {
525
+ if (typeof nodeName === "string") {
526
+ nodeName = transformTag(nodeName);
527
+ }
528
+ let child = null;
529
+ let key = null;
530
+ let slotName = null;
531
+ let simple = false;
532
+ let lastSimple = false;
533
+ const vNodeChildren = [];
534
+ const walk = (c) => {
535
+ for (let i2 = 0; i2 < c.length; i2++) {
536
+ child = c[i2];
537
+ if (Array.isArray(child)) {
538
+ walk(child);
539
+ } else if (child != null && typeof child !== "boolean") {
540
+ if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
541
+ child = String(child);
542
+ } else if (typeof nodeName !== "function" && child.$flags$ === void 0) {
543
+ {
544
+ consoleError("Invalid vNode child");
545
+ }
546
+ continue;
547
+ }
548
+ if (simple && lastSimple) {
549
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
550
+ } else {
551
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
552
+ }
553
+ lastSimple = simple;
554
+ }
555
+ }
556
+ };
557
+ walk(children);
558
+ if (vnodeData) {
559
+ if (vnodeData.key) {
560
+ key = vnodeData.key;
561
+ }
562
+ if (vnodeData.name) {
563
+ slotName = vnodeData.name;
564
+ }
565
+ {
566
+ const classData = vnodeData.className || vnodeData.class;
567
+ if (classData) {
568
+ vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
569
+ }
570
+ }
571
+ }
572
+ if (typeof nodeName === "function") {
573
+ return nodeName(
574
+ vnodeData === null ? {} : vnodeData,
575
+ vNodeChildren,
576
+ vdomFnUtils
577
+ );
578
+ }
579
+ const vnode = newVNode(nodeName, null);
580
+ vnode.$attrs$ = vnodeData;
581
+ if (vNodeChildren.length > 0) {
582
+ vnode.$children$ = vNodeChildren;
583
+ }
584
+ {
585
+ vnode.$key$ = key;
586
+ }
587
+ {
588
+ vnode.$name$ = slotName;
589
+ }
590
+ return vnode;
591
+ };
592
+ var newVNode = (tag, text) => {
593
+ const vnode = {
594
+ $flags$: 0,
595
+ $tag$: tag,
596
+ // Normalize undefined to null to prevent rendering "undefined" as text
597
+ $text$: text != null ? text : null,
598
+ $elm$: null,
599
+ $children$: null
600
+ };
601
+ {
602
+ vnode.$attrs$ = null;
603
+ }
604
+ {
605
+ vnode.$key$ = null;
606
+ }
607
+ {
608
+ vnode.$name$ = null;
609
+ }
610
+ return vnode;
611
+ };
612
+ var Host = {};
613
+ var isHost = (node) => node && node.$tag$ === Host;
614
+ var vdomFnUtils = {
615
+ forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
616
+ map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
617
+ };
618
+ var convertToPublic = (node) => ({
619
+ vattrs: node.$attrs$,
620
+ vchildren: node.$children$,
621
+ vkey: node.$key$,
622
+ vname: node.$name$,
623
+ vtag: node.$tag$,
624
+ vtext: node.$text$
625
+ });
626
+ var convertToPrivate = (node) => {
627
+ if (typeof node.vtag === "function") {
628
+ const vnodeData = { ...node.vattrs };
629
+ if (node.vkey) {
630
+ vnodeData.key = node.vkey;
631
+ }
632
+ if (node.vname) {
633
+ vnodeData.name = node.vname;
634
+ }
635
+ return h(node.vtag, vnodeData, ...node.vchildren || []);
636
+ }
637
+ const vnode = newVNode(node.vtag, node.vtext);
638
+ vnode.$attrs$ = node.vattrs;
639
+ vnode.$children$ = node.vchildren;
640
+ vnode.$key$ = node.vkey;
641
+ vnode.$name$ = node.vname;
642
+ return vnode;
643
+ };
644
+
645
+ // src/runtime/normalize-watchers.ts
646
+ var normalizeWatchers = (raw) => {
647
+ if (!raw) return void 0;
648
+ const keys = Object.keys(raw);
649
+ if (keys.length === 0) return void 0;
650
+ let hasLegacy = false;
651
+ for (const propName of keys) {
652
+ if (hasLegacy) break;
653
+ for (const h2 of raw[propName]) {
654
+ if (typeof h2 === "string") {
655
+ hasLegacy = true;
656
+ break;
657
+ }
658
+ }
659
+ }
660
+ if (!hasLegacy) return raw;
661
+ const out = {};
662
+ for (const propName of keys) {
663
+ out[propName] = raw[propName].map(
664
+ (h2) => typeof h2 === "string" ? { [h2]: 0 } : h2
665
+ );
666
+ }
667
+ return out;
668
+ };
669
+
670
+ // src/runtime/parse-property-value.ts
671
+ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
672
+ if (propValue != null && !isComplexType(propValue)) {
673
+ if (propType & 4 /* Boolean */) {
674
+ if (isFormAssociated && typeof propValue === "string") {
675
+ return propValue === "" || !!propValue;
676
+ } else {
677
+ return propValue === "false" ? false : propValue === "" || !!propValue;
678
+ }
679
+ }
680
+ if (propType & 2 /* Number */) {
681
+ return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
682
+ }
683
+ if (propType & 1 /* String */) {
684
+ return String(propValue);
685
+ }
686
+ return propValue;
687
+ }
688
+ return propValue;
689
+ };
690
+ var getElement = (ref) => {
691
+ var _a;
692
+ return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
693
+ };
694
+
695
+ // src/runtime/event-emitter.ts
696
+ var createEvent = (ref, name, flags) => {
697
+ const elm = getElement(ref);
698
+ return {
699
+ emit: (detail) => {
700
+ return emitEvent(elm, name, {
701
+ bubbles: !!(flags & 4 /* Bubbles */),
702
+ composed: !!(flags & 2 /* Composed */),
703
+ cancelable: !!(flags & 1 /* Cancellable */),
704
+ detail
705
+ });
706
+ }
707
+ };
708
+ };
709
+ var emitEvent = (elm, name, opts) => {
710
+ const ev = plt.ce(name, opts);
711
+ elm.dispatchEvent(ev);
712
+ return ev;
713
+ };
714
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
715
+ if (oldValue === newValue) {
716
+ return;
717
+ }
718
+ let isProp = isMemberInElement(elm, memberName);
719
+ let ln = memberName.toLowerCase();
720
+ if (memberName === "class") {
721
+ const classList = elm.classList;
722
+ const oldClasses = parseClassList(oldValue);
723
+ let newClasses = parseClassList(newValue);
724
+ {
725
+ let removedClasses = oldClasses.filter((c) => c && !newClasses.includes(c));
726
+ classList.remove(...removedClasses);
727
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
728
+ }
729
+ } else if (memberName === "style") {
730
+ {
731
+ for (const prop in oldValue) {
732
+ if (!newValue || newValue[prop] == null) {
733
+ if (prop.includes("-")) {
734
+ elm.style.removeProperty(prop);
735
+ } else {
736
+ elm.style[prop] = "";
737
+ }
738
+ }
739
+ }
740
+ }
741
+ for (const prop in newValue) {
742
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
743
+ if (prop.includes("-")) {
744
+ elm.style.setProperty(prop, newValue[prop]);
745
+ } else {
746
+ elm.style[prop] = newValue[prop];
747
+ }
748
+ }
749
+ }
750
+ } else if (memberName === "key") ; else if (memberName === "ref") {
751
+ if (newValue) {
752
+ queueRefAttachment(newValue, elm);
753
+ }
754
+ } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
755
+ if (memberName[2] === "-") {
756
+ memberName = memberName.slice(3);
757
+ } else if (isMemberInElement(win, ln)) {
758
+ memberName = ln.slice(2);
759
+ } else {
760
+ memberName = ln[2] + memberName.slice(3);
761
+ }
762
+ if (oldValue || newValue) {
763
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
764
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
765
+ if (oldValue) {
766
+ plt.rel(elm, memberName, oldValue, capture);
767
+ }
768
+ if (newValue) {
769
+ plt.ael(elm, memberName, newValue, capture);
770
+ }
771
+ }
772
+ } else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
773
+ const propName = memberName.slice(5);
774
+ let attrName;
775
+ {
776
+ const hostRef = getHostRef(elm);
777
+ if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
778
+ const memberMeta = hostRef.$cmpMeta$.$members$[propName];
779
+ if (memberMeta && memberMeta[1]) {
780
+ attrName = memberMeta[1];
781
+ }
782
+ }
783
+ }
784
+ if (!attrName) {
785
+ attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
786
+ }
787
+ if (newValue == null || newValue === false) {
788
+ if (newValue !== false || elm.getAttribute(attrName) === "") {
789
+ elm.removeAttribute(attrName);
790
+ }
791
+ } else {
792
+ elm.setAttribute(attrName, newValue === true ? "" : newValue);
793
+ }
794
+ return;
795
+ } else if (memberName[0] === "p" && memberName.startsWith("prop:")) {
796
+ const propName = memberName.slice(5);
797
+ try {
798
+ elm[propName] = newValue;
799
+ } catch (e) {
800
+ }
801
+ return;
802
+ } else {
803
+ const isComplex = isComplexType(newValue);
804
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
805
+ try {
806
+ if (!elm.tagName.includes("-")) {
807
+ const n = newValue == null ? "" : newValue;
808
+ if (memberName === "list") {
809
+ isProp = false;
810
+ } else if (oldValue == null || elm[memberName] !== n) {
811
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
812
+ elm[memberName] = n;
813
+ } else {
814
+ elm.setAttribute(memberName, n);
815
+ }
816
+ }
817
+ } else if (elm[memberName] !== newValue) {
818
+ elm[memberName] = newValue;
819
+ }
820
+ } catch (e) {
821
+ }
822
+ }
823
+ let xlink = false;
824
+ {
825
+ if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
826
+ memberName = ln;
827
+ xlink = true;
828
+ }
829
+ }
830
+ if (newValue == null || newValue === false) {
831
+ if (newValue !== false || elm.getAttribute(memberName) === "" || flags & 4 /* isHost */ && !isEnumeratedAttribute(memberName)) {
832
+ if (xlink) {
833
+ elm.removeAttributeNS(XLINK_NS, memberName);
834
+ } else {
835
+ elm.removeAttribute(memberName);
836
+ }
837
+ }
838
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
839
+ newValue = newValue === true ? "" : newValue;
840
+ if (xlink) {
841
+ elm.setAttributeNS(XLINK_NS, memberName, newValue);
842
+ } else {
843
+ elm.setAttribute(memberName, newValue);
844
+ }
845
+ }
846
+ }
847
+ };
848
+ var ENUMERATED_ATTRIBUTES = /* @__PURE__ */ new Set(["draggable", "contenteditable", "spellcheck"]);
849
+ var isEnumeratedAttribute = (attrName) => ENUMERATED_ATTRIBUTES.has(attrName) || attrName.startsWith("aria-");
850
+ var parseClassListRegex = /\s/;
851
+ var parseClassList = (value) => {
852
+ if (typeof value === "object" && value && "baseVal" in value) {
853
+ value = value.baseVal;
854
+ }
855
+ if (!value || typeof value !== "string") {
856
+ return [];
857
+ }
858
+ return value.split(parseClassListRegex);
859
+ };
860
+ var CAPTURE_EVENT_SUFFIX = "Capture";
861
+ var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
862
+
863
+ // src/runtime/vdom/update-element.ts
864
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
865
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
866
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
867
+ const newVnodeAttrs = newVnode.$attrs$ || {};
868
+ {
869
+ for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
870
+ if (!(memberName in newVnodeAttrs)) {
871
+ setAccessor(
872
+ elm,
873
+ memberName,
874
+ oldVnodeAttrs[memberName],
875
+ void 0,
876
+ isSvgMode2,
877
+ newVnode.$flags$);
878
+ }
879
+ }
880
+ }
881
+ for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
882
+ setAccessor(
883
+ elm,
884
+ memberName,
885
+ oldVnodeAttrs[memberName],
886
+ newVnodeAttrs[memberName],
887
+ isSvgMode2,
888
+ newVnode.$flags$);
889
+ }
890
+ };
891
+ function sortedAttrNames(attrNames) {
892
+ return attrNames.includes("ref") ? (
893
+ // we need to sort these to ensure that `'ref'` is the last attr
894
+ [...attrNames.filter((attr) => attr !== "ref"), "ref"]
895
+ ) : (
896
+ // no need to sort, return the original array
897
+ attrNames
898
+ );
899
+ }
900
+
901
+ // src/runtime/vdom/vdom-render.ts
902
+ var scopeId;
903
+ var contentRef;
904
+ var hostTagName;
905
+ var useNativeShadowDom = false;
906
+ var checkSlotFallbackVisibility = false;
907
+ var checkSlotRelocate = false;
908
+ var isSvgMode = false;
909
+ var refCallbacksToRemove = [];
910
+ var refCallbacksToAttach = [];
911
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
912
+ var _a;
913
+ const newVNode2 = newParentVNode.$children$[childIndex];
914
+ let i2 = 0;
915
+ let elm;
916
+ let childNode;
917
+ let oldVNode;
918
+ if (!useNativeShadowDom) {
919
+ checkSlotRelocate = true;
920
+ if (newVNode2.$tag$ === "slot") {
921
+ newVNode2.$flags$ |= newVNode2.$children$ ? (
922
+ // slot element has fallback content
923
+ // still create an element that "mocks" the slot element
924
+ 2 /* isSlotFallback */
925
+ ) : (
926
+ // slot element does not have fallback content
927
+ // create an html comment we'll use to always reference
928
+ // where actual slot content should sit next to
929
+ 1 /* isSlotReference */
930
+ );
931
+ }
932
+ }
933
+ if (newVNode2.$text$ != null) {
934
+ elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
935
+ } else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
936
+ elm = newVNode2.$elm$ = win.document.createTextNode("");
937
+ {
938
+ updateElement(null, newVNode2, isSvgMode);
939
+ }
940
+ } else {
941
+ if (!isSvgMode) {
942
+ isSvgMode = newVNode2.$tag$ === "svg";
943
+ }
944
+ if (!win.document) {
945
+ throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
946
+ }
947
+ elm = newVNode2.$elm$ = win.document.createElementNS(
948
+ isSvgMode ? SVG_NS : HTML_NS,
949
+ !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
950
+ ) ;
951
+ if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
952
+ isSvgMode = false;
953
+ }
954
+ {
955
+ updateElement(null, newVNode2, isSvgMode);
956
+ }
957
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
958
+ elm.classList.add(elm["s-si"] = scopeId);
959
+ }
960
+ if (newVNode2.$children$) {
961
+ const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
962
+ for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
963
+ childNode = createElm(oldParentVNode, newVNode2, i2);
964
+ if (childNode) {
965
+ appendTarget.appendChild(childNode);
966
+ }
967
+ }
968
+ }
969
+ {
970
+ if (newVNode2.$tag$ === "svg") {
971
+ isSvgMode = false;
972
+ } else if (elm.tagName === "foreignObject") {
973
+ isSvgMode = true;
974
+ }
975
+ }
976
+ }
977
+ elm["s-hn"] = hostTagName;
978
+ {
979
+ if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
980
+ elm["s-sr"] = true;
981
+ elm["s-cr"] = contentRef;
982
+ elm["s-sn"] = newVNode2.$name$ || "";
983
+ elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
984
+ patchSlotNode(elm);
985
+ oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
986
+ if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
987
+ relocateToHostRoot(oldParentVNode.$elm$);
988
+ }
989
+ {
990
+ addRemoveSlotScopedClass(contentRef, elm, newParentVNode.$elm$, oldParentVNode == null ? void 0 : oldParentVNode.$elm$);
991
+ }
992
+ }
993
+ }
994
+ return elm;
995
+ };
996
+ var relocateToHostRoot = (parentElm) => {
997
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
998
+ const host = parentElm.closest(hostTagName.toLowerCase());
999
+ if (host != null) {
1000
+ const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
1001
+ (ref) => ref["s-cr"]
1002
+ );
1003
+ const childNodeArray = Array.from(
1004
+ parentElm.__childNodes || parentElm.childNodes
1005
+ );
1006
+ for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
1007
+ if (childNode["s-sh"] != null) {
1008
+ insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
1009
+ childNode["s-sh"] = void 0;
1010
+ checkSlotRelocate = true;
1011
+ }
1012
+ }
1013
+ }
1014
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
1015
+ };
1016
+ var putBackInOriginalLocation = (parentElm, recursive) => {
1017
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
1018
+ const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
1019
+ if (parentElm["s-sr"]) {
1020
+ let node = parentElm;
1021
+ while (node = node.nextSibling) {
1022
+ if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
1023
+ oldSlotChildNodes.push(node);
1024
+ }
1025
+ }
1026
+ }
1027
+ for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
1028
+ const childNode = oldSlotChildNodes[i2];
1029
+ if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
1030
+ insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
1031
+ childNode["s-ol"].remove();
1032
+ childNode["s-ol"] = void 0;
1033
+ childNode["s-sh"] = void 0;
1034
+ checkSlotRelocate = true;
1035
+ }
1036
+ if (recursive) {
1037
+ putBackInOriginalLocation(childNode, recursive);
1038
+ }
1039
+ }
1040
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
1041
+ };
1042
+ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
1043
+ let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
1044
+ let childNode;
1045
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
1046
+ containerElm = containerElm.shadowRoot;
1047
+ }
1048
+ if (parentVNode.$tag$ === "template") {
1049
+ containerElm = containerElm.content;
1050
+ }
1051
+ for (; startIdx <= endIdx; ++startIdx) {
1052
+ if (vnodes[startIdx]) {
1053
+ childNode = createElm(null, parentVNode, startIdx);
1054
+ if (childNode) {
1055
+ vnodes[startIdx].$elm$ = childNode;
1056
+ insertBefore(containerElm, childNode, referenceNode(before) );
1057
+ }
1058
+ }
1059
+ }
1060
+ };
1061
+ var removeVnodes = (vnodes, startIdx, endIdx) => {
1062
+ for (let index = startIdx; index <= endIdx; ++index) {
1063
+ const vnode = vnodes[index];
1064
+ if (vnode) {
1065
+ const elm = vnode.$elm$;
1066
+ nullifyVNodeRefs(vnode);
1067
+ if (elm) {
1068
+ {
1069
+ checkSlotFallbackVisibility = true;
1070
+ if (elm["s-ol"]) {
1071
+ elm["s-ol"].remove();
1072
+ } else {
1073
+ putBackInOriginalLocation(elm, true);
1074
+ }
1075
+ }
1076
+ elm.remove();
1077
+ }
1078
+ }
1079
+ }
1080
+ };
1081
+ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
1082
+ let oldStartIdx = 0;
1083
+ let newStartIdx = 0;
1084
+ let idxInOld = 0;
1085
+ let i2 = 0;
1086
+ let oldEndIdx = oldCh.length - 1;
1087
+ let oldStartVnode = oldCh[0];
1088
+ let oldEndVnode = oldCh[oldEndIdx];
1089
+ let newEndIdx = newCh.length - 1;
1090
+ let newStartVnode = newCh[0];
1091
+ let newEndVnode = newCh[newEndIdx];
1092
+ let node;
1093
+ let elmToMove;
1094
+ const containerElm = newVNode2.$tag$ === "template" ? parentElm.content : parentElm;
1095
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
1096
+ if (oldStartVnode == null) {
1097
+ oldStartVnode = oldCh[++oldStartIdx];
1098
+ } else if (oldEndVnode == null) {
1099
+ oldEndVnode = oldCh[--oldEndIdx];
1100
+ } else if (newStartVnode == null) {
1101
+ newStartVnode = newCh[++newStartIdx];
1102
+ } else if (newEndVnode == null) {
1103
+ newEndVnode = newCh[--newEndIdx];
1104
+ } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
1105
+ patch(oldStartVnode, newStartVnode, isInitialRender);
1106
+ oldStartVnode = oldCh[++oldStartIdx];
1107
+ newStartVnode = newCh[++newStartIdx];
1108
+ } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
1109
+ patch(oldEndVnode, newEndVnode, isInitialRender);
1110
+ oldEndVnode = oldCh[--oldEndIdx];
1111
+ newEndVnode = newCh[--newEndIdx];
1112
+ } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
1113
+ if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
1114
+ putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
1115
+ }
1116
+ patch(oldStartVnode, newEndVnode, isInitialRender);
1117
+ insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
1118
+ oldStartVnode = oldCh[++oldStartIdx];
1119
+ newEndVnode = newCh[--newEndIdx];
1120
+ } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
1121
+ if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
1122
+ putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
1123
+ }
1124
+ patch(oldEndVnode, newStartVnode, isInitialRender);
1125
+ insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
1126
+ oldEndVnode = oldCh[--oldEndIdx];
1127
+ newStartVnode = newCh[++newStartIdx];
1128
+ } else {
1129
+ idxInOld = -1;
1130
+ {
1131
+ for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
1132
+ if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
1133
+ idxInOld = i2;
1134
+ break;
1135
+ }
1136
+ }
1137
+ }
1138
+ if (idxInOld >= 0) {
1139
+ elmToMove = oldCh[idxInOld];
1140
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
1141
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
1142
+ } else {
1143
+ patch(elmToMove, newStartVnode, isInitialRender);
1144
+ oldCh[idxInOld] = void 0;
1145
+ node = elmToMove.$elm$;
1146
+ }
1147
+ newStartVnode = newCh[++newStartIdx];
1148
+ } else {
1149
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
1150
+ newStartVnode = newCh[++newStartIdx];
1151
+ }
1152
+ if (node) {
1153
+ {
1154
+ insertBefore(
1155
+ referenceNode(oldStartVnode.$elm$).parentNode,
1156
+ node,
1157
+ referenceNode(oldStartVnode.$elm$)
1158
+ );
1159
+ }
1160
+ }
1161
+ }
1162
+ }
1163
+ if (oldStartIdx > oldEndIdx) {
1164
+ addVnodes(
1165
+ parentElm,
1166
+ newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
1167
+ newVNode2,
1168
+ newCh,
1169
+ newStartIdx,
1170
+ newEndIdx
1171
+ );
1172
+ } else if (newStartIdx > newEndIdx) {
1173
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
1174
+ }
1175
+ };
1176
+ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
1177
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
1178
+ if (leftVNode.$tag$ === "slot") {
1179
+ return leftVNode.$name$ === rightVNode.$name$;
1180
+ }
1181
+ if (!isInitialRender) {
1182
+ return leftVNode.$key$ === rightVNode.$key$;
1183
+ }
1184
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
1185
+ leftVNode.$key$ = rightVNode.$key$;
1186
+ }
1187
+ return true;
1188
+ }
1189
+ return false;
1190
+ };
1191
+ var referenceNode = (node) => node && node["s-ol"] || node;
1192
+ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1193
+ const elm = newVNode2.$elm$ = oldVNode.$elm$;
1194
+ const oldChildren = oldVNode.$children$;
1195
+ const newChildren = newVNode2.$children$;
1196
+ const tag = newVNode2.$tag$;
1197
+ const text = newVNode2.$text$;
1198
+ let defaultHolder;
1199
+ if (text == null) {
1200
+ {
1201
+ isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
1202
+ }
1203
+ {
1204
+ if (tag === "slot" && !useNativeShadowDom) {
1205
+ if (oldVNode.$name$ !== newVNode2.$name$) {
1206
+ newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
1207
+ relocateToHostRoot(newVNode2.$elm$.parentElement);
1208
+ }
1209
+ }
1210
+ updateElement(oldVNode, newVNode2, isSvgMode);
1211
+ }
1212
+ if (oldChildren !== null && newChildren !== null) {
1213
+ updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
1214
+ } else if (newChildren !== null) {
1215
+ if (oldVNode.$text$ !== null) {
1216
+ elm.textContent = "";
1217
+ }
1218
+ addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
1219
+ } else if (
1220
+ // don't do this on initial render as it can cause non-hydrated content to be removed
1221
+ !isInitialRender && BUILD.updatable && oldChildren !== null
1222
+ ) {
1223
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
1224
+ } else ;
1225
+ if (isSvgMode && tag === "svg") {
1226
+ isSvgMode = false;
1227
+ }
1228
+ } else if ((defaultHolder = elm["s-cr"])) {
1229
+ defaultHolder.parentNode.textContent = text;
1230
+ } else if (oldVNode.$text$ !== text) {
1231
+ elm.data = text;
1232
+ }
1233
+ };
1234
+ var relocateNodes = [];
1235
+ var markSlotContentForRelocation = (elm) => {
1236
+ let node;
1237
+ let hostContentNodes;
1238
+ let j;
1239
+ const children = elm.__childNodes || elm.childNodes;
1240
+ for (const childNode of children) {
1241
+ if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
1242
+ hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
1243
+ const slotName = childNode["s-sn"];
1244
+ for (j = hostContentNodes.length - 1; j >= 0; j--) {
1245
+ node = hostContentNodes[j];
1246
+ if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && // let an exact named-slot match override a stale default-slot claim. Skip this for
1247
+ // `slotName === ''` itself - a matched default node's cached `s-sn` is `''` too, which
1248
+ // would trivially "match" on every re-render and force pointless re-insertion.
1249
+ (!node["s-sh"] || node["s-sh"] !== childNode["s-hn"] || slotName !== "" && getSlotName(node) === slotName)) {
1250
+ if (isNodeLocatedInSlot(node, slotName)) {
1251
+ let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1252
+ checkSlotFallbackVisibility = true;
1253
+ node["s-sn"] = node["s-sn"] || slotName;
1254
+ if (relocateNodeData) {
1255
+ relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
1256
+ relocateNodeData.$slotRefNode$ = childNode;
1257
+ } else {
1258
+ node["s-sh"] = childNode["s-hn"];
1259
+ relocateNodes.push({
1260
+ $slotRefNode$: childNode,
1261
+ $nodeToRelocate$: node
1262
+ });
1263
+ }
1264
+ if (node["s-sr"]) {
1265
+ relocateNodes.map((relocateNode) => {
1266
+ if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
1267
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1268
+ if (relocateNodeData && !relocateNode.$slotRefNode$) {
1269
+ relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
1270
+ }
1271
+ }
1272
+ });
1273
+ }
1274
+ } else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
1275
+ relocateNodes.push({
1276
+ $nodeToRelocate$: node
1277
+ });
1278
+ }
1279
+ }
1280
+ }
1281
+ }
1282
+ if (childNode.nodeType === 1 /* ElementNode */) {
1283
+ markSlotContentForRelocation(childNode);
1284
+ }
1285
+ }
1286
+ };
1287
+ var nullifyVNodeRefs = (vNode) => {
1288
+ {
1289
+ if (vNode.$attrs$ && vNode.$attrs$.ref) {
1290
+ refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));
1291
+ }
1292
+ vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1293
+ }
1294
+ };
1295
+ var queueRefAttachment = (refCallback, elm) => {
1296
+ {
1297
+ refCallbacksToAttach.push(() => refCallback(elm));
1298
+ }
1299
+ };
1300
+ var flushQueuedRefCallbacks = () => {
1301
+ {
1302
+ refCallbacksToRemove.forEach((cb) => cb());
1303
+ refCallbacksToRemove.length = 0;
1304
+ refCallbacksToAttach.forEach((cb) => cb());
1305
+ refCallbacksToAttach.length = 0;
1306
+ }
1307
+ };
1308
+ var insertBefore = (parent, newNode, reference, isInitialLoad) => {
1309
+ {
1310
+ if (typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) {
1311
+ addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
1312
+ } else if (typeof newNode["s-sn"] === "string") {
1313
+ parent.insertBefore(newNode, reference);
1314
+ const { slotNode } = findSlotFromSlottedNode(newNode);
1315
+ if (slotNode && !isInitialLoad) dispatchSlotChangeEvent(slotNode);
1316
+ return newNode;
1317
+ }
1318
+ }
1319
+ if ((parent == null ? void 0 : parent.__insertBefore)) {
1320
+ return parent.__insertBefore(newNode, reference);
1321
+ } else {
1322
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
1323
+ }
1324
+ };
1325
+ function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
1326
+ var _a, _b;
1327
+ let scopeId2;
1328
+ if (reference && typeof slotNode["s-sn"] === "string" && !!slotNode["s-sr"] && reference.parentNode && reference.parentNode["s-sc"] && (scopeId2 = slotNode["s-si"] || reference.parentNode["s-sc"])) {
1329
+ const scopeName = slotNode["s-sn"];
1330
+ const hostName = slotNode["s-hn"];
1331
+ (_a = newParent.classList) == null ? void 0 : _a.add(scopeId2 + "-s");
1332
+ if (oldParent && ((_b = oldParent.classList) == null ? void 0 : _b.contains(scopeId2 + "-s"))) {
1333
+ let child = (oldParent.__childNodes || oldParent.childNodes)[0];
1334
+ let found = false;
1335
+ while (child) {
1336
+ if (child["s-sn"] !== scopeName && child["s-hn"] === hostName && !!child["s-sr"]) {
1337
+ found = true;
1338
+ break;
1339
+ }
1340
+ child = child.nextSibling;
1341
+ }
1342
+ if (!found) oldParent.classList.remove(scopeId2 + "-s");
1343
+ }
1344
+ }
1345
+ }
1346
+ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1347
+ var _a, _b, _c, _d, _e;
1348
+ const hostElm = hostRef.$hostElement$;
1349
+ const cmpMeta = hostRef.$cmpMeta$;
1350
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1351
+ const isHostElement = isHost(renderFnResults);
1352
+ const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
1353
+ hostTagName = hostElm.tagName;
1354
+ if (cmpMeta.$attrsToReflect$) {
1355
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1356
+ cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
1357
+ {
1358
+ rootVnode.$attrs$[attribute] = hostElm[propName];
1359
+ }
1360
+ });
1361
+ }
1362
+ if (isInitialLoad && rootVnode.$attrs$) {
1363
+ for (const key of Object.keys(rootVnode.$attrs$)) {
1364
+ if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
1365
+ rootVnode.$attrs$[key] = hostElm[key];
1366
+ }
1367
+ }
1368
+ }
1369
+ rootVnode.$tag$ = null;
1370
+ rootVnode.$flags$ |= 4 /* isHost */;
1371
+ hostRef.$vnode$ = rootVnode;
1372
+ rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
1373
+ {
1374
+ scopeId = hostElm["s-sc"];
1375
+ }
1376
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
1377
+ {
1378
+ contentRef = hostElm["s-cr"];
1379
+ checkSlotFallbackVisibility = false;
1380
+ }
1381
+ patch(oldVNode, rootVnode, isInitialLoad);
1382
+ {
1383
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
1384
+ if (checkSlotRelocate) {
1385
+ markSlotContentForRelocation(rootVnode.$elm$);
1386
+ for (const relocateData of relocateNodes) {
1387
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
1388
+ if (!nodeToRelocate["s-ol"] && win.document) {
1389
+ const orgLocationNode = win.document.createTextNode("");
1390
+ orgLocationNode["s-nr"] = nodeToRelocate;
1391
+ insertBefore(
1392
+ nodeToRelocate.parentNode,
1393
+ nodeToRelocate["s-ol"] = orgLocationNode,
1394
+ nodeToRelocate,
1395
+ isInitialLoad
1396
+ );
1397
+ }
1398
+ }
1399
+ for (const relocateData of relocateNodes) {
1400
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
1401
+ const slotRefNode = relocateData.$slotRefNode$;
1402
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */ && isInitialLoad) {
1403
+ nodeToRelocate["s-ih"] = (_a = nodeToRelocate.hidden) != null ? _a : false;
1404
+ }
1405
+ if (slotRefNode) {
1406
+ const parentNodeRef = slotRefNode.parentNode;
1407
+ let insertBeforeNode = slotRefNode.nextSibling;
1408
+ if (insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */) {
1409
+ let orgLocationNode = (_b = nodeToRelocate["s-ol"]) == null ? void 0 : _b.previousSibling;
1410
+ while (orgLocationNode) {
1411
+ let refNode = (_c = orgLocationNode["s-nr"]) != null ? _c : null;
1412
+ if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
1413
+ refNode = refNode.nextSibling;
1414
+ while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
1415
+ refNode = refNode == null ? void 0 : refNode.nextSibling;
1416
+ }
1417
+ if (!refNode || !refNode["s-nr"]) {
1418
+ insertBeforeNode = refNode;
1419
+ break;
1420
+ }
1421
+ }
1422
+ orgLocationNode = orgLocationNode.previousSibling;
1423
+ }
1424
+ }
1425
+ const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;
1426
+ const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
1427
+ if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
1428
+ if (nodeToRelocate !== insertBeforeNode) {
1429
+ insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode, isInitialLoad);
1430
+ if (nodeToRelocate.nodeType === 8 /* CommentNode */ && nodeToRelocate.nodeValue.startsWith("s-nt-")) {
1431
+ const textNode = win.document.createTextNode(nodeToRelocate.nodeValue.replace(/^s-nt-/, ""));
1432
+ textNode["s-hn"] = nodeToRelocate["s-hn"];
1433
+ textNode["s-sn"] = nodeToRelocate["s-sn"];
1434
+ textNode["s-sh"] = nodeToRelocate["s-sh"];
1435
+ textNode["s-sr"] = nodeToRelocate["s-sr"];
1436
+ textNode["s-ol"] = nodeToRelocate["s-ol"];
1437
+ textNode["s-ol"]["s-nr"] = textNode;
1438
+ insertBefore(nodeToRelocate.parentNode, textNode, nodeToRelocate, isInitialLoad);
1439
+ nodeToRelocate.parentNode.removeChild(nodeToRelocate);
1440
+ }
1441
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
1442
+ nodeToRelocate.hidden = (_d = nodeToRelocate["s-ih"]) != null ? _d : false;
1443
+ }
1444
+ }
1445
+ }
1446
+ nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
1447
+ } else if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1448
+ nodeToRelocate.hidden = true;
1449
+ }
1450
+ }
1451
+ }
1452
+ if (checkSlotFallbackVisibility) {
1453
+ updateFallbackSlotVisibility(rootVnode.$elm$);
1454
+ }
1455
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
1456
+ relocateNodes.length = 0;
1457
+ }
1458
+ if (!useNativeShadowDom && !(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && hostElm["s-cr"]) {
1459
+ const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
1460
+ for (const childNode of children) {
1461
+ if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
1462
+ if (isInitialLoad && childNode["s-ih"] == null) {
1463
+ childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
1464
+ }
1465
+ if (childNode.nodeType === 1 /* ElementNode */) {
1466
+ childNode.hidden = true;
1467
+ } else if (childNode.nodeType === 3 /* TextNode */ && !!childNode.nodeValue.trim()) {
1468
+ const textCommentNode = win.document.createComment("s-nt-" + childNode.nodeValue);
1469
+ textCommentNode["s-sn"] = childNode["s-sn"];
1470
+ insertBefore(childNode.parentNode, textCommentNode, childNode, isInitialLoad);
1471
+ childNode.parentNode.removeChild(childNode);
1472
+ }
1473
+ }
1474
+ }
1475
+ }
1476
+ contentRef = void 0;
1477
+ flushQueuedRefCallbacks();
1478
+ };
1479
+
1480
+ // src/runtime/update-component.ts
1481
+ var attachToAncestor = (hostRef, ancestorComponent) => {
1482
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
1483
+ const index = ancestorComponent["s-p"].push(
1484
+ new Promise(
1485
+ (r) => hostRef.$onRenderResolve$ = () => {
1486
+ ancestorComponent["s-p"].splice(index - 1, 1);
1487
+ r();
1488
+ }
1489
+ )
1490
+ );
1491
+ }
1492
+ };
1493
+ var scheduleUpdate = (hostRef, isInitialLoad) => {
1494
+ {
1495
+ hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1496
+ }
1497
+ if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
1498
+ hostRef.$flags$ |= 512 /* needsRerender */;
1499
+ return;
1500
+ }
1501
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1502
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1503
+ if (isInitialLoad) {
1504
+ queueMicrotask(() => {
1505
+ dispatch();
1506
+ });
1507
+ return;
1508
+ }
1509
+ return writeTask(dispatch) ;
1510
+ };
1511
+ var dispatchHooks = (hostRef, isInitialLoad) => {
1512
+ const elm = hostRef.$hostElement$;
1513
+ const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
1514
+ const instance = hostRef.$lazyInstance$ ;
1515
+ if (!instance) {
1516
+ throw new Error(
1517
+ `Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
1518
+ );
1519
+ }
1520
+ let maybePromise;
1521
+ if (isInitialLoad) {
1522
+ {
1523
+ if (hostRef.$deferredConnectedCallback$) {
1524
+ hostRef.$deferredConnectedCallback$ = false;
1525
+ safeCall(instance, "connectedCallback", void 0, elm);
1526
+ }
1527
+ {
1528
+ hostRef.$flags$ |= 256 /* isListenReady */;
1529
+ if (hostRef.$queuedListeners$) {
1530
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
1531
+ hostRef.$queuedListeners$ = void 0;
1532
+ }
1533
+ }
1534
+ if (hostRef.$fetchedCbList$.length) {
1535
+ hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
1536
+ }
1537
+ }
1538
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
1539
+ } else {
1540
+ maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
1541
+ }
1542
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
1543
+ endSchedule();
1544
+ return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
1545
+ };
1546
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
1547
+ console.error(err);
1548
+ fn();
1549
+ }) : fn();
1550
+ var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
1551
+ var updateComponent = async (hostRef, instance, isInitialLoad) => {
1552
+ var _a;
1553
+ const elm = hostRef.$hostElement$;
1554
+ const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
1555
+ const rc = elm["s-rc"];
1556
+ if (isInitialLoad) {
1557
+ attachStyles(hostRef);
1558
+ }
1559
+ const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
1560
+ {
1561
+ callRender(hostRef, instance, elm, isInitialLoad);
1562
+ }
1563
+ if (rc) {
1564
+ rc.map((cb) => cb());
1565
+ elm["s-rc"] = void 0;
1566
+ }
1567
+ endRender();
1568
+ endUpdate();
1569
+ {
1570
+ const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
1571
+ const postUpdate = () => postUpdateComponent(hostRef);
1572
+ if (childrenPromises.length === 0) {
1573
+ postUpdate();
1574
+ } else {
1575
+ Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
1576
+ hostRef.$flags$ |= 4 /* isWaitingForChildren */;
1577
+ childrenPromises.length = 0;
1578
+ }
1579
+ }
1580
+ };
1581
+ var callRender = (hostRef, instance, elm, isInitialLoad) => {
1582
+ try {
1583
+ instance = instance.render() ;
1584
+ {
1585
+ hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
1586
+ }
1587
+ {
1588
+ hostRef.$flags$ |= 2 /* hasRendered */;
1589
+ }
1590
+ {
1591
+ {
1592
+ {
1593
+ renderVdom(hostRef, instance, isInitialLoad);
1594
+ }
1595
+ }
1596
+ }
1597
+ } catch (e) {
1598
+ consoleError(e, hostRef.$hostElement$);
1599
+ }
1600
+ return null;
1601
+ };
1602
+ var postUpdateComponent = (hostRef) => {
1603
+ const tagName = hostRef.$cmpMeta$.$tagName$;
1604
+ const elm = hostRef.$hostElement$;
1605
+ const endPostUpdate = createTime("postUpdate", tagName);
1606
+ const instance = hostRef.$lazyInstance$ ;
1607
+ const ancestorComponent = hostRef.$ancestorComponent$;
1608
+ safeCall(instance, "componentDidRender", void 0, elm);
1609
+ if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1610
+ hostRef.$flags$ |= 64 /* hasLoadedComponent */;
1611
+ {
1612
+ addHydratedFlag(elm);
1613
+ }
1614
+ safeCall(instance, "componentDidLoad", void 0, elm);
1615
+ endPostUpdate();
1616
+ {
1617
+ hostRef.$onReadyResolve$(elm);
1618
+ if (!ancestorComponent) {
1619
+ appDidLoad();
1620
+ }
1621
+ }
1622
+ } else {
1623
+ safeCall(instance, "componentDidUpdate", void 0, elm);
1624
+ endPostUpdate();
1625
+ }
1626
+ {
1627
+ hostRef.$onInstanceResolve$(elm);
1628
+ }
1629
+ {
1630
+ if (hostRef.$onRenderResolve$) {
1631
+ hostRef.$onRenderResolve$();
1632
+ hostRef.$onRenderResolve$ = void 0;
1633
+ }
1634
+ if (hostRef.$flags$ & 512 /* needsRerender */) {
1635
+ nextTick(() => scheduleUpdate(hostRef, false));
1636
+ }
1637
+ hostRef.$flags$ &= -517;
1638
+ }
1639
+ };
1640
+ var forceUpdate = (ref) => {
1641
+ var _a;
1642
+ {
1643
+ const hostRef = getHostRef(ref);
1644
+ const isConnected = (_a = hostRef == null ? void 0 : hostRef.$hostElement$) == null ? void 0 : _a.isConnected;
1645
+ if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1646
+ scheduleUpdate(hostRef, false);
1647
+ }
1648
+ return isConnected;
1649
+ }
1650
+ };
1651
+ var appDidLoad = (who) => {
1652
+ nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
1653
+ };
1654
+ var safeCall = (instance, method, arg, elm) => {
1655
+ if (instance && instance[method]) {
1656
+ try {
1657
+ return instance[method](arg);
1658
+ } catch (e) {
1659
+ consoleError(e, elm);
1660
+ }
1661
+ }
1662
+ return void 0;
1663
+ };
1664
+ var addHydratedFlag = (elm) => {
1665
+ var _a;
1666
+ return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
1667
+ };
1668
+
1669
+ // src/runtime/set-value.ts
1670
+ var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1671
+ var setValue = (ref, propName, newVal, cmpMeta) => {
1672
+ const hostRef = getHostRef(ref);
1673
+ if (!hostRef) {
1674
+ return;
1675
+ }
1676
+ if (!hostRef) {
1677
+ throw new Error(
1678
+ `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
1679
+ );
1680
+ }
1681
+ const elm = hostRef.$hostElement$ ;
1682
+ const oldVal = hostRef.$instanceValues$.get(propName);
1683
+ const flags = hostRef.$flags$;
1684
+ const instance = hostRef.$lazyInstance$ ;
1685
+ newVal = parsePropertyValue(
1686
+ newVal,
1687
+ cmpMeta.$members$[propName][0],
1688
+ !!(cmpMeta.$flags$ & 64 /* formAssociated */)
1689
+ );
1690
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1691
+ const didValueChange = newVal !== oldVal && !areBothNaN;
1692
+ if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
1693
+ hostRef.$instanceValues$.set(propName, newVal);
1694
+ if (cmpMeta.$watchers$) {
1695
+ const watchMethods = cmpMeta.$watchers$[propName];
1696
+ if (watchMethods) {
1697
+ watchMethods.map((watcher) => {
1698
+ try {
1699
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
1700
+ if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {
1701
+ if (!instance) {
1702
+ hostRef.$fetchedCbList$.push(() => {
1703
+ hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);
1704
+ });
1705
+ } else {
1706
+ instance[watchMethodName](newVal, oldVal, propName);
1707
+ }
1708
+ }
1709
+ } catch (e) {
1710
+ consoleError(e, elm);
1711
+ }
1712
+ });
1713
+ }
1714
+ }
1715
+ if (flags & 2 /* hasRendered */) {
1716
+ if (instance.componentShouldUpdate) {
1717
+ const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
1718
+ if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
1719
+ return;
1720
+ }
1721
+ }
1722
+ if (!(flags & 16 /* isQueuedForUpdate */)) {
1723
+ scheduleUpdate(hostRef, false);
1724
+ }
1725
+ }
1726
+ }
1727
+ };
1728
+
1729
+ // src/runtime/proxy-component.ts
1730
+ var reflectedAttrValue = (propValue) => propValue == null || propValue === false ? null : propValue === true ? "" : String(propValue);
1731
+ var replayPendingSetterValues = (hostRef, cmpMeta) => {
1732
+ var _a;
1733
+ const instance = hostRef.$lazyInstance$;
1734
+ if (!instance) return;
1735
+ for (const [memberName, [memberFlags]] of Object.entries((_a = cmpMeta.$members$) != null ? _a : {})) {
1736
+ if (memberFlags & 4096 /* Setter */ && hostRef.$instanceValues$.has(memberName)) {
1737
+ const pendingValue = hostRef.$instanceValues$.get(memberName);
1738
+ if (instance[memberName] !== pendingValue) {
1739
+ instance[memberName] = pendingValue;
1740
+ }
1741
+ }
1742
+ }
1743
+ };
1744
+ var proxyComponent = (Cstr, cmpMeta, flags) => {
1745
+ var _a, _b;
1746
+ const prototype = Cstr.prototype;
1747
+ if (cmpMeta.$flags$ & 64 /* formAssociated */ && flags & 1 /* isElementConstructor */) {
1748
+ FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach((cbName) => {
1749
+ Object.defineProperty(prototype, cbName, {
1750
+ value(...args) {
1751
+ var _a2;
1752
+ const hostRef = getHostRef(this);
1753
+ const instance = hostRef == null ? void 0 : hostRef.$lazyInstance$ ;
1754
+ if (!instance) {
1755
+ (_a2 = hostRef == null ? void 0 : hostRef.$onReadyPromise$) == null ? void 0 : _a2.then((asyncInstance) => {
1756
+ const cb = asyncInstance[cbName];
1757
+ typeof cb === "function" && cb.call(asyncInstance, ...args);
1758
+ });
1759
+ } else {
1760
+ const cb = instance[cbName] ;
1761
+ typeof cb === "function" && cb.call(instance, ...args);
1762
+ }
1763
+ }
1764
+ });
1765
+ });
1766
+ }
1767
+ if (cmpMeta.$members$ || BUILD.propChangeCallback) {
1768
+ {
1769
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
1770
+ cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
1771
+ }
1772
+ if (Cstr.deserializers && !cmpMeta.$deserializers$) {
1773
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1774
+ }
1775
+ if (Cstr.serializers && !cmpMeta.$serializers$) {
1776
+ cmpMeta.$serializers$ = Cstr.serializers;
1777
+ }
1778
+ }
1779
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1780
+ members.map(([memberName, [memberFlags]]) => {
1781
+ if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1782
+ const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
1783
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1784
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1785
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
1786
+ Object.defineProperty(prototype, memberName, {
1787
+ get() {
1788
+ {
1789
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1790
+ return getValue(this, memberName);
1791
+ }
1792
+ const ref = getHostRef(this);
1793
+ if (!ref) return prototype[memberName];
1794
+ return ref.$lazyInstance$ ? ref.$lazyInstance$[memberName] : getValue(this, memberName);
1795
+ }
1796
+ },
1797
+ configurable: true,
1798
+ enumerable: true
1799
+ });
1800
+ }
1801
+ Object.defineProperty(prototype, memberName, {
1802
+ set(newValue) {
1803
+ const ref = getHostRef(this);
1804
+ if (!ref) {
1805
+ return;
1806
+ }
1807
+ if (origSetter) {
1808
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1809
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1810
+ newValue = ref.$instanceValues$.get(memberName);
1811
+ }
1812
+ origSetter.apply(this, [
1813
+ parsePropertyValue(
1814
+ newValue,
1815
+ memberFlags,
1816
+ !!(cmpMeta.$flags$ & 64 /* formAssociated */)
1817
+ )
1818
+ ]);
1819
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1820
+ setValue(this, memberName, newValue, cmpMeta);
1821
+ return;
1822
+ }
1823
+ {
1824
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1825
+ setValue(this, memberName, newValue, cmpMeta);
1826
+ return;
1827
+ }
1828
+ const parsedValue = parsePropertyValue(
1829
+ newValue,
1830
+ memberFlags,
1831
+ !!(cmpMeta.$flags$ & 64 /* formAssociated */)
1832
+ );
1833
+ if (ref.$lazyInstance$) {
1834
+ const currentValue = ref.$lazyInstance$[memberName];
1835
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1836
+ ref.$instanceValues$.set(memberName, currentValue);
1837
+ }
1838
+ ref.$lazyInstance$[memberName] = parsedValue;
1839
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1840
+ } else {
1841
+ ref.$instanceValues$.set(memberName, parsedValue);
1842
+ }
1843
+ }
1844
+ }
1845
+ });
1846
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
1847
+ Object.defineProperty(prototype, memberName, {
1848
+ value(...args) {
1849
+ var _a2;
1850
+ const ref = getHostRef(this);
1851
+ return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
1852
+ var _a3;
1853
+ return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
1854
+ });
1855
+ }
1856
+ });
1857
+ }
1858
+ });
1859
+ if ((flags & 1 /* isElementConstructor */)) {
1860
+ const attrNameToPropName = /* @__PURE__ */ new Map();
1861
+ prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
1862
+ plt.jmp(() => {
1863
+ var _a2;
1864
+ const propName = attrNameToPropName.get(attrName);
1865
+ const hostRef = getHostRef(this);
1866
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1867
+ newValue = this[propName];
1868
+ delete this[propName];
1869
+ }
1870
+ if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1871
+ this[propName] == newValue) {
1872
+ return;
1873
+ } else if (propName == null) {
1874
+ const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1875
+ if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
1876
+ const instance = hostRef.$lazyInstance$ ;
1877
+ const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1878
+ entry == null ? void 0 : entry.forEach((watcher) => {
1879
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
1880
+ if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
1881
+ instance[watchMethodName].call(instance, newValue, oldValue, attrName);
1882
+ }
1883
+ });
1884
+ }
1885
+ return;
1886
+ }
1887
+ const propFlags = members.find(([m]) => m === propName);
1888
+ const propMemberFlags = propFlags ? propFlags[1][0] : 0;
1889
+ const isBooleanTarget = propMemberFlags & 4 /* Boolean */;
1890
+ if (propMemberFlags & 512 /* ReflectAttr */ && propMemberFlags & 8 /* Any */ && // a complex value is never written to an attribute, so a change while the prop holds
1891
+ // one is always external
1892
+ !isComplexType(this[propName]) && reflectedAttrValue(this[propName]) === newValue) {
1893
+ return;
1894
+ }
1895
+ const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
1896
+ if (isBooleanTarget) {
1897
+ const isFormAssociated = !!(cmpMeta.$flags$ & 64 /* formAssociated */);
1898
+ newValue = newValue === null || newValue === "false" && !isFormAssociated ? false : true;
1899
+ }
1900
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1901
+ if (!isSpuriousBooleanRemoval && newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
1902
+ this[propName] = newValue;
1903
+ }
1904
+ });
1905
+ };
1906
+ Cstr.observedAttributes = Array.from(
1907
+ /* @__PURE__ */ new Set([
1908
+ ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1909
+ ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
1910
+ var _a2;
1911
+ const attrName = m[1] || propName;
1912
+ attrNameToPropName.set(attrName, propName);
1913
+ if (m[0] & 512 /* ReflectAttr */) {
1914
+ (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
1915
+ }
1916
+ return attrName;
1917
+ })
1918
+ ])
1919
+ );
1920
+ }
1921
+ }
1922
+ return Cstr;
1923
+ };
1924
+
1925
+ // src/runtime/initialize-component.ts
1926
+ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1927
+ var _a;
1928
+ let Cstr;
1929
+ try {
1930
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1931
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1932
+ hostRef.$flags$ &= -1025 /* hasFailedLoad */;
1933
+ const bundleId = cmpMeta.$lazyBundleId$;
1934
+ if (bundleId) {
1935
+ const CstrImport = loadModule(cmpMeta, hostRef);
1936
+ if (CstrImport && "then" in CstrImport) {
1937
+ const endLoad = uniqueTime();
1938
+ Cstr = await CstrImport;
1939
+ endLoad();
1940
+ } else {
1941
+ Cstr = CstrImport;
1942
+ }
1943
+ if (!Cstr) {
1944
+ hostRef.$flags$ &= -33 /* hasInitializedComponent */;
1945
+ hostRef.$loadRetryCount$ = ((_a = hostRef.$loadRetryCount$) != null ? _a : 0) + 1;
1946
+ if (hostRef.$loadRetryCount$ < MAX_LAZY_LOAD_RETRIES) {
1947
+ hostRef.$flags$ |= 1024 /* hasFailedLoad */;
1948
+ }
1949
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1950
+ }
1951
+ if (!Cstr.isProxied) {
1952
+ {
1953
+ cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
1954
+ cmpMeta.$serializers$ = Cstr.serializers;
1955
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1956
+ }
1957
+ proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1958
+ Cstr.isProxied = true;
1959
+ }
1960
+ const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
1961
+ {
1962
+ hostRef.$flags$ |= 8 /* isConstructingInstance */;
1963
+ }
1964
+ try {
1965
+ new Cstr(hostRef);
1966
+ } catch (e) {
1967
+ consoleError(e, elm);
1968
+ }
1969
+ {
1970
+ hostRef.$flags$ &= -9 /* isConstructingInstance */;
1971
+ replayPendingSetterValues(hostRef, cmpMeta);
1972
+ }
1973
+ {
1974
+ hostRef.$flags$ |= 128 /* isWatchReady */;
1975
+ }
1976
+ endNewInstance();
1977
+ const needsDeferredCallback = cmpMeta.$flags$ & 4 /* hasSlotRelocation */;
1978
+ if (!needsDeferredCallback) {
1979
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1980
+ } else {
1981
+ hostRef.$deferredConnectedCallback$ = true;
1982
+ }
1983
+ } else {
1984
+ Cstr = elm.constructor;
1985
+ const cmpTag = elm.localName;
1986
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1987
+ }
1988
+ if (Cstr && Cstr.style) {
1989
+ let style;
1990
+ if (typeof Cstr.style === "string") {
1991
+ style = Cstr.style;
1992
+ }
1993
+ const scopeId2 = getScopeId(cmpMeta);
1994
+ if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
1995
+ const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
1996
+ registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1997
+ endRegisterStyles();
1998
+ }
1999
+ }
2000
+ }
2001
+ const ancestorComponent = hostRef.$ancestorComponent$;
2002
+ const schedule = () => scheduleUpdate(hostRef, true);
2003
+ if (ancestorComponent && ancestorComponent["s-rc"]) {
2004
+ ancestorComponent["s-rc"].push(schedule);
2005
+ } else {
2006
+ schedule();
2007
+ }
2008
+ } catch (e) {
2009
+ consoleError(e, elm);
2010
+ if (hostRef.$onRenderResolve$) {
2011
+ hostRef.$onRenderResolve$();
2012
+ hostRef.$onRenderResolve$ = void 0;
2013
+ }
2014
+ if (hostRef.$onReadyResolve$ && !(hostRef.$flags$ & 1024 /* hasFailedLoad */)) {
2015
+ hostRef.$onReadyResolve$(elm);
2016
+ }
2017
+ }
2018
+ };
2019
+ var fireConnectedCallback = (instance, elm) => {
2020
+ {
2021
+ safeCall(instance, "connectedCallback", void 0, elm);
2022
+ }
2023
+ };
2024
+
2025
+ // src/runtime/connected-callback.ts
2026
+ var connectedCallback = (elm) => {
2027
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2028
+ const hostRef = getHostRef(elm);
2029
+ if (!hostRef) {
2030
+ return;
2031
+ }
2032
+ const cmpMeta = hostRef.$cmpMeta$;
2033
+ const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
2034
+ if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
2035
+ hostRef.$flags$ |= 1 /* hasConnected */;
2036
+ {
2037
+ if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
2038
+ cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
2039
+ setContentReference(elm);
2040
+ }
2041
+ }
2042
+ {
2043
+ let ancestorComponent = elm;
2044
+ while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
2045
+ if (ancestorComponent["s-p"]) {
2046
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
2047
+ break;
2048
+ }
2049
+ }
2050
+ }
2051
+ if (cmpMeta.$members$) {
2052
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
2053
+ if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
2054
+ const value = elm[memberName];
2055
+ delete elm[memberName];
2056
+ elm[memberName] = value;
2057
+ }
2058
+ });
2059
+ }
2060
+ {
2061
+ initializeComponent(elm, hostRef, cmpMeta);
2062
+ }
2063
+ } else {
2064
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
2065
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
2066
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
2067
+ } else if (hostRef.$flags$ & 1024 /* hasFailedLoad */) {
2068
+ setTimeout(() => initializeComponent(elm, hostRef, cmpMeta), LAZY_LOAD_RETRY_INTERVAL_MS);
2069
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
2070
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
2071
+ }
2072
+ }
2073
+ endConnected();
2074
+ }
2075
+ };
2076
+ var setContentReference = (elm) => {
2077
+ if (!win.document) {
2078
+ return;
2079
+ }
2080
+ const contentRefElm = elm["s-cr"] = win.document.createComment(
2081
+ ""
2082
+ );
2083
+ contentRefElm["s-cn"] = true;
2084
+ insertBefore(elm, contentRefElm, elm.firstChild);
2085
+ };
2086
+ var disconnectInstance = (instance, elm) => {
2087
+ {
2088
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
2089
+ }
2090
+ };
2091
+ var disconnectedCallback = async (elm) => {
2092
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2093
+ const hostRef = getHostRef(elm);
2094
+ {
2095
+ if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
2096
+ hostRef.$rmListeners$.map((rmListener) => rmListener());
2097
+ hostRef.$rmListeners$ = void 0;
2098
+ }
2099
+ }
2100
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
2101
+ disconnectInstance(hostRef.$lazyInstance$, elm);
2102
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
2103
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
2104
+ }
2105
+ }
2106
+ if (rootAppliedStyles.has(elm)) {
2107
+ rootAppliedStyles.delete(elm);
2108
+ }
2109
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
2110
+ rootAppliedStyles.delete(elm.shadowRoot);
2111
+ }
2112
+ };
2113
+
2114
+ // src/runtime/bootstrap-lazy.ts
2115
+ var bootstrapLazy = (lazyBundles, options = {}) => {
2116
+ var _a;
2117
+ if (!win.document) {
2118
+ console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
2119
+ return;
2120
+ }
2121
+ const endBootstrap = createTime();
2122
+ const cmpTags = [];
2123
+ const exclude = options.exclude || [];
2124
+ const customElements2 = win.customElements;
2125
+ const head = win.document.head;
2126
+ const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
2127
+ const dataStyles = /* @__PURE__ */ win.document.createElement("style");
2128
+ const deferredConnectedCallbacks = [];
2129
+ let appLoadFallback;
2130
+ let isBootstrapping = true;
2131
+ Object.assign(plt, options);
2132
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
2133
+ let hasSlotRelocation = false;
2134
+ lazyBundles.map((lazyBundle) => {
2135
+ lazyBundle[1].map((compactMeta) => {
2136
+ var _a2, _b;
2137
+ const cmpMeta = {
2138
+ $flags$: compactMeta[0],
2139
+ $tagName$: compactMeta[1],
2140
+ $members$: compactMeta[2],
2141
+ $listeners$: compactMeta[3]
2142
+ };
2143
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
2144
+ hasSlotRelocation = true;
2145
+ }
2146
+ {
2147
+ cmpMeta.$members$ = compactMeta[2];
2148
+ }
2149
+ {
2150
+ cmpMeta.$listeners$ = compactMeta[3];
2151
+ }
2152
+ {
2153
+ cmpMeta.$attrsToReflect$ = [];
2154
+ }
2155
+ {
2156
+ cmpMeta.$watchers$ = normalizeWatchers(compactMeta[4]);
2157
+ cmpMeta.$serializers$ = (_a2 = compactMeta[5]) != null ? _a2 : {};
2158
+ cmpMeta.$deserializers$ = (_b = compactMeta[6]) != null ? _b : {};
2159
+ }
2160
+ const tagName = transformTag(cmpMeta.$tagName$);
2161
+ const HostElement = class extends HTMLElement {
2162
+ ["s-p"];
2163
+ ["s-rc"];
2164
+ hasRegisteredEventListeners = false;
2165
+ // StencilLazyHost
2166
+ constructor(self) {
2167
+ super(self);
2168
+ self = this;
2169
+ registerHost(self, cmpMeta);
2170
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2171
+ {
2172
+ if (!self.shadowRoot) {
2173
+ createShadowRoot.call(self, cmpMeta);
2174
+ } else {
2175
+ if (self.shadowRoot.mode !== "open") {
2176
+ throw new Error(
2177
+ `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
2178
+ );
2179
+ }
2180
+ }
2181
+ }
2182
+ }
2183
+ }
2184
+ connectedCallback() {
2185
+ const hostRef = getHostRef(this);
2186
+ if (!hostRef) {
2187
+ return;
2188
+ }
2189
+ if (!this.hasRegisteredEventListeners) {
2190
+ this.hasRegisteredEventListeners = true;
2191
+ addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
2192
+ }
2193
+ if (appLoadFallback) {
2194
+ clearTimeout(appLoadFallback);
2195
+ appLoadFallback = null;
2196
+ }
2197
+ if (isBootstrapping) {
2198
+ deferredConnectedCallbacks.push(this);
2199
+ } else {
2200
+ plt.jmp(() => connectedCallback(this));
2201
+ }
2202
+ }
2203
+ disconnectedCallback() {
2204
+ plt.jmp(() => disconnectedCallback(this));
2205
+ nextTick(() => {
2206
+ var _a3;
2207
+ const hostRef = getHostRef(this);
2208
+ if (!hostRef) {
2209
+ return;
2210
+ }
2211
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
2212
+ if (i2 > -1) {
2213
+ deferredConnectedCallbacks.splice(i2, 1);
2214
+ }
2215
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
2216
+ delete hostRef.$vnode$.$elm$;
2217
+ }
2218
+ });
2219
+ }
2220
+ componentOnReady() {
2221
+ var _a3;
2222
+ return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
2223
+ }
2224
+ };
2225
+ if (cmpMeta.$flags$ & 64 /* formAssociated */) {
2226
+ HostElement.formAssociated = true;
2227
+ }
2228
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
2229
+ if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
2230
+ cmpTags.push(tagName);
2231
+ customElements2.define(
2232
+ tagName,
2233
+ proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
2234
+ );
2235
+ }
2236
+ });
2237
+ });
2238
+ if (cmpTags.length > 0) {
2239
+ if (hasSlotRelocation) {
2240
+ dataStyles.textContent += SLOT_FB_CSS;
2241
+ }
2242
+ {
2243
+ dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
2244
+ }
2245
+ if (dataStyles.innerHTML.length) {
2246
+ dataStyles.setAttribute("data-styles", "");
2247
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
2248
+ if (nonce != null) {
2249
+ dataStyles.setAttribute("nonce", nonce);
2250
+ }
2251
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
2252
+ }
2253
+ }
2254
+ isBootstrapping = false;
2255
+ if (deferredConnectedCallbacks.length) {
2256
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
2257
+ } else {
2258
+ {
2259
+ plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
2260
+ }
2261
+ }
2262
+ endBootstrap();
2263
+ };
2264
+ var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
2265
+ if (listeners && win.document) {
2266
+ listeners.map(([flags, name, method]) => {
2267
+ const target = getHostListenerTarget(win.document, elm, flags) ;
2268
+ const handler = hostListenerProxy(hostRef, method);
2269
+ const opts = hostListenerOpts(flags);
2270
+ plt.ael(target, name, handler, opts);
2271
+ (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
2272
+ });
2273
+ }
2274
+ };
2275
+ var hostListenerProxy = (hostRef, methodName) => (ev) => {
2276
+ var _a;
2277
+ try {
2278
+ {
2279
+ if (hostRef.$flags$ & 256 /* isListenReady */) {
2280
+ (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
2281
+ } else {
2282
+ (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
2283
+ }
2284
+ }
2285
+ } catch (e) {
2286
+ consoleError(e, hostRef.$hostElement$);
2287
+ }
2288
+ };
2289
+ var getHostListenerTarget = (doc, elm, flags) => {
2290
+ if (flags & 4 /* TargetDocument */) {
2291
+ return doc;
2292
+ }
2293
+ return elm;
2294
+ };
2295
+ var hostListenerOpts = (flags) => supportsListenerOptions ? {
2296
+ passive: (flags & 1 /* Passive */) !== 0,
2297
+ capture: (flags & 2 /* Capture */) !== 0
2298
+ } : (flags & 2 /* Capture */) !== 0;
2299
+
2300
+ // src/runtime/nonce.ts
2301
+ var setNonce = (nonce) => plt.$nonce$ = nonce;
2302
+ function transformTag(tag) {
2303
+ return tag;
2304
+ }
2305
+
2306
+ exports.Host = Host;
2307
+ exports.bootstrapLazy = bootstrapLazy;
2308
+ exports.createEvent = createEvent;
2309
+ exports.forceUpdate = forceUpdate;
2310
+ exports.getElement = getElement;
2311
+ exports.h = h;
2312
+ exports.promiseResolve = promiseResolve;
2313
+ exports.registerInstance = registerInstance;
2314
+ exports.setNonce = setNonce;