@ionic/core 8.3.1-dev.11726258029.1014159b → 8.3.1-dev.11727899155.103c4afc

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 (580) hide show
  1. package/components/animation.js +1 -1
  2. package/components/button.js +1 -2
  3. package/components/capacitor.js +1 -1
  4. package/components/data.js +1 -1
  5. package/components/focus-visible.js +8 -1
  6. package/components/framework-delegate.js +1 -1
  7. package/components/helpers.js +1 -1
  8. package/components/index2.js +1 -2
  9. package/components/index4.js +1 -4
  10. package/components/index5.js +27 -3
  11. package/components/index6.js +114 -20
  12. package/components/index7.js +163 -27
  13. package/components/input-shims.js +2 -2
  14. package/components/input.utils.js +1 -2
  15. package/components/ion-accordion-group.js +1 -2
  16. package/components/ion-accordion.js +1 -1
  17. package/components/ion-app.js +6 -75
  18. package/components/ion-back-button.js +1 -1
  19. package/components/ion-breadcrumb.js +1 -1
  20. package/components/ion-content.js +1 -1
  21. package/components/ion-datetime-button.js +1 -2
  22. package/components/ion-datetime.js +2 -3
  23. package/components/ion-fab-button.js +1 -1
  24. package/components/ion-footer.js +4 -4
  25. package/components/ion-header.js +5 -5
  26. package/components/ion-infinite-scroll.js +1 -1
  27. package/components/ion-input-password-toggle.js +2 -3
  28. package/components/ion-input.js +1 -1
  29. package/components/ion-item-sliding.js +1 -1
  30. package/components/ion-menu-button.js +1 -1
  31. package/components/ion-menu.js +1 -2
  32. package/components/ion-modal.js +2 -4
  33. package/components/ion-nav.js +1 -2
  34. package/components/ion-picker-legacy.js +1 -2
  35. package/components/ion-range.js +2 -3
  36. package/components/ion-refresher-content.js +1 -1
  37. package/components/ion-refresher.js +1 -1
  38. package/components/ion-reorder-group.js +1 -1
  39. package/components/ion-reorder.js +1 -1
  40. package/components/ion-searchbar.js +1 -1
  41. package/components/ion-select.js +1 -1
  42. package/components/ion-toast.js +1 -3
  43. package/components/ion-toggle.js +1 -1
  44. package/components/ionic-global.js +219 -2
  45. package/components/item.js +1 -1
  46. package/components/keyboard-controller.js +2 -2
  47. package/components/notch-controller.js +1 -1
  48. package/components/overlays.js +2 -5
  49. package/components/picker-column.js +1 -2
  50. package/components/popover.js +1 -2
  51. package/components/status-tap.js +1 -1
  52. package/dist/cjs/{animation-b4fdf128.js → animation-1b5076f1.js} +2 -2
  53. package/dist/cjs/{app-globals-9d795e44.js → app-globals-7adfb8dd.js} +1 -1
  54. package/dist/cjs/{button-active-4115dc12.js → button-active-0f66de25.js} +2 -2
  55. package/dist/cjs/{capacitor-c04564bf.js → capacitor-618d05d6.js} +3 -3
  56. package/dist/cjs/{data-21dc0f81.js → data-5d4f17b4.js} +3 -3
  57. package/dist/cjs/{focus-visible-7a0ce04f.js → focus-visible-9aa87fa3.js} +8 -0
  58. package/dist/cjs/{framework-delegate-55f5683a.js → framework-delegate-d1e05576.js} +2 -2
  59. package/dist/cjs/{haptic-f6b37aa3.js → haptic-2bdd48c1.js} +1 -1
  60. package/dist/cjs/{helpers-afaa9001.js → helpers-acd6c477.js} +1 -1
  61. package/dist/cjs/{index-5b6a7459.js → index-3eb98cb9.js} +3 -3
  62. package/dist/cjs/{index-44dacdce.js → index-686a2ab7.js} +8 -9
  63. package/dist/cjs/{index-42dd5e74.js → index-b9e25ecd.js} +2 -8
  64. package/dist/cjs/{index-9509ecad.js → index-c17dd541.js} +8 -7
  65. package/dist/cjs/{index-248835d7.js → index-d683cd69.js} +7 -10
  66. package/dist/cjs/index.cjs.js +10 -13
  67. package/dist/cjs/{input-shims-9e59ef62.js → input-shims-f41730e2.js} +17 -17
  68. package/dist/cjs/{input.utils-611cde0b.js → input.utils-1215e537.js} +4 -5
  69. package/dist/cjs/ion-accordion_2.cjs.entry.js +4 -5
  70. package/dist/cjs/ion-action-sheet.cjs.entry.js +9 -12
  71. package/dist/cjs/ion-alert.cjs.entry.js +9 -12
  72. package/dist/cjs/ion-app_8.cjs.entry.js +32 -102
  73. package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -2
  74. package/dist/cjs/ion-back-button.cjs.entry.js +3 -3
  75. package/dist/cjs/ion-backdrop.cjs.entry.js +2 -2
  76. package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +3 -3
  77. package/dist/cjs/ion-button_2.cjs.entry.js +6 -7
  78. package/dist/cjs/ion-card_5.cjs.entry.js +3 -3
  79. package/dist/cjs/ion-checkbox.cjs.entry.js +3 -3
  80. package/dist/cjs/ion-chip.cjs.entry.js +2 -2
  81. package/dist/cjs/ion-col_3.cjs.entry.js +2 -2
  82. package/dist/cjs/ion-datetime-button.cjs.entry.js +8 -9
  83. package/dist/cjs/ion-datetime_3.cjs.entry.js +96 -99
  84. package/dist/cjs/ion-fab_3.cjs.entry.js +3 -3
  85. package/dist/cjs/ion-img.cjs.entry.js +3 -3
  86. package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +4 -5
  87. package/dist/cjs/ion-input-password-toggle.cjs.entry.js +7 -8
  88. package/dist/cjs/ion-input.cjs.entry.js +5 -7
  89. package/dist/cjs/ion-item-option_3.cjs.entry.js +4 -5
  90. package/dist/cjs/ion-item_8.cjs.entry.js +3 -3
  91. package/dist/cjs/ion-loading.cjs.entry.js +6 -9
  92. package/dist/cjs/ion-menu_3.cjs.entry.js +8 -11
  93. package/dist/cjs/ion-modal.cjs.entry.js +49 -52
  94. package/dist/cjs/ion-nav_2.cjs.entry.js +6 -7
  95. package/dist/cjs/ion-picker-column-option.cjs.entry.js +3 -3
  96. package/dist/cjs/ion-picker-column.cjs.entry.js +6 -7
  97. package/dist/cjs/ion-picker.cjs.entry.js +2 -2
  98. package/dist/cjs/ion-popover.cjs.entry.js +10 -13
  99. package/dist/cjs/ion-progress-bar.cjs.entry.js +3 -3
  100. package/dist/cjs/ion-radio_2.cjs.entry.js +3 -3
  101. package/dist/cjs/ion-range.cjs.entry.js +9 -10
  102. package/dist/cjs/ion-refresher_2.cjs.entry.js +7 -9
  103. package/dist/cjs/ion-reorder_2.cjs.entry.js +6 -8
  104. package/dist/cjs/ion-ripple-effect.cjs.entry.js +2 -2
  105. package/dist/cjs/ion-route_4.cjs.entry.js +3 -3
  106. package/dist/cjs/ion-searchbar.cjs.entry.js +3 -3
  107. package/dist/cjs/ion-segment_2.cjs.entry.js +3 -3
  108. package/dist/cjs/ion-select_3.cjs.entry.js +6 -9
  109. package/dist/cjs/ion-spinner.cjs.entry.js +2 -2
  110. package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
  111. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +6 -7
  112. package/dist/cjs/ion-tab_2.cjs.entry.js +3 -3
  113. package/dist/cjs/ion-text.cjs.entry.js +2 -2
  114. package/dist/cjs/ion-textarea.cjs.entry.js +5 -7
  115. package/dist/cjs/ion-toast.cjs.entry.js +31 -34
  116. package/dist/cjs/ion-toggle.cjs.entry.js +5 -6
  117. package/dist/cjs/ionic-global-7b45fd73.js +462 -0
  118. package/dist/cjs/ionic.cjs.js +4 -4
  119. package/dist/cjs/{ios.transition-c28ff3cc.js → ios.transition-1ee349d9.js} +5 -7
  120. package/dist/cjs/{keyboard-af1bb365.js → keyboard-49920cbd.js} +4 -3
  121. package/dist/cjs/{keyboard-controller-c05e747a.js → keyboard-controller-5b01bcd9.js} +9 -9
  122. package/dist/cjs/{keyboard-0272231f.js → keyboard-d77ef081.js} +1 -1
  123. package/dist/cjs/loader.cjs.js +3 -3
  124. package/dist/cjs/{md.transition-01295b30.js → md.transition-719e7e1c.js} +5 -7
  125. package/dist/cjs/{notch-controller-d69150f5.js → notch-controller-a8eaed3b.js} +4 -4
  126. package/dist/cjs/{overlays-76ac42e7.js → overlays-14f167fc.js} +12 -15
  127. package/dist/cjs/{status-tap-75c3a35d.js → status-tap-e7029c0d.js} +4 -4
  128. package/dist/cjs/{swipe-back-0303a5e4.js → swipe-back-13234294.js} +1 -1
  129. package/dist/collection/collection-manifest.json +2 -2
  130. package/dist/collection/components/app/app.js +5 -75
  131. package/dist/collection/components/content/content.js +1 -1
  132. package/dist/collection/components/footer/footer.js +3 -3
  133. package/dist/collection/components/header/header.js +4 -4
  134. package/dist/collection/components/input/input.js +1 -1
  135. package/dist/collection/components/searchbar/searchbar.js +1 -1
  136. package/dist/collection/global/ionic-global.js +70 -1
  137. package/dist/collection/utils/focus-visible.js +7 -0
  138. package/dist/collection/utils/framework-delegate.js +1 -1
  139. package/dist/collection/utils/helpers.js +1 -1
  140. package/dist/collection/utils/keyboard/keyboard-controller.js +1 -1
  141. package/dist/collection/utils/overlays.js +1 -1
  142. package/dist/docs.json +109 -109
  143. package/dist/esm/{animation-eab5a4ca.js → animation-4833cc82.js} +1 -1
  144. package/dist/esm/{app-globals-cef8aa6d.js → app-globals-120fc59a.js} +1 -1
  145. package/dist/esm/{button-active-6700b8ee.js → button-active-99997f21.js} +2 -2
  146. package/dist/esm/{capacitor-59395cbd.js → capacitor-90256979.js} +1 -1
  147. package/dist/esm/{data-ae11fd43.js → data-ef61a6bc.js} +1 -1
  148. package/dist/esm/{focus-visible-dd40d69f.js → focus-visible-501aff19.js} +8 -1
  149. package/dist/esm/{framework-delegate-63d1a679.js → framework-delegate-3b8e3146.js} +2 -2
  150. package/dist/esm/{haptic-ac164e4c.js → haptic-2a877838.js} +1 -1
  151. package/dist/esm/{helpers-da915de8.js → helpers-b96cdeb7.js} +1 -1
  152. package/dist/esm/{index-deb1a83e.js → index-462343ab.js} +3 -6
  153. package/{components/index9.js → dist/esm/index-4b965271.js} +3 -2
  154. package/dist/esm/{index-3ed04e6d.js → index-4e02bb5d.js} +2 -8
  155. package/dist/esm/{index-5cc724f3.js → index-57058cbb.js} +2 -2
  156. package/dist/esm/{index-42907296.js → index-ea559016.js} +5 -6
  157. package/dist/esm/index.js +10 -13
  158. package/dist/esm/{input-shims-0314bbe5.js → input-shims-3803b8f3.js} +6 -6
  159. package/dist/esm/{input.utils-09c71bc7.js → input.utils-40cda890.js} +2 -3
  160. package/dist/esm/ion-accordion_2.entry.js +3 -4
  161. package/dist/esm/ion-action-sheet.entry.js +9 -12
  162. package/dist/esm/ion-alert.entry.js +9 -12
  163. package/dist/esm/ion-app_8.entry.js +22 -92
  164. package/dist/esm/ion-avatar_3.entry.js +2 -2
  165. package/dist/esm/ion-back-button.entry.js +3 -3
  166. package/dist/esm/ion-backdrop.entry.js +2 -2
  167. package/dist/esm/ion-breadcrumb_2.entry.js +3 -3
  168. package/dist/esm/ion-button_2.entry.js +3 -4
  169. package/dist/esm/ion-card_5.entry.js +3 -3
  170. package/dist/esm/ion-checkbox.entry.js +3 -3
  171. package/dist/esm/ion-chip.entry.js +2 -2
  172. package/dist/esm/ion-col_3.entry.js +2 -2
  173. package/dist/esm/ion-datetime-button.entry.js +4 -5
  174. package/dist/esm/ion-datetime_3.entry.js +10 -13
  175. package/dist/esm/ion-fab_3.entry.js +3 -3
  176. package/dist/esm/ion-img.entry.js +3 -3
  177. package/dist/esm/ion-infinite-scroll_2.entry.js +4 -5
  178. package/dist/esm/ion-input-password-toggle.entry.js +2 -3
  179. package/dist/esm/ion-input.entry.js +5 -7
  180. package/dist/esm/ion-item-option_3.entry.js +4 -5
  181. package/dist/esm/ion-item_8.entry.js +3 -3
  182. package/dist/esm/ion-loading.entry.js +6 -9
  183. package/dist/esm/ion-menu_3.entry.js +7 -10
  184. package/dist/esm/ion-modal.entry.js +11 -14
  185. package/dist/esm/ion-nav_2.entry.js +6 -7
  186. package/dist/esm/ion-picker-column-option.entry.js +3 -3
  187. package/dist/esm/ion-picker-column.entry.js +5 -6
  188. package/dist/esm/ion-picker.entry.js +2 -2
  189. package/dist/esm/ion-popover.entry.js +7 -10
  190. package/dist/esm/ion-progress-bar.entry.js +3 -3
  191. package/dist/esm/ion-radio_2.entry.js +3 -3
  192. package/dist/esm/ion-range.entry.js +4 -5
  193. package/dist/esm/ion-refresher_2.entry.js +7 -9
  194. package/dist/esm/ion-reorder_2.entry.js +6 -8
  195. package/dist/esm/ion-ripple-effect.entry.js +2 -2
  196. package/dist/esm/ion-route_4.entry.js +3 -3
  197. package/dist/esm/ion-searchbar.entry.js +3 -3
  198. package/dist/esm/ion-segment_2.entry.js +3 -3
  199. package/dist/esm/ion-select_3.entry.js +6 -9
  200. package/dist/esm/ion-spinner.entry.js +2 -2
  201. package/dist/esm/ion-split-pane.entry.js +2 -2
  202. package/dist/esm/ion-tab-bar_2.entry.js +6 -7
  203. package/dist/esm/ion-tab_2.entry.js +3 -3
  204. package/dist/esm/ion-text.entry.js +2 -2
  205. package/dist/esm/ion-textarea.entry.js +5 -7
  206. package/dist/esm/ion-toast.entry.js +6 -9
  207. package/dist/esm/ion-toggle.entry.js +5 -6
  208. package/dist/esm/ionic-global-03ec9636.js +448 -0
  209. package/dist/esm/ionic.js +5 -5
  210. package/dist/esm/{ios.transition-903646a5.js → ios.transition-974d0663.js} +5 -7
  211. package/dist/esm/{keyboard-73175e24.js → keyboard-2f90c451.js} +1 -1
  212. package/dist/esm/{keyboard-52278bd7.js → keyboard-4a5eec96.js} +4 -3
  213. package/dist/esm/{keyboard-controller-ec5c2bfa.js → keyboard-controller-bf0b9670.js} +3 -3
  214. package/dist/esm/loader.js +4 -4
  215. package/dist/esm/{md.transition-92c7f8a6.js → md.transition-a592d042.js} +5 -7
  216. package/dist/esm/{notch-controller-55b09e11.js → notch-controller-8d28ece6.js} +2 -2
  217. package/dist/esm/{overlays-d1a2f8a8.js → overlays-7d2c4725.js} +4 -7
  218. package/dist/esm/{status-tap-97e323a9.js → status-tap-eee70591.js} +4 -4
  219. package/dist/esm/{swipe-back-e5394307.js → swipe-back-1c5e6095.js} +1 -1
  220. package/dist/esm-es5/animation-4833cc82.js +4 -0
  221. package/dist/esm-es5/app-globals-120fc59a.js +4 -0
  222. package/dist/esm-es5/{button-active-6700b8ee.js → button-active-99997f21.js} +1 -1
  223. package/dist/esm-es5/capacitor-90256979.js +4 -0
  224. package/dist/esm-es5/data-ef61a6bc.js +4 -0
  225. package/dist/esm-es5/focus-visible-501aff19.js +4 -0
  226. package/dist/esm-es5/{framework-delegate-63d1a679.js → framework-delegate-3b8e3146.js} +1 -1
  227. package/dist/esm-es5/{haptic-ac164e4c.js → haptic-2a877838.js} +1 -1
  228. package/dist/esm-es5/{helpers-da915de8.js → helpers-b96cdeb7.js} +1 -1
  229. package/dist/esm-es5/index-462343ab.js +4 -0
  230. package/dist/esm-es5/index-4b965271.js +4 -0
  231. package/dist/esm-es5/index-4e02bb5d.js +5 -0
  232. package/dist/esm-es5/index-57058cbb.js +4 -0
  233. package/dist/esm-es5/index-ea559016.js +4 -0
  234. package/dist/esm-es5/index.js +1 -1
  235. package/dist/esm-es5/input-shims-3803b8f3.js +4 -0
  236. package/dist/esm-es5/input.utils-40cda890.js +4 -0
  237. package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
  238. package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
  239. package/dist/esm-es5/ion-alert.entry.js +1 -1
  240. package/dist/esm-es5/ion-app_8.entry.js +1 -1
  241. package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
  242. package/dist/esm-es5/ion-back-button.entry.js +1 -1
  243. package/dist/esm-es5/ion-backdrop.entry.js +1 -1
  244. package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
  245. package/dist/esm-es5/ion-button_2.entry.js +1 -1
  246. package/dist/esm-es5/ion-card_5.entry.js +1 -1
  247. package/dist/esm-es5/ion-checkbox.entry.js +1 -1
  248. package/dist/esm-es5/ion-chip.entry.js +1 -1
  249. package/dist/esm-es5/ion-col_3.entry.js +1 -1
  250. package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
  251. package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
  252. package/dist/esm-es5/ion-fab_3.entry.js +1 -1
  253. package/dist/esm-es5/ion-img.entry.js +1 -1
  254. package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
  255. package/dist/esm-es5/ion-input-password-toggle.entry.js +1 -1
  256. package/dist/esm-es5/ion-input.entry.js +1 -1
  257. package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
  258. package/dist/esm-es5/ion-item_8.entry.js +1 -1
  259. package/dist/esm-es5/ion-loading.entry.js +1 -1
  260. package/dist/esm-es5/ion-menu_3.entry.js +1 -1
  261. package/dist/esm-es5/ion-modal.entry.js +1 -1
  262. package/dist/esm-es5/ion-nav_2.entry.js +1 -1
  263. package/dist/esm-es5/ion-picker-column-option.entry.js +1 -1
  264. package/dist/esm-es5/ion-picker-column.entry.js +1 -1
  265. package/dist/esm-es5/ion-picker.entry.js +1 -1
  266. package/dist/esm-es5/ion-popover.entry.js +1 -1
  267. package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
  268. package/dist/esm-es5/ion-radio_2.entry.js +1 -1
  269. package/dist/esm-es5/ion-range.entry.js +1 -1
  270. package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
  271. package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
  272. package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
  273. package/dist/esm-es5/ion-route_4.entry.js +1 -1
  274. package/dist/esm-es5/ion-searchbar.entry.js +1 -1
  275. package/dist/esm-es5/ion-segment_2.entry.js +1 -1
  276. package/dist/esm-es5/ion-select_3.entry.js +1 -1
  277. package/dist/esm-es5/ion-spinner.entry.js +1 -1
  278. package/dist/esm-es5/ion-split-pane.entry.js +1 -1
  279. package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
  280. package/dist/esm-es5/ion-tab_2.entry.js +1 -1
  281. package/dist/esm-es5/ion-text.entry.js +1 -1
  282. package/dist/esm-es5/ion-textarea.entry.js +1 -1
  283. package/dist/esm-es5/ion-toast.entry.js +1 -1
  284. package/dist/esm-es5/ion-toggle.entry.js +1 -1
  285. package/dist/esm-es5/ionic-global-03ec9636.js +4 -0
  286. package/dist/esm-es5/ionic.js +1 -1
  287. package/dist/esm-es5/ios.transition-974d0663.js +4 -0
  288. package/dist/esm-es5/{keyboard-73175e24.js → keyboard-2f90c451.js} +1 -1
  289. package/dist/esm-es5/keyboard-4a5eec96.js +4 -0
  290. package/dist/esm-es5/keyboard-controller-bf0b9670.js +4 -0
  291. package/dist/esm-es5/loader.js +1 -1
  292. package/dist/esm-es5/md.transition-a592d042.js +4 -0
  293. package/dist/esm-es5/notch-controller-8d28ece6.js +4 -0
  294. package/dist/esm-es5/overlays-7d2c4725.js +4 -0
  295. package/dist/esm-es5/status-tap-eee70591.js +4 -0
  296. package/dist/esm-es5/{swipe-back-e5394307.js → swipe-back-1c5e6095.js} +1 -1
  297. package/dist/html.html-data.json +102 -102
  298. package/dist/ionic/index.esm.js +1 -1
  299. package/dist/ionic/ionic.esm.js +1 -1
  300. package/dist/ionic/ionic.js +1 -1
  301. package/dist/ionic/p-0323014f.entry.js +4 -0
  302. package/dist/ionic/{p-f08654ea.system.js → p-0363123b.system.js} +1 -1
  303. package/dist/ionic/{p-5e97855d.system.entry.js → p-092161ab.system.entry.js} +1 -1
  304. package/dist/ionic/{p-99859f95.entry.js → p-09854f4b.entry.js} +1 -1
  305. package/dist/ionic/p-0b886ca7.entry.js +4 -0
  306. package/dist/ionic/p-0e48d764.entry.js +4 -0
  307. package/dist/ionic/p-10bc5191.system.entry.js +4 -0
  308. package/dist/ionic/p-10f5df89.system.entry.js +4 -0
  309. package/dist/ionic/{p-cb9da2a3.entry.js → p-128849bc.entry.js} +1 -1
  310. package/dist/ionic/{p-ce58e8e0.entry.js → p-134b5dad.entry.js} +1 -1
  311. package/dist/ionic/{p-c342dbdf.system.entry.js → p-1883a8fa.system.entry.js} +1 -1
  312. package/dist/ionic/{p-e8cc3bad.js → p-19b78761.js} +1 -1
  313. package/dist/ionic/{p-19ea7bff.system.js → p-1d57f288.system.js} +1 -1
  314. package/dist/ionic/{p-2b2a48ed.entry.js → p-1d5a1bf5.entry.js} +1 -1
  315. package/dist/ionic/p-1d6f8fab.system.js +4 -0
  316. package/dist/ionic/p-1dcb0d05.entry.js +4 -0
  317. package/dist/ionic/p-1e89c2ed.js +4 -0
  318. package/dist/ionic/{p-6bbad9e4.system.entry.js → p-1e98f497.system.entry.js} +1 -1
  319. package/dist/ionic/p-29085dc1.system.js +4 -0
  320. package/dist/ionic/{p-b51e4004.js → p-2f5f9e37.js} +1 -1
  321. package/dist/ionic/{p-4205a4d9.entry.js → p-33e29f21.entry.js} +1 -1
  322. package/dist/ionic/p-34726df4.system.entry.js +4 -0
  323. package/dist/ionic/p-3616a3e7.system.entry.js +4 -0
  324. package/dist/ionic/p-364105d1.system.entry.js +4 -0
  325. package/dist/ionic/{p-5d43e642.entry.js → p-36474df6.entry.js} +1 -1
  326. package/dist/ionic/{p-2b87a770.entry.js → p-368133aa.entry.js} +1 -1
  327. package/dist/ionic/p-3996cc2f.js +4 -0
  328. package/dist/ionic/p-3aa92b96.system.entry.js +4 -0
  329. package/dist/ionic/{p-b7836cec.entry.js → p-3dbf1af2.entry.js} +1 -1
  330. package/dist/ionic/{p-4bd23b81.entry.js → p-3ec5731b.entry.js} +1 -1
  331. package/dist/ionic/{p-e6e98f68.system.entry.js → p-3fb02efa.system.entry.js} +1 -1
  332. package/dist/ionic/p-414b9a61.entry.js +4 -0
  333. package/dist/ionic/p-41dd8be3.entry.js +4 -0
  334. package/dist/ionic/p-421796ce.js +4 -0
  335. package/dist/ionic/{p-a93873de.system.js → p-43f1441e.system.js} +1 -1
  336. package/dist/ionic/{p-51d30486.entry.js → p-4407067a.entry.js} +1 -1
  337. package/dist/ionic/p-46787abb.system.js +4 -0
  338. package/dist/ionic/p-48096596.entry.js +4 -0
  339. package/dist/ionic/p-487a3ae7.system.js +5 -0
  340. package/dist/ionic/p-4b528ed3.js +5 -0
  341. package/dist/ionic/p-4c4de719.entry.js +4 -0
  342. package/dist/ionic/{p-3ad285e3.system.js → p-4e970f1c.system.js} +1 -1
  343. package/dist/ionic/p-4efa1a1d.system.entry.js +4 -0
  344. package/dist/ionic/{p-0b2cb317.system.entry.js → p-511c01d3.system.entry.js} +1 -1
  345. package/dist/ionic/p-51d13493.entry.js +4 -0
  346. package/dist/ionic/p-55dbf33b.entry.js +4 -0
  347. package/dist/ionic/p-5605b84f.js +4 -0
  348. package/dist/ionic/p-566c88f6.system.js +4 -0
  349. package/dist/ionic/{p-1955f63a.entry.js → p-5786ea53.entry.js} +1 -1
  350. package/dist/ionic/p-5821285e.system.entry.js +4 -0
  351. package/dist/ionic/{p-2f244b7c.system.entry.js → p-58d23d7a.system.entry.js} +1 -1
  352. package/dist/ionic/p-5abd61c9.js +4 -0
  353. package/dist/ionic/p-5ada7868.system.js +4 -0
  354. package/dist/ionic/p-5ce35a03.js +4 -0
  355. package/dist/ionic/p-5d672083.system.entry.js +4 -0
  356. package/dist/ionic/p-62bd2e43.system.entry.js +4 -0
  357. package/dist/ionic/p-6455b864.system.entry.js +4 -0
  358. package/dist/ionic/p-651766ac.entry.js +4 -0
  359. package/dist/ionic/{p-b06ac4a5.system.js → p-6596229d.system.js} +1 -1
  360. package/dist/ionic/{p-1d524f20.system.js → p-67c8dcfd.system.js} +1 -1
  361. package/dist/ionic/p-6ae88498.js +4 -0
  362. package/dist/ionic/p-6cf3857f.system.entry.js +4 -0
  363. package/dist/ionic/p-6d8c0944.system.js +4 -0
  364. package/dist/ionic/p-6e2918f3.system.entry.js +4 -0
  365. package/dist/ionic/p-707236b4.system.entry.js +4 -0
  366. package/dist/ionic/{p-59cda258.system.entry.js → p-718726b0.system.entry.js} +1 -1
  367. package/dist/ionic/p-73f6766e.system.entry.js +4 -0
  368. package/dist/ionic/p-7539a724.system.entry.js +4 -0
  369. package/dist/ionic/{p-3e4a7bd8.system.entry.js → p-759b8d9a.system.entry.js} +1 -1
  370. package/dist/ionic/{p-f687573e.system.js → p-7767ca8a.system.js} +1 -1
  371. package/dist/ionic/p-7774e10d.entry.js +4 -0
  372. package/dist/ionic/p-77aab69d.js +4 -0
  373. package/dist/ionic/p-78c10d41.entry.js +4 -0
  374. package/dist/ionic/p-7931413d.entry.js +4 -0
  375. package/dist/ionic/{p-9146695e.system.js → p-7e56e6cc.system.js} +1 -1
  376. package/dist/ionic/p-7ffef389.system.entry.js +4 -0
  377. package/dist/ionic/{p-40277321.system.entry.js → p-80487596.system.entry.js} +1 -1
  378. package/dist/ionic/{p-8985cdb6.system.js → p-80fa15f7.system.js} +1 -1
  379. package/dist/ionic/p-8133332f.entry.js +4 -0
  380. package/dist/ionic/p-83c633c8.js +4 -0
  381. package/dist/ionic/{p-ed3f6648.system.entry.js → p-84b1b6f7.system.entry.js} +1 -1
  382. package/dist/ionic/p-84d72d1d.entry.js +4 -0
  383. package/dist/ionic/p-86391425.js +4 -0
  384. package/dist/ionic/{p-bd9fd891.system.entry.js → p-8655c143.system.entry.js} +1 -1
  385. package/dist/ionic/p-86a12c6d.js +4 -0
  386. package/dist/ionic/{p-89b61afc.js → p-86fabcac.js} +1 -1
  387. package/dist/ionic/p-870c2d06.system.entry.js +4 -0
  388. package/dist/ionic/p-8857f3ce.js +4 -0
  389. package/dist/ionic/{p-27281edd.js → p-89d820c6.js} +1 -1
  390. package/dist/ionic/{p-52c20808.entry.js → p-8bf061c5.entry.js} +1 -1
  391. package/dist/ionic/{p-57f94155.system.entry.js → p-8dd188b5.system.entry.js} +1 -1
  392. package/dist/ionic/{p-dfb78785.system.js → p-8f6462ed.system.js} +1 -1
  393. package/dist/ionic/p-90671ced.system.js +4 -0
  394. package/dist/ionic/p-92341215.system.js +4 -0
  395. package/dist/ionic/{p-3cc276f4.js → p-97e18d86.js} +1 -1
  396. package/dist/ionic/p-9a2dfb2a.system.entry.js +4 -0
  397. package/dist/ionic/p-9eb18e77.system.js +4 -0
  398. package/dist/ionic/{p-30482ed4.system.js → p-a09d82d3.system.js} +1 -1
  399. package/dist/ionic/p-a4cb22d4.entry.js +4 -0
  400. package/dist/ionic/p-a69ae8cf.js +4 -0
  401. package/dist/ionic/p-a798933c.system.js +4 -0
  402. package/dist/ionic/{p-70325536.entry.js → p-a845b317.entry.js} +1 -1
  403. package/dist/ionic/p-a8ab986c.entry.js +4 -0
  404. package/dist/ionic/{p-fdfa74cc.system.entry.js → p-a97c0ad2.system.entry.js} +1 -1
  405. package/dist/ionic/{p-e9119176.entry.js → p-ac3cefed.entry.js} +1 -1
  406. package/dist/ionic/{p-1350a9c2.entry.js → p-ae371c25.entry.js} +1 -1
  407. package/dist/ionic/p-b6839dbe.entry.js +4 -0
  408. package/dist/ionic/p-b7bef03d.system.js +4 -0
  409. package/dist/ionic/{p-5d7ea80a.system.entry.js → p-b7e1017a.system.entry.js} +1 -1
  410. package/dist/ionic/{p-2e2c1a93.system.entry.js → p-b8ed1419.system.entry.js} +1 -1
  411. package/dist/ionic/p-ba3a434f.system.entry.js +4 -0
  412. package/dist/ionic/p-bd9cd14e.system.js +4 -0
  413. package/dist/ionic/p-be5cf9f9.system.entry.js +4 -0
  414. package/dist/ionic/{p-c7e16491.js → p-be81d4c0.js} +1 -1
  415. package/dist/ionic/p-c160c3e1.system.entry.js +4 -0
  416. package/dist/ionic/p-c2c4da88.entry.js +4 -0
  417. package/dist/ionic/{p-b2a2c6cf.system.entry.js → p-c7137d57.system.entry.js} +1 -1
  418. package/dist/ionic/p-c7914648.entry.js +4 -0
  419. package/dist/ionic/{p-5ef51d63.entry.js → p-c7e23c59.entry.js} +1 -1
  420. package/dist/ionic/p-ca48f040.js +4 -0
  421. package/dist/ionic/{p-488bc4e4.system.entry.js → p-cc984799.system.entry.js} +1 -1
  422. package/dist/ionic/{p-2690b1de.js → p-cf0e9e1e.js} +1 -1
  423. package/dist/ionic/{p-34b11c24.js → p-d16139c2.js} +1 -1
  424. package/dist/ionic/{p-d60342e3.js → p-d24f5d16.js} +1 -1
  425. package/dist/ionic/p-d9a384b9.entry.js +4 -0
  426. package/dist/ionic/p-ddda4235.system.js +4 -0
  427. package/dist/ionic/p-e5be3dfb.js +4 -0
  428. package/dist/ionic/p-e9fc0e09.system.entry.js +4 -0
  429. package/dist/ionic/{p-dc672c3a.entry.js → p-eb660bf2.entry.js} +1 -1
  430. package/dist/ionic/{p-c76e43a2.system.entry.js → p-ebcb711f.system.entry.js} +1 -1
  431. package/dist/ionic/{p-91d713b7.system.entry.js → p-ec46d513.system.entry.js} +1 -1
  432. package/dist/ionic/{p-8635f5e6.system.js → p-ec680233.system.js} +1 -1
  433. package/dist/ionic/{p-aee3f804.system.entry.js → p-ec85f7f5.system.entry.js} +1 -1
  434. package/dist/ionic/{p-9ea607bd.system.js → p-ed6d9792.system.js} +2 -2
  435. package/dist/ionic/{p-da5e7dbe.system.entry.js → p-edd8f5f9.system.entry.js} +1 -1
  436. package/dist/ionic/p-ee9841a3.js +4 -0
  437. package/dist/ionic/{p-067db520.system.entry.js → p-ef0b1f01.system.entry.js} +1 -1
  438. package/dist/ionic/{p-33fb4e9d.entry.js → p-f0e78055.entry.js} +1 -1
  439. package/dist/ionic/{p-d75bce6a.system.js → p-f0fe3aa8.system.js} +1 -1
  440. package/dist/ionic/p-f1cc6c18.system.entry.js +4 -0
  441. package/dist/ionic/{p-76bb8eb2.entry.js → p-f32b396b.entry.js} +1 -1
  442. package/dist/ionic/{p-16b7cfc2.entry.js → p-f4519e12.entry.js} +1 -1
  443. package/dist/ionic/{p-4b1364c9.entry.js → p-f48ea493.entry.js} +1 -1
  444. package/dist/ionic/{p-44d98be5.system.entry.js → p-f4e225e1.system.entry.js} +1 -1
  445. package/dist/ionic/{p-89bd4ed2.entry.js → p-f9286a3b.entry.js} +1 -1
  446. package/dist/ionic/p-fa23b5f4.entry.js +4 -0
  447. package/dist/ionic/p-fb229af3.entry.js +4 -0
  448. package/dist/ionic/p-fe4b96e6.entry.js +4 -0
  449. package/dist/ionic/p-fe66d1a5.entry.js +4 -0
  450. package/dist/ionic/p-ffd50854.system.entry.js +4 -0
  451. package/dist/types/components/app/app.d.ts +0 -2
  452. package/dist/types/global/ionic-global.d.ts +2 -0
  453. package/dist/types/stencil-public-runtime.d.ts +0 -4
  454. package/dist/types/utils/focus-visible.d.ts +1 -0
  455. package/hydrate/index.d.ts +0 -6
  456. package/hydrate/index.js +384 -514
  457. package/hydrate/index.mjs +384 -514
  458. package/package.json +2 -2
  459. package/components/hardware-back-button.js +0 -115
  460. package/components/index8.js +0 -128
  461. package/dist/cjs/hardware-back-button-35a9ebdb.js +0 -122
  462. package/dist/cjs/index-5915f9b3.js +0 -38
  463. package/dist/cjs/index-c8d52405.js +0 -10
  464. package/dist/cjs/ionic-global-2fc6b860.js +0 -237
  465. package/dist/esm/hardware-back-button-3dd2cf5a.js +0 -116
  466. package/dist/esm/index-79b30591.js +0 -167
  467. package/dist/esm/index-9b0d46f4.js +0 -34
  468. package/dist/esm/index-a5d50daf.js +0 -7
  469. package/dist/esm/ionic-global-aba82484.js +0 -231
  470. package/dist/esm-es5/animation-eab5a4ca.js +0 -4
  471. package/dist/esm-es5/app-globals-cef8aa6d.js +0 -4
  472. package/dist/esm-es5/capacitor-59395cbd.js +0 -4
  473. package/dist/esm-es5/data-ae11fd43.js +0 -4
  474. package/dist/esm-es5/focus-visible-dd40d69f.js +0 -4
  475. package/dist/esm-es5/hardware-back-button-3dd2cf5a.js +0 -4
  476. package/dist/esm-es5/index-3ed04e6d.js +0 -5
  477. package/dist/esm-es5/index-42907296.js +0 -4
  478. package/dist/esm-es5/index-5cc724f3.js +0 -4
  479. package/dist/esm-es5/index-79b30591.js +0 -4
  480. package/dist/esm-es5/index-9b0d46f4.js +0 -4
  481. package/dist/esm-es5/index-a5d50daf.js +0 -4
  482. package/dist/esm-es5/index-deb1a83e.js +0 -4
  483. package/dist/esm-es5/input-shims-0314bbe5.js +0 -4
  484. package/dist/esm-es5/input.utils-09c71bc7.js +0 -4
  485. package/dist/esm-es5/ionic-global-aba82484.js +0 -4
  486. package/dist/esm-es5/ios.transition-903646a5.js +0 -4
  487. package/dist/esm-es5/keyboard-52278bd7.js +0 -4
  488. package/dist/esm-es5/keyboard-controller-ec5c2bfa.js +0 -4
  489. package/dist/esm-es5/md.transition-92c7f8a6.js +0 -4
  490. package/dist/esm-es5/notch-controller-55b09e11.js +0 -4
  491. package/dist/esm-es5/overlays-d1a2f8a8.js +0 -4
  492. package/dist/esm-es5/status-tap-97e323a9.js +0 -4
  493. package/dist/ionic/p-0047371d.system.entry.js +0 -4
  494. package/dist/ionic/p-019fe44c.system.entry.js +0 -4
  495. package/dist/ionic/p-05399319.entry.js +0 -4
  496. package/dist/ionic/p-06e58c4e.js +0 -4
  497. package/dist/ionic/p-06fee233.js +0 -4
  498. package/dist/ionic/p-0956b807.system.entry.js +0 -4
  499. package/dist/ionic/p-0b61b67e.system.js +0 -4
  500. package/dist/ionic/p-0bfdb16f.system.js +0 -4
  501. package/dist/ionic/p-0c06e09b.system.js +0 -4
  502. package/dist/ionic/p-0dc1d769.entry.js +0 -4
  503. package/dist/ionic/p-0f9c24fe.system.js +0 -4
  504. package/dist/ionic/p-14616c10.system.entry.js +0 -4
  505. package/dist/ionic/p-149da974.system.js +0 -4
  506. package/dist/ionic/p-192e07b1.system.entry.js +0 -4
  507. package/dist/ionic/p-1ca23ae9.system.entry.js +0 -4
  508. package/dist/ionic/p-1dfc11b3.system.js +0 -4
  509. package/dist/ionic/p-1e4371bd.js +0 -4
  510. package/dist/ionic/p-2067d815.system.entry.js +0 -4
  511. package/dist/ionic/p-2583e966.js +0 -4
  512. package/dist/ionic/p-263a3f91.system.js +0 -4
  513. package/dist/ionic/p-2b7827c7.js +0 -4
  514. package/dist/ionic/p-2e5ee828.system.entry.js +0 -4
  515. package/dist/ionic/p-2e6cf7f2.js +0 -4
  516. package/dist/ionic/p-3447e604.system.entry.js +0 -4
  517. package/dist/ionic/p-3b2c0ca4.entry.js +0 -4
  518. package/dist/ionic/p-3c8001c7.system.entry.js +0 -4
  519. package/dist/ionic/p-4029255b.system.entry.js +0 -4
  520. package/dist/ionic/p-428db536.entry.js +0 -4
  521. package/dist/ionic/p-42f9a951.system.entry.js +0 -4
  522. package/dist/ionic/p-46bac798.entry.js +0 -4
  523. package/dist/ionic/p-49c26aa9.entry.js +0 -4
  524. package/dist/ionic/p-4ad055dc.system.entry.js +0 -4
  525. package/dist/ionic/p-4c2d5b80.system.js +0 -4
  526. package/dist/ionic/p-4d81423b.entry.js +0 -4
  527. package/dist/ionic/p-4e7b0cee.entry.js +0 -4
  528. package/dist/ionic/p-4fe468c2.entry.js +0 -4
  529. package/dist/ionic/p-51ae8a06.system.entry.js +0 -4
  530. package/dist/ionic/p-56435093.js +0 -4
  531. package/dist/ionic/p-59a394ad.system.js +0 -5
  532. package/dist/ionic/p-5d5d5073.entry.js +0 -4
  533. package/dist/ionic/p-5d6c0bf8.system.js +0 -4
  534. package/dist/ionic/p-5e94453a.entry.js +0 -4
  535. package/dist/ionic/p-600a4ea0.js +0 -4
  536. package/dist/ionic/p-62b04b4c.entry.js +0 -4
  537. package/dist/ionic/p-663fe7c8.system.entry.js +0 -4
  538. package/dist/ionic/p-68da7fc8.system.js +0 -4
  539. package/dist/ionic/p-6ca2a6af.entry.js +0 -4
  540. package/dist/ionic/p-6f465cce.js +0 -4
  541. package/dist/ionic/p-714841be.system.js +0 -4
  542. package/dist/ionic/p-72812e99.js +0 -4
  543. package/dist/ionic/p-72bc8a1c.js +0 -4
  544. package/dist/ionic/p-7414228b.js +0 -5
  545. package/dist/ionic/p-792919fd.system.js +0 -4
  546. package/dist/ionic/p-7b30edcc.js +0 -4
  547. package/dist/ionic/p-7e07fb64.entry.js +0 -4
  548. package/dist/ionic/p-7e497250.system.entry.js +0 -4
  549. package/dist/ionic/p-933e9e71.entry.js +0 -4
  550. package/dist/ionic/p-96cc4814.js +0 -4
  551. package/dist/ionic/p-9f8740b2.entry.js +0 -4
  552. package/dist/ionic/p-a15ddedb.system.js +0 -4
  553. package/dist/ionic/p-a8775bf9.entry.js +0 -4
  554. package/dist/ionic/p-abc5c0a4.system.entry.js +0 -4
  555. package/dist/ionic/p-abe101da.system.js +0 -4
  556. package/dist/ionic/p-aed9cc5b.entry.js +0 -4
  557. package/dist/ionic/p-b69c1e65.system.entry.js +0 -4
  558. package/dist/ionic/p-b719790b.js +0 -4
  559. package/dist/ionic/p-b8157bb5.system.entry.js +0 -4
  560. package/dist/ionic/p-bae531fb.system.entry.js +0 -4
  561. package/dist/ionic/p-c468af8a.system.js +0 -4
  562. package/dist/ionic/p-c57d792e.entry.js +0 -4
  563. package/dist/ionic/p-c61cc894.js +0 -4
  564. package/dist/ionic/p-c8e78b70.system.entry.js +0 -4
  565. package/dist/ionic/p-cc3e2b52.entry.js +0 -4
  566. package/dist/ionic/p-d073ba84.entry.js +0 -4
  567. package/dist/ionic/p-d0f8d0aa.entry.js +0 -4
  568. package/dist/ionic/p-d47265c8.js +0 -4
  569. package/dist/ionic/p-d65d9c9c.system.entry.js +0 -4
  570. package/dist/ionic/p-d6e463ee.system.entry.js +0 -4
  571. package/dist/ionic/p-d8ace0cb.entry.js +0 -4
  572. package/dist/ionic/p-d8dcfbf3.system.entry.js +0 -4
  573. package/dist/ionic/p-e351e0e3.entry.js +0 -4
  574. package/dist/ionic/p-eec4b4ce.entry.js +0 -4
  575. package/dist/ionic/p-f22b3a75.js +0 -4
  576. package/dist/ionic/p-f367478b.js +0 -4
  577. package/dist/ionic/p-f36c9945.system.entry.js +0 -4
  578. package/dist/ionic/p-fc9b4e5a.entry.js +0 -4
  579. package/dist/ionic/p-fec56d82.js +0 -4
  580. package/dist/ionic/p-ff4b7e40.system.js +0 -4
