@nova-design-system/nova-webcomponents 3.0.0-beta.28 → 3.0.0-beta.29

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 (431) hide show
  1. package/dist/blazor-docs.json +760 -254
  2. package/dist/cjs/{app-globals-d8cbb987.js → app-globals-69764290.js} +2 -2
  3. package/dist/cjs/{app-globals-d8cbb987.js.map → app-globals-69764290.js.map} +1 -1
  4. package/dist/cjs/{index-c50face0.js → index-72b8a9ad.js} +847 -488
  5. package/dist/cjs/index-72b8a9ad.js.map +1 -0
  6. package/dist/cjs/loader.cjs.js +2 -2
  7. package/dist/cjs/native.cjs.js +3 -3
  8. package/dist/cjs/native.cjs.js.map +1 -1
  9. package/dist/cjs/nv-alert.cjs.entry.js +22 -9
  10. package/dist/cjs/nv-alert.cjs.entry.js.map +1 -1
  11. package/dist/cjs/nv-avatar.cjs.entry.js +8 -11
  12. package/dist/cjs/nv-avatar.cjs.entry.js.map +1 -1
  13. package/dist/cjs/nv-badge.cjs.entry.js +40 -14
  14. package/dist/cjs/nv-badge.cjs.entry.js.map +1 -1
  15. package/dist/cjs/nv-base.cjs.entry.js +1 -1
  16. package/dist/cjs/nv-button.cjs.entry.js +40 -8
  17. package/dist/cjs/nv-button.cjs.entry.js.map +1 -1
  18. package/dist/cjs/nv-col.cjs.entry.js +1 -2
  19. package/dist/cjs/nv-col.cjs.entry.js.map +1 -1
  20. package/dist/cjs/nv-datagrid.cjs.entry.js +31 -5
  21. package/dist/cjs/nv-datagrid.cjs.entry.js.map +1 -1
  22. package/dist/cjs/nv-datagridbody.cjs.entry.js +1 -1
  23. package/dist/cjs/nv-datagridcolumn.cjs.entry.js +1 -3
  24. package/dist/cjs/nv-datagridcolumn.cjs.entry.js.map +1 -1
  25. package/dist/cjs/nv-datagriddatacell.cjs.entry.js +1 -2
  26. package/dist/cjs/nv-datagriddatacell.cjs.entry.js.map +1 -1
  27. package/dist/cjs/nv-datagridhead.cjs.entry.js +1 -1
  28. package/dist/cjs/nv-datagridrow.cjs.entry.js +1 -1
  29. package/dist/cjs/nv-fieldcheckbox.cjs.entry.js +40 -9
  30. package/dist/cjs/nv-fieldcheckbox.cjs.entry.js.map +1 -1
  31. package/dist/cjs/nv-fielddropdown.cjs.entry.js +58 -19
  32. package/dist/cjs/nv-fielddropdown.cjs.entry.js.map +1 -1
  33. package/dist/cjs/nv-fielddropdownitem.cjs.entry.js +11 -5
  34. package/dist/cjs/nv-fielddropdownitem.cjs.entry.js.map +1 -1
  35. package/dist/cjs/nv-fieldnumber.cjs.entry.js +44 -18
  36. package/dist/cjs/nv-fieldnumber.cjs.entry.js.map +1 -1
  37. package/dist/cjs/nv-fieldpassword.cjs.entry.js +62 -21
  38. package/dist/cjs/nv-fieldpassword.cjs.entry.js.map +1 -1
  39. package/dist/cjs/nv-fieldradio.cjs.entry.js +26 -8
  40. package/dist/cjs/nv-fieldradio.cjs.entry.js.map +1 -1
  41. package/dist/cjs/nv-fieldselect.cjs.entry.js +59 -18
  42. package/dist/cjs/nv-fieldselect.cjs.entry.js.map +1 -1
  43. package/dist/cjs/nv-fieldtext.cjs.entry.js +52 -22
  44. package/dist/cjs/nv-fieldtext.cjs.entry.js.map +1 -1
  45. package/dist/cjs/nv-fieldtextarea.cjs.entry.js +58 -20
  46. package/dist/cjs/nv-fieldtextarea.cjs.entry.js.map +1 -1
  47. package/dist/cjs/nv-fieldtoggle.cjs.entry.js +19 -6
  48. package/dist/cjs/nv-fieldtoggle.cjs.entry.js.map +1 -1
  49. package/dist/cjs/nv-icon.cjs.entry.js +4 -9
  50. package/dist/cjs/nv-icon.cjs.entry.js.map +1 -1
  51. package/dist/cjs/nv-iconbutton.cjs.entry.js +42 -9
  52. package/dist/cjs/nv-iconbutton.cjs.entry.js.map +1 -1
  53. package/dist/cjs/nv-loader.cjs.entry.js +8 -2
  54. package/dist/cjs/nv-loader.cjs.entry.js.map +1 -1
  55. package/dist/cjs/nv-menu.cjs.entry.js +20 -1
  56. package/dist/cjs/nv-menu.cjs.entry.js.map +1 -1
  57. package/dist/cjs/nv-menuitem.cjs.entry.js +7 -3
  58. package/dist/cjs/nv-menuitem.cjs.entry.js.map +1 -1
  59. package/dist/cjs/nv-popover.cjs.entry.js +48 -12
  60. package/dist/cjs/nv-popover.cjs.entry.js.map +1 -1
  61. package/dist/cjs/nv-row.cjs.entry.js +1 -1
  62. package/dist/cjs/nv-stack.cjs.entry.js +7 -5
  63. package/dist/cjs/nv-stack.cjs.entry.js.map +1 -1
  64. package/dist/cjs/nv-table.cjs.entry.js +26 -5
  65. package/dist/cjs/nv-table.cjs.entry.js.map +1 -1
  66. package/dist/cjs/nv-tablebody.cjs.entry.js +1 -1
  67. package/dist/cjs/nv-tablecolumn.cjs.entry.js +15 -4
  68. package/dist/cjs/nv-tablecolumn.cjs.entry.js.map +1 -1
  69. package/dist/cjs/nv-tabledatacell.cjs.entry.js +17 -2
  70. package/dist/cjs/nv-tabledatacell.cjs.entry.js.map +1 -1
  71. package/dist/cjs/nv-tablehead.cjs.entry.js +1 -1
  72. package/dist/cjs/nv-tablerow.cjs.entry.js +1 -1
  73. package/dist/cjs/nv-tooltip.cjs.entry.js +11 -2
  74. package/dist/cjs/nv-tooltip.cjs.entry.js.map +1 -1
  75. package/dist/collection/collection-manifest.json +1 -1
  76. package/dist/collection/components/nv-alert/nv-alert.js +37 -8
  77. package/dist/collection/components/nv-alert/nv-alert.js.map +1 -1
  78. package/dist/collection/components/nv-avatar/nv-avatar.js +31 -10
  79. package/dist/collection/components/nv-avatar/nv-avatar.js.map +1 -1
  80. package/dist/collection/components/nv-badge/nv-badge.css +70 -0
  81. package/dist/collection/components/nv-badge/nv-badge.docs.js +1 -1
  82. package/dist/collection/components/nv-badge/nv-badge.docs.js.map +1 -1
  83. package/dist/collection/components/nv-badge/nv-badge.js +57 -13
  84. package/dist/collection/components/nv-badge/nv-badge.js.map +1 -1
  85. package/dist/collection/components/nv-button/nv-button.js +53 -7
  86. package/dist/collection/components/nv-button/nv-button.js.map +1 -1
  87. package/dist/collection/components/nv-col/nv-col.js +2 -3
  88. package/dist/collection/components/nv-col/nv-col.js.map +1 -1
  89. package/dist/collection/components/nv-datagrid/nv-datagrid.js +42 -4
  90. package/dist/collection/components/nv-datagrid/nv-datagrid.js.map +1 -1
  91. package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.js +4 -4
  92. package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.js.map +1 -1
  93. package/dist/collection/components/nv-datagriddatacell/nv-datagriddatacell.js +2 -3
  94. package/dist/collection/components/nv-datagriddatacell/nv-datagriddatacell.js.map +1 -1
  95. package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.js +73 -8
  96. package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.js.map +1 -1
  97. package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js +87 -18
  98. package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js.map +1 -1
  99. package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js +18 -4
  100. package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js.map +1 -1
  101. package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js +77 -17
  102. package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js.map +1 -1
  103. package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js +99 -20
  104. package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js.map +1 -1
  105. package/dist/collection/components/nv-fieldradio/nv-fieldradio.js +49 -7
  106. package/dist/collection/components/nv-fieldradio/nv-fieldradio.js.map +1 -1
  107. package/dist/collection/components/nv-fieldselect/nv-fieldselect.js +88 -17
  108. package/dist/collection/components/nv-fieldselect/nv-fieldselect.js.map +1 -1
  109. package/dist/collection/components/nv-fieldtext/nv-fieldtext.js +93 -21
  110. package/dist/collection/components/nv-fieldtext/nv-fieldtext.js.map +1 -1
  111. package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js +95 -19
  112. package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js.map +1 -1
  113. package/dist/collection/components/nv-fieldtoggle/nv-fieldtoggle.js +38 -5
  114. package/dist/collection/components/nv-fieldtoggle/nv-fieldtoggle.js.map +1 -1
  115. package/dist/collection/components/nv-icon/nv-icon.js +19 -8
  116. package/dist/collection/components/nv-icon/nv-icon.js.map +1 -1
  117. package/dist/collection/components/nv-iconbutton/nv-iconbutton.js +57 -8
  118. package/dist/collection/components/nv-iconbutton/nv-iconbutton.js.map +1 -1
  119. package/dist/collection/components/nv-loader/nv-loader.js +11 -1
  120. package/dist/collection/components/nv-loader/nv-loader.js.map +1 -1
  121. package/dist/collection/components/nv-menu/nv-menu.js +27 -0
  122. package/dist/collection/components/nv-menu/nv-menu.js.map +1 -1
  123. package/dist/collection/components/nv-menuitem/nv-menuitem.js +14 -2
  124. package/dist/collection/components/nv-menuitem/nv-menuitem.js.map +1 -1
  125. package/dist/collection/components/nv-popover/nv-popover.js +70 -12
  126. package/dist/collection/components/nv-popover/nv-popover.js.map +1 -1
  127. package/dist/collection/components/nv-stack/nv-stack.js +16 -4
  128. package/dist/collection/components/nv-stack/nv-stack.js.map +1 -1
  129. package/dist/collection/components/nv-table/nv-table.js +37 -4
  130. package/dist/collection/components/nv-table/nv-table.js.map +1 -1
  131. package/dist/collection/components/nv-tablecolumn/nv-tablecolumn.js +24 -3
  132. package/dist/collection/components/nv-tablecolumn/nv-tablecolumn.js.map +1 -1
  133. package/dist/collection/components/nv-tabledatacell/nv-tabledatacell.js +22 -1
  134. package/dist/collection/components/nv-tabledatacell/nv-tabledatacell.js.map +1 -1
  135. package/dist/collection/components/nv-tooltip/nv-tooltip.js +16 -1
  136. package/dist/collection/components/nv-tooltip/nv-tooltip.js.map +1 -1
  137. package/dist/collection/dev/dev-components.js +1 -1
  138. package/dist/collection/dev/dev-components.js.map +1 -1
  139. package/dist/components/index.js +3 -3
  140. package/dist/components/nv-alert.js +23 -10
  141. package/dist/components/nv-alert.js.map +1 -1
  142. package/dist/components/nv-avatar.js +9 -12
  143. package/dist/components/nv-avatar.js.map +1 -1
  144. package/dist/components/nv-badge.js +41 -15
  145. package/dist/components/nv-badge.js.map +1 -1
  146. package/dist/components/nv-base.js +1 -1
  147. package/dist/components/nv-button.js +41 -9
  148. package/dist/components/nv-button.js.map +1 -1
  149. package/dist/components/nv-col.js +1 -2
  150. package/dist/components/nv-col.js.map +1 -1
  151. package/dist/components/nv-datagrid.js +31 -5
  152. package/dist/components/nv-datagrid.js.map +1 -1
  153. package/dist/components/nv-datagridbody.js +1 -1
  154. package/dist/components/nv-datagridcolumn.js +1 -3
  155. package/dist/components/nv-datagridcolumn.js.map +1 -1
  156. package/dist/components/nv-datagriddatacell.js +1 -2
  157. package/dist/components/nv-datagriddatacell.js.map +1 -1
  158. package/dist/components/nv-datagridhead.js +1 -1
  159. package/dist/components/nv-datagridrow.js +1 -1
  160. package/dist/components/nv-fieldcheckbox.js +40 -9
  161. package/dist/components/nv-fieldcheckbox.js.map +1 -1
  162. package/dist/components/nv-fielddropdown.js +63 -24
  163. package/dist/components/nv-fielddropdown.js.map +1 -1
  164. package/dist/components/nv-fielddropdownitem.js +1 -1
  165. package/dist/components/nv-fieldnumber.js +45 -19
  166. package/dist/components/nv-fieldnumber.js.map +1 -1
  167. package/dist/components/nv-fieldpassword.js +65 -24
  168. package/dist/components/nv-fieldpassword.js.map +1 -1
  169. package/dist/components/nv-fieldradio.js +26 -8
  170. package/dist/components/nv-fieldradio.js.map +1 -1
  171. package/dist/components/nv-fieldselect.js +60 -19
  172. package/dist/components/nv-fieldselect.js.map +1 -1
  173. package/dist/components/nv-fieldtext.js +53 -23
  174. package/dist/components/nv-fieldtext.js.map +1 -1
  175. package/dist/components/nv-fieldtextarea.js +58 -20
  176. package/dist/components/nv-fieldtextarea.js.map +1 -1
  177. package/dist/components/nv-fieldtoggle.js +19 -6
  178. package/dist/components/nv-fieldtoggle.js.map +1 -1
  179. package/dist/components/nv-icon.js +1 -1
  180. package/dist/components/nv-iconbutton.js +1 -1
  181. package/dist/components/nv-loader.js +1 -1
  182. package/dist/components/nv-menu.js +21 -2
  183. package/dist/components/nv-menu.js.map +1 -1
  184. package/dist/components/nv-menuitem.js +8 -4
  185. package/dist/components/nv-menuitem.js.map +1 -1
  186. package/dist/components/nv-popover.js +1 -1
  187. package/dist/components/nv-row.js +1 -1
  188. package/dist/components/nv-stack.js +7 -5
  189. package/dist/components/nv-stack.js.map +1 -1
  190. package/dist/components/nv-table.js +26 -5
  191. package/dist/components/nv-table.js.map +1 -1
  192. package/dist/components/nv-tablebody.js +1 -1
  193. package/dist/components/nv-tablecolumn.js +15 -4
  194. package/dist/components/nv-tablecolumn.js.map +1 -1
  195. package/dist/components/nv-tabledatacell.js +17 -2
  196. package/dist/components/nv-tabledatacell.js.map +1 -1
  197. package/dist/components/nv-tablehead.js +1 -1
  198. package/dist/components/nv-tablerow.js +1 -1
  199. package/dist/components/nv-tooltip.js +12 -3
  200. package/dist/components/nv-tooltip.js.map +1 -1
  201. package/dist/components/{p-d506ae63.js → p-0caa4741.js} +836 -491
  202. package/dist/components/p-0caa4741.js.map +1 -0
  203. package/dist/components/{p-689a7b38.js → p-39e93e5b.js} +5 -10
  204. package/dist/components/p-39e93e5b.js.map +1 -0
  205. package/dist/components/{p-8c8cf8ea.js → p-3ef4ded9.js} +9 -3
  206. package/dist/components/p-3ef4ded9.js.map +1 -0
  207. package/dist/components/{p-89fb6636.js → p-54ea8e62.js} +50 -14
  208. package/dist/components/p-54ea8e62.js.map +1 -0
  209. package/dist/components/{p-45405075.js → p-6c1b9782.js} +13 -7
  210. package/dist/components/p-6c1b9782.js.map +1 -0
  211. package/dist/components/{p-ae6a0d80.js → p-c08a278d.js} +207 -172
  212. package/dist/components/p-c08a278d.js.map +1 -0
  213. package/dist/components/{p-45c63143.js → p-f0d5586a.js} +45 -12
  214. package/dist/components/p-f0d5586a.js.map +1 -0
  215. package/dist/docs.d.ts +8 -0
  216. package/dist/docs.json +762 -256
  217. package/dist/esm/{app-globals-eea8674a.js → app-globals-c5484a00.js} +2 -2
  218. package/dist/esm/{app-globals-eea8674a.js.map → app-globals-c5484a00.js.map} +1 -1
  219. package/dist/esm/{index-e7b35c14.js → index-b6f70e4a.js} +847 -488
  220. package/dist/esm/index-b6f70e4a.js.map +1 -0
  221. package/dist/esm/loader.js +3 -3
  222. package/dist/esm/native.js +4 -4
  223. package/dist/esm/native.js.map +1 -1
  224. package/dist/esm/nv-alert.entry.js +22 -9
  225. package/dist/esm/nv-alert.entry.js.map +1 -1
  226. package/dist/esm/nv-avatar.entry.js +8 -11
  227. package/dist/esm/nv-avatar.entry.js.map +1 -1
  228. package/dist/esm/nv-badge.entry.js +40 -14
  229. package/dist/esm/nv-badge.entry.js.map +1 -1
  230. package/dist/esm/nv-base.entry.js +1 -1
  231. package/dist/esm/nv-button.entry.js +40 -8
  232. package/dist/esm/nv-button.entry.js.map +1 -1
  233. package/dist/esm/nv-col.entry.js +1 -2
  234. package/dist/esm/nv-col.entry.js.map +1 -1
  235. package/dist/esm/nv-datagrid.entry.js +31 -5
  236. package/dist/esm/nv-datagrid.entry.js.map +1 -1
  237. package/dist/esm/nv-datagridbody.entry.js +1 -1
  238. package/dist/esm/nv-datagridcolumn.entry.js +1 -3
  239. package/dist/esm/nv-datagridcolumn.entry.js.map +1 -1
  240. package/dist/esm/nv-datagriddatacell.entry.js +1 -2
  241. package/dist/esm/nv-datagriddatacell.entry.js.map +1 -1
  242. package/dist/esm/nv-datagridhead.entry.js +1 -1
  243. package/dist/esm/nv-datagridrow.entry.js +1 -1
  244. package/dist/esm/nv-fieldcheckbox.entry.js +40 -9
  245. package/dist/esm/nv-fieldcheckbox.entry.js.map +1 -1
  246. package/dist/esm/nv-fielddropdown.entry.js +58 -19
  247. package/dist/esm/nv-fielddropdown.entry.js.map +1 -1
  248. package/dist/esm/nv-fielddropdownitem.entry.js +11 -5
  249. package/dist/esm/nv-fielddropdownitem.entry.js.map +1 -1
  250. package/dist/esm/nv-fieldnumber.entry.js +44 -18
  251. package/dist/esm/nv-fieldnumber.entry.js.map +1 -1
  252. package/dist/esm/nv-fieldpassword.entry.js +62 -21
  253. package/dist/esm/nv-fieldpassword.entry.js.map +1 -1
  254. package/dist/esm/nv-fieldradio.entry.js +26 -8
  255. package/dist/esm/nv-fieldradio.entry.js.map +1 -1
  256. package/dist/esm/nv-fieldselect.entry.js +59 -18
  257. package/dist/esm/nv-fieldselect.entry.js.map +1 -1
  258. package/dist/esm/nv-fieldtext.entry.js +52 -22
  259. package/dist/esm/nv-fieldtext.entry.js.map +1 -1
  260. package/dist/esm/nv-fieldtextarea.entry.js +58 -20
  261. package/dist/esm/nv-fieldtextarea.entry.js.map +1 -1
  262. package/dist/esm/nv-fieldtoggle.entry.js +19 -6
  263. package/dist/esm/nv-fieldtoggle.entry.js.map +1 -1
  264. package/dist/esm/nv-icon.entry.js +4 -9
  265. package/dist/esm/nv-icon.entry.js.map +1 -1
  266. package/dist/esm/nv-iconbutton.entry.js +42 -9
  267. package/dist/esm/nv-iconbutton.entry.js.map +1 -1
  268. package/dist/esm/nv-loader.entry.js +8 -2
  269. package/dist/esm/nv-loader.entry.js.map +1 -1
  270. package/dist/esm/nv-menu.entry.js +20 -1
  271. package/dist/esm/nv-menu.entry.js.map +1 -1
  272. package/dist/esm/nv-menuitem.entry.js +7 -3
  273. package/dist/esm/nv-menuitem.entry.js.map +1 -1
  274. package/dist/esm/nv-popover.entry.js +48 -12
  275. package/dist/esm/nv-popover.entry.js.map +1 -1
  276. package/dist/esm/nv-row.entry.js +1 -1
  277. package/dist/esm/nv-stack.entry.js +7 -5
  278. package/dist/esm/nv-stack.entry.js.map +1 -1
  279. package/dist/esm/nv-table.entry.js +26 -5
  280. package/dist/esm/nv-table.entry.js.map +1 -1
  281. package/dist/esm/nv-tablebody.entry.js +1 -1
  282. package/dist/esm/nv-tablecolumn.entry.js +15 -4
  283. package/dist/esm/nv-tablecolumn.entry.js.map +1 -1
  284. package/dist/esm/nv-tabledatacell.entry.js +17 -2
  285. package/dist/esm/nv-tabledatacell.entry.js.map +1 -1
  286. package/dist/esm/nv-tablehead.entry.js +1 -1
  287. package/dist/esm/nv-tablerow.entry.js +1 -1
  288. package/dist/esm/nv-tooltip.entry.js +11 -2
  289. package/dist/esm/nv-tooltip.entry.js.map +1 -1
  290. package/dist/native/native.css +1 -1
  291. package/dist/native/native.esm.js +1 -1
  292. package/dist/native/native.esm.js.map +1 -1
  293. package/dist/native/{p-dba9c57c.entry.js → p-01262eaf.entry.js} +2 -2
  294. package/dist/native/p-01262eaf.entry.js.map +1 -0
  295. package/dist/native/p-0bf2007c.entry.js +2 -0
  296. package/dist/native/p-0bf2007c.entry.js.map +1 -0
  297. package/dist/native/{p-69ca8c88.entry.js → p-11faaf31.entry.js} +2 -2
  298. package/dist/native/p-11faaf31.entry.js.map +1 -0
  299. package/dist/native/p-17dba26d.entry.js +2 -0
  300. package/dist/native/{p-39dbb15b.entry.js → p-25e410c1.entry.js} +2 -2
  301. package/dist/native/p-25e410c1.entry.js.map +1 -0
  302. package/dist/native/{p-808cf007.entry.js → p-2a6ca749.entry.js} +2 -2
  303. package/dist/native/p-2a6ca749.entry.js.map +1 -0
  304. package/dist/native/p-327fa1a0.entry.js +2 -0
  305. package/dist/native/p-3bc5875e.entry.js +2 -0
  306. package/dist/native/p-3bc5875e.entry.js.map +1 -0
  307. package/dist/native/p-47c78fe4.entry.js +2 -0
  308. package/dist/native/p-47c78fe4.entry.js.map +1 -0
  309. package/dist/native/{p-bdab3562.entry.js → p-4a64f5b0.entry.js} +2 -2
  310. package/dist/native/p-4a64f5b0.entry.js.map +1 -0
  311. package/dist/native/{p-13070761.entry.js → p-50c31094.entry.js} +2 -2
  312. package/dist/native/p-50c31094.entry.js.map +1 -0
  313. package/dist/native/{p-a59ec107.entry.js → p-605f8b3d.entry.js} +2 -2
  314. package/dist/native/p-605f8b3d.entry.js.map +1 -0
  315. package/dist/native/p-64ae9a21.entry.js +2 -0
  316. package/dist/native/p-64ae9a21.entry.js.map +1 -0
  317. package/dist/native/{p-20c7fc4d.entry.js → p-6e8bcd5b.entry.js} +2 -2
  318. package/dist/native/p-6e8bcd5b.entry.js.map +1 -0
  319. package/dist/native/{p-c4f7e36d.entry.js → p-6eb50254.entry.js} +2 -2
  320. package/dist/native/p-6eb50254.entry.js.map +1 -0
  321. package/dist/native/p-6ef216c4.js +3 -0
  322. package/dist/native/p-6ef216c4.js.map +1 -0
  323. package/dist/native/{p-1aaee302.entry.js → p-7701e4cc.entry.js} +2 -2
  324. package/dist/native/p-7701e4cc.entry.js.map +1 -0
  325. package/dist/native/p-86947929.entry.js +2 -0
  326. package/dist/native/{p-982e474f.entry.js.map → p-86947929.entry.js.map} +1 -1
  327. package/dist/native/p-8bfdda07.entry.js +2 -0
  328. package/dist/native/p-8bfdda07.entry.js.map +1 -0
  329. package/dist/native/p-8f95f4fa.entry.js +2 -0
  330. package/dist/native/p-8f95f4fa.entry.js.map +1 -0
  331. package/dist/native/{p-81256924.entry.js → p-919cf3ec.entry.js} +2 -2
  332. package/dist/native/p-919cf3ec.entry.js.map +1 -0
  333. package/dist/native/p-93eea6e1.entry.js +2 -0
  334. package/dist/native/{p-e842220b.entry.js.map → p-93eea6e1.entry.js.map} +1 -1
  335. package/dist/native/p-95714583.js +2 -0
  336. package/dist/native/p-9f89229b.entry.js +2 -0
  337. package/dist/native/{p-2fca31c0.entry.js.map → p-9f89229b.entry.js.map} +1 -1
  338. package/dist/native/{p-844f4878.entry.js → p-a64baca2.entry.js} +2 -2
  339. package/dist/native/p-a64baca2.entry.js.map +1 -0
  340. package/dist/native/{p-ea4092a7.entry.js → p-a89f5542.entry.js} +2 -2
  341. package/dist/native/p-a89f5542.entry.js.map +1 -0
  342. package/dist/native/p-b3ec71c9.entry.js +2 -0
  343. package/dist/native/p-bbe9a373.entry.js +2 -0
  344. package/dist/native/p-c2dfee1a.entry.js +2 -0
  345. package/dist/native/{p-0cfe2048.entry.js → p-c5e3e234.entry.js} +2 -2
  346. package/dist/native/p-c5e3e234.entry.js.map +1 -0
  347. package/dist/native/{p-c1c661a0.entry.js → p-c5e7ecc8.entry.js} +2 -2
  348. package/dist/native/p-c5e7ecc8.entry.js.map +1 -0
  349. package/dist/native/{p-36d5158c.entry.js → p-c85d031d.entry.js} +3 -3
  350. package/dist/native/p-c85d031d.entry.js.map +1 -0
  351. package/dist/native/{p-38817aa3.entry.js → p-cd75ee63.entry.js} +2 -2
  352. package/dist/native/p-cd75ee63.entry.js.map +1 -0
  353. package/dist/native/{p-e2df46e2.entry.js → p-d4277c50.entry.js} +2 -2
  354. package/dist/native/p-d4277c50.entry.js.map +1 -0
  355. package/dist/native/{p-75b5fdce.entry.js → p-df6c9137.entry.js} +2 -2
  356. package/dist/native/p-df6c9137.entry.js.map +1 -0
  357. package/dist/native/{p-330c929d.entry.js → p-e71fc762.entry.js} +2 -2
  358. package/dist/native/p-ef7f605a.entry.js +2 -0
  359. package/dist/native/p-f2e31579.entry.js +2 -0
  360. package/dist/native/{p-671699bf.entry.js.map → p-f2e31579.entry.js.map} +1 -1
  361. package/dist/native/{p-1edb76e1.entry.js → p-fa8a8b21.entry.js} +2 -2
  362. package/dist/native/p-fa8a8b21.entry.js.map +1 -0
  363. package/dist/types/components/nv-badge/nv-badge.d.ts +1 -1
  364. package/dist/types/components.d.ts +2 -2
  365. package/dist/vscode-data.json +1 -1
  366. package/hydrate/index.js +1507 -733
  367. package/hydrate/index.mjs +1507 -733
  368. package/package.json +7 -2
  369. package/readme.md +5 -1
  370. package/dist/cjs/index-c50face0.js.map +0 -1
  371. package/dist/components/p-45405075.js.map +0 -1
  372. package/dist/components/p-45c63143.js.map +0 -1
  373. package/dist/components/p-689a7b38.js.map +0 -1
  374. package/dist/components/p-89fb6636.js.map +0 -1
  375. package/dist/components/p-8c8cf8ea.js.map +0 -1
  376. package/dist/components/p-ae6a0d80.js.map +0 -1
  377. package/dist/components/p-d506ae63.js.map +0 -1
  378. package/dist/esm/index-e7b35c14.js.map +0 -1
  379. package/dist/native/p-01be802d.entry.js +0 -2
  380. package/dist/native/p-0cfe2048.entry.js.map +0 -1
  381. package/dist/native/p-13070761.entry.js.map +0 -1
  382. package/dist/native/p-1aaee302.entry.js.map +0 -1
  383. package/dist/native/p-1edb76e1.entry.js.map +0 -1
  384. package/dist/native/p-20c7fc4d.entry.js.map +0 -1
  385. package/dist/native/p-28cf537b.entry.js +0 -2
  386. package/dist/native/p-2fca31c0.entry.js +0 -2
  387. package/dist/native/p-36d5158c.entry.js.map +0 -1
  388. package/dist/native/p-38817aa3.entry.js.map +0 -1
  389. package/dist/native/p-39dbb15b.entry.js.map +0 -1
  390. package/dist/native/p-4b926563.entry.js +0 -2
  391. package/dist/native/p-4b926563.entry.js.map +0 -1
  392. package/dist/native/p-4e351d8e.entry.js +0 -2
  393. package/dist/native/p-4e351d8e.entry.js.map +0 -1
  394. package/dist/native/p-671699bf.entry.js +0 -2
  395. package/dist/native/p-69ca8c88.entry.js.map +0 -1
  396. package/dist/native/p-75b5fdce.entry.js.map +0 -1
  397. package/dist/native/p-7a7b9b95.entry.js +0 -2
  398. package/dist/native/p-808cf007.entry.js.map +0 -1
  399. package/dist/native/p-81256924.entry.js.map +0 -1
  400. package/dist/native/p-844f4878.entry.js.map +0 -1
  401. package/dist/native/p-861f91d3.entry.js +0 -2
  402. package/dist/native/p-9221f72a.entry.js +0 -2
  403. package/dist/native/p-982e474f.entry.js +0 -2
  404. package/dist/native/p-99850272.entry.js +0 -2
  405. package/dist/native/p-99850272.entry.js.map +0 -1
  406. package/dist/native/p-a59ec107.entry.js.map +0 -1
  407. package/dist/native/p-b4aea326.js +0 -3
  408. package/dist/native/p-b4aea326.js.map +0 -1
  409. package/dist/native/p-bdab3562.entry.js.map +0 -1
  410. package/dist/native/p-c1c661a0.entry.js.map +0 -1
  411. package/dist/native/p-c4f7e36d.entry.js.map +0 -1
  412. package/dist/native/p-dba9c57c.entry.js.map +0 -1
  413. package/dist/native/p-dbae3920.entry.js +0 -2
  414. package/dist/native/p-dbae3920.entry.js.map +0 -1
  415. package/dist/native/p-de6e0e1f.entry.js +0 -2
  416. package/dist/native/p-de6e0e1f.entry.js.map +0 -1
  417. package/dist/native/p-e2df46e2.entry.js.map +0 -1
  418. package/dist/native/p-e842220b.entry.js +0 -2
  419. package/dist/native/p-ea4092a7.entry.js.map +0 -1
  420. package/dist/native/p-ed893068.entry.js +0 -2
  421. package/dist/native/p-ed893068.entry.js.map +0 -1
  422. package/dist/native/p-eeb6a3dc.js +0 -2
  423. package/dist/native/p-f7b96c42.entry.js +0 -2
  424. /package/dist/native/{p-01be802d.entry.js.map → p-17dba26d.entry.js.map} +0 -0
  425. /package/dist/native/{p-861f91d3.entry.js.map → p-327fa1a0.entry.js.map} +0 -0
  426. /package/dist/native/{p-eeb6a3dc.js.map → p-95714583.js.map} +0 -0
  427. /package/dist/native/{p-9221f72a.entry.js.map → p-b3ec71c9.entry.js.map} +0 -0
  428. /package/dist/native/{p-7a7b9b95.entry.js.map → p-bbe9a373.entry.js.map} +0 -0
  429. /package/dist/native/{p-28cf537b.entry.js.map → p-c2dfee1a.entry.js.map} +0 -0
  430. /package/dist/native/{p-330c929d.entry.js.map → p-e71fc762.entry.js.map} +0 -0
  431. /package/dist/native/{p-f7b96c42.entry.js.map → p-ef7f605a.entry.js.map} +0 -0
