@ionic/core 8.4.2-dev.11736265112.120bf7af → 8.4.2-dev.11736507189.18234064

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 (1190) hide show
  1. package/components/action-sheet.js +13 -8
  2. package/components/alert.js +15 -10
  3. package/components/animation.js +1 -1
  4. package/components/backdrop.js +10 -6
  5. package/components/button.js +41 -11
  6. package/components/buttons.js +11 -7
  7. package/components/capacitor.js +1 -1
  8. package/components/caret-down.js +6 -0
  9. package/components/caret-left.js +6 -0
  10. package/components/caret-right.js +6 -0
  11. package/components/checkbox.js +30 -12
  12. package/components/config2.js +79 -0
  13. package/components/content.js +14 -12
  14. package/components/data.js +4 -4
  15. package/components/focus-visible.js +8 -1
  16. package/components/framework-delegate.js +3 -1
  17. package/components/header.js +24 -15
  18. package/components/helpers.js +4 -1
  19. package/components/index2.js +2 -2
  20. package/components/index4.js +8 -9
  21. package/components/index5.js +27 -3
  22. package/components/index6.js +114 -20
  23. package/components/index7.js +163 -27
  24. package/components/input-shims.js +2 -2
  25. package/components/input.utils.js +1 -2
  26. package/components/ion-accordion-group.js +25 -6
  27. package/components/ion-accordion.js +36 -17
  28. package/components/ion-app.js +9 -77
  29. package/components/ion-avatar.js +52 -3
  30. package/components/ion-back-button.js +29 -19
  31. package/components/ion-badge.js +44 -8
  32. package/components/ion-breadcrumb.js +45 -11
  33. package/components/ion-breadcrumbs.js +9 -5
  34. package/components/ion-card-content.js +11 -7
  35. package/components/ion-card-header.js +9 -5
  36. package/components/ion-card-subtitle.js +9 -5
  37. package/components/ion-card-title.js +9 -5
  38. package/components/ion-card.js +17 -9
  39. package/components/ion-chip.js +45 -8
  40. package/components/ion-col.js +5 -5
  41. package/components/ion-datetime-button.js +9 -6
  42. package/components/ion-datetime.js +99 -21
  43. package/components/ion-fab-button.js +33 -10
  44. package/components/ion-fab-list.js +5 -5
  45. package/components/ion-fab.js +6 -6
  46. package/components/ion-footer.js +18 -12
  47. package/components/ion-grid.js +5 -5
  48. package/components/ion-img.js +5 -2
  49. package/components/ion-infinite-scroll-content.js +13 -8
  50. package/components/ion-infinite-scroll.js +5 -5
  51. package/components/ion-input-password-toggle.js +53 -14
  52. package/components/ion-input.js +118 -20
  53. package/components/ion-item-divider.js +9 -5
  54. package/components/ion-item-group.js +9 -5
  55. package/components/ion-item-option.js +28 -8
  56. package/components/ion-item-options.js +9 -5
  57. package/components/ion-item-sliding.js +5 -5
  58. package/components/ion-loading.js +13 -8
  59. package/components/ion-menu-button.js +28 -10
  60. package/components/ion-menu-toggle.js +5 -5
  61. package/components/ion-menu.js +12 -8
  62. package/components/ion-nav-link.js +1 -1
  63. package/components/ion-nav.js +8 -6
  64. package/components/ion-note.js +9 -5
  65. package/components/ion-picker-legacy.js +7 -8
  66. package/components/ion-progress-bar.js +11 -6
  67. package/components/ion-range.js +13 -10
  68. package/components/ion-refresher-content.js +28 -9
  69. package/components/ion-refresher.js +11 -7
  70. package/components/ion-reorder-group.js +5 -5
  71. package/components/ion-reorder.js +31 -5
  72. package/components/ion-router-link.js +6 -6
  73. package/components/ion-router-outlet.js +4 -3
  74. package/components/ion-row.js +5 -2
  75. package/components/ion-searchbar.js +93 -16
  76. package/components/ion-segment-button.js +11 -7
  77. package/components/ion-segment-content.js +1 -1
  78. package/components/ion-segment-view.js +6 -2
  79. package/components/ion-segment.js +11 -7
  80. package/components/ion-select-option.js +5 -2
  81. package/components/ion-select.js +118 -31
  82. package/components/ion-skeleton-text.js +6 -5
  83. package/components/ion-split-pane.js +12 -8
  84. package/components/ion-tab-bar.js +31 -8
  85. package/components/ion-tab-button.js +28 -7
  86. package/components/ion-tab.js +2 -2
  87. package/components/ion-tabs.js +2 -2
  88. package/components/ion-text.js +5 -5
  89. package/components/ion-textarea.js +38 -11
  90. package/components/ion-thumbnail.js +5 -2
  91. package/components/ion-toast.js +30 -11
  92. package/components/ion-toggle.js +77 -18
  93. package/components/ionic-global.js +374 -84
  94. package/components/ios.transition.js +1 -0
  95. package/components/item.js +41 -11
  96. package/components/keyboard-controller.js +4 -2
  97. package/components/label.js +9 -5
  98. package/components/list-header.js +9 -5
  99. package/components/list.js +29 -6
  100. package/components/list2.js +6 -0
  101. package/components/modal.js +51 -21
  102. package/components/notch-controller.js +1 -1
  103. package/components/overlays.js +4 -5
  104. package/components/picker-column-option.js +9 -5
  105. package/components/picker-column.js +7 -8
  106. package/components/picker-column2.js +4 -4
  107. package/components/picker.js +8 -4
  108. package/components/popover.js +11 -8
  109. package/components/radio-group.js +5 -3
  110. package/components/radio.js +12 -8
  111. package/components/ripple-effect.js +18 -8
  112. package/components/select-modal.js +3 -3
  113. package/components/select-popover.js +9 -2
  114. package/components/spinner.js +36 -9
  115. package/components/status-tap.js +1 -1
  116. package/components/title.js +11 -7
  117. package/components/toolbar.js +11 -7
  118. package/components/x.js +6 -0
  119. package/css/core.css +1 -1
  120. package/css/core.css.map +1 -1
  121. package/css/display.css +1 -1
  122. package/css/display.css.map +1 -1
  123. package/css/flex-utils.css.map +1 -1
  124. package/css/float-elements.css.map +1 -1
  125. package/css/global.bundle.css.map +1 -1
  126. package/css/ionic/bundle.ionic.css +1 -0
  127. package/css/ionic/bundle.ionic.css.map +1 -0
  128. package/css/ionic/core.ionic.css +1 -0
  129. package/css/ionic/core.ionic.css.map +1 -0
  130. package/css/ionic/global.bundle.ionic.css +1 -0
  131. package/css/ionic/global.bundle.ionic.css.map +1 -0
  132. package/css/ionic/ionic-swiper.ionic.css +1 -0
  133. package/css/ionic/ionic-swiper.ionic.css.map +1 -0
  134. package/css/ionic/link.ionic.css +1 -0
  135. package/css/ionic/link.ionic.css.map +1 -0
  136. package/css/ionic/structure.ionic.css +1 -0
  137. package/css/ionic/structure.ionic.css.map +1 -0
  138. package/css/ionic/typography.ionic.css +1 -0
  139. package/css/ionic/typography.ionic.css.map +1 -0
  140. package/css/ionic/utils.bundle.ionic.css +1 -0
  141. package/css/ionic/utils.bundle.ionic.css.map +1 -0
  142. package/css/ionic-swiper.css +1 -1
  143. package/css/ionic-swiper.css.map +1 -1
  144. package/css/ionic.bundle.css +1 -1
  145. package/css/ionic.bundle.css.map +1 -1
  146. package/css/normalize.css.map +1 -1
  147. package/css/padding.css.map +1 -1
  148. package/css/palettes/dark.always.css.map +1 -1
  149. package/css/palettes/dark.class.css.map +1 -1
  150. package/css/palettes/dark.system.css.map +1 -1
  151. package/css/palettes/high-contrast-dark.always.css.map +1 -1
  152. package/css/palettes/high-contrast-dark.class.css.map +1 -1
  153. package/css/palettes/high-contrast-dark.system.css.map +1 -1
  154. package/css/palettes/high-contrast.always.css.map +1 -1
  155. package/css/palettes/high-contrast.class.css.map +1 -1
  156. package/css/palettes/high-contrast.system.css.map +1 -1
  157. package/css/structure.css.map +1 -1
  158. package/css/text-alignment.css.map +1 -1
  159. package/css/text-transformation.css.map +1 -1
  160. package/css/typography.css.map +1 -1
  161. package/css/utils.bundle.css +1 -1
  162. package/css/utils.bundle.css.map +1 -1
  163. package/dist/cjs/{animation-b4fdf128.js → animation-58015a44.js} +2 -2
  164. package/dist/cjs/{app-globals-16893c1e.js → app-globals-d64148d3.js} +1 -1
  165. package/dist/cjs/{button-active-ec3d9ca2.js → button-active-ec1fd1d8.js} +2 -2
  166. package/dist/cjs/{capacitor-c04564bf.js → capacitor-454dd071.js} +3 -3
  167. package/dist/cjs/caret-down-3c215cff.js +8 -0
  168. package/dist/cjs/caret-left-2bb66970.js +8 -0
  169. package/dist/cjs/caret-right-88e03970.js +8 -0
  170. package/dist/cjs/config-aff4ff52.js +84 -0
  171. package/dist/cjs/{data-21dc0f81.js → data-b726dbee.js} +6 -6
  172. package/dist/cjs/{focus-visible-7a0ce04f.js → focus-visible-9aa87fa3.js} +8 -0
  173. package/dist/cjs/{framework-delegate-55f5683a.js → framework-delegate-32f1a0e4.js} +4 -2
  174. package/dist/cjs/{haptic-f6b37aa3.js → haptic-7c25be74.js} +1 -1
  175. package/dist/cjs/{helpers-afaa9001.js → helpers-4e2936d2.js} +4 -1
  176. package/dist/cjs/{index-2b28acc8.js → index-03fbee1d.js} +14 -15
  177. package/dist/cjs/{index-9509ecad.js → index-0e0c6196.js} +9 -7
  178. package/dist/cjs/{index-5b6a7459.js → index-604c36ae.js} +3 -3
  179. package/dist/cjs/{index-55b6245a.js → index-73f75efb.js} +756 -1129
  180. package/dist/cjs/{index-29ad8b24.js → index-8f975cf4.js} +12 -12
  181. package/dist/cjs/index.cjs.js +11 -13
  182. package/dist/cjs/{input-shims-9e59ef62.js → input-shims-4b4d2251.js} +18 -17
  183. package/dist/cjs/{input.utils-611cde0b.js → input.utils-fb1debe4.js} +4 -5
  184. package/dist/cjs/ion-accordion_2.cjs.entry.js +62 -25
  185. package/dist/cjs/ion-action-sheet.cjs.entry.js +22 -19
  186. package/dist/cjs/ion-alert.cjs.entry.js +26 -24
  187. package/dist/cjs/ion-app_8.cjs.entry.js +109 -153
  188. package/dist/cjs/ion-avatar_3.cjs.entry.js +94 -10
  189. package/dist/cjs/ion-back-button.cjs.entry.js +32 -22
  190. package/dist/cjs/ion-backdrop.cjs.entry.js +12 -7
  191. package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +54 -16
  192. package/dist/cjs/ion-button_2.cjs.entry.js +47 -16
  193. package/dist/cjs/ion-card_5.cjs.entry.js +53 -29
  194. package/dist/cjs/ion-checkbox.cjs.entry.js +31 -14
  195. package/dist/cjs/ion-chip.cjs.entry.js +44 -8
  196. package/dist/cjs/ion-col_3.cjs.entry.js +15 -11
  197. package/dist/cjs/ion-datetime-button.cjs.entry.js +17 -13
  198. package/dist/cjs/ion-datetime_3.cjs.entry.js +191 -115
  199. package/dist/cjs/ion-fab_3.cjs.entry.js +43 -20
  200. package/dist/cjs/ion-img.cjs.entry.js +8 -4
  201. package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +22 -18
  202. package/dist/cjs/ion-input-password-toggle.cjs.entry.js +56 -17
  203. package/dist/cjs/ion-input.cjs.entry.js +119 -24
  204. package/dist/cjs/ion-item-option_3.cjs.entry.js +41 -18
  205. package/dist/cjs/ion-item_8.cjs.entry.js +114 -42
  206. package/dist/cjs/ion-loading.cjs.entry.js +21 -19
  207. package/dist/cjs/ion-menu_3.cjs.entry.js +49 -30
  208. package/dist/cjs/ion-modal.cjs.entry.js +95 -67
  209. package/dist/cjs/ion-nav_2.cjs.entry.js +16 -14
  210. package/dist/cjs/ion-picker-column-option.cjs.entry.js +12 -7
  211. package/dist/cjs/ion-picker-column.cjs.entry.js +13 -13
  212. package/dist/cjs/ion-picker.cjs.entry.js +11 -6
  213. package/dist/cjs/ion-popover.cjs.entry.js +21 -19
  214. package/dist/cjs/ion-progress-bar.cjs.entry.js +14 -9
  215. package/dist/cjs/ion-radio_2.cjs.entry.js +19 -12
  216. package/dist/cjs/ion-range.cjs.entry.js +21 -17
  217. package/dist/cjs/ion-refresher_2.cjs.entry.js +45 -24
  218. package/dist/cjs/ion-reorder_2.cjs.entry.js +38 -14
  219. package/dist/cjs/ion-ripple-effect.cjs.entry.js +19 -8
  220. package/dist/cjs/ion-route_4.cjs.entry.js +9 -8
  221. package/dist/cjs/ion-searchbar.cjs.entry.js +95 -18
  222. package/dist/cjs/ion-segment-content.cjs.entry.js +2 -2
  223. package/dist/cjs/ion-segment-view.cjs.entry.js +7 -3
  224. package/dist/cjs/ion-segment_2.cjs.entry.js +24 -15
  225. package/dist/cjs/ion-select-modal.cjs.entry.js +9 -11
  226. package/dist/cjs/ion-select_3.cjs.entry.js +133 -40
  227. package/dist/cjs/ion-spinner.cjs.entry.js +36 -10
  228. package/dist/cjs/ion-split-pane.cjs.entry.js +14 -9
  229. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +61 -21
  230. package/dist/cjs/ion-tab_2.cjs.entry.js +8 -7
  231. package/dist/cjs/ion-text.cjs.entry.js +7 -6
  232. package/dist/cjs/ion-textarea.cjs.entry.js +42 -17
  233. package/dist/cjs/ion-toast.cjs.entry.js +59 -42
  234. package/dist/cjs/ion-toggle.cjs.entry.js +81 -23
  235. package/dist/cjs/ionic-global-14af9c21.js +535 -0
  236. package/dist/cjs/ionic.cjs.js +6 -5
  237. package/dist/cjs/{ios.transition-9820d3dc.js → ios.transition-2bb0f7d5.js} +7 -7
  238. package/dist/cjs/{keyboard-af1bb365.js → keyboard-0a5d46dd.js} +5 -3
  239. package/dist/cjs/{keyboard-0272231f.js → keyboard-53c12a15.js} +1 -1
  240. package/dist/cjs/{keyboard-controller-c05e747a.js → keyboard-controller-102bad3e.js} +11 -9
  241. package/dist/cjs/list-2930c629.js +8 -0
  242. package/dist/cjs/loader.cjs.js +5 -4
  243. package/dist/cjs/{md.transition-a35e0839.js → md.transition-cf600117.js} +6 -7
  244. package/dist/cjs/{notch-controller-d69150f5.js → notch-controller-ea70e230.js} +4 -4
  245. package/dist/cjs/{overlays-43ae7e1d.js → overlays-542a90b3.js} +19 -20
  246. package/dist/cjs/{status-tap-f98e43a0.js → status-tap-aa97d209.js} +5 -4
  247. package/dist/cjs/{swipe-back-0303a5e4.js → swipe-back-27975274.js} +2 -1
  248. package/dist/cjs/x-81a8f51c.js +8 -0
  249. package/dist/collection/collection-manifest.json +2 -2
  250. package/dist/collection/components/accordion/accordion.ionic.css +197 -0
  251. package/dist/collection/components/accordion/accordion.ios.css +73 -58
  252. package/dist/collection/components/accordion/accordion.js +37 -31
  253. package/dist/collection/components/accordion/accordion.md.css +67 -59
  254. package/dist/collection/components/accordion-group/accordion-group.ionic.css +95 -0
  255. package/dist/collection/components/accordion-group/accordion-group.ios.css +16 -4
  256. package/dist/collection/components/accordion-group/accordion-group.js +43 -20
  257. package/dist/collection/components/accordion-group/accordion-group.md.css +22 -4
  258. package/dist/collection/components/action-sheet/action-sheet.ios.css +18 -6
  259. package/dist/collection/components/action-sheet/action-sheet.js +18 -46
  260. package/dist/collection/components/action-sheet/action-sheet.md.css +17 -5
  261. package/dist/collection/components/alert/alert.ios.css +19 -1
  262. package/dist/collection/components/alert/alert.js +19 -52
  263. package/dist/collection/components/alert/alert.md.css +19 -1
  264. package/dist/collection/components/app/app.js +12 -78
  265. package/dist/collection/components/avatar/avatar.ionic.css +268 -0
  266. package/dist/collection/components/avatar/avatar.ios.css +12 -0
  267. package/dist/collection/components/avatar/avatar.js +92 -4
  268. package/dist/collection/components/avatar/avatar.md.css +12 -0
  269. package/dist/collection/components/back-button/back-button.ios.css +60 -48
  270. package/dist/collection/components/back-button/back-button.js +28 -34
  271. package/dist/collection/components/back-button/back-button.md.css +60 -48
  272. package/dist/collection/components/backdrop/backdrop.ionic.css +151 -0
  273. package/dist/collection/components/backdrop/backdrop.ios.css +13 -1
  274. package/dist/collection/components/backdrop/backdrop.js +12 -12
  275. package/dist/collection/components/backdrop/backdrop.md.css +13 -1
  276. package/dist/collection/components/badge/badge.ionic.css +249 -0
  277. package/dist/collection/components/badge/badge.ios.css +106 -3
  278. package/dist/collection/components/badge/badge.js +75 -10
  279. package/dist/collection/components/badge/badge.md.css +106 -3
  280. package/dist/collection/components/breadcrumb/breadcrumb.ios.css +20 -8
  281. package/dist/collection/components/breadcrumb/breadcrumb.js +44 -38
  282. package/dist/collection/components/breadcrumb/breadcrumb.md.css +20 -8
  283. package/dist/collection/components/breadcrumbs/breadcrumbs.ios.css +6 -0
  284. package/dist/collection/components/breadcrumbs/breadcrumbs.js +11 -17
  285. package/dist/collection/components/breadcrumbs/breadcrumbs.md.css +6 -0
  286. package/dist/collection/components/button/button.ionic.css +589 -0
  287. package/dist/collection/components/button/button.ios.css +129 -36
  288. package/dist/collection/components/button/button.js +47 -49
  289. package/dist/collection/components/button/button.md.css +120 -40
  290. package/dist/collection/components/buttons/buttons.ionic.css +100 -0
  291. package/dist/collection/components/buttons/buttons.ios.css +59 -7
  292. package/dist/collection/components/buttons/buttons.js +14 -10
  293. package/dist/collection/components/buttons/buttons.md.css +55 -3
  294. package/dist/collection/components/card/card.ionic.css +137 -0
  295. package/dist/collection/components/card/card.ios.css +65 -14
  296. package/dist/collection/components/card/card.js +34 -30
  297. package/dist/collection/components/card/card.md.css +65 -14
  298. package/dist/collection/components/card-content/card-content.ionic.css +90 -0
  299. package/dist/collection/components/card-content/card-content.ios.css +16 -1
  300. package/dist/collection/components/card-content/card-content.js +11 -8
  301. package/dist/collection/components/card-content/card-content.md.css +16 -1
  302. package/dist/collection/components/card-header/card-header.ionic.css +87 -0
  303. package/dist/collection/components/card-header/card-header.ios.css +27 -15
  304. package/dist/collection/components/card-header/card-header.js +12 -13
  305. package/dist/collection/components/card-header/card-header.md.css +27 -15
  306. package/dist/collection/components/card-subtitle/card-subtitle.ionic.css +146 -0
  307. package/dist/collection/components/card-subtitle/card-subtitle.ios.css +12 -0
  308. package/dist/collection/components/card-subtitle/card-subtitle.js +11 -10
  309. package/dist/collection/components/card-subtitle/card-subtitle.md.css +12 -0
  310. package/dist/collection/components/card-title/card-title.ios.css +73 -0
  311. package/dist/collection/components/card-title/card-title.js +11 -10
  312. package/dist/collection/components/card-title/card-title.md.css +73 -0
  313. package/dist/collection/components/checkbox/checkbox.ionic.css +402 -0
  314. package/dist/collection/components/checkbox/checkbox.ios.css +20 -2
  315. package/dist/collection/components/checkbox/checkbox.js +64 -32
  316. package/dist/collection/components/checkbox/checkbox.md.css +21 -3
  317. package/dist/collection/components/chip/chip.ionic.css +160 -0
  318. package/dist/collection/components/chip/chip.ios.css +20 -1
  319. package/dist/collection/components/chip/chip.js +77 -14
  320. package/dist/collection/components/chip/chip.md.css +20 -1
  321. package/dist/collection/components/col/col.css +12 -0
  322. package/dist/collection/components/col/col.js +9 -53
  323. package/dist/collection/components/content/content.css +8 -2
  324. package/dist/collection/components/content/content.js +16 -25
  325. package/dist/collection/components/datetime/datetime.ionic.css +673 -0
  326. package/dist/collection/components/datetime/datetime.ios.css +237 -86
  327. package/dist/collection/components/datetime/datetime.js +102 -84
  328. package/dist/collection/components/datetime/datetime.md.css +237 -86
  329. package/dist/collection/components/datetime/utils/data.js +3 -3
  330. package/dist/collection/components/datetime-button/datetime-button.ios.css +6 -0
  331. package/dist/collection/components/datetime-button/datetime-button.js +11 -14
  332. package/dist/collection/components/datetime-button/datetime-button.md.css +6 -0
  333. package/dist/collection/components/fab/fab.css +25 -1
  334. package/dist/collection/components/fab/fab.js +9 -13
  335. package/dist/collection/components/fab-button/fab-button.ios.css +18 -6
  336. package/dist/collection/components/fab-button/fab-button.js +37 -44
  337. package/dist/collection/components/fab-button/fab-button.md.css +20 -8
  338. package/dist/collection/components/fab-list/fab-list.css +12 -0
  339. package/dist/collection/components/fab-list/fab-list.js +9 -9
  340. package/dist/collection/components/footer/footer.ios.css +14 -2
  341. package/dist/collection/components/footer/footer.js +20 -19
  342. package/dist/collection/components/footer/footer.md.css +12 -0
  343. package/dist/collection/components/grid/grid.css +12 -0
  344. package/dist/collection/components/grid/grid.js +9 -7
  345. package/dist/collection/components/header/header.ionic.css +86 -0
  346. package/dist/collection/components/header/header.ios.css +25 -10
  347. package/dist/collection/components/header/header.js +42 -21
  348. package/dist/collection/components/header/header.md.css +23 -8
  349. package/dist/collection/components/img/img.js +8 -6
  350. package/dist/collection/components/infinite-scroll/infinite-scroll.js +8 -10
  351. package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.ios.css +12 -0
  352. package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.js +16 -14
  353. package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.md.css +12 -0
  354. package/dist/collection/components/input/input.ionic.css +1096 -0
  355. package/dist/collection/components/input/input.ios.css +21 -2
  356. package/dist/collection/components/input/input.js +145 -99
  357. package/dist/collection/components/input/input.md.css +43 -4
  358. package/dist/collection/components/input-password-toggle/input-password-toggle.common.css +61 -0
  359. package/dist/collection/components/input-password-toggle/input-password-toggle.ionic.css +141 -0
  360. package/dist/collection/components/input-password-toggle/input-password-toggle.js +48 -20
  361. package/dist/collection/components/item/item.ionic.css +497 -0
  362. package/dist/collection/components/item/item.ios.css +109 -69
  363. package/dist/collection/components/item/item.js +45 -43
  364. package/dist/collection/components/item/item.md.css +120 -68
  365. package/dist/collection/components/item-divider/item-divider.ios.css +18 -0
  366. package/dist/collection/components/item-divider/item-divider.js +11 -12
  367. package/dist/collection/components/item-divider/item-divider.md.css +18 -0
  368. package/dist/collection/components/item-group/item-group.ios.css +12 -0
  369. package/dist/collection/components/item-group/item-group.js +13 -7
  370. package/dist/collection/components/item-group/item-group.md.css +12 -0
  371. package/dist/collection/components/item-option/item-option.ionic.css +332 -0
  372. package/dist/collection/components/item-option/item-option.ios.css +14 -2
  373. package/dist/collection/components/item-option/item-option.js +43 -24
  374. package/dist/collection/components/item-option/item-option.md.css +14 -2
  375. package/dist/collection/components/item-options/item-options.ionic.css +259 -0
  376. package/dist/collection/components/item-options/item-options.ios.css +18 -0
  377. package/dist/collection/components/item-options/item-options.js +13 -9
  378. package/dist/collection/components/item-options/item-options.md.css +18 -0
  379. package/dist/collection/components/item-sliding/item-sliding.css +6 -0
  380. package/dist/collection/components/item-sliding/item-sliding.js +8 -6
  381. package/dist/collection/components/label/label.ios.css +18 -0
  382. package/dist/collection/components/label/label.js +11 -12
  383. package/dist/collection/components/label/label.md.css +18 -0
  384. package/dist/collection/components/list/list.ionic.css +192 -0
  385. package/dist/collection/components/list/list.ios.css +18 -0
  386. package/dist/collection/components/list/list.js +47 -13
  387. package/dist/collection/components/list/list.md.css +20 -2
  388. package/dist/collection/components/list-header/list-header.ionic.css +236 -0
  389. package/dist/collection/components/list-header/list-header.ios.css +18 -0
  390. package/dist/collection/components/list-header/list-header.js +11 -12
  391. package/dist/collection/components/list-header/list-header.md.css +18 -0
  392. package/dist/collection/components/loading/loading.ios.css +13 -1
  393. package/dist/collection/components/loading/loading.js +17 -48
  394. package/dist/collection/components/loading/loading.md.css +13 -1
  395. package/dist/collection/components/menu/menu.ios.css +15 -3
  396. package/dist/collection/components/menu/menu.js +12 -21
  397. package/dist/collection/components/menu/menu.md.css +15 -3
  398. package/dist/collection/components/menu-button/menu-button.ionic.css +238 -0
  399. package/dist/collection/components/menu-button/menu-button.ios.css +48 -14
  400. package/dist/collection/components/menu-button/menu-button.js +26 -20
  401. package/dist/collection/components/menu-button/menu-button.md.css +49 -15
  402. package/dist/collection/components/menu-toggle/menu-toggle.js +8 -9
  403. package/dist/collection/components/modal/animations/sheet.js +8 -2
  404. package/dist/collection/components/modal/gestures/sheet.js +10 -6
  405. package/dist/collection/components/modal/modal.ionic.css +239 -0
  406. package/dist/collection/components/modal/modal.ios.css +106 -63
  407. package/dist/collection/components/modal/modal.js +54 -66
  408. package/dist/collection/components/modal/modal.md.css +106 -63
  409. package/dist/collection/components/nav/nav.css +7 -1
  410. package/dist/collection/components/nav/nav.js +14 -20
  411. package/dist/collection/components/nav-link/nav-link.js +7 -11
  412. package/dist/collection/components/note/note.ios.css +12 -0
  413. package/dist/collection/components/note/note.js +11 -10
  414. package/dist/collection/components/note/note.md.css +12 -0
  415. package/dist/collection/components/picker/picker.ios.css +15 -3
  416. package/dist/collection/components/picker/picker.js +8 -5
  417. package/dist/collection/components/picker/picker.md.css +15 -3
  418. package/dist/collection/components/picker-column/picker-column.css +9 -2
  419. package/dist/collection/components/picker-column/picker-column.js +8 -15
  420. package/dist/collection/components/picker-column-option/picker-column-option.ios.css +6 -0
  421. package/dist/collection/components/picker-column-option/picker-column-option.js +13 -13
  422. package/dist/collection/components/picker-column-option/picker-column-option.md.css +6 -0
  423. package/dist/collection/components/picker-legacy/picker.ios.css +13 -1
  424. package/dist/collection/components/picker-legacy/picker.js +11 -42
  425. package/dist/collection/components/picker-legacy/picker.md.css +13 -1
  426. package/dist/collection/components/picker-legacy-column/picker-column.ios.css +12 -0
  427. package/dist/collection/components/picker-legacy-column/picker-column.js +5 -7
  428. package/dist/collection/components/picker-legacy-column/picker-column.md.css +12 -0
  429. package/dist/collection/components/popover/popover.ios.css +13 -1
  430. package/dist/collection/components/popover/popover.js +20 -71
  431. package/dist/collection/components/popover/popover.md.css +13 -1
  432. package/dist/collection/components/progress-bar/progress-bar.ios.css +8 -2
  433. package/dist/collection/components/progress-bar/progress-bar.js +10 -17
  434. package/dist/collection/components/progress-bar/progress-bar.md.css +8 -2
  435. package/dist/collection/components/radio/radio.ionic.css +424 -0
  436. package/dist/collection/components/radio/radio.ios.css +134 -91
  437. package/dist/collection/components/radio/radio.js +12 -23
  438. package/dist/collection/components/radio/radio.md.css +134 -91
  439. package/dist/collection/components/radio-group/radio-group.js +9 -11
  440. package/dist/collection/components/range/range.ionic.css +555 -0
  441. package/dist/collection/components/range/range.ios.css +128 -85
  442. package/dist/collection/components/range/range.js +12 -41
  443. package/dist/collection/components/range/range.md.css +128 -85
  444. package/dist/collection/components/refresher/refresher.ios.css +14 -1
  445. package/dist/collection/components/refresher/refresher.js +11 -20
  446. package/dist/collection/components/refresher/refresher.md.css +15 -2
  447. package/dist/collection/components/refresher-content/refresher-content.js +28 -15
  448. package/dist/collection/components/reorder/reorder.ios.css +6 -0
  449. package/dist/collection/components/reorder/reorder.js +33 -6
  450. package/dist/collection/components/reorder/reorder.md.css +6 -0
  451. package/dist/collection/components/reorder-group/reorder-group.css +6 -0
  452. package/dist/collection/components/reorder-group/reorder-group.js +8 -6
  453. package/dist/collection/components/ripple-effect/{ripple-effect.css → ripple-effect.common.css} +7 -1
  454. package/dist/collection/components/ripple-effect/ripple-effect.ionic.css +154 -0
  455. package/dist/collection/components/ripple-effect/ripple-effect.js +14 -8
  456. package/dist/collection/components/route/route.js +7 -13
  457. package/dist/collection/components/route-redirect/route-redirect.js +0 -4
  458. package/dist/collection/components/router/router.js +4 -4
  459. package/dist/collection/components/router-link/router-link.css +8 -2
  460. package/dist/collection/components/router-link/router-link.js +10 -18
  461. package/dist/collection/components/router-outlet/router-outlet.css +7 -1
  462. package/dist/collection/components/router-outlet/router-outlet.js +8 -15
  463. package/dist/collection/components/row/row.css +12 -0
  464. package/dist/collection/components/row/row.js +9 -2
  465. package/dist/collection/components/searchbar/searchbar.ionic.css +345 -0
  466. package/dist/collection/components/searchbar/searchbar.ios.css +56 -18
  467. package/dist/collection/components/searchbar/searchbar.js +97 -69
  468. package/dist/collection/components/searchbar/searchbar.md.css +56 -18
  469. package/dist/collection/components/segment/segment.ionic.css +117 -0
  470. package/dist/collection/components/segment/segment.ios.css +45 -2
  471. package/dist/collection/components/segment/segment.js +11 -20
  472. package/dist/collection/components/segment/segment.md.css +45 -2
  473. package/dist/collection/components/segment-button/segment-button.ionic.css +355 -0
  474. package/dist/collection/components/segment-button/segment-button.ios.css +146 -105
  475. package/dist/collection/components/segment-button/segment-button.js +11 -18
  476. package/dist/collection/components/segment-button/segment-button.md.css +148 -107
  477. package/dist/collection/components/segment-content/segment-content.js +1 -1
  478. package/dist/collection/components/segment-view/segment-view.ios.css +6 -0
  479. package/dist/collection/components/segment-view/segment-view.js +6 -6
  480. package/dist/collection/components/segment-view/segment-view.md.css +6 -0
  481. package/dist/collection/components/select/select.ionic.css +706 -0
  482. package/dist/collection/components/select/select.ios.css +187 -121
  483. package/dist/collection/components/select/select.js +139 -75
  484. package/dist/collection/components/select/select.md.css +184 -226
  485. package/dist/collection/components/select-modal/select-modal.ionic.css +121 -0
  486. package/dist/collection/components/select-modal/select-modal.js +3 -9
  487. package/dist/collection/components/select-modal/select-modal.md.css +7 -3
  488. package/dist/collection/components/select-option/select-option.js +9 -6
  489. package/dist/collection/components/select-popover/select-popover.ios.css +18 -0
  490. package/dist/collection/components/select-popover/select-popover.js +12 -14
  491. package/dist/collection/components/select-popover/select-popover.md.css +18 -0
  492. package/dist/collection/components/skeleton-text/skeleton-text.css +6 -0
  493. package/dist/collection/components/skeleton-text/skeleton-text.js +9 -7
  494. package/dist/collection/components/spinner/spinner.common.css +199 -0
  495. package/dist/collection/components/spinner/{spinner.css → spinner.ionic.css} +63 -0
  496. package/dist/collection/components/spinner/spinner.js +46 -14
  497. package/dist/collection/components/split-pane/split-pane.ios.css +20 -2
  498. package/dist/collection/components/split-pane/split-pane.js +14 -14
  499. package/dist/collection/components/split-pane/split-pane.md.css +20 -2
  500. package/dist/collection/components/tab/tab.js +7 -11
  501. package/dist/collection/components/tab-bar/tab-bar.ionic.css +188 -0
  502. package/dist/collection/components/tab-bar/tab-bar.ios.css +71 -43
  503. package/dist/collection/components/tab-bar/tab-bar.js +65 -16
  504. package/dist/collection/components/tab-bar/tab-bar.md.css +71 -43
  505. package/dist/collection/components/tab-button/tab-button.ionic.css +282 -0
  506. package/dist/collection/components/tab-button/tab-button.ios.css +103 -88
  507. package/dist/collection/components/tab-button/tab-button.js +43 -24
  508. package/dist/collection/components/tab-button/tab-button.md.css +103 -88
  509. package/dist/collection/components/tabs/tabs.css +7 -1
  510. package/dist/collection/components/tabs/tabs.js +4 -3
  511. package/dist/collection/components/text/text.css +6 -0
  512. package/dist/collection/components/text/text.js +7 -8
  513. package/dist/collection/components/textarea/textarea.ionic.css +834 -0
  514. package/dist/collection/components/textarea/textarea.ios.css +201 -96
  515. package/dist/collection/components/textarea/textarea.js +60 -73
  516. package/dist/collection/components/textarea/textarea.md.css +214 -97
  517. package/dist/collection/components/thumbnail/thumbnail.css +6 -0
  518. package/dist/collection/components/thumbnail/thumbnail.js +9 -2
  519. package/dist/collection/components/title/title.ionic.css +145 -0
  520. package/dist/collection/components/title/title.ios.css +32 -4
  521. package/dist/collection/components/title/title.js +13 -11
  522. package/dist/collection/components/title/title.md.css +32 -4
  523. package/dist/collection/components/toast/animations/utils.js +1 -1
  524. package/dist/collection/components/toast/toast.ionic.css +377 -0
  525. package/dist/collection/components/toast/toast.ios.css +74 -35
  526. package/dist/collection/components/toast/toast.js +50 -59
  527. package/dist/collection/components/toast/toast.md.css +74 -35
  528. package/dist/collection/components/toggle/toggle.ionic.css +419 -0
  529. package/dist/collection/components/toggle/toggle.ios.css +166 -120
  530. package/dist/collection/components/toggle/toggle.js +73 -36
  531. package/dist/collection/components/toggle/toggle.md.css +163 -120
  532. package/dist/collection/components/toolbar/toolbar.ionic.css +233 -0
  533. package/dist/collection/components/toolbar/toolbar.ios.css +90 -47
  534. package/dist/collection/components/toolbar/toolbar.js +13 -12
  535. package/dist/collection/components/toolbar/toolbar.md.css +90 -47
  536. package/dist/collection/global/ionic-global.js +229 -13
  537. package/dist/collection/utils/focus-visible.js +7 -0
  538. package/dist/collection/utils/framework-delegate.js +3 -1
  539. package/dist/collection/utils/helpers.js +3 -1
  540. package/dist/collection/utils/keyboard/keyboard-controller.js +3 -1
  541. package/dist/collection/utils/menu-controller/animations/overlay.js +3 -3
  542. package/dist/collection/utils/menu-controller/animations/push.js +2 -1
  543. package/dist/collection/utils/menu-controller/animations/reveal.js +2 -1
  544. package/dist/collection/utils/overlays.js +2 -1
  545. package/dist/collection/utils/test/playwright/generator.js +48 -23
  546. package/dist/collection/utils/test/playwright/page/utils/goto.js +14 -5
  547. package/dist/collection/utils/test/playwright/page/utils/set-content.js +16 -2
  548. package/dist/collection/utils/transition/ios.transition.js +1 -0
  549. package/dist/docs.d.ts +0 -8
  550. package/dist/docs.json +7864 -2219
  551. package/dist/esm/{animation-eab5a4ca.js → animation-f1a88600.js} +1 -1
  552. package/dist/esm/{app-globals-32740a0d.js → app-globals-eceadabb.js} +1 -1
  553. package/dist/esm/{button-active-0e590bc4.js → button-active-321f0dba.js} +2 -2
  554. package/dist/esm/{capacitor-59395cbd.js → capacitor-6b0341c8.js} +1 -1
  555. package/dist/esm/caret-down-3eaad1cc.js +6 -0
  556. package/dist/esm/caret-left-33424bb0.js +6 -0
  557. package/dist/esm/caret-right-68d856ad.js +6 -0
  558. package/dist/esm/config-84eb9670.js +79 -0
  559. package/dist/esm/{data-ae11fd43.js → data-a753c96a.js} +4 -4
  560. package/dist/esm/{focus-visible-dd40d69f.js → focus-visible-501aff19.js} +8 -1
  561. package/dist/esm/{framework-delegate-63d1a679.js → framework-delegate-3e4a8c9f.js} +4 -2
  562. package/dist/esm/{haptic-ac164e4c.js → haptic-dd6c0ea9.js} +1 -1
  563. package/dist/esm/{helpers-da915de8.js → helpers-f08d15bd.js} +4 -1
  564. package/dist/esm/{index-7bdf1ee6.js → index-31109e63.js} +10 -11
  565. package/dist/esm/{index-4f0570f4.js → index-59f81cb8.js} +6 -6
  566. package/{components/index9.js → dist/esm/index-62b4a18b.js} +4 -2
  567. package/dist/esm/{index-0f61352c.js → index-723c0e5d.js} +757 -1130
  568. package/dist/esm/{index-5cc724f3.js → index-7bd160c2.js} +2 -2
  569. package/dist/esm/{index-e2cf2ceb.js → index-d997525d.js} +1 -1
  570. package/dist/esm/index.js +11 -13
  571. package/dist/esm/{input-shims-0314bbe5.js → input-shims-6be83e59.js} +7 -6
  572. package/dist/esm/{input.utils-09c71bc7.js → input.utils-67459bae.js} +2 -3
  573. package/dist/esm/ion-accordion_2.entry.js +61 -24
  574. package/dist/esm/ion-action-sheet.entry.js +22 -19
  575. package/dist/esm/ion-alert.entry.js +23 -21
  576. package/dist/esm/ion-app_8.entry.js +96 -140
  577. package/dist/esm/ion-avatar_3.entry.js +94 -10
  578. package/dist/esm/ion-back-button.entry.js +31 -21
  579. package/dist/esm/ion-backdrop.entry.js +12 -7
  580. package/dist/esm/ion-breadcrumb_2.entry.js +55 -17
  581. package/dist/esm/ion-button_2.entry.js +44 -13
  582. package/dist/esm/ion-card_5.entry.js +53 -29
  583. package/dist/esm/ion-checkbox.entry.js +31 -14
  584. package/dist/esm/ion-chip.entry.js +44 -8
  585. package/dist/esm/ion-col_3.entry.js +15 -11
  586. package/dist/esm/ion-datetime-button.entry.js +13 -9
  587. package/dist/esm/ion-datetime_3.entry.js +117 -41
  588. package/dist/esm/ion-fab_3.entry.js +44 -21
  589. package/dist/esm/ion-img.entry.js +8 -4
  590. package/dist/esm/ion-infinite-scroll_2.entry.js +19 -15
  591. package/dist/esm/ion-input-password-toggle.entry.js +54 -15
  592. package/dist/esm/ion-input.entry.js +120 -25
  593. package/dist/esm/ion-item-option_3.entry.js +41 -18
  594. package/dist/esm/ion-item_8.entry.js +114 -42
  595. package/dist/esm/ion-loading.entry.js +18 -16
  596. package/dist/esm/ion-menu_3.entry.js +48 -29
  597. package/dist/esm/ion-modal.entry.js +59 -31
  598. package/dist/esm/ion-nav_2.entry.js +14 -12
  599. package/dist/esm/ion-picker-column-option.entry.js +12 -7
  600. package/dist/esm/ion-picker-column.entry.js +12 -12
  601. package/dist/esm/ion-picker.entry.js +11 -6
  602. package/dist/esm/ion-popover.entry.js +18 -16
  603. package/dist/esm/ion-progress-bar.entry.js +13 -8
  604. package/dist/esm/ion-radio_2.entry.js +19 -12
  605. package/dist/esm/ion-range.entry.js +16 -12
  606. package/dist/esm/ion-refresher_2.entry.js +42 -21
  607. package/dist/esm/ion-reorder_2.entry.js +39 -15
  608. package/dist/esm/ion-ripple-effect.entry.js +19 -8
  609. package/dist/esm/ion-route_4.entry.js +9 -8
  610. package/dist/esm/ion-searchbar.entry.js +95 -18
  611. package/dist/esm/ion-segment-content.entry.js +2 -2
  612. package/dist/esm/ion-segment-view.entry.js +7 -3
  613. package/dist/esm/ion-segment_2.entry.js +24 -15
  614. package/dist/esm/ion-select-modal.entry.js +9 -11
  615. package/dist/esm/ion-select_3.entry.js +134 -41
  616. package/dist/esm/ion-spinner.entry.js +34 -8
  617. package/dist/esm/ion-split-pane.entry.js +14 -9
  618. package/dist/esm/ion-tab-bar_2.entry.js +60 -20
  619. package/dist/esm/ion-tab_2.entry.js +8 -7
  620. package/dist/esm/ion-text.entry.js +7 -6
  621. package/dist/esm/ion-textarea.entry.js +42 -17
  622. package/dist/esm/ion-toast.entry.js +34 -17
  623. package/dist/esm/ion-toggle.entry.js +81 -23
  624. package/dist/esm/ionic-global-3c97a4aa.js +521 -0
  625. package/dist/esm/ionic.js +7 -6
  626. package/dist/esm/{ios.transition-72ec83a8.js → ios.transition-06b78ea0.js} +7 -7
  627. package/dist/esm/{keyboard-52278bd7.js → keyboard-5b1b354d.js} +5 -3
  628. package/dist/esm/{keyboard-73175e24.js → keyboard-9bbd546a.js} +1 -1
  629. package/dist/esm/{keyboard-controller-ec5c2bfa.js → keyboard-controller-aff395fd.js} +5 -3
  630. package/dist/esm/list-6524700c.js +6 -0
  631. package/dist/esm/loader.js +6 -5
  632. package/dist/esm/{md.transition-1f612b9f.js → md.transition-e5712bda.js} +6 -7
  633. package/dist/esm/{notch-controller-55b09e11.js → notch-controller-c0bd22ff.js} +2 -2
  634. package/dist/esm/{overlays-cba25d39.js → overlays-66cb5522.js} +6 -7
  635. package/dist/esm/{status-tap-a7026a46.js → status-tap-edf9f395.js} +5 -4
  636. package/dist/esm/{swipe-back-e5394307.js → swipe-back-17c42610.js} +2 -1
  637. package/dist/esm/x-a64bcd9f.js +6 -0
  638. package/dist/esm-es5/animation-f1a88600.js +4 -0
  639. package/dist/esm-es5/app-globals-eceadabb.js +4 -0
  640. package/dist/esm-es5/{button-active-0e590bc4.js → button-active-321f0dba.js} +1 -1
  641. package/dist/esm-es5/capacitor-6b0341c8.js +4 -0
  642. package/dist/esm-es5/caret-down-3eaad1cc.js +4 -0
  643. package/dist/esm-es5/caret-left-33424bb0.js +4 -0
  644. package/dist/esm-es5/caret-right-68d856ad.js +4 -0
  645. package/dist/esm-es5/config-84eb9670.js +4 -0
  646. package/dist/esm-es5/data-a753c96a.js +4 -0
  647. package/dist/esm-es5/focus-visible-501aff19.js +4 -0
  648. package/dist/esm-es5/framework-delegate-3e4a8c9f.js +4 -0
  649. package/dist/esm-es5/{haptic-ac164e4c.js → haptic-dd6c0ea9.js} +1 -1
  650. package/dist/esm-es5/helpers-f08d15bd.js +4 -0
  651. package/dist/esm-es5/index-31109e63.js +4 -0
  652. package/dist/esm-es5/index-59f81cb8.js +4 -0
  653. package/dist/esm-es5/{index-79b30591.js → index-62b4a18b.js} +1 -1
  654. package/dist/esm-es5/index-723c0e5d.js +5 -0
  655. package/dist/esm-es5/index-7bd160c2.js +4 -0
  656. package/dist/esm-es5/{index-e2cf2ceb.js → index-d997525d.js} +1 -1
  657. package/dist/esm-es5/index.js +1 -1
  658. package/dist/esm-es5/input-shims-6be83e59.js +4 -0
  659. package/dist/esm-es5/input.utils-67459bae.js +4 -0
  660. package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
  661. package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
  662. package/dist/esm-es5/ion-alert.entry.js +1 -1
  663. package/dist/esm-es5/ion-app_8.entry.js +1 -1
  664. package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
  665. package/dist/esm-es5/ion-back-button.entry.js +1 -1
  666. package/dist/esm-es5/ion-backdrop.entry.js +1 -1
  667. package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
  668. package/dist/esm-es5/ion-button_2.entry.js +1 -1
  669. package/dist/esm-es5/ion-card_5.entry.js +1 -1
  670. package/dist/esm-es5/ion-checkbox.entry.js +1 -1
  671. package/dist/esm-es5/ion-chip.entry.js +1 -1
  672. package/dist/esm-es5/ion-col_3.entry.js +1 -1
  673. package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
  674. package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
  675. package/dist/esm-es5/ion-fab_3.entry.js +1 -1
  676. package/dist/esm-es5/ion-img.entry.js +1 -1
  677. package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
  678. package/dist/esm-es5/ion-input-password-toggle.entry.js +1 -1
  679. package/dist/esm-es5/ion-input.entry.js +1 -1
  680. package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
  681. package/dist/esm-es5/ion-item_8.entry.js +1 -1
  682. package/dist/esm-es5/ion-loading.entry.js +1 -1
  683. package/dist/esm-es5/ion-menu_3.entry.js +1 -1
  684. package/dist/esm-es5/ion-modal.entry.js +1 -1
  685. package/dist/esm-es5/ion-nav_2.entry.js +1 -1
  686. package/dist/esm-es5/ion-picker-column-option.entry.js +1 -1
  687. package/dist/esm-es5/ion-picker-column.entry.js +1 -1
  688. package/dist/esm-es5/ion-picker.entry.js +1 -1
  689. package/dist/esm-es5/ion-popover.entry.js +1 -1
  690. package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
  691. package/dist/esm-es5/ion-radio_2.entry.js +1 -1
  692. package/dist/esm-es5/ion-range.entry.js +1 -1
  693. package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
  694. package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
  695. package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
  696. package/dist/esm-es5/ion-route_4.entry.js +1 -1
  697. package/dist/esm-es5/ion-searchbar.entry.js +1 -1
  698. package/dist/esm-es5/ion-segment-content.entry.js +1 -1
  699. package/dist/esm-es5/ion-segment-view.entry.js +1 -1
  700. package/dist/esm-es5/ion-segment_2.entry.js +1 -1
  701. package/dist/esm-es5/ion-select-modal.entry.js +1 -1
  702. package/dist/esm-es5/ion-select_3.entry.js +1 -1
  703. package/dist/esm-es5/ion-spinner.entry.js +1 -1
  704. package/dist/esm-es5/ion-split-pane.entry.js +1 -1
  705. package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
  706. package/dist/esm-es5/ion-tab_2.entry.js +1 -1
  707. package/dist/esm-es5/ion-text.entry.js +1 -1
  708. package/dist/esm-es5/ion-textarea.entry.js +1 -1
  709. package/dist/esm-es5/ion-toast.entry.js +1 -1
  710. package/dist/esm-es5/ion-toggle.entry.js +1 -1
  711. package/dist/esm-es5/ionic-global-3c97a4aa.js +4 -0
  712. package/dist/esm-es5/ionic.js +1 -1
  713. package/dist/esm-es5/ios.transition-06b78ea0.js +4 -0
  714. package/dist/esm-es5/{keyboard-52278bd7.js → keyboard-5b1b354d.js} +1 -1
  715. package/dist/esm-es5/{keyboard-73175e24.js → keyboard-9bbd546a.js} +1 -1
  716. package/dist/esm-es5/keyboard-controller-aff395fd.js +4 -0
  717. package/dist/esm-es5/list-6524700c.js +4 -0
  718. package/dist/esm-es5/loader.js +1 -1
  719. package/dist/esm-es5/md.transition-e5712bda.js +4 -0
  720. package/dist/esm-es5/notch-controller-c0bd22ff.js +4 -0
  721. package/dist/esm-es5/overlays-66cb5522.js +4 -0
  722. package/dist/esm-es5/status-tap-edf9f395.js +4 -0
  723. package/dist/esm-es5/swipe-back-17c42610.js +4 -0
  724. package/dist/esm-es5/x-a64bcd9f.js +4 -0
  725. package/dist/html.html-data.json +2347 -209
  726. package/dist/ionic/index.esm.js +1 -1
  727. package/dist/ionic/ionic.esm.js +1 -1
  728. package/dist/ionic/ionic.js +1 -1
  729. package/dist/ionic/p-01d80901.system.js +4 -0
  730. package/dist/ionic/p-038a6294.js +4 -0
  731. package/dist/ionic/p-06ec4706.js +4 -0
  732. package/dist/ionic/p-06f2f110.system.entry.js +4 -0
  733. package/dist/ionic/p-09125f4f.entry.js +4 -0
  734. package/dist/ionic/p-096e5f6d.system.entry.js +4 -0
  735. package/dist/ionic/p-09c6b5e4.js +4 -0
  736. package/dist/ionic/p-0a0ce78f.system.entry.js +4 -0
  737. package/dist/ionic/p-0ae8c3eb.entry.js +4 -0
  738. package/dist/ionic/p-0fa218e9.system.js +5 -0
  739. package/dist/ionic/p-101ccd60.system.entry.js +4 -0
  740. package/dist/ionic/p-112120d7.system.js +4 -0
  741. package/dist/ionic/{p-c7e16491.js → p-11266916.js} +1 -1
  742. package/dist/ionic/{p-1e955a45.system.js → p-115d74cd.system.js} +1 -1
  743. package/dist/ionic/p-12337305.system.entry.js +4 -0
  744. package/dist/ionic/{p-34b11c24.js → p-12d6df53.js} +1 -1
  745. package/dist/ionic/p-156d17cd.js +4 -0
  746. package/dist/ionic/p-18892506.entry.js +4 -0
  747. package/dist/ionic/{p-b06ac4a5.system.js → p-18f86177.system.js} +1 -1
  748. package/dist/ionic/p-1abd1c99.entry.js +4 -0
  749. package/dist/ionic/p-1cf1141c.system.entry.js +4 -0
  750. package/dist/ionic/p-1dd2b0af.entry.js +4 -0
  751. package/dist/ionic/p-1eeb9796.entry.js +4 -0
  752. package/dist/ionic/p-1efa63f2.js +4 -0
  753. package/dist/ionic/p-23b31425.entry.js +4 -0
  754. package/dist/ionic/p-243adf8c.js +4 -0
  755. package/dist/ionic/p-24f15ce4.system.entry.js +4 -0
  756. package/dist/ionic/p-25cc2477.entry.js +4 -0
  757. package/dist/ionic/p-27258d5a.entry.js +4 -0
  758. package/dist/ionic/p-29ca4da2.entry.js +4 -0
  759. package/dist/ionic/p-2e35a770.system.js +4 -0
  760. package/dist/ionic/p-2ef115ec.system.entry.js +4 -0
  761. package/dist/ionic/p-2fe21cb8.system.entry.js +4 -0
  762. package/dist/ionic/p-330e703e.entry.js +4 -0
  763. package/dist/ionic/p-33dc4514.js +4 -0
  764. package/dist/ionic/p-346c67b0.js +4 -0
  765. package/dist/ionic/p-3583dd40.system.entry.js +4 -0
  766. package/dist/ionic/p-3608e72b.entry.js +4 -0
  767. package/dist/ionic/p-398b00a5.system.entry.js +4 -0
  768. package/dist/ionic/p-3c4c73f9.system.entry.js +4 -0
  769. package/dist/ionic/p-3ce95a91.entry.js +4 -0
  770. package/dist/ionic/p-3d61263b.system.entry.js +4 -0
  771. package/dist/ionic/p-3d7eb7bf.system.entry.js +4 -0
  772. package/dist/ionic/{p-9ea607bd.system.js → p-3e91ea3a.system.js} +2 -2
  773. package/dist/ionic/{p-2564d9b9.system.js → p-41c19986.system.js} +1 -1
  774. package/dist/ionic/p-41f06734.entry.js +4 -0
  775. package/dist/ionic/p-4219582c.system.js +4 -0
  776. package/dist/ionic/p-429dd2b5.system.js +4 -0
  777. package/dist/ionic/p-4385e3fb.system.entry.js +4 -0
  778. package/dist/ionic/p-4459a66e.system.js +4 -0
  779. package/dist/ionic/{p-f687573e.system.js → p-44ad86d7.system.js} +1 -1
  780. package/dist/ionic/{p-8985cdb6.system.js → p-4626fb32.system.js} +1 -1
  781. package/dist/ionic/p-46787abb.system.js +4 -0
  782. package/dist/ionic/p-47fd935c.system.js +4 -0
  783. package/dist/ionic/p-4a39ba11.entry.js +4 -0
  784. package/dist/ionic/p-4a6d4288.entry.js +4 -0
  785. package/dist/ionic/p-4a869870.entry.js +4 -0
  786. package/dist/ionic/p-4ac4f52a.system.entry.js +4 -0
  787. package/dist/ionic/p-4b4e4592.system.entry.js +4 -0
  788. package/dist/ionic/{p-89b61afc.js → p-4c275462.js} +1 -1
  789. package/dist/ionic/p-4c9e1b2c.js +4 -0
  790. package/dist/ionic/p-51371e21.system.js +4 -0
  791. package/dist/ionic/p-530c591a.entry.js +4 -0
  792. package/dist/ionic/p-55546d77.system.entry.js +4 -0
  793. package/dist/ionic/p-556778bd.system.js +4 -0
  794. package/dist/ionic/p-5684893b.system.entry.js +4 -0
  795. package/dist/ionic/p-57de8d54.system.entry.js +4 -0
  796. package/dist/ionic/{p-d37524be.system.js → p-58aa8a36.system.js} +1 -1
  797. package/dist/ionic/p-58c64779.system.entry.js +4 -0
  798. package/dist/ionic/{p-da2b833b.js → p-58f16ef6.js} +1 -1
  799. package/dist/ionic/p-5a6b3c0d.entry.js +4 -0
  800. package/dist/ionic/p-5a6d245d.system.entry.js +4 -0
  801. package/dist/ionic/p-5b57d327.system.js +4 -0
  802. package/dist/ionic/p-5ce35a03.js +4 -0
  803. package/dist/ionic/p-5deb874f.entry.js +4 -0
  804. package/dist/ionic/p-5eb8561f.system.entry.js +4 -0
  805. package/dist/ionic/p-607c9c33.js +4 -0
  806. package/dist/ionic/p-60d21ee9.system.entry.js +4 -0
  807. package/dist/ionic/p-61eefc4d.system.entry.js +4 -0
  808. package/dist/ionic/{p-9146695e.system.js → p-62887754.system.js} +1 -1
  809. package/dist/ionic/p-63fde7fe.entry.js +4 -0
  810. package/dist/ionic/p-6433742e.system.entry.js +4 -0
  811. package/dist/ionic/p-67b6e18d.entry.js +4 -0
  812. package/dist/ionic/p-6a0dd6bc.js +4 -0
  813. package/dist/ionic/p-6bc2795b.entry.js +4 -0
  814. package/dist/ionic/p-6bd1c0ee.system.entry.js +4 -0
  815. package/dist/ionic/p-6caa76ec.js +4 -0
  816. package/dist/ionic/p-6cbca6c5.system.entry.js +4 -0
  817. package/dist/ionic/p-6dc32e8b.entry.js +4 -0
  818. package/dist/ionic/p-6e53290f.system.entry.js +4 -0
  819. package/dist/ionic/p-7071d7ca.js +4 -0
  820. package/dist/ionic/p-70e5bb40.entry.js +4 -0
  821. package/dist/ionic/p-72cbf799.system.entry.js +4 -0
  822. package/dist/ionic/p-74d76684.js +4 -0
  823. package/dist/ionic/p-7607d8ba.system.entry.js +4 -0
  824. package/dist/ionic/p-78ed8923.js +4 -0
  825. package/dist/ionic/p-7a858bae.system.js +4 -0
  826. package/dist/ionic/p-7d36cf9f.system.entry.js +4 -0
  827. package/dist/ionic/p-815f649a.system.entry.js +4 -0
  828. package/dist/ionic/p-81b72701.entry.js +4 -0
  829. package/dist/ionic/p-822e47a9.system.js +4 -0
  830. package/dist/ionic/{p-711fd7fc.js → p-82cb4235.js} +1 -1
  831. package/dist/ionic/p-83948e48.js +5 -0
  832. package/dist/ionic/p-8463212e.js +4 -0
  833. package/dist/ionic/p-84667060.entry.js +4 -0
  834. package/dist/ionic/p-857ba8d4.entry.js +4 -0
  835. package/dist/ionic/p-86d98446.system.entry.js +4 -0
  836. package/dist/ionic/{p-085dbcb4.system.entry.js → p-86e9a917.system.entry.js} +1 -1
  837. package/dist/ionic/p-871f4046.entry.js +4 -0
  838. package/dist/ionic/p-8956f9a8.system.entry.js +4 -0
  839. package/dist/ionic/p-8b0f0a87.entry.js +4 -0
  840. package/dist/ionic/p-8dbfae64.entry.js +4 -0
  841. package/dist/ionic/p-903c544a.js +4 -0
  842. package/dist/ionic/p-916bc9ed.system.entry.js +4 -0
  843. package/dist/ionic/p-92646426.js +4 -0
  844. package/dist/ionic/{p-27281edd.js → p-93e47936.js} +1 -1
  845. package/dist/ionic/{p-a93873de.system.js → p-94816e7a.system.js} +1 -1
  846. package/dist/ionic/p-94fc2104.system.entry.js +4 -0
  847. package/dist/ionic/p-986855d6.js +4 -0
  848. package/dist/ionic/p-9abb7d9b.entry.js +4 -0
  849. package/dist/ionic/p-9ac1a506.system.js +4 -0
  850. package/dist/ionic/p-a1cdc742.js +4 -0
  851. package/dist/ionic/p-a2814291.system.js +4 -0
  852. package/dist/ionic/{p-de758235.js → p-a510e9c0.js} +1 -1
  853. package/dist/ionic/p-a538ab98.js +4 -0
  854. package/dist/ionic/p-a5a9206f.entry.js +4 -0
  855. package/dist/ionic/p-a685da08.system.entry.js +4 -0
  856. package/dist/ionic/p-a98061d0.entry.js +4 -0
  857. package/dist/ionic/p-a9af4103.js +4 -0
  858. package/dist/ionic/{p-d60342e3.js → p-aaccbb95.js} +1 -1
  859. package/dist/ionic/p-ac1c2b6a.js +4 -0
  860. package/dist/ionic/p-b18c52cd.entry.js +4 -0
  861. package/dist/ionic/p-b517144d.system.entry.js +4 -0
  862. package/dist/ionic/p-b5dc9a32.system.entry.js +4 -0
  863. package/dist/ionic/p-b79f3ded.entry.js +4 -0
  864. package/dist/ionic/p-b80582fe.system.entry.js +4 -0
  865. package/dist/ionic/p-b8b89651.system.entry.js +4 -0
  866. package/dist/ionic/p-bbcec459.system.js +4 -0
  867. package/dist/ionic/p-bcdd3eaf.entry.js +4 -0
  868. package/dist/ionic/p-be87ec25.entry.js +4 -0
  869. package/dist/ionic/p-c248c88d.system.js +4 -0
  870. package/dist/ionic/p-c373eebd.system.js +4 -0
  871. package/dist/ionic/p-c9d5da01.entry.js +4 -0
  872. package/dist/ionic/p-cdff6a80.system.entry.js +4 -0
  873. package/dist/ionic/p-cea92c46.system.js +4 -0
  874. package/dist/ionic/p-d4862803.entry.js +4 -0
  875. package/dist/ionic/p-d6ed3be1.entry.js +4 -0
  876. package/dist/ionic/p-d9edb291.entry.js +4 -0
  877. package/dist/ionic/{p-19ea7bff.system.js → p-dbd39afd.system.js} +1 -1
  878. package/dist/ionic/p-dc286a59.entry.js +4 -0
  879. package/dist/ionic/p-df09db21.entry.js +4 -0
  880. package/dist/ionic/p-df4b88fc.system.entry.js +4 -0
  881. package/dist/ionic/p-e3b70846.system.js +4 -0
  882. package/dist/ionic/p-ea3ca474.system.js +4 -0
  883. package/dist/ionic/p-eb4ba253.entry.js +4 -0
  884. package/dist/ionic/p-ebd641e4.system.entry.js +4 -0
  885. package/dist/ionic/p-ebe94d15.entry.js +4 -0
  886. package/dist/ionic/p-eda736d7.entry.js +4 -0
  887. package/dist/ionic/p-ee17be82.entry.js +4 -0
  888. package/dist/ionic/p-eee899d5.system.entry.js +4 -0
  889. package/dist/ionic/p-f116fb3f.system.js +4 -0
  890. package/dist/ionic/{p-04f14c79.system.js → p-f193945e.system.js} +1 -1
  891. package/dist/ionic/p-f1e11e93.entry.js +4 -0
  892. package/dist/ionic/p-f25ad420.system.entry.js +4 -0
  893. package/dist/ionic/p-f44c9c6e.system.entry.js +4 -0
  894. package/dist/ionic/p-f5be97b8.entry.js +4 -0
  895. package/dist/ionic/p-f8123284.entry.js +4 -0
  896. package/dist/ionic/{p-2f9f5bea.system.js → p-f8c63ac0.system.js} +2 -2
  897. package/dist/ionic/p-f99cf3f7.system.entry.js +4 -0
  898. package/dist/ionic/p-fff78cd2.system.entry.js +4 -0
  899. package/dist/types/components/accordion/accordion.d.ts +5 -3
  900. package/dist/types/components/accordion-group/accordion-group.d.ts +12 -1
  901. package/dist/types/components/action-sheet/action-sheet-interface.d.ts +3 -7
  902. package/dist/types/components/action-sheet/action-sheet.d.ts +3 -2
  903. package/dist/types/components/alert/alert-interface.d.ts +3 -7
  904. package/dist/types/components/alert/alert.d.ts +3 -2
  905. package/dist/types/components/app/app.d.ts +4 -2
  906. package/dist/types/components/avatar/avatar.d.ts +28 -0
  907. package/dist/types/components/back-button/back-button.d.ts +2 -1
  908. package/dist/types/components/backdrop/backdrop.d.ts +4 -0
  909. package/dist/types/components/badge/badge.d.ts +23 -1
  910. package/dist/types/components/breadcrumb/breadcrumb.d.ts +4 -1
  911. package/dist/types/components/breadcrumbs/breadcrumbs.d.ts +2 -2
  912. package/dist/types/components/button/button.d.ts +15 -4
  913. package/dist/types/components/buttons/buttons.d.ts +5 -1
  914. package/dist/types/components/card/card.d.ts +8 -1
  915. package/dist/types/components/card-content/card-content.d.ts +2 -1
  916. package/dist/types/components/card-header/card-header.d.ts +3 -2
  917. package/dist/types/components/card-subtitle/card-subtitle.d.ts +2 -1
  918. package/dist/types/components/card-title/card-title.d.ts +2 -1
  919. package/dist/types/components/checkbox/checkbox.d.ts +14 -4
  920. package/dist/types/components/chip/chip.d.ts +19 -1
  921. package/dist/types/components/col/col.d.ts +4 -0
  922. package/dist/types/components/content/content.d.ts +3 -0
  923. package/dist/types/components/datetime/datetime.d.ts +26 -1
  924. package/dist/types/components/datetime/utils/data.d.ts +3 -3
  925. package/dist/types/components/datetime-button/datetime-button.d.ts +2 -1
  926. package/dist/types/components/fab/fab.d.ts +4 -0
  927. package/dist/types/components/fab-button/fab-button.d.ts +5 -3
  928. package/dist/types/components/fab-list/fab-list.d.ts +4 -0
  929. package/dist/types/components/footer/footer.d.ts +4 -3
  930. package/dist/types/components/grid/grid.d.ts +4 -0
  931. package/dist/types/components/header/header.d.ts +9 -3
  932. package/dist/types/components/img/img.d.ts +3 -0
  933. package/dist/types/components/infinite-scroll/infinite-scroll.d.ts +4 -0
  934. package/dist/types/components/infinite-scroll-content/infinite-scroll-content.d.ts +4 -0
  935. package/dist/types/components/input/input.d.ts +31 -5
  936. package/dist/types/components/input-password-toggle/input-password-toggle.d.ts +2 -0
  937. package/dist/types/components/item/item.d.ts +11 -4
  938. package/dist/types/components/item-divider/item-divider.d.ts +2 -1
  939. package/dist/types/components/item-group/item-group.d.ts +4 -0
  940. package/dist/types/components/item-option/item-option.d.ts +11 -1
  941. package/dist/types/components/item-options/item-options.d.ts +4 -0
  942. package/dist/types/components/item-sliding/item-sliding.d.ts +4 -0
  943. package/dist/types/components/label/label.d.ts +2 -1
  944. package/dist/types/components/list/list.d.ts +15 -1
  945. package/dist/types/components/list-header/list-header.d.ts +2 -1
  946. package/dist/types/components/loading/loading-interface.d.ts +2 -7
  947. package/dist/types/components/loading/loading.d.ts +3 -2
  948. package/dist/types/components/menu/menu.d.ts +3 -0
  949. package/dist/types/components/menu-button/menu-button.d.ts +3 -1
  950. package/dist/types/components/menu-toggle/menu-toggle.d.ts +3 -0
  951. package/dist/types/components/modal/gestures/sheet.d.ts +1 -1
  952. package/dist/types/components/modal/modal-interface.d.ts +4 -7
  953. package/dist/types/components/modal/modal.d.ts +11 -1
  954. package/dist/types/components/nav/nav-interface.d.ts +9 -1
  955. package/dist/types/components/nav/nav.d.ts +5 -1
  956. package/dist/types/components/nav-link/nav-link.d.ts +4 -0
  957. package/dist/types/components/note/note.d.ts +2 -1
  958. package/dist/types/components/picker/picker.d.ts +2 -1
  959. package/dist/types/components/picker-column/picker-column.d.ts +2 -1
  960. package/dist/types/components/picker-column-option/picker-column-option.d.ts +4 -0
  961. package/dist/types/components/picker-legacy/picker.d.ts +2 -1
  962. package/dist/types/components/popover/popover-interface.d.ts +3 -6
  963. package/dist/types/components/popover/popover.d.ts +6 -5
  964. package/dist/types/components/progress-bar/progress-bar.d.ts +2 -1
  965. package/dist/types/components/radio/radio.d.ts +2 -1
  966. package/dist/types/components/radio-group/radio-group.d.ts +4 -0
  967. package/dist/types/components/range/range.d.ts +2 -1
  968. package/dist/types/components/refresher/refresher.d.ts +2 -1
  969. package/dist/types/components/refresher-content/refresher-content.d.ts +4 -0
  970. package/dist/types/components/reorder/reorder.d.ts +9 -0
  971. package/dist/types/components/reorder-group/reorder-group.d.ts +4 -0
  972. package/dist/types/components/ripple-effect/ripple-effect.d.ts +4 -0
  973. package/dist/types/components/route/route.d.ts +4 -0
  974. package/dist/types/components/router/router.d.ts +4 -0
  975. package/dist/types/components/router-link/router-link.d.ts +4 -0
  976. package/dist/types/components/router-outlet/router-outlet.d.ts +4 -1
  977. package/dist/types/components/row/row.d.ts +4 -0
  978. package/dist/types/components/searchbar/searchbar.d.ts +30 -8
  979. package/dist/types/components/segment/segment.d.ts +2 -1
  980. package/dist/types/components/segment-button/segment-button.d.ts +2 -1
  981. package/dist/types/components/select/select.d.ts +35 -7
  982. package/dist/types/components/select-option/select-option.d.ts +4 -0
  983. package/dist/types/components/select-popover/select-popover.d.ts +3 -0
  984. package/dist/types/components/skeleton-text/skeleton-text.d.ts +4 -0
  985. package/dist/types/components/spinner/spinner.d.ts +15 -0
  986. package/dist/types/components/split-pane/split-pane.d.ts +4 -0
  987. package/dist/types/components/tab/tab.d.ts +4 -0
  988. package/dist/types/components/tab-bar/tab-bar.d.ts +22 -2
  989. package/dist/types/components/tab-button/tab-button.d.ts +11 -1
  990. package/dist/types/components/tabs/tabs.d.ts +3 -0
  991. package/dist/types/components/text/text.d.ts +2 -1
  992. package/dist/types/components/textarea/textarea.d.ts +16 -4
  993. package/dist/types/components/thumbnail/thumbnail.d.ts +4 -0
  994. package/dist/types/components/title/title.d.ts +4 -0
  995. package/dist/types/components/toast/animations/utils.d.ts +2 -2
  996. package/dist/types/components/toast/toast-interface.d.ts +3 -7
  997. package/dist/types/components/toast/toast.d.ts +12 -2
  998. package/dist/types/components/toggle/toggle.d.ts +15 -1
  999. package/dist/types/components/toolbar/toolbar.d.ts +4 -3
  1000. package/dist/types/components.d.ts +1384 -184
  1001. package/dist/types/global/ionic-global.d.ts +27 -2
  1002. package/dist/types/interface.d.ts +3 -0
  1003. package/dist/types/stencil-public-runtime.d.ts +0 -6
  1004. package/dist/types/utils/config.d.ts +106 -2
  1005. package/dist/types/utils/focus-visible.d.ts +1 -0
  1006. package/dist/types/utils/overlays-interface.d.ts +31 -1
  1007. package/dist/types/utils/test/playwright/generator.d.ts +31 -2
  1008. package/hydrate/index.d.ts +4 -10
  1009. package/hydrate/index.js +3042 -2175
  1010. package/hydrate/index.mjs +3042 -2175
  1011. package/package.json +11 -6
  1012. package/components/hardware-back-button.js +0 -115
  1013. package/components/index8.js +0 -128
  1014. package/dist/cjs/hardware-back-button-5a19da86.js +0 -122
  1015. package/dist/cjs/index-5915f9b3.js +0 -38
  1016. package/dist/cjs/index-c8d52405.js +0 -10
  1017. package/dist/cjs/ionic-global-aa46b97c.js +0 -237
  1018. package/dist/esm/hardware-back-button-18d38325.js +0 -116
  1019. package/dist/esm/index-79b30591.js +0 -167
  1020. package/dist/esm/index-9b0d46f4.js +0 -34
  1021. package/dist/esm/index-a5d50daf.js +0 -7
  1022. package/dist/esm/ionic-global-35cabcff.js +0 -231
  1023. package/dist/esm-es5/animation-eab5a4ca.js +0 -4
  1024. package/dist/esm-es5/app-globals-32740a0d.js +0 -4
  1025. package/dist/esm-es5/capacitor-59395cbd.js +0 -4
  1026. package/dist/esm-es5/data-ae11fd43.js +0 -4
  1027. package/dist/esm-es5/focus-visible-dd40d69f.js +0 -4
  1028. package/dist/esm-es5/framework-delegate-63d1a679.js +0 -4
  1029. package/dist/esm-es5/hardware-back-button-18d38325.js +0 -4
  1030. package/dist/esm-es5/helpers-da915de8.js +0 -4
  1031. package/dist/esm-es5/index-0f61352c.js +0 -5
  1032. package/dist/esm-es5/index-4f0570f4.js +0 -4
  1033. package/dist/esm-es5/index-5cc724f3.js +0 -4
  1034. package/dist/esm-es5/index-7bdf1ee6.js +0 -4
  1035. package/dist/esm-es5/index-9b0d46f4.js +0 -4
  1036. package/dist/esm-es5/index-a5d50daf.js +0 -4
  1037. package/dist/esm-es5/input-shims-0314bbe5.js +0 -4
  1038. package/dist/esm-es5/input.utils-09c71bc7.js +0 -4
  1039. package/dist/esm-es5/ionic-global-35cabcff.js +0 -4
  1040. package/dist/esm-es5/ios.transition-72ec83a8.js +0 -4
  1041. package/dist/esm-es5/keyboard-controller-ec5c2bfa.js +0 -4
  1042. package/dist/esm-es5/md.transition-1f612b9f.js +0 -4
  1043. package/dist/esm-es5/notch-controller-55b09e11.js +0 -4
  1044. package/dist/esm-es5/overlays-cba25d39.js +0 -4
  1045. package/dist/esm-es5/status-tap-a7026a46.js +0 -4
  1046. package/dist/esm-es5/swipe-back-e5394307.js +0 -4
  1047. package/dist/ionic/p-00751c2a.system.entry.js +0 -4
  1048. package/dist/ionic/p-024da823.js +0 -4
  1049. package/dist/ionic/p-047eabc5.entry.js +0 -4
  1050. package/dist/ionic/p-05562a80.entry.js +0 -4
  1051. package/dist/ionic/p-06e58c4e.js +0 -4
  1052. package/dist/ionic/p-06fee233.js +0 -4
  1053. package/dist/ionic/p-07d1dbe2.system.entry.js +0 -4
  1054. package/dist/ionic/p-08c16f05.system.entry.js +0 -4
  1055. package/dist/ionic/p-0ba102ec.system.entry.js +0 -4
  1056. package/dist/ionic/p-0c06e09b.system.js +0 -4
  1057. package/dist/ionic/p-0c093fae.system.entry.js +0 -4
  1058. package/dist/ionic/p-0c64a077.entry.js +0 -4
  1059. package/dist/ionic/p-11330967.entry.js +0 -4
  1060. package/dist/ionic/p-1179c304.entry.js +0 -4
  1061. package/dist/ionic/p-12f711f4.system.entry.js +0 -4
  1062. package/dist/ionic/p-17290742.entry.js +0 -4
  1063. package/dist/ionic/p-18094a7c.system.entry.js +0 -4
  1064. package/dist/ionic/p-19bfac92.js +0 -4
  1065. package/dist/ionic/p-1dfc11b3.system.js +0 -4
  1066. package/dist/ionic/p-1e4371bd.js +0 -4
  1067. package/dist/ionic/p-255d9087.system.entry.js +0 -4
  1068. package/dist/ionic/p-265d65cb.entry.js +0 -4
  1069. package/dist/ionic/p-2690b1de.js +0 -4
  1070. package/dist/ionic/p-27e81076.system.entry.js +0 -4
  1071. package/dist/ionic/p-2b7827c7.js +0 -4
  1072. package/dist/ionic/p-2e396991.system.entry.js +0 -4
  1073. package/dist/ionic/p-2e520289.entry.js +0 -4
  1074. package/dist/ionic/p-2e78561b.js +0 -5
  1075. package/dist/ionic/p-30019f0b.system.js +0 -4
  1076. package/dist/ionic/p-32e1825e.entry.js +0 -4
  1077. package/dist/ionic/p-35f02a74.entry.js +0 -4
  1078. package/dist/ionic/p-38dac839.system.entry.js +0 -4
  1079. package/dist/ionic/p-39539749.js +0 -4
  1080. package/dist/ionic/p-3ad285e3.system.js +0 -4
  1081. package/dist/ionic/p-3cc276f4.js +0 -4
  1082. package/dist/ionic/p-3e2c05a8.entry.js +0 -4
  1083. package/dist/ionic/p-41cabce4.entry.js +0 -4
  1084. package/dist/ionic/p-43679a42.entry.js +0 -4
  1085. package/dist/ionic/p-43febc77.system.entry.js +0 -4
  1086. package/dist/ionic/p-45e4a1e3.system.entry.js +0 -4
  1087. package/dist/ionic/p-4a57dd17.entry.js +0 -4
  1088. package/dist/ionic/p-4ab93cfa.entry.js +0 -4
  1089. package/dist/ionic/p-4c2d5b80.system.js +0 -4
  1090. package/dist/ionic/p-52f6a5cc.system.entry.js +0 -4
  1091. package/dist/ionic/p-53ad8ff4.system.entry.js +0 -4
  1092. package/dist/ionic/p-56667886.system.entry.js +0 -4
  1093. package/dist/ionic/p-57f92640.entry.js +0 -4
  1094. package/dist/ionic/p-5ae14e75.entry.js +0 -4
  1095. package/dist/ionic/p-64b0068b.entry.js +0 -4
  1096. package/dist/ionic/p-65774bef.system.entry.js +0 -4
  1097. package/dist/ionic/p-67d3729b.system.entry.js +0 -4
  1098. package/dist/ionic/p-6828136c.entry.js +0 -4
  1099. package/dist/ionic/p-6a131e4b.system.entry.js +0 -4
  1100. package/dist/ionic/p-6b6ccc63.entry.js +0 -4
  1101. package/dist/ionic/p-6c29e51f.entry.js +0 -4
  1102. package/dist/ionic/p-6d350e1f.entry.js +0 -4
  1103. package/dist/ionic/p-6d7a98cc.system.entry.js +0 -4
  1104. package/dist/ionic/p-6d9fa95e.system.entry.js +0 -4
  1105. package/dist/ionic/p-6e1c1cf1.system.entry.js +0 -4
  1106. package/dist/ionic/p-6f04bf2f.system.js +0 -4
  1107. package/dist/ionic/p-72812e99.js +0 -4
  1108. package/dist/ionic/p-72bc8a1c.js +0 -4
  1109. package/dist/ionic/p-735f093b.system.entry.js +0 -4
  1110. package/dist/ionic/p-75be4567.entry.js +0 -4
  1111. package/dist/ionic/p-779acec8.entry.js +0 -4
  1112. package/dist/ionic/p-78067282.system.js +0 -4
  1113. package/dist/ionic/p-78841a31.entry.js +0 -4
  1114. package/dist/ionic/p-792919fd.system.js +0 -4
  1115. package/dist/ionic/p-7b30edcc.js +0 -4
  1116. package/dist/ionic/p-7fa854a7.entry.js +0 -4
  1117. package/dist/ionic/p-81494564.system.entry.js +0 -4
  1118. package/dist/ionic/p-84827719.system.entry.js +0 -4
  1119. package/dist/ionic/p-84a6d0da.system.entry.js +0 -4
  1120. package/dist/ionic/p-8635f5e6.system.js +0 -4
  1121. package/dist/ionic/p-86bc3e6f.entry.js +0 -4
  1122. package/dist/ionic/p-876d7e0d.entry.js +0 -4
  1123. package/dist/ionic/p-89b075f4.system.entry.js +0 -4
  1124. package/dist/ionic/p-8b2d8ddb.system.js +0 -4
  1125. package/dist/ionic/p-8c9954a1.entry.js +0 -4
  1126. package/dist/ionic/p-8ceead8f.system.js +0 -4
  1127. package/dist/ionic/p-8e8839c4.system.js +0 -5
  1128. package/dist/ionic/p-938a029f.js +0 -4
  1129. package/dist/ionic/p-93bc2080.entry.js +0 -4
  1130. package/dist/ionic/p-96cc4814.js +0 -4
  1131. package/dist/ionic/p-979f352d.system.entry.js +0 -4
  1132. package/dist/ionic/p-99658fa2.entry.js +0 -4
  1133. package/dist/ionic/p-99c5a3a0.entry.js +0 -4
  1134. package/dist/ionic/p-9c4f4367.system.entry.js +0 -4
  1135. package/dist/ionic/p-a15ddedb.system.js +0 -4
  1136. package/dist/ionic/p-a2e5c294.system.entry.js +0 -4
  1137. package/dist/ionic/p-a3bea030.system.entry.js +0 -4
  1138. package/dist/ionic/p-a64f199d.system.entry.js +0 -4
  1139. package/dist/ionic/p-a772be95.js +0 -4
  1140. package/dist/ionic/p-a8cf7e93.system.entry.js +0 -4
  1141. package/dist/ionic/p-a915830c.system.entry.js +0 -4
  1142. package/dist/ionic/p-abe101da.system.js +0 -4
  1143. package/dist/ionic/p-add1b61c.system.entry.js +0 -4
  1144. package/dist/ionic/p-ae2e0f50.entry.js +0 -4
  1145. package/dist/ionic/p-afe932a1.system.entry.js +0 -4
  1146. package/dist/ionic/p-b2ef1bb0.entry.js +0 -4
  1147. package/dist/ionic/p-b2f788b9.system.entry.js +0 -4
  1148. package/dist/ionic/p-b50c6cd6.system.entry.js +0 -4
  1149. package/dist/ionic/p-b51e4004.js +0 -4
  1150. package/dist/ionic/p-b52ddc18.system.entry.js +0 -4
  1151. package/dist/ionic/p-b6c8f5dc.system.js +0 -4
  1152. package/dist/ionic/p-b7027235.entry.js +0 -4
  1153. package/dist/ionic/p-bb750ac0.system.js +0 -4
  1154. package/dist/ionic/p-bf9210c7.system.entry.js +0 -4
  1155. package/dist/ionic/p-c2496925.system.entry.js +0 -4
  1156. package/dist/ionic/p-c468af8a.system.js +0 -4
  1157. package/dist/ionic/p-c4dc27a0.system.entry.js +0 -4
  1158. package/dist/ionic/p-c505bde7.system.entry.js +0 -4
  1159. package/dist/ionic/p-c60e41c7.entry.js +0 -4
  1160. package/dist/ionic/p-c61cc894.js +0 -4
  1161. package/dist/ionic/p-cb37f97d.entry.js +0 -4
  1162. package/dist/ionic/p-ce32a54b.system.entry.js +0 -4
  1163. package/dist/ionic/p-cf110b0b.system.js +0 -4
  1164. package/dist/ionic/p-d09b25f9.system.entry.js +0 -4
  1165. package/dist/ionic/p-d18dc399.entry.js +0 -4
  1166. package/dist/ionic/p-d47265c8.js +0 -4
  1167. package/dist/ionic/p-d737a7d9.entry.js +0 -4
  1168. package/dist/ionic/p-d83d0d32.system.entry.js +0 -4
  1169. package/dist/ionic/p-d8d37758.entry.js +0 -4
  1170. package/dist/ionic/p-dcad1a3d.system.entry.js +0 -4
  1171. package/dist/ionic/p-dddb317f.entry.js +0 -4
  1172. package/dist/ionic/p-dfb78785.system.js +0 -4
  1173. package/dist/ionic/p-e11ef2b7.entry.js +0 -4
  1174. package/dist/ionic/p-e3c8fb01.entry.js +0 -4
  1175. package/dist/ionic/p-e3f626ea.system.entry.js +0 -4
  1176. package/dist/ionic/p-e46ba5cd.js +0 -4
  1177. package/dist/ionic/p-e4966716.entry.js +0 -4
  1178. package/dist/ionic/p-e5c69948.entry.js +0 -4
  1179. package/dist/ionic/p-e837530a.entry.js +0 -4
  1180. package/dist/ionic/p-e85e6e02.js +0 -4
  1181. package/dist/ionic/p-e8784b73.entry.js +0 -4
  1182. package/dist/ionic/p-e896891b.system.entry.js +0 -4
  1183. package/dist/ionic/p-e9bd3df9.js +0 -4
  1184. package/dist/ionic/p-ea2ee20f.entry.js +0 -4
  1185. package/dist/ionic/p-eb717568.entry.js +0 -4
  1186. package/dist/ionic/p-f2986b60.entry.js +0 -4
  1187. package/dist/ionic/p-f8a8295c.system.entry.js +0 -4
  1188. package/dist/ionic/p-fb7b7319.entry.js +0 -4
  1189. package/dist/ionic/p-ff4b7e40.system.js +0 -4
  1190. /package/dist/collection/components/{input-password-toggle/input-password-toggle.css → refresher-content/refresher-content.css} +0 -0
