@gov-design-system-ce/components 0.0.1

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 (1209) hide show
  1. package/dist/cjs/constants-02ecd1c7.js +21 -0
  2. package/dist/cjs/constants-02ecd1c7.js.map +1 -0
  3. package/dist/cjs/constants-1d5ec4c5.js +15 -0
  4. package/dist/cjs/constants-1d5ec4c5.js.map +1 -0
  5. package/dist/cjs/constants-3248a281.js +29 -0
  6. package/dist/cjs/constants-3248a281.js.map +1 -0
  7. package/dist/cjs/constants-404ee283.js +21 -0
  8. package/dist/cjs/constants-404ee283.js.map +1 -0
  9. package/dist/cjs/constants-4a012eff.js +22 -0
  10. package/dist/cjs/constants-4a012eff.js.map +1 -0
  11. package/dist/cjs/constants-57e09cb3.js +21 -0
  12. package/dist/cjs/constants-57e09cb3.js.map +1 -0
  13. package/dist/cjs/constants-736bf980.js +10 -0
  14. package/dist/cjs/constants-736bf980.js.map +1 -0
  15. package/dist/cjs/constants-aba7a597.js +23 -0
  16. package/dist/cjs/constants-aba7a597.js.map +1 -0
  17. package/dist/cjs/constants-bd1db896.js +18 -0
  18. package/dist/cjs/constants-bd1db896.js.map +1 -0
  19. package/dist/cjs/constants-c3c9f325.js +21 -0
  20. package/dist/cjs/constants-c3c9f325.js.map +1 -0
  21. package/dist/cjs/constants-e0d4a186.js +22 -0
  22. package/dist/cjs/constants-e0d4a186.js.map +1 -0
  23. package/dist/cjs/constants-e47694c4.js +19 -0
  24. package/dist/cjs/constants-e47694c4.js.map +1 -0
  25. package/dist/cjs/constants-ed8f3212.js +25 -0
  26. package/dist/cjs/constants-ed8f3212.js.map +1 -0
  27. package/dist/cjs/core.cjs.js +21 -0
  28. package/dist/cjs/core.cjs.js.map +1 -0
  29. package/dist/cjs/form-9ab2ace1.js +93 -0
  30. package/dist/cjs/form-9ab2ace1.js.map +1 -0
  31. package/dist/cjs/gov-accordion-item.cjs.entry.js +106 -0
  32. package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -0
  33. package/dist/cjs/gov-accordion.cjs.entry.js +71 -0
  34. package/dist/cjs/gov-accordion.cjs.entry.js.map +1 -0
  35. package/dist/cjs/gov-alert.cjs.entry.js +52 -0
  36. package/dist/cjs/gov-alert.cjs.entry.js.map +1 -0
  37. package/dist/cjs/gov-app.cjs.entry.js +7178 -0
  38. package/dist/cjs/gov-app.cjs.entry.js.map +1 -0
  39. package/dist/cjs/gov-attachments_3.cjs.entry.js +114 -0
  40. package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -0
  41. package/dist/cjs/gov-backdrop.cjs.entry.js +47 -0
  42. package/dist/cjs/gov-backdrop.cjs.entry.js.map +1 -0
  43. package/dist/cjs/gov-badge.cjs.entry.js +83 -0
  44. package/dist/cjs/gov-badge.cjs.entry.js.map +1 -0
  45. package/dist/cjs/gov-button.cjs.entry.js +151 -0
  46. package/dist/cjs/gov-button.cjs.entry.js.map +1 -0
  47. package/dist/cjs/gov-card.cjs.entry.js +110 -0
  48. package/dist/cjs/gov-card.cjs.entry.js.map +1 -0
  49. package/dist/cjs/gov-container.cjs.entry.js +30 -0
  50. package/dist/cjs/gov-container.cjs.entry.js.map +1 -0
  51. package/dist/cjs/gov-cookiebar.cjs.entry.js +33 -0
  52. package/dist/cjs/gov-cookiebar.cjs.entry.js.map +1 -0
  53. package/dist/cjs/gov-empty.cjs.entry.js +31 -0
  54. package/dist/cjs/gov-empty.cjs.entry.js.map +1 -0
  55. package/dist/cjs/gov-error-code.cjs.entry.js +31 -0
  56. package/dist/cjs/gov-error-code.cjs.entry.js.map +1 -0
  57. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +177 -0
  58. package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -0
  59. package/dist/cjs/gov-form-checkbox.cjs.entry.js +100 -0
  60. package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -0
  61. package/dist/cjs/gov-form-control.cjs.entry.js +87 -0
  62. package/dist/cjs/gov-form-control.cjs.entry.js.map +1 -0
  63. package/dist/cjs/gov-form-dropdown.cjs.entry.js +21 -0
  64. package/dist/cjs/gov-form-dropdown.cjs.entry.js.map +1 -0
  65. package/dist/cjs/gov-form-file.cjs.entry.js +179 -0
  66. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -0
  67. package/dist/cjs/gov-form-group.cjs.entry.js +25 -0
  68. package/dist/cjs/gov-form-group.cjs.entry.js.map +1 -0
  69. package/dist/cjs/gov-form-input.cjs.entry.js +150 -0
  70. package/dist/cjs/gov-form-input.cjs.entry.js.map +1 -0
  71. package/dist/cjs/gov-form-label.cjs.entry.js +24 -0
  72. package/dist/cjs/gov-form-label.cjs.entry.js.map +1 -0
  73. package/dist/cjs/gov-form-multi-select.cjs.entry.js +186 -0
  74. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -0
  75. package/dist/cjs/gov-form-radio.cjs.entry.js +100 -0
  76. package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -0
  77. package/dist/cjs/gov-form-search.cjs.entry.js +61 -0
  78. package/dist/cjs/gov-form-search.cjs.entry.js.map +1 -0
  79. package/dist/cjs/gov-form-select.cjs.entry.js +121 -0
  80. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -0
  81. package/dist/cjs/gov-form-switch.cjs.entry.js +97 -0
  82. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -0
  83. package/dist/cjs/gov-grid.cjs.entry.js +35 -0
  84. package/dist/cjs/gov-grid.cjs.entry.js.map +1 -0
  85. package/dist/cjs/gov-icon.cjs.entry.js +111 -0
  86. package/dist/cjs/gov-icon.cjs.entry.js.map +1 -0
  87. package/dist/cjs/gov-message.cjs.entry.js +41 -0
  88. package/dist/cjs/gov-message.cjs.entry.js.map +1 -0
  89. package/dist/cjs/gov-modal.cjs.entry.js +99 -0
  90. package/dist/cjs/gov-modal.cjs.entry.js.map +1 -0
  91. package/dist/cjs/gov-pagination.cjs.entry.js +145 -0
  92. package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -0
  93. package/dist/cjs/gov-prompt.cjs.entry.js +99 -0
  94. package/dist/cjs/gov-prompt.cjs.entry.js.map +1 -0
  95. package/dist/cjs/gov-side-nav-item.cjs.entry.js +94 -0
  96. package/dist/cjs/gov-side-nav-item.cjs.entry.js.map +1 -0
  97. package/dist/cjs/gov-side-nav.cjs.entry.js +56 -0
  98. package/dist/cjs/gov-side-nav.cjs.entry.js.map +1 -0
  99. package/dist/cjs/gov-spacer.cjs.entry.js +56 -0
  100. package/dist/cjs/gov-spacer.cjs.entry.js.map +1 -0
  101. package/dist/cjs/gov-statsbar-item.cjs.entry.js +37 -0
  102. package/dist/cjs/gov-statsbar-item.cjs.entry.js.map +1 -0
  103. package/dist/cjs/gov-statsbar.cjs.entry.js +49 -0
  104. package/dist/cjs/gov-statsbar.cjs.entry.js.map +1 -0
  105. package/dist/cjs/gov-stepper-item.cjs.entry.js +75 -0
  106. package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -0
  107. package/dist/cjs/gov-stepper.cjs.entry.js +47 -0
  108. package/dist/cjs/gov-stepper.cjs.entry.js.map +1 -0
  109. package/dist/cjs/gov-tabs-item.cjs.entry.js +52 -0
  110. package/dist/cjs/gov-tabs-item.cjs.entry.js.map +1 -0
  111. package/dist/cjs/gov-tabs.cjs.entry.js +188 -0
  112. package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -0
  113. package/dist/cjs/gov-tile.cjs.entry.js +48 -0
  114. package/dist/cjs/gov-tile.cjs.entry.js.map +1 -0
  115. package/dist/cjs/gov-toast.cjs.entry.js +88 -0
  116. package/dist/cjs/gov-toast.cjs.entry.js.map +1 -0
  117. package/dist/cjs/gov-tooltip-content.cjs.entry.js +41 -0
  118. package/dist/cjs/gov-tooltip-content.cjs.entry.js.map +1 -0
  119. package/dist/cjs/gov-tooltip.cjs.entry.js +157 -0
  120. package/dist/cjs/gov-tooltip.cjs.entry.js.map +1 -0
  121. package/dist/cjs/gov-wizzard-item.cjs.entry.js +108 -0
  122. package/dist/cjs/gov-wizzard-item.cjs.entry.js.map +1 -0
  123. package/dist/cjs/gov-wizzard.cjs.entry.js +66 -0
  124. package/dist/cjs/gov-wizzard.cjs.entry.js.map +1 -0
  125. package/dist/cjs/gov.log-4527e960.js +27 -0
  126. package/dist/cjs/gov.log-4527e960.js.map +1 -0
  127. package/dist/cjs/index-f0dd3088.js +2285 -0
  128. package/dist/cjs/index-f0dd3088.js.map +1 -0
  129. package/dist/cjs/index.cjs.js +4 -0
  130. package/dist/cjs/index.cjs.js.map +1 -0
  131. package/dist/cjs/loader.cjs.js +23 -0
  132. package/dist/cjs/loader.cjs.js.map +1 -0
  133. package/dist/cjs/props-bb89fb59.js +16 -0
  134. package/dist/cjs/props-bb89fb59.js.map +1 -0
  135. package/dist/cjs/sizes-79872c2a.js +18 -0
  136. package/dist/cjs/sizes-79872c2a.js.map +1 -0
  137. package/dist/cjs/string.utils-f9b3501b.js +24 -0
  138. package/dist/cjs/string.utils-f9b3501b.js.map +1 -0
  139. package/dist/cjs/template-26608353.js +118 -0
  140. package/dist/cjs/template-26608353.js.map +1 -0
  141. package/dist/cjs/utils-a51135ab.js +17 -0
  142. package/dist/cjs/utils-a51135ab.js.map +1 -0
  143. package/dist/cjs/variants-04113a72.js +13 -0
  144. package/dist/cjs/variants-04113a72.js.map +1 -0
  145. package/dist/cjs/win-aa54b884.js +68 -0
  146. package/dist/cjs/win-aa54b884.js.map +1 -0
  147. package/dist/collection/collection-manifest.json +60 -0
  148. package/dist/collection/components/gov-accordion/constants.js +15 -0
  149. package/dist/collection/components/gov-accordion/constants.js.map +1 -0
  150. package/dist/collection/components/gov-accordion/gov-accordion-item.css +385 -0
  151. package/dist/collection/components/gov-accordion/gov-accordion-item.d.js +2 -0
  152. package/dist/collection/components/gov-accordion/gov-accordion-item.d.js.map +1 -0
  153. package/dist/collection/components/gov-accordion/gov-accordion-item.js +346 -0
  154. package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -0
  155. package/dist/collection/components/gov-accordion/gov-accordion.css +183 -0
  156. package/dist/collection/components/gov-accordion/gov-accordion.js +195 -0
  157. package/dist/collection/components/gov-accordion/gov-accordion.js.map +1 -0
  158. package/dist/collection/components/gov-accordion/gov-accordion.stories.js +74 -0
  159. package/dist/collection/components/gov-accordion/gov-accordion.stories.js.map +1 -0
  160. package/dist/collection/components/gov-alert/constants.js +10 -0
  161. package/dist/collection/components/gov-alert/constants.js.map +1 -0
  162. package/dist/collection/components/gov-alert/gov-alert.css +334 -0
  163. package/dist/collection/components/gov-alert/gov-alert.js +147 -0
  164. package/dist/collection/components/gov-alert/gov-alert.js.map +1 -0
  165. package/dist/collection/components/gov-alert/gov-alert.stories.js +78 -0
  166. package/dist/collection/components/gov-alert/gov-alert.stories.js.map +1 -0
  167. package/dist/collection/components/gov-app/gov-app.css +195 -0
  168. package/dist/collection/components/gov-app/gov-app.js +80 -0
  169. package/dist/collection/components/gov-app/gov-app.js.map +1 -0
  170. package/dist/collection/components/gov-attachments/constants.js +9 -0
  171. package/dist/collection/components/gov-attachments/constants.js.map +1 -0
  172. package/dist/collection/components/gov-attachments/gov-attachments-item.css +202 -0
  173. package/dist/collection/components/gov-attachments/gov-attachments-item.d.js +2 -0
  174. package/dist/collection/components/gov-attachments/gov-attachments-item.d.js.map +1 -0
  175. package/dist/collection/components/gov-attachments/gov-attachments-item.js +115 -0
  176. package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +1 -0
  177. package/dist/collection/components/gov-attachments/gov-attachments.css +189 -0
  178. package/dist/collection/components/gov-attachments/gov-attachments.js +97 -0
  179. package/dist/collection/components/gov-attachments/gov-attachments.js.map +1 -0
  180. package/dist/collection/components/gov-backdrop/constants.js +4 -0
  181. package/dist/collection/components/gov-backdrop/constants.js.map +1 -0
  182. package/dist/collection/components/gov-backdrop/gov-backdrop.css +193 -0
  183. package/dist/collection/components/gov-backdrop/gov-backdrop.js +139 -0
  184. package/dist/collection/components/gov-backdrop/gov-backdrop.js.map +1 -0
  185. package/dist/collection/components/gov-badge/constants.js +11 -0
  186. package/dist/collection/components/gov-badge/constants.js.map +1 -0
  187. package/dist/collection/components/gov-badge/gov-badge.css +996 -0
  188. package/dist/collection/components/gov-badge/gov-badge.js +307 -0
  189. package/dist/collection/components/gov-badge/gov-badge.js.map +1 -0
  190. package/dist/collection/components/gov-badge/gov-badge.stories.js +75 -0
  191. package/dist/collection/components/gov-badge/gov-badge.stories.js.map +1 -0
  192. package/dist/collection/components/gov-button/constants.js +17 -0
  193. package/dist/collection/components/gov-button/constants.js.map +1 -0
  194. package/dist/collection/components/gov-button/gov-button.css +988 -0
  195. package/dist/collection/components/gov-button/gov-button.js +762 -0
  196. package/dist/collection/components/gov-button/gov-button.js.map +1 -0
  197. package/dist/collection/components/gov-button/gov-button.stories.js +108 -0
  198. package/dist/collection/components/gov-button/gov-button.stories.js.map +1 -0
  199. package/dist/collection/components/gov-card/constants.js +13 -0
  200. package/dist/collection/components/gov-card/constants.js.map +1 -0
  201. package/dist/collection/components/gov-card/gov-card.css +319 -0
  202. package/dist/collection/components/gov-card/gov-card.d.js +2 -0
  203. package/dist/collection/components/gov-card/gov-card.d.js.map +1 -0
  204. package/dist/collection/components/gov-card/gov-card.js +302 -0
  205. package/dist/collection/components/gov-card/gov-card.js.map +1 -0
  206. package/dist/collection/components/gov-card/gov-card.stories.js +109 -0
  207. package/dist/collection/components/gov-card/gov-card.stories.js.map +1 -0
  208. package/dist/collection/components/gov-container/constants.js +4 -0
  209. package/dist/collection/components/gov-container/constants.js.map +1 -0
  210. package/dist/collection/components/gov-container/gov-container.css +193 -0
  211. package/dist/collection/components/gov-container/gov-container.js +47 -0
  212. package/dist/collection/components/gov-container/gov-container.js.map +1 -0
  213. package/dist/collection/components/gov-container/gov-container.stories.js +8 -0
  214. package/dist/collection/components/gov-container/gov-container.stories.js.map +1 -0
  215. package/dist/collection/components/gov-cookiebar/constants.js +9 -0
  216. package/dist/collection/components/gov-cookiebar/constants.js.map +1 -0
  217. package/dist/collection/components/gov-cookiebar/gov-cookiebar.css +235 -0
  218. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +24 -0
  219. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js.map +1 -0
  220. package/dist/collection/components/gov-empty/constants.js +7 -0
  221. package/dist/collection/components/gov-empty/constants.js.map +1 -0
  222. package/dist/collection/components/gov-empty/gov-empty.css +200 -0
  223. package/dist/collection/components/gov-empty/gov-empty.js +24 -0
  224. package/dist/collection/components/gov-empty/gov-empty.js.map +1 -0
  225. package/dist/collection/components/gov-empty/gov-empty.stories.js +53 -0
  226. package/dist/collection/components/gov-empty/gov-empty.stories.js.map +1 -0
  227. package/dist/collection/components/gov-error-code/constants.js +7 -0
  228. package/dist/collection/components/gov-error-code/constants.js.map +1 -0
  229. package/dist/collection/components/gov-error-code/gov-error-code.css +215 -0
  230. package/dist/collection/components/gov-error-code/gov-error-code.js +24 -0
  231. package/dist/collection/components/gov-error-code/gov-error-code.js.map +1 -0
  232. package/dist/collection/components/gov-error-code/gov-error-code.stories.js +49 -0
  233. package/dist/collection/components/gov-error-code/gov-error-code.stories.js.map +1 -0
  234. package/dist/collection/components/gov-form/autocomplete/constants.js +10 -0
  235. package/dist/collection/components/gov-form/autocomplete/constants.js.map +1 -0
  236. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.css +228 -0
  237. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +658 -0
  238. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -0
  239. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.stories.js +131 -0
  240. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.stories.js.map +1 -0
  241. package/dist/collection/components/gov-form/checkbox/constants.js +7 -0
  242. package/dist/collection/components/gov-form/checkbox/constants.js.map +1 -0
  243. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.css +333 -0
  244. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +362 -0
  245. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -0
  246. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.stories.js +78 -0
  247. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.stories.js.map +1 -0
  248. package/dist/collection/components/gov-form/control/constants.js +7 -0
  249. package/dist/collection/components/gov-form/control/constants.js.map +1 -0
  250. package/dist/collection/components/gov-form/control/gov-form-control.css +235 -0
  251. package/dist/collection/components/gov-form/control/gov-form-control.js +184 -0
  252. package/dist/collection/components/gov-form/control/gov-form-control.js.map +1 -0
  253. package/dist/collection/components/gov-form/file/constants.js +10 -0
  254. package/dist/collection/components/gov-form/file/constants.js.map +1 -0
  255. package/dist/collection/components/gov-form/file/gov-form-file.css +240 -0
  256. package/dist/collection/components/gov-form/file/gov-form-file.js +552 -0
  257. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -0
  258. package/dist/collection/components/gov-form/gov-form-dropdown.css +199 -0
  259. package/dist/collection/components/gov-form/gov-form-dropdown.js +19 -0
  260. package/dist/collection/components/gov-form/gov-form-dropdown.js.map +1 -0
  261. package/dist/collection/components/gov-form/group/constants.js +4 -0
  262. package/dist/collection/components/gov-form/group/constants.js.map +1 -0
  263. package/dist/collection/components/gov-form/group/gov-form-group.css +178 -0
  264. package/dist/collection/components/gov-form/group/gov-form-group.js +19 -0
  265. package/dist/collection/components/gov-form/group/gov-form-group.js.map +1 -0
  266. package/dist/collection/components/gov-form/input/constants.js +10 -0
  267. package/dist/collection/components/gov-form/input/constants.js.map +1 -0
  268. package/dist/collection/components/gov-form/input/gov-form-input.css +400 -0
  269. package/dist/collection/components/gov-form/input/gov-form-input.js +800 -0
  270. package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -0
  271. package/dist/collection/components/gov-form/input/gov-form-input.stories.js +101 -0
  272. package/dist/collection/components/gov-form/input/gov-form-input.stories.js.map +1 -0
  273. package/dist/collection/components/gov-form/label/constants.js +5 -0
  274. package/dist/collection/components/gov-form/label/constants.js.map +1 -0
  275. package/dist/collection/components/gov-form/label/gov-form-label.css +222 -0
  276. package/dist/collection/components/gov-form/label/gov-form-label.js +65 -0
  277. package/dist/collection/components/gov-form/label/gov-form-label.js.map +1 -0
  278. package/dist/collection/components/gov-form/message/constants.js +8 -0
  279. package/dist/collection/components/gov-form/message/constants.js.map +1 -0
  280. package/dist/collection/components/gov-form/message/gov-form-message.css +208 -0
  281. package/dist/collection/components/gov-form/message/gov-form-message.js +94 -0
  282. package/dist/collection/components/gov-form/message/gov-form-message.js.map +1 -0
  283. package/dist/collection/components/gov-form/message/gov-form-message.stories.js +48 -0
  284. package/dist/collection/components/gov-form/message/gov-form-message.stories.js.map +1 -0
  285. package/dist/collection/components/gov-form/radio/constants.js +9 -0
  286. package/dist/collection/components/gov-form/radio/constants.js.map +1 -0
  287. package/dist/collection/components/gov-form/radio/gov-form-radio.css +332 -0
  288. package/dist/collection/components/gov-form/radio/gov-form-radio.js +362 -0
  289. package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -0
  290. package/dist/collection/components/gov-form/search/constants.js +10 -0
  291. package/dist/collection/components/gov-form/search/constants.js.map +1 -0
  292. package/dist/collection/components/gov-form/search/gov-form-search.css +208 -0
  293. package/dist/collection/components/gov-form/search/gov-form-search.js +108 -0
  294. package/dist/collection/components/gov-form/search/gov-form-search.js.map +1 -0
  295. package/dist/collection/components/gov-form/select/constants.js +15 -0
  296. package/dist/collection/components/gov-form/select/constants.js.map +1 -0
  297. package/dist/collection/components/gov-form/select/gov-form-multi-select.css +460 -0
  298. package/dist/collection/components/gov-form/select/gov-form-multi-select.js +535 -0
  299. package/dist/collection/components/gov-form/select/gov-form-multi-select.js.map +1 -0
  300. package/dist/collection/components/gov-form/select/gov-form-multi-select.stories.js +90 -0
  301. package/dist/collection/components/gov-form/select/gov-form-multi-select.stories.js.map +1 -0
  302. package/dist/collection/components/gov-form/select/gov-form-select.css +419 -0
  303. package/dist/collection/components/gov-form/select/gov-form-select.js +498 -0
  304. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -0
  305. package/dist/collection/components/gov-form/select/gov-form-select.stories.js +90 -0
  306. package/dist/collection/components/gov-form/select/gov-form-select.stories.js.map +1 -0
  307. package/dist/collection/components/gov-form/switch/constants.js +9 -0
  308. package/dist/collection/components/gov-form/switch/constants.js.map +1 -0
  309. package/dist/collection/components/gov-form/switch/gov-form-switch.css +354 -0
  310. package/dist/collection/components/gov-form/switch/gov-form-switch.js +359 -0
  311. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -0
  312. package/dist/collection/components/gov-form/switch/gov-form-switch.stories.js +78 -0
  313. package/dist/collection/components/gov-form/switch/gov-form-switch.stories.js.map +1 -0
  314. package/dist/collection/components/gov-grid/constants.js +4 -0
  315. package/dist/collection/components/gov-grid/constants.js.map +1 -0
  316. package/dist/collection/components/gov-grid/gov-grid.css +262 -0
  317. package/dist/collection/components/gov-grid/gov-grid.js +55 -0
  318. package/dist/collection/components/gov-grid/gov-grid.js.map +1 -0
  319. package/dist/collection/components/gov-icon/constants.js +6 -0
  320. package/dist/collection/components/gov-icon/constants.js.map +1 -0
  321. package/dist/collection/components/gov-icon/gov-icon.css +187 -0
  322. package/dist/collection/components/gov-icon/gov-icon.js +133 -0
  323. package/dist/collection/components/gov-icon/gov-icon.js.map +1 -0
  324. package/dist/collection/components/gov-icon/list.js +103 -0
  325. package/dist/collection/components/gov-icon/list.js.map +1 -0
  326. package/dist/collection/components/gov-message/constants.js +9 -0
  327. package/dist/collection/components/gov-message/constants.js.map +1 -0
  328. package/dist/collection/components/gov-message/gov-message.css +262 -0
  329. package/dist/collection/components/gov-message/gov-message.js +63 -0
  330. package/dist/collection/components/gov-message/gov-message.js.map +1 -0
  331. package/dist/collection/components/gov-message/gov-message.stories.js +70 -0
  332. package/dist/collection/components/gov-message/gov-message.stories.js.map +1 -0
  333. package/dist/collection/components/gov-modal/constants.js +14 -0
  334. package/dist/collection/components/gov-modal/constants.js.map +1 -0
  335. package/dist/collection/components/gov-modal/gov-modal.css +290 -0
  336. package/dist/collection/components/gov-modal/gov-modal.js +319 -0
  337. package/dist/collection/components/gov-modal/gov-modal.js.map +1 -0
  338. package/dist/collection/components/gov-modal/gov-modal.stories.js +55 -0
  339. package/dist/collection/components/gov-modal/gov-modal.stories.js.map +1 -0
  340. package/dist/collection/components/gov-pagination/constants.js +9 -0
  341. package/dist/collection/components/gov-pagination/constants.js.map +1 -0
  342. package/dist/collection/components/gov-pagination/gov-pagination.css +281 -0
  343. package/dist/collection/components/gov-pagination/gov-pagination.js +292 -0
  344. package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -0
  345. package/dist/collection/components/gov-pagination/pagination.js +55 -0
  346. package/dist/collection/components/gov-pagination/pagination.js.map +1 -0
  347. package/dist/collection/components/gov-promp/constants.js +12 -0
  348. package/dist/collection/components/gov-promp/constants.js.map +1 -0
  349. package/dist/collection/components/gov-promp/gov-prompt.css +293 -0
  350. package/dist/collection/components/gov-promp/gov-prompt.js +319 -0
  351. package/dist/collection/components/gov-promp/gov-prompt.js.map +1 -0
  352. package/dist/collection/components/gov-side-nav/constants.js +15 -0
  353. package/dist/collection/components/gov-side-nav/constants.js.map +1 -0
  354. package/dist/collection/components/gov-side-nav/gov-side-nav-item.css +328 -0
  355. package/dist/collection/components/gov-side-nav/gov-side-nav-item.d.js +2 -0
  356. package/dist/collection/components/gov-side-nav/gov-side-nav-item.d.js.map +1 -0
  357. package/dist/collection/components/gov-side-nav/gov-side-nav-item.js +340 -0
  358. package/dist/collection/components/gov-side-nav/gov-side-nav-item.js.map +1 -0
  359. package/dist/collection/components/gov-side-nav/gov-side-nav.css +183 -0
  360. package/dist/collection/components/gov-side-nav/gov-side-nav.js +165 -0
  361. package/dist/collection/components/gov-side-nav/gov-side-nav.js.map +1 -0
  362. package/dist/collection/components/gov-spacer/constants.js +9 -0
  363. package/dist/collection/components/gov-spacer/constants.js.map +1 -0
  364. package/dist/collection/components/gov-spacer/gov-spacer.css +247 -0
  365. package/dist/collection/components/gov-spacer/gov-spacer.js +93 -0
  366. package/dist/collection/components/gov-spacer/gov-spacer.js.map +1 -0
  367. package/dist/collection/components/gov-spacer/gov-spacer.stories.js +19 -0
  368. package/dist/collection/components/gov-spacer/gov-spacer.stories.js.map +1 -0
  369. package/dist/collection/components/gov-statsbar/constants.js +13 -0
  370. package/dist/collection/components/gov-statsbar/constants.js.map +1 -0
  371. package/dist/collection/components/gov-statsbar/gov-statsbar-item.css +242 -0
  372. package/dist/collection/components/gov-statsbar/gov-statsbar-item.js +65 -0
  373. package/dist/collection/components/gov-statsbar/gov-statsbar-item.js.map +1 -0
  374. package/dist/collection/components/gov-statsbar/gov-statsbar.css +225 -0
  375. package/dist/collection/components/gov-statsbar/gov-statsbar.js +102 -0
  376. package/dist/collection/components/gov-statsbar/gov-statsbar.js.map +1 -0
  377. package/dist/collection/components/gov-statsbar/gov-statsbar.stories.js +71 -0
  378. package/dist/collection/components/gov-statsbar/gov-statsbar.stories.js.map +1 -0
  379. package/dist/collection/components/gov-stepper/constants.js +16 -0
  380. package/dist/collection/components/gov-stepper/constants.js.map +1 -0
  381. package/dist/collection/components/gov-stepper/gov-stepper-item.css +329 -0
  382. package/dist/collection/components/gov-stepper/gov-stepper-item.d.js +2 -0
  383. package/dist/collection/components/gov-stepper/gov-stepper-item.d.js.map +1 -0
  384. package/dist/collection/components/gov-stepper/gov-stepper-item.js +206 -0
  385. package/dist/collection/components/gov-stepper/gov-stepper-item.js.map +1 -0
  386. package/dist/collection/components/gov-stepper/gov-stepper.css +183 -0
  387. package/dist/collection/components/gov-stepper/gov-stepper.js +91 -0
  388. package/dist/collection/components/gov-stepper/gov-stepper.js.map +1 -0
  389. package/dist/collection/components/gov-tabs/constants.js +17 -0
  390. package/dist/collection/components/gov-tabs/constants.js.map +1 -0
  391. package/dist/collection/components/gov-tabs/gov-tabs-item.css +184 -0
  392. package/dist/collection/components/gov-tabs/gov-tabs-item.js +182 -0
  393. package/dist/collection/components/gov-tabs/gov-tabs-item.js.map +1 -0
  394. package/dist/collection/components/gov-tabs/gov-tabs.css +308 -0
  395. package/dist/collection/components/gov-tabs/gov-tabs.js +391 -0
  396. package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -0
  397. package/dist/collection/components/gov-tabs/gov-tabs.stories.js +29 -0
  398. package/dist/collection/components/gov-tabs/gov-tabs.stories.js.map +1 -0
  399. package/dist/collection/components/gov-tile/constants.js +8 -0
  400. package/dist/collection/components/gov-tile/constants.js.map +1 -0
  401. package/dist/collection/components/gov-tile/gov-tile.css +277 -0
  402. package/dist/collection/components/gov-tile/gov-tile.js +102 -0
  403. package/dist/collection/components/gov-tile/gov-tile.js.map +1 -0
  404. package/dist/collection/components/gov-toast/constants.js +10 -0
  405. package/dist/collection/components/gov-toast/constants.js.map +1 -0
  406. package/dist/collection/components/gov-toast/gov-toast.css +280 -0
  407. package/dist/collection/components/gov-toast/gov-toast.js +220 -0
  408. package/dist/collection/components/gov-toast/gov-toast.js.map +1 -0
  409. package/dist/collection/components/gov-toast/gov-toast.stories.js +83 -0
  410. package/dist/collection/components/gov-toast/gov-toast.stories.js.map +1 -0
  411. package/dist/collection/components/gov-tooltip/constants.js +19 -0
  412. package/dist/collection/components/gov-tooltip/constants.js.map +1 -0
  413. package/dist/collection/components/gov-tooltip/gov-tooltip-content.css +279 -0
  414. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +63 -0
  415. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js.map +1 -0
  416. package/dist/collection/components/gov-tooltip/gov-tooltip.css +208 -0
  417. package/dist/collection/components/gov-tooltip/gov-tooltip.js +324 -0
  418. package/dist/collection/components/gov-tooltip/gov-tooltip.js.map +1 -0
  419. package/dist/collection/components/gov-tooltip/gov-tooltip.stories.js +54 -0
  420. package/dist/collection/components/gov-tooltip/gov-tooltip.stories.js.map +1 -0
  421. package/dist/collection/components/gov-wizzard/constants.js +16 -0
  422. package/dist/collection/components/gov-wizzard/constants.js.map +1 -0
  423. package/dist/collection/components/gov-wizzard/gov-wizzard-item.css +354 -0
  424. package/dist/collection/components/gov-wizzard/gov-wizzard-item.d.js +2 -0
  425. package/dist/collection/components/gov-wizzard/gov-wizzard-item.d.js.map +1 -0
  426. package/dist/collection/components/gov-wizzard/gov-wizzard-item.js +341 -0
  427. package/dist/collection/components/gov-wizzard/gov-wizzard-item.js.map +1 -0
  428. package/dist/collection/components/gov-wizzard/gov-wizzard.css +183 -0
  429. package/dist/collection/components/gov-wizzard/gov-wizzard.js +164 -0
  430. package/dist/collection/components/gov-wizzard/gov-wizzard.js.map +1 -0
  431. package/dist/collection/components/gov-wizzard/gov-wizzard.stories.js +109 -0
  432. package/dist/collection/components/gov-wizzard/gov-wizzard.stories.js.map +1 -0
  433. package/dist/collection/core/constants/breakpoint.js +9 -0
  434. package/dist/collection/core/constants/breakpoint.js.map +1 -0
  435. package/dist/collection/core/constants/sizes.js +15 -0
  436. package/dist/collection/core/constants/sizes.js.map +1 -0
  437. package/dist/collection/core/constants/variants.js +10 -0
  438. package/dist/collection/core/constants/variants.js.map +1 -0
  439. package/dist/collection/helpers/Dom/form.js +55 -0
  440. package/dist/collection/helpers/Dom/form.js.map +1 -0
  441. package/dist/collection/helpers/Dom/template.js +107 -0
  442. package/dist/collection/helpers/Dom/template.js.map +1 -0
  443. package/dist/collection/helpers/Dom/win.js +5 -0
  444. package/dist/collection/helpers/Dom/win.js.map +1 -0
  445. package/dist/collection/helpers/Log/gov.log.js +21 -0
  446. package/dist/collection/helpers/Log/gov.log.js.map +1 -0
  447. package/dist/collection/helpers/Validate/props.js +10 -0
  448. package/dist/collection/helpers/Validate/props.js.map +1 -0
  449. package/dist/collection/helpers/Validate/wcag.js +53 -0
  450. package/dist/collection/helpers/Validate/wcag.js.map +1 -0
  451. package/dist/collection/index.js +2 -0
  452. package/dist/collection/index.js.map +1 -0
  453. package/dist/collection/pages/Accordion.js +254 -0
  454. package/dist/collection/pages/Accordion.js.map +1 -0
  455. package/dist/collection/pages/Alert.js +83 -0
  456. package/dist/collection/pages/Alert.js.map +1 -0
  457. package/dist/collection/pages/Badge.js +279 -0
  458. package/dist/collection/pages/Badge.js.map +1 -0
  459. package/dist/collection/pages/Button.js +958 -0
  460. package/dist/collection/pages/Button.js.map +1 -0
  461. package/dist/collection/pages/Card.js +102 -0
  462. package/dist/collection/pages/Card.js.map +1 -0
  463. package/dist/collection/pages/Cookiebar.js +29 -0
  464. package/dist/collection/pages/Cookiebar.js.map +1 -0
  465. package/dist/collection/pages/Empty.js +43 -0
  466. package/dist/collection/pages/Empty.js.map +1 -0
  467. package/dist/collection/pages/Error.js +16 -0
  468. package/dist/collection/pages/Error.js.map +1 -0
  469. package/dist/collection/pages/FormLabel.js +13 -0
  470. package/dist/collection/pages/FormLabel.js.map +1 -0
  471. package/dist/collection/pages/FormMessage.js +82 -0
  472. package/dist/collection/pages/FormMessage.js.map +1 -0
  473. package/dist/collection/pages/Forms.js +1099 -0
  474. package/dist/collection/pages/Forms.js.map +1 -0
  475. package/dist/collection/pages/FormsRestructure.js +13 -0
  476. package/dist/collection/pages/FormsRestructure.js.map +1 -0
  477. package/dist/collection/pages/Home.js +9 -0
  478. package/dist/collection/pages/Home.js.map +1 -0
  479. package/dist/collection/pages/Message.js +94 -0
  480. package/dist/collection/pages/Message.js.map +1 -0
  481. package/dist/collection/pages/Modal.js +57 -0
  482. package/dist/collection/pages/Modal.js.map +1 -0
  483. package/dist/collection/pages/Pagination.js +24 -0
  484. package/dist/collection/pages/Pagination.js.map +1 -0
  485. package/dist/collection/pages/Prompt.js +48 -0
  486. package/dist/collection/pages/Prompt.js.map +1 -0
  487. package/dist/collection/pages/SideNav.js +117 -0
  488. package/dist/collection/pages/SideNav.js.map +1 -0
  489. package/dist/collection/pages/Spacer.js +19 -0
  490. package/dist/collection/pages/Spacer.js.map +1 -0
  491. package/dist/collection/pages/Statsbar.js +202 -0
  492. package/dist/collection/pages/Statsbar.js.map +1 -0
  493. package/dist/collection/pages/Stepper.js +55 -0
  494. package/dist/collection/pages/Stepper.js.map +1 -0
  495. package/dist/collection/pages/Tabs.js +233 -0
  496. package/dist/collection/pages/Tabs.js.map +1 -0
  497. package/dist/collection/pages/Tile.js +80 -0
  498. package/dist/collection/pages/Tile.js.map +1 -0
  499. package/dist/collection/pages/ToastMessage.js +47 -0
  500. package/dist/collection/pages/ToastMessage.js.map +1 -0
  501. package/dist/collection/pages/Tooltip.js +137 -0
  502. package/dist/collection/pages/Tooltip.js.map +1 -0
  503. package/dist/collection/pages/Typography.js +75 -0
  504. package/dist/collection/pages/Typography.js.map +1 -0
  505. package/dist/collection/pages/Wizzard.js +63 -0
  506. package/dist/collection/pages/Wizzard.js.map +1 -0
  507. package/dist/collection/utils/bool.utils.js +15 -0
  508. package/dist/collection/utils/bool.utils.js.map +1 -0
  509. package/dist/collection/utils/ds.utils.js +6 -0
  510. package/dist/collection/utils/ds.utils.js.map +1 -0
  511. package/dist/collection/utils/file.utils.js +23 -0
  512. package/dist/collection/utils/file.utils.js.map +1 -0
  513. package/dist/collection/utils/icon.utils.js +24 -0
  514. package/dist/collection/utils/icon.utils.js.map +1 -0
  515. package/dist/collection/utils/number.utils.js +4 -0
  516. package/dist/collection/utils/number.utils.js.map +1 -0
  517. package/dist/collection/utils/string.utils.js +17 -0
  518. package/dist/collection/utils/string.utils.js.map +1 -0
  519. package/dist/collection/utils/utils.js +14 -0
  520. package/dist/collection/utils/utils.js.map +1 -0
  521. package/dist/components/constants.js +18 -0
  522. package/dist/components/constants.js.map +1 -0
  523. package/dist/components/constants10.js +19 -0
  524. package/dist/components/constants10.js.map +1 -0
  525. package/dist/components/constants11.js +23 -0
  526. package/dist/components/constants11.js.map +1 -0
  527. package/dist/components/constants12.js +18 -0
  528. package/dist/components/constants12.js.map +1 -0
  529. package/dist/components/constants2.js +12 -0
  530. package/dist/components/constants2.js.map +1 -0
  531. package/dist/components/constants3.js +20 -0
  532. package/dist/components/constants3.js.map +1 -0
  533. package/dist/components/constants4.js +8 -0
  534. package/dist/components/constants4.js.map +1 -0
  535. package/dist/components/constants5.js +12 -0
  536. package/dist/components/constants5.js.map +1 -0
  537. package/dist/components/constants6.js +17 -0
  538. package/dist/components/constants6.js.map +1 -0
  539. package/dist/components/constants7.js +18 -0
  540. package/dist/components/constants7.js.map +1 -0
  541. package/dist/components/constants8.js +16 -0
  542. package/dist/components/constants8.js.map +1 -0
  543. package/dist/components/constants9.js +18 -0
  544. package/dist/components/constants9.js.map +1 -0
  545. package/dist/components/form.js +103 -0
  546. package/dist/components/form.js.map +1 -0
  547. package/dist/components/gov-accordion-item.d.ts +11 -0
  548. package/dist/components/gov-accordion-item.js +138 -0
  549. package/dist/components/gov-accordion-item.js.map +1 -0
  550. package/dist/components/gov-accordion.d.ts +11 -0
  551. package/dist/components/gov-accordion.js +88 -0
  552. package/dist/components/gov-accordion.js.map +1 -0
  553. package/dist/components/gov-alert.d.ts +11 -0
  554. package/dist/components/gov-alert.js +82 -0
  555. package/dist/components/gov-alert.js.map +1 -0
  556. package/dist/components/gov-app.d.ts +11 -0
  557. package/dist/components/gov-app.js +7192 -0
  558. package/dist/components/gov-app.js.map +1 -0
  559. package/dist/components/gov-attachments-item.d.ts +11 -0
  560. package/dist/components/gov-attachments-item.js +8 -0
  561. package/dist/components/gov-attachments-item.js.map +1 -0
  562. package/dist/components/gov-attachments-item2.js +66 -0
  563. package/dist/components/gov-attachments-item2.js.map +1 -0
  564. package/dist/components/gov-attachments.d.ts +11 -0
  565. package/dist/components/gov-attachments.js +8 -0
  566. package/dist/components/gov-attachments.js.map +1 -0
  567. package/dist/components/gov-attachments2.js +53 -0
  568. package/dist/components/gov-attachments2.js.map +1 -0
  569. package/dist/components/gov-backdrop.d.ts +11 -0
  570. package/dist/components/gov-backdrop.js +8 -0
  571. package/dist/components/gov-backdrop.js.map +1 -0
  572. package/dist/components/gov-backdrop2.js +60 -0
  573. package/dist/components/gov-backdrop2.js.map +1 -0
  574. package/dist/components/gov-badge.d.ts +11 -0
  575. package/dist/components/gov-badge.js +8 -0
  576. package/dist/components/gov-badge.js.map +1 -0
  577. package/dist/components/gov-badge2.js +104 -0
  578. package/dist/components/gov-badge2.js.map +1 -0
  579. package/dist/components/gov-button.d.ts +11 -0
  580. package/dist/components/gov-button.js +8 -0
  581. package/dist/components/gov-button.js.map +1 -0
  582. package/dist/components/gov-button2.js +196 -0
  583. package/dist/components/gov-button2.js.map +1 -0
  584. package/dist/components/gov-card.d.ts +11 -0
  585. package/dist/components/gov-card.js +141 -0
  586. package/dist/components/gov-card.js.map +1 -0
  587. package/dist/components/gov-container.d.ts +11 -0
  588. package/dist/components/gov-container.js +46 -0
  589. package/dist/components/gov-container.js.map +1 -0
  590. package/dist/components/gov-cookiebar.d.ts +11 -0
  591. package/dist/components/gov-cookiebar.js +47 -0
  592. package/dist/components/gov-cookiebar.js.map +1 -0
  593. package/dist/components/gov-empty.d.ts +11 -0
  594. package/dist/components/gov-empty.js +45 -0
  595. package/dist/components/gov-empty.js.map +1 -0
  596. package/dist/components/gov-error-code.d.ts +11 -0
  597. package/dist/components/gov-error-code.js +45 -0
  598. package/dist/components/gov-error-code.js.map +1 -0
  599. package/dist/components/gov-form-autocomplete.d.ts +11 -0
  600. package/dist/components/gov-form-autocomplete.js +8 -0
  601. package/dist/components/gov-form-autocomplete.js.map +1 -0
  602. package/dist/components/gov-form-autocomplete2.js +224 -0
  603. package/dist/components/gov-form-autocomplete2.js.map +1 -0
  604. package/dist/components/gov-form-checkbox.d.ts +11 -0
  605. package/dist/components/gov-form-checkbox.js +127 -0
  606. package/dist/components/gov-form-checkbox.js.map +1 -0
  607. package/dist/components/gov-form-control.d.ts +11 -0
  608. package/dist/components/gov-form-control.js +103 -0
  609. package/dist/components/gov-form-control.js.map +1 -0
  610. package/dist/components/gov-form-dropdown.d.ts +11 -0
  611. package/dist/components/gov-form-dropdown.js +36 -0
  612. package/dist/components/gov-form-dropdown.js.map +1 -0
  613. package/dist/components/gov-form-file.d.ts +11 -0
  614. package/dist/components/gov-form-file.js +235 -0
  615. package/dist/components/gov-form-file.js.map +1 -0
  616. package/dist/components/gov-form-group.d.ts +11 -0
  617. package/dist/components/gov-form-group.js +39 -0
  618. package/dist/components/gov-form-group.js.map +1 -0
  619. package/dist/components/gov-form-input.d.ts +11 -0
  620. package/dist/components/gov-form-input.js +8 -0
  621. package/dist/components/gov-form-input.js.map +1 -0
  622. package/dist/components/gov-form-input2.js +194 -0
  623. package/dist/components/gov-form-input2.js.map +1 -0
  624. package/dist/components/gov-form-label.d.ts +11 -0
  625. package/dist/components/gov-form-label.js +40 -0
  626. package/dist/components/gov-form-label.js.map +1 -0
  627. package/dist/components/gov-form-message.d.ts +11 -0
  628. package/dist/components/gov-form-message.js +8 -0
  629. package/dist/components/gov-form-message.js.map +1 -0
  630. package/dist/components/gov-form-message2.js +59 -0
  631. package/dist/components/gov-form-message2.js.map +1 -0
  632. package/dist/components/gov-form-multi-select.d.ts +11 -0
  633. package/dist/components/gov-form-multi-select.js +240 -0
  634. package/dist/components/gov-form-multi-select.js.map +1 -0
  635. package/dist/components/gov-form-radio.d.ts +11 -0
  636. package/dist/components/gov-form-radio.js +121 -0
  637. package/dist/components/gov-form-radio.js.map +1 -0
  638. package/dist/components/gov-form-search.d.ts +11 -0
  639. package/dist/components/gov-form-search.js +89 -0
  640. package/dist/components/gov-form-search.js.map +1 -0
  641. package/dist/components/gov-form-select.d.ts +11 -0
  642. package/dist/components/gov-form-select.js +8 -0
  643. package/dist/components/gov-form-select.js.map +1 -0
  644. package/dist/components/gov-form-select2.js +151 -0
  645. package/dist/components/gov-form-select2.js.map +1 -0
  646. package/dist/components/gov-form-switch.d.ts +11 -0
  647. package/dist/components/gov-form-switch.js +118 -0
  648. package/dist/components/gov-form-switch.js.map +1 -0
  649. package/dist/components/gov-grid.d.ts +11 -0
  650. package/dist/components/gov-grid.js +51 -0
  651. package/dist/components/gov-grid.js.map +1 -0
  652. package/dist/components/gov-icon.d.ts +11 -0
  653. package/dist/components/gov-icon.js +8 -0
  654. package/dist/components/gov-icon.js.map +1 -0
  655. package/dist/components/gov-icon2.js +128 -0
  656. package/dist/components/gov-icon2.js.map +1 -0
  657. package/dist/components/gov-message.d.ts +11 -0
  658. package/dist/components/gov-message.js +56 -0
  659. package/dist/components/gov-message.js.map +1 -0
  660. package/dist/components/gov-modal.d.ts +11 -0
  661. package/dist/components/gov-modal.js +142 -0
  662. package/dist/components/gov-modal.js.map +1 -0
  663. package/dist/components/gov-pagination.d.ts +11 -0
  664. package/dist/components/gov-pagination.js +181 -0
  665. package/dist/components/gov-pagination.js.map +1 -0
  666. package/dist/components/gov-prompt.d.ts +11 -0
  667. package/dist/components/gov-prompt.js +130 -0
  668. package/dist/components/gov-prompt.js.map +1 -0
  669. package/dist/components/gov-side-nav-item.d.ts +11 -0
  670. package/dist/components/gov-side-nav-item.js +134 -0
  671. package/dist/components/gov-side-nav-item.js.map +1 -0
  672. package/dist/components/gov-side-nav.d.ts +11 -0
  673. package/dist/components/gov-side-nav.js +73 -0
  674. package/dist/components/gov-side-nav.js.map +1 -0
  675. package/dist/components/gov-spacer.d.ts +11 -0
  676. package/dist/components/gov-spacer.js +72 -0
  677. package/dist/components/gov-spacer.js.map +1 -0
  678. package/dist/components/gov-statsbar-item.d.ts +11 -0
  679. package/dist/components/gov-statsbar-item.js +52 -0
  680. package/dist/components/gov-statsbar-item.js.map +1 -0
  681. package/dist/components/gov-statsbar.d.ts +11 -0
  682. package/dist/components/gov-statsbar.js +65 -0
  683. package/dist/components/gov-statsbar.js.map +1 -0
  684. package/dist/components/gov-stepper-item.d.ts +11 -0
  685. package/dist/components/gov-stepper-item.js +95 -0
  686. package/dist/components/gov-stepper-item.js.map +1 -0
  687. package/dist/components/gov-stepper.d.ts +11 -0
  688. package/dist/components/gov-stepper.js +61 -0
  689. package/dist/components/gov-stepper.js.map +1 -0
  690. package/dist/components/gov-tabs-item.d.ts +11 -0
  691. package/dist/components/gov-tabs-item.js +73 -0
  692. package/dist/components/gov-tabs-item.js.map +1 -0
  693. package/dist/components/gov-tabs.d.ts +11 -0
  694. package/dist/components/gov-tabs.js +230 -0
  695. package/dist/components/gov-tabs.js.map +1 -0
  696. package/dist/components/gov-tile.d.ts +11 -0
  697. package/dist/components/gov-tile.js +72 -0
  698. package/dist/components/gov-tile.js.map +1 -0
  699. package/dist/components/gov-toast.d.ts +11 -0
  700. package/dist/components/gov-toast.js +120 -0
  701. package/dist/components/gov-toast.js.map +1 -0
  702. package/dist/components/gov-tooltip-content.d.ts +11 -0
  703. package/dist/components/gov-tooltip-content.js +55 -0
  704. package/dist/components/gov-tooltip-content.js.map +1 -0
  705. package/dist/components/gov-tooltip.d.ts +11 -0
  706. package/dist/components/gov-tooltip.js +179 -0
  707. package/dist/components/gov-tooltip.js.map +1 -0
  708. package/dist/components/gov-wizzard-item.d.ts +11 -0
  709. package/dist/components/gov-wizzard-item.js +140 -0
  710. package/dist/components/gov-wizzard-item.js.map +1 -0
  711. package/dist/components/gov-wizzard.d.ts +11 -0
  712. package/dist/components/gov-wizzard.js +81 -0
  713. package/dist/components/gov-wizzard.js.map +1 -0
  714. package/dist/components/gov.log.js +24 -0
  715. package/dist/components/gov.log.js.map +1 -0
  716. package/dist/components/index.d.ts +70 -0
  717. package/dist/components/index.js +52 -0
  718. package/dist/components/index.js.map +1 -0
  719. package/dist/components/props.js +14 -0
  720. package/dist/components/props.js.map +1 -0
  721. package/dist/components/sizes.js +18 -0
  722. package/dist/components/sizes.js.map +1 -0
  723. package/dist/components/string.utils.js +20 -0
  724. package/dist/components/string.utils.js.map +1 -0
  725. package/dist/components/template.js +110 -0
  726. package/dist/components/template.js.map +1 -0
  727. package/dist/components/utils.js +73 -0
  728. package/dist/components/utils.js.map +1 -0
  729. package/dist/components/variants.js +13 -0
  730. package/dist/components/variants.js.map +1 -0
  731. package/dist/core/core.css +2 -0
  732. package/dist/core/core.esm.js +2 -0
  733. package/dist/core/core.esm.js.map +1 -0
  734. package/dist/core/index.esm.js +2 -0
  735. package/dist/core/index.esm.js.map +1 -0
  736. package/dist/core/p-04354bad.entry.js +2 -0
  737. package/dist/core/p-04354bad.entry.js.map +1 -0
  738. package/dist/core/p-089c220d.js +2 -0
  739. package/dist/core/p-089c220d.js.map +1 -0
  740. package/dist/core/p-0956d80f.js +2 -0
  741. package/dist/core/p-0956d80f.js.map +1 -0
  742. package/dist/core/p-15591728.js +2 -0
  743. package/dist/core/p-15591728.js.map +1 -0
  744. package/dist/core/p-1613841c.entry.js +2 -0
  745. package/dist/core/p-1613841c.entry.js.map +1 -0
  746. package/dist/core/p-176a5828.js +2 -0
  747. package/dist/core/p-176a5828.js.map +1 -0
  748. package/dist/core/p-1e70ab4e.js +2 -0
  749. package/dist/core/p-1e70ab4e.js.map +1 -0
  750. package/dist/core/p-203f5b10.js +2 -0
  751. package/dist/core/p-203f5b10.js.map +1 -0
  752. package/dist/core/p-21d55718.entry.js +2 -0
  753. package/dist/core/p-21d55718.entry.js.map +1 -0
  754. package/dist/core/p-2474a77a.js +2 -0
  755. package/dist/core/p-2474a77a.js.map +1 -0
  756. package/dist/core/p-27977727.js +2 -0
  757. package/dist/core/p-27977727.js.map +1 -0
  758. package/dist/core/p-2a3b91e8.entry.js +2 -0
  759. package/dist/core/p-2a3b91e8.entry.js.map +1 -0
  760. package/dist/core/p-300a45d2.entry.js +2 -0
  761. package/dist/core/p-300a45d2.entry.js.map +1 -0
  762. package/dist/core/p-32dc0fab.entry.js +2 -0
  763. package/dist/core/p-32dc0fab.entry.js.map +1 -0
  764. package/dist/core/p-3a72b75e.entry.js +2 -0
  765. package/dist/core/p-3a72b75e.entry.js.map +1 -0
  766. package/dist/core/p-3b39c3f4.entry.js +2 -0
  767. package/dist/core/p-3b39c3f4.entry.js.map +1 -0
  768. package/dist/core/p-3ef69b36.entry.js +2 -0
  769. package/dist/core/p-3ef69b36.entry.js.map +1 -0
  770. package/dist/core/p-42367e53.js +2 -0
  771. package/dist/core/p-42367e53.js.map +1 -0
  772. package/dist/core/p-45485d1c.js +2 -0
  773. package/dist/core/p-45485d1c.js.map +1 -0
  774. package/dist/core/p-468af26f.entry.js +2 -0
  775. package/dist/core/p-468af26f.entry.js.map +1 -0
  776. package/dist/core/p-487665c0.entry.js +2 -0
  777. package/dist/core/p-487665c0.entry.js.map +1 -0
  778. package/dist/core/p-4a7fff28.entry.js +2 -0
  779. package/dist/core/p-4a7fff28.entry.js.map +1 -0
  780. package/dist/core/p-5548d2ac.entry.js +2 -0
  781. package/dist/core/p-5548d2ac.entry.js.map +1 -0
  782. package/dist/core/p-55500e5a.js +2 -0
  783. package/dist/core/p-55500e5a.js.map +1 -0
  784. package/dist/core/p-55f49f1d.js +2 -0
  785. package/dist/core/p-55f49f1d.js.map +1 -0
  786. package/dist/core/p-5fbc2292.entry.js +2 -0
  787. package/dist/core/p-5fbc2292.entry.js.map +1 -0
  788. package/dist/core/p-6797db03.entry.js +2 -0
  789. package/dist/core/p-6797db03.entry.js.map +1 -0
  790. package/dist/core/p-732167df.entry.js +2 -0
  791. package/dist/core/p-732167df.entry.js.map +1 -0
  792. package/dist/core/p-75c62141.js +3 -0
  793. package/dist/core/p-75c62141.js.map +1 -0
  794. package/dist/core/p-805fd311.entry.js +2 -0
  795. package/dist/core/p-805fd311.entry.js.map +1 -0
  796. package/dist/core/p-81584adc.entry.js +2 -0
  797. package/dist/core/p-81584adc.entry.js.map +1 -0
  798. package/dist/core/p-84ec0533.entry.js +2 -0
  799. package/dist/core/p-84ec0533.entry.js.map +1 -0
  800. package/dist/core/p-899eff0b.entry.js +2 -0
  801. package/dist/core/p-899eff0b.entry.js.map +1 -0
  802. package/dist/core/p-8ffd33d7.entry.js +2 -0
  803. package/dist/core/p-8ffd33d7.entry.js.map +1 -0
  804. package/dist/core/p-9077d6f6.js +2 -0
  805. package/dist/core/p-9077d6f6.js.map +1 -0
  806. package/dist/core/p-930e20e9.entry.js +2 -0
  807. package/dist/core/p-930e20e9.entry.js.map +1 -0
  808. package/dist/core/p-97b6e139.entry.js +2 -0
  809. package/dist/core/p-97b6e139.entry.js.map +1 -0
  810. package/dist/core/p-98d0c03d.entry.js +2 -0
  811. package/dist/core/p-98d0c03d.entry.js.map +1 -0
  812. package/dist/core/p-9db35e06.js +2 -0
  813. package/dist/core/p-9db35e06.js.map +1 -0
  814. package/dist/core/p-a24dc455.js +2 -0
  815. package/dist/core/p-a24dc455.js.map +1 -0
  816. package/dist/core/p-a5dd376d.entry.js +2 -0
  817. package/dist/core/p-a5dd376d.entry.js.map +1 -0
  818. package/dist/core/p-a8320dd3.entry.js +2 -0
  819. package/dist/core/p-a8320dd3.entry.js.map +1 -0
  820. package/dist/core/p-a870e7db.entry.js +2 -0
  821. package/dist/core/p-a870e7db.entry.js.map +1 -0
  822. package/dist/core/p-aa54d288.entry.js +2 -0
  823. package/dist/core/p-aa54d288.entry.js.map +1 -0
  824. package/dist/core/p-ab33947a.entry.js +2 -0
  825. package/dist/core/p-ab33947a.entry.js.map +1 -0
  826. package/dist/core/p-b4a749e8.js +2 -0
  827. package/dist/core/p-b4a749e8.js.map +1 -0
  828. package/dist/core/p-bc13b48c.entry.js +2 -0
  829. package/dist/core/p-bc13b48c.entry.js.map +1 -0
  830. package/dist/core/p-bed96a18.entry.js +2 -0
  831. package/dist/core/p-bed96a18.entry.js.map +1 -0
  832. package/dist/core/p-c2bb9d74.entry.js +2 -0
  833. package/dist/core/p-c2bb9d74.entry.js.map +1 -0
  834. package/dist/core/p-c351eeab.entry.js +2 -0
  835. package/dist/core/p-c351eeab.entry.js.map +1 -0
  836. package/dist/core/p-c7723675.entry.js +2 -0
  837. package/dist/core/p-c7723675.entry.js.map +1 -0
  838. package/dist/core/p-d3714547.js +2 -0
  839. package/dist/core/p-d3714547.js.map +1 -0
  840. package/dist/core/p-d4aaff74.js +2 -0
  841. package/dist/core/p-d4aaff74.js.map +1 -0
  842. package/dist/core/p-d622559e.entry.js +2 -0
  843. package/dist/core/p-d622559e.entry.js.map +1 -0
  844. package/dist/core/p-daa82340.entry.js +2 -0
  845. package/dist/core/p-daa82340.entry.js.map +1 -0
  846. package/dist/core/p-e1b02f22.entry.js +2 -0
  847. package/dist/core/p-e1b02f22.entry.js.map +1 -0
  848. package/dist/core/p-e29a195b.js +2 -0
  849. package/dist/core/p-e29a195b.js.map +1 -0
  850. package/dist/core/p-e454c6a2.entry.js +2 -0
  851. package/dist/core/p-e454c6a2.entry.js.map +1 -0
  852. package/dist/core/p-e875b974.entry.js +2 -0
  853. package/dist/core/p-e875b974.entry.js.map +1 -0
  854. package/dist/core/p-ebd98b2d.entry.js +2 -0
  855. package/dist/core/p-ebd98b2d.entry.js.map +1 -0
  856. package/dist/core/p-ecf9700e.entry.js +2 -0
  857. package/dist/core/p-ecf9700e.entry.js.map +1 -0
  858. package/dist/core/p-ee0bfc25.js +2 -0
  859. package/dist/core/p-ee0bfc25.js.map +1 -0
  860. package/dist/core/p-f1ccdb26.entry.js +2 -0
  861. package/dist/core/p-f1ccdb26.entry.js.map +1 -0
  862. package/dist/core/p-f2debcea.entry.js +2 -0
  863. package/dist/core/p-f2debcea.entry.js.map +1 -0
  864. package/dist/core/p-f5aabaaf.entry.js +2 -0
  865. package/dist/core/p-f5aabaaf.entry.js.map +1 -0
  866. package/dist/core/p-f6f34f80.js +2 -0
  867. package/dist/core/p-f6f34f80.js.map +1 -0
  868. package/dist/core/p-f7283930.entry.js +2 -0
  869. package/dist/core/p-f7283930.entry.js.map +1 -0
  870. package/dist/core/p-f9320f1e.js +2 -0
  871. package/dist/core/p-f9320f1e.js.map +1 -0
  872. package/dist/core/p-fc243d75.entry.js +2 -0
  873. package/dist/core/p-fc243d75.entry.js.map +1 -0
  874. package/dist/core/p-feba699a.entry.js +2 -0
  875. package/dist/core/p-feba699a.entry.js.map +1 -0
  876. package/dist/custom-elements/index.d.ts +333 -0
  877. package/dist/custom-elements/index.js +2 -0
  878. package/dist/custom-elements/index.js.map +1 -0
  879. package/dist/esm/constants-0072cbed.js +18 -0
  880. package/dist/esm/constants-0072cbed.js.map +1 -0
  881. package/dist/esm/constants-050bd135.js +14 -0
  882. package/dist/esm/constants-050bd135.js.map +1 -0
  883. package/dist/esm/constants-0ba692b3.js +23 -0
  884. package/dist/esm/constants-0ba692b3.js.map +1 -0
  885. package/dist/esm/constants-1f1d1d3e.js +16 -0
  886. package/dist/esm/constants-1f1d1d3e.js.map +1 -0
  887. package/dist/esm/constants-3ca24227.js +18 -0
  888. package/dist/esm/constants-3ca24227.js.map +1 -0
  889. package/dist/esm/constants-49dc75e2.js +18 -0
  890. package/dist/esm/constants-49dc75e2.js.map +1 -0
  891. package/dist/esm/constants-5c1382a4.js +8 -0
  892. package/dist/esm/constants-5c1382a4.js.map +1 -0
  893. package/dist/esm/constants-7a8adcd1.js +20 -0
  894. package/dist/esm/constants-7a8adcd1.js.map +1 -0
  895. package/dist/esm/constants-8729f0c0.js +18 -0
  896. package/dist/esm/constants-8729f0c0.js.map +1 -0
  897. package/dist/esm/constants-9aaa1aa0.js +12 -0
  898. package/dist/esm/constants-9aaa1aa0.js.map +1 -0
  899. package/dist/esm/constants-b5974ead.js +18 -0
  900. package/dist/esm/constants-b5974ead.js.map +1 -0
  901. package/dist/esm/constants-ba13b28f.js +17 -0
  902. package/dist/esm/constants-ba13b28f.js.map +1 -0
  903. package/dist/esm/constants-fcd1143c.js +19 -0
  904. package/dist/esm/constants-fcd1143c.js.map +1 -0
  905. package/dist/esm/core.js +19 -0
  906. package/dist/esm/core.js.map +1 -0
  907. package/dist/esm/form-16cd7ae0.js +85 -0
  908. package/dist/esm/form-16cd7ae0.js.map +1 -0
  909. package/dist/esm/gov-accordion-item.entry.js +102 -0
  910. package/dist/esm/gov-accordion-item.entry.js.map +1 -0
  911. package/dist/esm/gov-accordion.entry.js +67 -0
  912. package/dist/esm/gov-accordion.entry.js.map +1 -0
  913. package/dist/esm/gov-alert.entry.js +48 -0
  914. package/dist/esm/gov-alert.entry.js.map +1 -0
  915. package/dist/esm/gov-app.entry.js +7174 -0
  916. package/dist/esm/gov-app.entry.js.map +1 -0
  917. package/dist/esm/gov-attachments_3.entry.js +108 -0
  918. package/dist/esm/gov-attachments_3.entry.js.map +1 -0
  919. package/dist/esm/gov-backdrop.entry.js +43 -0
  920. package/dist/esm/gov-backdrop.entry.js.map +1 -0
  921. package/dist/esm/gov-badge.entry.js +79 -0
  922. package/dist/esm/gov-badge.entry.js.map +1 -0
  923. package/dist/esm/gov-button.entry.js +147 -0
  924. package/dist/esm/gov-button.entry.js.map +1 -0
  925. package/dist/esm/gov-card.entry.js +106 -0
  926. package/dist/esm/gov-card.entry.js.map +1 -0
  927. package/dist/esm/gov-container.entry.js +26 -0
  928. package/dist/esm/gov-container.entry.js.map +1 -0
  929. package/dist/esm/gov-cookiebar.entry.js +29 -0
  930. package/dist/esm/gov-cookiebar.entry.js.map +1 -0
  931. package/dist/esm/gov-empty.entry.js +27 -0
  932. package/dist/esm/gov-empty.entry.js.map +1 -0
  933. package/dist/esm/gov-error-code.entry.js +27 -0
  934. package/dist/esm/gov-error-code.entry.js.map +1 -0
  935. package/dist/esm/gov-form-autocomplete.entry.js +173 -0
  936. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -0
  937. package/dist/esm/gov-form-checkbox.entry.js +96 -0
  938. package/dist/esm/gov-form-checkbox.entry.js.map +1 -0
  939. package/dist/esm/gov-form-control.entry.js +83 -0
  940. package/dist/esm/gov-form-control.entry.js.map +1 -0
  941. package/dist/esm/gov-form-dropdown.entry.js +17 -0
  942. package/dist/esm/gov-form-dropdown.entry.js.map +1 -0
  943. package/dist/esm/gov-form-file.entry.js +175 -0
  944. package/dist/esm/gov-form-file.entry.js.map +1 -0
  945. package/dist/esm/gov-form-group.entry.js +21 -0
  946. package/dist/esm/gov-form-group.entry.js.map +1 -0
  947. package/dist/esm/gov-form-input.entry.js +146 -0
  948. package/dist/esm/gov-form-input.entry.js.map +1 -0
  949. package/dist/esm/gov-form-label.entry.js +20 -0
  950. package/dist/esm/gov-form-label.entry.js.map +1 -0
  951. package/dist/esm/gov-form-multi-select.entry.js +182 -0
  952. package/dist/esm/gov-form-multi-select.entry.js.map +1 -0
  953. package/dist/esm/gov-form-radio.entry.js +96 -0
  954. package/dist/esm/gov-form-radio.entry.js.map +1 -0
  955. package/dist/esm/gov-form-search.entry.js +57 -0
  956. package/dist/esm/gov-form-search.entry.js.map +1 -0
  957. package/dist/esm/gov-form-select.entry.js +117 -0
  958. package/dist/esm/gov-form-select.entry.js.map +1 -0
  959. package/dist/esm/gov-form-switch.entry.js +93 -0
  960. package/dist/esm/gov-form-switch.entry.js.map +1 -0
  961. package/dist/esm/gov-grid.entry.js +31 -0
  962. package/dist/esm/gov-grid.entry.js.map +1 -0
  963. package/dist/esm/gov-icon.entry.js +107 -0
  964. package/dist/esm/gov-icon.entry.js.map +1 -0
  965. package/dist/esm/gov-message.entry.js +37 -0
  966. package/dist/esm/gov-message.entry.js.map +1 -0
  967. package/dist/esm/gov-modal.entry.js +95 -0
  968. package/dist/esm/gov-modal.entry.js.map +1 -0
  969. package/dist/esm/gov-pagination.entry.js +141 -0
  970. package/dist/esm/gov-pagination.entry.js.map +1 -0
  971. package/dist/esm/gov-prompt.entry.js +95 -0
  972. package/dist/esm/gov-prompt.entry.js.map +1 -0
  973. package/dist/esm/gov-side-nav-item.entry.js +90 -0
  974. package/dist/esm/gov-side-nav-item.entry.js.map +1 -0
  975. package/dist/esm/gov-side-nav.entry.js +52 -0
  976. package/dist/esm/gov-side-nav.entry.js.map +1 -0
  977. package/dist/esm/gov-spacer.entry.js +52 -0
  978. package/dist/esm/gov-spacer.entry.js.map +1 -0
  979. package/dist/esm/gov-statsbar-item.entry.js +33 -0
  980. package/dist/esm/gov-statsbar-item.entry.js.map +1 -0
  981. package/dist/esm/gov-statsbar.entry.js +45 -0
  982. package/dist/esm/gov-statsbar.entry.js.map +1 -0
  983. package/dist/esm/gov-stepper-item.entry.js +71 -0
  984. package/dist/esm/gov-stepper-item.entry.js.map +1 -0
  985. package/dist/esm/gov-stepper.entry.js +43 -0
  986. package/dist/esm/gov-stepper.entry.js.map +1 -0
  987. package/dist/esm/gov-tabs-item.entry.js +48 -0
  988. package/dist/esm/gov-tabs-item.entry.js.map +1 -0
  989. package/dist/esm/gov-tabs.entry.js +184 -0
  990. package/dist/esm/gov-tabs.entry.js.map +1 -0
  991. package/dist/esm/gov-tile.entry.js +44 -0
  992. package/dist/esm/gov-tile.entry.js.map +1 -0
  993. package/dist/esm/gov-toast.entry.js +84 -0
  994. package/dist/esm/gov-toast.entry.js.map +1 -0
  995. package/dist/esm/gov-tooltip-content.entry.js +37 -0
  996. package/dist/esm/gov-tooltip-content.entry.js.map +1 -0
  997. package/dist/esm/gov-tooltip.entry.js +153 -0
  998. package/dist/esm/gov-tooltip.entry.js.map +1 -0
  999. package/dist/esm/gov-wizzard-item.entry.js +104 -0
  1000. package/dist/esm/gov-wizzard-item.entry.js.map +1 -0
  1001. package/dist/esm/gov-wizzard.entry.js +62 -0
  1002. package/dist/esm/gov-wizzard.entry.js.map +1 -0
  1003. package/dist/esm/gov.log-3b6eb67c.js +24 -0
  1004. package/dist/esm/gov.log-3b6eb67c.js.map +1 -0
  1005. package/dist/esm/index-e498b7fa.js +2256 -0
  1006. package/dist/esm/index-e498b7fa.js.map +1 -0
  1007. package/dist/esm/index.js +3 -0
  1008. package/dist/esm/index.js.map +1 -0
  1009. package/dist/esm/loader.js +19 -0
  1010. package/dist/esm/loader.js.map +1 -0
  1011. package/dist/esm/polyfills/core-js.js +11 -0
  1012. package/dist/esm/polyfills/css-shim.js +1 -0
  1013. package/dist/esm/polyfills/dom.js +79 -0
  1014. package/dist/esm/polyfills/es5-html-element.js +1 -0
  1015. package/dist/esm/polyfills/index.js +34 -0
  1016. package/dist/esm/polyfills/system.js +6 -0
  1017. package/dist/esm/props-5a1380a0.js +14 -0
  1018. package/dist/esm/props-5a1380a0.js.map +1 -0
  1019. package/dist/esm/sizes-6c5943b4.js +18 -0
  1020. package/dist/esm/sizes-6c5943b4.js.map +1 -0
  1021. package/dist/esm/string.utils-858e1565.js +20 -0
  1022. package/dist/esm/string.utils-858e1565.js.map +1 -0
  1023. package/dist/esm/template-c616c14f.js +110 -0
  1024. package/dist/esm/template-c616c14f.js.map +1 -0
  1025. package/dist/esm/utils-43789c71.js +14 -0
  1026. package/dist/esm/utils-43789c71.js.map +1 -0
  1027. package/dist/esm/variants-3bade035.js +13 -0
  1028. package/dist/esm/variants-3bade035.js.map +1 -0
  1029. package/dist/esm/win-fe20a39d.js +62 -0
  1030. package/dist/esm/win-fe20a39d.js.map +1 -0
  1031. package/dist/hydrate/index.d.ts +217 -0
  1032. package/dist/hydrate/index.js +18167 -0
  1033. package/dist/hydrate/package.json +6 -0
  1034. package/dist/index.cjs.js +1 -0
  1035. package/dist/index.js +1 -0
  1036. package/dist/stencil.config.js +61 -0
  1037. package/dist/stencil.config.js.map +1 -0
  1038. package/dist/types/Users/iwory/iWork/asseco/mv/gov-design-system-ce/packages/core/.stencil/packages/core/stencil.config.d.ts +2 -0
  1039. package/dist/types/components/gov-accordion/constants.d.ts +16 -0
  1040. package/dist/types/components/gov-accordion/gov-accordion-item.d.d.ts +4 -0
  1041. package/dist/types/components/gov-accordion/gov-accordion-item.d.ts +66 -0
  1042. package/dist/types/components/gov-accordion/gov-accordion.d.ts +35 -0
  1043. package/dist/types/components/gov-accordion/gov-accordion.stories.d.ts +43 -0
  1044. package/dist/types/components/gov-alert/constants.d.ts +10 -0
  1045. package/dist/types/components/gov-alert/gov-alert.d.ts +30 -0
  1046. package/dist/types/components/gov-alert/gov-alert.stories.d.ts +38 -0
  1047. package/dist/types/components/gov-app/gov-app.d.ts +31 -0
  1048. package/dist/types/components/gov-attachments/constants.d.ts +8 -0
  1049. package/dist/types/components/gov-attachments/gov-attachments-item.d.d.ts +4 -0
  1050. package/dist/types/components/gov-attachments/gov-attachments-item.d.ts +22 -0
  1051. package/dist/types/components/gov-attachments/gov-attachments.d.ts +17 -0
  1052. package/dist/types/components/gov-backdrop/constants.d.ts +3 -0
  1053. package/dist/types/components/gov-backdrop/gov-backdrop.d.ts +25 -0
  1054. package/dist/types/components/gov-badge/constants.d.ts +10 -0
  1055. package/dist/types/components/gov-badge/gov-badge.d.ts +63 -0
  1056. package/dist/types/components/gov-badge/gov-badge.stories.d.ts +48 -0
  1057. package/dist/types/components/gov-button/constants.d.ts +19 -0
  1058. package/dist/types/components/gov-button/gov-button.d.ts +161 -0
  1059. package/dist/types/components/gov-button/gov-button.stories.d.ts +65 -0
  1060. package/dist/types/components/gov-card/constants.d.ts +12 -0
  1061. package/dist/types/components/gov-card/gov-card.d.d.ts +4 -0
  1062. package/dist/types/components/gov-card/gov-card.d.ts +59 -0
  1063. package/dist/types/components/gov-card/gov-card.stories.d.ts +45 -0
  1064. package/dist/types/components/gov-container/constants.d.ts +3 -0
  1065. package/dist/types/components/gov-container/gov-container.d.ts +5 -0
  1066. package/dist/types/components/gov-container/gov-container.stories.d.ts +5 -0
  1067. package/dist/types/components/gov-cookiebar/constants.d.ts +8 -0
  1068. package/dist/types/components/gov-cookiebar/gov-cookiebar.d.ts +7 -0
  1069. package/dist/types/components/gov-empty/constants.d.ts +6 -0
  1070. package/dist/types/components/gov-empty/gov-empty.d.ts +6 -0
  1071. package/dist/types/components/gov-empty/gov-empty.stories.d.ts +26 -0
  1072. package/dist/types/components/gov-error-code/constants.d.ts +6 -0
  1073. package/dist/types/components/gov-error-code/gov-error-code.d.ts +6 -0
  1074. package/dist/types/components/gov-error-code/gov-error-code.stories.d.ts +21 -0
  1075. package/dist/types/components/gov-form/autocomplete/constants.d.ts +11 -0
  1076. package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +132 -0
  1077. package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.stories.d.ts +37 -0
  1078. package/dist/types/components/gov-form/checkbox/constants.d.ts +7 -0
  1079. package/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +76 -0
  1080. package/dist/types/components/gov-form/checkbox/gov-form-checkbox.stories.d.ts +29 -0
  1081. package/dist/types/components/gov-form/control/constants.d.ts +7 -0
  1082. package/dist/types/components/gov-form/control/gov-form-control.d.ts +38 -0
  1083. package/dist/types/components/gov-form/file/constants.d.ts +9 -0
  1084. package/dist/types/components/gov-form/file/gov-form-file.d.ts +113 -0
  1085. package/dist/types/components/gov-form/gov-form-dropdown.d.ts +3 -0
  1086. package/dist/types/components/gov-form/group/constants.d.ts +3 -0
  1087. package/dist/types/components/gov-form/group/gov-form-group.d.ts +3 -0
  1088. package/dist/types/components/gov-form/input/constants.d.ts +13 -0
  1089. package/dist/types/components/gov-form/input/gov-form-input.d.ts +165 -0
  1090. package/dist/types/components/gov-form/input/gov-form-input.stories.d.ts +42 -0
  1091. package/dist/types/components/gov-form/label/constants.d.ts +4 -0
  1092. package/dist/types/components/gov-form/label/gov-form-label.d.ts +12 -0
  1093. package/dist/types/components/gov-form/message/constants.d.ts +8 -0
  1094. package/dist/types/components/gov-form/message/gov-form-message.d.ts +19 -0
  1095. package/dist/types/components/gov-form/message/gov-form-message.stories.d.ts +24 -0
  1096. package/dist/types/components/gov-form/radio/constants.d.ts +9 -0
  1097. package/dist/types/components/gov-form/radio/gov-form-radio.d.ts +76 -0
  1098. package/dist/types/components/gov-form/search/constants.d.ts +11 -0
  1099. package/dist/types/components/gov-form/search/gov-form-search.d.ts +16 -0
  1100. package/dist/types/components/gov-form/select/constants.d.ts +16 -0
  1101. package/dist/types/components/gov-form/select/gov-form-multi-select.d.ts +105 -0
  1102. package/dist/types/components/gov-form/select/gov-form-multi-select.stories.d.ts +31 -0
  1103. package/dist/types/components/gov-form/select/gov-form-select.d.ts +101 -0
  1104. package/dist/types/components/gov-form/select/gov-form-select.stories.d.ts +31 -0
  1105. package/dist/types/components/gov-form/switch/constants.d.ts +9 -0
  1106. package/dist/types/components/gov-form/switch/gov-form-switch.d.ts +75 -0
  1107. package/dist/types/components/gov-form/switch/gov-form-switch.stories.d.ts +29 -0
  1108. package/dist/types/components/gov-grid/constants.d.ts +3 -0
  1109. package/dist/types/components/gov-grid/gov-grid.d.ts +10 -0
  1110. package/dist/types/components/gov-icon/constants.d.ts +6 -0
  1111. package/dist/types/components/gov-icon/gov-icon.d.ts +22 -0
  1112. package/dist/types/components/gov-icon/list.d.ts +3 -0
  1113. package/dist/types/components/gov-message/constants.d.ts +9 -0
  1114. package/dist/types/components/gov-message/gov-message.d.ts +12 -0
  1115. package/dist/types/components/gov-message/gov-message.stories.d.ts +33 -0
  1116. package/dist/types/components/gov-modal/constants.d.ts +13 -0
  1117. package/dist/types/components/gov-modal/gov-modal.d.ts +63 -0
  1118. package/dist/types/components/gov-modal/gov-modal.stories.d.ts +25 -0
  1119. package/dist/types/components/gov-pagination/constants.d.ts +8 -0
  1120. package/dist/types/components/gov-pagination/gov-pagination.d.ts +57 -0
  1121. package/dist/types/components/gov-pagination/pagination.d.ts +12 -0
  1122. package/dist/types/components/gov-promp/constants.d.ts +11 -0
  1123. package/dist/types/components/gov-promp/gov-prompt.d.ts +63 -0
  1124. package/dist/types/components/gov-side-nav/constants.d.ts +14 -0
  1125. package/dist/types/components/gov-side-nav/gov-side-nav-item.d.d.ts +4 -0
  1126. package/dist/types/components/gov-side-nav/gov-side-nav-item.d.ts +67 -0
  1127. package/dist/types/components/gov-side-nav/gov-side-nav.d.ts +31 -0
  1128. package/dist/types/components/gov-spacer/constants.d.ts +8 -0
  1129. package/dist/types/components/gov-spacer/gov-spacer.d.ts +9 -0
  1130. package/dist/types/components/gov-spacer/gov-spacer.stories.d.ts +15 -0
  1131. package/dist/types/components/gov-statsbar/constants.d.ts +14 -0
  1132. package/dist/types/components/gov-statsbar/gov-statsbar-item.d.ts +11 -0
  1133. package/dist/types/components/gov-statsbar/gov-statsbar.d.ts +11 -0
  1134. package/dist/types/components/gov-statsbar/gov-statsbar.stories.d.ts +31 -0
  1135. package/dist/types/components/gov-stepper/constants.d.ts +17 -0
  1136. package/dist/types/components/gov-stepper/gov-stepper-item.d.d.ts +4 -0
  1137. package/dist/types/components/gov-stepper/gov-stepper-item.d.ts +40 -0
  1138. package/dist/types/components/gov-stepper/gov-stepper.d.ts +17 -0
  1139. package/dist/types/components/gov-tabs/constants.d.ts +19 -0
  1140. package/dist/types/components/gov-tabs/gov-tabs-item.d.ts +36 -0
  1141. package/dist/types/components/gov-tabs/gov-tabs.d.ts +67 -0
  1142. package/dist/types/components/gov-tabs/gov-tabs.stories.d.ts +10 -0
  1143. package/dist/types/components/gov-tile/constants.d.ts +7 -0
  1144. package/dist/types/components/gov-tile/gov-tile.d.ts +21 -0
  1145. package/dist/types/components/gov-toast/constants.d.ts +10 -0
  1146. package/dist/types/components/gov-toast/gov-toast.d.ts +34 -0
  1147. package/dist/types/components/gov-toast/gov-toast.stories.d.ts +47 -0
  1148. package/dist/types/components/gov-tooltip/constants.d.ts +20 -0
  1149. package/dist/types/components/gov-tooltip/gov-tooltip-content.d.ts +10 -0
  1150. package/dist/types/components/gov-tooltip/gov-tooltip.d.ts +50 -0
  1151. package/dist/types/components/gov-tooltip/gov-tooltip.stories.d.ts +38 -0
  1152. package/dist/types/components/gov-wizzard/constants.d.ts +17 -0
  1153. package/dist/types/components/gov-wizzard/gov-wizzard-item.d.d.ts +4 -0
  1154. package/dist/types/components/gov-wizzard/gov-wizzard-item.d.ts +65 -0
  1155. package/dist/types/components/gov-wizzard/gov-wizzard.d.ts +32 -0
  1156. package/dist/types/components/gov-wizzard/gov-wizzard.stories.d.ts +52 -0
  1157. package/dist/types/components.d.ts +3422 -0
  1158. package/dist/types/core/constants/breakpoint.d.ts +8 -0
  1159. package/dist/types/core/constants/sizes.d.ts +13 -0
  1160. package/dist/types/core/constants/variants.d.ts +8 -0
  1161. package/dist/types/helpers/Dom/form.d.ts +3 -0
  1162. package/dist/types/helpers/Dom/template.d.ts +10 -0
  1163. package/dist/types/helpers/Dom/win.d.ts +1 -0
  1164. package/dist/types/helpers/Log/gov.log.d.ts +8 -0
  1165. package/dist/types/helpers/Validate/props.d.ts +1 -0
  1166. package/dist/types/helpers/Validate/wcag.d.ts +4 -0
  1167. package/dist/types/index.d.ts +1 -0
  1168. package/dist/types/pages/Accordion.d.ts +3 -0
  1169. package/dist/types/pages/Alert.d.ts +3 -0
  1170. package/dist/types/pages/Badge.d.ts +3 -0
  1171. package/dist/types/pages/Button.d.ts +3 -0
  1172. package/dist/types/pages/Card.d.ts +3 -0
  1173. package/dist/types/pages/Cookiebar.d.ts +3 -0
  1174. package/dist/types/pages/Empty.d.ts +3 -0
  1175. package/dist/types/pages/Error.d.ts +3 -0
  1176. package/dist/types/pages/FormLabel.d.ts +3 -0
  1177. package/dist/types/pages/FormMessage.d.ts +3 -0
  1178. package/dist/types/pages/Forms.d.ts +3 -0
  1179. package/dist/types/pages/FormsRestructure.d.ts +3 -0
  1180. package/dist/types/pages/Home.d.ts +3 -0
  1181. package/dist/types/pages/Message.d.ts +3 -0
  1182. package/dist/types/pages/Modal.d.ts +3 -0
  1183. package/dist/types/pages/Pagination.d.ts +3 -0
  1184. package/dist/types/pages/Prompt.d.ts +3 -0
  1185. package/dist/types/pages/SideNav.d.ts +3 -0
  1186. package/dist/types/pages/Spacer.d.ts +3 -0
  1187. package/dist/types/pages/Statsbar.d.ts +3 -0
  1188. package/dist/types/pages/Stepper.d.ts +3 -0
  1189. package/dist/types/pages/Tabs.d.ts +3 -0
  1190. package/dist/types/pages/Tile.d.ts +3 -0
  1191. package/dist/types/pages/ToastMessage.d.ts +3 -0
  1192. package/dist/types/pages/Tooltip.d.ts +3 -0
  1193. package/dist/types/pages/Typography.d.ts +3 -0
  1194. package/dist/types/pages/Wizzard.d.ts +3 -0
  1195. package/dist/types/stencil-public-runtime.d.ts +1581 -0
  1196. package/dist/types/utils/bool.utils.d.ts +1 -0
  1197. package/dist/types/utils/ds.utils.d.ts +1 -0
  1198. package/dist/types/utils/file.utils.d.ts +3 -0
  1199. package/dist/types/utils/icon.utils.d.ts +4 -0
  1200. package/dist/types/utils/number.utils.d.ts +1 -0
  1201. package/dist/types/utils/string.utils.d.ts +3 -0
  1202. package/dist/types/utils/utils.d.ts +3 -0
  1203. package/loader/cdn.js +3 -0
  1204. package/loader/index.cjs.js +3 -0
  1205. package/loader/index.d.ts +12 -0
  1206. package/loader/index.es2017.js +3 -0
  1207. package/loader/index.js +4 -0
  1208. package/loader/package.json +11 -0
  1209. package/package.json +25 -0