@@ -21,19 +21,28 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'native';
24
- const BUILD = /* native */ { allRenderFn: true, appendChildSlotFix: true, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: true, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: true, formAssociated: true, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: true, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: false, slot: true, slotChildNodesFix: true, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
24
+ const BUILD = /* native */ { allRenderFn: true, appendChildSlotFix: true, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: true, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: true, experimentalSlotFixes: true, formAssociated: true, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: true, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: false, slot: true, slotChildNodesFix: true, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.23.1 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
31
31
  for (var name in all)
32
32
  __defProp(target, name, { get: all[name], enumerable: true });
33
33
  };
34
+
35
+ // src/utils/constants.ts
36
+ var EMPTY_OBJ = {};
37
+ var SVG_NS = "http://www.w3.org/2000/svg";
38
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
39
+
40
+ // src/client/client-host-ref.ts
34
41
  var hostRefs = /* @__PURE__ */ new WeakMap();
35
42
  var getHostRef = (ref) => hostRefs.get(ref);
36
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
43
+ var registerInstance = (lazyInstance, hostRef) => {
44
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
45
+ };
37
46
  var registerHost = (hostElement, cmpMeta) => {
38
47
  const hostRef = {
39
48
  $flags$: 0,
@@ -49,7 +58,8 @@ var registerHost = (hostElement, cmpMeta) => {
49
58
  hostElement["s-p"] = [];
50
59
  hostElement["s-rc"] = [];
51
60
  }
52
- return hostRefs.set(hostElement, hostRef);
61
+ const ref = hostRefs.set(hostElement, hostRef);
62
+ return ref;
53
63
  };
54
64
  var isMemberInElement = (elm, memberName) => memberName in elm;
55
65
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -246,6 +256,7 @@ var CONTENT_REF_ID = "r";
246
256
  var ORG_LOCATION_ID = "o";
247
257
  var SLOT_NODE_ID = "s";
248
258
  var TEXT_NODE_ID = "t";
259
+ var COMMENT_NODE_ID = "c";
249
260
  var HYDRATE_ID = "s-id";
250
261
  var HYDRATED_STYLE_ID = "sty-id";
251
262
  var HYDRATE_CHILD_ID = "c-id";
@@ -331,14 +342,6 @@ var flush = () => {
331
342
  };
332
343
  var nextTick = (cb) => promiseResolve().then(cb);
333
344
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
334
-
335
- // src/utils/constants.ts
336
- var EMPTY_OBJ = {};
337
- var SVG_NS = "http://www.w3.org/2000/svg";
338
- var HTML_NS = "http://www.w3.org/1999/xhtml";
339
-
340
- // src/utils/helpers.ts
341
- var isDef = (v) => v != null;
342
345
  var isComplexType = (o) => {
343
346
  o = typeof o;
344
347
  return o === "object" || o === "function";
@@ -398,19 +401,94 @@ var unwrapErr = (result) => {
398
401
  throw result.value;
399
402
  }
400
403
  };
401
- var createTime = (fnName, tagName = "") => {
402
- {
403
- return () => {
404
- return;
405
- };
404
+ var updateFallbackSlotVisibility = (elm) => {
405
+ const childNodes = elm.__childNodes || elm.childNodes;
406
+ if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
407
+ getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
408
+ var _a;
409
+ if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
410
+ if ((_a = getHostSlotChildNodes(slotNode, slotNode["s-sn"], false)) == null ? void 0 : _a.length) {
411
+ slotNode.hidden = true;
412
+ } else {
413
+ slotNode.hidden = false;
414
+ }
415
+ }
416
+ });
417
+ }
418
+ for (const childNode of childNodes) {
419
+ if (childNode.nodeType === 1 /* ElementNode */ && (childNode.__childNodes || childNode.childNodes).length) {
420
+ updateFallbackSlotVisibility(childNode);
421
+ }
406
422
  }
407
423
  };