@@ -5,7 +5,7 @@ const NAMESPACE = 'ionic';
5
5
  const BUILD = /* ionic */ { allRenderFn: false, appendChildSlotFix: true, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: true, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, 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: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, 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: true, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: true, scopedSlotTextContentFix: true, scriptDataOpts: false, shadowDelegatesFocus: true, shadowDom: true, slot: true, slotChildNodesFix: true, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
6
6
 
7
7
  /*
8
- Stencil Client Platform v4.23.0-dev.1735628762.fb8335e | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Platform v4.20.0 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  var __defProp = Object.defineProperty;
11
11
  var __export = (target, all) => {
@@ -19,13 +19,8 @@ var Build = {
19
19
  isTesting: false
20
20
  };
21
21
  var hostRefs = /* @__PURE__ */ new WeakMap();
22
- var hostRefKeys = [];
23
22
  var getHostRef = (ref) => hostRefs.get(ref);
24
- var registerInstance = (lazyInstance, hostRef) => {
25
- hostRef.$lazyInstance$ = lazyInstance;
26
- hostRefKeys.push(lazyInstance);
27
- return hostRefs.set(lazyInstance, hostRef);
28
- };
23
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
29
24
  var registerHost = (hostElement, cmpMeta) => {
30
25
  const hostRef = {
31
26
  $flags$: 0,
@@ -41,29 +36,9 @@ var registerHost = (hostElement, cmpMeta) => {
41
36
  hostElement["s-p"] = [];
42
37
  hostElement["s-rc"] = [];
43
38
  }
44
- hostRefKeys.push(hostElement);
45
39
  return hostRefs.set(hostElement, hostRef);
46
40
  };
47
41
  var isMemberInElement = (elm, memberName) => memberName in elm;
48
- function isNodeAttached(node) {
49
- return node === document || node === document.documentElement || document.contains(node);
50
- }
51
- var hostRefCleanup = () => {
52
- const keysToRemove = [];
53
- for (const key of hostRefKeys) {
54
- if (key instanceof Node && !isNodeAttached(key)) {
55
- keysToRemove.push(key);
56
- }
57
- const elem = hostRefs.get(key);
58
- if (elem && (elem.$hostElement$ && !isNodeAttached(elem.$hostElement$) || elem.$ancestorComponent$ && !isNodeAttached(elem.$ancestorComponent$))) {
59
- keysToRemove.push(key);
60
- }
61
- }
62
- for (const key of keysToRemove) {
63
- hostRefs.delete(key);
64
- hostRefKeys.splice(hostRefKeys.indexOf(key), 1);
65
- }
66
- };
67
42
  var consoleError = (e, el) => (0, console.error)(e, el);
68
43
 
69
44
  // src/client/client-load-module.ts
@@ -102,7 +77,6 @@ var CONTENT_REF_ID = "r";
102
77
  var ORG_LOCATION_ID = "o";
103
78
  var SLOT_NODE_ID = "s";
104
79
  var TEXT_NODE_ID = "t";
105
- var COMMENT_NODE_ID = "c";
106
80
  var HYDRATE_ID = "s-id";
107
81
  var HYDRATED_STYLE_ID = "sty-id";
108
82
  var HYDRATE_CHILD_ID = "c-id";
@@ -260,6 +234,20 @@ var unwrapErr = (result) => {
260
234
  throw result.value;
261
235
  }
262
236
  };
237
+ var createTime = (fnName, tagName = "") => {
238
+ {
239
+ return () => {
240
+ return;
241
+ };
242
+ }
243
+ };
244
+ var uniqueTime = (key, measureText) => {
245
+ {
246
+ return () => {
247
+ return;
248
+ };
249
+ }
250
+ };
263
251
  var h = (nodeName, vnodeData, ...children) => {
264
252
  let child = null;
265
253
  let key = null;
@@ -371,143 +359,447 @@ var convertToPrivate = (node) => {
371
359
  vnode.$name$ = node.vname;
372
360
  return vnode;
373
361
  };
374
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
375
- if (oldValue !== newValue) {
376
- let isProp = isMemberInElement(elm, memberName);
377
- let ln = memberName.toLowerCase();
378
- if (memberName === "class") {
379
- const classList = elm.classList;
380
- const oldClasses = parseClassList(oldValue);
381
- const newClasses = parseClassList(newValue);
382
- if (elm["s-si"] && newClasses.indexOf(elm["s-si"]) < 0) {
383
- newClasses.push(elm["s-si"]);
362
+
363
+ // src/runtime/client-hydrate.ts
364
+ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
365
+ const endHydrate = createTime("hydrateClient", tagName);
366
+ const shadowRoot = hostElm.shadowRoot;
367
+ const childRenderNodes = [];
368
+ const slotNodes = [];
369
+ const shadowRootNodes = shadowRoot ? [] : null;
370
+ const vnode = hostRef.$vnode$ = newVNode(tagName, null);
371
+ if (!plt.$orgLocNodes$) {
372
+ initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
373
+ }
374
+ hostElm[HYDRATE_ID] = hostId;
375
+ hostElm.removeAttribute(HYDRATE_ID);
376
+ clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
377
+ childRenderNodes.map((c) => {
378
+ const orgLocationId = c.$hostId$ + "." + c.$nodeId$;
379
+ const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
380
+ const node = c.$elm$;
381
+ if (orgLocationNode && supportsShadow && orgLocationNode["s-en"] === "") {
382
+ orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
383
+ }
384
+ if (!shadowRoot) {
385
+ node["s-hn"] = tagName;
386
+ if (orgLocationNode) {
387
+ node["s-ol"] = orgLocationNode;
388
+ node["s-ol"]["s-nr"] = node;
384
389
  }
385
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
386
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
387
- } else if (memberName === "style") {
388
- {
389
- for (const prop in oldValue) {
390
- if (!newValue || newValue[prop] == null) {
391
- if (prop.includes("-")) {
392
- elm.style.removeProperty(prop);
393
- } else {
394
- elm.style[prop] = "";
395
- }
396
- }
397
- }
390
+ }
391
+ plt.$orgLocNodes$.delete(orgLocationId);
392
+ });
393
+ if (shadowRoot) {
394
+ shadowRootNodes.map((shadowRootNode) => {
395
+ if (shadowRootNode) {
396
+ shadowRoot.appendChild(shadowRootNode);
398
397
  }
399
- for (const prop in newValue) {
400
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
401
- if (prop.includes("-")) {
402
- elm.style.setProperty(prop, newValue[prop]);
403
- } else {
404
- elm.style[prop] = newValue[prop];
405
- }
398
+ });
399
+ }
400
+ endHydrate();
401
+ };
402
+ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId) => {
403
+ let childNodeType;
404
+ let childIdSplt;
405
+ let childVNode;
406
+ let i2;
407
+ if (node.nodeType === 1 /* ElementNode */) {
408
+ childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
409
+ if (childNodeType) {
410
+ childIdSplt = childNodeType.split(".");
411
+ if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
412
+ childVNode = {
413
+ $flags$: 0,
414
+ $hostId$: childIdSplt[0],
415
+ $nodeId$: childIdSplt[1],
416
+ $depth$: childIdSplt[2],
417
+ $index$: childIdSplt[3],
418
+ $tag$: node.tagName.toLowerCase(),
419
+ $elm$: node,
420
+ $attrs$: null,
421
+ $children$: null,
422
+ $key$: null,
423
+ $name$: null,
424
+ $text$: null
425
+ };
426
+ childRenderNodes.push(childVNode);
427
+ node.removeAttribute(HYDRATE_CHILD_ID);
428
+ if (!parentVNode.$children$) {
429
+ parentVNode.$children$ = [];
430
+ }
431
+ parentVNode.$children$[childVNode.$index$] = childVNode;
432
+ parentVNode = childVNode;
433
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
434
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
406
435
  }
407
436
  }
408
- } else if (memberName === "key") ; else if (memberName === "ref") {
409
- if (newValue) {
410
- newValue(elm);
411
- }
412
- } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
413
- if (memberName[2] === "-") {
414
- memberName = memberName.slice(3);
415
- } else if (isMemberInElement(win, ln)) {
416
- memberName = ln.slice(2);
417
- } else {
418
- memberName = ln[2] + memberName.slice(3);
437
+ }
438
+ if (node.shadowRoot) {
439
+ for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
440
+ clientHydrate(
441
+ parentVNode,
442
+ childRenderNodes,
443
+ slotNodes,
444
+ shadowRootNodes,
445
+ hostElm,
446
+ node.shadowRoot.childNodes[i2],
447
+ hostId
448
+ );
419
449
  }
420
- if (oldValue || newValue) {
421
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
422
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
423
- if (oldValue) {
424
- plt.rel(elm, memberName, oldValue, capture);
425
- }
426
- if (newValue) {
427
- plt.ael(elm, memberName, newValue, capture);
450
+ }
451
+ for (i2 = node.childNodes.length - 1; i2 >= 0; i2--) {
452
+ clientHydrate(
453
+ parentVNode,
454
+ childRenderNodes,
455
+ slotNodes,
456
+ shadowRootNodes,
457
+ hostElm,
458
+ node.childNodes[i2],
459
+ hostId
460
+ );
461
+ }
462
+ } else if (node.nodeType === 8 /* CommentNode */) {
463
+ childIdSplt = node.nodeValue.split(".");
464
+ if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
465
+ childNodeType = childIdSplt[0];
466
+ childVNode = {
467
+ $flags$: 0,
468
+ $hostId$: childIdSplt[1],
469
+ $nodeId$: childIdSplt[2],
470
+ $depth$: childIdSplt[3],
471
+ $index$: childIdSplt[4],
472
+ $elm$: node,
473
+ $attrs$: null,
474
+ $children$: null,
475
+ $key$: null,
476
+ $name$: null,
477
+ $tag$: null,
478
+ $text$: null
479
+ };
480
+ if (childNodeType === TEXT_NODE_ID) {
481
+ childVNode.$elm$ = node.nextSibling;
482
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
483
+ childVNode.$text$ = childVNode.$elm$.textContent;
484
+ childRenderNodes.push(childVNode);
485
+ node.remove();
486
+ if (!parentVNode.$children$) {
487
+ parentVNode.$children$ = [];
488
+ }
489
+ parentVNode.$children$[childVNode.$index$] = childVNode;
490
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
491
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
492
+ }
428
493
  }
429
- }
430
- } else {
431
- const isComplex = isComplexType(newValue);
432
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
433
- try {
434
- if (!elm.tagName.includes("-")) {
435
- const n = newValue == null ? "" : newValue;
436
- if (memberName === "list") {
437
- isProp = false;
438
- } else if (oldValue == null || elm[memberName] != n) {
439
- if (typeof elm.__lookupSetter__(memberName) === "function") {
440
- elm[memberName] = n;
441
- } else {
442
- elm.setAttribute(memberName, n);
443
- }
444
- }
494
+ } else if (childVNode.$hostId$ === hostId) {
495
+ if (childNodeType === SLOT_NODE_ID) {
496
+ childVNode.$tag$ = "slot";
497
+ if (childIdSplt[5]) {
498
+ node["s-sn"] = childVNode.$name$ = childIdSplt[5];
445
499
  } else {
446
- elm[memberName] = newValue;
500
+ node["s-sn"] = "";
447
501
  }
448
- } catch (e) {
449
- }
450
- }
451
- let xlink = false;
452
- {
453
- if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
454
- memberName = ln;
455
- xlink = true;
456
- }
457
- }
458
- if (newValue == null || newValue === false) {
459
- if (newValue !== false || elm.getAttribute(memberName) === "") {
460
- if (xlink) {
461
- elm.removeAttributeNS(XLINK_NS, memberName);
502
+ node["s-sr"] = true;
503
+ if (shadowRootNodes) {
504
+ childVNode.$elm$ = doc.createElement(childVNode.$tag$);
505
+ if (childVNode.$name$) {
506
+ childVNode.$elm$.setAttribute("name", childVNode.$name$);
507
+ }
508
+ node.parentNode.insertBefore(childVNode.$elm$, node);
509
+ node.remove();
510
+ if (childVNode.$depth$ === "0") {
511
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
512
+ }
513
+ }
514
+ slotNodes.push(childVNode);
515
+ if (!parentVNode.$children$) {
516
+ parentVNode.$children$ = [];
517
+ }
518
+ parentVNode.$children$[childVNode.$index$] = childVNode;
519
+ } else if (childNodeType === CONTENT_REF_ID) {
520
+ if (shadowRootNodes) {
521
+ node.remove();
462
522
  } else {
463
- elm.removeAttribute(memberName);
523
+ hostElm["s-cr"] = node;
524
+ node["s-cn"] = true;
464
525
  }
465
526
  }
466
- } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
467
- newValue = newValue === true ? "" : newValue;
468
- if (xlink) {
469
- elm.setAttributeNS(XLINK_NS, memberName, newValue);
470
- } else {
471
- elm.setAttribute(memberName, newValue);
472
- }
473
527
  }
474
528
  }
529
+ } else if (parentVNode && parentVNode.$tag$ === "style") {
530
+ const vnode = newVNode(null, node.textContent);
531
+ vnode.$elm$ = node;
532
+ vnode.$index$ = "0";
533
+ parentVNode.$children$ = [vnode];
475
534
  }
476
535
  };
477
- var parseClassListRegex = /\s/;
478
- var parseClassList = (value) => {
479
- if (typeof value === "object" && "baseVal" in value) {
480
- value = value.baseVal;
481
- }
482
- if (!value) {
483
- return [];
484
- }
485
- return value.split(parseClassListRegex);
486
- };
487
- var CAPTURE_EVENT_SUFFIX = "Capture";
488
- var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
489
-
490
- // src/runtime/vdom/update-element.ts
491
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
492
- const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
493
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
494
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
495
- {
496
- for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
497
- if (!(memberName in newVnodeAttrs)) {
498
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
536
+ var initializeDocumentHydrate = (node, orgLocNodes) => {
537
+ if (node.nodeType === 1 /* ElementNode */) {
538
+ let i2 = 0;
539
+ if (node.shadowRoot) {
540
+ for (; i2 < node.shadowRoot.childNodes.length; i2++) {
541
+ initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
499
542
  }
500
543
  }
501
- }
502
- for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
503
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
544
+ for (i2 = 0; i2 < node.childNodes.length; i2++) {
545
+ initializeDocumentHydrate(node.childNodes[i2], orgLocNodes);
546
+ }
547
+ } else if (node.nodeType === 8 /* CommentNode */) {
548
+ const childIdSplt = node.nodeValue.split(".");
549
+ if (childIdSplt[0] === ORG_LOCATION_ID) {
550
+ orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
551
+ node.nodeValue = "";
552
+ node["s-en"] = childIdSplt[3];
553
+ }
504
554
  }
505
555
  };
506
- function sortedAttrNames(attrNames) {
507
- return attrNames.includes("ref") ? (
508
- // we need to sort these to ensure that `'ref'` is the last attr
509
- [...attrNames.filter((attr) => attr !== "ref"), "ref"]
510
- ) : (
556
+
557
+ // src/runtime/mode.ts
558
+ var computeMode = (elm) => modeResolutionChain.map((h2) => h2(elm)).find((m) => !!m);
559
+ var setMode = (handler) => modeResolutionChain.push(handler);
560
+ var getMode = (ref) => getHostRef(ref).$modeName$;
561
+ var parsePropertyValue = (propValue, propType) => {
562
+ if (propValue != null && !isComplexType(propValue)) {
563
+ if (propType & 4 /* Boolean */) {
564
+ return propValue === "false" ? false : propValue === "" || !!propValue;
565
+ }
566
+ if (propType & 2 /* Number */) {
567
+ return parseFloat(propValue);
568
+ }
569
+ if (propType & 1 /* String */) {
570
+ return String(propValue);
571
+ }
572
+ return propValue;
573
+ }
574
+ return propValue;
575
+ };
576
+ var getElement = (ref) => getHostRef(ref).$hostElement$ ;
577
+
578
+ // src/runtime/event-emitter.ts
579
+ var createEvent = (ref, name, flags) => {
580
+ const elm = getElement(ref);
581
+ return {
582
+ emit: (detail) => {
583
+ return emitEvent(elm, name, {
584
+ bubbles: !!(flags & 4 /* Bubbles */),
585
+ composed: !!(flags & 2 /* Composed */),
586
+ cancelable: !!(flags & 1 /* Cancellable */),
587
+ detail
588
+ });
589
+ }
590
+ };
591
+ };
592
+ var emitEvent = (elm, name, opts) => {
593
+ const ev = plt.ce(name, opts);
594
+ elm.dispatchEvent(ev);
595
+ return ev;
596
+ };
597
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
598
+ var registerStyle = (scopeId2, cssText, allowCS) => {
599
+ let style = styles.get(scopeId2);
600
+ if (supportsConstructableStylesheets && allowCS) {
601
+ style = style || new CSSStyleSheet();
602
+ if (typeof style === "string") {
603
+ style = cssText;
604
+ } else {
605
+ style.replaceSync(cssText);
606
+ }
607
+ } else {
608
+ style = cssText;
609
+ }
610
+ styles.set(scopeId2, style);
611
+ };
612
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
613
+ var _a;
614
+ const scopeId2 = getScopeId(cmpMeta, mode);
615
+ const style = styles.get(scopeId2);
616
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
617
+ if (style) {
618
+ if (typeof style === "string") {
619
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
620
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
621
+ let styleElm;
622
+ if (!appliedStyles) {
623
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
624
+ }
625
+ if (!appliedStyles.has(scopeId2)) {
626
+ if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
627
+ styleElm.innerHTML = style;
628
+ } else {
629
+ styleElm = doc.createElement("style");
630
+ styleElm.innerHTML = style;
631
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
632
+ if (nonce != null) {
633
+ styleElm.setAttribute("nonce", nonce);
634
+ }
635
+ const injectStyle = (
636
+ /**
637
+ * we render a scoped component
638
+ */
639
+ !(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) || /**
640
+ * we are using shadow dom and render the style tag within the shadowRoot
641
+ */
642
+ cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD"
643
+ );
644
+ if (injectStyle) {
645
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
646
+ }
647
+ }
648
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
649
+ styleElm.innerHTML += SLOT_FB_CSS;
650
+ }
651
+ if (appliedStyles) {
652
+ appliedStyles.add(scopeId2);
653
+ }
654
+ }
655
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
656
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
657
+ }
658
+ }
659
+ return scopeId2;
660
+ };
661
+ var attachStyles = (hostRef) => {
662
+ const cmpMeta = hostRef.$cmpMeta$;
663
+ const elm = hostRef.$hostElement$;
664
+ const flags = cmpMeta.$flags$;
665
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
666
+ const scopeId2 = addStyle(
667
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
668
+ cmpMeta,
669
+ hostRef.$modeName$
670
+ );
671
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
672
+ elm["s-sc"] = scopeId2;
673
+ elm.classList.add(scopeId2 + "-h");
674
+ if (flags & 2 /* scopedCssEncapsulation */) {
675
+ elm.classList.add(scopeId2 + "-s");
676
+ }
677
+ }
678
+ endAttachStyles();
679
+ };
680
+ var getScopeId = (cmp, mode) => "sc-" + (mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
681
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
682
+ if (oldValue !== newValue) {
683
+ let isProp = isMemberInElement(elm, memberName);
684
+ let ln = memberName.toLowerCase();
685
+ if (memberName === "class") {
686
+ const classList = elm.classList;
687
+ const oldClasses = parseClassList(oldValue);
688
+ const newClasses = parseClassList(newValue);
689
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
690
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
691
+ } else if (memberName === "style") {
692
+ {
693
+ for (const prop in oldValue) {
694
+ if (!newValue || newValue[prop] == null) {
695
+ if (prop.includes("-")) {
696
+ elm.style.removeProperty(prop);
697
+ } else {
698
+ elm.style[prop] = "";
699
+ }
700
+ }
701
+ }
702
+ }
703
+ for (const prop in newValue) {
704
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
705
+ if (prop.includes("-")) {
706
+ elm.style.setProperty(prop, newValue[prop]);
707
+ } else {
708
+ elm.style[prop] = newValue[prop];
709
+ }
710
+ }
711
+ }
712
+ } else if (memberName === "key") ; else if (memberName === "ref") {
713
+ if (newValue) {
714
+ newValue(elm);
715
+ }
716
+ } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
717
+ if (memberName[2] === "-") {
718
+ memberName = memberName.slice(3);
719
+ } else if (isMemberInElement(win, ln)) {
720
+ memberName = ln.slice(2);
721
+ } else {
722
+ memberName = ln[2] + memberName.slice(3);
723
+ }
724
+ if (oldValue || newValue) {
725
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
726
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
727
+ if (oldValue) {
728
+ plt.rel(elm, memberName, oldValue, capture);
729
+ }
730
+ if (newValue) {
731
+ plt.ael(elm, memberName, newValue, capture);
732
+ }
733
+ }
734
+ } else {
735
+ const isComplex = isComplexType(newValue);
736
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
737
+ try {
738
+ if (!elm.tagName.includes("-")) {
739
+ const n = newValue == null ? "" : newValue;
740
+ if (memberName === "list") {
741
+ isProp = false;
742
+ } else if (oldValue == null || elm[memberName] != n) {
743
+ elm[memberName] = n;
744
+ }
745
+ } else {
746
+ elm[memberName] = newValue;
747
+ }
748
+ } catch (e) {
749
+ }
750
+ }
751
+ let xlink = false;
752
+ {
753
+ if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
754
+ memberName = ln;
755
+ xlink = true;
756
+ }
757
+ }
758
+ if (newValue == null || newValue === false) {
759
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
760
+ if (xlink) {
761
+ elm.removeAttributeNS(XLINK_NS, memberName);
762
+ } else {
763
+ elm.removeAttribute(memberName);
764
+ }
765
+ }
766
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
767
+ newValue = newValue === true ? "" : newValue;
768
+ if (xlink) {
769
+ elm.setAttributeNS(XLINK_NS, memberName, newValue);
770
+ } else {
771
+ elm.setAttribute(memberName, newValue);
772
+ }
773
+ }
774
+ }
775
+ }
776
+ };
777
+ var parseClassListRegex = /\s/;
778
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
779
+ var CAPTURE_EVENT_SUFFIX = "Capture";
780
+ var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
781
+
782
+ // src/runtime/vdom/update-element.ts
783
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
784
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
785
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
786
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
787
+ {
788
+ for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
789
+ if (!(memberName in newVnodeAttrs)) {
790
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
791
+ }
792
+ }
793
+ }
794
+ for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
795
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
796
+ }
797
+ };
798
+ function sortedAttrNames(attrNames) {
799
+ return attrNames.includes("ref") ? (
800
+ // we need to sort these to ensure that `'ref'` is the last attr
801
+ [...attrNames.filter((attr) => attr !== "ref"), "ref"]
802
+ ) : (
511
803
  // no need to sort, return the original array
512
804
  attrNames
513
805
  );
@@ -609,12 +901,8 @@ var relocateToHostRoot = (parentElm) => {
609
901
  plt.$flags$ |= 1 /* isTmpDisconnected */;
610
902
  const host = parentElm.closest(hostTagName.toLowerCase());
611
903
  if (host != null) {
612
- const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
613
- (ref) => ref["s-cr"]
614
- );
615
- const childNodeArray = Array.from(
616
- parentElm.__childNodes || parentElm.childNodes
617
- );
904
+ const contentRefNode = Array.from(host.childNodes).find((ref) => ref["s-cr"]);
905
+ const childNodeArray = Array.from(parentElm.childNodes);
618
906
  for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
619
907
  if (childNode["s-sh"] != null) {
620
908
  insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
@@ -627,7 +915,7 @@ var relocateToHostRoot = (parentElm) => {
627
915
  };
628
916
  var putBackInOriginalLocation = (parentElm, recursive) => {
629
917
  plt.$flags$ |= 1 /* isTmpDisconnected */;
630
- const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
918
+ const oldSlotChildNodes = Array.from(parentElm.childNodes);
631
919
  if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
632
920
  let node = parentElm;
633
921
  while (node = node.nextSibling) {
@@ -846,7 +1134,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
846
1134
  }
847
1135
  };
848
1136
  var updateFallbackSlotVisibility = (elm) => {
849
- const childNodes = elm.__childNodes || elm.childNodes;
1137
+ const childNodes = elm.childNodes;
850
1138
  for (const childNode of childNodes) {
851
1139
  if (childNode.nodeType === 1 /* ElementNode */) {
852
1140
  if (childNode["s-sr"]) {
@@ -859,7 +1147,7 @@ var updateFallbackSlotVisibility = (elm) => {
859
1147
  childNode.hidden = true;
860
1148
  break;
861
1149
  }
862
- } else if (slotName === siblingNode["s-sn"]) {
1150
+ } else {
863
1151
  if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
864
1152
  childNode.hidden = true;
865
1153
  break;
@@ -877,10 +1165,9 @@ var markSlotContentForRelocation = (elm) => {
877
1165
  let node;
878
1166
  let hostContentNodes;
879
1167
  let j;
880
- const children = elm.__childNodes || elm.childNodes;
881
- for (const childNode of children) {
1168
+ for (const childNode of elm.childNodes) {
882
1169
  if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
883
- hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
1170
+ hostContentNodes = node.parentNode.childNodes;
884
1171
  const slotName = childNode["s-sn"];
885
1172
  for (j = hostContentNodes.length - 1; j >= 0; j--) {
886
1173
  node = hostContentNodes[j];
@@ -967,9 +1254,9 @@ var updateElementScopeIds = (element, parent, iterateChildNodes = false) => {
967
1254
  if (element && parent && element.nodeType === 1 /* ElementNode */) {
968
1255
  const scopeIds = new Set(findScopeIds(parent).filter(Boolean));
969
1256
  if (scopeIds.size) {
970
- (_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = Array.from(scopeIds));
1257
+ (_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = [...scopeIds]);
971
1258
  if (element["s-ol"] || iterateChildNodes) {
972
- for (const childNode of Array.from(element.__childNodes || element.childNodes)) {
1259
+ for (const childNode of Array.from(element.childNodes)) {
973
1260
  updateElementScopeIds(childNode, element, true);
974
1261
  }
975
1262
  }
@@ -1055,909 +1342,32 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1055
1342
  nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](nodeToRelocate);
1056
1343
  } else {
1057
1344
  if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1058
- if (isInitialLoad) {
1059
- nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
1060
- }
1061
- nodeToRelocate.hidden = true;
1062
- }
1063
- }
1064
- }
1065
- }
1066
- if (checkSlotFallbackVisibility) {
1067
- updateFallbackSlotVisibility(rootVnode.$elm$);
1068
- }
1069
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
1070
- relocateNodes.length = 0;
1071
- }
1072
- if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
1073
- const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
1074
- for (const childNode of children) {
1075
- if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
1076
- if (isInitialLoad && childNode["s-ih"] == null) {
1077
- childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
1078
- }
1079
- childNode.hidden = true;
1080
- }
1081
- }
1082
- }
1083
- contentRef = void 0;
1084
- };
1085
-
1086
- // src/runtime/dom-extras.ts
1087
- var patchPseudoShadowDom = (hostElementPrototype) => {
1088
- patchCloneNode(hostElementPrototype);
1089
- patchSlotAppendChild(hostElementPrototype);
1090
- patchSlotAppend(hostElementPrototype);
1091
- patchSlotPrepend(hostElementPrototype);
1092
- patchSlotInsertAdjacentElement(hostElementPrototype);
1093
- patchSlotInsertAdjacentHTML(hostElementPrototype);
1094
- patchSlotInsertAdjacentText(hostElementPrototype);
1095
- patchTextContent(hostElementPrototype);
1096
- patchChildSlotNodes(hostElementPrototype);
1097
- patchSlotRemoveChild(hostElementPrototype);
1098
- };
1099
- var patchCloneNode = (HostElementPrototype) => {
1100
- const orgCloneNode = HostElementPrototype.cloneNode;
1101
- HostElementPrototype.cloneNode = function(deep) {
1102
- const srcNode = this;
1103
- const isShadowDom = srcNode.shadowRoot && supportsShadow ;
1104
- const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
1105
- if (!isShadowDom && deep) {
1106
- let i2 = 0;
1107
- let slotted, nonStencilNode;
1108
- const stencilPrivates = [
1109
- "s-id",
1110
- "s-cr",
1111
- "s-lr",
1112
- "s-rc",
1113
- "s-sc",
1114
- "s-p",
1115
- "s-cn",
1116
- "s-sr",
1117
- "s-sn",
1118
- "s-hn",
1119
- "s-ol",
1120
- "s-nr",
1121
- "s-si",
1122
- "s-rf",
1123
- "s-scs"
1124
- ];
1125
- const childNodes = this.__childNodes || this.childNodes;
1126
- for (; i2 < childNodes.length; i2++) {
1127
- slotted = childNodes[i2]["s-nr"];
1128
- nonStencilNode = stencilPrivates.every((privateField) => !childNodes[i2][privateField]);
1129
- if (slotted) {
1130
- if (clonedNode.__appendChild) {
1131
- clonedNode.__appendChild(slotted.cloneNode(true));
1132
- } else {
1133
- clonedNode.appendChild(slotted.cloneNode(true));
1134
- }
1135
- }
1136
- if (nonStencilNode) {
1137
- clonedNode.appendChild(childNodes[i2].cloneNode(true));
1138
- }
1139
- }
1140
- }
1141
- return clonedNode;
1142
- };
1143
- };
1144
- var patchSlotAppendChild = (HostElementPrototype) => {
1145
- HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
1146
- HostElementPrototype.appendChild = function(newChild) {
1147
- const slotName = newChild["s-sn"] = getSlotName(newChild);
1148
- const slotNode = getHostSlotNode(this.__childNodes || this.childNodes, slotName, this.tagName);
1149
- if (slotNode) {
1150
- addSlotRelocateNode(newChild, slotNode);
1151
- const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
1152
- const appendAfter = slotChildNodes[slotChildNodes.length - 1];
1153
- const insertedNode = insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
1154
- updateFallbackSlotVisibility(this);
1155
- return insertedNode;
1156
- }
1157
- return this.__appendChild(newChild);
1158
- };
1159
- };
1160
- var patchSlotRemoveChild = (ElementPrototype) => {
1161
- ElementPrototype.__removeChild = ElementPrototype.removeChild;
1162
- ElementPrototype.removeChild = function(toRemove) {
1163
- if (toRemove && typeof toRemove["s-sn"] !== "undefined") {
1164
- const childNodes = this.__childNodes || this.childNodes;
1165
- const slotNode = getHostSlotNode(childNodes, toRemove["s-sn"], this.tagName);
1166
- if (slotNode && toRemove.isConnected) {
1167
- toRemove.remove();
1168
- updateFallbackSlotVisibility(this);
1169
- return;
1170
- }
1171
- }
1172
- return this.__removeChild(toRemove);
1173
- };
1174
- };
1175
- var patchSlotPrepend = (HostElementPrototype) => {
1176
- HostElementPrototype.__prepend = HostElementPrototype.prepend;
1177
- HostElementPrototype.prepend = function(...newChildren) {
1178
- newChildren.forEach((newChild) => {
1179
- if (typeof newChild === "string") {
1180
- newChild = this.ownerDocument.createTextNode(newChild);
1181
- }
1182
- const slotName = newChild["s-sn"] = getSlotName(newChild);
1183
- const childNodes = this.__childNodes || this.childNodes;
1184
- const slotNode = getHostSlotNode(childNodes, slotName, this.tagName);
1185
- if (slotNode) {
1186
- addSlotRelocateNode(newChild, slotNode, true);
1187
- const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
1188
- const appendAfter = slotChildNodes[0];
1189
- return insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
1190
- }
1191
- if (newChild.nodeType === 1 && !!newChild.getAttribute("slot")) {
1192
- newChild.hidden = true;
1193
- }
1194
- return HostElementPrototype.__prepend(newChild);
1195
- });
1196
- };
1197
- };
1198
- var patchSlotAppend = (HostElementPrototype) => {
1199
- HostElementPrototype.__append = HostElementPrototype.append;
1200
- HostElementPrototype.append = function(...newChildren) {
1201
- newChildren.forEach((newChild) => {
1202
- if (typeof newChild === "string") {
1203
- newChild = this.ownerDocument.createTextNode(newChild);
1204
- }
1205
- this.appendChild(newChild);
1206
- });
1207
- };
1208
- };
1209
- var patchSlotInsertAdjacentHTML = (HostElementPrototype) => {
1210
- const originalInsertAdjacentHtml = HostElementPrototype.insertAdjacentHTML;
1211
- HostElementPrototype.insertAdjacentHTML = function(position, text) {
1212
- if (position !== "afterbegin" && position !== "beforeend") {
1213
- return originalInsertAdjacentHtml.call(this, position, text);
1214
- }
1215
- const container = this.ownerDocument.createElement("_");
1216
- let node;
1217
- container.innerHTML = text;
1218
- if (position === "afterbegin") {
1219
- while (node = container.firstChild) {
1220
- this.prepend(node);
1221
- }
1222
- } else if (position === "beforeend") {
1223
- while (node = container.firstChild) {
1224
- this.append(node);
1225
- }
1226
- }
1227
- };
1228
- };
1229
- var patchSlotInsertAdjacentText = (HostElementPrototype) => {
1230
- HostElementPrototype.insertAdjacentText = function(position, text) {
1231
- this.insertAdjacentHTML(position, text);
1232
- };
1233
- };
1234
- var patchSlotInsertAdjacentElement = (HostElementPrototype) => {
1235
- const originalInsertAdjacentElement = HostElementPrototype.insertAdjacentElement;
1236
- HostElementPrototype.insertAdjacentElement = function(position, element) {
1237
- if (position !== "afterbegin" && position !== "beforeend") {
1238
- return originalInsertAdjacentElement.call(this, position, element);
1239
- }
1240
- if (position === "afterbegin") {
1241
- this.prepend(element);
1242
- return element;
1243
- } else if (position === "beforeend") {
1244
- this.append(element);
1245
- return element;
1246
- }
1247
- return element;
1248
- };
1249
- };
1250
- var patchTextContent = (hostElementPrototype) => {
1251
- patchHostOriginalAccessor("textContent", hostElementPrototype);
1252
- Object.defineProperty(hostElementPrototype, "textContent", {
1253
- get: function() {
1254
- let text = "";
1255
- const childNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);
1256
- childNodes.forEach((node) => text += node.textContent || "");
1257
- return text;
1258
- },
1259
- set: function(value) {
1260
- const childNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);
1261
- childNodes.forEach((node) => {
1262
- if (node["s-ol"]) node["s-ol"].remove();
1263
- node.remove();
1264
- });
1265
- this.insertAdjacentHTML("beforeend", value);
1266
- }
1267
- });
1268
- };
1269
- var patchChildSlotNodes = (elm) => {
1270
- class FakeNodeList extends Array {
1271
- item(n) {
1272
- return this[n];
1273
- }
1274
- }
1275
- patchHostOriginalAccessor("children", elm);
1276
- Object.defineProperty(elm, "children", {
1277
- get() {
1278
- return this.childNodes.filter((n) => n.nodeType === 1);
1279
- }
1280
- });
1281
- Object.defineProperty(elm, "childElementCount", {
1282
- get() {
1283
- return this.children.length;
1284
- }
1285
- });
1286
- patchHostOriginalAccessor("firstChild", elm);
1287
- Object.defineProperty(elm, "firstChild", {
1288
- get() {
1289
- return this.childNodes[0];
1290
- }
1291
- });
1292
- patchHostOriginalAccessor("lastChild", elm);
1293
- Object.defineProperty(elm, "lastChild", {
1294
- get() {
1295
- return this.childNodes[this.childNodes.length - 1];
1296
- }
1297
- });
1298
- patchHostOriginalAccessor("childNodes", elm);
1299
- Object.defineProperty(elm, "childNodes", {
1300
- get() {
1301
- var _a, _b;
1302
- if (!plt.$flags$ || !((_a = getHostRef(this)) == null ? void 0 : _a.$flags$) || (plt.$flags$ & 1 /* isTmpDisconnected */) === 0 && ((_b = getHostRef(this)) == null ? void 0 : _b.$flags$) & 2 /* hasRendered */) {
1303
- const result = new FakeNodeList();
1304
- const nodes = getSlottedChildNodes(this.__childNodes);
1305
- result.push(...nodes);
1306
- return result;
1307
- }
1308
- return FakeNodeList.from(this.__childNodes);
1309
- }
1310
- });
1311
- };
1312
- var patchNextPrev = (node) => {
1313
- if (!node || node.__nextSibling || !globalThis.Node) return;
1314
- patchNextSibling(node);
1315
- patchPreviousSibling(node);
1316
- if (node.nodeType === Node.ELEMENT_NODE) {
1317
- patchNextElementSibling(node);
1318
- patchPreviousElementSibling(node);
1319
- }
1320
- };
1321
- var patchNextSibling = (node) => {
1322
- if (!node || node.__nextSibling) return;
1323
- patchHostOriginalAccessor("nextSibling", node);
1324
- Object.defineProperty(node, "nextSibling", {
1325
- get: function() {
1326
- var _a;
1327
- const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.childNodes;
1328
- const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
1329
- if (parentNodes && index > -1) {
1330
- return parentNodes[index + 1];
1331
- }
1332
- return this.__nextSibling;
1333
- }
1334
- });
1335
- };
1336
- var patchNextElementSibling = (element) => {
1337
- if (!element || element.__nextElementSibling) return;
1338
- patchHostOriginalAccessor("nextElementSibling", element);
1339
- Object.defineProperty(element, "nextElementSibling", {
1340
- get: function() {
1341
- var _a;
1342
- const parentEles = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.children;
1343
- const index = parentEles == null ? void 0 : parentEles.indexOf(this);
1344
- if (parentEles && index > -1) {
1345
- return parentEles[index + 1];
1346
- }
1347
- return this.__nextElementSibling;
1348
- }
1349
- });
1350
- };
1351
- var patchPreviousSibling = (node) => {
1352
- if (!node || node.__previousSibling) return;
1353
- patchHostOriginalAccessor("previousSibling", node);
1354
- Object.defineProperty(node, "previousSibling", {
1355
- get: function() {
1356
- var _a;
1357
- const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.childNodes;
1358
- const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
1359
- if (parentNodes && index > -1) {
1360
- return parentNodes[index - 1];
1361
- }
1362
- return this.__previousSibling;
1363
- }
1364
- });
1365
- };
1366
- var patchPreviousElementSibling = (element) => {
1367
- if (!element || element.__previousElementSibling) return;
1368
- patchHostOriginalAccessor("previousElementSibling", element);
1369
- Object.defineProperty(element, "previousElementSibling", {
1370
- get: function() {
1371
- var _a;
1372
- const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.children;
1373
- const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
1374
- if (parentNodes && index > -1) {
1375
- return parentNodes[index - 1];
1376
- }
1377
- return this.__previousElementSibling;
1378
- }
1379
- });
1380
- };
1381
- var validElementPatches = ["children", "nextElementSibling", "previousElementSibling"];
1382
- var validNodesPatches = [
1383
- "childNodes",
1384
- "firstChild",
1385
- "lastChild",
1386
- "nextSibling",
1387
- "previousSibling",
1388
- "textContent"
1389
- ];
1390
- function patchHostOriginalAccessor(accessorName, node) {
1391
- let accessor;
1392
- if (validElementPatches.includes(accessorName)) {
1393
- accessor = Object.getOwnPropertyDescriptor(Element.prototype, accessorName);
1394
- } else if (validNodesPatches.includes(accessorName)) {
1395
- accessor = Object.getOwnPropertyDescriptor(Node.prototype, accessorName);
1396
- }
1397
- if (!accessor) {
1398
- accessor = Object.getOwnPropertyDescriptor(node, accessorName);
1399
- }
1400
- if (accessor) Object.defineProperty(node, "__" + accessorName, accessor);
1401
- }
1402
- var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
1403
- let slottedNodeLocation;
1404
- if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
1405
- slottedNodeLocation = newChild["s-ol"];
1406
- } else {
1407
- slottedNodeLocation = document.createTextNode("");
1408
- slottedNodeLocation["s-nr"] = newChild;
1409
- }
1410
- if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
1411
- const parent = slotNode["s-cr"].parentNode;
1412
- const appendMethod = prepend ? parent.__prepend || parent.prepend : parent.__appendChild || parent.appendChild;
1413
- if (typeof position !== "undefined") {
1414
- {
1415
- slottedNodeLocation["s-oo"] = position;
1416
- const childNodes = parent.__childNodes || parent.childNodes;
1417
- const slotRelocateNodes = [slottedNodeLocation];
1418
- childNodes.forEach((n) => {
1419
- if (n["s-nr"]) slotRelocateNodes.push(n);
1420
- });
1421
- slotRelocateNodes.sort((a, b) => {
1422
- if (!a["s-oo"] || a["s-oo"] < b["s-oo"]) return -1;
1423
- else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
1424
- return 0;
1425
- });
1426
- slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
1427
- }
1428
- } else {
1429
- appendMethod.call(parent, slottedNodeLocation);
1430
- }
1431
- newChild["s-ol"] = slottedNodeLocation;
1432
- newChild["s-sh"] = slotNode["s-hn"];
1433
- };
1434
- var getSlottedChildNodes = (childNodes) => {
1435
- const result = [];
1436
- for (let i2 = 0; i2 < childNodes.length; i2++) {
1437
- const slottedNode = childNodes[i2]["s-nr"];
1438
- if (slottedNode && slottedNode.isConnected) {
1439
- result.push(slottedNode);
1440
- }
1441
- }
1442
- return result;
1443
- };
1444
- var getSlotName = (node) => node["s-sn"] || node.nodeType === 1 && node.getAttribute("slot") || "";
1445
- var getHostSlotNode = (childNodes, slotName, hostName) => {
1446
- let i2 = 0;
1447
- let childNode;
1448
- for (; i2 < childNodes.length; i2++) {
1449
- childNode = childNodes[i2];
1450
- if (childNode["s-sr"] && childNode["s-sn"] === slotName && childNode["s-hn"] === hostName) {
1451
- return childNode;
1452
- }
1453
- childNode = getHostSlotNode(childNode.childNodes, slotName, hostName);
1454
- if (childNode) {
1455
- return childNode;
1456
- }
1457
- }
1458
- return null;
1459
- };
1460
- var getHostSlotChildNodes = (n, slotName) => {
1461
- const childNodes = [n];
1462
- while ((n = n.nextSibling) && n["s-sn"] === slotName) {
1463
- childNodes.push(n);
1464
- }
1465
- return childNodes;
1466
- };
1467
- var createTime = (fnName, tagName = "") => {
1468
- {
1469
- return () => {
1470
- return;
1471
- };
1472
- }
1473
- };
1474
- var uniqueTime = (key, measureText) => {
1475
- {
1476
- return () => {
1477
- return;
1478
- };
1479
- }
1480
- };
1481
-
1482
- // src/runtime/client-hydrate.ts
1483
- var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
1484
- const endHydrate = createTime("hydrateClient", tagName);
1485
- const shadowRoot = hostElm.shadowRoot;
1486
- const childRenderNodes = [];
1487
- const slotNodes = [];
1488
- const slottedNodes = [];
1489
- const shadowRootNodes = shadowRoot ? [] : null;
1490
- const vnode = newVNode(tagName, null);
1491
- vnode.$elm$ = hostElm;
1492
- if (!plt.$orgLocNodes$) {
1493
- initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
1494
- }
1495
- hostElm[HYDRATE_ID] = hostId;
1496
- hostElm.removeAttribute(HYDRATE_ID);
1497
- hostRef.$vnode$ = clientHydrate(
1498
- vnode,
1499
- childRenderNodes,
1500
- slotNodes,
1501
- shadowRootNodes,
1502
- hostElm,
1503
- hostElm,
1504
- hostId,
1505
- slottedNodes
1506
- );
1507
- let crIndex = 0;
1508
- const crLength = childRenderNodes.length;
1509
- let childRenderNode;
1510
- for (crIndex; crIndex < crLength; crIndex++) {
1511
- childRenderNode = childRenderNodes[crIndex];
1512
- const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
1513
- const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
1514
- const node = childRenderNode.$elm$;
1515
- if (!shadowRoot) {
1516
- node["s-hn"] = tagName.toUpperCase();
1517
- if (childRenderNode.$tag$ === "slot") {
1518
- node["s-cr"] = hostElm["s-cr"];
1519
- }
1520
- }
1521
- if (orgLocationNode && orgLocationNode.isConnected) {
1522
- if (shadowRoot && orgLocationNode["s-en"] === "") {
1523
- orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
1524
- }
1525
- orgLocationNode.parentNode.removeChild(orgLocationNode);
1526
- if (!shadowRoot) {
1527
- node["s-oo"] = parseInt(childRenderNode.$nodeId$);
1528
- }
1529
- }
1530
- plt.$orgLocNodes$.delete(orgLocationId);
1531
- }
1532
- const hosts = [];
1533
- let snIndex = 0;
1534
- const snLen = slottedNodes.length;
1535
- let slotGroup;
1536
- let snGroupIdx;
1537
- let snGroupLen;
1538
- let slottedItem;
1539
- for (snIndex; snIndex < snLen; snIndex++) {
1540
- slotGroup = slottedNodes[snIndex];
1541
- if (!slotGroup || !slotGroup.length) continue;
1542
- snGroupLen = slotGroup.length;
1543
- snGroupIdx = 0;
1544
- for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
1545
- slottedItem = slotGroup[snGroupIdx];
1546
- if (!hosts[slottedItem.hostId]) {
1547
- hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
1548
- }
1549
- if (!hosts[slottedItem.hostId]) continue;
1550
- const hostEle = hosts[slottedItem.hostId];
1551
- if (!hostEle.shadowRoot || !shadowRoot) {
1552
- slottedItem.slot["s-cr"] = hostEle["s-cr"];
1553
- if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
1554
- slottedItem.slot["s-cr"] = hostEle;
1555
- } else {
1556
- const hostChildren = hostEle.__childNodes || hostEle.childNodes;
1557
- slottedItem.slot["s-cr"] = hostChildren[0];
1558
- }
1559
- addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
1560
- {
1561
- patchNextPrev(slottedItem.node);
1562
- }
1563
- }
1564
- if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
1565
- hostEle.appendChild(slottedItem.node);
1566
- }
1567
- }
1568
- }
1569
- if (shadowRoot) {
1570
- let rnIdex = 0;
1571
- const rnLen = shadowRootNodes.length;
1572
- for (rnIdex; rnIdex < rnLen; rnIdex++) {
1573
- shadowRoot.appendChild(shadowRootNodes[rnIdex]);
1574
- }
1575
- Array.from(hostElm.childNodes).forEach((node) => {
1576
- if (node.nodeType === 8 /* CommentNode */ && typeof node["s-sn"] !== "string") {
1577
- node.parentNode.removeChild(node);
1578
- }
1579
- });
1580
- }
1581
- hostRef.$hostElement$ = hostElm;
1582
- endHydrate();
1583
- };
1584
- var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
1585
- let childNodeType;
1586
- let childIdSplt;
1587
- let childVNode;
1588
- let i2;
1589
- const scopeId2 = hostElm["s-sc"];
1590
- if (node.nodeType === 1 /* ElementNode */) {
1591
- childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
1592
- if (childNodeType) {
1593
- childIdSplt = childNodeType.split(".");
1594
- if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
1595
- childVNode = createSimpleVNode({
1596
- $flags$: 0,
1597
- $hostId$: childIdSplt[0],
1598
- $nodeId$: childIdSplt[1],
1599
- $depth$: childIdSplt[2],
1600
- $index$: childIdSplt[3],
1601
- $tag$: node.tagName.toLowerCase(),
1602
- $elm$: node,
1603
- // If we don't add the initial classes to the VNode, the first `vdom-render.ts` reconciliation will fail:
1604
- // client side changes before componentDidLoad will be ignored, `set-accessor.ts` will just take the element's initial classes
1605
- $attrs$: { class: node.className }
1606
- });
1607
- childRenderNodes.push(childVNode);
1608
- node.removeAttribute(HYDRATE_CHILD_ID);
1609
- if (!parentVNode.$children$) {
1610
- parentVNode.$children$ = [];
1611
- }
1612
- const slotName = childVNode.$elm$.getAttribute("s-sn");
1613
- if (typeof slotName === "string") {
1614
- if (childVNode.$tag$ === "slot-fb") {
1615
- addSlot(
1616
- slotName,
1617
- childIdSplt[2],
1618
- childVNode,
1619
- node,
1620
- parentVNode,
1621
- childRenderNodes,
1622
- slotNodes,
1623
- shadowRootNodes,
1624
- slottedNodes
1625
- );
1626
- }
1627
- childVNode.$elm$["s-sn"] = slotName;
1628
- childVNode.$elm$.removeAttribute("s-sn");
1629
- }
1630
- if (childVNode.$index$ !== void 0) {
1631
- parentVNode.$children$[childVNode.$index$] = childVNode;
1632
- }
1633
- if (scopeId2) node["s-si"] = scopeId2;
1634
- parentVNode = childVNode;
1635
- if (shadowRootNodes && childVNode.$depth$ === "0") {
1636
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1637
- }
1638
- }
1639
- }
1640
- if (node.shadowRoot) {
1641
- for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
1642
- clientHydrate(
1643
- parentVNode,
1644
- childRenderNodes,
1645
- slotNodes,
1646
- shadowRootNodes,
1647
- hostElm,
1648
- node.shadowRoot.childNodes[i2],
1649
- hostId,
1650
- slottedNodes
1651
- );
1652
- }
1653
- }
1654
- const nonShadowNodes = node.__childNodes || node.childNodes;
1655
- for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
1656
- clientHydrate(
1657
- parentVNode,
1658
- childRenderNodes,
1659
- slotNodes,
1660
- shadowRootNodes,
1661
- hostElm,
1662
- nonShadowNodes[i2],
1663
- hostId,
1664
- slottedNodes
1665
- );
1666
- }
1667
- } else if (node.nodeType === 8 /* CommentNode */) {
1668
- childIdSplt = node.nodeValue.split(".");
1669
- if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
1670
- childNodeType = childIdSplt[0];
1671
- childVNode = createSimpleVNode({
1672
- $hostId$: childIdSplt[1],
1673
- $nodeId$: childIdSplt[2],
1674
- $depth$: childIdSplt[3],
1675
- $index$: childIdSplt[4] || "0",
1676
- $elm$: node,
1677
- $attrs$: null,
1678
- $children$: null,
1679
- $key$: null,
1680
- $name$: null,
1681
- $tag$: null,
1682
- $text$: null
1683
- });
1684
- if (childNodeType === TEXT_NODE_ID) {
1685
- childVNode.$elm$ = node.nextSibling;
1686
- if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
1687
- childVNode.$text$ = childVNode.$elm$.textContent;
1688
- childRenderNodes.push(childVNode);
1689
- node.remove();
1690
- if (hostId === childVNode.$hostId$) {
1691
- if (!parentVNode.$children$) {
1692
- parentVNode.$children$ = [];
1693
- }
1694
- parentVNode.$children$[childVNode.$index$] = childVNode;
1695
- }
1696
- if (shadowRootNodes && childVNode.$depth$ === "0") {
1697
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1698
- }
1699
- }
1700
- } else if (childNodeType === COMMENT_NODE_ID) {
1701
- childVNode.$elm$ = node.nextSibling;
1702
- if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
1703
- childRenderNodes.push(childVNode);
1704
- node.remove();
1705
- }
1706
- } else if (childVNode.$hostId$ === hostId) {
1707
- if (childNodeType === SLOT_NODE_ID) {
1708
- childVNode.$tag$ = "slot";
1709
- const slotName = node["s-sn"] = childVNode.$name$ = childIdSplt[5] || "";
1710
- addSlot(
1711
- slotName,
1712
- childIdSplt[2],
1713
- childVNode,
1714
- node,
1715
- parentVNode,
1716
- childRenderNodes,
1717
- slotNodes,
1718
- shadowRootNodes,
1719
- slottedNodes
1720
- );
1721
- } else if (childNodeType === CONTENT_REF_ID) {
1722
- if (shadowRootNodes) {
1723
- node.remove();
1724
- } else {
1725
- hostElm["s-cr"] = node;
1726
- node["s-cn"] = true;
1727
- }
1728
- }
1729
- }
1730
- }
1731
- } else if (parentVNode && parentVNode.$tag$ === "style") {
1732
- const vnode = newVNode(null, node.textContent);
1733
- vnode.$elm$ = node;
1734
- vnode.$index$ = "0";
1735
- parentVNode.$children$ = [vnode];
1736
- }
1737
- return parentVNode;
1738
- };
1739
- var initializeDocumentHydrate = (node, orgLocNodes) => {
1740
- if (node.nodeType === 1 /* ElementNode */) {
1741
- const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
1742
- if (componentId) {
1743
- orgLocNodes.set(componentId, node);
1744
- }
1745
- let i2 = 0;
1746
- if (node.shadowRoot) {
1747
- for (; i2 < node.shadowRoot.childNodes.length; i2++) {
1748
- initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
1749
- }
1750
- }
1751
- const nonShadowNodes = node.__childNodes || node.childNodes;
1752
- for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
1753
- initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
1754
- }
1755
- } else if (node.nodeType === 8 /* CommentNode */) {
1756
- const childIdSplt = node.nodeValue.split(".");
1757
- if (childIdSplt[0] === ORG_LOCATION_ID) {
1758
- orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
1759
- node.nodeValue = "";
1760
- node["s-en"] = childIdSplt[3];
1761
- }
1762
- }
1763
- };
1764
- var createSimpleVNode = (vnode) => {
1765
- const defaultVNode = {
1766
- $flags$: 0,
1767
- $hostId$: null,
1768
- $nodeId$: null,
1769
- $depth$: null,
1770
- $index$: "0",
1771
- $elm$: null,
1772
- $attrs$: null,
1773
- $children$: null,
1774
- $key$: null,
1775
- $name$: null,
1776
- $tag$: null,
1777
- $text$: null
1778
- };
1779
- return { ...defaultVNode, ...vnode };
1780
- };
1781
- function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
1782
- node["s-sr"] = true;
1783
- const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
1784
- if (shadowRootNodes) {
1785
- const slot = childVNode.$elm$ = doc.createElement(childVNode.$tag$);
1786
- if (childVNode.$name$) {
1787
- childVNode.$elm$.setAttribute("name", slotName);
1788
- }
1789
- if (parentNodeId && parentNodeId !== childVNode.$hostId$) {
1790
- parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1791
- } else {
1792
- node.parentNode.insertBefore(childVNode.$elm$, node);
1793
- }
1794
- addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
1795
- node.remove();
1796
- if (childVNode.$depth$ === "0") {
1797
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1798
- }
1799
- } else {
1800
- const slot = childVNode.$elm$;
1801
- const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
1802
- addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
1803
- if (shouldMove) {
1804
- parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1805
- }
1806
- childRenderNodes.push(childVNode);
1807
- }
1808
- slotNodes.push(childVNode);
1809
- if (!parentVNode.$children$) {
1810
- parentVNode.$children$ = [];
1811
- }
1812
- parentVNode.$children$[childVNode.$index$] = childVNode;
1813
- }
1814
- var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
1815
- let slottedNode = slotNode.nextSibling;
1816
- slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
1817
- 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 */))) {
1818
- slottedNode["s-sn"] = slotName;
1819
- slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
1820
- slottedNode = slottedNode.nextSibling;
1821
- }
1822
- };
1823
-
1824
- // src/runtime/mode.ts
1825
- var computeMode = (elm) => modeResolutionChain.map((h2) => h2(elm)).find((m) => !!m);
1826
- var setMode = (handler) => modeResolutionChain.push(handler);
1827
- var getMode = (ref) => getHostRef(ref).$modeName$;
1828
- var parsePropertyValue = (propValue, propType) => {
1829
- if (propValue != null && !isComplexType(propValue)) {
1830
- if (propType & 4 /* Boolean */) {
1831
- return propValue === "false" ? false : propValue === "" || !!propValue;
1832
- }
1833
- if (propType & 2 /* Number */) {
1834
- return parseFloat(propValue);
1835
- }
1836
- if (propType & 1 /* String */) {
1837
- return String(propValue);
1838
- }
1839
- return propValue;
1840
- }
1841
- return propValue;
1842
- };
1843
- var getElement = (ref) => getHostRef(ref).$hostElement$ ;
1844
-
1845
- // src/runtime/event-emitter.ts
1846
- var createEvent = (ref, name, flags) => {
1847
- const elm = getElement(ref);
1848
- return {
1849
- emit: (detail) => {
1850
- return emitEvent(elm, name, {
1851
- bubbles: !!(flags & 4 /* Bubbles */),
1852
- composed: !!(flags & 2 /* Composed */),
1853
- cancelable: !!(flags & 1 /* Cancellable */),
1854
- detail
1855
- });
1856
- }
1857
- };
1858
- };
1859
- var emitEvent = (elm, name, opts) => {
1860
- const ev = plt.ce(name, opts);
1861
- elm.dispatchEvent(ev);
1862
- return ev;
1863
- };
1864
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
1865
- var registerStyle = (scopeId2, cssText, allowCS) => {
1866
- let style = styles.get(scopeId2);
1867
- if (supportsConstructableStylesheets && allowCS) {
1868
- style = style || new CSSStyleSheet();
1869
- if (typeof style === "string") {
1870
- style = cssText;
1871
- } else {
1872
- style.replaceSync(cssText);
1873
- }
1874
- } else {
1875
- style = cssText;
1876
- }
1877
- styles.set(scopeId2, style);
1878
- };
1879
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
1880
- var _a;
1881
- const scopeId2 = getScopeId(cmpMeta, mode);
1882
- const style = styles.get(scopeId2);
1883
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
1884
- if (style) {
1885
- if (typeof style === "string") {
1886
- styleContainerNode = styleContainerNode.head || styleContainerNode;
1887
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
1888
- let styleElm;
1889
- if (!appliedStyles) {
1890
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
1891
- }
1892
- if (!appliedStyles.has(scopeId2)) {
1893
- if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
1894
- styleElm.innerHTML = style;
1895
- } else {
1896
- styleElm = doc.createElement("style");
1897
- styleElm.innerHTML = style;
1898
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
1899
- if (nonce != null) {
1900
- styleElm.setAttribute("nonce", nonce);
1901
- }
1902
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
1903
- if (styleContainerNode.nodeName === "HEAD") {
1904
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
1905
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
1906
- styleContainerNode.insertBefore(styleElm, referenceNode2);
1907
- } else if ("host" in styleContainerNode) {
1908
- if (supportsConstructableStylesheets) {
1909
- const stylesheet = new CSSStyleSheet();
1910
- stylesheet.replaceSync(style);
1911
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
1912
- } else {
1913
- const existingStyleContainer = styleContainerNode.querySelector("style");
1914
- if (existingStyleContainer) {
1915
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
1916
- } else {
1917
- styleContainerNode.prepend(styleElm);
1918
- }
1919
- }
1920
- } else {
1921
- styleContainerNode.append(styleElm);
1345
+ if (isInitialLoad) {
1346
+ nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
1922
1347
  }
1348
+ nodeToRelocate.hidden = true;
1923
1349
  }
1924
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
1925
- styleContainerNode.insertBefore(styleElm, null);
1926
- }
1927
- }
1928
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
1929
- styleElm.innerHTML += SLOT_FB_CSS;
1930
- }
1931
- if (appliedStyles) {
1932
- appliedStyles.add(scopeId2);
1933
1350
  }