package/hydrate/index.js CHANGED
@@ -7,8 +7,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
7
7
 
8
8
  var stream = require('stream');
9
9
 
10
- const modeResolutionChain = [];
11
-
12
10
  function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResults, $stencilAfterHydrate, $stencilHydrateResolve) {
13
11
  var globalThis = $stencilWindow;
14
12
  var self = $stencilWindow;
@@ -132,7 +130,7 @@ const NAMESPACE = 'ionic';
132
130
  const BUILD = /* ionic */ { allRenderFn: false, appendChildSlotFix: false, asyncLoading: true, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: false, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: true, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", 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, shadowDomShim: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, 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 };
133
131
 
134
132
  /*
135
- Stencil Hydrate Platform v4.21.0-dev.1726257631.b82b008 | MIT Licensed | https://stenciljs.com
133
+ Stencil Hydrate Platform v4.21.0 | MIT Licensed | https://stenciljs.com
136
134
  */
137
135
  var __defProp = Object.defineProperty;
138
136
  var __export = (target, all) => {
@@ -613,7 +611,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
613
611
  if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
614
612
  if (styleContainerNode.nodeName === "HEAD") {
615
613
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
616
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
614
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : document.querySelector("style");
617
615
  styleContainerNode.insertBefore(styleElm, referenceNode2);
618
616
  } else if ("host" in styleContainerNode) {
619
617
  styleContainerNode.prepend(styleElm);
@@ -2374,7 +2372,7 @@ var Build = {
2374
2372
  isTesting: false
2375
2373
  };
2376
2374
  var styles = /* @__PURE__ */ new Map();
2377
-
2375
+ var modeResolutionChain = [];
2378
2376
 
2379
2377
  const transitionEndAsync = (el, expectedDuration = 0) => {
2380
2378
  return new Promise((resolve) => {
@@ -2616,7 +2614,7 @@ const focusVisibleElement = (el) => {
2616
2614
  * which will let us explicitly set the elements to focus.
2617
2615
  */
2618
2616
  if (el.classList.contains('ion-focusable')) {
2619
- const app = el.closest('ion-app');
2617
+ const app = el.closest('ion-app, .ion-app');
2620
2618
  if (app) {
2621
2619
  app.setFocus([el]);
2622
2620
  }
@@ -2778,6 +2776,55 @@ class Config {
2778
2776
  }
2779
2777
  const config = /*@__PURE__*/ new Config();
2780
2778
 
2779
+ const win$1 = typeof window !== 'undefined' ? window : undefined;
2780
+ const doc = typeof document !== 'undefined' ? document : undefined;
2781
+
2782
+ /**
2783
+ * CloseWatcher is a newer API that lets
2784
+ * use detect the hardware back button event
2785
+ * in a web browser: https://caniuse.com/?search=closewatcher
2786
+ * However, not every browser supports it yet.
2787
+ *
2788
+ * This needs to be a function so that we can
2789
+ * check the config once it has been set.
2790
+ * Otherwise, this code would be evaluated the
2791
+ * moment this file is evaluated which could be
2792
+ * before the config is set.
2793
+ */
2794
+ const shouldUseCloseWatcher = () => config.get('experimentalCloseWatcher', false) && win$1 !== undefined && 'CloseWatcher' in win$1;
2795
+ const OVERLAY_BACK_BUTTON_PRIORITY = 100;
2796
+ const MENU_BACK_BUTTON_PRIORITY = 99; // 1 less than overlay priority since menu is displayed behind overlays
2797
+
2798
+ /**
2799
+ * Logs a warning to the console with an Ionic prefix
2800
+ * to indicate the library that is warning the developer.
2801
+ *
2802
+ * @param message - The string message to be logged to the console.
2803
+ */
2804
+ const printIonWarning = (message, ...params) => {
2805
+ return console.warn(`[Ionic Warning]: ${message}`, ...params);
2806
+ };
2807
+ /*
2808
+ * Logs an error to the console with an Ionic prefix
2809
+ * to indicate the library that is warning the developer.
2810
+ *
2811
+ * @param message - The string message to be logged to the console.
2812
+ * @param params - Additional arguments to supply to the console.error.
2813
+ */
2814
+ const printIonError = (message, ...params) => {
2815
+ return console.error(`[Ionic Error]: ${message}`, ...params);
2816
+ };
2817
+ /**
2818
+ * Prints an error informing developers that an implementation requires an element to be used
2819
+ * within a specific selector.
2820
+ *
2821
+ * @param el The web component element this is requiring the element.
2822
+ * @param targetSelectors The selector or selectors that were not found.
2823
+ */
2824
+ const printRequiredElementError = (el, ...targetSelectors) => {
2825
+ return console.error(`<${el.tagName.toLowerCase()}> must be used inside ${targetSelectors.join(' or ')}.`);
2826
+ };
2827
+
2781
2828
  const getPlatforms = (win) => setupPlatforms(win);
2782
2829
  const isPlatform = (winOrPlatform, platform) => {
2783
2830
  if (typeof winOrPlatform === 'string') {
@@ -3218,36 +3265,6 @@ class Accordion {
3218
3265
  }
3219
3266
  let accordionIds = 0;
3220
3267
 
3221
- /**
3222
- * Logs a warning to the console with an Ionic prefix
3223
- * to indicate the library that is warning the developer.
3224
- *
3225
- * @param message - The string message to be logged to the console.
3226
- */
3227
- const printIonWarning = (message, ...params) => {
3228
- return console.warn(`[Ionic Warning]: ${message}`, ...params);
3229
- };
3230
- /*
3231
- * Logs an error to the console with an Ionic prefix
3232
- * to indicate the library that is warning the developer.
3233
- *
3234
- * @param message - The string message to be logged to the console.
3235
- * @param params - Additional arguments to supply to the console.error.
3236
- */
3237
- const printIonError = (message, ...params) => {
3238
- return console.error(`[Ionic Error]: ${message}`, ...params);
3239
- };
3240
- /**
3241
- * Prints an error informing developers that an implementation requires an element to be used
3242
- * within a specific selector.
3243
- *
3244
- * @param el The web component element this is requiring the element.
3245
- * @param targetSelectors The selector or selectors that were not found.
3246
- */
3247
- const printRequiredElementError = (el, ...targetSelectors) => {
3248
- return console.error(`<${el.tagName.toLowerCase()}> must be used inside ${targetSelectors.join(' or ')}.`);
3249
- };
3250
-
3251
3268
  const accordionGroupIosCss = ":host{display:block}:host(.accordion-group-expand-inset){-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanding),:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanded){border-bottom:none}";
3252
3269
  var IonAccordionGroupIosStyle0 = accordionGroupIosCss;
3253
3270
 
@@ -3486,9 +3503,6 @@ class AccordionGroup {
3486
3503
  }; }
3487
3504
  }
3488
3505
 
3489
- const win$1 = typeof window !== 'undefined' ? window : undefined;
3490
- const doc = typeof document !== 'undefined' ? document : undefined;
3491
-
3492
3506
  const getCapacitor = () => {
3493
3507
  if (win$1 !== undefined) {
3494
3508
  return win$1.Capacitor;
@@ -4463,22 +4477,6 @@ const focusElementInContext = (hostToFocus, fallbackElement) => {
4463
4477
  }
4464
4478
  };
4465
4479
 
4466
- /**
4467
- * CloseWatcher is a newer API that lets
4468
- * use detect the hardware back button event
4469
- * in a web browser: https://caniuse.com/?search=closewatcher
4470
- * However, not every browser supports it yet.
4471
- *
4472
- * This needs to be a function so that we can
4473
- * check the config once it has been set.
4474
- * Otherwise, this code would be evaluated the
4475
- * moment this file is evaluated which could be
4476
- * before the config is set.
4477
- */
4478
- const shouldUseCloseWatcher = () => config.get('experimentalCloseWatcher', false) && win$1 !== undefined && 'CloseWatcher' in win$1;
4479
- const OVERLAY_BACK_BUTTON_PRIORITY = 100;
4480
- const MENU_BACK_BUTTON_PRIORITY = 99; // 1 less than overlay priority since menu is displayed behind overlays
4481
-
4482
4480
  // TODO(FW-2832): types
4483
4481
  const attachComponent = async (delegate, container, component, cssClasses, componentProps, inline) => {
4484
4482
  var _a;
@@ -4578,7 +4576,7 @@ const CoreDelegate = () => {
4578
4576
  * Get the root of the app and
4579
4577
  * add the overlay there.
4580
4578
  */
4581
- const app = document.querySelector('ion-app') || document.body;
4579
+ const app = document.querySelector('ion-app, .ion-app') || document.body;
4582
4580
  /**
4583
4581
  * Create a placeholder comment so that
4584
4582
  * we can return this component to where
@@ -5174,7 +5172,7 @@ const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLeaveAnim
5174
5172
  return true;
5175
5173
  };
5176
5174
  const getAppRoot = (doc) => {
5177
- return doc.querySelector('ion-app') || doc.body;
5175
+ return doc.querySelector('ion-app, .ion-app') || doc.body;
5178
5176
  };
5179
5177
  const overlayAnimation = async (overlay, animationBuilder, baseEl, opts) => {
5180
5178
  // Make overlay visible in case it's hidden
@@ -7303,6 +7301,84 @@ const buttonClass$2 = (button) => {
7303
7301
  return Object.assign({ 'alert-button': true, 'ion-focusable': true, 'ion-activatable': true, [`alert-button-role-${button.role}`]: button.role !== undefined }, getClassMap(button.cssClass));
7304
7302
  };
7305
7303
 
7304
+ const ION_FOCUSED = 'ion-focused';
7305
+ const ION_FOCUSABLE = 'ion-focusable';
7306
+ const FOCUS_KEYS = [
7307
+ 'Tab',
7308
+ 'ArrowDown',
7309
+ 'Space',
7310
+ 'Escape',
7311
+ ' ',
7312
+ 'Shift',
7313
+ 'Enter',
7314
+ 'ArrowLeft',
7315
+ 'ArrowRight',
7316
+ 'ArrowUp',
7317
+ 'Home',
7318
+ 'End',
7319
+ ];
7320
+ let focusVisibleUtility = null;
7321
+ const getOrInitFocusVisibleUtility = () => {
7322
+ if (!focusVisibleUtility) {
7323
+ focusVisibleUtility = startFocusVisible();
7324
+ }
7325
+ return focusVisibleUtility;
7326
+ };
7327
+ const startFocusVisible = (rootEl) => {
7328
+ let currentFocus = [];
7329
+ let keyboardMode = true;
7330
+ const ref = rootEl ? rootEl.shadowRoot : document;
7331
+ const root = rootEl ? rootEl : document.body;
7332
+ const setFocus = (elements) => {
7333
+ currentFocus.forEach((el) => el.classList.remove(ION_FOCUSED));
7334
+ elements.forEach((el) => el.classList.add(ION_FOCUSED));
7335
+ currentFocus = elements;
7336
+ };
7337
+ const pointerDown = () => {
7338
+ keyboardMode = false;
7339
+ setFocus([]);
7340
+ };
7341
+ const onKeydown = (ev) => {
7342
+ keyboardMode = FOCUS_KEYS.includes(ev.key);
7343
+ if (!keyboardMode) {
7344
+ setFocus([]);
7345
+ }
7346
+ };
7347
+ const onFocusin = (ev) => {
7348
+ if (keyboardMode && ev.composedPath !== undefined) {
7349
+ const toFocus = ev.composedPath().filter((el) => {
7350
+ // TODO(FW-2832): type
7351
+ if (el.classList) {
7352
+ return el.classList.contains(ION_FOCUSABLE);
7353
+ }
7354
+ return false;
7355
+ });
7356
+ setFocus(toFocus);
7357
+ }
7358
+ };
7359
+ const onFocusout = () => {
7360
+ if (ref.activeElement === root) {
7361
+ setFocus([]);
7362
+ }
7363
+ };
7364
+ ref.addEventListener('keydown', onKeydown);
7365
+ ref.addEventListener('focusin', onFocusin);
7366
+ ref.addEventListener('focusout', onFocusout);
7367
+ ref.addEventListener('touchstart', pointerDown, { passive: true });
7368
+ ref.addEventListener('mousedown', pointerDown);
7369
+ const destroy = () => {
7370
+ ref.removeEventListener('keydown', onKeydown);
7371
+ ref.removeEventListener('focusin', onFocusin);
7372
+ ref.removeEventListener('focusout', onFocusout);
7373
+ ref.removeEventListener('touchstart', pointerDown);
7374
+ ref.removeEventListener('mousedown', pointerDown);
7375
+ };
7376
+ return {
7377
+ destroy,
7378
+ setFocus,
7379
+ };
7380
+ };
7381
+
7306
7382
  const appCss = "html.plt-mobile ion-app{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}html.plt-mobile ion-app [contenteditable]{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}ion-app.force-statusbar-padding{--ion-safe-area-top:20px}";
7307
7383
  var IonAppStyle0 = appCss;
7308
7384
 
@@ -7310,8 +7386,6 @@ class App {
7310
7386
  constructor(hostRef) {
7311
7387
  registerInstance(this, hostRef);
7312
7388
  }
7313
- componentDidLoad() {
7314
- }
7315
7389
  /**
7316
7390
  * @internal
7317
7391
  * Used to set focus on an element that uses `ion-focusable`.
@@ -7323,13 +7397,12 @@ class App {
7323
7397
  * presented as a result of keyboard action.)
7324
7398
  */
7325
7399
  async setFocus(elements) {
7326
- if (this.focusVisible) {
7327
- this.focusVisible.setFocus(elements);
7328
- }
7400
+ const focusVisible = getOrInitFocusVisibleUtility();
7401
+ focusVisible.setFocus(elements);
7329
7402
  }
7330
7403
  render() {
7331
7404
  const mode = getIonMode$1(this);
7332
- return (hAsync(Host, { key: 'a562850f242d9d45573e35efdd4bd178254677ef', class: {
7405
+ return (hAsync(Host, { key: '4773923a95e44577ff634c0ae6f1a56f41b54088', class: {
7333
7406
  [mode]: true,
7334
7407
  'ion-page': true,
7335
7408
  'force-statusbar-padding': config.getBoolean('_forceStatusbarPadding'),
@@ -9101,7 +9174,7 @@ const getPageElement = (el) => {
9101
9174
  * between the popover and the edges of the screen. But if the popover contains
9102
9175
  * its own page element, we should use that instead.
9103
9176
  */
9104
- const page = el.closest('ion-app, ion-page, .ion-page, page-inner, .popover-content');
9177
+ const page = el.closest('ion-app, .ion-app, ion-page, .ion-page, page-inner, .popover-content');
9105
9178
  if (page) {
9106
9179
  return page;
9107
9180
  }
@@ -9135,77 +9208,6 @@ const updateScrollDetail = (detail, el, timestamp, shouldStart) => {
9135
9208
  }
9136
9209
  };
9137
9210
 
9138
- const ION_FOCUSED = 'ion-focused';
9139
- const ION_FOCUSABLE = 'ion-focusable';
9140
- const FOCUS_KEYS = [
9141
- 'Tab',
9142
- 'ArrowDown',
9143
- 'Space',
9144
- 'Escape',
9145
- ' ',
9146
- 'Shift',
9147
- 'Enter',
9148
- 'ArrowLeft',
9149
- 'ArrowRight',
9150
- 'ArrowUp',
9151
- 'Home',
9152
- 'End',
9153
- ];
9154
- const startFocusVisible = (rootEl) => {
9155
- let currentFocus = [];
9156
- let keyboardMode = true;
9157
- const ref = rootEl ? rootEl.shadowRoot : document;
9158
- const root = rootEl ? rootEl : document.body;
9159
- const setFocus = (elements) => {
9160
- currentFocus.forEach((el) => el.classList.remove(ION_FOCUSED));
9161
- elements.forEach((el) => el.classList.add(ION_FOCUSED));
9162
- currentFocus = elements;
9163
- };
9164
- const pointerDown = () => {
9165
- keyboardMode = false;
9166
- setFocus([]);
9167
- };
9168
- const onKeydown = (ev) => {
9169
- keyboardMode = FOCUS_KEYS.includes(ev.key);
9170
- if (!keyboardMode) {
9171
- setFocus([]);
9172
- }
9173
- };
9174
- const onFocusin = (ev) => {
9175
- if (keyboardMode && ev.composedPath !== undefined) {
9176
- const toFocus = ev.composedPath().filter((el) => {
9177
- // TODO(FW-2832): type
9178
- if (el.classList) {
9179
- return el.classList.contains(ION_FOCUSABLE);
9180
- }
9181
- return false;
9182
- });
9183
- setFocus(toFocus);
9184
- }
9185
- };
9186
- const onFocusout = () => {
9187
- if (ref.activeElement === root) {
9188
- setFocus([]);
9189
- }
9190
- };
9191
- ref.addEventListener('keydown', onKeydown);
9192
- ref.addEventListener('focusin', onFocusin);
9193
- ref.addEventListener('focusout', onFocusout);
9194
- ref.addEventListener('touchstart', pointerDown, { passive: true });
9195
- ref.addEventListener('mousedown', pointerDown);
9196
- const destroy = () => {
9197
- ref.removeEventListener('keydown', onKeydown);
9198
- ref.removeEventListener('focusin', onFocusin);
9199
- ref.removeEventListener('focusout', onFocusout);
9200
- ref.removeEventListener('touchstart', pointerDown);
9201
- ref.removeEventListener('mousedown', pointerDown);
9202
- };
9203
- return {
9204
- destroy,
9205
- setFocus,
9206
- };
9207
- };
9208
-
9209
9211
  /**
9210
9212
  * Returns true if the selected day is equal to the reference day
9211
9213
  */
@@ -13436,7 +13438,7 @@ const getResizeContainer = (resizeMode) => {
13436
13438
  * on that. In the event `ion-app` is not available then
13437
13439
  * we can fall back to `body`.
13438
13440
  */
13439
- const ionApp = doc.querySelector('ion-app');
13441
+ const ionApp = doc.querySelector('ion-app, .ion-app');
13440
13442
  return ionApp !== null && ionApp !== void 0 ? ionApp : doc.body;
13441
13443
  };
13442
13444
  /**
@@ -13623,7 +13625,7 @@ class Footer {
13623
13625
  const hasFade = collapse === 'fade';
13624
13626
  this.destroyCollapsibleFooter();
13625
13627
  if (hasFade) {
13626
- const pageEl = this.el.closest('ion-app,ion-page,.ion-page,page-inner');
13628
+ const pageEl = this.el.closest('ion-app,.ion-app,ion-page,.ion-page,page-inner');
13627
13629
  const contentEl = pageEl ? findIonContent(pageEl) : null;
13628
13630
  if (!contentEl) {
13629
13631
  printIonContentErrorMsg(this.el);
@@ -13682,7 +13684,7 @@ class Footer {
13682
13684
  const mode = getIonMode$1(this);
13683
13685
  const tabs = this.el.closest('ion-tabs');
13684
13686
  const tabBar = tabs === null || tabs === void 0 ? void 0 : tabs.querySelector(':scope > ion-tab-bar');
13685
- return (hAsync(Host, { key: '5da19dc38ba73e1ddfd1bef3ebd485105d77c751', role: "contentinfo", class: {
13687
+ return (hAsync(Host, { key: '1ccb49da6f7c9f1f883904ae4b931fac5f341216', role: "contentinfo", class: {
13686
13688
  [mode]: true,
13687
13689
  // Used internally for styling
13688
13690
  [`footer-${mode}`]: true,
@@ -13690,7 +13692,7 @@ class Footer {
13690
13692
  [`footer-translucent-${mode}`]: translucent,
13691
13693
  ['footer-toolbar-padding']: !this.keyboardVisible && (!tabBar || tabBar.slot !== 'bottom'),
13692
13694
  [`footer-collapse-${collapse}`]: collapse !== undefined,
13693
- } }, mode === 'ios' && translucent && hAsync("div", { key: 'fafad08090a33d8c4e8a5b63d61929dcb89aab47', class: "footer-background" }), hAsync("slot", { key: 'e0a443d346afa55e4317c0bc1263fdbe3c619559' })));
13695
+ } }, mode === 'ios' && translucent && hAsync("div", { key: 'a910070df4e5faee7b135d10364510c612cd2587', class: "footer-background" }), hAsync("slot", { key: '1507567059072ecf7243d6a304079c52eb58455f' })));
13694
13696
  }
13695
13697
  get el() { return getElement(this); }
13696
13698
  static get style() { return {
@@ -13964,7 +13966,7 @@ class Header {
13964
13966
  const hasFade = collapse === 'fade';
13965
13967
  this.destroyCollapsibleHeader();
13966
13968
  if (hasCondense) {
13967
- const pageEl = this.el.closest('ion-app,ion-page,.ion-page,page-inner');
13969
+ const pageEl = this.el.closest('ion-app,.ion-app,ion-page,.ion-page,page-inner');
13968
13970
  const contentEl = pageEl ? findIonContent(pageEl) : null;
13969
13971
  // Cloned elements are always needed in iOS transition
13970
13972
  writeTask(() => {
@@ -13975,7 +13977,7 @@ class Header {
13975
13977
  await this.setupCondenseHeader(contentEl, pageEl);
13976
13978
  }
13977
13979
  else if (hasFade) {
13978
- const pageEl = this.el.closest('ion-app,ion-page,.ion-page,page-inner');
13980
+ const pageEl = this.el.closest('ion-app,.ion-app,ion-page,.ion-page,page-inner');
13979
13981
  const contentEl = pageEl ? findIonContent(pageEl) : null;
13980
13982
  if (!contentEl) {
13981
13983
  printIonContentErrorMsg(this.el);
@@ -14055,14 +14057,14 @@ class Header {
14055
14057
  const collapse = this.collapse || 'none';
14056
14058
  // banner role must be at top level, so remove role if inside a menu
14057
14059
  const roleType = hostContext('ion-menu', this.el) ? 'none' : 'banner';
14058
- return (hAsync(Host, Object.assign({ key: 'c687314ef290793a9d633ad20cfc5eeb47621e31', role: roleType, class: {
14060
+ return (hAsync(Host, Object.assign({ key: '6a248ea9b21b1122084069ba99477cdde3322158', role: roleType, class: {
14059
14061
  [mode]: true,
14060
14062
  // Used internally for styling
14061
14063
  [`header-${mode}`]: true,
14062
14064
  [`header-translucent`]: this.translucent,
14063
14065
  [`header-collapse-${collapse}`]: true,
14064
14066
  [`header-translucent-${mode}`]: this.translucent,
14065
- } }, inheritedAttributes), mode === 'ios' && translucent && hAsync("div", { key: 'b429996046082405a91e7c23f95516db0b736f12', class: "header-background" }), hAsync("slot", { key: 'e17a8965f8d3a33c1bfcb056c153d8242e5229fa' })));
14067
+ } }, inheritedAttributes), mode === 'ios' && translucent && hAsync("div", { key: 'c3e8bc6dfacd2df1a2611a660dcabc3b876dd3f9', class: "header-background" }), hAsync("slot", { key: '6f4829f92a05b97ae7d6e1ac2141934ee6041c4a' })));
14066
14068
  }
14067
14069
  get el() { return getElement(this); }
14068
14070
  static get style() { return {
@@ -33264,105 +33266,8 @@ exports.hydrateApp = hydrateApp;
33264
33266
  hydrateAppClosure($stencilWindow);
33265
33267
  }
33266
33268
 
33267
- // src/app-data/index.ts
33268
- var BUILD = {
33269
- allRenderFn: false,
33270
- cmpDidLoad: true,
33271
- cmpDidUnload: false,
33272
- cmpDidUpdate: true,
33273
- cmpDidRender: true,
33274
- cmpWillLoad: true,
33275
- cmpWillUpdate: true,
33276
- cmpWillRender: true,
33277
- connectedCallback: true,
33278
- disconnectedCallback: true,
33279
- element: true,
33280
- event: true,
33281
- hasRenderFn: true,
33282
- lifecycle: true,
33283
- hostListener: true,
33284
- hostListenerTargetWindow: true,
33285
- hostListenerTargetDocument: true,
33286
- hostListenerTargetBody: true,
33287
- hostListenerTargetParent: false,
33288
- hostListenerTarget: true,
33289
- member: true,
33290
- method: true,
33291
- mode: true,
33292
- observeAttribute: true,
33293
- prop: true,
33294
- propMutable: true,
33295
- reflect: true,
33296
- scoped: true,
33297
- shadowDom: true,
33298
- slot: true,
33299
- cssAnnotations: true,
33300
- state: true,
33301
- style: true,
33302
- formAssociated: false,
33303
- svg: true,
33304
- updatable: true,
33305
- vdomAttribute: true,
33306
- vdomXlink: true,
33307
- vdomClass: true,
33308
- vdomFunctional: true,
33309
- vdomKey: true,
33310
- vdomListener: true,
33311
- vdomRef: true,
33312
- vdomPropOrAttr: true,
33313
- vdomRender: true,
33314
- vdomStyle: true,
33315
- vdomText: true,
33316
- watchCallback: true,
33317
- taskQueue: true,
33318
- hotModuleReplacement: false,
33319
- isDebug: false,
33320
- isDev: false,
33321
- isTesting: false,
33322
- hydrateServerSide: false,
33323
- hydrateClientSide: false,
33324
- lifecycleDOMEvents: false,
33325
- lazyLoad: false,
33326
- profile: false,
33327
- slotRelocation: true,
33328
- // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
33329
- appendChildSlotFix: false,
33330
- // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
33331
- cloneNodeFix: false,
33332
- hydratedAttribute: false,
33333
- hydratedClass: true,
33334
- // TODO(STENCIL-1305): remove this option
33335
- scriptDataOpts: false,
33336
- // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
33337
- scopedSlotTextContentFix: false,
33338
- // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
33339
- shadowDomShim: false,
33340
- // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
33341
- slotChildNodesFix: false,
33342
- invisiblePrehydration: true,
33343
- propBoolean: true,
33344
- propNumber: true,
33345
- propString: true,
33346
- constructableCSS: true,
33347
- cmpShouldUpdate: true,
33348
- devTools: false,
33349
- shadowDelegatesFocus: true,
33350
- initializeNextTick: false,
33351
- asyncLoading: true,
33352
- asyncQueue: false,
33353
- transformTagName: false,
33354
- attachStyles: true,
33355
- // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
33356
- experimentalSlotFixes: false
33357
- };
33358
- var Env = {};
33359
- var NAMESPACE = (
33360
- /* default */
33361
- "app"
33362
- );
33363
-
33364
33269
  /*
33365
- Stencil Hydrate Runner v4.21.0-dev.1726257631.b82b008 | MIT Licensed | https://stenciljs.com
33270
+ Stencil Hydrate Runner v4.21.0 | MIT Licensed | https://stenciljs.com
33366
33271
  */
33367
33272
  var __defProp = Object.defineProperty;
33368
33273
  var __export = (target, all) => {
@@ -33683,8 +33588,8 @@ function jsCaseToCssCase(str) {
33683
33588
 
33684
33589
  // src/mock-doc/custom-element-registry.ts
33685
33590
  var MockCustomElementRegistry = class {
33686
- constructor(win2) {
33687
- this.win = win2;
33591
+ constructor(win) {
33592
+ this.win = win;
33688
33593
  }
33689
33594
  define(tagName, cstr, options) {
33690
33595
  if (tagName.toLowerCase() !== tagName) {
@@ -33706,19 +33611,19 @@ var MockCustomElementRegistry = class {
33706
33611
  this.__whenDefined.delete(tagName);
33707
33612
  }
33708
33613
  }
33709
- const doc2 = this.win.document;
33710
- if (doc2 != null) {
33711
- const hosts = doc2.querySelectorAll(tagName);
33614
+ const doc = this.win.document;
33615
+ if (doc != null) {
33616
+ const hosts = doc.querySelectorAll(tagName);
33712
33617
  hosts.forEach((host) => {
33713
33618
  if (upgradedElements.has(host) === false) {
33714
- tempDisableCallbacks.add(doc2);
33715
- const upgradedCmp = createCustomElement(this, doc2, tagName);
33619
+ tempDisableCallbacks.add(doc);
33620
+ const upgradedCmp = createCustomElement(this, doc, tagName);
33716
33621
  for (let i = 0; i < host.childNodes.length; i++) {
33717
33622
  const childNode = host.childNodes[i];
33718
33623
  childNode.remove();
33719
33624
  upgradedCmp.appendChild(childNode);
33720
33625
  }
33721
- tempDisableCallbacks.delete(doc2);
33626
+ tempDisableCallbacks.delete(doc);
33722
33627
  if (proxyElements.has(host)) {
33723
33628
  proxyElements.set(host, upgradedCmp);
33724
33629
  }
@@ -33772,8 +33677,8 @@ var MockCustomElementRegistry = class {
33772
33677
  });
33773
33678
  }
33774
33679
  };
33775
- function createCustomElement(customElements2, ownerDocument, tagName) {
33776
- const Cstr = customElements2.get(tagName);
33680
+ function createCustomElement(customElements, ownerDocument, tagName) {
33681
+ const Cstr = customElements.get(tagName);
33777
33682
  if (Cstr != null) {
33778
33683
  const cmp = new Cstr(ownerDocument);
33779
33684
  cmp.nodeName = tagName.toUpperCase();
@@ -33821,8 +33726,8 @@ function connectNode(ownerDocument, node) {
33821
33726
  node.ownerDocument = ownerDocument;
33822
33727
  if (node.nodeType === 1 /* ELEMENT_NODE */) {
33823
33728
  if (ownerDocument != null && node.nodeName.includes("-")) {
33824
- const win2 = ownerDocument.defaultView;
33825
- if (win2 != null && typeof node.connectedCallback === "function" && node.isConnected) {
33729
+ const win = ownerDocument.defaultView;
33730
+ if (win != null && typeof node.connectedCallback === "function" && node.isConnected) {
33826
33731
  fireConnectedCallback(node);
33827
33732
  }
33828
33733
  const shadowRoot = node.shadowRoot;
@@ -38230,7 +38135,7 @@ var OpenElementStack = class {
38230
38135
  get currentTmplContentOrNode() {
38231
38136
  return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current;
38232
38137
  }
38233
- constructor(document2, treeAdapter, handler) {
38138
+ constructor(document, treeAdapter, handler) {
38234
38139
  this.treeAdapter = treeAdapter;
38235
38140
  this.handler = handler;
38236
38141
  this.items = [];
@@ -38238,7 +38143,7 @@ var OpenElementStack = class {
38238
38143
  this.stackTop = -1;
38239
38144
  this.tmplCount = 0;
38240
38145
  this.currentTagId = TAG_ID.UNKNOWN;
38241
- this.current = document2;
38146
+ this.current = document;
38242
38147
  }
38243
38148
  //Index of element
38244
38149
  _indexOf(element) {
@@ -38655,8 +38560,8 @@ var defaultTreeAdapter = {
38655
38560
  getTemplateContent(templateElement) {
38656
38561
  return templateElement.content;
38657
38562
  },
38658
- setDocumentType(document2, name, publicId, systemId) {
38659
- const doctypeNode = document2.childNodes.find((node) => node.nodeName === "#documentType");
38563
+ setDocumentType(document, name, publicId, systemId) {
38564
+ const doctypeNode = document.childNodes.find((node) => node.nodeName === "#documentType");
38660
38565
  if (doctypeNode) {
38661
38566
  doctypeNode.name = name;
38662
38567
  doctypeNode.publicId = publicId;
@@ -38669,14 +38574,14 @@ var defaultTreeAdapter = {
38669
38574
  systemId,
38670
38575
  parentNode: null
38671
38576
  };
38672
- defaultTreeAdapter.appendChild(document2, node);
38577
+ defaultTreeAdapter.appendChild(document, node);
38673
38578
  }
38674
38579
  },
38675
- setDocumentMode(document2, mode) {
38676
- document2.mode = mode;
38580
+ setDocumentMode(document, mode) {
38581
+ document.mode = mode;
38677
38582
  },
38678
- getDocumentMode(document2) {
38679
- return document2.mode;
38583
+ getDocumentMode(document) {
38584
+ return document.mode;
38680
38585
  },
38681
38586
  detachNode(node) {
38682
38587
  if (node.parentNode) {
@@ -39157,7 +39062,7 @@ var defaultParserOptions = {
39157
39062
  onParseError: null
39158
39063
  };
39159
39064
  var Parser = class {
39160
- constructor(options, document2, fragmentContext = null, scriptHandler = null) {
39065
+ constructor(options, document, fragmentContext = null, scriptHandler = null) {
39161
39066
  this.fragmentContext = fragmentContext;
39162
39067
  this.scriptHandler = scriptHandler;
39163
39068
  this.currentToken = null;
@@ -39182,7 +39087,7 @@ var Parser = class {
39182
39087
  if (this.onParseError) {
39183
39088
  this.options.sourceCodeLocationInfo = true;
39184
39089
  }
39185
- this.document = document2 !== null && document2 !== void 0 ? document2 : this.treeAdapter.createDocument();
39090
+ this.document = document !== null && document !== void 0 ? document : this.treeAdapter.createDocument();
39186
39091
  this.tokenizer = new Tokenizer(this.options, this);
39187
39092
  this.activeFormattingElements = new FormattingElementList(this.treeAdapter);
39188
39093
  this.fragmentContextID = fragmentContext ? getTagID(this.treeAdapter.getTagName(fragmentContext)) : TAG_ID.UNKNOWN;
@@ -42159,11 +42064,11 @@ function parseFragment(fragmentContext, html, options) {
42159
42064
  // src/mock-doc/parse-util.ts
42160
42065
  var docParser = /* @__PURE__ */ new WeakMap();
42161
42066
  function parseDocumentUtil(ownerDocument, html) {
42162
- const doc2 = parse(html.trim(), getParser(ownerDocument));
42163
- doc2.documentElement = doc2.firstElementChild;
42164
- doc2.head = doc2.documentElement.firstElementChild;
42165
- doc2.body = doc2.head.nextElementSibling;
42166
- return doc2;
42067
+ const doc = parse(html.trim(), getParser(ownerDocument));
42068
+ doc.documentElement = doc.firstElementChild;
42069
+ doc.head = doc.documentElement.firstElementChild;
42070
+ doc.body = doc.head.nextElementSibling;
42071
+ return doc;
42167
42072
  }
42168
42073
  function parseFragmentUtil(ownerDocument, html) {
42169
42074
  if (typeof html === "string") {
@@ -42181,9 +42086,9 @@ function getParser(ownerDocument) {
42181
42086
  }
42182
42087
  const treeAdapter = {
42183
42088
  createDocument() {
42184
- const doc2 = ownerDocument.createElement("#document" /* DOCUMENT_NODE */);
42185
- doc2["x-mode"] = "no-quirks";
42186
- return doc2;
42089
+ const doc = ownerDocument.createElement("#document" /* DOCUMENT_NODE */);
42090
+ doc["x-mode"] = "no-quirks";
42091
+ return doc;
42187
42092
  },
42188
42093
  setNodeSourceCodeLocation(node, location2) {
42189
42094
  node.sourceCodeLocation = location2;
@@ -42221,22 +42126,22 @@ function getParser(ownerDocument) {
42221
42126
  getTemplateContent(templateElement) {
42222
42127
  return templateElement.content;
42223
42128
  },
42224
- setDocumentType(doc2, name, publicId, systemId) {
42225
- let doctypeNode = doc2.childNodes.find((n) => n.nodeType === 10 /* DOCUMENT_TYPE_NODE */);
42129
+ setDocumentType(doc, name, publicId, systemId) {
42130
+ let doctypeNode = doc.childNodes.find((n) => n.nodeType === 10 /* DOCUMENT_TYPE_NODE */);
42226
42131
  if (doctypeNode == null) {
42227
42132
  doctypeNode = ownerDocument.createDocumentTypeNode();
42228
- doc2.insertBefore(doctypeNode, doc2.firstChild);
42133
+ doc.insertBefore(doctypeNode, doc.firstChild);
42229
42134
  }
42230
42135
  doctypeNode.nodeValue = "!DOCTYPE";
42231
42136
  doctypeNode["x-name"] = name;
42232
42137
  doctypeNode["x-publicId"] = publicId;
42233
42138
  doctypeNode["x-systemId"] = systemId;
42234
42139
  },
42235
- setDocumentMode(doc2, mode) {
42236
- doc2["x-mode"] = mode;
42140
+ setDocumentMode(doc, mode) {
42141
+ doc["x-mode"] = mode;
42237
42142
  },
42238
- getDocumentMode(doc2) {
42239
- return doc2["x-mode"];
42143
+ getDocumentMode(doc) {
42144
+ return doc["x-mode"];
42240
42145
  },
42241
42146
  detachNode(node) {
42242
42147
  node.remove();
@@ -42368,9 +42273,9 @@ var jquery_default = (
42368
42273
  nodeName: "HTML"
42369
42274
  }
42370
42275
  }
42371
- }, function(window2, noGlobal) {
42276
+ }, function(window, noGlobal) {
42372
42277
  "use strict";
42373
- if (!window2.document) {
42278
+ if (!window.document) {
42374
42279
  throw new Error("jQuery requires a window with a document");
42375
42280
  }
42376
42281
  var arr = [];
@@ -42405,16 +42310,16 @@ var jquery_default = (
42405
42310
  }
42406
42311
  return type === "array" || length === 0 || typeof length === "number" && length > 0 && length - 1 in obj;
42407
42312
  }
42408
- var document2 = window2.document;
42313
+ var document = window.document;
42409
42314
  var preservedScriptAttributes = {
42410
42315
  type: true,
42411
42316
  src: true,
42412
42317
  nonce: true,
42413
42318
  noModule: true
42414
42319
  };
42415
- function DOMEval(code, node, doc2) {
42416
- doc2 = doc2 || document2;
42417
- var i2, script = doc2.createElement("script");
42320
+ function DOMEval(code, node, doc) {
42321
+ doc = doc || document;
42322
+ var i2, script = doc.createElement("script");
42418
42323
  script.text = code;
42419
42324
  if (node) {
42420
42325
  for (i2 in preservedScriptAttributes) {
@@ -42423,7 +42328,7 @@ var jquery_default = (
42423
42328
  }
42424
42329
  }
42425
42330
  }
42426
- doc2.head.appendChild(script).parentNode.removeChild(script);
42331
+ doc.head.appendChild(script).parentNode.removeChild(script);
42427
42332
  }
42428
42333
  const jQuery = {};
42429
42334
  var version = "4.0.0-pre+9352011a7.dirty +selector", rhtmlSuffix = /HTML$/i, jQueryOrig = function(selector, context) {
@@ -42560,8 +42465,8 @@ var jquery_default = (
42560
42465
  },
42561
42466
  // Evaluates a script in a provided context; falls back to the global one
42562
42467
  // if not specified.
42563
- globalEval: function(code, options, doc2) {
42564
- DOMEval(code, { nonce: options && options.nonce }, doc2);
42468
+ globalEval: function(code, options, doc) {
42469
+ DOMEval(code, { nonce: options && options.nonce }, doc);
42565
42470
  },
42566
42471
  each: function(obj, callback) {
42567
42472
  var length, i2 = 0;
@@ -42688,9 +42593,9 @@ var jquery_default = (
42688
42593
  }
42689
42594
  var pop = arr.pop;
42690
42595
  var whitespace = "[\\x20\\t\\r\\n\\f]";
42691
- var isIE = document2.documentMode;
42596
+ var isIE = document.documentMode;
42692
42597
  try {
42693
- document2.querySelector(":has(*,:jqfake)");
42598
+ document.querySelector(":has(*,:jqfake)");
42694
42599
  support.cssHas = false;
42695
42600
  } catch (e) {
42696
42601
  support.cssHas = true;
@@ -42722,7 +42627,7 @@ var jquery_default = (
42722
42627
  var rleadingCombinator = new RegExp("^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*");
42723
42628
  var rdescend = new RegExp(whitespace + "|>");
42724
42629
  var rsibling = /[+~]/;
42725
- var documentElement = document2.documentElement;
42630
+ var documentElement = document.documentElement;
42726
42631
  var matches2 = documentElement.matches || documentElement.msMatchesSelector;
42727
42632
  function createCache() {
42728
42633
  var keys = [];
@@ -42891,10 +42796,10 @@ var jquery_default = (
42891
42796
  1
42892
42797
  );
42893
42798
  if (compare & 1) {
42894
- if (a == document2 || a.ownerDocument == document2 && jQuery.contains(document2, a)) {
42799
+ if (a == document || a.ownerDocument == document && jQuery.contains(document, a)) {
42895
42800
  return -1;
42896
42801
  }
42897
- if (b == document2 || b.ownerDocument == document2 && jQuery.contains(document2, b)) {
42802
+ if (b == document || b.ownerDocument == document && jQuery.contains(document, b)) {
42898
42803
  return 1;
42899
42804
  }
42900
42805
  return 0;
@@ -43050,14 +42955,14 @@ var jquery_default = (
43050
42955
  });
43051
42956
  }
43052
42957
  function setDocument(node) {
43053
- var subWindow, doc2 = node ? node.ownerDocument || node : document2;
43054
- if (doc2 == document$1 || doc2.nodeType !== 9) {
42958
+ var subWindow, doc = node ? node.ownerDocument || node : document;
42959
+ if (doc == document$1 || doc.nodeType !== 9) {
43055
42960
  return;
43056
42961
  }
43057
- document$1 = doc2;
42962
+ document$1 = doc;
43058
42963
  documentElement$1 = document$1.documentElement;
43059
42964
  documentIsHTML = !jQuery.isXMLDoc(document$1);
43060
- if (isIE && document2 != document$1 && (subWindow = document$1.defaultView) && subWindow.top !== subWindow) {
42965
+ if (isIE && document != document$1 && (subWindow = document$1.defaultView) && subWindow.top !== subWindow) {
43061
42966
  subWindow.addEventListener("unload", unloadHandler);
43062
42967
  }
43063
42968
  }
@@ -43288,7 +43193,7 @@ var jquery_default = (
43288
43193
  }),
43289
43194
  // Miscellaneous
43290
43195
  target: function(elem) {
43291
- var hash = window2.location && window2.location.hash;
43196
+ var hash = window.location && window.location.hash;
43292
43197
  return hash && hash.slice(1) === elem.id;
43293
43198
  },
43294
43199
  root: function(elem) {
@@ -45278,9 +45183,9 @@ function createElement(ownerDocument, tagName) {
45278
45183
  return new MockUListElement(ownerDocument);
45279
45184
  }
45280
45185
  if (ownerDocument != null && tagName.includes("-")) {
45281
- const win2 = ownerDocument.defaultView;
45282
- if (win2 != null && win2.customElements != null) {
45283
- return createCustomElement(win2.customElements, ownerDocument, tagName);
45186
+ const win = ownerDocument.defaultView;
45187
+ if (win != null && win.customElements != null) {
45188
+ return createCustomElement(win.customElements, ownerDocument, tagName);
45284
45189
  }
45285
45190
  }
45286
45191
  return new MockHTMLElement(ownerDocument, tagName);
@@ -45702,9 +45607,9 @@ var CanvasRenderingContext = class {
45702
45607
  }
45703
45608
  clearRect() {
45704
45609
  }
45705
- getImageData(_, __, w, h2) {
45610
+ getImageData(_, __, w, h) {
45706
45611
  return {
45707
- data: new Array(w * h2 * 4)
45612
+ data: new Array(w * h * 4)
45708
45613
  };
45709
45614
  }
45710
45615
  toDataURL() {
@@ -45766,9 +45671,9 @@ var MockCanvasElement = class extends MockHTMLElement {
45766
45671
  function fullUrl(elm, attrName) {
45767
45672
  const val = elm.getAttribute(attrName) || "";
45768
45673
  if (elm.ownerDocument != null) {
45769
- const win2 = elm.ownerDocument.defaultView;
45770
- if (win2 != null) {
45771
- const loc = win2.location;
45674
+ const win = elm.ownerDocument.defaultView;
45675
+ if (win != null) {
45676
+ const loc = win.location;
45772
45677
  if (loc != null) {
45773
45678
  try {
45774
45679
  const url = new URL(val, loc.href);
@@ -46473,10 +46378,10 @@ var MockWindow = class {
46473
46378
  }
46474
46379
  get Document() {
46475
46380
  if (this.__docCstr == null) {
46476
- const win2 = this;
46381
+ const win = this;
46477
46382
  this.__docCstr = class extends MockDocument {
46478
46383
  constructor() {
46479
- super(false, win2);
46384
+ super(false, win);
46480
46385
  throw new Error("Illegal constructor: cannot construct Document");
46481
46386
  }
46482
46387
  };
@@ -46993,14 +46898,14 @@ var MockWindow = class {
46993
46898
  }
46994
46899
  };
46995
46900
  addGlobalsToWindowPrototype(MockWindow.prototype);
46996
- function resetWindowDefaults(win2) {
46997
- win2.__clearInterval = nativeClearInterval;
46998
- win2.__clearTimeout = nativeClearTimeout;
46999
- win2.__setInterval = nativeSetInterval;
47000
- win2.__setTimeout = nativeSetTimeout;
47001
- win2.__maxTimeout = 3e4;
47002
- win2.__allowInterval = true;
47003
- win2.URL = nativeURL;
46901
+ function resetWindowDefaults(win) {
46902
+ win.__clearInterval = nativeClearInterval;
46903
+ win.__clearTimeout = nativeClearTimeout;
46904
+ win.__setInterval = nativeSetInterval;
46905
+ win.__setTimeout = nativeSetTimeout;
46906
+ win.__maxTimeout = 3e4;
46907
+ win.__allowInterval = true;
46908
+ win.URL = nativeURL;
47004
46909
  }
47005
46910
  function cloneWindow(srcWin, opts = {}) {
47006
46911
  if (srcWin == null) {
@@ -47019,72 +46924,72 @@ function cloneWindow(srcWin, opts = {}) {
47019
46924
  }
47020
46925
  return clonedWin;
47021
46926
  }
47022
- function constrainTimeouts(win2) {
47023
- win2.__allowInterval = false;
47024
- win2.__maxTimeout = 0;
46927
+ function constrainTimeouts(win) {
46928
+ win.__allowInterval = false;
46929
+ win.__maxTimeout = 0;
47025
46930
  }
47026
- function resetWindow(win2) {
47027
- if (win2 != null) {
47028
- if (win2.__timeouts) {
47029
- win2.__timeouts.forEach((timeoutId) => {
46931
+ function resetWindow(win) {
46932
+ if (win != null) {
46933
+ if (win.__timeouts) {
46934
+ win.__timeouts.forEach((timeoutId) => {
47030
46935
  nativeClearInterval(timeoutId);
47031
46936
  nativeClearTimeout(timeoutId);
47032
46937
  });
47033
- win2.__timeouts.clear();
46938
+ win.__timeouts.clear();
47034
46939
  }
47035
- if (win2.customElements && win2.customElements.clear) {
47036
- win2.customElements.clear();
46940
+ if (win.customElements && win.customElements.clear) {
46941
+ win.customElements.clear();
47037
46942
  }
47038
- resetDocument(win2.document);
47039
- resetPerformance(win2.performance);
47040
- for (const key in win2) {
47041
- if (win2.hasOwnProperty(key) && key !== "document" && key !== "performance" && key !== "customElements") {
47042
- delete win2[key];
46943
+ resetDocument(win.document);
46944
+ resetPerformance(win.performance);
46945
+ for (const key in win) {
46946
+ if (win.hasOwnProperty(key) && key !== "document" && key !== "performance" && key !== "customElements") {
46947
+ delete win[key];
47043
46948
  }
47044
46949
  }
47045
- resetWindowDefaults(win2);
47046
- resetWindowDimensions(win2);
47047
- resetEventListeners(win2);
47048
- if (win2.document != null) {
46950
+ resetWindowDefaults(win);
46951
+ resetWindowDimensions(win);
46952
+ resetEventListeners(win);
46953
+ if (win.document != null) {
47049
46954
  try {
47050
- win2.document.defaultView = win2;
46955
+ win.document.defaultView = win;
47051
46956
  } catch (e) {
47052
46957
  }
47053
46958
  }
47054
- win2.fetch = null;
47055
- win2.Headers = null;
47056
- win2.Request = null;
47057
- win2.Response = null;
47058
- win2.FetchError = null;
46959
+ win.fetch = null;
46960
+ win.Headers = null;
46961
+ win.Request = null;
46962
+ win.Response = null;
46963
+ win.FetchError = null;
47059
46964
  }
47060
46965
  }
47061
- function resetWindowDimensions(win2) {
46966
+ function resetWindowDimensions(win) {
47062
46967
  try {
47063
- win2.devicePixelRatio = 1;
47064
- win2.innerHeight = 768;
47065
- win2.innerWidth = 1366;
47066
- win2.pageXOffset = 0;
47067
- win2.pageYOffset = 0;
47068
- win2.screenLeft = 0;
47069
- win2.screenTop = 0;
47070
- win2.screenX = 0;
47071
- win2.screenY = 0;
47072
- win2.scrollX = 0;
47073
- win2.scrollY = 0;
47074
- win2.screen = {
47075
- availHeight: win2.innerHeight,
46968
+ win.devicePixelRatio = 1;
46969
+ win.innerHeight = 768;
46970
+ win.innerWidth = 1366;
46971
+ win.pageXOffset = 0;
46972
+ win.pageYOffset = 0;
46973
+ win.screenLeft = 0;
46974
+ win.screenTop = 0;
46975
+ win.screenX = 0;
46976
+ win.screenY = 0;
46977
+ win.scrollX = 0;
46978
+ win.scrollY = 0;
46979
+ win.screen = {
46980
+ availHeight: win.innerHeight,
47076
46981
  availLeft: 0,
47077
46982
  availTop: 0,
47078
- availWidth: win2.innerWidth,
46983
+ availWidth: win.innerWidth,
47079
46984
  colorDepth: 24,
47080
- height: win2.innerHeight,
46985
+ height: win.innerHeight,
47081
46986
  keepAwake: false,
47082
46987
  orientation: {
47083
46988
  angle: 0,
47084
46989
  type: "portrait-primary"
47085
46990
  },
47086
46991
  pixelDepth: 24,
47087
- width: win2.innerWidth
46992
+ width: win.innerWidth
47088
46993
  };
47089
46994
  } catch (e) {
47090
46995
  }
@@ -47092,11 +46997,11 @@ function resetWindowDimensions(win2) {
47092
46997
 
47093
46998
  // src/mock-doc/document.ts
47094
46999
  var MockDocument = class _MockDocument extends MockHTMLElement {
47095
- constructor(html = null, win2 = null) {
47000
+ constructor(html = null, win = null) {
47096
47001
  super(null, null);
47097
47002
  this.nodeName = "#document" /* DOCUMENT_NODE */;
47098
47003
  this.nodeType = 9 /* DOCUMENT_NODE */;
47099
- this.defaultView = win2;
47004
+ this.defaultView = win;
47100
47005
  this.cookie = "";
47101
47006
  this.referrer = "";
47102
47007
  this.appendChild(this.createDocumentTypeNode());
@@ -47243,10 +47148,10 @@ var MockDocument = class _MockDocument extends MockHTMLElement {
47243
47148
  }
47244
47149
  createElement(tagName) {
47245
47150
  if (tagName === "#document" /* DOCUMENT_NODE */) {
47246
- const doc2 = new _MockDocument(false);
47247
- doc2.nodeName = tagName;
47248
- doc2.parentNode = null;
47249
- return doc2;
47151
+ const doc = new _MockDocument(false);
47152
+ doc.nodeName = tagName;
47153
+ doc.parentNode = null;
47154
+ return doc;
47250
47155
  }
47251
47156
  return createElement(this, tagName);
47252
47157
  }
@@ -47286,10 +47191,10 @@ var MockDocument = class _MockDocument extends MockHTMLElement {
47286
47191
  title.textContent = value;
47287
47192
  }
47288
47193
  };
47289
- function resetDocument(doc2) {
47290
- if (doc2 != null) {
47291
- resetEventListeners(doc2);
47292
- const documentElement = doc2.documentElement;
47194
+ function resetDocument(doc) {
47195
+ if (doc != null) {
47196
+ resetEventListeners(doc);
47197
+ const documentElement = doc.documentElement;
47293
47198
  if (documentElement != null) {
47294
47199
  resetElement(documentElement);
47295
47200
  for (let i = 0, ii = documentElement.childNodes.length; i < ii; i++) {
@@ -47298,25 +47203,25 @@ function resetDocument(doc2) {
47298
47203
  childNode.childNodes.length = 0;
47299
47204
  }
47300
47205
  }
47301
- for (const key in doc2) {
47302
- if (doc2.hasOwnProperty(key) && !DOC_KEY_KEEPERS.has(key)) {
47303
- delete doc2[key];
47206
+ for (const key in doc) {
47207
+ if (doc.hasOwnProperty(key) && !DOC_KEY_KEEPERS.has(key)) {
47208
+ delete doc[key];
47304
47209
  }
47305
47210
  }
47306
47211
  try {
47307
- doc2.nodeName = "#document" /* DOCUMENT_NODE */;
47212
+ doc.nodeName = "#document" /* DOCUMENT_NODE */;
47308
47213
  } catch (e) {
47309
47214
  }
47310
47215
  try {
47311
- doc2.nodeType = 9 /* DOCUMENT_NODE */;
47216
+ doc.nodeType = 9 /* DOCUMENT_NODE */;
47312
47217
  } catch (e) {
47313
47218
  }
47314
47219
  try {
47315
- doc2.cookie = "";
47220
+ doc.cookie = "";
47316
47221
  } catch (e) {
47317
47222
  }
47318
47223
  try {
47319
- doc2.referrer = "";
47224
+ doc.referrer = "";
47320
47225
  } catch (e) {
47321
47226
  }
47322
47227
  }
@@ -47372,33 +47277,9 @@ function createWindowFromHtml(templateHtml, uniqueId) {
47372
47277
  templateWindow = new MockWindow(templateHtml);
47373
47278
  templateWindows.set(uniqueId, templateWindow);
47374
47279
  }
47375
- const win2 = cloneWindow(templateWindow);
47376
- return win2;
47280
+ const win = cloneWindow(templateWindow);
47281
+ return win;
47377
47282
  }
47378
- var Build = {
47379
- isDev: BUILD.isDev ? true : false,
47380
- isBrowser: true,
47381
- isServer: false,
47382
- isTesting: BUILD.isTesting ? true : false
47383
- };
47384
- var hostRefs = BUILD.hotModuleReplacement ? window.__STENCIL_HOSTREFS__ || (window.__STENCIL_HOSTREFS__ = /* @__PURE__ */ new WeakMap()) : /* @__PURE__ */ new WeakMap();
47385
- var STENCIL_DEV_MODE = BUILD.isTesting ? ["STENCIL:"] : [
47386
- "%cstencil",
47387
- "color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"
47388
- ];
47389
- var win = typeof window !== "undefined" ? window : {};
47390
- var doc = win.document || { head: {} };
47391
- var H = win.HTMLElement || class {
47392
- };
47393
- var supportsShadow = BUILD.shadowDom;
47394
- var supportsConstructableStylesheets = BUILD.constructableCSS ? /* @__PURE__ */ (() => {
47395
- try {
47396
- new CSSStyleSheet();
47397
- return typeof new CSSStyleSheet().replaceSync === "function";
47398
- } catch (e) {
47399
- }
47400
- return false;
47401
- })() : false;
47402
47283
 
47403
47284
  // src/utils/helpers.ts
47404
47285
  var isString = (v) => typeof v === "string";
@@ -47490,20 +47371,15 @@ var unwrapErr = (result) => {
47490
47371
  }
47491
47372
  };
47492
47373
 
47493
- // src/runtime/mode.ts
47494
- var setMode = (handler) => modeResolutionChain.push(handler);
47495
- var CAPTURE_EVENT_SUFFIX = "Capture";
47496
- var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
47497
-
47498
47374
  // src/compiler/html/canonical-link.ts
47499
- var updateCanonicalLink = (doc2, href) => {
47375
+ var updateCanonicalLink = (doc, href) => {
47500
47376
  var _a2;
47501
- let canonicalLinkElm = doc2.head.querySelector('link[rel="canonical"]');
47377
+ let canonicalLinkElm = doc.head.querySelector('link[rel="canonical"]');
47502
47378
  if (typeof href === "string") {
47503
47379
  if (canonicalLinkElm == null) {
47504
- canonicalLinkElm = doc2.createElement("link");
47380
+ canonicalLinkElm = doc.createElement("link");
47505
47381
  canonicalLinkElm.setAttribute("rel", "canonical");
47506
- doc2.head.appendChild(canonicalLinkElm);
47382
+ doc.head.appendChild(canonicalLinkElm);
47507
47383
  }
47508
47384
  canonicalLinkElm.setAttribute("href", href);
47509
47385
  } else {
@@ -47517,11 +47393,11 @@ var updateCanonicalLink = (doc2, href) => {
47517
47393
  };
47518
47394
 
47519
47395
  // src/compiler/html/relocate-meta-charset.ts
47520
- var relocateMetaCharset = (doc2) => {
47521
- const head = doc2.head;
47396
+ var relocateMetaCharset = (doc) => {
47397
+ const head = doc.head;
47522
47398
  let charsetElm = head.querySelector("meta[charset]");
47523
47399
  if (charsetElm == null) {
47524
- charsetElm = doc2.createElement("meta");
47400
+ charsetElm = doc.createElement("meta");
47525
47401
  charsetElm.setAttribute("charset", "utf-8");
47526
47402
  } else {
47527
47403
  charsetElm.remove();
@@ -47796,13 +47672,13 @@ var parseCss = (css, filePath) => {
47796
47672
  const m = match(/^@([-\w]+)?document *([^{]+)/);
47797
47673
  if (!m) return null;
47798
47674
  const vendor = trim(m[1]);
47799
- const doc2 = trim(m[2]);
47675
+ const doc = trim(m[2]);
47800
47676
  if (!open()) return error(`@document missing '{'`);
47801
47677
  const style = comments().concat(rules());
47802
47678
  if (!close()) return error(`@document missing '}'`);
47803
47679
  return pos({
47804
47680
  type: 3 /* Document */,
47805
- document: doc2,
47681
+ document: doc,
47806
47682
  vendor,
47807
47683
  rules: style
47808
47684
  });
@@ -48128,11 +48004,11 @@ var serializeCssPage = (opts, node) => {
48128
48004
  };
48129
48005
  var serializeCssDocument = (opts, node) => {
48130
48006
  const documentCss = serializeCssMapVisit(opts, node.rules);
48131
- const doc2 = "@" + (node.vendor || "") + "document " + node.document;
48007
+ const doc = "@" + (node.vendor || "") + "document " + node.document;
48132
48008
  if (documentCss === "") {
48133
48009
  return "";
48134
48010
  }
48135
- return doc2 + "{" + documentCss + "}";
48011
+ return doc + "{" + documentCss + "}";
48136
48012
  };
48137
48013
  var serializeCssMapVisit = (opts, nodes) => {
48138
48014
  let rtn = "";
@@ -48230,12 +48106,12 @@ var collectUsedSelectors = (usedSelectors, elm) => {
48230
48106
  };
48231
48107
 
48232
48108
  // src/compiler/html/remove-unused-styles.ts
48233
- var removeUnusedStyles = (doc2, diagnostics) => {
48109
+ var removeUnusedStyles = (doc, diagnostics) => {
48234
48110
  try {
48235
- const styleElms = doc2.head.querySelectorAll(`style[data-styles]`);
48111
+ const styleElms = doc.head.querySelectorAll(`style[data-styles]`);
48236
48112
  const styleLen = styleElms.length;
48237
48113
  if (styleLen > 0) {
48238
- const usedSelectors = getUsedSelectors(doc2.documentElement);
48114
+ const usedSelectors = getUsedSelectors(doc.documentElement);
48239
48115
  for (let i = 0; i < styleLen; i++) {
48240
48116
  removeUnusedStyleText(usedSelectors, diagnostics, styleElms[i]);
48241
48117
  }
@@ -48368,49 +48244,49 @@ function collectAttributes(node) {
48368
48244
  var SKIP_ATTRS = /* @__PURE__ */ new Set(["s-id", "c-id"]);
48369
48245
 
48370
48246
  // src/hydrate/runner/patch-dom-implementation.ts
48371
- function patchDomImplementation(doc2, opts) {
48372
- let win2;
48373
- if (doc2.defaultView != null) {
48247
+ function patchDomImplementation(doc, opts) {
48248
+ let win;
48249
+ if (doc.defaultView != null) {
48374
48250
  opts.destroyWindow = true;
48375
- patchWindow(doc2.defaultView);
48376
- win2 = doc2.defaultView;
48251
+ patchWindow(doc.defaultView);
48252
+ win = doc.defaultView;
48377
48253
  } else {
48378
48254
  opts.destroyWindow = true;
48379
48255
  opts.destroyDocument = false;
48380
- win2 = new MockWindow(false);
48256
+ win = new MockWindow(false);
48381
48257
  }
48382
- if (win2.document !== doc2) {
48383
- win2.document = doc2;
48258
+ if (win.document !== doc) {
48259
+ win.document = doc;
48384
48260
  }
48385
- if (doc2.defaultView !== win2) {
48386
- doc2.defaultView = win2;
48261
+ if (doc.defaultView !== win) {
48262
+ doc.defaultView = win;
48387
48263
  }
48388
- const HTMLElement2 = doc2.documentElement.constructor.prototype;
48389
- if (typeof HTMLElement2.getRootNode !== "function") {
48390
- const elm = doc2.createElement("unknown-element");
48264
+ const HTMLElement = doc.documentElement.constructor.prototype;
48265
+ if (typeof HTMLElement.getRootNode !== "function") {
48266
+ const elm = doc.createElement("unknown-element");
48391
48267
  const HTMLUnknownElement = elm.constructor.prototype;
48392
48268
  HTMLUnknownElement.getRootNode = getRootNode;
48393
48269
  }
48394
- if (typeof doc2.createEvent === "function") {
48395
- const CustomEvent2 = doc2.createEvent("CustomEvent").constructor;
48396
- if (win2.CustomEvent !== CustomEvent2) {
48397
- win2.CustomEvent = CustomEvent2;
48270
+ if (typeof doc.createEvent === "function") {
48271
+ const CustomEvent = doc.createEvent("CustomEvent").constructor;
48272
+ if (win.CustomEvent !== CustomEvent) {
48273
+ win.CustomEvent = CustomEvent;
48398
48274
  }
48399
48275
  }
48400
48276
  try {
48401
- win2.__stencil_baseURI = doc2.baseURI;
48277
+ win.__stencil_baseURI = doc.baseURI;
48402
48278
  } catch (e) {
48403
- Object.defineProperty(doc2, "baseURI", {
48279
+ Object.defineProperty(doc, "baseURI", {
48404
48280
  get() {
48405
- const baseElm = doc2.querySelector("base[href]");
48281
+ const baseElm = doc.querySelector("base[href]");
48406
48282
  if (baseElm) {
48407
- return new URL(baseElm.getAttribute("href"), win2.location.href).href;
48283
+ return new URL(baseElm.getAttribute("href"), win.location.href).href;
48408
48284
  }
48409
- return win2.location.href;
48285
+ return win.location.href;
48410
48286
  }
48411
48287
  });
48412
48288
  }
48413
- return win2;
48289
+ return win;
48414
48290
  }
48415
48291
  function getRootNode(opts) {
48416
48292
  const isComposed = opts != null && opts.composed === true;
@@ -48563,10 +48439,10 @@ function renderCatchError(results, err2) {
48563
48439
  }
48564
48440
 
48565
48441
  // src/hydrate/runner/runtime-log.ts
48566
- function runtimeLogging(win2, opts, results) {
48442
+ function runtimeLogging(win, opts, results) {
48567
48443
  try {
48568
- const pathname = win2.location.pathname;
48569
- win2.console.error = (...msgs) => {
48444
+ const pathname = win.location.pathname;
48445
+ win.console.error = (...msgs) => {
48570
48446
  const errMsg = msgs.reduce((errMsg2, m) => {
48571
48447
  if (m) {
48572
48448
  if (m.stack != null) {
@@ -48586,7 +48462,7 @@ function runtimeLogging(win2, opts, results) {
48586
48462
  }
48587
48463
  }
48588
48464
  };
48589
- win2.console.debug = (...msgs) => {
48465
+ win.console.debug = (...msgs) => {
48590
48466
  renderBuildDiagnostic(results, "debug", "Hydrate Debug", [...msgs].join(", "));
48591
48467
  if (opts.runtimeLogging) {
48592
48468
  runtimeLog(pathname, "debug", msgs);
@@ -48594,7 +48470,7 @@ function runtimeLogging(win2, opts, results) {
48594
48470
  };
48595
48471
  if (opts.runtimeLogging) {
48596
48472
  ["log", "warn", "assert", "info", "trace"].forEach((type) => {
48597
- win2.console[type] = (...msgs) => {
48473
+ win.console[type] = (...msgs) => {
48598
48474
  runtimeLog(pathname, type, msgs);
48599
48475
  };
48600
48476
  });
@@ -48608,58 +48484,58 @@ function runtimeLog(pathname, type, msgs) {
48608
48484
  }
48609
48485
 
48610
48486
  // src/hydrate/runner/window-initialize.ts
48611
- function initializeWindow(win2, doc2, opts, results) {
48487
+ function initializeWindow(win, doc, opts, results) {
48612
48488
  if (typeof opts.url === "string") {
48613
48489
  try {
48614
- win2.location.href = opts.url;
48490
+ win.location.href = opts.url;
48615
48491
  } catch (e) {
48616
48492
  }
48617
48493
  }
48618
48494
  if (typeof opts.userAgent === "string") {
48619
48495
  try {
48620
- win2.navigator.userAgent = opts.userAgent;
48496
+ win.navigator.userAgent = opts.userAgent;
48621
48497
  } catch (e) {
48622
48498
  }
48623
48499
  }
48624
48500
  if (typeof opts.cookie === "string") {
48625
48501
  try {
48626
- doc2.cookie = opts.cookie;
48502
+ doc.cookie = opts.cookie;
48627
48503
  } catch (e) {
48628
48504
  }
48629
48505
  }
48630
48506
  if (typeof opts.referrer === "string") {
48631
48507
  try {
48632
- doc2.referrer = opts.referrer;
48508
+ doc.referrer = opts.referrer;
48633
48509
  } catch (e) {
48634
48510
  }
48635
48511
  }
48636
48512
  if (typeof opts.direction === "string") {
48637
48513
  try {
48638
- doc2.documentElement.setAttribute("dir", opts.direction);
48514
+ doc.documentElement.setAttribute("dir", opts.direction);
48639
48515
  } catch (e) {
48640
48516
  }
48641
48517
  }
48642
48518
  if (typeof opts.language === "string") {
48643
48519
  try {
48644
- doc2.documentElement.setAttribute("lang", opts.language);
48520
+ doc.documentElement.setAttribute("lang", opts.language);
48645
48521
  } catch (e) {
48646
48522
  }
48647
48523
  }
48648
48524
  if (typeof opts.buildId === "string") {
48649
48525
  try {
48650
- doc2.documentElement.setAttribute("data-stencil-build", opts.buildId);
48526
+ doc.documentElement.setAttribute("data-stencil-build", opts.buildId);
48651
48527
  } catch (e) {
48652
48528
  }
48653
48529
  }
48654
48530
  try {
48655
- win2.customElements = null;
48531
+ win.customElements = null;
48656
48532
  } catch (e) {
48657
48533
  }
48658
48534
  if (opts.constrainTimeouts) {
48659
- constrainTimeouts(win2);
48535
+ constrainTimeouts(win);
48660
48536
  }
48661
- runtimeLogging(win2, opts, results);
48662
- return win2;
48537
+ runtimeLogging(win, opts, results);
48538
+ return win;
48663
48539
  }
48664
48540
 
48665
48541
  // src/hydrate/runner/render.ts
@@ -48676,44 +48552,44 @@ function renderToString(html, options, asStream) {
48676
48552
  opts.constrainTimeouts = false;
48677
48553
  return hydrateDocument(html, opts, asStream);
48678
48554
  }
48679
- function hydrateDocument(doc2, options, asStream) {
48555
+ function hydrateDocument(doc, options, asStream) {
48680
48556
  const opts = normalizeHydrateOptions(options);
48681
- let win2 = null;
48557
+ let win = null;
48682
48558
  const results = generateHydrateResults(opts);
48683
48559
  if (hasError(results.diagnostics)) {
48684
48560
  return Promise.resolve(results);
48685
48561
  }
48686
- if (typeof doc2 === "string") {
48562
+ if (typeof doc === "string") {
48687
48563
  try {
48688
48564
  opts.destroyWindow = true;
48689
48565
  opts.destroyDocument = true;
48690
- win2 = new MockWindow(doc2);
48566
+ win = new MockWindow(doc);
48691
48567
  if (!asStream) {
48692
- return render(win2, opts, results).then(() => results);
48568
+ return render(win, opts, results).then(() => results);
48693
48569
  }
48694
- return renderStream(win2, opts, results);
48570
+ return renderStream(win, opts, results);
48695
48571
  } catch (e) {
48696
- if (win2 && win2.close) {
48697
- win2.close();
48572
+ if (win && win.close) {
48573
+ win.close();
48698
48574
  }
48699
- win2 = null;
48575
+ win = null;
48700
48576
  renderCatchError(results, e);
48701
48577
  return Promise.resolve(results);
48702
48578
  }
48703
48579
  }
48704
- if (isValidDocument(doc2)) {
48580
+ if (isValidDocument(doc)) {
48705
48581
  try {
48706
48582
  opts.destroyDocument = false;
48707
- win2 = patchDomImplementation(doc2, opts);
48583
+ win = patchDomImplementation(doc, opts);
48708
48584
  if (!asStream) {
48709
- return render(win2, opts, results).then(() => results);
48585
+ return render(win, opts, results).then(() => results);
48710
48586
  }
48711
- return renderStream(win2, opts, results);
48587
+ return renderStream(win, opts, results);
48712
48588
  } catch (e) {
48713
- if (win2 && win2.close) {
48714
- win2.close();
48589
+ if (win && win.close) {
48590
+ win.close();
48715
48591
  }
48716
- win2 = null;
48592
+ win = null;
48717
48593
  renderCatchError(results, e);
48718
48594
  return Promise.resolve(results);
48719
48595
  }
@@ -48721,81 +48597,75 @@ function hydrateDocument(doc2, options, asStream) {
48721
48597
  renderBuildError(results, `Invalid html or document. Must be either a valid "html" string, or DOM "document".`);
48722
48598
  return Promise.resolve(results);
48723
48599
  }
48724
- async function render(win2, opts, results) {
48600
+ async function render(win, opts, results) {
48725
48601
  if ("process" in globalThis && typeof process.on === "function" && !process.__stencilErrors) {
48726
48602
  process.__stencilErrors = true;
48727
48603
  process.on("unhandledRejection", (e) => {
48728
48604
  console.log("unhandledRejection", e);
48729
48605
  });
48730
48606
  }
48731
- initializeWindow(win2, win2.document, opts, results);
48607
+ initializeWindow(win, win.document, opts, results);
48732
48608
  const beforeHydrateFn = typeof opts.beforeHydrate === "function" ? opts.beforeHydrate : NOOP;
48733
48609
  try {
48734
- await Promise.resolve(beforeHydrateFn(win2.document));
48735
- return new Promise((resolve) => {
48736
- if (Array.isArray(opts.modes)) {
48737
- modeResolutionChain.length = 0;
48738
- opts.modes.forEach((mode) => setMode(mode));
48739
- }
48740
- return hydrateFactory(win2, opts, results, afterHydrate, resolve);
48741
- });
48610
+ await Promise.resolve(beforeHydrateFn(win.document));
48611
+ return new Promise((resolve) => hydrateFactory(win, opts, results, afterHydrate, resolve));
48742
48612
  } catch (e) {
48743
48613
  renderCatchError(results, e);
48744
- return finalizeHydrate(win2, win2.document, opts, results);
48614
+ return finalizeHydrate(win, win.document, opts, results);
48745
48615
  }
48746
48616
  }
48747
- function renderStream(win2, opts, results) {
48617
+ function renderStream(win, opts, results) {
48748
48618
  async function* processRender() {
48749
- const renderResult = await render(win2, opts, results);
48619
+ const renderResult = await render(win, opts, results);
48750
48620
  yield renderResult.html;
48751
48621
  }
48752
48622
  return stream.Readable.from(processRender());
48753
48623
  }
48754
- async function afterHydrate(win2, opts, results, resolve) {
48624
+ async function afterHydrate(win, opts, results, resolve) {
48755
48625
  const afterHydrateFn = typeof opts.afterHydrate === "function" ? opts.afterHydrate : NOOP;
48756
48626
  try {
48757
- await Promise.resolve(afterHydrateFn(win2.document));
48758
- return resolve(finalizeHydrate(win2, win2.document, opts, results));
48627
+ await Promise.resolve(afterHydrateFn(win.document));
48628
+ return resolve(finalizeHydrate(win, win.document, opts, results));
48759
48629
  } catch (e) {
48760
48630
  renderCatchError(results, e);
48761
- return resolve(finalizeHydrate(win2, win2.document, opts, results));
48631
+ return resolve(finalizeHydrate(win, win.document, opts, results));
48762
48632
  }
48763
48633
  }
48764
- function finalizeHydrate(win2, doc2, opts, results) {
48634
+ function finalizeHydrate(win, doc, opts, results) {
48765
48635
  try {
48766
- inspectElement(results, doc2.documentElement, 0);
48636
+ inspectElement(results, doc.documentElement, 0);
48767
48637
  if (opts.removeUnusedStyles !== false) {
48768
48638
  try {
48769
- removeUnusedStyles(doc2, results.diagnostics);
48639
+ removeUnusedStyles(doc, results.diagnostics);
48770
48640
  } catch (e) {
48771
48641
  renderCatchError(results, e);
48772
48642
  }
48773
48643
  }
48774
48644
  if (typeof opts.title === "string") {
48775
48645
  try {
48776
- doc2.title = opts.title;
48646
+ doc.title = opts.title;
48777
48647
  } catch (e) {
48778
48648
  renderCatchError(results, e);
48779
48649
  }
48780
48650
  }
48781
- results.title = doc2.title;
48651
+ results.title = doc.title;
48782
48652
  if (opts.removeScripts) {
48783
- removeScripts(doc2.documentElement);
48653
+ removeScripts(doc.documentElement);
48784
48654
  }
48785
48655
  try {
48786
- updateCanonicalLink(doc2, opts.canonicalUrl);
48656
+ updateCanonicalLink(doc, opts.canonicalUrl);
48787
48657
  } catch (e) {
48788
48658
  renderCatchError(results, e);
48789
48659
  }
48790
48660
  try {
48791
- relocateMetaCharset(doc2);
48661
+ relocateMetaCharset(doc);
48792
48662
  } catch (e) {
48793
48663
  }
48794
48664
  if (!hasError(results.diagnostics)) {
48795
48665
  results.httpStatus = 200;
48796
48666
  }
48797
48667
  try {
48798
- const metaStatus = doc2.head.querySelector('meta[http-equiv="status"]');
48668
+ const metaStatus = doc.head.querySelector('meta[http-equiv="status"]');
48799
48669
  if (metaStatus != null) {
48800
48670
  const metaStatusContent = metaStatus.getAttribute("content");
48801
48671
  if (metaStatusContent && metaStatusContent.length > 0) {
@@ -48805,35 +48675,35 @@ function finalizeHydrate(win2, doc2, opts, results) {
48805
48675
  } catch (e) {
48806
48676
  }
48807
48677
  if (opts.clientHydrateAnnotations) {
48808
- doc2.documentElement.classList.add("hydrated");
48678
+ doc.documentElement.classList.add("hydrated");
48809
48679
  }
48810
48680
  if (opts.serializeToHtml) {
48811
- results.html = serializeDocumentToString(doc2, opts);
48681
+ results.html = serializeDocumentToString(doc, opts);
48812
48682
  }
48813
48683
  } catch (e) {
48814
48684
  renderCatchError(results, e);
48815
48685
  }
48816
- destroyWindow(win2, doc2, opts, results);
48686
+ destroyWindow(win, doc, opts, results);
48817
48687
  return results;
48818
48688
  }
48819
- function destroyWindow(win2, doc2, opts, results) {
48689
+ function destroyWindow(win, doc, opts, results) {
48820
48690
  if (!opts.destroyWindow) {
48821
48691
  return;
48822
48692
  }
48823
48693
  try {
48824
48694
  if (!opts.destroyDocument) {
48825
- win2.document = null;
48826
- doc2.defaultView = null;
48695
+ win.document = null;
48696
+ doc.defaultView = null;
48827
48697
  }
48828
- if (win2.close) {
48829
- win2.close();
48698
+ if (win.close) {
48699
+ win.close();
48830
48700
  }
48831
48701
  } catch (e) {
48832
48702
  renderCatchError(results, e);
48833
48703
  }
48834
48704
  }
48835
- function serializeDocumentToString(doc2, opts) {
48836
- return serializeNodeToHtml(doc2, {
48705
+ function serializeDocumentToString(doc, opts) {
48706
+ return serializeNodeToHtml(doc, {
48837
48707
  approximateLineWidth: opts.approximateLineWidth,
48838
48708
  outerHtml: false,
48839
48709
  prettyHtml: opts.prettyHtml,
@@ -48845,8 +48715,8 @@ function serializeDocumentToString(doc2, opts) {
48845
48715
  fullDocument: opts.fullDocument
48846
48716
  });
48847
48717
  }
48848
- function isValidDocument(doc2) {
48849
- return doc2 != null && doc2.nodeType === 9 && doc2.documentElement != null && doc2.documentElement.nodeType === 1 && doc2.body != null && doc2.body.nodeType === 1;
48718
+ function isValidDocument(doc) {
48719
+ return doc != null && doc.nodeType === 9 && doc.documentElement != null && doc.documentElement.nodeType === 1 && doc.body != null && doc.body.nodeType === 1;
48850
48720
  }
48851
48721
  function removeScripts(elm) {
48852
48722
  const children = elm.children;