408
- var uniqueTime = (key, measureText) => {
409
- {
410
- return () => {
411
- return;
412
- };
424
+ var getHostSlotNodes = (childNodes, hostName, slotName) => {
425
+ let i2 = 0;
426
+ let slottedNodes = [];
427
+ let childNode;
428
+ for (; i2 < childNodes.length; i2++) {
429
+ childNode = childNodes[i2];
430
+ if (childNode["s-sr"] && childNode["s-hn"] === hostName && (!slotName || childNode["s-sn"] === slotName)) {
431
+ slottedNodes.push(childNode);
432
+ if (typeof slotName !== "undefined") return slottedNodes;
433
+ }
434
+ slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
435
+ }
436
+ return slottedNodes;
437
+ };
438
+ var getHostSlotChildNodes = (node, slotName, includeSlot = true) => {
439
+ const childNodes = [];
440
+ if (includeSlot && node["s-sr"] || !node["s-sr"]) childNodes.push(node);
441
+ while ((node = node.nextSibling) && node["s-sn"] === slotName) {
442
+ childNodes.push(node);
443
+ }
444
+ return childNodes;
445
+ };
446
+ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
447
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
448
+ if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
449
+ return true;
450
+ }
451
+ if (nodeToRelocate.getAttribute("slot") === slotName) {
452
+ return true;
453
+ }
454
+ return false;
413
455
  }