1934
1351
  }
1935
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
1936
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
1937
1352
  }
1353
+ if (checkSlotFallbackVisibility) {
1354
+ updateFallbackSlotVisibility(rootVnode.$elm$);
1355
+ }
1356
+ plt.$flags$ &= ~1 /* isTmpDisconnected */;
1357
+ relocateNodes.length = 0;
1938
1358
  }
1939
- return scopeId2;
1940
- };
1941
- var attachStyles = (hostRef) => {
1942
- const cmpMeta = hostRef.$cmpMeta$;
1943
- const elm = hostRef.$hostElement$;
1944
- const flags = cmpMeta.$flags$;
1945
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
1946
- const scopeId2 = addStyle(
1947
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
1948
- cmpMeta,
1949
- hostRef.$modeName$
1950
- );
1951
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
1952
- elm["s-sc"] = scopeId2;
1953
- elm.classList.add(scopeId2 + "-h");
1954
- if (flags & 2 /* scopedCssEncapsulation */) {
1955
- elm.classList.add(scopeId2 + "-s");
1359
+ if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
1360
+ for (const childNode of rootVnode.$elm$.childNodes) {
1361
+ if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
1362
+ if (isInitialLoad && childNode["s-ih"] == null) {
1363
+ childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
1364
+ }
1365
+ childNode.hidden = true;
1366
+ }
1956
1367
  }
1957
1368
  }