@@ -0,0 +1,2285 @@
1
+ 'use strict';
2
+
3
+ function _interopNamespace(e) {
4
+ if (e && e.__esModule) return e;
5
+ var n = Object.create(null);
6
+ if (e) {
7
+ Object.keys(e).forEach(function (k) {
8
+ if (k !== 'default') {
9
+ var d = Object.getOwnPropertyDescriptor(e, k);
10
+ Object.defineProperty(n, k, d.get ? d : {
11
+ enumerable: true,
12
+ get: function () {
13
+ return e[k];
14
+ }
15
+ });
16
+ }
17
+ });
18
+ }
19
+ n['default'] = e;
20
+ return Object.freeze(n);
21
+ }
22
+
23
+ const NAMESPACE = 'core';
24
+
25
+ /**
26
+ * Virtual DOM patching algorithm based on Snabbdom by
27
+ * Simon Friis Vindum (@paldepind)
28
+ * Licensed under the MIT License
29
+ * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
30
+ *
31
+ * Modified for Stencil's renderer and slot projection
32
+ */
33
+ let scopeId;
34
+ let contentRef;
35
+ let hostTagName;
36
+ let useNativeShadowDom = false;
37
+ let checkSlotFallbackVisibility = false;
38
+ let checkSlotRelocate = false;
39
+ let isSvgMode = false;
40
+ let queuePending = false;
41
+ const getAssetPath = (path) => {
42
+ const assetUrl = new URL(path, plt.$resourcesUrl$);
43
+ return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
44
+ };
45
+ const createTime = (fnName, tagName = '') => {
46
+ {
47
+ return () => {
48
+ return;
49
+ };
50
+ }
51
+ };
52
+ const uniqueTime = (key, measureText) => {
53
+ {
54
+ return () => {
55
+ return;
56
+ };
57
+ }
58
+ };
59
+ const CONTENT_REF_ID = 'r';
60
+ const ORG_LOCATION_ID = 'o';
61
+ const SLOT_NODE_ID = 's';
62
+ const TEXT_NODE_ID = 't';
63
+ const HYDRATE_ID = 's-id';
64
+ const HYDRATED_STYLE_ID = 'sty-id';
65
+ const HYDRATE_CHILD_ID = 'c-id';
66
+ const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
67
+ /**
68
+ * Default style mode id
69
+ */
70
+ /**
71
+ * Reusable empty obj/array
72
+ * Don't add values to these!!
73
+ */
74
+ const EMPTY_OBJ = {};
75
+ const isDef = (v) => v != null;
76
+ const isComplexType = (o) => {
77
+ // https://jsperf.com/typeof-fn-object/5
78
+ o = typeof o;
79
+ return o === 'object' || o === 'function';
80
+ };
81
+ /**
82
+ * Production h() function based on Preact by
83
+ * Jason Miller (@developit)
84
+ * Licensed under the MIT License
85
+ * https://github.com/developit/preact/blob/master/LICENSE
86
+ *
87
+ * Modified for Stencil's compiler and vdom
88
+ */
89
+ // const stack: any[] = [];
90
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
91
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
92
+ const h = (nodeName, vnodeData, ...children) => {
93
+ let child = null;
94
+ let slotName = null;
95
+ let simple = false;
96
+ let lastSimple = false;
97
+ const vNodeChildren = [];
98
+ const walk = (c) => {
99
+ for (let i = 0; i < c.length; i++) {
100
+ child = c[i];
101
+ if (Array.isArray(child)) {
102
+ walk(child);
103
+ }
104
+ else if (child != null && typeof child !== 'boolean') {
105
+ if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
106
+ child = String(child);
107
+ }
108
+ if (simple && lastSimple) {
109
+ // If the previous child was simple (string), we merge both
110
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
111
+ }
112
+ else {
113
+ // Append a new vNode, if it's text, we create a text vNode
114
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
115
+ }
116
+ lastSimple = simple;
117
+ }
118
+ }
119
+ };
120
+ walk(children);
121
+ if (vnodeData) {
122
+ if (vnodeData.name) {
123
+ slotName = vnodeData.name;
124
+ }
125
+ {
126
+ const classData = vnodeData.className || vnodeData.class;
127
+ if (classData) {
128
+ vnodeData.class =
129
+ typeof classData !== 'object'
130
+ ? classData
131
+ : Object.keys(classData)
132
+ .filter((k) => classData[k])
133
+ .join(' ');
134
+ }
135
+ }
136
+ }
137
+ if (typeof nodeName === 'function') {
138
+ // nodeName is a functional component
139
+ return nodeName(vnodeData === null ? {} : vnodeData, vNodeChildren, vdomFnUtils);
140
+ }
141
+ const vnode = newVNode(nodeName, null);
142
+ vnode.$attrs$ = vnodeData;
143
+ if (vNodeChildren.length > 0) {
144
+ vnode.$children$ = vNodeChildren;
145
+ }
146
+ {
147
+ vnode.$name$ = slotName;
148
+ }
149
+ return vnode;
150
+ };
151
+ const newVNode = (tag, text) => {
152
+ const vnode = {
153
+ $flags$: 0,
154
+ $tag$: tag,
155
+ $text$: text,
156
+ $elm$: null,
157
+ $children$: null,
158
+ };
159
+ {
160
+ vnode.$attrs$ = null;
161
+ }
162
+ {
163
+ vnode.$name$ = null;
164
+ }
165
+ return vnode;
166
+ };
167
+ const Host = {};
168
+ const isHost = (node) => node && node.$tag$ === Host;
169
+ const vdomFnUtils = {
170
+ forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
171
+ map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
172
+ };
173
+ const convertToPublic = (node) => ({
174
+ vattrs: node.$attrs$,
175
+ vchildren: node.$children$,
176
+ vkey: node.$key$,
177
+ vname: node.$name$,
178
+ vtag: node.$tag$,
179
+ vtext: node.$text$,
180
+ });
181
+ const convertToPrivate = (node) => {
182
+ if (typeof node.vtag === 'function') {
183
+ const vnodeData = Object.assign({}, node.vattrs);
184
+ if (node.vkey) {
185
+ vnodeData.key = node.vkey;
186
+ }
187
+ if (node.vname) {
188
+ vnodeData.name = node.vname;
189
+ }
190
+ return h(node.vtag, vnodeData, ...(node.vchildren || []));
191
+ }
192
+ const vnode = newVNode(node.vtag, node.vtext);
193
+ vnode.$attrs$ = node.vattrs;
194
+ vnode.$children$ = node.vchildren;
195
+ vnode.$key$ = node.vkey;
196
+ vnode.$name$ = node.vname;
197
+ return vnode;
198
+ };
199
+ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
200
+ const endHydrate = createTime('hydrateClient', tagName);
201
+ const shadowRoot = hostElm.shadowRoot;
202
+ const childRenderNodes = [];
203
+ const slotNodes = [];
204
+ const shadowRootNodes = shadowRoot ? [] : null;
205
+ const vnode = (hostRef.$vnode$ = newVNode(tagName, null));
206
+ if (!plt.$orgLocNodes$) {
207
+ initializeDocumentHydrate(doc.body, (plt.$orgLocNodes$ = new Map()));
208
+ }
209
+ hostElm[HYDRATE_ID] = hostId;
210
+ hostElm.removeAttribute(HYDRATE_ID);
211
+ clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
212
+ childRenderNodes.map((c) => {
213
+ const orgLocationId = c.$hostId$ + '.' + c.$nodeId$;
214
+ const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
215
+ const node = c.$elm$;
216
+ if (orgLocationNode && supportsShadow && orgLocationNode['s-en'] === '') {
217
+ orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
218
+ }
219
+ if (!shadowRoot) {
220
+ node['s-hn'] = tagName;
221
+ if (orgLocationNode) {
222
+ node['s-ol'] = orgLocationNode;
223
+ node['s-ol']['s-nr'] = node;
224
+ }
225
+ }
226
+ plt.$orgLocNodes$.delete(orgLocationId);
227
+ });
228
+ if (shadowRoot) {
229
+ shadowRootNodes.map((shadowRootNode) => {
230
+ if (shadowRootNode) {
231
+ shadowRoot.appendChild(shadowRootNode);
232
+ }
233
+ });
234
+ }
235
+ endHydrate();
236
+ };
237
+ const clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId) => {
238
+ let childNodeType;
239
+ let childIdSplt;
240
+ let childVNode;
241
+ let i;
242
+ if (node.nodeType === 1 /* NODE_TYPE.ElementNode */) {
243
+ childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
244
+ if (childNodeType) {
245
+ // got the node data from the element's attribute
246
+ // `${hostId}.${nodeId}.${depth}.${index}`
247
+ childIdSplt = childNodeType.split('.');
248
+ if (childIdSplt[0] === hostId || childIdSplt[0] === '0') {
249
+ childVNode = {
250
+ $flags$: 0,
251
+ $hostId$: childIdSplt[0],
252
+ $nodeId$: childIdSplt[1],
253
+ $depth$: childIdSplt[2],
254
+ $index$: childIdSplt[3],
255
+ $tag$: node.tagName.toLowerCase(),
256
+ $elm$: node,
257
+ $attrs$: null,
258
+ $children$: null,
259
+ $key$: null,
260
+ $name$: null,
261
+ $text$: null,
262
+ };
263
+ childRenderNodes.push(childVNode);
264
+ node.removeAttribute(HYDRATE_CHILD_ID);
265
+ // this is a new child vnode
266
+ // so ensure its parent vnode has the vchildren array
267
+ if (!parentVNode.$children$) {
268
+ parentVNode.$children$ = [];
269
+ }
270
+ // add our child vnode to a specific index of the vnode's children
271
+ parentVNode.$children$[childVNode.$index$] = childVNode;
272
+ // this is now the new parent vnode for all the next child checks
273
+ parentVNode = childVNode;
274
+ if (shadowRootNodes && childVNode.$depth$ === '0') {
275
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
276
+ }
277
+ }
278
+ }
279
+ // recursively drill down, end to start so we can remove nodes
280
+ for (i = node.childNodes.length - 1; i >= 0; i--) {
281
+ clientHydrate(parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node.childNodes[i], hostId);
282
+ }
283
+ if (node.shadowRoot) {
284
+ // keep drilling down through the shadow root nodes
285
+ for (i = node.shadowRoot.childNodes.length - 1; i >= 0; i--) {
286
+ clientHydrate(parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node.shadowRoot.childNodes[i], hostId);
287
+ }
288
+ }
289
+ }
290
+ else if (node.nodeType === 8 /* NODE_TYPE.CommentNode */) {
291
+ // `${COMMENT_TYPE}.${hostId}.${nodeId}.${depth}.${index}`
292
+ childIdSplt = node.nodeValue.split('.');
293
+ if (childIdSplt[1] === hostId || childIdSplt[1] === '0') {
294
+ // comment node for either the host id or a 0 host id
295
+ childNodeType = childIdSplt[0];
296
+ childVNode = {
297
+ $flags$: 0,
298
+ $hostId$: childIdSplt[1],
299
+ $nodeId$: childIdSplt[2],
300
+ $depth$: childIdSplt[3],
301
+ $index$: childIdSplt[4],
302
+ $elm$: node,
303
+ $attrs$: null,
304
+ $children$: null,
305
+ $key$: null,
306
+ $name$: null,
307
+ $tag$: null,
308
+ $text$: null,
309
+ };
310
+ if (childNodeType === TEXT_NODE_ID) {
311
+ childVNode.$elm$ = node.nextSibling;
312
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* NODE_TYPE.TextNode */) {
313
+ childVNode.$text$ = childVNode.$elm$.textContent;
314
+ childRenderNodes.push(childVNode);
315
+ // remove the text comment since it's no longer needed
316
+ node.remove();
317
+ if (!parentVNode.$children$) {
318
+ parentVNode.$children$ = [];
319
+ }
320
+ parentVNode.$children$[childVNode.$index$] = childVNode;
321
+ if (shadowRootNodes && childVNode.$depth$ === '0') {
322
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
323
+ }
324
+ }
325
+ }
326
+ else if (childVNode.$hostId$ === hostId) {
327
+ // this comment node is specifcally for this host id
328
+ if (childNodeType === SLOT_NODE_ID) {
329
+ // `${SLOT_NODE_ID}.${hostId}.${nodeId}.${depth}.${index}.${slotName}`;
330
+ childVNode.$tag$ = 'slot';
331
+ if (childIdSplt[5]) {
332
+ node['s-sn'] = childVNode.$name$ = childIdSplt[5];
333
+ }
334
+ else {
335
+ node['s-sn'] = '';
336
+ }
337
+ node['s-sr'] = true;
338
+ if (shadowRootNodes) {
339
+ // browser support shadowRoot and this is a shadow dom component
340
+ // create an actual slot element
341
+ childVNode.$elm$ = doc.createElement(childVNode.$tag$);
342
+ if (childVNode.$name$) {
343
+ // add the slot name attribute
344
+ childVNode.$elm$.setAttribute('name', childVNode.$name$);
345
+ }
346
+ // insert the new slot element before the slot comment
347
+ node.parentNode.insertBefore(childVNode.$elm$, node);
348
+ // remove the slot comment since it's not needed for shadow
349
+ node.remove();
350
+ if (childVNode.$depth$ === '0') {
351
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
352
+ }
353
+ }
354
+ slotNodes.push(childVNode);
355
+ if (!parentVNode.$children$) {
356
+ parentVNode.$children$ = [];
357
+ }
358
+ parentVNode.$children$[childVNode.$index$] = childVNode;
359
+ }
360
+ else if (childNodeType === CONTENT_REF_ID) {
361
+ // `${CONTENT_REF_ID}.${hostId}`;
362
+ if (shadowRootNodes) {
363
+ // remove the content ref comment since it's not needed for shadow
364
+ node.remove();
365
+ }
366
+ else {
367
+ hostElm['s-cr'] = node;
368
+ node['s-cn'] = true;
369
+ }
370
+ }
371
+ }
372
+ }
373
+ }
374
+ else if (parentVNode && parentVNode.$tag$ === 'style') {
375
+ const vnode = newVNode(null, node.textContent);
376
+ vnode.$elm$ = node;
377
+ vnode.$index$ = '0';
378
+ parentVNode.$children$ = [vnode];
379
+ }
380
+ };
381
+ const initializeDocumentHydrate = (node, orgLocNodes) => {
382
+ if (node.nodeType === 1 /* NODE_TYPE.ElementNode */) {
383
+ let i = 0;
384
+ for (; i < node.childNodes.length; i++) {
385
+ initializeDocumentHydrate(node.childNodes[i], orgLocNodes);
386
+ }
387
+ if (node.shadowRoot) {
388
+ for (i = 0; i < node.shadowRoot.childNodes.length; i++) {
389
+ initializeDocumentHydrate(node.shadowRoot.childNodes[i], orgLocNodes);
390
+ }
391
+ }
392
+ }
393
+ else if (node.nodeType === 8 /* NODE_TYPE.CommentNode */) {
394
+ const childIdSplt = node.nodeValue.split('.');
395
+ if (childIdSplt[0] === ORG_LOCATION_ID) {
396
+ orgLocNodes.set(childIdSplt[1] + '.' + childIdSplt[2], node);
397
+ node.nodeValue = '';
398
+ // useful to know if the original location is
399
+ // the root light-dom of a shadow dom component
400
+ node['s-en'] = childIdSplt[3];
401
+ }
402
+ }
403
+ };
404
+ /**
405
+ * Parse a new property value for a given property type.
406
+ *
407
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
408
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
409
+ * 1. `any`, the type given to `propValue` in the function signature
410
+ * 2. the type stored from `propType`.
411
+ *
412
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
413
+ *
414
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
415
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
416
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
417
+ * ```tsx
418
+ * <my-cmp prop-val={0}></my-cmp>
419
+ * ```
420
+ *
421
+ * HTML prop values on the other hand, will always a string
422
+ *
423
+ * @param propValue the new value to coerce to some type
424
+ * @param propType the type of the prop, expressed as a binary number
425
+ * @returns the parsed/coerced value
426
+ */
427
+ const parsePropertyValue = (propValue, propType) => {
428
+ // ensure this value is of the correct prop type
429
+ if (propValue != null && !isComplexType(propValue)) {
430
+ if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
431
+ // per the HTML spec, any string value means it is a boolean true value
432
+ // but we'll cheat here and say that the string "false" is the boolean false
433
+ return propValue === 'false' ? false : propValue === '' || !!propValue;
434
+ }
435
+ if (propType & 2 /* MEMBER_FLAGS.Number */) {
436
+ // force it to be a number
437
+ return parseFloat(propValue);
438
+ }
439
+ if (propType & 1 /* MEMBER_FLAGS.String */) {
440
+ // could have been passed as a number or boolean
441
+ // but we still want it as a string
442
+ return String(propValue);
443
+ }
444
+ // redundant return here for better minification
445
+ return propValue;
446
+ }
447
+ // not sure exactly what type we want
448
+ // so no need to change to a different type
449
+ return propValue;
450
+ };
451
+ const getElement = (ref) => (getHostRef(ref).$hostElement$ );
452
+ const createEvent = (ref, name, flags) => {
453
+ const elm = getElement(ref);
454
+ return {
455
+ emit: (detail) => {
456
+ return emitEvent(elm, name, {
457
+ bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
458
+ composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
459
+ cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
460
+ detail,
461
+ });
462
+ },
463
+ };
464
+ };
465
+ /**
466
+ * Helper function to create & dispatch a custom Event on a provided target
467
+ * @param elm the target of the Event
468
+ * @param name the name to give the custom Event
469
+ * @param opts options for configuring a custom Event
470
+ * @returns the custom Event
471
+ */
472
+ const emitEvent = (elm, name, opts) => {
473
+ const ev = plt.ce(name, opts);
474
+ elm.dispatchEvent(ev);
475
+ return ev;
476
+ };
477
+ const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
478
+ const registerStyle = (scopeId, cssText, allowCS) => {
479
+ let style = styles.get(scopeId);
480
+ if (supportsConstructableStylesheets && allowCS) {
481
+ style = (style || new CSSStyleSheet());
482
+ if (typeof style === 'string') {
483
+ style = cssText;
484
+ }
485
+ else {
486
+ style.replaceSync(cssText);
487
+ }
488
+ }
489
+ else {
490
+ style = cssText;
491
+ }
492
+ styles.set(scopeId, style);
493
+ };
494
+ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
495
+ let scopeId = getScopeId(cmpMeta);
496
+ const style = styles.get(scopeId);
497
+ // if an element is NOT connected then getRootNode() will return the wrong root node
498
+ // so the fallback is to always use the document for the root node in those cases
499
+ styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
500
+ if (style) {
501
+ if (typeof style === 'string') {
502
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
503
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
504
+ let styleElm;
505
+ if (!appliedStyles) {
506
+ rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
507
+ }
508
+ if (!appliedStyles.has(scopeId)) {
509
+ if (styleContainerNode.host &&
510
+ (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId}"]`))) {
511
+ // This is only happening on native shadow-dom, do not needs CSS var shim
512
+ styleElm.innerHTML = style;
513
+ }
514
+ else {
515
+ {
516
+ styleElm = doc.createElement('style');
517
+ styleElm.innerHTML = style;
518
+ }
519
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
520
+ }
521
+ if (appliedStyles) {
522
+ appliedStyles.add(scopeId);
523
+ }
524
+ }
525
+ }
526
+ else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
527
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
528
+ }
529
+ }
530
+ return scopeId;
531
+ };
532
+ const attachStyles = (hostRef) => {
533
+ const cmpMeta = hostRef.$cmpMeta$;
534
+ const elm = hostRef.$hostElement$;
535
+ const flags = cmpMeta.$flags$;
536
+ const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
537
+ const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
538
+ if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
539
+ // only required when we're NOT using native shadow dom (slot)
540
+ // or this browser doesn't support native shadow dom
541
+ // and this host element was NOT created with SSR
542
+ // let's pick out the inner content for slot projection
543
+ // create a node to represent where the original
544
+ // content was first placed, which is useful later on
545
+ // DOM WRITE!!
546
+ elm['s-sc'] = scopeId;
547
+ elm.classList.add(scopeId + '-h');
548
+ }
549
+ endAttachStyles();
550
+ };
551
+ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
552
+ const convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, '$1{');
553
+ /**
554
+ * Production setAccessor() function based on Preact by
555
+ * Jason Miller (@developit)
556
+ * Licensed under the MIT License
557
+ * https://github.com/developit/preact/blob/master/LICENSE
558
+ *
559
+ * Modified for Stencil's compiler and vdom
560
+ */
561
+ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
562
+ if (oldValue !== newValue) {
563
+ let isProp = isMemberInElement(elm, memberName);
564
+ let ln = memberName.toLowerCase();
565
+ if (memberName === 'class') {
566
+ const classList = elm.classList;
567
+ const oldClasses = parseClassList(oldValue);
568
+ const newClasses = parseClassList(newValue);
569
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
570
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
571
+ }
572
+ else if (memberName === 'ref') {
573
+ // minifier will clean this up
574
+ if (newValue) {
575
+ newValue(elm);
576
+ }
577
+ }
578
+ else if ((!isProp ) &&
579
+ memberName[0] === 'o' &&
580
+ memberName[1] === 'n') {
581
+ // Event Handlers
582
+ // so if the member name starts with "on" and the 3rd characters is
583
+ // a capital letter, and it's not already a member on the element,
584
+ // then we're assuming it's an event listener
585
+ if (memberName[2] === '-') {
586
+ // on- prefixed events
587
+ // allows to be explicit about the dom event to listen without any magic
588
+ // under the hood:
589
+ // <my-cmp on-click> // listens for "click"
590
+ // <my-cmp on-Click> // listens for "Click"
591
+ // <my-cmp on-ionChange> // listens for "ionChange"
592
+ // <my-cmp on-EVENTS> // listens for "EVENTS"
593
+ memberName = memberName.slice(3);
594
+ }
595
+ else if (isMemberInElement(win, ln)) {
596
+ // standard event
597
+ // the JSX attribute could have been "onMouseOver" and the
598
+ // member name "onmouseover" is on the window's prototype
599
+ // so let's add the listener "mouseover", which is all lowercased
600
+ memberName = ln.slice(2);
601
+ }
602
+ else {
603
+ // custom event
604
+ // the JSX attribute could have been "onMyCustomEvent"
605
+ // so let's trim off the "on" prefix and lowercase the first character
606
+ // and add the listener "myCustomEvent"
607
+ // except for the first character, we keep the event name case
608
+ memberName = ln[2] + memberName.slice(3);
609
+ }
610
+ if (oldValue) {
611
+ plt.rel(elm, memberName, oldValue, false);
612
+ }
613
+ if (newValue) {
614
+ plt.ael(elm, memberName, newValue, false);
615
+ }
616
+ }
617
+ else {
618
+ // Set property if it exists and it's not a SVG
619
+ const isComplex = isComplexType(newValue);
620
+ if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
621
+ try {
622
+ if (!elm.tagName.includes('-')) {
623
+ const n = newValue == null ? '' : newValue;
624
+ // Workaround for Safari, moving the <input> caret when re-assigning the same valued
625
+ if (memberName === 'list') {
626
+ isProp = false;
627
+ }
628
+ else if (oldValue == null || elm[memberName] != n) {
629
+ elm[memberName] = n;
630
+ }
631
+ }
632
+ else {
633
+ elm[memberName] = newValue;
634
+ }
635
+ }
636
+ catch (e) { }
637
+ }
638
+ if (newValue == null || newValue === false) {
639
+ if (newValue !== false || elm.getAttribute(memberName) === '') {
640
+ {
641
+ elm.removeAttribute(memberName);
642
+ }
643
+ }
644
+ }
645
+ else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
646
+ newValue = newValue === true ? '' : newValue;
647
+ {
648
+ elm.setAttribute(memberName, newValue);
649
+ }
650
+ }
651
+ }
652
+ }
653
+ };
654
+ const parseClassListRegex = /\s/;
655
+ const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
656
+ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
657
+ // if the element passed in is a shadow root, which is a document fragment
658
+ // then we want to be adding attrs/props to the shadow root's "host" element
659
+ // if it's not a shadow root, then we add attrs/props to the same element
660
+ const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
661
+ ? newVnode.$elm$.host
662
+ : newVnode.$elm$;
663
+ const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
664
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
665
+ {
666
+ // remove attributes no longer present on the vnode by setting them to undefined
667
+ for (memberName in oldVnodeAttrs) {
668
+ if (!(memberName in newVnodeAttrs)) {
669
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
670
+ }
671
+ }
672
+ }
673
+ // add new & update changed attributes
674
+ for (memberName in newVnodeAttrs) {
675
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
676
+ }
677
+ };
678
+ /**
679
+ * Create a DOM Node corresponding to one of the children of a given VNode.
680
+ *
681
+ * @param oldParentVNode the parent VNode from the previous render
682
+ * @param newParentVNode the parent VNode from the current render
683
+ * @param childIndex the index of the VNode, in the _new_ parent node's
684
+ * children, for which we will create a new DOM node
685
+ * @param parentElm the parent DOM node which our new node will be a child of
686
+ * @returns the newly created node
687
+ */
688
+ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
689
+ // tslint:disable-next-line: prefer-const
690
+ const newVNode = newParentVNode.$children$[childIndex];
691
+ let i = 0;
692
+ let elm;
693
+ let childNode;
694
+ let oldVNode;
695
+ if (!useNativeShadowDom) {
696
+ // remember for later we need to check to relocate nodes
697
+ checkSlotRelocate = true;
698
+ if (newVNode.$tag$ === 'slot') {
699
+ if (scopeId) {
700
+ // scoped css needs to add its scoped id to the parent element
701
+ parentElm.classList.add(scopeId + '-s');
702
+ }
703
+ newVNode.$flags$ |= newVNode.$children$
704
+ ? // slot element has fallback content
705
+ 2 /* VNODE_FLAGS.isSlotFallback */
706
+ : // slot element does not have fallback content
707
+ 1 /* VNODE_FLAGS.isSlotReference */;
708
+ }
709
+ }
710
+ if (newVNode.$text$ !== null) {
711
+ // create text node
712
+ elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
713
+ }
714
+ else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
715
+ // create a slot reference node
716
+ elm = newVNode.$elm$ =
717
+ doc.createTextNode('');
718
+ }
719
+ else {
720
+ // create element
721
+ elm = newVNode.$elm$ = (doc.createElement(newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */
722
+ ? 'slot-fb'
723
+ : newVNode.$tag$));
724
+ // add css classes, attrs, props, listeners, etc.
725
+ {
726
+ updateElement(null, newVNode, isSvgMode);
727
+ }
728
+ if (isDef(scopeId) && elm['s-si'] !== scopeId) {
729
+ // if there is a scopeId and this is the initial render
730
+ // then let's add the scopeId as a css class
731
+ elm.classList.add((elm['s-si'] = scopeId));
732
+ }
733
+ if (newVNode.$children$) {
734
+ for (i = 0; i < newVNode.$children$.length; ++i) {
735
+ // create the node
736
+ childNode = createElm(oldParentVNode, newVNode, i, elm);
737
+ // return node could have been null
738
+ if (childNode) {
739
+ // append our new node
740
+ elm.appendChild(childNode);
741
+ }
742
+ }
743
+ }
744
+ }
745
+ {
746
+ elm['s-hn'] = hostTagName;
747
+ if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
748
+ // remember the content reference comment
749
+ elm['s-sr'] = true;
750
+ // remember the content reference comment
751
+ elm['s-cr'] = contentRef;
752
+ // remember the slot name, or empty string for default slot
753
+ elm['s-sn'] = newVNode.$name$ || '';
754
+ // check if we've got an old vnode for this slot
755
+ oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
756
+ if (oldVNode && oldVNode.$tag$ === newVNode.$tag$ && oldParentVNode.$elm$) {
757
+ // we've got an old slot vnode and the wrapper is being replaced
758
+ // so let's move the old slot content back to it's original location
759
+ putBackInOriginalLocation(oldParentVNode.$elm$, false);
760
+ }
761
+ }
762
+ }
763
+ return elm;
764
+ };
765
+ const putBackInOriginalLocation = (parentElm, recursive) => {
766
+ plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
767
+ const oldSlotChildNodes = parentElm.childNodes;
768
+ for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
769
+ const childNode = oldSlotChildNodes[i];
770
+ if (childNode['s-hn'] !== hostTagName && childNode['s-ol']) {
771
+ // // this child node in the old element is from another component
772
+ // // remove this node from the old slot's parent
773
+ // childNode.remove();
774
+ // and relocate it back to it's original location
775
+ parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
776
+ // remove the old original location comment entirely
777
+ // later on the patch function will know what to do
778
+ // and move this to the correct spot in need be
779
+ childNode['s-ol'].remove();
780
+ childNode['s-ol'] = undefined;
781
+ checkSlotRelocate = true;
782
+ }
783
+ if (recursive) {
784
+ putBackInOriginalLocation(childNode, recursive);
785
+ }
786
+ }
787
+ plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
788
+ };
789
+ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
790
+ let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
791
+ let childNode;
792
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
793
+ containerElm = containerElm.shadowRoot;
794
+ }
795
+ for (; startIdx <= endIdx; ++startIdx) {
796
+ if (vnodes[startIdx]) {
797
+ childNode = createElm(null, parentVNode, startIdx, parentElm);
798
+ if (childNode) {
799
+ vnodes[startIdx].$elm$ = childNode;
800
+ containerElm.insertBefore(childNode, referenceNode(before) );
801
+ }
802
+ }
803
+ }
804
+ };
805
+ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
806
+ for (; startIdx <= endIdx; ++startIdx) {
807
+ if ((vnode = vnodes[startIdx])) {
808
+ elm = vnode.$elm$;
809
+ callNodeRefs(vnode);
810
+ {
811
+ // we're removing this element
812
+ // so it's possible we need to show slot fallback content now
813
+ checkSlotFallbackVisibility = true;
814
+ if (elm['s-ol']) {
815
+ // remove the original location comment
816
+ elm['s-ol'].remove();
817
+ }
818
+ else {
819
+ // it's possible that child nodes of the node
820
+ // that's being removed are slot nodes
821
+ putBackInOriginalLocation(elm, true);
822
+ }
823
+ }
824
+ // remove the vnode's element from the dom
825
+ elm.remove();
826
+ }
827
+ }
828
+ };
829
+ /**
830
+ * Reconcile the children of a new VNode with the children of an old VNode by
831
+ * traversing the two collections of children, identifying nodes that are
832
+ * conserved or changed, calling out to `patch` to make any necessary
833
+ * updates to the DOM, and rearranging DOM nodes as needed.
834
+ *
835
+ * The algorithm for reconciling children works by analyzing two 'windows' onto
836
+ * the two arrays of children (`oldCh` and `newCh`). We keep track of the
837
+ * 'windows' by storing start and end indices and references to the
838
+ * corresponding array entries. Initially the two 'windows' are basically equal
839
+ * to the entire array, but we progressively narrow the windows until there are
840
+ * no children left to update by doing the following:
841
+ *
842
+ * 1. Skip any `null` entries at the beginning or end of the two arrays, so
843
+ * that if we have an initial array like the following we'll end up dealing
844
+ * only with a window bounded by the highlighted elements:
845
+ *
846
+ * [null, null, VNode1 , ... , VNode2, null, null]
847
+ * ^^^^^^ ^^^^^^
848
+ *
849
+ * 2. Check to see if the elements at the head and tail positions are equal
850
+ * across the windows. This will basically detect elements which haven't
851
+ * been added, removed, or changed position, i.e. if you had the following
852
+ * VNode elements (represented as HTML):
853
+ *
854
+ * oldVNode: `<div><p><span>HEY</span></p></div>`
855
+ * newVNode: `<div><p><span>THERE</span></p></div>`
856
+ *
857
+ * Then when comparing the children of the `<div>` tag we check the equality
858
+ * of the VNodes corresponding to the `<p>` tags and, since they are the
859
+ * same tag in the same position, we'd be able to avoid completely
860
+ * re-rendering the subtree under them with a new DOM element and would just
861
+ * call out to `patch` to handle reconciling their children and so on.
862
+ *
863
+ * 3. Check, for both windows, to see if the element at the beginning of the
864
+ * window corresponds to the element at the end of the other window. This is
865
+ * a heuristic which will let us identify _some_ situations in which
866
+ * elements have changed position, for instance it _should_ detect that the
867
+ * children nodes themselves have not changed but merely moved in the
868
+ * following example:
869
+ *
870
+ * oldVNode: `<div><element-one /><element-two /></div>`
871
+ * newVNode: `<div><element-two /><element-one /></div>`
872
+ *
873
+ * If we find cases like this then we also need to move the concrete DOM
874
+ * elements corresponding to the moved children to write the re-order to the
875
+ * DOM.
876
+ *
877
+ * 4. Finally, if VNodes have the `key` attribute set on them we check for any
878
+ * nodes in the old children which have the same key as the first element in
879
+ * our window on the new children. If we find such a node we handle calling
880
+ * out to `patch`, moving relevant DOM nodes, and so on, in accordance with
881
+ * what we find.
882
+ *
883
+ * Finally, once we've narrowed our 'windows' to the point that either of them
884
+ * collapse (i.e. they have length 0) we then handle any remaining VNode
885
+ * insertion or deletion that needs to happen to get a DOM state that correctly
886
+ * reflects the new child VNodes. If, for instance, after our window on the old
887
+ * children has collapsed we still have more nodes on the new children that
888
+ * we haven't dealt with yet then we need to add them, or if the new children
889
+ * collapse but we still have unhandled _old_ children then we need to make
890
+ * sure the corresponding DOM nodes are removed.
891
+ *
892
+ * @param parentElm the node into which the parent VNode is rendered
893
+ * @param oldCh the old children of the parent node
894
+ * @param newVNode the new VNode which will replace the parent
895
+ * @param newCh the new children of the parent node
896
+ */
897
+ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
898
+ let oldStartIdx = 0;
899
+ let newStartIdx = 0;
900
+ let oldEndIdx = oldCh.length - 1;
901
+ let oldStartVnode = oldCh[0];
902
+ let oldEndVnode = oldCh[oldEndIdx];
903
+ let newEndIdx = newCh.length - 1;
904
+ let newStartVnode = newCh[0];
905
+ let newEndVnode = newCh[newEndIdx];
906
+ let node;
907
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
908
+ if (oldStartVnode == null) {
909
+ // VNode might have been moved left
910
+ oldStartVnode = oldCh[++oldStartIdx];
911
+ }
912
+ else if (oldEndVnode == null) {
913
+ oldEndVnode = oldCh[--oldEndIdx];
914
+ }
915
+ else if (newStartVnode == null) {
916
+ newStartVnode = newCh[++newStartIdx];
917
+ }
918
+ else if (newEndVnode == null) {
919
+ newEndVnode = newCh[--newEndIdx];
920
+ }
921
+ else if (isSameVnode(oldStartVnode, newStartVnode)) {
922
+ // if the start nodes are the same then we should patch the new VNode
923
+ // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
924
+ // indices to reflect that. We don't need to move any DOM Nodes around
925
+ // since things are matched up in order.
926
+ patch(oldStartVnode, newStartVnode);
927
+ oldStartVnode = oldCh[++oldStartIdx];
928
+ newStartVnode = newCh[++newStartIdx];
929
+ }
930
+ else if (isSameVnode(oldEndVnode, newEndVnode)) {
931
+ // likewise, if the end nodes are the same we patch new onto old and
932
+ // decrement our end indices, and also likewise in this case we don't
933
+ // need to move any DOM Nodes.
934
+ patch(oldEndVnode, newEndVnode);
935
+ oldEndVnode = oldCh[--oldEndIdx];
936
+ newEndVnode = newCh[--newEndIdx];
937
+ }
938
+ else if (isSameVnode(oldStartVnode, newEndVnode)) {
939
+ // case: "Vnode moved right"
940
+ //
941
+ // We've found that the last node in our window on the new children is
942
+ // the same VNode as the _first_ node in our window on the old children
943
+ // we're dealing with now. Visually, this is the layout of these two
944
+ // nodes:
945
+ //
946
+ // newCh: [..., newStartVnode , ... , newEndVnode , ...]
947
+ // ^^^^^^^^^^^
948
+ // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
949
+ // ^^^^^^^^^^^^^
950
+ //
951
+ // In this situation we need to patch `newEndVnode` onto `oldStartVnode`
952
+ // and move the DOM element for `oldStartVnode`.
953
+ if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
954
+ putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
955
+ }
956
+ patch(oldStartVnode, newEndVnode);
957
+ // We need to move the element for `oldStartVnode` into a position which
958
+ // will be appropriate for `newEndVnode`. For this we can use
959
+ // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
960
+ // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
961
+ // `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
962
+ //
963
+ // <old-start-node />
964
+ // <some-intervening-node />
965
+ // <old-end-node />
966
+ // <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
967
+ // <next-sibling />
968
+ //
969
+ // If instead `oldEndVnode.$elm$` has no sibling then we just want to put
970
+ // the node for `oldStartVnode` at the end of the children of
971
+ // `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
972
+ // aren't any siblings, and passing `null` to `Node.insertBefore` will
973
+ // append it to the children of the parent element.
974
+ parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
975
+ oldStartVnode = oldCh[++oldStartIdx];
976
+ newEndVnode = newCh[--newEndIdx];
977
+ }
978
+ else if (isSameVnode(oldEndVnode, newStartVnode)) {
979
+ // case: "Vnode moved left"
980
+ //
981
+ // We've found that the first node in our window on the new children is
982
+ // the same VNode as the _last_ node in our window on the old children.
983
+ // Visually, this is the layout of these two nodes:
984
+ //
985
+ // newCh: [..., newStartVnode , ... , newEndVnode , ...]
986
+ // ^^^^^^^^^^^^^
987
+ // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
988
+ // ^^^^^^^^^^^
989
+ //
990
+ // In this situation we need to patch `newStartVnode` onto `oldEndVnode`
991
+ // (which will handle updating any changed attributes, reconciling their
992
+ // children etc) but we also need to move the DOM node to which
993
+ // `oldEndVnode` corresponds.
994
+ if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
995
+ putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
996
+ }
997
+ patch(oldEndVnode, newStartVnode);
998
+ // We've already checked above if `oldStartVnode` and `newStartVnode` are
999
+ // the same node, so since we're here we know that they are not. Thus we
1000
+ // can move the element for `oldEndVnode` _before_ the element for
1001
+ // `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
1002
+ // future.
1003
+ parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
1004
+ oldEndVnode = oldCh[--oldEndIdx];
1005
+ newStartVnode = newCh[++newStartIdx];
1006
+ }
1007
+ else {
1008
+ {
1009
+ // We either didn't find an element in the old children that matches
1010
+ // the key of the first new child OR the build is not using `key`
1011
+ // attributes at all. In either case we need to create a new element
1012
+ // for the new node.
1013
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
1014
+ newStartVnode = newCh[++newStartIdx];
1015
+ }
1016
+ if (node) {
1017
+ // if we created a new node then handle inserting it to the DOM
1018
+ {
1019
+ parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
1020
+ }
1021
+ }
1022
+ }
1023
+ }
1024
+ if (oldStartIdx > oldEndIdx) {
1025
+ // we have some more new nodes to add which don't match up with old nodes
1026
+ addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
1027
+ }
1028
+ else if (newStartIdx > newEndIdx) {
1029
+ // there are nodes in the `oldCh` array which no longer correspond to nodes
1030
+ // in the new array, so lets remove them (which entails cleaning up the
1031
+ // relevant DOM nodes)
1032
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
1033
+ }
1034
+ };
1035
+ /**
1036
+ * Compare two VNodes to determine if they are the same
1037
+ *
1038
+ * **NB**: This function is an equality _heuristic_ based on the available
1039
+ * information set on the two VNodes and can be misleading under certain
1040
+ * circumstances. In particular, if the two nodes do not have `key` attrs
1041
+ * (available under `$key$` on VNodes) then the function falls back on merely
1042
+ * checking that they have the same tag.
1043
+ *
1044
+ * So, in other words, if `key` attrs are not set on VNodes which may be
1045
+ * changing order within a `children` array or something along those lines then
1046
+ * we could obtain a false positive and then have to do needless re-rendering.
1047
+ *
1048
+ * @param leftVNode the first VNode to check
1049
+ * @param rightVNode the second VNode to check
1050
+ * @returns whether they're equal or not
1051
+ */
1052
+ const isSameVnode = (leftVNode, rightVNode) => {
1053
+ // compare if two vnode to see if they're "technically" the same
1054
+ // need to have the same element tag, and same key to be the same
1055
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
1056
+ if (leftVNode.$tag$ === 'slot') {
1057
+ return leftVNode.$name$ === rightVNode.$name$;
1058
+ }
1059
+ return true;
1060
+ }
1061
+ return false;
1062
+ };
1063
+ const referenceNode = (node) => {
1064
+ // this node was relocated to a new location in the dom
1065
+ // because of some other component's slot
1066
+ // but we still have an html comment in place of where
1067
+ // it's original location was according to it's original vdom
1068
+ return (node && node['s-ol']) || node;
1069
+ };
1070
+ const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
1071
+ /**
1072
+ * Handle reconciling an outdated VNode with a new one which corresponds to
1073
+ * it. This function handles flushing updates to the DOM and reconciling the
1074
+ * children of the two nodes (if any).
1075
+ *
1076
+ * @param oldVNode an old VNode whose DOM element and children we want to update
1077
+ * @param newVNode a new VNode representing an updated version of the old one
1078
+ */
1079
+ const patch = (oldVNode, newVNode) => {
1080
+ const elm = (newVNode.$elm$ = oldVNode.$elm$);
1081
+ const oldChildren = oldVNode.$children$;
1082
+ const newChildren = newVNode.$children$;
1083
+ const tag = newVNode.$tag$;
1084
+ const text = newVNode.$text$;
1085
+ let defaultHolder;
1086
+ if (text === null) {
1087
+ {
1088
+ if (tag === 'slot')
1089
+ ;
1090
+ else {
1091
+ // either this is the first render of an element OR it's an update
1092
+ // AND we already know it's possible it could have changed
1093
+ // this updates the element's css classes, attrs, props, listeners, etc.
1094
+ updateElement(oldVNode, newVNode, isSvgMode);
1095
+ }
1096
+ }
1097
+ if (oldChildren !== null && newChildren !== null) {
1098
+ // looks like there's child vnodes for both the old and new vnodes
1099
+ // so we need to call `updateChildren` to reconcile them
1100
+ updateChildren(elm, oldChildren, newVNode, newChildren);
1101
+ }
1102
+ else if (newChildren !== null) {
1103
+ // no old child vnodes, but there are new child vnodes to add
1104
+ if (oldVNode.$text$ !== null) {
1105
+ // the old vnode was text, so be sure to clear it out
1106
+ elm.textContent = '';
1107
+ }
1108
+ // add the new vnode children
1109
+ addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
1110
+ }
1111
+ else if (oldChildren !== null) {
1112
+ // no new child vnodes, but there are old child vnodes to remove
1113
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
1114
+ }
1115
+ }
1116
+ else if ((defaultHolder = elm['s-cr'])) {
1117
+ // this element has slotted content
1118
+ defaultHolder.parentNode.textContent = text;
1119
+ }
1120
+ else if (oldVNode.$text$ !== text) {
1121
+ // update the text content for the text only vnode
1122
+ // and also only if the text is different than before
1123
+ elm.data = text;
1124
+ }
1125
+ };
1126
+ const updateFallbackSlotVisibility = (elm) => {
1127
+ // tslint:disable-next-line: prefer-const
1128
+ const childNodes = elm.childNodes;
1129
+ let childNode;
1130
+ let i;
1131
+ let ilen;
1132
+ let j;
1133
+ let slotNameAttr;
1134
+ let nodeType;
1135
+ for (i = 0, ilen = childNodes.length; i < ilen; i++) {
1136
+ childNode = childNodes[i];
1137
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1138
+ if (childNode['s-sr']) {
1139
+ // this is a slot fallback node
1140
+ // get the slot name for this slot reference node
1141
+ slotNameAttr = childNode['s-sn'];
1142
+ // by default always show a fallback slot node
1143
+ // then hide it if there are other slots in the light dom
1144
+ childNode.hidden = false;
1145
+ for (j = 0; j < ilen; j++) {
1146
+ nodeType = childNodes[j].nodeType;
1147
+ if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
1148
+ // this sibling node is from a different component OR is a named fallback slot node
1149
+ if (nodeType === 1 /* NODE_TYPE.ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
1150
+ childNode.hidden = true;
1151
+ break;
1152
+ }
1153
+ }
1154
+ else {
1155
+ // this is a default fallback slot node
1156
+ // any element or text node (with content)
1157
+ // should hide the default fallback slot node
1158
+ if (nodeType === 1 /* NODE_TYPE.ElementNode */ ||
1159
+ (nodeType === 3 /* NODE_TYPE.TextNode */ && childNodes[j].textContent.trim() !== '')) {
1160
+ childNode.hidden = true;
1161
+ break;
1162
+ }
1163
+ }
1164
+ }
1165
+ }
1166
+ // keep drilling down
1167
+ updateFallbackSlotVisibility(childNode);
1168
+ }
1169
+ }
1170
+ };
1171
+ const relocateNodes = [];
1172
+ const relocateSlotContent = (elm) => {
1173
+ // tslint:disable-next-line: prefer-const
1174
+ let childNode;
1175
+ let node;
1176
+ let hostContentNodes;
1177
+ let slotNameAttr;
1178
+ let relocateNodeData;
1179
+ let j;
1180
+ let i = 0;
1181
+ const childNodes = elm.childNodes;
1182
+ const ilen = childNodes.length;
1183
+ for (; i < ilen; i++) {
1184
+ childNode = childNodes[i];
1185
+ if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
1186
+ // first got the content reference comment node
1187
+ // then we got it's parent, which is where all the host content is in now
1188
+ hostContentNodes = node.parentNode.childNodes;
1189
+ slotNameAttr = childNode['s-sn'];
1190
+ for (j = hostContentNodes.length - 1; j >= 0; j--) {
1191
+ node = hostContentNodes[j];
1192
+ if (!node['s-cn'] && !node['s-nr'] && node['s-hn'] !== childNode['s-hn']) {
1193
+ // let's do some relocating to its new home
1194
+ // but never relocate a content reference node
1195
+ // that is suppose to always represent the original content location
1196
+ if (isNodeLocatedInSlot(node, slotNameAttr)) {
1197
+ // it's possible we've already decided to relocate this node
1198
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1199
+ // made some changes to slots
1200
+ // let's make sure we also double check
1201
+ // fallbacks are correctly hidden or shown
1202
+ checkSlotFallbackVisibility = true;
1203
+ node['s-sn'] = node['s-sn'] || slotNameAttr;
1204
+ if (relocateNodeData) {
1205
+ // previously we never found a slot home for this node
1206
+ // but turns out we did, so let's remember it now
1207
+ relocateNodeData.$slotRefNode$ = childNode;
1208
+ }
1209
+ else {
1210
+ // add to our list of nodes to relocate
1211
+ relocateNodes.push({
1212
+ $slotRefNode$: childNode,
1213
+ $nodeToRelocate$: node,
1214
+ });
1215
+ }
1216
+ if (node['s-sr']) {
1217
+ relocateNodes.map((relocateNode) => {
1218
+ if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
1219
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1220
+ if (relocateNodeData && !relocateNode.$slotRefNode$) {
1221
+ relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
1222
+ }
1223
+ }
1224
+ });
1225
+ }
1226
+ }
1227
+ else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
1228
+ // so far this element does not have a slot home, not setting slotRefNode on purpose
1229
+ // if we never find a home for this element then we'll need to hide it
1230
+ relocateNodes.push({
1231
+ $nodeToRelocate$: node,
1232
+ });
1233
+ }
1234
+ }
1235
+ }
1236
+ }
1237
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1238
+ relocateSlotContent(childNode);
1239
+ }
1240
+ }
1241
+ };
1242
+ const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
1243
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1244
+ if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
1245
+ return true;
1246
+ }
1247
+ if (nodeToRelocate.getAttribute('slot') === slotNameAttr) {
1248
+ return true;
1249
+ }
1250
+ return false;
1251
+ }
1252
+ if (nodeToRelocate['s-sn'] === slotNameAttr) {
1253
+ return true;
1254
+ }
1255
+ return slotNameAttr === '';
1256
+ };
1257
+ const callNodeRefs = (vNode) => {
1258
+ {
1259
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1260
+ vNode.$children$ && vNode.$children$.map(callNodeRefs);
1261
+ }
1262
+ };
1263
+ const renderVdom = (hostRef, renderFnResults) => {
1264
+ const hostElm = hostRef.$hostElement$;
1265
+ const cmpMeta = hostRef.$cmpMeta$;
1266
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1267
+ const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
1268
+ hostTagName = hostElm.tagName;
1269
+ if (cmpMeta.$attrsToReflect$) {
1270
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1271
+ cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
1272
+ }
1273
+ rootVnode.$tag$ = null;
1274
+ rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
1275
+ hostRef.$vnode$ = rootVnode;
1276
+ rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
1277
+ {
1278
+ scopeId = hostElm['s-sc'];
1279
+ }
1280
+ {
1281
+ contentRef = hostElm['s-cr'];
1282
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
1283
+ // always reset
1284
+ checkSlotFallbackVisibility = false;
1285
+ }
1286
+ // synchronous patch
1287
+ patch(oldVNode, rootVnode);
1288
+ {
1289
+ // while we're moving nodes around existing nodes, temporarily disable
1290
+ // the disconnectCallback from working
1291
+ plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1292
+ if (checkSlotRelocate) {
1293
+ relocateSlotContent(rootVnode.$elm$);
1294
+ let relocateData;
1295
+ let nodeToRelocate;
1296
+ let orgLocationNode;
1297
+ let parentNodeRef;
1298
+ let insertBeforeNode;
1299
+ let refNode;
1300
+ let i = 0;
1301
+ for (; i < relocateNodes.length; i++) {
1302
+ relocateData = relocateNodes[i];
1303
+ nodeToRelocate = relocateData.$nodeToRelocate$;
1304
+ if (!nodeToRelocate['s-ol']) {
1305
+ // add a reference node marking this node's original location
1306
+ // keep a reference to this node for later lookups
1307
+ orgLocationNode =
1308
+ doc.createTextNode('');
1309
+ orgLocationNode['s-nr'] = nodeToRelocate;
1310
+ nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
1311
+ }
1312
+ }
1313
+ for (i = 0; i < relocateNodes.length; i++) {
1314
+ relocateData = relocateNodes[i];
1315
+ nodeToRelocate = relocateData.$nodeToRelocate$;
1316
+ if (relocateData.$slotRefNode$) {
1317
+ // by default we're just going to insert it directly
1318
+ // after the slot reference node
1319
+ parentNodeRef = relocateData.$slotRefNode$.parentNode;
1320
+ insertBeforeNode = relocateData.$slotRefNode$.nextSibling;
1321
+ orgLocationNode = nodeToRelocate['s-ol'];
1322
+ while ((orgLocationNode = orgLocationNode.previousSibling)) {
1323
+ refNode = orgLocationNode['s-nr'];
1324
+ if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) {
1325
+ refNode = refNode.nextSibling;
1326
+ if (!refNode || !refNode['s-nr']) {
1327
+ insertBeforeNode = refNode;
1328
+ break;
1329
+ }
1330
+ }
1331
+ }
1332
+ if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
1333
+ nodeToRelocate.nextSibling !== insertBeforeNode) {
1334
+ // we've checked that it's worth while to relocate
1335
+ // since that the node to relocate
1336
+ // has a different next sibling or parent relocated
1337
+ if (nodeToRelocate !== insertBeforeNode) {
1338
+ if (!nodeToRelocate['s-hn'] && nodeToRelocate['s-ol']) {
1339
+ // probably a component in the index.html that doesn't have it's hostname set
1340
+ nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName;
1341
+ }
1342
+ // add it back to the dom but in its new home
1343
+ parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
1344
+ }
1345
+ }
1346
+ }
1347
+ else {
1348
+ // this node doesn't have a slot home to go to, so let's hide it
1349
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1350
+ nodeToRelocate.hidden = true;
1351
+ }
1352
+ }
1353
+ }
1354
+ }
1355
+ if (checkSlotFallbackVisibility) {
1356
+ updateFallbackSlotVisibility(rootVnode.$elm$);
1357
+ }
1358
+ // done moving nodes around
1359
+ // allow the disconnect callback to work again
1360
+ plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1361
+ // always reset
1362
+ relocateNodes.length = 0;
1363
+ }
1364
+ };
1365
+ const attachToAncestor = (hostRef, ancestorComponent) => {
1366
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1367
+ ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
1368
+ }
1369
+ };
1370
+ const scheduleUpdate = (hostRef, isInitialLoad) => {
1371
+ {
1372
+ hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
1373
+ }
1374
+ if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
1375
+ hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
1376
+ return;
1377
+ }
1378
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1379
+ // there is no ancestor component or the ancestor component
1380
+ // has already fired off its lifecycle update then
1381
+ // fire off the initial update
1382
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1383
+ return writeTask(dispatch) ;
1384
+ };
1385
+ const dispatchHooks = (hostRef, isInitialLoad) => {
1386
+ const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
1387
+ const instance = hostRef.$lazyInstance$ ;
1388
+ let promise;
1389
+ if (isInitialLoad) {
1390
+ {
1391
+ promise = safeCall(instance, 'componentWillLoad');
1392
+ }
1393
+ }
1394
+ {
1395
+ promise = then(promise, () => safeCall(instance, 'componentWillRender'));
1396
+ }
1397
+ endSchedule();
1398
+ return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
1399
+ };
1400
+ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1401
+ // updateComponent
1402
+ const elm = hostRef.$hostElement$;
1403
+ const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
1404
+ const rc = elm['s-rc'];
1405
+ if (isInitialLoad) {
1406
+ // DOM WRITE!
1407
+ attachStyles(hostRef);
1408
+ }
1409
+ const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
1410
+ {
1411
+ callRender(hostRef, instance);
1412
+ }
1413
+ if (rc) {
1414
+ // ok, so turns out there are some child host elements
1415
+ // waiting on this parent element to load
1416
+ // let's fire off all update callbacks waiting
1417
+ rc.map((cb) => cb());
1418
+ elm['s-rc'] = undefined;
1419
+ }
1420
+ endRender();
1421
+ endUpdate();
1422
+ {
1423
+ const childrenPromises = elm['s-p'];
1424
+ const postUpdate = () => postUpdateComponent(hostRef);
1425
+ if (childrenPromises.length === 0) {
1426
+ postUpdate();
1427
+ }
1428
+ else {
1429
+ Promise.all(childrenPromises).then(postUpdate);
1430
+ hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
1431
+ childrenPromises.length = 0;
1432
+ }
1433
+ }
1434
+ };
1435
+ const callRender = (hostRef, instance, elm) => {
1436
+ try {
1437
+ instance = instance.render() ;
1438
+ {
1439
+ hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
1440
+ }
1441
+ {
1442
+ hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
1443
+ }
1444
+ {
1445
+ {
1446
+ // looks like we've got child nodes to render into this host element
1447
+ // or we need to update the css class/attrs on the host element
1448
+ // DOM WRITE!
1449
+ {
1450
+ renderVdom(hostRef, instance);
1451
+ }
1452
+ }
1453
+ }
1454
+ }
1455
+ catch (e) {
1456
+ consoleError(e, hostRef.$hostElement$);
1457
+ }
1458
+ return null;
1459
+ };
1460
+ const postUpdateComponent = (hostRef) => {
1461
+ const tagName = hostRef.$cmpMeta$.$tagName$;
1462
+ const elm = hostRef.$hostElement$;
1463
+ const endPostUpdate = createTime('postUpdate', tagName);
1464
+ const instance = hostRef.$lazyInstance$ ;
1465
+ const ancestorComponent = hostRef.$ancestorComponent$;
1466
+ {
1467
+ safeCall(instance, 'componentDidRender');
1468
+ }
1469
+ if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
1470
+ hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
1471
+ {
1472
+ // DOM WRITE!
1473
+ addHydratedFlag(elm);
1474
+ }
1475
+ {
1476
+ safeCall(instance, 'componentDidLoad');
1477
+ }
1478
+ endPostUpdate();
1479
+ {
1480
+ hostRef.$onReadyResolve$(elm);
1481
+ if (!ancestorComponent) {
1482
+ appDidLoad();
1483
+ }
1484
+ }
1485
+ }
1486
+ else {
1487
+ endPostUpdate();
1488
+ }
1489
+ {
1490
+ hostRef.$onInstanceResolve$(elm);
1491
+ }
1492
+ // load events fire from bottom to top
1493
+ // the deepest elements load first then bubbles up
1494
+ {
1495
+ if (hostRef.$onRenderResolve$) {
1496
+ hostRef.$onRenderResolve$();
1497
+ hostRef.$onRenderResolve$ = undefined;
1498
+ }
1499
+ if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
1500
+ nextTick(() => scheduleUpdate(hostRef, false));
1501
+ }
1502
+ hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
1503
+ }
1504
+ // ( •_•)
1505
+ // ( •_•)>⌐■-■
1506
+ // (⌐■_■)
1507
+ };
1508
+ const appDidLoad = (who) => {
1509
+ // on appload
1510
+ // we have finish the first big initial render
1511
+ {
1512
+ addHydratedFlag(doc.documentElement);
1513
+ }
1514
+ nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1515
+ };
1516
+ const safeCall = (instance, method, arg) => {
1517
+ if (instance && instance[method]) {
1518
+ try {
1519
+ return instance[method](arg);
1520
+ }
1521
+ catch (e) {
1522
+ consoleError(e);
1523
+ }
1524
+ }
1525
+ return undefined;
1526
+ };
1527
+ const then = (promise, thenFn) => {
1528
+ return promise && promise.then ? promise.then(thenFn) : thenFn();
1529
+ };
1530
+ const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1531
+ ;
1532
+ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1533
+ const setValue = (ref, propName, newVal, cmpMeta) => {
1534
+ // check our new property value against our internal value
1535
+ const hostRef = getHostRef(ref);
1536
+ const elm = hostRef.$hostElement$ ;
1537
+ const oldVal = hostRef.$instanceValues$.get(propName);
1538
+ const flags = hostRef.$flags$;
1539
+ const instance = hostRef.$lazyInstance$ ;
1540
+ newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1541
+ // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1542
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1543
+ const didValueChange = newVal !== oldVal && !areBothNaN;
1544
+ if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1545
+ // gadzooks! the property's value has changed!!
1546
+ // set our new value!
1547
+ hostRef.$instanceValues$.set(propName, newVal);
1548
+ if (instance) {
1549
+ // get an array of method names of watch functions to call
1550
+ if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
1551
+ const watchMethods = cmpMeta.$watchers$[propName];
1552
+ if (watchMethods) {
1553
+ // this instance is watching for when this property changed
1554
+ watchMethods.map((watchMethodName) => {
1555
+ try {
1556
+ // fire off each of the watch methods that are watching this property
1557
+ instance[watchMethodName](newVal, oldVal, propName);
1558
+ }
1559
+ catch (e) {
1560
+ consoleError(e, elm);
1561
+ }
1562
+ });
1563
+ }
1564
+ }
1565
+ if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1566
+ // looks like this value actually changed, so we've got work to do!
1567
+ // but only if we've already rendered, otherwise just chill out
1568
+ // queue that we need to do an update, but don't worry about queuing
1569
+ // up millions cuz this function ensures it only runs once
1570
+ scheduleUpdate(hostRef, false);
1571
+ }
1572
+ }
1573
+ }
1574
+ };
1575
+ /**
1576
+ * Attach a series of runtime constructs to a compiled Stencil component
1577
+ * constructor, including getters and setters for the `@Prop` and `@State`
1578
+ * decorators, callbacks for when attributes change, and so on.
1579
+ *
1580
+ * @param Cstr the constructor for a component that we need to process
1581
+ * @param cmpMeta metadata collected previously about the component
1582
+ * @param flags a number used to store a series of bit flags
1583
+ * @returns a reference to the same constructor passed in (but now mutated)
1584
+ */
1585
+ const proxyComponent = (Cstr, cmpMeta, flags) => {
1586
+ if (cmpMeta.$members$) {
1587
+ if (Cstr.watchers) {
1588
+ cmpMeta.$watchers$ = Cstr.watchers;
1589
+ }
1590
+ // It's better to have a const than two Object.entries()
1591
+ const members = Object.entries(cmpMeta.$members$);
1592
+ const prototype = Cstr.prototype;
1593
+ members.map(([memberName, [memberFlags]]) => {
1594
+ if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1595
+ ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
1596
+ // proxyComponent - prop
1597
+ Object.defineProperty(prototype, memberName, {
1598
+ get() {
1599
+ // proxyComponent, get value
1600
+ return getValue(this, memberName);
1601
+ },
1602
+ set(newValue) {
1603
+ // proxyComponent, set value
1604
+ setValue(this, memberName, newValue, cmpMeta);
1605
+ },
1606
+ configurable: true,
1607
+ enumerable: true,
1608
+ });
1609
+ }
1610
+ else if (flags & 1 /* PROXY_FLAGS.isElementConstructor */ &&
1611
+ memberFlags & 64 /* MEMBER_FLAGS.Method */) {
1612
+ // proxyComponent - method
1613
+ Object.defineProperty(prototype, memberName, {
1614
+ value(...args) {
1615
+ const ref = getHostRef(this);
1616
+ return ref.$onInstancePromise$.then(() => ref.$lazyInstance$[memberName](...args));
1617
+ },
1618
+ });
1619
+ }
1620
+ });
1621
+ if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1622
+ const attrNameToPropName = new Map();
1623
+ prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1624
+ plt.jmp(() => {
1625
+ const propName = attrNameToPropName.get(attrName);
1626
+ // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1627
+ // in the case where an attribute was set inline.
1628
+ // ```html
1629
+ // <my-component some-attribute="some-value"></my-component>
1630
+ // ```
1631
+ //
1632
+ // There is an edge case where a developer sets the attribute inline on a custom element and then
1633
+ // programmatically changes it before it has been upgraded as shown below:
1634
+ //
1635
+ // ```html
1636
+ // <!-- this component has _not_ been upgraded yet -->
1637
+ // <my-component id="test" some-attribute="some-value"></my-component>
1638
+ // <script>
1639
+ // // grab non-upgraded component
1640
+ // el = document.querySelector("#test");
1641
+ // el.someAttribute = "another-value";
1642
+ // // upgrade component
1643
+ // customElements.define('my-component', MyComponent);
1644
+ // </script>
1645
+ // ```
1646
+ // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
1647
+ // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1648
+ // to the value that was set inline i.e. "some-value" from above example. When
1649
+ // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
1650
+ //
1651
+ // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
1652
+ // by connectedCallback as this attributeChangedCallback will not fire.
1653
+ //
1654
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1655
+ //
1656
+ // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1657
+ // properties here given that this goes against best practices outlined here
1658
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1659
+ if (this.hasOwnProperty(propName)) {
1660
+ newValue = this[propName];
1661
+ delete this[propName];
1662
+ }
1663
+ else if (prototype.hasOwnProperty(propName) &&
1664
+ typeof this[propName] === 'number' &&
1665
+ this[propName] == newValue) {
1666
+ // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1667
+ // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1668
+ // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1669
+ return;
1670
+ }
1671
+ this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1672
+ });
1673
+ };
1674
+ // create an array of attributes to observe
1675
+ // and also create a map of html attribute name to js property name
1676
+ Cstr.observedAttributes = members
1677
+ .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
1678
+ .map(([propName, m]) => {
1679
+ const attrName = m[1] || propName;
1680
+ attrNameToPropName.set(attrName, propName);
1681
+ if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1682
+ cmpMeta.$attrsToReflect$.push([propName, attrName]);
1683
+ }
1684
+ return attrName;
1685
+ });
1686
+ }
1687
+ }
1688
+ return Cstr;
1689
+ };
1690
+ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1691
+ // initializeComponent
1692
+ if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1693
+ {
1694
+ // we haven't initialized this element yet
1695
+ hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1696
+ // lazy loaded components
1697
+ // request the component's implementation to be
1698
+ // wired up with the host element
1699
+ Cstr = loadModule(cmpMeta);
1700
+ if (Cstr.then) {
1701
+ // Await creates a micro-task avoid if possible
1702
+ const endLoad = uniqueTime();
1703
+ Cstr = await Cstr;
1704
+ endLoad();
1705
+ }
1706
+ if (!Cstr.isProxied) {
1707
+ // we've never proxied this Constructor before
1708
+ // let's add the getters/setters to its prototype before
1709
+ // the first time we create an instance of the implementation
1710
+ {
1711
+ cmpMeta.$watchers$ = Cstr.watchers;
1712
+ }
1713
+ proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
1714
+ Cstr.isProxied = true;
1715
+ }
1716
+ const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
1717
+ // ok, time to construct the instance
1718
+ // but let's keep track of when we start and stop
1719
+ // so that the getters/setters don't incorrectly step on data
1720
+ {
1721
+ hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
1722
+ }
1723
+ // construct the lazy-loaded component implementation
1724
+ // passing the hostRef is very important during
1725
+ // construction in order to directly wire together the
1726
+ // host element and the lazy-loaded instance
1727
+ try {
1728
+ new Cstr(hostRef);
1729
+ }
1730
+ catch (e) {
1731
+ consoleError(e);
1732
+ }
1733
+ {
1734
+ hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1735
+ }
1736
+ {
1737
+ hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
1738
+ }
1739
+ endNewInstance();
1740
+ fireConnectedCallback(hostRef.$lazyInstance$);
1741
+ }
1742
+ if (Cstr.style) {
1743
+ // this component has styles but we haven't registered them yet
1744
+ let style = Cstr.style;
1745
+ const scopeId = getScopeId(cmpMeta);
1746
+ if (!styles.has(scopeId)) {
1747
+ const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1748
+ registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
1749
+ endRegisterStyles();
1750
+ }
1751
+ }
1752
+ }
1753
+ // we've successfully created a lazy instance
1754
+ const ancestorComponent = hostRef.$ancestorComponent$;
1755
+ const schedule = () => scheduleUpdate(hostRef, true);
1756
+ if (ancestorComponent && ancestorComponent['s-rc']) {
1757
+ // this is the initial load and this component it has an ancestor component
1758
+ // but the ancestor component has NOT fired its will update lifecycle yet
1759
+ // so let's just cool our jets and wait for the ancestor to continue first
1760
+ // this will get fired off when the ancestor component
1761
+ // finally gets around to rendering its lazy self
1762
+ // fire off the initial update
1763
+ ancestorComponent['s-rc'].push(schedule);
1764
+ }
1765
+ else {
1766
+ schedule();
1767
+ }
1768
+ };
1769
+ const fireConnectedCallback = (instance) => {
1770
+ {
1771
+ safeCall(instance, 'connectedCallback');
1772
+ }
1773
+ };
1774
+ const connectedCallback = (elm) => {
1775
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1776
+ const hostRef = getHostRef(elm);
1777
+ const cmpMeta = hostRef.$cmpMeta$;
1778
+ const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1779
+ if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
1780
+ // first time this component has connected
1781
+ hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
1782
+ let hostId;
1783
+ {
1784
+ hostId = elm.getAttribute(HYDRATE_ID);
1785
+ if (hostId) {
1786
+ if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
1787
+ const scopeId = addStyle(elm.shadowRoot, cmpMeta);
1788
+ elm.classList.remove(scopeId + '-h', scopeId + '-s');
1789
+ }
1790
+ initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
1791
+ }
1792
+ }
1793
+ if (!hostId) {
1794
+ // initUpdate
1795
+ // if the slot polyfill is required we'll need to put some nodes
1796
+ // in here to act as original content anchors as we move nodes around
1797
+ // host element has been connected to the DOM
1798
+ if ((cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
1799
+ setContentReference(elm);
1800
+ }
1801
+ }
1802
+ {
1803
+ // find the first ancestor component (if there is one) and register
1804
+ // this component as one of the actively loading child components for its ancestor
1805
+ let ancestorComponent = elm;
1806
+ while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
1807
+ // climb up the ancestors looking for the first
1808
+ // component that hasn't finished its lifecycle update yet
1809
+ if ((ancestorComponent.nodeType === 1 /* NODE_TYPE.ElementNode */ &&
1810
+ ancestorComponent.hasAttribute('s-id') &&
1811
+ ancestorComponent['s-p']) ||
1812
+ ancestorComponent['s-p']) {
1813
+ // we found this components first ancestor component
1814
+ // keep a reference to this component's ancestor component
1815
+ attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
1816
+ break;
1817
+ }
1818
+ }
1819
+ }
1820
+ // Lazy properties
1821
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1822
+ if (cmpMeta.$members$) {
1823
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1824
+ if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
1825
+ const value = elm[memberName];
1826
+ delete elm[memberName];
1827
+ elm[memberName] = value;
1828
+ }
1829
+ });
1830
+ }
1831
+ {
1832
+ initializeComponent(elm, hostRef, cmpMeta);
1833
+ }
1834
+ }
1835
+ else {
1836
+ // fire off connectedCallback() on component instance
1837
+ fireConnectedCallback(hostRef.$lazyInstance$);
1838
+ }
1839
+ endConnected();
1840
+ }
1841
+ };
1842
+ const setContentReference = (elm) => {
1843
+ // only required when we're NOT using native shadow dom (slot)
1844
+ // or this browser doesn't support native shadow dom
1845
+ // and this host element was NOT created with SSR
1846
+ // let's pick out the inner content for slot projection
1847
+ // create a node to represent where the original
1848
+ // content was first placed, which is useful later on
1849
+ const contentRefElm = (elm['s-cr'] = doc.createComment(''));
1850
+ contentRefElm['s-cn'] = true;
1851
+ elm.insertBefore(contentRefElm, elm.firstChild);
1852
+ };
1853
+ const disconnectedCallback = (elm) => {
1854
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1855
+ const hostRef = getHostRef(elm);
1856
+ const instance = hostRef.$lazyInstance$ ;
1857
+ {
1858
+ safeCall(instance, 'disconnectedCallback');
1859
+ }
1860
+ }
1861
+ };
1862
+ const bootstrapLazy = (lazyBundles, options = {}) => {
1863
+ const endBootstrap = createTime();
1864
+ const cmpTags = [];
1865
+ const exclude = options.exclude || [];
1866
+ const customElements = win.customElements;
1867
+ const head = doc.head;
1868
+ const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1869
+ const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
1870
+ const deferredConnectedCallbacks = [];
1871
+ const styles = /*@__PURE__*/ doc.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
1872
+ let appLoadFallback;
1873
+ let isBootstrapping = true;
1874
+ let i = 0;
1875
+ Object.assign(plt, options);
1876
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1877
+ {
1878
+ // If the app is already hydrated there is not point to disable the
1879
+ // async queue. This will improve the first input delay
1880
+ plt.$flags$ |= 2 /* PLATFORM_FLAGS.appLoaded */;
1881
+ }
1882
+ {
1883
+ for (; i < styles.length; i++) {
1884
+ registerStyle(styles[i].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles[i].innerHTML), true);
1885
+ }
1886
+ }
1887
+ lazyBundles.map((lazyBundle) => {
1888
+ lazyBundle[1].map((compactMeta) => {
1889
+ const cmpMeta = {
1890
+ $flags$: compactMeta[0],
1891
+ $tagName$: compactMeta[1],
1892
+ $members$: compactMeta[2],
1893
+ $listeners$: compactMeta[3],
1894
+ };
1895
+ {
1896
+ cmpMeta.$members$ = compactMeta[2];
1897
+ }
1898
+ {
1899
+ cmpMeta.$attrsToReflect$ = [];
1900
+ }
1901
+ {
1902
+ cmpMeta.$watchers$ = {};
1903
+ }
1904
+ const tagName = cmpMeta.$tagName$;
1905
+ const HostElement = class extends HTMLElement {
1906
+ // StencilLazyHost
1907
+ constructor(self) {
1908
+ // @ts-ignore
1909
+ super(self);
1910
+ self = this;
1911
+ registerHost(self, cmpMeta);
1912
+ if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
1913
+ // this component is using shadow dom
1914
+ // and this browser supports shadow dom
1915
+ // add the read-only property "shadowRoot" to the host element
1916
+ // adding the shadow root build conditionals to minimize runtime
1917
+ {
1918
+ {
1919
+ self.attachShadow({ mode: 'open' });
1920
+ }
1921
+ }
1922
+ }
1923
+ }
1924
+ connectedCallback() {
1925
+ if (appLoadFallback) {
1926
+ clearTimeout(appLoadFallback);
1927
+ appLoadFallback = null;
1928
+ }
1929
+ if (isBootstrapping) {
1930
+ // connectedCallback will be processed once all components have been registered
1931
+ deferredConnectedCallbacks.push(this);
1932
+ }
1933
+ else {
1934
+ plt.jmp(() => connectedCallback(this));
1935
+ }
1936
+ }
1937
+ disconnectedCallback() {
1938
+ plt.jmp(() => disconnectedCallback(this));
1939
+ }
1940
+ componentOnReady() {
1941
+ return getHostRef(this).$onReadyPromise$;
1942
+ }
1943
+ };
1944
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
1945
+ if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1946
+ cmpTags.push(tagName);
1947
+ customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
1948
+ }
1949
+ });
1950
+ });
1951
+ {
1952
+ visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1953
+ visibilityStyle.setAttribute('data-styles', '');
1954
+ head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1955
+ }
1956
+ // Process deferred connectedCallbacks now all components have been registered
1957
+ isBootstrapping = false;
1958
+ if (deferredConnectedCallbacks.length) {
1959
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
1960
+ }
1961
+ else {
1962
+ {
1963
+ plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
1964
+ }
1965
+ }
1966
+ // Fallback appLoad event
1967
+ endBootstrap();
1968
+ };
1969
+ const hostRefs = /*@__PURE__*/ new WeakMap();
1970
+ const getHostRef = (ref) => hostRefs.get(ref);
1971
+ const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1972
+ const registerHost = (elm, cmpMeta) => {
1973
+ const hostRef = {
1974
+ $flags$: 0,
1975
+ $hostElement$: elm,
1976
+ $cmpMeta$: cmpMeta,
1977
+ $instanceValues$: new Map(),
1978
+ };
1979
+ {
1980
+ hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
1981
+ }
1982
+ {
1983
+ hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1984
+ elm['s-p'] = [];
1985
+ elm['s-rc'] = [];
1986
+ }
1987
+ return hostRefs.set(elm, hostRef);
1988
+ };
1989
+ const isMemberInElement = (elm, memberName) => memberName in elm;
1990
+ const consoleError = (e, el) => (0, console.error)(e, el);
1991
+ const cmpModules = /*@__PURE__*/ new Map();
1992
+ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1993
+ // loadModuleImport
1994
+ const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
1995
+ const bundleId = cmpMeta.$lazyBundleId$;
1996
+ const module = cmpModules.get(bundleId) ;
1997
+ if (module) {
1998
+ return module[exportName];
1999
+ }
2000
+
2001
+ if (!hmrVersionId || !BUILD.hotModuleReplacement) {
2002
+ const processMod = importedModule => {
2003
+ cmpModules.set(bundleId, importedModule);
2004
+ return importedModule[exportName];
2005
+ }
2006
+ switch(bundleId) {
2007
+
2008
+ case 'gov-app.cjs':
2009
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2010
+ /* webpackMode: "lazy" */
2011
+ './gov-app.cjs.entry.js')); }).then(processMod, consoleError);
2012
+ case 'gov-accordion.cjs':
2013
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2014
+ /* webpackMode: "lazy" */
2015
+ './gov-accordion.cjs.entry.js')); }).then(processMod, consoleError);
2016
+ case 'gov-accordion-item.cjs':
2017
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2018
+ /* webpackMode: "lazy" */
2019
+ './gov-accordion-item.cjs.entry.js')); }).then(processMod, consoleError);
2020
+ case 'gov-alert.cjs':
2021
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2022
+ /* webpackMode: "lazy" */
2023
+ './gov-alert.cjs.entry.js')); }).then(processMod, consoleError);
2024
+ case 'gov-card.cjs':
2025
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2026
+ /* webpackMode: "lazy" */
2027
+ './gov-card.cjs.entry.js')); }).then(processMod, consoleError);
2028
+ case 'gov-container.cjs':
2029
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2030
+ /* webpackMode: "lazy" */
2031
+ './gov-container.cjs.entry.js')); }).then(processMod, consoleError);
2032
+ case 'gov-cookiebar.cjs':
2033
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2034
+ /* webpackMode: "lazy" */
2035
+ './gov-cookiebar.cjs.entry.js')); }).then(processMod, consoleError);
2036
+ case 'gov-empty.cjs':
2037
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2038
+ /* webpackMode: "lazy" */
2039
+ './gov-empty.cjs.entry.js')); }).then(processMod, consoleError);
2040
+ case 'gov-error-code.cjs':
2041
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2042
+ /* webpackMode: "lazy" */
2043
+ './gov-error-code.cjs.entry.js')); }).then(processMod, consoleError);
2044
+ case 'gov-form-checkbox.cjs':
2045
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2046
+ /* webpackMode: "lazy" */
2047
+ './gov-form-checkbox.cjs.entry.js')); }).then(processMod, consoleError);
2048
+ case 'gov-form-control.cjs':
2049
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2050
+ /* webpackMode: "lazy" */
2051
+ './gov-form-control.cjs.entry.js')); }).then(processMod, consoleError);
2052
+ case 'gov-form-dropdown.cjs':
2053
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2054
+ /* webpackMode: "lazy" */
2055
+ './gov-form-dropdown.cjs.entry.js')); }).then(processMod, consoleError);
2056
+ case 'gov-form-file.cjs':
2057
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2058
+ /* webpackMode: "lazy" */
2059
+ './gov-form-file.cjs.entry.js')); }).then(processMod, consoleError);
2060
+ case 'gov-form-group.cjs':
2061
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2062
+ /* webpackMode: "lazy" */
2063
+ './gov-form-group.cjs.entry.js')); }).then(processMod, consoleError);
2064
+ case 'gov-form-label.cjs':
2065
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2066
+ /* webpackMode: "lazy" */
2067
+ './gov-form-label.cjs.entry.js')); }).then(processMod, consoleError);
2068
+ case 'gov-form-multi-select.cjs':
2069
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2070
+ /* webpackMode: "lazy" */
2071
+ './gov-form-multi-select.cjs.entry.js')); }).then(processMod, consoleError);
2072
+ case 'gov-form-radio.cjs':
2073
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2074
+ /* webpackMode: "lazy" */
2075
+ './gov-form-radio.cjs.entry.js')); }).then(processMod, consoleError);
2076
+ case 'gov-form-search.cjs':
2077
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2078
+ /* webpackMode: "lazy" */
2079
+ './gov-form-search.cjs.entry.js')); }).then(processMod, consoleError);
2080
+ case 'gov-form-switch.cjs':
2081
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2082
+ /* webpackMode: "lazy" */
2083
+ './gov-form-switch.cjs.entry.js')); }).then(processMod, consoleError);
2084
+ case 'gov-grid.cjs':
2085
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2086
+ /* webpackMode: "lazy" */
2087
+ './gov-grid.cjs.entry.js')); }).then(processMod, consoleError);
2088
+ case 'gov-message.cjs':
2089
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2090
+ /* webpackMode: "lazy" */
2091
+ './gov-message.cjs.entry.js')); }).then(processMod, consoleError);
2092
+ case 'gov-modal.cjs':
2093
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2094
+ /* webpackMode: "lazy" */
2095
+ './gov-modal.cjs.entry.js')); }).then(processMod, consoleError);
2096
+ case 'gov-pagination.cjs':
2097
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2098
+ /* webpackMode: "lazy" */
2099
+ './gov-pagination.cjs.entry.js')); }).then(processMod, consoleError);
2100
+ case 'gov-prompt.cjs':
2101
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2102
+ /* webpackMode: "lazy" */
2103
+ './gov-prompt.cjs.entry.js')); }).then(processMod, consoleError);
2104
+ case 'gov-side-nav.cjs':
2105
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2106
+ /* webpackMode: "lazy" */
2107
+ './gov-side-nav.cjs.entry.js')); }).then(processMod, consoleError);
2108
+ case 'gov-side-nav-item.cjs':
2109
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2110
+ /* webpackMode: "lazy" */
2111
+ './gov-side-nav-item.cjs.entry.js')); }).then(processMod, consoleError);
2112
+ case 'gov-spacer.cjs':
2113
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2114
+ /* webpackMode: "lazy" */
2115
+ './gov-spacer.cjs.entry.js')); }).then(processMod, consoleError);
2116
+ case 'gov-statsbar.cjs':
2117
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2118
+ /* webpackMode: "lazy" */
2119
+ './gov-statsbar.cjs.entry.js')); }).then(processMod, consoleError);
2120
+ case 'gov-statsbar-item.cjs':
2121
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2122
+ /* webpackMode: "lazy" */
2123
+ './gov-statsbar-item.cjs.entry.js')); }).then(processMod, consoleError);
2124
+ case 'gov-stepper.cjs':
2125
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2126
+ /* webpackMode: "lazy" */
2127
+ './gov-stepper.cjs.entry.js')); }).then(processMod, consoleError);
2128
+ case 'gov-stepper-item.cjs':
2129
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2130
+ /* webpackMode: "lazy" */
2131
+ './gov-stepper-item.cjs.entry.js')); }).then(processMod, consoleError);
2132
+ case 'gov-tabs.cjs':
2133
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2134
+ /* webpackMode: "lazy" */
2135
+ './gov-tabs.cjs.entry.js')); }).then(processMod, consoleError);
2136
+ case 'gov-tabs-item.cjs':
2137
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2138
+ /* webpackMode: "lazy" */
2139
+ './gov-tabs-item.cjs.entry.js')); }).then(processMod, consoleError);
2140
+ case 'gov-tile.cjs':
2141
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2142
+ /* webpackMode: "lazy" */
2143
+ './gov-tile.cjs.entry.js')); }).then(processMod, consoleError);
2144
+ case 'gov-toast.cjs':
2145
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2146
+ /* webpackMode: "lazy" */
2147
+ './gov-toast.cjs.entry.js')); }).then(processMod, consoleError);
2148
+ case 'gov-tooltip.cjs':
2149
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2150
+ /* webpackMode: "lazy" */
2151
+ './gov-tooltip.cjs.entry.js')); }).then(processMod, consoleError);
2152
+ case 'gov-tooltip-content.cjs':
2153
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2154
+ /* webpackMode: "lazy" */
2155
+ './gov-tooltip-content.cjs.entry.js')); }).then(processMod, consoleError);
2156
+ case 'gov-wizzard.cjs':
2157
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2158
+ /* webpackMode: "lazy" */
2159
+ './gov-wizzard.cjs.entry.js')); }).then(processMod, consoleError);
2160
+ case 'gov-wizzard-item.cjs':
2161
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2162
+ /* webpackMode: "lazy" */
2163
+ './gov-wizzard-item.cjs.entry.js')); }).then(processMod, consoleError);
2164
+ case 'gov-attachments_3.cjs':
2165
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2166
+ /* webpackMode: "lazy" */
2167
+ './gov-attachments_3.cjs.entry.js')); }).then(processMod, consoleError);
2168
+ case 'gov-form-autocomplete.cjs':
2169
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2170
+ /* webpackMode: "lazy" */
2171
+ './gov-form-autocomplete.cjs.entry.js')); }).then(processMod, consoleError);
2172
+ case 'gov-backdrop.cjs':
2173
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2174
+ /* webpackMode: "lazy" */
2175
+ './gov-backdrop.cjs.entry.js')); }).then(processMod, consoleError);
2176
+ case 'gov-badge.cjs':
2177
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2178
+ /* webpackMode: "lazy" */
2179
+ './gov-badge.cjs.entry.js')); }).then(processMod, consoleError);
2180
+ case 'gov-form-input.cjs':
2181
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2182
+ /* webpackMode: "lazy" */
2183
+ './gov-form-input.cjs.entry.js')); }).then(processMod, consoleError);
2184
+ case 'gov-form-select.cjs':
2185
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2186
+ /* webpackMode: "lazy" */
2187
+ './gov-form-select.cjs.entry.js')); }).then(processMod, consoleError);
2188
+ case 'gov-button.cjs':
2189
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2190
+ /* webpackMode: "lazy" */
2191
+ './gov-button.cjs.entry.js')); }).then(processMod, consoleError);
2192
+ case 'gov-icon.cjs':
2193
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2194
+ /* webpackMode: "lazy" */
2195
+ './gov-icon.cjs.entry.js')); }).then(processMod, consoleError);
2196
+ }
2197
+ }
2198
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2199
+ /* @vite-ignore */
2200
+ /* webpackInclude: /\.entry\.js$/ */
2201
+ /* webpackExclude: /\.system\.entry\.js$/ */
2202
+ /* webpackMode: "lazy" */
2203
+ `./${bundleId}.entry.js${''}`)); }).then((importedModule) => {
2204
+ {
2205
+ cmpModules.set(bundleId, importedModule);
2206
+ }
2207
+ return importedModule[exportName];
2208
+ }, consoleError);
2209
+ };
2210
+ const styles = /*@__PURE__*/ new Map();
2211
+ const win = typeof window !== 'undefined' ? window : {};
2212
+ const doc = win.document || { head: {} };
2213
+ const plt = {
2214
+ $flags$: 0,
2215
+ $resourcesUrl$: '',
2216
+ jmp: (h) => h(),
2217
+ raf: (h) => requestAnimationFrame(h),
2218
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
2219
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
2220
+ ce: (eventName, opts) => new CustomEvent(eventName, opts),
2221
+ };
2222
+ const supportsShadow = true;
2223
+ const promiseResolve = (v) => Promise.resolve(v);
2224
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
2225
+ try {
2226
+ new CSSStyleSheet();
2227
+ return typeof new CSSStyleSheet().replaceSync === 'function';
2228
+ }
2229
+ catch (e) { }
2230
+ return false;
2231
+ })()
2232
+ ;
2233
+ const queueDomReads = [];
2234
+ const queueDomWrites = [];
2235
+ const queueTask = (queue, write) => (cb) => {
2236
+ queue.push(cb);
2237
+ if (!queuePending) {
2238
+ queuePending = true;
2239
+ if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
2240
+ nextTick(flush);
2241
+ }
2242
+ else {
2243
+ plt.raf(flush);
2244
+ }
2245
+ }
2246
+ };
2247
+ const consume = (queue) => {
2248
+ for (let i = 0; i < queue.length; i++) {
2249
+ try {
2250
+ queue[i](performance.now());
2251
+ }
2252
+ catch (e) {
2253
+ consoleError(e);
2254
+ }
2255
+ }
2256
+ queue.length = 0;
2257
+ };
2258
+ const flush = () => {
2259
+ // always force a bunch of medium callbacks to run, but still have
2260
+ // a throttle on how many can run in a certain time
2261
+ // DOM READS!!!
2262
+ consume(queueDomReads);
2263
+ // DOM WRITES!!!
2264
+ {
2265
+ consume(queueDomWrites);
2266
+ if ((queuePending = queueDomReads.length > 0)) {
2267
+ // still more to do yet, but we've run out of time
2268
+ // let's let this thing cool off and try again in the next tick
2269
+ plt.raf(flush);
2270
+ }
2271
+ }
2272
+ };
2273
+ const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
2274
+ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
2275
+
2276
+ exports.Host = Host;
2277
+ exports.bootstrapLazy = bootstrapLazy;
2278
+ exports.createEvent = createEvent;
2279
+ exports.getAssetPath = getAssetPath;
2280
+ exports.getElement = getElement;
2281
+ exports.h = h;
2282
+ exports.promiseResolve = promiseResolve;
2283
+ exports.registerInstance = registerInstance;
2284
+
2285
+ //# sourceMappingURL=index-f0dd3088.js.map