456
+ if (nodeToRelocate["s-sn"] === slotName) {
457
+ return true;
458
+ }
459
+ return slotName === "";
460
+ };
461
+ var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
462
+ let slottedNodeLocation;
463
+ if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
464
+ slottedNodeLocation = newChild["s-ol"];
465
+ } else {
466
+ slottedNodeLocation = document.createTextNode("");
467
+ slottedNodeLocation["s-nr"] = newChild;
468
+ }
469
+ if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
470
+ const parent = slotNode["s-cr"].parentNode;
471
+ const appendMethod = prepend ? parent.__prepend || parent.prepend : parent.__appendChild || parent.appendChild;
472
+ if (typeof position !== "undefined") {
473
+ {
474
+ slottedNodeLocation["s-oo"] = position;
475
+ const childNodes = parent.__childNodes || parent.childNodes;
476
+ const slotRelocateNodes = [slottedNodeLocation];
477
+ childNodes.forEach((n) => {
478
+ if (n["s-nr"]) slotRelocateNodes.push(n);
479
+ });
480
+ slotRelocateNodes.sort((a, b) => {
481
+ if (!a["s-oo"] || a["s-oo"] < b["s-oo"]) return -1;
482
+ else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
483
+ return 0;
484
+ });
485
+ slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
486
+ }
487
+ } else {
488
+ appendMethod.call(parent, slottedNodeLocation);
489
+ }
490
+ newChild["s-ol"] = slottedNodeLocation;
491
+ newChild["s-sh"] = slotNode["s-hn"];
414
492
  };