1958
- endAttachStyles();
1369
+ contentRef = void 0;
1959
1370
  };
1960
- var getScopeId = (cmp, mode) => "sc-" + (mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
1961
1371
 
1962
1372
  // src/runtime/update-component.ts
1963
1373
  var attachToAncestor = (hostRef, ancestorComponent) => {
@@ -2185,62 +1595,16 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
2185
1595
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
2186
1596
  members.map(([memberName, [memberFlags]]) => {
2187
1597
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
2188
- if ((memberFlags & 2048 /* Getter */) === 0) {
2189
- Object.defineProperty(prototype, memberName, {
2190
- get() {
2191
- return getValue(this, memberName);
2192
- },
2193
- set(newValue) {
2194
- setValue(this, memberName, newValue, cmpMeta);
2195
- },
2196
- configurable: true,
2197
- enumerable: true
2198
- });
2199
- } else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
2200
- {
2201
- Object.defineProperty(prototype, memberName, {
2202
- get() {
2203
- const ref = getHostRef(this);
2204
- const instance = ref ? ref.$lazyInstance$ : prototype;
2205
- if (!instance) return;
2206
- return instance[memberName];
2207
- },
2208
- configurable: true,
2209
- enumerable: true
2210
- });
2211
- }
2212
- if (memberFlags & 4096 /* Setter */) {
2213
- const origSetter = Object.getOwnPropertyDescriptor(prototype, memberName).set;
2214
- Object.defineProperty(prototype, memberName, {
2215
- set(newValue) {
2216
- const ref = getHostRef(this);
2217
- if (origSetter) {
2218
- const currentValue = ref.$hostElement$[memberName];
2219
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
2220
- ref.$instanceValues$.set(memberName, currentValue);
2221
- }
2222
- origSetter.apply(this, [parsePropertyValue(newValue, cmpMeta.$members$[memberName][0])]);
2223
- setValue(this, memberName, ref.$hostElement$[memberName], cmpMeta);
2224
- return;
2225
- }
2226
- if (!ref) return;
2227
- const setterSetVal = () => {
2228
- const currentValue = ref.$lazyInstance$[memberName];
2229
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
2230
- ref.$instanceValues$.set(memberName, currentValue);
2231
- }
2232
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
2233
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
2234
- };
2235
- if (ref.$lazyInstance$) {
2236
- setterSetVal();
2237
- } else {
2238
- ref.$onReadyPromise$.then(() => setterSetVal());
2239
- }
2240
- }
2241
- });
2242
- }
2243
- }
1598
+ Object.defineProperty(prototype, memberName, {
1599
+ get() {
1600
+ return getValue(this, memberName);
1601
+ },
1602
+ set(newValue) {
1603
+ setValue(this, memberName, newValue, cmpMeta);
1604
+ },
1605
+ configurable: true,
1606
+ enumerable: true
1607
+ });
2244
1608
  } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
