@zanichelli/albe-web-components 12.1.4-rc → 12.2.0

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