415
493
  var h = (nodeName, vnodeData, ...children) => {
416
494
  let child = null;
@@ -486,394 +564,115 @@ var newVNode = (tag, text) => {
486
564
  };
487
565
  var Host = {};
488
566
  var isHost = (node) => node && node.$tag$ === Host;
489
-
490
- // src/runtime/client-hydrate.ts
491
- var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
492
- const endHydrate = createTime("hydrateClient", tagName);
493
- const shadowRoot = hostElm.shadowRoot;
494
- const childRenderNodes = [];
495
- const slotNodes = [];
496
- const shadowRootNodes = null;
497
- const vnode = hostRef.$vnode$ = newVNode(tagName, null);
498
- if (!plt.$orgLocNodes$) {
499
- initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
500
- }
501
- hostElm[HYDRATE_ID] = hostId;
502
- hostElm.removeAttribute(HYDRATE_ID);
503
- clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
504
- childRenderNodes.map((c) => {
505
- const orgLocationId = c.$hostId$ + "." + c.$nodeId$;
506
- const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
507
- const node = c.$elm$;
508
- if (orgLocationNode && supportsShadow && orgLocationNode["s-en"] === "") {
509
- orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
510
- }
511
- if (!shadowRoot) {
512
- node["s-hn"] = tagName;
513
- if (orgLocationNode) {
514
- node["s-ol"] = orgLocationNode;
515
- node["s-ol"]["s-nr"] = node;
567
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
568
+ if (oldValue !== newValue) {
569
+ let isProp = isMemberInElement(elm, memberName);
570
+ let ln = memberName.toLowerCase();
571
+ if (memberName === "class") {
572
+ const classList = elm.classList;
573
+ const oldClasses = parseClassList(oldValue);
574
+ let newClasses = parseClassList(newValue);
575
+ if (elm["s-si"]) {
576
+ newClasses.push(elm["s-si"]);
577
+ oldClasses.forEach((c) => {
578
+ if (c.startsWith(elm["s-si"])) newClasses.push(c);
579
+ });
580
+ newClasses = [...new Set(newClasses)];
581
+ classList.add(...newClasses);
582
+ delete elm["s-si"];
583
+ } else {
584
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
585
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
516
586
  }
517
- }
518
- plt.$orgLocNodes$.delete(orgLocationId);
519
- });
520
- endHydrate();
521
- };
522
- var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId) => {
523
- let childNodeType;
524
- let childIdSplt;
525
- let childVNode;
526
- let i2;
527
- if (node.nodeType === 1 /* ElementNode */) {
528
- childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
529
- if (childNodeType) {
530
- childIdSplt = childNodeType.split(".");
531
- if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
532
- childVNode = {
533
- $flags$: 0,
534
- $hostId$: childIdSplt[0],
535
- $nodeId$: childIdSplt[1],
536
- $depth$: childIdSplt[2],
537
- $index$: childIdSplt[3],
538
- $tag$: node.tagName.toLowerCase(),
539
- $elm$: node,
540
- $attrs$: null,
541
- $children$: null,
542
- $key$: null,
543
- $name$: null,
544
- $text$: null
545
- };
546
- childRenderNodes.push(childVNode);
547
- node.removeAttribute(HYDRATE_CHILD_ID);
548
- if (!parentVNode.$children$) {
549
- parentVNode.$children$ = [];
587
+ } else if (memberName === "style") {
588
+ {
589
+ for (const prop in oldValue) {
590
+ if (!newValue || newValue[prop] == null) {
591
+ if (prop.includes("-")) {
592
+ elm.style.removeProperty(prop);
593
+ } else {
594
+ elm.style[prop] = "";
595
+ }
596
+ }
550
597
  }
551
- parentVNode.$children$[childVNode.$index$] = childVNode;
552
- parentVNode = childVNode;
553
- if (shadowRootNodes && childVNode.$depth$ === "0") {
554
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
598
+ }
599
+ for (const prop in newValue) {
600
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
601
+ if (prop.includes("-")) {
602
+ elm.style.setProperty(prop, newValue[prop]);
603
+ } else {
604
+ elm.style[prop] = newValue[prop];
605
+ }
555
606
  }
556
607
  }
557
- }
558
- if (node.shadowRoot) {
559
- for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
560
- clientHydrate(
561
- parentVNode,
562
- childRenderNodes,
563
- slotNodes,
564
- shadowRootNodes,
565
- hostElm,
566
- node.shadowRoot.childNodes[i2],
567
- hostId
568
- );
608
+ } else if (memberName === "key") ; else if (memberName === "ref") {
609
+ if (newValue) {
610
+ newValue(elm);
569
611
  }
570
- }
571
- for (i2 = node.childNodes.length - 1; i2 >= 0; i2--) {
572
- clientHydrate(
573
- parentVNode,
574
- childRenderNodes,
575
- slotNodes,
576
- shadowRootNodes,
577
- hostElm,
578
- node.childNodes[i2],
579
- hostId
580
- );
581
- }
582
- } else if (node.nodeType === 8 /* CommentNode */) {
583
- childIdSplt = node.nodeValue.split(".");
584
- if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
585
- childNodeType = childIdSplt[0];
586
- childVNode = {
587
- $flags$: 0,
588
- $hostId$: childIdSplt[1],
589
- $nodeId$: childIdSplt[2],
590
- $depth$: childIdSplt[3],
591
- $index$: childIdSplt[4],
592
- $elm$: node,
593
- $attrs$: null,
594
- $children$: null,
595
- $key$: null,
596
- $name$: null,
597
- $tag$: null,
598
- $text$: null
599
- };
600
- if (childNodeType === TEXT_NODE_ID) {
601
- childVNode.$elm$ = node.nextSibling;
602
- if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
603
- childVNode.$text$ = childVNode.$elm$.textContent;
604
- childRenderNodes.push(childVNode);
605
- node.remove();
606
- if (!parentVNode.$children$) {
607
- parentVNode.$children$ = [];
608
- }
609
- parentVNode.$children$[childVNode.$index$] = childVNode;
610
- if (shadowRootNodes && childVNode.$depth$ === "0") {
611
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
612
- }
612
+ } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
613
+ if (memberName[2] === "-") {
614
+ memberName = memberName.slice(3);
615
+ } else if (isMemberInElement(win, ln)) {
616
+ memberName = ln.slice(2);
617
+ } else {
618
+ memberName = ln[2] + memberName.slice(3);
619
+ }
620
+ if (oldValue || newValue) {
621
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
622
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
623
+ if (oldValue) {
624
+ plt.rel(elm, memberName, oldValue, capture);
613
625
  }
614
- } else if (childVNode.$hostId$ === hostId) {
615
- if (childNodeType === SLOT_NODE_ID) {
616
- childVNode.$tag$ = "slot";
617
- if (childIdSplt[5]) {
618
- node["s-sn"] = childVNode.$name$ = childIdSplt[5];
626
+ if (newValue) {
627
+ plt.ael(elm, memberName, newValue, capture);
628
+ }
629
+ }
630
+ } else {
631
+ const isComplex = isComplexType(newValue);
632
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
633
+ try {
634
+ if (!elm.tagName.includes("-")) {
635
+ const n = newValue == null ? "" : newValue;
636
+ if (memberName === "list") {
637
+ isProp = false;
638
+ } else if (oldValue == null || elm[memberName] != n) {
639
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
640
+ elm[memberName] = n;
641
+ } else {
642
+ elm.setAttribute(memberName, n);
643
+ }
644
+ }
619
645
  } else {
620
- node["s-sn"] = "";
621
- }
622
- node["s-sr"] = true;
623
- slotNodes.push(childVNode);
624
- if (!parentVNode.$children$) {
625
- parentVNode.$children$ = [];
646
+ elm[memberName] = newValue;
626
647
  }
627
- parentVNode.$children$[childVNode.$index$] = childVNode;
628
- } else if (childNodeType === CONTENT_REF_ID) {
648
+ } catch (e) {
649
+ }
650
+ }
651
+ if (newValue == null || newValue === false) {
652
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
629
653
  {
630
- hostElm["s-cr"] = node;
631
- node["s-cn"] = true;
654
+ elm.removeAttribute(memberName);
632
655
  }
633
656
  }
657
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
658
+ newValue = newValue === true ? "" : newValue;
659
+ {
660
+ elm.setAttribute(memberName, newValue);
661
+ }
634
662
  }
635
663
  }
636
- } else if (parentVNode && parentVNode.$tag$ === "style") {
637
- const vnode = newVNode(null, node.textContent);
638
- vnode.$elm$ = node;
639
- vnode.$index$ = "0";
640
- parentVNode.$children$ = [vnode];
641
664
  }
642
665
  };
643
- var initializeDocumentHydrate = (node, orgLocNodes) => {
644
- if (node.nodeType === 1 /* ElementNode */) {
645
- let i2 = 0;
646
- if (node.shadowRoot) {
647
- for (; i2 < node.shadowRoot.childNodes.length; i2++) {
648
- initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
649
- }
650
- }
651
- for (i2 = 0; i2 < node.childNodes.length; i2++) {
652
- initializeDocumentHydrate(node.childNodes[i2], orgLocNodes);
653
- }
654
- } else if (node.nodeType === 8 /* CommentNode */) {
655
- const childIdSplt = node.nodeValue.split(".");
656
- if (childIdSplt[0] === ORG_LOCATION_ID) {
657
- orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
658
- node.nodeValue = "";
659
- node["s-en"] = childIdSplt[3];
660
- }
666
+ var parseClassListRegex = /\s/;
667
+ var parseClassList = (value) => {
668
+ if (typeof value === "object" && "baseVal" in value) {
669
+ value = value.baseVal;
661
670
  }
671
+ if (!value) {
672
+ return [];
673
+ }
674
+ return value.split(parseClassListRegex);
662
675
  };
663
- var parsePropertyValue = (propValue, propType) => {
664
- if (propValue != null && !isComplexType(propValue)) {
665
- if (propType & 4 /* Boolean */) {
666
- return propValue === "false" ? false : propValue === "" || !!propValue;
667
- }
668
- if (propType & 2 /* Number */) {
669
- return parseFloat(propValue);
670
- }
671
- if (propType & 1 /* String */) {
672
- return String(propValue);
673
- }
674
- return propValue;
675
- }
676
- return propValue;
677
- };
678
- var getElement = (ref) => getHostRef(ref).$hostElement$ ;
679
-
680
- // src/runtime/event-emitter.ts
681
- var createEvent = (ref, name, flags) => {
682
- const elm = getElement(ref);
683
- return {
684
- emit: (detail) => {
685
- return emitEvent(elm, name, {
686
- bubbles: !!(flags & 4 /* Bubbles */),
687
- composed: !!(flags & 2 /* Composed */),
688
- cancelable: !!(flags & 1 /* Cancellable */),
689
- detail
690
- });
691
- }
692
- };
693
- };
694
- var emitEvent = (elm, name, opts) => {
695
- const ev = plt.ce(name, opts);
696
- elm.dispatchEvent(ev);
697
- return ev;
698
- };
699
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
700
- var registerStyle = (scopeId2, cssText, allowCS) => {
701
- let style = styles.get(scopeId2);
702
- if (supportsConstructableStylesheets && allowCS) {
703
- style = style || new CSSStyleSheet();
704
- if (typeof style === "string") {
705
- style = cssText;
706
- } else {
707
- style.replaceSync(cssText);
708
- }
709
- } else {
710
- style = cssText;
711
- }
712
- styles.set(scopeId2, style);
713
- };
714
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
715
- var _a;
716
- const scopeId2 = getScopeId(cmpMeta);
717
- const style = styles.get(scopeId2);
718
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
719
- if (style) {
720
- if (typeof style === "string") {
721
- styleContainerNode = styleContainerNode.head || styleContainerNode;
722
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
723
- let styleElm;
724
- if (!appliedStyles) {
725
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
726
- }
727
- if (!appliedStyles.has(scopeId2)) {
728
- if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
729
- styleElm.innerHTML = style;
730
- } else {
731
- styleElm = doc.createElement("style");
732
- styleElm.innerHTML = style;
733
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
734
- if (nonce != null) {
735
- styleElm.setAttribute("nonce", nonce);
736
- }
737
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
738
- if (styleContainerNode.nodeName === "HEAD") {
739
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
740
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
741
- styleContainerNode.insertBefore(styleElm, referenceNode2);
742
- } else if ("host" in styleContainerNode) {
743
- if (supportsConstructableStylesheets) {
744
- const stylesheet = new CSSStyleSheet();
745
- stylesheet.replaceSync(style);
746
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
747
- } else {
748
- const existingStyleContainer = styleContainerNode.querySelector("style");
749
- if (existingStyleContainer) {
750
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
751
- } else {
752
- styleContainerNode.prepend(styleElm);
753
- }
754
- }
755
- } else {
756
- styleContainerNode.append(styleElm);
757
- }
758
- }
759
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
760
- styleContainerNode.insertBefore(styleElm, null);
761
- }
762
- }
763
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
764
- styleElm.innerHTML += SLOT_FB_CSS;
765
- }
766
- if (appliedStyles) {
767
- appliedStyles.add(scopeId2);
768
- }
769
- }
770
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
771
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
772
- }
773
- }
774
- return scopeId2;
775
- };
776
- var attachStyles = (hostRef) => {
777
- const cmpMeta = hostRef.$cmpMeta$;
778
- const elm = hostRef.$hostElement$;
779
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
780
- addStyle(
781
- elm.getRootNode(),
782
- cmpMeta);
783
- endAttachStyles();
784
- };
785
- var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
786
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
787
- if (oldValue !== newValue) {
788
- let isProp = isMemberInElement(elm, memberName);
789
- let ln = memberName.toLowerCase();
790
- if (memberName === "class") {
791
- const classList = elm.classList;
792
- const oldClasses = parseClassList(oldValue);
793
- const newClasses = parseClassList(newValue);
794
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
795
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
796
- } else if (memberName === "style") {
797
- {
798
- for (const prop in oldValue) {
799
- if (!newValue || newValue[prop] == null) {
800
- if (prop.includes("-")) {
801
- elm.style.removeProperty(prop);
802
- } else {
803
- elm.style[prop] = "";
804
- }
805
- }
806
- }
807
- }
808
- for (const prop in newValue) {
809
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
810
- if (prop.includes("-")) {
811
- elm.style.setProperty(prop, newValue[prop]);
812
- } else {
813
- elm.style[prop] = newValue[prop];
814
- }
815
- }
816
- }
817
- } else if (memberName === "key") ; else if (memberName === "ref") {
818
- if (newValue) {
819
- newValue(elm);
820
- }
821
- } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
822
- if (memberName[2] === "-") {
823
- memberName = memberName.slice(3);
824
- } else if (isMemberInElement(win, ln)) {
825
- memberName = ln.slice(2);
826
- } else {
827
- memberName = ln[2] + memberName.slice(3);
828
- }
829
- if (oldValue || newValue) {
830
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
831
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
832
- if (oldValue) {
833
- plt.rel(elm, memberName, oldValue, capture);
834
- }
835
- if (newValue) {
836
- plt.ael(elm, memberName, newValue, capture);
837
- }
838
- }
839
- } else {
840
- const isComplex = isComplexType(newValue);
841
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
842
- try {
843
- if (!elm.tagName.includes("-")) {
844
- const n = newValue == null ? "" : newValue;
845
- if (memberName === "list") {
846
- isProp = false;
847
- } else if (oldValue == null || elm[memberName] != n) {
848
- if (typeof elm.__lookupSetter__(memberName) === "function") {
849
- elm[memberName] = n;
850
- } else {
851
- elm.setAttribute(memberName, n);
852
- }
853
- }
854
- } else {
855
- elm[memberName] = newValue;
856
- }
857
- } catch (e) {
858
- }
859
- }
860
- if (newValue == null || newValue === false) {
861
- if (newValue !== false || elm.getAttribute(memberName) === "") {
862
- {
863
- elm.removeAttribute(memberName);
864
- }
865
- }
866
- } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
867
- newValue = newValue === true ? "" : newValue;
868
- {
869
- elm.setAttribute(memberName, newValue);
870
- }
871
- }
872
- }
873
- }
874
- };
875
- var parseClassListRegex = /\s/;
876
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
877
676
  var CAPTURE_EVENT_SUFFIX = "Capture";