2245
1609
  Object.defineProperty(prototype, memberName, {
2246
1610
  value(...args) {
@@ -2280,10 +1644,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
2280
1644
  }
2281
1645
  return;
2282
1646
  }
2283
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
2284
- if (!propDesc.get || !!propDesc.set) {
2285
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
2286
- }
1647
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
2287
1648
  });
2288
1649
  };
2289
1650
  Cstr.observedAttributes = Array.from(
@@ -2399,9 +1760,6 @@ var connectedCallback = (elm) => {
2399
1760
  if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2400
1761
  const scopeId2 = addStyle(elm.shadowRoot, cmpMeta, elm.getAttribute("s-mode")) ;
2401
1762
  elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
2402
- } else if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
2403
- const scopeId2 = getScopeId(cmpMeta, elm.getAttribute("s-mode") );
2404
- elm["s-sc"] = scopeId2;
2405
1763
  }
2406
1764
  initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
2407
1765
  }
@@ -2452,13 +1810,9 @@ var setContentReference = (elm) => {
2452
1810
  insertBefore(elm, contentRefElm, elm.firstChild);
2453
1811
  };
2454
1812
  var disconnectInstance = (instance) => {
2455
- const callbackResult = [];
2456
1813
  {
2457
- callbackResult.push(safeCall(instance, "disconnectedCallback"));
1814
+ safeCall(instance, "disconnectedCallback");
2458
1815
  }
2459
- Promise.all(
2460
- callbackResult.filter((item) => typeof item === "object").filter((promise) => "then" in promise && typeof promise.then === "function")
2461
- ).finally(() => setTimeout(() => hostRefCleanup()));
2462
1816
  };