878
677
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
879
678
 
@@ -902,16 +701,13 @@ function sortedAttrNames(attrNames) {
902
701
  attrNames
903
702
  );
904
703
  }
905
-
906
- // src/runtime/vdom/vdom-render.ts
907
- var scopeId;
908
704
  var contentRef;
909
705
  var hostTagName;
910
706
  var useNativeShadowDom = false;
911
707
  var checkSlotFallbackVisibility = false;
912
708
  var checkSlotRelocate = false;
913
709
  var isSvgMode = false;
914
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
710
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
915
711
  var _a;
916
712
  const newVNode2 = newParentVNode.$children$[childIndex];
917
713
  let i2 = 0;
@@ -951,11 +747,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
951
747
  {
952
748
  updateElement(null, newVNode2, isSvgMode);
953
749
  }
954
- const rootNode = elm.getRootNode();
955
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
956
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
957
- elm.classList.add(elm["s-si"] = scopeId);
958
- }
959
750
  if (newVNode2.$children$) {
960
751
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
961
752
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -993,8 +784,12 @@ var relocateToHostRoot = (parentElm) => {
993
784
  plt.$flags$ |= 1 /* isTmpDisconnected */;
994
785
  const host = parentElm.closest(hostTagName.toLowerCase());
995
786
  if (host != null) {
996
- const contentRefNode = Array.from(host.childNodes).find((ref) => ref["s-cr"]);
997
- const childNodeArray = Array.from(parentElm.childNodes);
787
+ const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
788
+ (ref) => ref["s-cr"]
789
+ );
790
+ const childNodeArray = Array.from(
791
+ parentElm.__childNodes || parentElm.childNodes
792
+ );
998
793
  for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
999
794
  if (childNode["s-sh"] != null) {
1000
795
  insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
@@ -1007,7 +802,7 @@ var relocateToHostRoot = (parentElm) => {
1007
802
  };
1008
803
  var putBackInOriginalLocation = (parentElm, recursive) => {
1009
804
  plt.$flags$ |= 1 /* isTmpDisconnected */;
1010
- const oldSlotChildNodes = Array.from(parentElm.childNodes);
805
+ const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
1011
806
  if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
1012
807
  let node = parentElm;
1013
808
  while (node = node.nextSibling) {
@@ -1019,7 +814,7 @@ var putBackInOriginalLocation = (parentElm, recursive) => {
1019
814
  for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
1020
815
  const childNode = oldSlotChildNodes[i2];
1021
816
  if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
1022
- insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
817
+ insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
1023
818
  childNode["s-ol"].remove();
1024
819
  childNode["s-ol"] = void 0;
1025
820
  childNode["s-sh"] = void 0;
@@ -1136,7 +931,11 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
1136
931
  }
1137
932
  if (node) {
1138
933
  {
1139
- insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
934
+ insertBefore(
935
+ referenceNode(oldStartVnode.$elm$).parentNode,
936
+ node,
937
+ referenceNode(oldStartVnode.$elm$)
938
+ );
1140
939
  }
1141
940
  }
1142
941
  }
@@ -1157,28 +956,19 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
1157
956
  var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
1158
957
  if (leftVNode.$tag$ === rightVNode.$tag$) {
1159
958
  if (leftVNode.$tag$ === "slot") {
1160
- if (
1161
- // The component gets hydrated and no VDOM has been initialized.
1162
- // Here the comparison can't happen as $name$ property is not set for `leftNode`.
1163
- "$nodeId$" in leftVNode && isInitialRender && // `leftNode` is not from type HTMLComment which would cause many
1164
- // hydration comments to be removed
1165
- leftVNode.$elm$.nodeType !== 8
1166
- ) {
1167
- return false;
1168
- }
1169
959
  return leftVNode.$name$ === rightVNode.$name$;
1170
960
  }
1171
961
  if (!isInitialRender) {
1172
962
  return leftVNode.$key$ === rightVNode.$key$;
1173
963
  }
964
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
965
+ leftVNode.$key$ = rightVNode.$key$;
966
+ }
1174
967
  return true;
1175
968
  }
1176
969
  return false;
1177
970
  };
1178
- var referenceNode = (node) => {
1179
- return node && node["s-ol"] || node;
1180
- };
1181
- var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
971
+ var referenceNode = (node) => node && node["s-ol"] || node;
1182
972
  var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1183
973
  const elm = newVNode2.$elm$ = oldVNode.$elm$;
1184
974
  const oldChildren = oldVNode.$children$;
@@ -1222,41 +1012,15 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1222
1012
  elm.data = text;
1223
1013
  }
1224
1014
  };
1225
- var updateFallbackSlotVisibility = (elm) => {
1226
- const childNodes = elm.childNodes;
1227
- for (const childNode of childNodes) {
1228
- if (childNode.nodeType === 1 /* ElementNode */) {
1229
- if (childNode["s-sr"]) {
1230
- const slotName = childNode["s-sn"];
1231
- childNode.hidden = false;
1232
- for (const siblingNode of childNodes) {
1233
- if (siblingNode !== childNode) {
1234
- if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
1235
- if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
1236
- childNode.hidden = true;
1237
- break;
1238
- }
1239
- } else {
1240
- if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
1241
- childNode.hidden = true;
1242
- break;
1243
- }
1244
- }
1245
- }
1246
- }
1247
- }
1248
- updateFallbackSlotVisibility(childNode);
1249
- }
1250
- }
1251
- };
1252
1015
  var relocateNodes = [];
1253
1016
  var markSlotContentForRelocation = (elm) => {
1254
1017
  let node;
1255
1018
  let hostContentNodes;
1256
1019
  let j;
1257
- for (const childNode of elm.childNodes) {
1020
+ const children = elm.__childNodes || elm.childNodes;
1021
+ for (const childNode of children) {
1258
1022
  if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
1259
- hostContentNodes = node.parentNode.childNodes;
1023
+ hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
1260
1024
  const slotName = childNode["s-sn"];
1261
1025
  for (j = hostContentNodes.length - 1; j >= 0; j--) {
1262
1026
  node = hostContentNodes[j];
@@ -1298,21 +1062,6 @@ var markSlotContentForRelocation = (elm) => {
1298
1062
  }
1299
1063
  }
1300
1064
  };
1301
- var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
1302
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1303
- if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
1304
- return true;
1305
- }
1306
- if (nodeToRelocate.getAttribute("slot") === slotName) {
1307
- return true;
1308
- }
1309
- return false;
1310
- }
1311
- if (nodeToRelocate["s-sn"] === slotName) {
1312
- return true;
1313
- }
1314
- return slotName === "";
1315
- };
1316
1065
  var nullifyVNodeRefs = (vNode) => {
1317
1066
  {
1318
1067
  vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
@@ -1324,7 +1073,7 @@ var insertBefore = (parent, newNode, reference) => {
1324
1073
  return inserted;
1325
1074
  };
1326
1075
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1327
- var _a, _b, _c, _d;
1076
+ var _a, _b, _c, _d, _e;
1328
1077
  const hostElm = hostRef.$hostElement$;
1329
1078
  const cmpMeta = hostRef.$cmpMeta$;
1330
1079
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
@@ -1371,7 +1120,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1371
1120
  if (slotRefNode) {
1372
1121
  const parentNodeRef = slotRefNode.parentNode;
1373
1122
  let insertBeforeNode = slotRefNode.nextSibling;
1374
- if (insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */) {
1123
+ if ((insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */)) {
1375
1124
  let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
1376
1125
  while (orgLocationNode) {
1377
1126
  let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
@@ -1391,7 +1140,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1391
1140
  if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
1392
1141
  if (nodeToRelocate !== insertBeforeNode) {
1393
1142
  insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
1394
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1143
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
1395
1144
  nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
1396
1145
  }
1397
1146
  }
@@ -1413,18 +1162,579 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1413
1162
  plt.$flags$ &= ~1 /* isTmpDisconnected */;
1414
1163
  relocateNodes.length = 0;
1415
1164
  }
1165
+ if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
1166
+ const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
1167
+ for (const childNode of children) {
1168
+ if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
1169
+ if (isInitialLoad && childNode["s-ih"] == null) {
1170
+ childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
1171
+ }
1172
+ childNode.hidden = true;
1173
+ }
1174
+ }
1175
+ }
1416
1176
  contentRef = void 0;
1417
1177
  };
1418
-
1419
- // src/runtime/update-component.ts
1420
- var attachToAncestor = (hostRef, ancestorComponent) => {
1421
- if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
1422
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
1178
+ var patchNextPrev = (node) => {
1179
+ if (!node || node.__nextSibling || !globalThis.Node) return;
1180
+ patchNextSibling(node);
1181
+ patchPreviousSibling(node);
1182
+ if (node.nodeType === Node.ELEMENT_NODE) {
1183
+ patchNextElementSibling(node);
1184
+ patchPreviousElementSibling(node);
1423
1185
  }
1424
1186
  };
1425
- var scheduleUpdate = (hostRef, isInitialLoad) => {
1426
- {
1427
- hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1187
+ var patchNextSibling = (node) => {
1188
+ if (!node || node.__nextSibling) return;
1189
+ patchHostOriginalAccessor("nextSibling", node);
1190
+ Object.defineProperty(node, "nextSibling", {
1191
+ get: function() {
1192
+ var _a;
1193
+ const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.childNodes;
1194
+ const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
1195
+ if (parentNodes && index > -1) {
1196
+ return parentNodes[index + 1];
1197
+ }
1198
+ return this.__nextSibling;
1199
+ }
1200
+ });
1201
+ };
1202
+ var patchNextElementSibling = (element) => {
1203
+ if (!element || element.__nextElementSibling) return;
1204
+ patchHostOriginalAccessor("nextElementSibling", element);
1205
+ Object.defineProperty(element, "nextElementSibling", {
1206
+ get: function() {
1207
+ var _a;
1208
+ const parentEles = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.children;
1209
+ const index = parentEles == null ? void 0 : parentEles.indexOf(this);
1210
+ if (parentEles && index > -1) {
1211
+ return parentEles[index + 1];
1212
+ }
1213
+ return this.__nextElementSibling;
1214
+ }
1215
+ });
1216
+ };
1217
+ var patchPreviousSibling = (node) => {
1218
+ if (!node || node.__previousSibling) return;
1219
+ patchHostOriginalAccessor("previousSibling", node);
1220
+ Object.defineProperty(node, "previousSibling", {
1221
+ get: function() {
1222
+ var _a;
1223
+ const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.childNodes;
1224
+ const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
1225
+ if (parentNodes && index > -1) {
1226
+ return parentNodes[index - 1];
1227
+ }
1228
+ return this.__previousSibling;
1229
+ }
1230
+ });
1231
+ };
1232
+ var patchPreviousElementSibling = (element) => {
1233
+ if (!element || element.__previousElementSibling) return;
1234
+ patchHostOriginalAccessor("previousElementSibling", element);
1235
+ Object.defineProperty(element, "previousElementSibling", {
1236
+ get: function() {
1237
+ var _a;
1238
+ const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.children;
1239
+ const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
1240
+ if (parentNodes && index > -1) {
1241
+ return parentNodes[index - 1];
1242
+ }
1243
+ return this.__previousElementSibling;
1244
+ }
1245
+ });
1246
+ };
1247
+ var validElementPatches = ["children", "nextElementSibling", "previousElementSibling"];
1248
+ var validNodesPatches = [
1249
+ "childNodes",
1250
+ "firstChild",
1251
+ "lastChild",
1252
+ "nextSibling",
1253
+ "previousSibling",
1254
+ "textContent"
1255
+ ];
1256
+ function patchHostOriginalAccessor(accessorName, node) {
1257
+ let accessor;
1258
+ if (validElementPatches.includes(accessorName)) {
1259
+ accessor = Object.getOwnPropertyDescriptor(Element.prototype, accessorName);
1260
+ } else if (validNodesPatches.includes(accessorName)) {
1261
+ accessor = Object.getOwnPropertyDescriptor(Node.prototype, accessorName);
1262
+ }
1263
+ if (!accessor) {
1264
+ accessor = Object.getOwnPropertyDescriptor(node, accessorName);
1265
+ }
1266
+ if (accessor) Object.defineProperty(node, "__" + accessorName, accessor);
1267
+ }
1268
+ var createTime = (fnName, tagName = "") => {
1269
+ {
1270
+ return () => {
1271
+ return;
1272
+ };
1273
+ }
1274
+ };
1275
+ var uniqueTime = (key, measureText) => {
1276
+ {
1277
+ return () => {
1278
+ return;
1279
+ };
1280
+ }
1281
+ };
1282
+
1283
+ // src/runtime/client-hydrate.ts
1284
+ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
1285
+ const endHydrate = createTime("hydrateClient", tagName);
1286
+ const shadowRoot = hostElm.shadowRoot;
1287
+ const childRenderNodes = [];
1288
+ const slotNodes = [];
1289
+ const slottedNodes = [];
1290
+ const shadowRootNodes = null;
1291
+ const vnode = newVNode(tagName, null);
1292
+ vnode.$elm$ = hostElm;
1293
+ if (!plt.$orgLocNodes$) {
1294
+ initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
1295
+ }
1296
+ hostElm[HYDRATE_ID] = hostId;
1297
+ hostElm.removeAttribute(HYDRATE_ID);
1298
+ hostRef.$vnode$ = clientHydrate(
1299
+ vnode,
1300
+ childRenderNodes,
1301
+ slotNodes,
1302
+ shadowRootNodes,
1303
+ hostElm,
1304
+ hostElm,
1305
+ hostId,
1306
+ slottedNodes
1307
+ );
1308
+ let crIndex = 0;
1309
+ const crLength = childRenderNodes.length;
1310
+ let childRenderNode;
1311
+ for (crIndex; crIndex < crLength; crIndex++) {
1312
+ childRenderNode = childRenderNodes[crIndex];
1313
+ const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
1314
+ const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
1315
+ const node = childRenderNode.$elm$;
1316
+ if (!shadowRoot) {
1317
+ node["s-hn"] = tagName.toUpperCase();
1318
+ if (childRenderNode.$tag$ === "slot") {
1319
+ node["s-cr"] = hostElm["s-cr"];
1320
+ }
1321
+ }
1322
+ if (childRenderNode.$tag$ === "slot") {
1323
+ if (childRenderNode.$children$) {
1324
+ childRenderNode.$flags$ |= 2 /* isSlotFallback */;
1325
+ if (!childRenderNode.$elm$.childNodes.length) {
1326
+ childRenderNode.$children$.forEach((c) => {
1327
+ childRenderNode.$elm$.appendChild(c.$elm$);
1328
+ });
1329
+ }
1330
+ } else {
1331
+ childRenderNode.$flags$ |= 1 /* isSlotReference */;
1332
+ }
1333
+ }
1334
+ if (orgLocationNode && orgLocationNode.isConnected) {
1335
+ if (shadowRoot && orgLocationNode["s-en"] === "") {
1336
+ orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
1337
+ }
1338
+ orgLocationNode.parentNode.removeChild(orgLocationNode);
1339
+ if (!shadowRoot) {
1340
+ node["s-oo"] = parseInt(childRenderNode.$nodeId$);
1341
+ }
1342
+ }
1343
+ plt.$orgLocNodes$.delete(orgLocationId);
1344
+ }
1345
+ const hosts = [];
1346
+ const snLen = slottedNodes.length;
1347
+ let snIndex = 0;
1348
+ let slotGroup;
1349
+ let snGroupIdx;
1350
+ let snGroupLen;
1351
+ let slottedItem;
1352
+ for (snIndex; snIndex < snLen; snIndex++) {
1353
+ slotGroup = slottedNodes[snIndex];
1354
+ if (!slotGroup || !slotGroup.length) continue;
1355
+ snGroupLen = slotGroup.length;
1356
+ snGroupIdx = 0;
1357
+ for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
1358
+ slottedItem = slotGroup[snGroupIdx];
1359
+ if (!hosts[slottedItem.hostId]) {
1360
+ hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
1361
+ }
1362
+ if (!hosts[slottedItem.hostId]) continue;
1363
+ const hostEle = hosts[slottedItem.hostId];
1364
+ if (!hostEle.shadowRoot || !shadowRoot) {
1365
+ slottedItem.slot["s-cr"] = hostEle["s-cr"];
1366
+ if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
1367
+ slottedItem.slot["s-cr"] = hostEle;
1368
+ } else {
1369
+ slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
1370
+ }
1371
+ addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
1372
+ {
1373
+ patchNextPrev(slottedItem.node);
1374
+ }
1375
+ }
1376
+ if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
1377
+ hostEle.appendChild(slottedItem.node);
1378
+ }
1379
+ }
1380
+ }
1381
+ hostRef.$hostElement$ = hostElm;
1382
+ endHydrate();
1383
+ };
1384
+ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
1385
+ let childNodeType;
1386
+ let childIdSplt;
1387
+ let childVNode;
1388
+ let i2;
1389
+ if (node.nodeType === 1 /* ElementNode */) {
1390
+ childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
1391
+ if (childNodeType) {
1392
+ childIdSplt = childNodeType.split(".");
1393
+ if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
1394
+ childVNode = createSimpleVNode({
1395
+ $flags$: 0,
1396
+ $hostId$: childIdSplt[0],
1397
+ $nodeId$: childIdSplt[1],
1398
+ $depth$: childIdSplt[2],
1399
+ $index$: childIdSplt[3],
1400
+ $tag$: node.tagName.toLowerCase(),
1401
+ $elm$: node,
1402
+ // If we don't add the initial classes to the VNode, the first `vdom-render.ts` patch
1403
+ // won't try to reconcile them. Classes set on the node will be blown away.
1404
+ $attrs$: { class: node.className || "" }
1405
+ });
1406
+ childRenderNodes.push(childVNode);
1407
+ node.removeAttribute(HYDRATE_CHILD_ID);
1408
+ if (!parentVNode.$children$) {
1409
+ parentVNode.$children$ = [];
1410
+ }
1411
+ const slotName = childVNode.$elm$.getAttribute("s-sn");
1412
+ if (typeof slotName === "string") {
1413
+ if (childVNode.$tag$ === "slot-fb") {
1414
+ addSlot(
1415
+ slotName,
1416
+ childIdSplt[2],
1417
+ childVNode,
1418
+ node,
1419
+ parentVNode,
1420
+ childRenderNodes,
1421
+ slotNodes,
1422
+ shadowRootNodes,
1423
+ slottedNodes
1424
+ );
1425
+ }
1426
+ childVNode.$elm$["s-sn"] = slotName;
1427
+ childVNode.$elm$.removeAttribute("s-sn");
1428
+ }
1429
+ if (childVNode.$index$ !== void 0) {
1430
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1431
+ }
1432
+ parentVNode = childVNode;
1433
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
1434
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1435
+ }
1436
+ }
1437
+ }
1438
+ if (node.shadowRoot) {
1439
+ for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
1440
+ clientHydrate(
1441
+ parentVNode,
1442
+ childRenderNodes,
1443
+ slotNodes,
1444
+ shadowRootNodes,
1445
+ hostElm,
1446
+ node.shadowRoot.childNodes[i2],
1447
+ hostId,
1448
+ slottedNodes
1449
+ );
1450
+ }
1451
+ }
1452
+ const nonShadowNodes = node.__childNodes || node.childNodes;
1453
+ for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
1454
+ clientHydrate(
1455
+ parentVNode,
1456
+ childRenderNodes,
1457
+ slotNodes,
1458
+ shadowRootNodes,
1459
+ hostElm,
1460
+ nonShadowNodes[i2],
1461
+ hostId,
1462
+ slottedNodes
1463
+ );
1464
+ }
1465
+ } else if (node.nodeType === 8 /* CommentNode */) {
1466
+ childIdSplt = node.nodeValue.split(".");
1467
+ if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
1468
+ childNodeType = childIdSplt[0];
1469
+ childVNode = createSimpleVNode({
1470
+ $hostId$: childIdSplt[1],
1471
+ $nodeId$: childIdSplt[2],
1472
+ $depth$: childIdSplt[3],
1473
+ $index$: childIdSplt[4] || "0",
1474
+ $elm$: node,
1475
+ $attrs$: null,
1476
+ $children$: null,
1477
+ $key$: null,
1478
+ $name$: null,
1479
+ $tag$: null,
1480
+ $text$: null
1481
+ });
1482
+ if (childNodeType === TEXT_NODE_ID) {
1483
+ childVNode.$elm$ = node.nextSibling;
1484
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
1485
+ childVNode.$text$ = childVNode.$elm$.textContent;
1486
+ childRenderNodes.push(childVNode);
1487
+ node.remove();
1488
+ if (hostId === childVNode.$hostId$) {
1489
+ if (!parentVNode.$children$) {
1490
+ parentVNode.$children$ = [];
1491
+ }
1492
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1493
+ }
1494
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
1495
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1496
+ }
1497
+ }
1498
+ } else if (childNodeType === COMMENT_NODE_ID) {
1499
+ childVNode.$elm$ = node.nextSibling;
1500
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
1501
+ childRenderNodes.push(childVNode);
1502
+ node.remove();
1503
+ }
1504
+ } else if (childVNode.$hostId$ === hostId) {
1505
+ if (childNodeType === SLOT_NODE_ID) {
1506
+ const slotName = node["s-sn"] = childIdSplt[5] || "";
1507
+ addSlot(
1508
+ slotName,
1509
+ childIdSplt[2],
1510
+ childVNode,
1511
+ node,
1512
+ parentVNode,
1513
+ childRenderNodes,
1514
+ slotNodes,
1515
+ shadowRootNodes,
1516
+ slottedNodes
1517
+ );
1518
+ } else if (childNodeType === CONTENT_REF_ID) {
1519
+ {
1520
+ hostElm["s-cr"] = node;
1521
+ node["s-cn"] = true;
1522
+ }
1523
+ }
1524
+ }
1525
+ }
1526
+ } else if (parentVNode && parentVNode.$tag$ === "style") {
1527
+ const vnode = newVNode(null, node.textContent);
1528
+ vnode.$elm$ = node;
1529
+ vnode.$index$ = "0";
1530
+ parentVNode.$children$ = [vnode];
1531
+ }
1532
+ return parentVNode;
1533
+ };
1534
+ var initializeDocumentHydrate = (node, orgLocNodes) => {
1535
+ if (node.nodeType === 1 /* ElementNode */) {
1536
+ const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
1537
+ if (componentId) {
1538
+ orgLocNodes.set(componentId, node);
1539
+ }
1540
+ let i2 = 0;
1541
+ if (node.shadowRoot) {
1542
+ for (; i2 < node.shadowRoot.childNodes.length; i2++) {
1543
+ initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
1544
+ }
1545
+ }
1546
+ const nonShadowNodes = node.__childNodes || node.childNodes;
1547
+ for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
1548
+ initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
1549
+ }
1550
+ } else if (node.nodeType === 8 /* CommentNode */) {
1551
+ const childIdSplt = node.nodeValue.split(".");
1552
+ if (childIdSplt[0] === ORG_LOCATION_ID) {
1553
+ orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
1554
+ node.nodeValue = "";
1555
+ node["s-en"] = childIdSplt[3];
1556
+ }
1557
+ }
1558
+ };
1559
+ var createSimpleVNode = (vnode) => {
1560
+ const defaultVNode = {
1561
+ $flags$: 0,
1562
+ $hostId$: null,
1563
+ $nodeId$: null,
1564
+ $depth$: null,
1565
+ $index$: "0",
1566
+ $elm$: null,
1567
+ $attrs$: null,
1568
+ $children$: null,
1569
+ $key$: null,
1570
+ $name$: null,
1571
+ $tag$: null,
1572
+ $text$: null
1573
+ };
1574
+ return { ...defaultVNode, ...vnode };
1575
+ };
1576
+ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
1577
+ node["s-sr"] = true;
1578
+ childVNode.$name$ = slotName || null;
1579
+ childVNode.$tag$ = "slot";
1580
+ const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
1581
+ {
1582
+ const slot = childVNode.$elm$;
1583
+ const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
1584
+ addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
1585
+ if (shouldMove) {
1586
+ parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1587
+ }
1588
+ childRenderNodes.push(childVNode);
1589
+ }
1590
+ slotNodes.push(childVNode);
1591
+ if (!parentVNode.$children$) {
1592
+ parentVNode.$children$ = [];
1593
+ }
1594
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1595
+ }
1596
+ var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
1597
+ let slottedNode = slotNode.nextSibling;
1598
+ slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
1599
+ while (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (slottedNode.nodeType === 8 /* CommentNode */ && slottedNode.nodeValue.indexOf(".") !== 1 || slottedNode.nodeType === 3 /* TextNode */))) {
1600
+ slottedNode["s-sn"] = slotName;
1601
+ slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
1602
+ slottedNode = slottedNode.nextSibling;
1603
+ }
1604
+ };
1605
+ var parsePropertyValue = (propValue, propType) => {
1606
+ if (propValue != null && !isComplexType(propValue)) {
1607
+ if (propType & 4 /* Boolean */) {
1608
+ return propValue === "false" ? false : propValue === "" || !!propValue;
1609
+ }
1610
+ if (propType & 2 /* Number */) {
1611
+ return parseFloat(propValue);
1612
+ }
1613
+ if (propType & 1 /* String */) {
1614
+ return String(propValue);
1615
+ }
1616
+ return propValue;
1617
+ }
1618
+ return propValue;
1619
+ };
1620
+ var getElement = (ref) => getHostRef(ref).$hostElement$ ;
1621
+
1622
+ // src/runtime/event-emitter.ts
1623
+ var createEvent = (ref, name, flags) => {
1624
+ const elm = getElement(ref);
1625
+ return {
1626
+ emit: (detail) => {
1627
+ return emitEvent(elm, name, {
1628
+ bubbles: !!(flags & 4 /* Bubbles */),
1629
+ composed: !!(flags & 2 /* Composed */),
1630
+ cancelable: !!(flags & 1 /* Cancellable */),
1631
+ detail
1632
+ });
1633
+ }
1634
+ };
1635
+ };
1636
+ var emitEvent = (elm, name, opts) => {
1637
+ const ev = plt.ce(name, opts);
1638
+ elm.dispatchEvent(ev);
1639
+ return ev;
1640
+ };
1641
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
1642
+ var registerStyle = (scopeId2, cssText, allowCS) => {
1643
+ let style = styles.get(scopeId2);
1644
+ if (supportsConstructableStylesheets && allowCS) {
1645
+ style = style || new CSSStyleSheet();
1646
+ if (typeof style === "string") {
1647
+ style = cssText;
1648
+ } else {
1649
+ style.replaceSync(cssText);
1650
+ }
1651
+ } else {
1652
+ style = cssText;
1653
+ }
1654
+ styles.set(scopeId2, style);
1655
+ };
1656
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
1657
+ var _a;
1658
+ const scopeId2 = getScopeId(cmpMeta);
1659
+ const style = styles.get(scopeId2);
1660
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
1661
+ if (style) {
1662
+ if (typeof style === "string") {
1663
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
1664
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
1665
+ let styleElm;
1666
+ if (!appliedStyles) {
1667
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
1668
+ }
1669
+ if (!appliedStyles.has(scopeId2)) {
1670
+ if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
1671
+ styleElm.innerHTML = style;
1672
+ } else {
1673
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
1674
+ styleElm.innerHTML = style;
1675
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
1676
+ if (nonce != null) {
1677
+ styleElm.setAttribute("nonce", nonce);
1678
+ }
1679
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
1680
+ if (styleContainerNode.nodeName === "HEAD") {
1681
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
1682
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
1683
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
1684
+ } else if ("host" in styleContainerNode) {
1685
+ if (supportsConstructableStylesheets) {
1686
+ const stylesheet = new CSSStyleSheet();
1687
+ stylesheet.replaceSync(style);
1688
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
1689
+ } else {
1690
+ const existingStyleContainer = styleContainerNode.querySelector("style");
1691
+ if (existingStyleContainer) {
1692
+ existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
1693
+ } else {
1694
+ styleContainerNode.prepend(styleElm);
1695
+ }
1696
+ }
1697
+ } else {
1698
+ styleContainerNode.append(styleElm);
1699
+ }
1700
+ }
1701
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
1702
+ styleContainerNode.insertBefore(styleElm, null);
1703
+ }
1704
+ }
1705
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
1706
+ styleElm.innerHTML += SLOT_FB_CSS;
1707
+ }
1708
+ if (appliedStyles) {
1709
+ appliedStyles.add(scopeId2);
1710
+ }
1711
+ }
1712
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
1713
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
1714
+ }
1715
+ }
1716
+ return scopeId2;
1717
+ };
1718
+ var attachStyles = (hostRef) => {
1719
+ const cmpMeta = hostRef.$cmpMeta$;
1720
+ const elm = hostRef.$hostElement$;
1721
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
1722
+ addStyle(
1723
+ elm.getRootNode(),
1724
+ cmpMeta);
1725
+ endAttachStyles();
1726
+ };
1727
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
1728
+
1729
+ // src/runtime/update-component.ts
1730
+ var attachToAncestor = (hostRef, ancestorComponent) => {
1731
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
1732
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
1733
+ }
1734
+ };
1735
+ var scheduleUpdate = (hostRef, isInitialLoad) => {
1736
+ {
1737
+ hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1428
1738
  }
1429
1739
  if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
1430
1740
  hostRef.$flags$ |= 512 /* needsRerender */;
@@ -1659,16 +1969,62 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1659
1969
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1660
1970
  members.map(([memberName, [memberFlags]]) => {
1661
1971
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1662
- Object.defineProperty(prototype, memberName, {
1663
- get() {
1664
- return getValue(this, memberName);
1665
- },
1666
- set(newValue) {
1667
- setValue(this, memberName, newValue, cmpMeta);
1668
- },
1669
- configurable: true,
1670
- enumerable: true
1671
- });
1972
+ if ((memberFlags & 2048 /* Getter */) === 0) {
1973
+ Object.defineProperty(prototype, memberName, {
1974
+ get() {
1975
+ return getValue(this, memberName);
1976
+ },
1977
+ set(newValue) {
1978
+ setValue(this, memberName, newValue, cmpMeta);
1979
+ },
1980
+ configurable: true,
1981
+ enumerable: true
1982
+ });
1983
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
1984
+ {
1985
+ Object.defineProperty(prototype, memberName, {
1986
+ get() {
1987
+ const ref = getHostRef(this);
1988
+ const instance = ref ? ref.$lazyInstance$ : prototype;
1989
+ if (!instance) return;
1990
+ return instance[memberName];
1991
+ },
1992
+ configurable: true,
1993
+ enumerable: true
1994
+ });
1995
+ }
1996
+ if (memberFlags & 4096 /* Setter */) {
1997
+ const origSetter = Object.getOwnPropertyDescriptor(prototype, memberName).set;
1998
+ Object.defineProperty(prototype, memberName, {
1999
+ set(newValue) {
2000
+ const ref = getHostRef(this);
2001
+ if (origSetter) {
2002
+ const currentValue = ref.$hostElement$[memberName];
2003
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
2004
+ ref.$instanceValues$.set(memberName, currentValue);
2005
+ }
2006
+ origSetter.apply(this, [parsePropertyValue(newValue, cmpMeta.$members$[memberName][0])]);
2007
+ setValue(this, memberName, ref.$hostElement$[memberName], cmpMeta);
2008
+ return;
2009
+ }
2010
+ if (!ref) return;
2011
+ const setterSetVal = () => {
2012
+ const currentValue = ref.$lazyInstance$[memberName];
2013
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
2014
+ ref.$instanceValues$.set(memberName, currentValue);
2015
+ }
2016
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
2017
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
2018
+ };
2019
+ if (ref.$lazyInstance$) {
2020
+ setterSetVal();
2021
+ } else {
2022
+ ref.$onReadyPromise$.then(() => setterSetVal());
2023
+ }
2024
+ }
2025
+ });
2026
+ }
2027
+ }
1672
2028
  } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
1673
2029
  Object.defineProperty(prototype, memberName, {
1674
2030
  value(...args) {
@@ -1688,7 +2044,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1688
2044
  plt.jmp(() => {
1689
2045
  var _a2;
1690
2046
  const propName = attrNameToPropName.get(attrName);
1691
- if (this.hasOwnProperty(propName)) {
2047
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1692
2048
  newValue = this[propName];
1693
2049
  delete this[propName];
1694
2050
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1708,7 +2064,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1708
2064
  }
1709
2065
  return;
1710
2066
  }
1711
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
2067
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
2068
+ if (!propDesc.get || !!propDesc.set) {
2069
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
2070
+ }
1712
2071
  });
1713
2072
  };
1714
2073
  Cstr.observedAttributes = Array.from(
@@ -2049,4 +2408,4 @@ exports.promiseResolve = promiseResolve;
2049
2408
  exports.registerInstance = registerInstance;
2050
2409
  exports.setNonce = setNonce;
2051
2410
 
2052
- //# sourceMappingURL=index-c50face0.js.map
2411
+ //# sourceMappingURL=index-72b8a9ad.js.map