2463
1817
  var disconnectedCallback = async (elm) => {
2464
1818
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -2473,16 +1827,289 @@ var disconnectedCallback = async (elm) => {
2473
1827
  disconnectInstance(hostRef.$lazyInstance$);
2474
1828
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
2475
1829
  hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
2476
- } else {
2477
- setTimeout(() => hostRefCleanup());
2478
1830
  }
2479
1831
  }
2480
- if (rootAppliedStyles.has(elm)) {
2481
- rootAppliedStyles.delete(elm);
1832
+ };
1833
+ var patchPseudoShadowDom = (hostElementPrototype, descriptorPrototype) => {
1834
+ patchCloneNode(hostElementPrototype);
1835
+ patchSlotAppendChild(hostElementPrototype);
1836
+ patchSlotAppend(hostElementPrototype);
1837
+ patchSlotPrepend(hostElementPrototype);
1838
+ patchSlotInsertAdjacentElement(hostElementPrototype);
1839
+ patchSlotInsertAdjacentHTML(hostElementPrototype);
1840
+ patchSlotInsertAdjacentText(hostElementPrototype);
1841
+ patchTextContent(hostElementPrototype);
1842
+ patchChildSlotNodes(hostElementPrototype, descriptorPrototype);
1843
+ patchSlotRemoveChild(hostElementPrototype);
1844
+ };
1845
+ var patchCloneNode = (HostElementPrototype) => {
1846
+ const orgCloneNode = HostElementPrototype.cloneNode;
1847
+ HostElementPrototype.cloneNode = function(deep) {
1848
+ const srcNode = this;
1849
+ const isShadowDom = srcNode.shadowRoot && supportsShadow ;
1850
+ const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
1851
+ if (!isShadowDom && deep) {
1852
+ let i2 = 0;
1853
+ let slotted, nonStencilNode;
1854
+ const stencilPrivates = [
1855
+ "s-id",
1856
+ "s-cr",
1857
+ "s-lr",
1858
+ "s-rc",
1859
+ "s-sc",
1860
+ "s-p",
1861
+ "s-cn",
1862
+ "s-sr",
1863
+ "s-sn",
1864
+ "s-hn",
1865
+ "s-ol",
1866
+ "s-nr",
1867
+ "s-si",
1868
+ "s-rf",
1869
+ "s-scs"
1870
+ ];
1871
+ for (; i2 < srcNode.childNodes.length; i2++) {
1872
+ slotted = srcNode.childNodes[i2]["s-nr"];
1873
+ nonStencilNode = stencilPrivates.every((privateField) => !srcNode.childNodes[i2][privateField]);
1874
+ if (slotted) {
1875
+ if (clonedNode.__appendChild) {
1876
+ clonedNode.__appendChild(slotted.cloneNode(true));
1877
+ } else {
1878
+ clonedNode.appendChild(slotted.cloneNode(true));
1879
+ }
1880
+ }
1881
+ if (nonStencilNode) {
1882
+ clonedNode.appendChild(srcNode.childNodes[i2].cloneNode(true));
1883
+ }
1884
+ }
1885
+ }
1886
+ return clonedNode;
1887
+ };
1888
+ };
1889
+ var patchSlotAppendChild = (HostElementPrototype) => {
1890
+ HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
1891
+ HostElementPrototype.appendChild = function(newChild) {
1892
+ const slotName = newChild["s-sn"] = getSlotName(newChild);
1893
+ const slotNode = getHostSlotNode(this.childNodes, slotName, this.tagName);
1894
+ if (slotNode) {
1895
+ const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
1896
+ const appendAfter = slotChildNodes[slotChildNodes.length - 1];
1897
+ const insertedNode = insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
1898
+ updateFallbackSlotVisibility(this);
1899
+ return insertedNode;
1900
+ }
1901
+ return this.__appendChild(newChild);
1902
+ };
1903
+ };
1904
+ var patchSlotRemoveChild = (ElementPrototype) => {
1905
+ ElementPrototype.__removeChild = ElementPrototype.removeChild;
1906
+ ElementPrototype.removeChild = function(toRemove) {
1907
+ if (toRemove && typeof toRemove["s-sn"] !== "undefined") {
1908
+ const slotNode = getHostSlotNode(this.childNodes, toRemove["s-sn"], this.tagName);
1909
+ if (slotNode) {
1910
+ const slotChildNodes = getHostSlotChildNodes(slotNode, toRemove["s-sn"]);
1911
+ const existingNode = slotChildNodes.find((n) => n === toRemove);
1912
+ if (existingNode) {
1913
+ existingNode.remove();
1914
+ updateFallbackSlotVisibility(this);
1915
+ return;
1916
+ }
1917
+ }
1918
+ }
1919
+ return this.__removeChild(toRemove);
1920
+ };
1921
+ };
1922
+ var patchSlotPrepend = (HostElementPrototype) => {
1923
+ const originalPrepend = HostElementPrototype.prepend;
1924
+ HostElementPrototype.prepend = function(...newChildren) {
1925
+ newChildren.forEach((newChild) => {
1926
+ if (typeof newChild === "string") {
1927
+ newChild = this.ownerDocument.createTextNode(newChild);
1928
+ }
1929
+ const slotName = newChild["s-sn"] = getSlotName(newChild);
1930
+ const slotNode = getHostSlotNode(this.childNodes, slotName, this.tagName);
1931
+ if (slotNode) {
1932
+ const slotPlaceholder = document.createTextNode("");
1933
+ slotPlaceholder["s-nr"] = newChild;
1934
+ slotNode["s-cr"].parentNode.__appendChild(slotPlaceholder);
1935
+ newChild["s-ol"] = slotPlaceholder;
1936
+ const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
1937
+ const appendAfter = slotChildNodes[0];
1938
+ return insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
1939
+ }
1940
+ if (newChild.nodeType === 1 && !!newChild.getAttribute("slot")) {
1941
+ newChild.hidden = true;
1942
+ }
1943
+ return originalPrepend.call(this, newChild);
1944
+ });
1945
+ };
1946
+ };
1947
+ var patchSlotAppend = (HostElementPrototype) => {
1948
+ HostElementPrototype.append = function(...newChildren) {
1949
+ newChildren.forEach((newChild) => {
1950
+ if (typeof newChild === "string") {
1951
+ newChild = this.ownerDocument.createTextNode(newChild);
1952
+ }
1953
+ this.appendChild(newChild);
1954
+ });
1955
+ };
1956
+ };
1957
+ var patchSlotInsertAdjacentHTML = (HostElementPrototype) => {
1958
+ const originalInsertAdjacentHtml = HostElementPrototype.insertAdjacentHTML;
1959
+ HostElementPrototype.insertAdjacentHTML = function(position, text) {
1960
+ if (position !== "afterbegin" && position !== "beforeend") {
1961
+ return originalInsertAdjacentHtml.call(this, position, text);
1962
+ }
1963
+ const container = this.ownerDocument.createElement("_");
1964
+ let node;
1965
+ container.innerHTML = text;
1966
+ if (position === "afterbegin") {
1967
+ while (node = container.firstChild) {
1968
+ this.prepend(node);
1969
+ }
1970
+ } else if (position === "beforeend") {
1971
+ while (node = container.firstChild) {
1972
+ this.append(node);
1973
+ }
1974
+ }
1975
+ };
1976
+ };
1977
+ var patchSlotInsertAdjacentText = (HostElementPrototype) => {
1978
+ HostElementPrototype.insertAdjacentText = function(position, text) {
1979
+ this.insertAdjacentHTML(position, text);
1980
+ };
1981
+ };
1982
+ var patchSlotInsertAdjacentElement = (HostElementPrototype) => {
1983
+ const originalInsertAdjacentElement = HostElementPrototype.insertAdjacentElement;
1984
+ HostElementPrototype.insertAdjacentElement = function(position, element) {
1985
+ if (position !== "afterbegin" && position !== "beforeend") {
1986
+ return originalInsertAdjacentElement.call(this, position, element);
1987
+ }
1988
+ if (position === "afterbegin") {
1989
+ this.prepend(element);
1990
+ return element;
1991
+ } else if (position === "beforeend") {
1992
+ this.append(element);
1993
+ return element;
1994
+ }
1995
+ return element;
1996
+ };
1997
+ };
1998
+ var patchTextContent = (hostElementPrototype) => {
1999
+ const descriptor = Object.getOwnPropertyDescriptor(Node.prototype, "textContent");
2000
+ Object.defineProperty(hostElementPrototype, "__textContent", descriptor);
2001
+ {
2002
+ Object.defineProperty(hostElementPrototype, "textContent", {
2003
+ // To mimic shadow root behavior, we need to return the text content of all
2004
+ // nodes in a slot reference node
2005
+ get() {
2006
+ const slotRefNodes = getAllChildSlotNodes(this.childNodes);
2007
+ const textContent = slotRefNodes.map((node) => {
2008
+ var _a, _b;
2009
+ const text = [];
2010
+ let slotContent = node.nextSibling;
2011
+ while (slotContent && slotContent["s-sn"] === node["s-sn"]) {
2012
+ if (slotContent.nodeType === 3 /* TEXT_NODE */ || slotContent.nodeType === 1 /* ELEMENT_NODE */) {
2013
+ text.push((_b = (_a = slotContent.textContent) == null ? void 0 : _a.trim()) != null ? _b : "");
2014
+ }
2015
+ slotContent = slotContent.nextSibling;
2016
+ }
2017
+ return text.filter((ref) => ref !== "").join(" ");
2018
+ }).filter((text) => text !== "").join(" ");
2019
+ return " " + textContent + " ";
2020
+ },
2021
+ // To mimic shadow root behavior, we need to overwrite all nodes in a slot
2022
+ // reference node. If a default slot reference node exists, the text content will be
2023
+ // placed there. Otherwise, the new text node will be hidden
2024
+ set(value) {
2025
+ const slotRefNodes = getAllChildSlotNodes(this.childNodes);
2026
+ slotRefNodes.forEach((node) => {
2027
+ let slotContent = node.nextSibling;
2028
+ while (slotContent && slotContent["s-sn"] === node["s-sn"]) {
2029
+ const tmp = slotContent;
2030
+ slotContent = slotContent.nextSibling;
2031
+ tmp.remove();
2032
+ }
2033
+ if (node["s-sn"] === "") {
2034
+ const textNode = this.ownerDocument.createTextNode(value);
2035
+ textNode["s-sn"] = "";
2036
+ insertBefore(node.parentElement, textNode, node.nextSibling);
2037
+ } else {
2038
+ node.remove();
2039
+ }
2040
+ });
2041
+ }
2042
+ });
2043
+ }
2044
+ };
2045
+ var patchChildSlotNodes = (elm, cmpMeta) => {
2046
+ class FakeNodeList extends Array {
2047
+ item(n) {
2048
+ return this[n];
2049
+ }
2050
+ }
2051
+ if (cmpMeta.$flags$ & 8 /* needsShadowDomShim */) {
2052
+ const childNodesFn = elm.__lookupGetter__("childNodes");
2053
+ Object.defineProperty(elm, "children", {
2054
+ get() {
2055
+ return this.childNodes.map((n) => n.nodeType === 1);
2056
+ }
2057
+ });
2058
+ Object.defineProperty(elm, "childElementCount", {
2059
+ get() {
2060
+ return elm.children.length;
2061
+ }
2062
+ });
2063
+ Object.defineProperty(elm, "childNodes", {
2064
+ get() {
2065
+ const childNodes = childNodesFn.call(this);
2066
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0 && getHostRef(this).$flags$ & 2 /* hasRendered */) {
2067
+ const result = new FakeNodeList();
2068
+ for (let i2 = 0; i2 < childNodes.length; i2++) {
2069
+ const slot = childNodes[i2]["s-nr"];
2070
+ if (slot) {
2071
+ result.push(slot);
2072
+ }
2073
+ }
2074
+ return result;
2075
+ }
2076
+ return FakeNodeList.from(childNodes);
2077
+ }
2078
+ });
2079
+ }
2080
+ };
2081
+ var getAllChildSlotNodes = (childNodes) => {
2082
+ const slotRefNodes = [];
2083
+ for (const childNode of Array.from(childNodes)) {
2084
+ if (childNode["s-sr"]) {
2085
+ slotRefNodes.push(childNode);
2086
+ }
2087
+ slotRefNodes.push(...getAllChildSlotNodes(childNode.childNodes));
2088
+ }
2089
+ return slotRefNodes;
2090
+ };
2091
+ var getSlotName = (node) => node["s-sn"] || node.nodeType === 1 && node.getAttribute("slot") || "";
2092
+ var getHostSlotNode = (childNodes, slotName, hostName) => {
2093
+ let i2 = 0;
2094
+ let childNode;
2095
+ for (; i2 < childNodes.length; i2++) {
2096
+ childNode = childNodes[i2];
2097
+ if (childNode["s-sr"] && childNode["s-sn"] === slotName && childNode["s-hn"] === hostName) {
2098
+ return childNode;
2099
+ }
2100
+ childNode = getHostSlotNode(childNode.childNodes, slotName, hostName);
2101
+ if (childNode) {
2102
+ return childNode;
2103
+ }
2482
2104
  }
2483
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
2484
- rootAppliedStyles.delete(elm.shadowRoot);
2105
+ return null;
2106
+ };
2107
+ var getHostSlotChildNodes = (n, slotName) => {
2108
+ const childNodes = [n];
2109
+ while ((n = n.nextSibling) && n["s-sn"] === slotName) {
2110
+ childNodes.push(n);
2485
2111
  }
2112
+ return childNodes;
2486
2113
  };
2487
2114
 
2488
2115
  // src/runtime/bootstrap-lazy.ts
@@ -2580,7 +2207,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2580
2207
  };
2581
2208
  {
2582
2209
  if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
2583
- patchPseudoShadowDom(HostElement.prototype);
2210
+ patchPseudoShadowDom(HostElement.prototype, cmpMeta);
2584
2211
  }
2585
2212
  }
2586
2213
  cmpMeta.$lazyBundleId$ = lazyBundle[0];
@@ -2658,4 +2285,4 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
2658
2285
  // src/runtime/nonce.ts
2659
2286
  var setNonce = (nonce) => plt.$nonce$ = nonce;
2660
2287
 
2661
- export { Build as B, H, setPlatformHelpers as a, bootstrapLazy as b, setMode as c, createEvent as d, readTask as e, Host as f, getMode as g, h, getElement as i, forceUpdate as j, getAssetPath as k, promiseResolve as p, registerInstance as r, setNonce as s, writeTask as w };
2288
+ export { Build as B, H, setPlatformHelpers as a, bootstrapLazy as b, getMode as c, setMode as d, createEvent as e, readTask as f, getElement as g, h, Host as i, forceUpdate as j, getAssetPath as k, promiseResolve as p, registerInstance as r, setNonce as s, writeTask as w };