@ionic/core 8.5.1 → 8.5.2-dev.11742465639.13a7dc3e

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 (1199) hide show
  1. package/components/action-sheet.js +13 -8
  2. package/components/alert.js +15 -10
  3. package/components/animation.js +1 -1
  4. package/components/backdrop.js +10 -6
  5. package/components/button.js +41 -11
  6. package/components/buttons.js +11 -7
  7. package/components/capacitor.js +1 -1
  8. package/components/caret-down.js +6 -0
  9. package/components/caret-left.js +6 -0
  10. package/components/caret-right.js +6 -0
  11. package/components/checkbox.js +30 -12
  12. package/components/config2.js +79 -0
  13. package/components/content.js +14 -12
  14. package/components/data.js +6 -6
  15. package/components/focus-visible.js +23 -1
  16. package/components/framework-delegate.js +3 -1
  17. package/components/header.js +24 -15
  18. package/components/helpers.js +43 -2
  19. package/components/index2.js +2 -2
  20. package/components/index4.js +8 -9
  21. package/components/index5.js +27 -3
  22. package/components/index6.js +110 -24
  23. package/components/index7.js +163 -27
  24. package/components/input-shims.js +2 -2
  25. package/components/input.utils.js +1 -2
  26. package/components/ion-accordion-group.js +25 -6
  27. package/components/ion-accordion.js +36 -17
  28. package/components/ion-app.js +14 -77
  29. package/components/ion-avatar.js +54 -5
  30. package/components/ion-back-button.js +29 -19
  31. package/components/ion-badge.js +47 -8
  32. package/components/ion-breadcrumb.js +45 -11
  33. package/components/ion-breadcrumbs.js +9 -5
  34. package/components/ion-card-content.js +11 -7
  35. package/components/ion-card-header.js +9 -5
  36. package/components/ion-card-subtitle.js +9 -5
  37. package/components/ion-card-title.js +9 -5
  38. package/components/ion-card.js +17 -9
  39. package/components/ion-chip.js +45 -8
  40. package/components/ion-col.js +5 -5
  41. package/components/ion-datetime-button.js +9 -6
  42. package/components/ion-datetime.js +99 -21
  43. package/components/ion-divider.d.ts +11 -0
  44. package/components/ion-divider.js +66 -0
  45. package/components/ion-fab-button.js +33 -10
  46. package/components/ion-fab-list.js +5 -5
  47. package/components/ion-fab.js +6 -6
  48. package/components/ion-footer.js +18 -12
  49. package/components/ion-grid.js +5 -5
  50. package/components/ion-img.js +5 -2
  51. package/components/ion-infinite-scroll-content.js +13 -8
  52. package/components/ion-infinite-scroll.js +5 -5
  53. package/components/ion-input-password-toggle.js +53 -14
  54. package/components/ion-input.js +118 -20
  55. package/components/ion-item-divider.js +9 -5
  56. package/components/ion-item-group.js +9 -5
  57. package/components/ion-item-option.js +28 -8
  58. package/components/ion-item-options.js +9 -5
  59. package/components/ion-item-sliding.js +5 -5
  60. package/components/ion-loading.js +13 -8
  61. package/components/ion-menu-button.js +28 -10
  62. package/components/ion-menu-toggle.js +5 -5
  63. package/components/ion-menu.js +12 -8
  64. package/components/ion-nav-link.js +1 -1
  65. package/components/ion-nav.js +8 -6
  66. package/components/ion-note.js +9 -5
  67. package/components/ion-picker-legacy.js +7 -8
  68. package/components/ion-progress-bar.js +28 -7
  69. package/components/ion-range.js +13 -10
  70. package/components/ion-refresher-content.js +28 -9
  71. package/components/ion-refresher.js +11 -7
  72. package/components/ion-reorder-group.js +5 -5
  73. package/components/ion-reorder.js +31 -5
  74. package/components/ion-router-link.js +6 -6
  75. package/components/ion-router-outlet.js +4 -3
  76. package/components/ion-row.js +5 -2
  77. package/components/ion-searchbar.js +141 -18
  78. package/components/ion-segment-button.js +11 -7
  79. package/components/ion-segment-content.js +1 -1
  80. package/components/ion-segment-view.js +6 -2
  81. package/components/ion-segment.js +11 -7
  82. package/components/ion-select-option.js +5 -2
  83. package/components/ion-select.js +120 -33
  84. package/components/ion-skeleton-text.js +6 -5
  85. package/components/ion-split-pane.js +12 -8
  86. package/components/ion-tab-bar.js +31 -8
  87. package/components/ion-tab-button.js +28 -7
  88. package/components/ion-tab.js +2 -2
  89. package/components/ion-tabs.js +2 -2
  90. package/components/ion-text.js +5 -5
  91. package/components/ion-textarea.js +48 -11
  92. package/components/ion-thumbnail.js +5 -2
  93. package/components/ion-toast.js +30 -11
  94. package/components/ion-toggle.js +77 -18
  95. package/components/ionic-global.js +378 -82
  96. package/components/ios.transition.js +1 -0
  97. package/components/item.js +41 -11
  98. package/components/keyboard-controller.js +4 -2
  99. package/components/label.js +9 -5
  100. package/components/list-header.js +9 -5
  101. package/components/list.js +29 -6
  102. package/components/list2.js +6 -0
  103. package/components/modal.js +51 -21
  104. package/components/notch-controller.js +1 -1
  105. package/components/overlays.js +4 -5
  106. package/components/picker-column-option.js +9 -5
  107. package/components/picker-column.js +7 -8
  108. package/components/picker-column2.js +4 -4
  109. package/components/picker.js +8 -4
  110. package/components/popover.js +11 -8
  111. package/components/radio-group.js +5 -3
  112. package/components/radio.js +12 -8
  113. package/components/ripple-effect.js +18 -8
  114. package/components/select-modal.js +3 -3
  115. package/components/select-popover.js +9 -2
  116. package/components/spinner.js +36 -9
  117. package/components/status-tap.js +1 -1
  118. package/components/title.js +11 -7
  119. package/components/toolbar.js +11 -7
  120. package/components/x.js +6 -0
  121. package/css/core.css +1 -1
  122. package/css/core.css.map +1 -1
  123. package/css/display.css +1 -1
  124. package/css/display.css.map +1 -1
  125. package/css/flex-utils.css +1 -1
  126. package/css/flex-utils.css.map +1 -1
  127. package/css/float-elements.css.map +1 -1
  128. package/css/global.bundle.css.map +1 -1
  129. package/css/ionic/bundle.ionic.css +1 -0
  130. package/css/ionic/bundle.ionic.css.map +1 -0
  131. package/css/ionic/core.ionic.css +1 -0
  132. package/css/ionic/core.ionic.css.map +1 -0
  133. package/css/ionic/global.bundle.ionic.css +1 -0
  134. package/css/ionic/global.bundle.ionic.css.map +1 -0
  135. package/css/ionic/ionic-swiper.ionic.css +1 -0
  136. package/css/ionic/ionic-swiper.ionic.css.map +1 -0
  137. package/css/ionic/link.ionic.css +1 -0
  138. package/css/ionic/link.ionic.css.map +1 -0
  139. package/css/ionic/structure.ionic.css +1 -0
  140. package/css/ionic/structure.ionic.css.map +1 -0
  141. package/css/ionic/typography.ionic.css +1 -0
  142. package/css/ionic/typography.ionic.css.map +1 -0
  143. package/css/ionic/utils.bundle.ionic.css +1 -0
  144. package/css/ionic/utils.bundle.ionic.css.map +1 -0
  145. package/css/ionic-swiper.css +1 -1
  146. package/css/ionic-swiper.css.map +1 -1
  147. package/css/ionic.bundle.css +1 -1
  148. package/css/ionic.bundle.css.map +1 -1
  149. package/css/normalize.css.map +1 -1
  150. package/css/padding.css.map +1 -1
  151. package/css/palettes/dark.always.css.map +1 -1
  152. package/css/palettes/dark.class.css.map +1 -1
  153. package/css/palettes/dark.system.css.map +1 -1
  154. package/css/palettes/high-contrast-dark.always.css.map +1 -1
  155. package/css/palettes/high-contrast-dark.class.css.map +1 -1
  156. package/css/palettes/high-contrast-dark.system.css.map +1 -1
  157. package/css/palettes/high-contrast.always.css.map +1 -1
  158. package/css/palettes/high-contrast.class.css.map +1 -1
  159. package/css/palettes/high-contrast.system.css.map +1 -1
  160. package/css/structure.css.map +1 -1
  161. package/css/text-alignment.css.map +1 -1
  162. package/css/text-transformation.css.map +1 -1
  163. package/css/typography.css.map +1 -1
  164. package/css/utils.bundle.css +1 -1
  165. package/css/utils.bundle.css.map +1 -1
  166. package/dist/cjs/{animation-b4fdf128.js → animation-124b7017.js} +2 -2
  167. package/dist/cjs/{app-globals-dd592863.js → app-globals-04316582.js} +1 -1
  168. package/dist/cjs/{button-active-43e2b419.js → button-active-6c0ef0f0.js} +1 -1
  169. package/dist/cjs/{capacitor-c04564bf.js → capacitor-ec2a454d.js} +3 -3
  170. package/dist/cjs/caret-down-3c215cff.js +8 -0
  171. package/dist/cjs/caret-left-2bb66970.js +8 -0
  172. package/dist/cjs/caret-right-88e03970.js +8 -0
  173. package/dist/cjs/config-aff4ff52.js +84 -0
  174. package/dist/cjs/{data-27cc2c9c.js → data-ae8423e6.js} +8 -8
  175. package/dist/{esm/focus-visible-dd40d69f.js → cjs/focus-visible-fe3acfb5.js} +27 -1
  176. package/dist/cjs/{framework-delegate-11b0ba2f.js → framework-delegate-4de32fdc.js} +4 -2
  177. package/dist/cjs/{haptic-f6b37aa3.js → haptic-f262299e.js} +1 -1
  178. package/dist/cjs/{helpers-d0dfbb50.js → helpers-4211d834.js} +43 -2
  179. package/dist/cjs/{index-f68a486a.js → index-042a8f38.js} +12 -12
  180. package/dist/cjs/{index-363fe6b2.js → index-3d31ef2d.js} +10 -7
  181. package/dist/cjs/{index-fd6383b6.js → index-943c0438.js} +14 -15
  182. package/dist/cjs/{index-9b945a2d.js → index-f835dc22.js} +3 -3
  183. package/dist/cjs/index.cjs.js +11 -12
  184. package/dist/cjs/{input-shims-2d27a5be.js → input-shims-c93f3c7f.js} +18 -18
  185. package/dist/cjs/{input.utils-2f642324.js → input.utils-00741e7b.js} +4 -5
  186. package/dist/cjs/ion-accordion_2.cjs.entry.js +62 -24
  187. package/dist/cjs/ion-action-sheet.cjs.entry.js +22 -18
  188. package/dist/cjs/ion-alert.cjs.entry.js +26 -23
  189. package/dist/cjs/ion-app_8.cjs.entry.js +113 -152
  190. package/dist/cjs/ion-avatar_3.cjs.entry.js +97 -11
  191. package/dist/cjs/ion-back-button.cjs.entry.js +32 -21
  192. package/dist/cjs/ion-backdrop.cjs.entry.js +11 -6
  193. package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +54 -15
  194. package/dist/cjs/ion-button_2.cjs.entry.js +47 -15
  195. package/dist/cjs/ion-card_5.cjs.entry.js +53 -28
  196. package/dist/cjs/ion-checkbox.cjs.entry.js +31 -13
  197. package/dist/cjs/ion-chip.cjs.entry.js +43 -7
  198. package/dist/cjs/ion-col_3.cjs.entry.js +14 -10
  199. package/dist/cjs/ion-datetime-button.cjs.entry.js +17 -12
  200. package/dist/cjs/ion-datetime_3.cjs.entry.js +191 -115
  201. package/dist/cjs/ion-divider.cjs.entry.js +50 -0
  202. package/dist/cjs/ion-fab_3.cjs.entry.js +43 -19
  203. package/dist/cjs/ion-img.cjs.entry.js +8 -3
  204. package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +22 -17
  205. package/dist/cjs/ion-input-password-toggle.cjs.entry.js +55 -16
  206. package/dist/cjs/ion-input.cjs.entry.js +119 -23
  207. package/dist/cjs/ion-item-option_3.cjs.entry.js +41 -17
  208. package/dist/cjs/ion-item_8.cjs.entry.js +114 -41
  209. package/dist/cjs/ion-loading.cjs.entry.js +21 -18
  210. package/dist/cjs/ion-menu_3.cjs.entry.js +49 -29
  211. package/dist/cjs/ion-modal.cjs.entry.js +99 -70
  212. package/dist/cjs/ion-nav_2.cjs.entry.js +16 -13
  213. package/dist/cjs/ion-picker-column-option.cjs.entry.js +12 -6
  214. package/dist/cjs/ion-picker-column.cjs.entry.js +13 -12
  215. package/dist/cjs/ion-picker.cjs.entry.js +11 -5
  216. package/dist/cjs/ion-popover.cjs.entry.js +21 -18
  217. package/dist/cjs/ion-progress-bar.cjs.entry.js +29 -8
  218. package/dist/cjs/ion-radio_2.cjs.entry.js +19 -11
  219. package/dist/cjs/ion-range.cjs.entry.js +21 -16
  220. package/dist/cjs/ion-refresher_2.cjs.entry.js +45 -23
  221. package/dist/cjs/ion-reorder_2.cjs.entry.js +38 -13
  222. package/dist/cjs/ion-ripple-effect.cjs.entry.js +18 -7
  223. package/dist/cjs/ion-route_4.cjs.entry.js +9 -7
  224. package/dist/cjs/ion-searchbar.cjs.entry.js +139 -17
  225. package/dist/cjs/ion-segment-content.cjs.entry.js +1 -1
  226. package/dist/cjs/ion-segment-view.cjs.entry.js +6 -2
  227. package/dist/cjs/ion-segment_2.cjs.entry.js +24 -14
  228. package/dist/cjs/ion-select-modal.cjs.entry.js +9 -10
  229. package/dist/cjs/ion-select_3.cjs.entry.js +134 -40
  230. package/dist/cjs/ion-spinner.cjs.entry.js +35 -9
  231. package/dist/cjs/ion-split-pane.cjs.entry.js +13 -8
  232. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +61 -20
  233. package/dist/cjs/ion-tab_2.cjs.entry.js +8 -6
  234. package/dist/cjs/ion-text.cjs.entry.js +6 -5
  235. package/dist/cjs/ion-textarea.cjs.entry.js +52 -16
  236. package/dist/cjs/ion-toast.cjs.entry.js +60 -42
  237. package/dist/cjs/ion-toggle.cjs.entry.js +81 -22
  238. package/dist/cjs/ionic-global-5c446a5e.js +531 -0
  239. package/dist/cjs/ionic.cjs.js +4 -3
  240. package/dist/cjs/{ios.transition-f970164c.js → ios.transition-cdf1959e.js} +7 -6
  241. package/dist/cjs/{keyboard-0272231f.js → keyboard-924ba9a2.js} +1 -1
  242. package/dist/cjs/{keyboard-af1bb365.js → keyboard-9cd4a473.js} +5 -3
  243. package/dist/cjs/{keyboard-controller-c05e747a.js → keyboard-controller-dc7a55c4.js} +11 -9
  244. package/dist/cjs/list-2930c629.js +8 -0
  245. package/dist/cjs/loader.cjs.js +4 -3
  246. package/dist/cjs/{md.transition-aa8820dd.js → md.transition-6a00a3e7.js} +6 -6
  247. package/dist/cjs/{notch-controller-58d2e557.js → notch-controller-14681d65.js} +4 -4
  248. package/dist/cjs/{overlays-737576a2.js → overlays-288b775b.js} +19 -20
  249. package/dist/cjs/{status-tap-08d1ac81.js → status-tap-a41ad873.js} +5 -4
  250. package/dist/cjs/{swipe-back-951be2fd.js → swipe-back-cf9385d3.js} +3 -1
  251. package/dist/cjs/x-81a8f51c.js +8 -0
  252. package/dist/collection/collection-manifest.json +1 -0
  253. package/dist/collection/components/accordion/accordion.ionic.css +197 -0
  254. package/dist/collection/components/accordion/accordion.ios.css +73 -58
  255. package/dist/collection/components/accordion/accordion.js +37 -21
  256. package/dist/collection/components/accordion/accordion.md.css +67 -59
  257. package/dist/collection/components/accordion-group/accordion-group.ionic.css +95 -0
  258. package/dist/collection/components/accordion-group/accordion-group.ios.css +16 -4
  259. package/dist/collection/components/accordion-group/accordion-group.js +43 -8
  260. package/dist/collection/components/accordion-group/accordion-group.md.css +22 -4
  261. package/dist/collection/components/action-sheet/action-sheet.ios.css +18 -6
  262. package/dist/collection/components/action-sheet/action-sheet.js +14 -10
  263. package/dist/collection/components/action-sheet/action-sheet.md.css +17 -5
  264. package/dist/collection/components/alert/alert.ios.css +19 -1
  265. package/dist/collection/components/alert/alert.js +15 -12
  266. package/dist/collection/components/alert/alert.md.css +19 -1
  267. package/dist/collection/components/app/app.js +22 -80
  268. package/dist/collection/components/avatar/avatar.ionic.css +285 -0
  269. package/dist/collection/components/avatar/avatar.ios.css +13 -0
  270. package/dist/collection/components/avatar/avatar.js +92 -4
  271. package/dist/collection/components/avatar/avatar.md.css +21 -0
  272. package/dist/collection/components/back-button/back-button.ios.css +60 -48
  273. package/dist/collection/components/back-button/back-button.js +27 -19
  274. package/dist/collection/components/back-button/back-button.md.css +60 -48
  275. package/dist/collection/components/backdrop/backdrop.ionic.css +150 -0
  276. package/dist/collection/components/backdrop/backdrop.ios.css +13 -1
  277. package/dist/collection/components/backdrop/backdrop.js +12 -6
  278. package/dist/collection/components/backdrop/backdrop.md.css +13 -1
  279. package/dist/collection/components/badge/badge.ionic.css +313 -0
  280. package/dist/collection/components/badge/badge.ios.css +128 -4
  281. package/dist/collection/components/badge/badge.js +94 -8
  282. package/dist/collection/components/badge/badge.md.css +128 -4
  283. package/dist/collection/components/breadcrumb/breadcrumb.ios.css +20 -8
  284. package/dist/collection/components/breadcrumb/breadcrumb.js +43 -11
  285. package/dist/collection/components/breadcrumb/breadcrumb.md.css +20 -8
  286. package/dist/collection/components/breadcrumbs/breadcrumbs.ios.css +6 -0
  287. package/dist/collection/components/breadcrumbs/breadcrumbs.js +11 -9
  288. package/dist/collection/components/breadcrumbs/breadcrumbs.md.css +6 -0
  289. package/dist/collection/components/button/button.ionic.css +609 -0
  290. package/dist/collection/components/button/button.ios.css +131 -37
  291. package/dist/collection/components/button/button.js +46 -16
  292. package/dist/collection/components/button/button.md.css +122 -41
  293. package/dist/collection/components/buttons/buttons.ionic.css +100 -0
  294. package/dist/collection/components/buttons/buttons.ios.css +59 -7
  295. package/dist/collection/components/buttons/buttons.js +14 -8
  296. package/dist/collection/components/buttons/buttons.md.css +55 -3
  297. package/dist/collection/components/card/card.ionic.css +137 -0
  298. package/dist/collection/components/card/card.ios.css +65 -14
  299. package/dist/collection/components/card/card.js +34 -10
  300. package/dist/collection/components/card/card.md.css +65 -14
  301. package/dist/collection/components/card-content/card-content.ionic.css +90 -0
  302. package/dist/collection/components/card-content/card-content.ios.css +16 -1
  303. package/dist/collection/components/card-content/card-content.js +11 -8
  304. package/dist/collection/components/card-content/card-content.md.css +16 -1
  305. package/dist/collection/components/card-header/card-header.ionic.css +87 -0
  306. package/dist/collection/components/card-header/card-header.ios.css +27 -15
  307. package/dist/collection/components/card-header/card-header.js +12 -9
  308. package/dist/collection/components/card-header/card-header.md.css +27 -15
  309. package/dist/collection/components/card-subtitle/card-subtitle.ionic.css +146 -0
  310. package/dist/collection/components/card-subtitle/card-subtitle.ios.css +12 -0
  311. package/dist/collection/components/card-subtitle/card-subtitle.js +11 -8
  312. package/dist/collection/components/card-subtitle/card-subtitle.md.css +12 -0
  313. package/dist/collection/components/card-title/card-title.ios.css +73 -0
  314. package/dist/collection/components/card-title/card-title.js +11 -8
  315. package/dist/collection/components/card-title/card-title.md.css +73 -0
  316. package/dist/collection/components/checkbox/checkbox.ionic.css +402 -0
  317. package/dist/collection/components/checkbox/checkbox.ios.css +20 -2
  318. package/dist/collection/components/checkbox/checkbox.js +64 -14
  319. package/dist/collection/components/checkbox/checkbox.md.css +21 -3
  320. package/dist/collection/components/chip/chip.ionic.css +160 -0
  321. package/dist/collection/components/chip/chip.ios.css +20 -1
  322. package/dist/collection/components/chip/chip.js +77 -8
  323. package/dist/collection/components/chip/chip.md.css +20 -1
  324. package/dist/collection/components/col/col.css +12 -0
  325. package/dist/collection/components/col/col.js +9 -5
  326. package/dist/collection/components/content/content.css +8 -2
  327. package/dist/collection/components/content/content.js +16 -11
  328. package/dist/collection/components/datetime/datetime.ionic.css +673 -0
  329. package/dist/collection/components/datetime/datetime.ios.css +237 -86
  330. package/dist/collection/components/datetime/datetime.js +98 -20
  331. package/dist/collection/components/datetime/datetime.md.css +237 -86
  332. package/dist/collection/components/datetime/utils/data.js +5 -5
  333. package/dist/collection/components/datetime-button/datetime-button.ios.css +6 -0
  334. package/dist/collection/components/datetime-button/datetime-button.js +11 -8
  335. package/dist/collection/components/datetime-button/datetime-button.md.css +6 -0
  336. package/dist/collection/components/divider/divider.css +187 -0
  337. package/dist/collection/components/divider/divider.js +82 -0
  338. package/dist/collection/components/fab/fab.css +25 -1
  339. package/dist/collection/components/fab/fab.js +9 -5
  340. package/dist/collection/components/fab-button/fab-button.ios.css +18 -6
  341. package/dist/collection/components/fab-button/fab-button.js +36 -15
  342. package/dist/collection/components/fab-button/fab-button.md.css +20 -8
  343. package/dist/collection/components/fab-list/fab-list.css +12 -0
  344. package/dist/collection/components/fab-list/fab-list.js +9 -5
  345. package/dist/collection/components/footer/footer.ios.css +14 -2
  346. package/dist/collection/components/footer/footer.js +20 -15
  347. package/dist/collection/components/footer/footer.md.css +12 -0
  348. package/dist/collection/components/grid/grid.css +12 -0
  349. package/dist/collection/components/grid/grid.js +9 -5
  350. package/dist/collection/components/header/header.ionic.css +86 -0
  351. package/dist/collection/components/header/header.ios.css +25 -10
  352. package/dist/collection/components/header/header.js +42 -17
  353. package/dist/collection/components/header/header.md.css +23 -8
  354. package/dist/collection/components/img/img.js +8 -2
  355. package/dist/collection/components/infinite-scroll/infinite-scroll.js +8 -4
  356. package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.ios.css +12 -0
  357. package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.js +16 -10
  358. package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.md.css +12 -0
  359. package/dist/collection/components/input/input.ionic.css +1079 -0
  360. package/dist/collection/components/input/input.ios.css +21 -2
  361. package/dist/collection/components/input/input.js +144 -30
  362. package/dist/collection/components/input/input.md.css +43 -4
  363. package/dist/collection/components/input-password-toggle/input-password-toggle.common.css +61 -0
  364. package/dist/collection/components/input-password-toggle/input-password-toggle.ionic.css +141 -0
  365. package/dist/collection/components/input-password-toggle/input-password-toggle.js +48 -12
  366. package/dist/collection/components/item/item.ionic.css +497 -0
  367. package/dist/collection/components/item/item.ios.css +109 -69
  368. package/dist/collection/components/item/item.js +44 -16
  369. package/dist/collection/components/item/item.md.css +120 -68
  370. package/dist/collection/components/item-divider/item-divider.ios.css +18 -0
  371. package/dist/collection/components/item-divider/item-divider.js +11 -8
  372. package/dist/collection/components/item-divider/item-divider.md.css +18 -0
  373. package/dist/collection/components/item-group/item-group.ios.css +12 -0
  374. package/dist/collection/components/item-group/item-group.js +13 -7
  375. package/dist/collection/components/item-group/item-group.md.css +12 -0
  376. package/dist/collection/components/item-option/item-option.ionic.css +332 -0
  377. package/dist/collection/components/item-option/item-option.ios.css +14 -2
  378. package/dist/collection/components/item-option/item-option.js +43 -8
  379. package/dist/collection/components/item-option/item-option.md.css +14 -2
  380. package/dist/collection/components/item-options/item-options.ionic.css +259 -0
  381. package/dist/collection/components/item-options/item-options.ios.css +18 -0
  382. package/dist/collection/components/item-options/item-options.js +13 -7
  383. package/dist/collection/components/item-options/item-options.md.css +18 -0
  384. package/dist/collection/components/item-sliding/item-sliding.css +6 -0
  385. package/dist/collection/components/item-sliding/item-sliding.js +8 -4
  386. package/dist/collection/components/label/label.ios.css +18 -0
  387. package/dist/collection/components/label/label.js +11 -8
  388. package/dist/collection/components/label/label.md.css +18 -0
  389. package/dist/collection/components/list/list.ionic.css +192 -0
  390. package/dist/collection/components/list/list.ios.css +18 -0
  391. package/dist/collection/components/list/list.js +47 -9
  392. package/dist/collection/components/list/list.md.css +20 -2
  393. package/dist/collection/components/list-header/list-header.ionic.css +236 -0
  394. package/dist/collection/components/list-header/list-header.ios.css +18 -0
  395. package/dist/collection/components/list-header/list-header.js +11 -8
  396. package/dist/collection/components/list-header/list-header.md.css +18 -0
  397. package/dist/collection/components/loading/loading.ios.css +13 -1
  398. package/dist/collection/components/loading/loading.js +13 -10
  399. package/dist/collection/components/loading/loading.md.css +13 -1
  400. package/dist/collection/components/menu/menu.ios.css +15 -3
  401. package/dist/collection/components/menu/menu.js +12 -7
  402. package/dist/collection/components/menu/menu.md.css +15 -3
  403. package/dist/collection/components/menu-button/menu-button.ionic.css +238 -0
  404. package/dist/collection/components/menu-button/menu-button.ios.css +48 -14
  405. package/dist/collection/components/menu-button/menu-button.js +26 -10
  406. package/dist/collection/components/menu-button/menu-button.md.css +49 -15
  407. package/dist/collection/components/menu-toggle/menu-toggle.js +8 -5
  408. package/dist/collection/components/modal/animations/sheet.js +8 -2
  409. package/dist/collection/components/modal/gestures/sheet.js +10 -6
  410. package/dist/collection/components/modal/modal.ionic.css +245 -0
  411. package/dist/collection/components/modal/modal.ios.css +106 -63
  412. package/dist/collection/components/modal/modal.js +47 -11
  413. package/dist/collection/components/modal/modal.md.css +106 -63
  414. package/dist/collection/components/nav/nav.css +7 -1
  415. package/dist/collection/components/nav/nav.js +11 -5
  416. package/dist/collection/components/nav-link/nav-link.js +5 -1
  417. package/dist/collection/components/note/note.ios.css +12 -0
  418. package/dist/collection/components/note/note.js +11 -8
  419. package/dist/collection/components/note/note.md.css +12 -0
  420. package/dist/collection/components/picker/picker.ios.css +15 -3
  421. package/dist/collection/components/picker/picker.js +8 -5
  422. package/dist/collection/components/picker/picker.md.css +15 -3
  423. package/dist/collection/components/picker-column/picker-column.css +9 -2
  424. package/dist/collection/components/picker-column/picker-column.js +8 -7
  425. package/dist/collection/components/picker-column-option/picker-column-option.ios.css +6 -0
  426. package/dist/collection/components/picker-column-option/picker-column-option.js +13 -7
  427. package/dist/collection/components/picker-column-option/picker-column-option.md.css +6 -0
  428. package/dist/collection/components/picker-legacy/picker.ios.css +13 -1
  429. package/dist/collection/components/picker-legacy/picker.js +7 -6
  430. package/dist/collection/components/picker-legacy/picker.md.css +13 -1
  431. package/dist/collection/components/picker-legacy-column/picker-column.ios.css +12 -0
  432. package/dist/collection/components/picker-legacy-column/picker-column.js +4 -4
  433. package/dist/collection/components/picker-legacy-column/picker-column.md.css +12 -0
  434. package/dist/collection/components/popover/popover.ios.css +13 -1
  435. package/dist/collection/components/popover/popover.js +15 -12
  436. package/dist/collection/components/popover/popover.md.css +13 -1
  437. package/dist/collection/components/progress-bar/progress-bar.ionic.css +333 -0
  438. package/dist/collection/components/progress-bar/progress-bar.ios.css +8 -2
  439. package/dist/collection/components/progress-bar/progress-bar.js +42 -7
  440. package/dist/collection/components/progress-bar/progress-bar.md.css +8 -2
  441. package/dist/collection/components/radio/radio.ionic.css +424 -0
  442. package/dist/collection/components/radio/radio.ios.css +134 -91
  443. package/dist/collection/components/radio/radio.js +12 -9
  444. package/dist/collection/components/radio/radio.md.css +134 -91
  445. package/dist/collection/components/radio-group/radio-group.ios.css +18 -0
  446. package/dist/collection/components/radio-group/radio-group.js +9 -3
  447. package/dist/collection/components/radio-group/radio-group.md.css +18 -0
  448. package/dist/collection/components/range/range.ionic.css +555 -0
  449. package/dist/collection/components/range/range.ios.css +128 -85
  450. package/dist/collection/components/range/range.js +12 -9
  451. package/dist/collection/components/range/range.md.css +128 -85
  452. package/dist/collection/components/refresher/refresher.ios.css +14 -1
  453. package/dist/collection/components/refresher/refresher.js +11 -8
  454. package/dist/collection/components/refresher/refresher.md.css +15 -2
  455. package/dist/collection/components/refresher-content/refresher-content.js +28 -7
  456. package/dist/collection/components/reorder/reorder.ios.css +6 -0
  457. package/dist/collection/components/reorder/reorder.js +33 -6
  458. package/dist/collection/components/reorder/reorder.md.css +6 -0
  459. package/dist/collection/components/reorder-group/reorder-group.css +6 -0
  460. package/dist/collection/components/reorder-group/reorder-group.js +8 -4
  461. package/dist/collection/components/ripple-effect/{ripple-effect.css → ripple-effect.common.css} +7 -1
  462. package/dist/collection/components/ripple-effect/ripple-effect.ionic.css +154 -0
  463. package/dist/collection/components/ripple-effect/ripple-effect.js +14 -6
  464. package/dist/collection/components/route/route.js +4 -0
  465. package/dist/collection/components/router/router.js +4 -0
  466. package/dist/collection/components/router-link/router-link.css +8 -2
  467. package/dist/collection/components/router-link/router-link.js +9 -5
  468. package/dist/collection/components/router-outlet/router-outlet.css +7 -1
  469. package/dist/collection/components/router-outlet/router-outlet.js +5 -2
  470. package/dist/collection/components/row/row.css +12 -0
  471. package/dist/collection/components/row/row.js +9 -2
  472. package/dist/collection/components/searchbar/searchbar.ionic.css +628 -0
  473. package/dist/collection/components/searchbar/searchbar.ios.css +56 -18
  474. package/dist/collection/components/searchbar/searchbar.js +179 -29
  475. package/dist/collection/components/searchbar/searchbar.md.css +56 -18
  476. package/dist/collection/components/segment/segment.ionic.css +117 -0
  477. package/dist/collection/components/segment/segment.ios.css +45 -2
  478. package/dist/collection/components/segment/segment.js +11 -8
  479. package/dist/collection/components/segment/segment.md.css +45 -2
  480. package/dist/collection/components/segment-button/segment-button.ionic.css +355 -0
  481. package/dist/collection/components/segment-button/segment-button.ios.css +146 -105
  482. package/dist/collection/components/segment-button/segment-button.js +11 -8
  483. package/dist/collection/components/segment-button/segment-button.md.css +148 -107
  484. package/dist/collection/components/segment-content/segment-content.js +1 -1
  485. package/dist/collection/components/segment-view/segment-view.ios.css +6 -0
  486. package/dist/collection/components/segment-view/segment-view.js +6 -4
  487. package/dist/collection/components/segment-view/segment-view.md.css +6 -0
  488. package/dist/collection/components/select/select.ionic.css +824 -0
  489. package/dist/collection/components/select/select.ios.css +248 -121
  490. package/dist/collection/components/select/select.js +157 -55
  491. package/dist/collection/components/select/select.md.css +264 -123
  492. package/dist/collection/components/select-modal/select-modal.ionic.css +121 -0
  493. package/dist/collection/components/select-modal/select-modal.ios.css +18 -0
  494. package/dist/collection/components/select-modal/select-modal.js +3 -3
  495. package/dist/collection/components/select-modal/select-modal.md.css +7 -3
  496. package/dist/collection/components/select-option/select-option.js +9 -2
  497. package/dist/collection/components/select-popover/select-popover.ios.css +18 -0
  498. package/dist/collection/components/select-popover/select-popover.js +12 -4
  499. package/dist/collection/components/select-popover/select-popover.md.css +18 -0
  500. package/dist/collection/components/skeleton-text/skeleton-text.css +6 -0
  501. package/dist/collection/components/skeleton-text/skeleton-text.js +9 -5
  502. package/dist/collection/components/spinner/spinner.common.css +199 -0
  503. package/dist/collection/components/spinner/{spinner.css → spinner.ionic.css} +63 -0
  504. package/dist/collection/components/spinner/spinner.js +46 -6
  505. package/dist/collection/components/split-pane/split-pane.ios.css +20 -2
  506. package/dist/collection/components/split-pane/split-pane.js +14 -8
  507. package/dist/collection/components/split-pane/split-pane.md.css +20 -2
  508. package/dist/collection/components/tab/tab.js +6 -2
  509. package/dist/collection/components/tab-bar/tab-bar.ionic.css +188 -0
  510. package/dist/collection/components/tab-bar/tab-bar.ios.css +71 -43
  511. package/dist/collection/components/tab-bar/tab-bar.js +65 -10
  512. package/dist/collection/components/tab-bar/tab-bar.md.css +71 -43
  513. package/dist/collection/components/tab-button/tab-button.ionic.css +282 -0
  514. package/dist/collection/components/tab-button/tab-button.ios.css +103 -88
  515. package/dist/collection/components/tab-button/tab-button.js +43 -8
  516. package/dist/collection/components/tab-button/tab-button.md.css +103 -88
  517. package/dist/collection/components/tabs/tabs.css +7 -1
  518. package/dist/collection/components/tabs/tabs.js +4 -1
  519. package/dist/collection/components/text/text.css +6 -0
  520. package/dist/collection/components/text/text.js +7 -6
  521. package/dist/collection/components/textarea/textarea.ionic.css +860 -0
  522. package/dist/collection/components/textarea/textarea.ios.css +201 -94
  523. package/dist/collection/components/textarea/textarea.js +69 -16
  524. package/dist/collection/components/textarea/textarea.md.css +214 -95
  525. package/dist/collection/components/thumbnail/thumbnail.css +6 -0
  526. package/dist/collection/components/thumbnail/thumbnail.js +9 -2
  527. package/dist/collection/components/title/title.ionic.css +145 -0
  528. package/dist/collection/components/title/title.ios.css +32 -4
  529. package/dist/collection/components/title/title.js +13 -7
  530. package/dist/collection/components/title/title.md.css +32 -4
  531. package/dist/collection/components/toast/animations/utils.js +1 -1
  532. package/dist/collection/components/toast/toast.ionic.css +377 -0
  533. package/dist/collection/components/toast/toast.ios.css +74 -35
  534. package/dist/collection/components/toast/toast.js +45 -10
  535. package/dist/collection/components/toast/toast.md.css +74 -35
  536. package/dist/collection/components/toggle/toggle.ionic.css +516 -0
  537. package/dist/collection/components/toggle/toggle.ios.css +228 -121
  538. package/dist/collection/components/toggle/toggle.js +73 -18
  539. package/dist/collection/components/toggle/toggle.md.css +225 -121
  540. package/dist/collection/components/toolbar/toolbar.ionic.css +233 -0
  541. package/dist/collection/components/toolbar/toolbar.ios.css +90 -47
  542. package/dist/collection/components/toolbar/toolbar.js +13 -10
  543. package/dist/collection/components/toolbar/toolbar.md.css +90 -47
  544. package/dist/collection/global/ionic-global.js +229 -13
  545. package/dist/collection/utils/focus-visible.js +22 -0
  546. package/dist/collection/utils/framework-delegate.js +3 -1
  547. package/dist/collection/utils/helpers.js +42 -2
  548. package/dist/collection/utils/keyboard/keyboard-controller.js +3 -1
  549. package/dist/collection/utils/menu-controller/animations/overlay.js +3 -3
  550. package/dist/collection/utils/menu-controller/animations/push.js +2 -1
  551. package/dist/collection/utils/menu-controller/animations/reveal.js +2 -1
  552. package/dist/collection/utils/overlays.js +2 -1
  553. package/dist/collection/utils/test/playwright/generator.js +48 -23
  554. package/dist/collection/utils/test/playwright/page/utils/goto.js +14 -5
  555. package/dist/collection/utils/test/playwright/page/utils/set-content.js +16 -2
  556. package/dist/collection/utils/transition/ios.transition.js +1 -0
  557. package/dist/docs.json +7412 -331
  558. package/dist/esm/{animation-eab5a4ca.js → animation-12d440f3.js} +1 -1
  559. package/dist/esm/{app-globals-7b6cbf1a.js → app-globals-2497eeed.js} +1 -1
  560. package/dist/esm/{button-active-90f1dbc4.js → button-active-8f33f086.js} +2 -2
  561. package/dist/esm/{capacitor-59395cbd.js → capacitor-39edcb1f.js} +1 -1
  562. package/dist/esm/caret-down-3eaad1cc.js +6 -0
  563. package/dist/esm/caret-left-33424bb0.js +6 -0
  564. package/dist/esm/caret-right-68d856ad.js +6 -0
  565. package/dist/esm/config-84eb9670.js +79 -0
  566. package/dist/esm/{data-174ad5e0.js → data-591c1b05.js} +6 -6
  567. package/dist/{cjs/focus-visible-7a0ce04f.js → esm/focus-visible-6827442c.js} +23 -3
  568. package/dist/esm/{framework-delegate-c7d92b77.js → framework-delegate-9ad3e427.js} +4 -2
  569. package/dist/esm/{haptic-ac164e4c.js → haptic-946542b8.js} +1 -1
  570. package/dist/esm/{helpers-e48b0397.js → helpers-ea1f7324.js} +43 -2
  571. package/dist/esm/{index-c63afbe6.js → index-036caa00.js} +10 -11
  572. package/{components/index9.js → dist/esm/index-0c65e393.js} +5 -2
  573. package/dist/esm/{index-527b9e34.js → index-4c3c5d46.js} +1 -1
  574. package/dist/esm/{index-e2cf2ceb.js → index-d997525d.js} +1 -1
  575. package/dist/esm/{index-a313df53.js → index-eb1203fa.js} +6 -6
  576. package/dist/esm/{index-933ca126.js → index-f36a3fa4.js} +2 -2
  577. package/dist/esm/index.js +12 -13
  578. package/dist/esm/{input-shims-3070628a.js → input-shims-96f8d7c2.js} +8 -8
  579. package/dist/esm/{input.utils-926c04a8.js → input.utils-22a20c3a.js} +2 -3
  580. package/dist/esm/ion-accordion_2.entry.js +62 -24
  581. package/dist/esm/ion-action-sheet.entry.js +23 -19
  582. package/dist/esm/ion-alert.entry.js +24 -21
  583. package/dist/esm/ion-app_8.entry.js +101 -140
  584. package/dist/esm/ion-avatar_3.entry.js +98 -12
  585. package/dist/esm/ion-back-button.entry.js +32 -21
  586. package/dist/esm/ion-backdrop.entry.js +12 -7
  587. package/dist/esm/ion-breadcrumb_2.entry.js +56 -17
  588. package/dist/esm/ion-button_2.entry.js +45 -13
  589. package/dist/esm/ion-card_5.entry.js +54 -29
  590. package/dist/esm/ion-checkbox.entry.js +32 -14
  591. package/dist/esm/ion-chip.entry.js +44 -8
  592. package/dist/esm/ion-col_3.entry.js +15 -11
  593. package/dist/esm/ion-datetime-button.entry.js +14 -9
  594. package/dist/esm/ion-datetime_3.entry.js +117 -41
  595. package/dist/esm/ion-divider.entry.js +46 -0
  596. package/dist/esm/ion-fab_3.entry.js +45 -21
  597. package/dist/esm/ion-img.entry.js +9 -4
  598. package/dist/esm/ion-infinite-scroll_2.entry.js +20 -15
  599. package/dist/esm/ion-input-password-toggle.entry.js +54 -15
  600. package/dist/esm/ion-input.entry.js +121 -25
  601. package/dist/esm/ion-item-option_3.entry.js +42 -18
  602. package/dist/esm/ion-item_8.entry.js +115 -42
  603. package/dist/esm/ion-loading.entry.js +19 -16
  604. package/dist/esm/ion-menu_3.entry.js +49 -29
  605. package/dist/esm/ion-modal.entry.js +60 -31
  606. package/dist/esm/ion-nav_2.entry.js +15 -12
  607. package/dist/esm/ion-picker-column-option.entry.js +13 -7
  608. package/dist/esm/ion-picker-column.entry.js +13 -12
  609. package/dist/esm/ion-picker.entry.js +12 -6
  610. package/dist/esm/ion-popover.entry.js +19 -16
  611. package/dist/esm/ion-progress-bar.entry.js +29 -8
  612. package/dist/esm/ion-radio_2.entry.js +20 -12
  613. package/dist/esm/ion-range.entry.js +17 -12
  614. package/dist/esm/ion-refresher_2.entry.js +43 -21
  615. package/dist/esm/ion-reorder_2.entry.js +40 -15
  616. package/dist/esm/ion-ripple-effect.entry.js +19 -8
  617. package/dist/esm/ion-route_4.entry.js +10 -8
  618. package/dist/esm/ion-searchbar.entry.js +141 -19
  619. package/dist/esm/ion-segment-content.entry.js +2 -2
  620. package/dist/esm/ion-segment-view.entry.js +7 -3
  621. package/dist/esm/ion-segment_2.entry.js +25 -15
  622. package/dist/esm/ion-select-modal.entry.js +10 -11
  623. package/dist/esm/ion-select_3.entry.js +136 -42
  624. package/dist/esm/ion-spinner.entry.js +34 -8
  625. package/dist/esm/ion-split-pane.entry.js +14 -9
  626. package/dist/esm/ion-tab-bar_2.entry.js +61 -20
  627. package/dist/esm/ion-tab_2.entry.js +9 -7
  628. package/dist/esm/ion-text.entry.js +7 -6
  629. package/dist/esm/ion-textarea.entry.js +53 -17
  630. package/dist/esm/ion-toast.entry.js +35 -17
  631. package/dist/esm/ion-toggle.entry.js +82 -23
  632. package/dist/esm/ionic-global-b30d2cc2.js +517 -0
  633. package/dist/esm/ionic.js +6 -5
  634. package/dist/esm/{ios.transition-5fe4d6c8.js → ios.transition-cbbf0bd1.js} +8 -7
  635. package/dist/esm/{keyboard-52278bd7.js → keyboard-0af19ead.js} +5 -3
  636. package/dist/esm/{keyboard-73175e24.js → keyboard-ceb6990d.js} +1 -1
  637. package/dist/esm/{keyboard-controller-ec5c2bfa.js → keyboard-controller-7e2da6b9.js} +5 -3
  638. package/dist/esm/list-6524700c.js +6 -0
  639. package/dist/esm/loader.js +6 -5
  640. package/dist/esm/{md.transition-3d0d3730.js → md.transition-21c93656.js} +7 -7
  641. package/dist/esm/{notch-controller-381a5334.js → notch-controller-cd983e05.js} +2 -2
  642. package/dist/esm/{overlays-7579a420.js → overlays-d60b1d1e.js} +6 -7
  643. package/dist/esm/{status-tap-6367b913.js → status-tap-bf78b74d.js} +6 -5
  644. package/dist/esm/{swipe-back-276cda49.js → swipe-back-fff82194.js} +3 -1
  645. package/dist/esm/x-a64bcd9f.js +6 -0
  646. package/dist/esm-es5/animation-12d440f3.js +4 -0
  647. package/dist/esm-es5/app-globals-2497eeed.js +4 -0
  648. package/dist/esm-es5/{button-active-90f1dbc4.js → button-active-8f33f086.js} +1 -1
  649. package/dist/esm-es5/capacitor-39edcb1f.js +4 -0
  650. package/dist/esm-es5/caret-down-3eaad1cc.js +4 -0
  651. package/dist/esm-es5/caret-left-33424bb0.js +4 -0
  652. package/dist/esm-es5/caret-right-68d856ad.js +4 -0
  653. package/dist/esm-es5/config-84eb9670.js +4 -0
  654. package/dist/esm-es5/data-591c1b05.js +4 -0
  655. package/dist/esm-es5/focus-visible-6827442c.js +4 -0
  656. package/dist/esm-es5/framework-delegate-9ad3e427.js +4 -0
  657. package/dist/esm-es5/{haptic-ac164e4c.js → haptic-946542b8.js} +1 -1
  658. package/dist/esm-es5/helpers-ea1f7324.js +4 -0
  659. package/dist/esm-es5/index-036caa00.js +4 -0
  660. package/dist/esm-es5/index-0c65e393.js +4 -0
  661. package/dist/esm-es5/{index-527b9e34.js → index-4c3c5d46.js} +1 -1
  662. package/dist/esm-es5/{index-e2cf2ceb.js → index-d997525d.js} +1 -1
  663. package/dist/esm-es5/index-eb1203fa.js +4 -0
  664. package/dist/esm-es5/index-f36a3fa4.js +4 -0
  665. package/dist/esm-es5/index.js +1 -1
  666. package/dist/esm-es5/input-shims-96f8d7c2.js +4 -0
  667. package/dist/esm-es5/input.utils-22a20c3a.js +4 -0
  668. package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
  669. package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
  670. package/dist/esm-es5/ion-alert.entry.js +1 -1
  671. package/dist/esm-es5/ion-app_8.entry.js +1 -1
  672. package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
  673. package/dist/esm-es5/ion-back-button.entry.js +1 -1
  674. package/dist/esm-es5/ion-backdrop.entry.js +1 -1
  675. package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
  676. package/dist/esm-es5/ion-button_2.entry.js +1 -1
  677. package/dist/esm-es5/ion-card_5.entry.js +1 -1
  678. package/dist/esm-es5/ion-checkbox.entry.js +1 -1
  679. package/dist/esm-es5/ion-chip.entry.js +1 -1
  680. package/dist/esm-es5/ion-col_3.entry.js +1 -1
  681. package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
  682. package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
  683. package/dist/esm-es5/ion-divider.entry.js +4 -0
  684. package/dist/esm-es5/ion-fab_3.entry.js +1 -1
  685. package/dist/esm-es5/ion-img.entry.js +1 -1
  686. package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
  687. package/dist/esm-es5/ion-input-password-toggle.entry.js +1 -1
  688. package/dist/esm-es5/ion-input.entry.js +1 -1
  689. package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
  690. package/dist/esm-es5/ion-item_8.entry.js +1 -1
  691. package/dist/esm-es5/ion-loading.entry.js +1 -1
  692. package/dist/esm-es5/ion-menu_3.entry.js +1 -1
  693. package/dist/esm-es5/ion-modal.entry.js +1 -1
  694. package/dist/esm-es5/ion-nav_2.entry.js +1 -1
  695. package/dist/esm-es5/ion-picker-column-option.entry.js +1 -1
  696. package/dist/esm-es5/ion-picker-column.entry.js +1 -1
  697. package/dist/esm-es5/ion-picker.entry.js +1 -1
  698. package/dist/esm-es5/ion-popover.entry.js +1 -1
  699. package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
  700. package/dist/esm-es5/ion-radio_2.entry.js +1 -1
  701. package/dist/esm-es5/ion-range.entry.js +1 -1
  702. package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
  703. package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
  704. package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
  705. package/dist/esm-es5/ion-route_4.entry.js +1 -1
  706. package/dist/esm-es5/ion-searchbar.entry.js +1 -1
  707. package/dist/esm-es5/ion-segment-content.entry.js +1 -1
  708. package/dist/esm-es5/ion-segment-view.entry.js +1 -1
  709. package/dist/esm-es5/ion-segment_2.entry.js +1 -1
  710. package/dist/esm-es5/ion-select-modal.entry.js +1 -1
  711. package/dist/esm-es5/ion-select_3.entry.js +1 -1
  712. package/dist/esm-es5/ion-spinner.entry.js +1 -1
  713. package/dist/esm-es5/ion-split-pane.entry.js +1 -1
  714. package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
  715. package/dist/esm-es5/ion-tab_2.entry.js +1 -1
  716. package/dist/esm-es5/ion-text.entry.js +1 -1
  717. package/dist/esm-es5/ion-textarea.entry.js +1 -1
  718. package/dist/esm-es5/ion-toast.entry.js +1 -1
  719. package/dist/esm-es5/ion-toggle.entry.js +1 -1
  720. package/dist/esm-es5/ionic-global-b30d2cc2.js +4 -0
  721. package/dist/esm-es5/ionic.js +1 -1
  722. package/dist/esm-es5/ios.transition-cbbf0bd1.js +4 -0
  723. package/dist/esm-es5/{keyboard-52278bd7.js → keyboard-0af19ead.js} +1 -1
  724. package/dist/esm-es5/{keyboard-73175e24.js → keyboard-ceb6990d.js} +1 -1
  725. package/dist/esm-es5/keyboard-controller-7e2da6b9.js +4 -0
  726. package/dist/esm-es5/list-6524700c.js +4 -0
  727. package/dist/esm-es5/loader.js +1 -1
  728. package/dist/esm-es5/md.transition-21c93656.js +4 -0
  729. package/dist/esm-es5/notch-controller-cd983e05.js +4 -0
  730. package/dist/esm-es5/overlays-d60b1d1e.js +4 -0
  731. package/dist/esm-es5/status-tap-bf78b74d.js +4 -0
  732. package/dist/esm-es5/swipe-back-fff82194.js +4 -0
  733. package/dist/esm-es5/x-a64bcd9f.js +4 -0
  734. package/dist/html.html-data.json +2449 -211
  735. package/dist/ionic/index.esm.js +1 -1
  736. package/dist/ionic/ionic.esm.js +1 -1
  737. package/dist/ionic/ionic.js +1 -1
  738. package/dist/ionic/p-01717254.entry.js +4 -0
  739. package/dist/ionic/p-0175d2ed.system.js +4 -0
  740. package/dist/ionic/p-01d80901.system.js +4 -0
  741. package/dist/ionic/p-0354fd7d.system.entry.js +4 -0
  742. package/dist/ionic/p-047943a4.entry.js +4 -0
  743. package/dist/ionic/p-04ca2bc3.system.js +4 -0
  744. package/dist/ionic/p-051208d8.system.js +4 -0
  745. package/dist/ionic/p-0571060e.system.js +4 -0
  746. package/dist/ionic/p-06a7a822.system.entry.js +4 -0
  747. package/dist/ionic/p-06ec4706.js +4 -0
  748. package/dist/ionic/p-081a0931.entry.js +4 -0
  749. package/dist/ionic/p-0b07a566.system.entry.js +4 -0
  750. package/dist/ionic/p-0c0a2f5c.entry.js +4 -0
  751. package/dist/ionic/p-0c5e0dc8.system.entry.js +4 -0
  752. package/dist/ionic/p-0e08325d.entry.js +4 -0
  753. package/dist/ionic/p-0e25995f.entry.js +4 -0
  754. package/dist/ionic/p-0eaae446.js +4 -0
  755. package/dist/ionic/p-107ddb23.entry.js +4 -0
  756. package/dist/ionic/{p-1e955a45.system.js → p-115d74cd.system.js} +1 -1
  757. package/dist/ionic/p-11ac6c97.entry.js +4 -0
  758. package/dist/ionic/p-148ed064.entry.js +4 -0
  759. package/dist/ionic/p-1613cd36.system.entry.js +4 -0
  760. package/dist/ionic/p-17f49808.system.entry.js +4 -0
  761. package/dist/ionic/p-195c7099.system.entry.js +4 -0
  762. package/dist/ionic/p-1a3b4566.system.entry.js +4 -0
  763. package/dist/ionic/p-1bb9592a.entry.js +4 -0
  764. package/dist/ionic/p-1c8f3fef.system.entry.js +4 -0
  765. package/dist/ionic/p-1ee39457.system.entry.js +4 -0
  766. package/dist/ionic/p-1fd5c378.system.js +4 -0
  767. package/dist/ionic/p-20ec20dc.system.js +4 -0
  768. package/dist/ionic/p-243adf8c.js +4 -0
  769. package/dist/ionic/p-266448a7.system.entry.js +4 -0
  770. package/dist/ionic/p-29b8f112.js +4 -0
  771. package/dist/ionic/p-2a1b5646.system.js +4 -0
  772. package/dist/ionic/p-2a4ebf7b.entry.js +4 -0
  773. package/dist/ionic/p-2a6e60d2.system.entry.js +4 -0
  774. package/dist/ionic/p-2aca2df7.entry.js +4 -0
  775. package/dist/ionic/{p-a93873de.system.js → p-2b8078c3.system.js} +1 -1
  776. package/dist/ionic/{p-89b61afc.js → p-2c0735b6.js} +1 -1
  777. package/dist/ionic/p-2c4d0578.system.entry.js +4 -0
  778. package/dist/ionic/{p-f7ce606e.js → p-2cbcecdb.js} +1 -1
  779. package/dist/ionic/p-2cede1ff.system.entry.js +4 -0
  780. package/dist/ionic/{p-22bc235f.js → p-2d30c885.js} +1 -1
  781. package/dist/ionic/p-2f14ca13.js +4 -0
  782. package/dist/ionic/p-31956865.system.entry.js +4 -0
  783. package/dist/ionic/{p-6797c66e.system.js → p-34fa2a61.system.js} +2 -2
  784. package/dist/ionic/p-36b11a30.system.entry.js +4 -0
  785. package/dist/ionic/p-3775da84.system.entry.js +4 -0
  786. package/dist/ionic/p-396bdcf7.js +4 -0
  787. package/dist/ionic/p-3cdea564.system.entry.js +4 -0
  788. package/dist/ionic/p-3dd43dba.system.entry.js +4 -0
  789. package/dist/ionic/{p-c8402249.js → p-3e9058ad.js} +1 -1
  790. package/dist/ionic/p-3fa3fd4a.system.entry.js +4 -0
  791. package/dist/ionic/p-40ea7c52.js +4 -0
  792. package/dist/ionic/p-4279f787.entry.js +4 -0
  793. package/dist/ionic/p-429dd2b5.system.js +4 -0
  794. package/dist/ionic/p-42acd60b.system.entry.js +4 -0
  795. package/dist/ionic/{p-a4866e3e.system.js → p-42e12526.system.js} +1 -1
  796. package/dist/ionic/p-43b4ca5b.entry.js +4 -0
  797. package/dist/ionic/p-443152fd.js +4 -0
  798. package/dist/ionic/p-4459a66e.system.js +4 -0
  799. package/dist/ionic/p-4606e323.system.entry.js +4 -0
  800. package/dist/ionic/p-46204887.entry.js +4 -0
  801. package/dist/ionic/p-495eb25e.entry.js +4 -0
  802. package/dist/ionic/p-534b5031.js +4 -0
  803. package/dist/ionic/{p-66a5d6a8.js → p-578d5013.js} +1 -1
  804. package/dist/ionic/p-579b4a63.entry.js +4 -0
  805. package/dist/ionic/p-583f0c5f.js +4 -0
  806. package/dist/ionic/p-58a30d90.entry.js +4 -0
  807. package/dist/ionic/{p-da2b833b.js → p-58f16ef6.js} +1 -1
  808. package/dist/ionic/p-5b57d327.system.js +4 -0
  809. package/dist/ionic/p-5c586ac1.entry.js +4 -0
  810. package/dist/ionic/p-5c9aab48.system.entry.js +4 -0
  811. package/dist/ionic/p-5dce701d.js +4 -0
  812. package/dist/ionic/{p-9146695e.system.js → p-5df8d52a.system.js} +1 -1
  813. package/dist/ionic/p-607c9c33.js +4 -0
  814. package/dist/ionic/p-61977a32.entry.js +4 -0
  815. package/dist/ionic/p-64771457.system.entry.js +4 -0
  816. package/dist/ionic/p-653e4810.entry.js +4 -0
  817. package/dist/ionic/p-6620dffa.entry.js +4 -0
  818. package/dist/ionic/p-663ace5f.entry.js +4 -0
  819. package/dist/ionic/p-66a495c4.system.entry.js +4 -0
  820. package/dist/ionic/p-6761a590.js +4 -0
  821. package/dist/ionic/p-689a94b3.system.entry.js +4 -0
  822. package/dist/ionic/p-6a0dd6bc.js +4 -0
  823. package/dist/ionic/p-6bf6e9e8.entry.js +4 -0
  824. package/dist/ionic/p-6ce59667.entry.js +4 -0
  825. package/dist/ionic/{p-b06ac4a5.system.js → p-6eb15fc1.system.js} +1 -1
  826. package/dist/ionic/p-7071d7ca.js +4 -0
  827. package/dist/ionic/p-70d36cb8.system.js +4 -0
  828. package/dist/ionic/p-71d96a02.system.entry.js +4 -0
  829. package/dist/ionic/p-72d019c5.system.entry.js +4 -0
  830. package/dist/ionic/p-730993c9.system.entry.js +4 -0
  831. package/dist/ionic/p-787d9af9.js +4 -0
  832. package/dist/ionic/p-78fbb151.system.js +4 -0
  833. package/dist/ionic/p-7beb0900.system.entry.js +4 -0
  834. package/dist/ionic/p-7d8e1a3d.system.entry.js +4 -0
  835. package/dist/ionic/p-7dbbb35d.entry.js +4 -0
  836. package/dist/ionic/p-7e4cf8e1.entry.js +4 -0
  837. package/dist/ionic/p-80263807.system.js +4 -0
  838. package/dist/ionic/p-83d7c238.system.entry.js +4 -0
  839. package/dist/ionic/p-85bb90f6.entry.js +4 -0
  840. package/dist/ionic/p-85cee6c9.entry.js +4 -0
  841. package/dist/ionic/p-86a390a7.js +4 -0
  842. package/dist/ionic/p-883ff61d.system.entry.js +4 -0
  843. package/dist/ionic/p-8870fcbd.entry.js +4 -0
  844. package/dist/ionic/p-8cba58fa.system.entry.js +4 -0
  845. package/dist/ionic/p-8cfd2546.entry.js +4 -0
  846. package/dist/ionic/p-8d7684b7.entry.js +4 -0
  847. package/dist/ionic/p-8d7bbe79.system.entry.js +4 -0
  848. package/dist/ionic/p-8f3bd9ab.system.js +4 -0
  849. package/dist/ionic/p-90ac5fdf.entry.js +4 -0
  850. package/dist/ionic/p-90ec152d.system.js +4 -0
  851. package/dist/ionic/p-91ce2114.entry.js +4 -0
  852. package/dist/ionic/p-97ce7496.system.entry.js +4 -0
  853. package/dist/ionic/p-981b8086.entry.js +4 -0
  854. package/dist/ionic/p-999a0cef.system.entry.js +4 -0
  855. package/dist/ionic/p-9b177519.js +4 -0
  856. package/dist/ionic/p-9dab7e7c.js +4 -0
  857. package/dist/ionic/p-9e9999d5.entry.js +4 -0
  858. package/dist/ionic/p-a3144a1e.entry.js +4 -0
  859. package/dist/ionic/{p-5eb6f582.system.js → p-a3ad8084.system.js} +1 -1
  860. package/dist/ionic/p-a4c11918.system.entry.js +4 -0
  861. package/dist/ionic/p-a4c64c42.entry.js +4 -0
  862. package/dist/ionic/{p-c7e16491.js → p-a92ad86c.js} +1 -1
  863. package/dist/ionic/p-a9af4103.js +4 -0
  864. package/dist/ionic/p-b1618321.entry.js +4 -0
  865. package/dist/ionic/{p-9a2ff5ea.system.js → p-b3b40a2f.system.js} +1 -1
  866. package/dist/ionic/p-b6baf215.entry.js +4 -0
  867. package/dist/ionic/p-bb79b24d.system.entry.js +4 -0
  868. package/dist/ionic/p-bc0ab45b.entry.js +4 -0
  869. package/dist/ionic/p-bcfc28b7.system.entry.js +4 -0
  870. package/dist/ionic/p-bd215938.system.entry.js +4 -0
  871. package/dist/ionic/{p-2027221d.js → p-be1800d4.js} +1 -1
  872. package/dist/ionic/p-befb004d.entry.js +4 -0
  873. package/dist/ionic/{p-a6625de8.system.js → p-c0abf8f8.system.js} +1 -1
  874. package/dist/ionic/p-c248c88d.system.js +4 -0
  875. package/dist/ionic/p-c27342bf.system.entry.js +4 -0
  876. package/dist/ionic/p-c47cb709.js +4 -0
  877. package/dist/ionic/p-cbad55f3.system.entry.js +4 -0
  878. package/dist/ionic/p-cef4553b.entry.js +4 -0
  879. package/dist/ionic/p-cff47c26.system.entry.js +4 -0
  880. package/dist/ionic/{p-042d5353.system.js → p-d197eaeb.system.js} +1 -1
  881. package/dist/ionic/{p-f11a9436.system.js → p-d2536fe8.system.js} +1 -1
  882. package/dist/ionic/p-d2e6afa9.system.js +4 -0
  883. package/dist/ionic/p-d35e20cf.system.entry.js +4 -0
  884. package/dist/ionic/p-d4a21287.js +4 -0
  885. package/dist/ionic/p-d534a6c8.entry.js +4 -0
  886. package/dist/ionic/p-d75951ba.system.entry.js +4 -0
  887. package/dist/ionic/p-d760d709.entry.js +4 -0
  888. package/dist/ionic/p-da7bd63e.system.entry.js +4 -0
  889. package/dist/ionic/p-de32ae2a.system.entry.js +4 -0
  890. package/dist/ionic/{p-27281edd.js → p-de9f68cb.js} +1 -1
  891. package/dist/ionic/p-dea6541e.entry.js +4 -0
  892. package/dist/ionic/p-deb05ec4.js +4 -0
  893. package/dist/ionic/p-dff0b93b.system.entry.js +4 -0
  894. package/dist/ionic/{p-1bf5ec17.system.js → p-e028d393.system.js} +1 -1
  895. package/dist/ionic/p-e028d3f1.entry.js +4 -0
  896. package/dist/ionic/p-e3b70846.system.js +4 -0
  897. package/dist/ionic/p-e913a8ec.system.entry.js +4 -0
  898. package/dist/ionic/p-eb15cdb8.entry.js +4 -0
  899. package/dist/ionic/p-ed32d861.system.entry.js +4 -0
  900. package/dist/ionic/p-ef74796f.entry.js +4 -0
  901. package/dist/ionic/p-ef7f7ba9.js +4 -0
  902. package/dist/ionic/p-effec462.system.js +4 -0
  903. package/dist/ionic/{p-8985cdb6.system.js → p-f3fed3f9.system.js} +1 -1
  904. package/dist/ionic/p-f4a27763.entry.js +4 -0
  905. package/dist/ionic/p-f63db3d4.entry.js +4 -0
  906. package/dist/ionic/p-f853b71b.entry.js +4 -0
  907. package/dist/ionic/p-fb0197d6.system.entry.js +4 -0
  908. package/dist/ionic/{p-77991411.system.js → p-fcedca77.system.js} +1 -1
  909. package/dist/ionic/p-fdcaa201.system.js +4 -0
  910. package/dist/types/components/accordion/accordion.d.ts +5 -3
  911. package/dist/types/components/accordion-group/accordion-group.d.ts +12 -1
  912. package/dist/types/components/action-sheet/action-sheet-interface.d.ts +3 -7
  913. package/dist/types/components/action-sheet/action-sheet.d.ts +3 -2
  914. package/dist/types/components/alert/alert-interface.d.ts +3 -7
  915. package/dist/types/components/alert/alert.d.ts +3 -2
  916. package/dist/types/components/app/app.d.ts +6 -2
  917. package/dist/types/components/avatar/avatar.d.ts +28 -0
  918. package/dist/types/components/back-button/back-button.d.ts +2 -1
  919. package/dist/types/components/backdrop/backdrop.d.ts +4 -0
  920. package/dist/types/components/badge/badge.d.ts +28 -1
  921. package/dist/types/components/breadcrumb/breadcrumb.d.ts +4 -1
  922. package/dist/types/components/breadcrumbs/breadcrumbs.d.ts +2 -2
  923. package/dist/types/components/button/button.d.ts +15 -4
  924. package/dist/types/components/buttons/buttons.d.ts +5 -1
  925. package/dist/types/components/card/card.d.ts +8 -1
  926. package/dist/types/components/card-content/card-content.d.ts +2 -1
  927. package/dist/types/components/card-header/card-header.d.ts +3 -2
  928. package/dist/types/components/card-subtitle/card-subtitle.d.ts +2 -1
  929. package/dist/types/components/card-title/card-title.d.ts +2 -1
  930. package/dist/types/components/checkbox/checkbox.d.ts +14 -4
  931. package/dist/types/components/chip/chip.d.ts +19 -1
  932. package/dist/types/components/col/col.d.ts +4 -0
  933. package/dist/types/components/content/content.d.ts +3 -0
  934. package/dist/types/components/datetime/datetime.d.ts +26 -1
  935. package/dist/types/components/datetime/utils/data.d.ts +5 -5
  936. package/dist/types/components/datetime-button/datetime-button.d.ts +2 -1
  937. package/dist/types/components/divider/divider.d.ts +21 -0
  938. package/dist/types/components/fab/fab.d.ts +4 -0
  939. package/dist/types/components/fab-button/fab-button.d.ts +5 -3
  940. package/dist/types/components/fab-list/fab-list.d.ts +4 -0
  941. package/dist/types/components/footer/footer.d.ts +4 -3
  942. package/dist/types/components/grid/grid.d.ts +4 -0
  943. package/dist/types/components/header/header.d.ts +9 -3
  944. package/dist/types/components/img/img.d.ts +3 -0
  945. package/dist/types/components/infinite-scroll/infinite-scroll.d.ts +4 -0
  946. package/dist/types/components/infinite-scroll-content/infinite-scroll-content.d.ts +4 -0
  947. package/dist/types/components/input/input.d.ts +31 -5
  948. package/dist/types/components/input-password-toggle/input-password-toggle.d.ts +2 -0
  949. package/dist/types/components/item/item.d.ts +11 -4
  950. package/dist/types/components/item-divider/item-divider.d.ts +2 -1
  951. package/dist/types/components/item-group/item-group.d.ts +4 -0
  952. package/dist/types/components/item-option/item-option.d.ts +11 -1
  953. package/dist/types/components/item-options/item-options.d.ts +4 -0
  954. package/dist/types/components/item-sliding/item-sliding.d.ts +4 -0
  955. package/dist/types/components/label/label.d.ts +2 -1
  956. package/dist/types/components/list/list.d.ts +15 -1
  957. package/dist/types/components/list-header/list-header.d.ts +2 -1
  958. package/dist/types/components/loading/loading-interface.d.ts +2 -7
  959. package/dist/types/components/loading/loading.d.ts +3 -2
  960. package/dist/types/components/menu/menu.d.ts +3 -0
  961. package/dist/types/components/menu-button/menu-button.d.ts +3 -1
  962. package/dist/types/components/menu-toggle/menu-toggle.d.ts +3 -0
  963. package/dist/types/components/modal/gestures/sheet.d.ts +1 -1
  964. package/dist/types/components/modal/modal-interface.d.ts +4 -7
  965. package/dist/types/components/modal/modal.d.ts +11 -1
  966. package/dist/types/components/nav/nav-interface.d.ts +9 -1
  967. package/dist/types/components/nav/nav.d.ts +5 -1
  968. package/dist/types/components/nav-link/nav-link.d.ts +4 -0
  969. package/dist/types/components/note/note.d.ts +2 -1
  970. package/dist/types/components/picker/picker.d.ts +2 -1
  971. package/dist/types/components/picker-column/picker-column.d.ts +2 -1
  972. package/dist/types/components/picker-column-option/picker-column-option.d.ts +4 -0
  973. package/dist/types/components/picker-legacy/picker.d.ts +2 -1
  974. package/dist/types/components/popover/popover-interface.d.ts +3 -6
  975. package/dist/types/components/popover/popover.d.ts +6 -5
  976. package/dist/types/components/progress-bar/progress-bar.d.ts +10 -1
  977. package/dist/types/components/radio/radio.d.ts +2 -1
  978. package/dist/types/components/radio-group/radio-group.d.ts +4 -0
  979. package/dist/types/components/range/range.d.ts +2 -1
  980. package/dist/types/components/refresher/refresher.d.ts +2 -1
  981. package/dist/types/components/refresher-content/refresher-content.d.ts +4 -0
  982. package/dist/types/components/reorder/reorder.d.ts +9 -0
  983. package/dist/types/components/reorder-group/reorder-group.d.ts +4 -0
  984. package/dist/types/components/ripple-effect/ripple-effect.d.ts +4 -0
  985. package/dist/types/components/route/route.d.ts +4 -0
  986. package/dist/types/components/router/router.d.ts +4 -0
  987. package/dist/types/components/router-link/router-link.d.ts +4 -0
  988. package/dist/types/components/router-outlet/router-outlet.d.ts +4 -1
  989. package/dist/types/components/row/row.d.ts +4 -0
  990. package/dist/types/components/searchbar/searchbar.d.ts +51 -9
  991. package/dist/types/components/segment/segment.d.ts +2 -1
  992. package/dist/types/components/segment-button/segment-button.d.ts +2 -1
  993. package/dist/types/components/select/select.d.ts +41 -13
  994. package/dist/types/components/select-option/select-option.d.ts +4 -0
  995. package/dist/types/components/select-popover/select-popover.d.ts +3 -0
  996. package/dist/types/components/skeleton-text/skeleton-text.d.ts +4 -0
  997. package/dist/types/components/spinner/spinner.d.ts +15 -0
  998. package/dist/types/components/split-pane/split-pane.d.ts +4 -0
  999. package/dist/types/components/tab/tab.d.ts +4 -0
  1000. package/dist/types/components/tab-bar/tab-bar.d.ts +22 -2
  1001. package/dist/types/components/tab-button/tab-button.d.ts +11 -1
  1002. package/dist/types/components/tabs/tabs.d.ts +3 -0
  1003. package/dist/types/components/text/text.d.ts +2 -1
  1004. package/dist/types/components/textarea/textarea.d.ts +17 -4
  1005. package/dist/types/components/thumbnail/thumbnail.d.ts +4 -0
  1006. package/dist/types/components/title/title.d.ts +4 -0
  1007. package/dist/types/components/toast/animations/utils.d.ts +2 -2
  1008. package/dist/types/components/toast/toast-interface.d.ts +3 -7
  1009. package/dist/types/components/toast/toast.d.ts +12 -2
  1010. package/dist/types/components/toggle/toggle.d.ts +15 -1
  1011. package/dist/types/components/toolbar/toolbar.d.ts +4 -3
  1012. package/dist/types/components.d.ts +1457 -195
  1013. package/dist/types/global/ionic-global.d.ts +27 -2
  1014. package/dist/types/interface.d.ts +3 -0
  1015. package/dist/types/utils/config.d.ts +106 -2
  1016. package/dist/types/utils/focus-visible.d.ts +13 -0
  1017. package/dist/types/utils/helpers.d.ts +11 -0
  1018. package/dist/types/utils/overlays-interface.d.ts +31 -1
  1019. package/dist/types/utils/test/playwright/generator.d.ts +31 -2
  1020. package/hydrate/index.js +2554 -893
  1021. package/hydrate/index.mjs +2554 -893
  1022. package/package.json +9 -4
  1023. package/components/hardware-back-button.js +0 -115
  1024. package/components/index8.js +0 -128
  1025. package/dist/cjs/hardware-back-button-5a99001f.js +0 -122
  1026. package/dist/cjs/index-48b2a28e.js +0 -46
  1027. package/dist/cjs/index-c8d52405.js +0 -10
  1028. package/dist/cjs/ionic-global-acb665ad.js +0 -227
  1029. package/dist/esm/hardware-back-button-864101a3.js +0 -116
  1030. package/dist/esm/index-738d7504.js +0 -42
  1031. package/dist/esm/index-8222b29f.js +0 -167
  1032. package/dist/esm/index-a5d50daf.js +0 -7
  1033. package/dist/esm/ionic-global-ca86cf32.js +0 -221
  1034. package/dist/esm-es5/animation-eab5a4ca.js +0 -4
  1035. package/dist/esm-es5/app-globals-7b6cbf1a.js +0 -4
  1036. package/dist/esm-es5/capacitor-59395cbd.js +0 -4
  1037. package/dist/esm-es5/data-174ad5e0.js +0 -4
  1038. package/dist/esm-es5/focus-visible-dd40d69f.js +0 -4
  1039. package/dist/esm-es5/framework-delegate-c7d92b77.js +0 -4
  1040. package/dist/esm-es5/hardware-back-button-864101a3.js +0 -4
  1041. package/dist/esm-es5/helpers-e48b0397.js +0 -4
  1042. package/dist/esm-es5/index-738d7504.js +0 -4
  1043. package/dist/esm-es5/index-8222b29f.js +0 -4
  1044. package/dist/esm-es5/index-933ca126.js +0 -4
  1045. package/dist/esm-es5/index-a313df53.js +0 -4
  1046. package/dist/esm-es5/index-a5d50daf.js +0 -4
  1047. package/dist/esm-es5/index-c63afbe6.js +0 -4
  1048. package/dist/esm-es5/input-shims-3070628a.js +0 -4
  1049. package/dist/esm-es5/input.utils-926c04a8.js +0 -4
  1050. package/dist/esm-es5/ionic-global-ca86cf32.js +0 -4
  1051. package/dist/esm-es5/ios.transition-5fe4d6c8.js +0 -4
  1052. package/dist/esm-es5/keyboard-controller-ec5c2bfa.js +0 -4
  1053. package/dist/esm-es5/md.transition-3d0d3730.js +0 -4
  1054. package/dist/esm-es5/notch-controller-381a5334.js +0 -4
  1055. package/dist/esm-es5/overlays-7579a420.js +0 -4
  1056. package/dist/esm-es5/status-tap-6367b913.js +0 -4
  1057. package/dist/esm-es5/swipe-back-276cda49.js +0 -4
  1058. package/dist/ionic/p-023e8017.system.entry.js +0 -4
  1059. package/dist/ionic/p-060e4551.js +0 -4
  1060. package/dist/ionic/p-0749768d.entry.js +0 -4
  1061. package/dist/ionic/p-094c82d7.entry.js +0 -4
  1062. package/dist/ionic/p-0adb6909.system.entry.js +0 -4
  1063. package/dist/ionic/p-0be8a0b5.entry.js +0 -4
  1064. package/dist/ionic/p-0bedc891.system.entry.js +0 -4
  1065. package/dist/ionic/p-0c0ec971.entry.js +0 -4
  1066. package/dist/ionic/p-0c9b8240.system.entry.js +0 -4
  1067. package/dist/ionic/p-0ec5b7cf.system.js +0 -4
  1068. package/dist/ionic/p-1164ff6b.system.entry.js +0 -4
  1069. package/dist/ionic/p-13886789.entry.js +0 -4
  1070. package/dist/ionic/p-143ff664.system.entry.js +0 -4
  1071. package/dist/ionic/p-18f9b6d5.entry.js +0 -4
  1072. package/dist/ionic/p-19c32a76.entry.js +0 -4
  1073. package/dist/ionic/p-1a9613bf.system.entry.js +0 -4
  1074. package/dist/ionic/p-1c1d781d.system.entry.js +0 -4
  1075. package/dist/ionic/p-1d2844a5.system.entry.js +0 -4
  1076. package/dist/ionic/p-1d98a7f1.entry.js +0 -4
  1077. package/dist/ionic/p-1dfc11b3.system.js +0 -4
  1078. package/dist/ionic/p-1e4371bd.js +0 -4
  1079. package/dist/ionic/p-1f837356.entry.js +0 -4
  1080. package/dist/ionic/p-21371278.system.entry.js +0 -4
  1081. package/dist/ionic/p-21891ead.js +0 -4
  1082. package/dist/ionic/p-24ae7b33.system.js +0 -4
  1083. package/dist/ionic/p-297d6806.system.js +0 -4
  1084. package/dist/ionic/p-29a5b4e4.entry.js +0 -4
  1085. package/dist/ionic/p-2ab4a324.system.entry.js +0 -4
  1086. package/dist/ionic/p-2b7827c7.js +0 -4
  1087. package/dist/ionic/p-2ee9a2c6.entry.js +0 -4
  1088. package/dist/ionic/p-2fa5a4b1.entry.js +0 -4
  1089. package/dist/ionic/p-3479f51b.system.js +0 -4
  1090. package/dist/ionic/p-35f14792.entry.js +0 -4
  1091. package/dist/ionic/p-37a438ad.system.entry.js +0 -4
  1092. package/dist/ionic/p-3af7b907.entry.js +0 -4
  1093. package/dist/ionic/p-3bd5fedc.system.js +0 -4
  1094. package/dist/ionic/p-3be7cdeb.system.entry.js +0 -4
  1095. package/dist/ionic/p-3e86b4fa.system.js +0 -4
  1096. package/dist/ionic/p-3f4327f7.js +0 -4
  1097. package/dist/ionic/p-42f6e75c.entry.js +0 -4
  1098. package/dist/ionic/p-4470f87b.system.entry.js +0 -4
  1099. package/dist/ionic/p-4493c1ac.entry.js +0 -4
  1100. package/dist/ionic/p-44e168f3.system.js +0 -4
  1101. package/dist/ionic/p-4630688e.system.entry.js +0 -4
  1102. package/dist/ionic/p-472c7e08.system.entry.js +0 -4
  1103. package/dist/ionic/p-491de063.system.entry.js +0 -4
  1104. package/dist/ionic/p-49cb79a1.system.entry.js +0 -4
  1105. package/dist/ionic/p-4c44d04c.js +0 -4
  1106. package/dist/ionic/p-4c94580e.js +0 -4
  1107. package/dist/ionic/p-4d0190ad.system.entry.js +0 -4
  1108. package/dist/ionic/p-50f38461.entry.js +0 -4
  1109. package/dist/ionic/p-51c363e7.system.js +0 -4
  1110. package/dist/ionic/p-524ad57e.system.entry.js +0 -4
  1111. package/dist/ionic/p-54893ae3.entry.js +0 -4
  1112. package/dist/ionic/p-54e9620f.js +0 -4
  1113. package/dist/ionic/p-58c482af.entry.js +0 -4
  1114. package/dist/ionic/p-597ff9af.js +0 -4
  1115. package/dist/ionic/p-5f4ff20a.entry.js +0 -4
  1116. package/dist/ionic/p-606887b7.system.entry.js +0 -4
  1117. package/dist/ionic/p-61e794fb.entry.js +0 -4
  1118. package/dist/ionic/p-6e24cf82.entry.js +0 -4
  1119. package/dist/ionic/p-72e6a9c6.entry.js +0 -4
  1120. package/dist/ionic/p-747f9517.entry.js +0 -4
  1121. package/dist/ionic/p-792919fd.system.js +0 -4
  1122. package/dist/ionic/p-7b30edcc.js +0 -4
  1123. package/dist/ionic/p-7cc33a9a.system.js +0 -4
  1124. package/dist/ionic/p-7e3b5638.system.entry.js +0 -4
  1125. package/dist/ionic/p-7f39653f.entry.js +0 -4
  1126. package/dist/ionic/p-7ff4f502.entry.js +0 -4
  1127. package/dist/ionic/p-81378456.system.entry.js +0 -4
  1128. package/dist/ionic/p-81474833.system.entry.js +0 -4
  1129. package/dist/ionic/p-838cc359.entry.js +0 -4
  1130. package/dist/ionic/p-85f6070f.entry.js +0 -4
  1131. package/dist/ionic/p-888d383b.system.entry.js +0 -4
  1132. package/dist/ionic/p-8b1c1fd7.entry.js +0 -4
  1133. package/dist/ionic/p-8deac7df.system.entry.js +0 -4
  1134. package/dist/ionic/p-8fa4fa3f.entry.js +0 -4
  1135. package/dist/ionic/p-8fa62efe.system.entry.js +0 -4
  1136. package/dist/ionic/p-8fc426e2.entry.js +0 -4
  1137. package/dist/ionic/p-941c06bc.js +0 -4
  1138. package/dist/ionic/p-959cf042.system.entry.js +0 -4
  1139. package/dist/ionic/p-988a0306.system.js +0 -4
  1140. package/dist/ionic/p-9af7f110.js +0 -4
  1141. package/dist/ionic/p-9b069739.entry.js +0 -4
  1142. package/dist/ionic/p-9df36075.system.entry.js +0 -4
  1143. package/dist/ionic/p-9e51f822.js +0 -4
  1144. package/dist/ionic/p-a0a40004.system.entry.js +0 -4
  1145. package/dist/ionic/p-a520973b.entry.js +0 -4
  1146. package/dist/ionic/p-a587b2ae.system.js +0 -4
  1147. package/dist/ionic/p-a63b345e.system.entry.js +0 -4
  1148. package/dist/ionic/p-a9f2c0a7.entry.js +0 -4
  1149. package/dist/ionic/p-ab7337e1.entry.js +0 -4
  1150. package/dist/ionic/p-abe101da.system.js +0 -4
  1151. package/dist/ionic/p-ac58d726.system.entry.js +0 -4
  1152. package/dist/ionic/p-ace2d2be.entry.js +0 -4
  1153. package/dist/ionic/p-ada878ce.entry.js +0 -4
  1154. package/dist/ionic/p-b055d618.entry.js +0 -4
  1155. package/dist/ionic/p-b2296998.system.entry.js +0 -4
  1156. package/dist/ionic/p-b2ee0628.system.entry.js +0 -4
  1157. package/dist/ionic/p-b6174297.entry.js +0 -4
  1158. package/dist/ionic/p-b85d199c.entry.js +0 -4
  1159. package/dist/ionic/p-b8c2dbcd.entry.js +0 -4
  1160. package/dist/ionic/p-b9ea58ef.js +0 -4
  1161. package/dist/ionic/p-b9eb1465.system.entry.js +0 -4
  1162. package/dist/ionic/p-b9f2e353.entry.js +0 -4
  1163. package/dist/ionic/p-bbc6db8c.entry.js +0 -4
  1164. package/dist/ionic/p-bf64af90.system.js +0 -4
  1165. package/dist/ionic/p-c005cc37.entry.js +0 -4
  1166. package/dist/ionic/p-c25c0ba4.entry.js +0 -4
  1167. package/dist/ionic/p-c468af8a.system.js +0 -4
  1168. package/dist/ionic/p-c5b5f44a.entry.js +0 -4
  1169. package/dist/ionic/p-c61cc894.js +0 -4
  1170. package/dist/ionic/p-c6a20407.system.entry.js +0 -4
  1171. package/dist/ionic/p-c8331397.system.entry.js +0 -4
  1172. package/dist/ionic/p-c8bf9ba7.entry.js +0 -4
  1173. package/dist/ionic/p-ceaea4ce.js +0 -4
  1174. package/dist/ionic/p-d37fdc68.system.entry.js +0 -4
  1175. package/dist/ionic/p-d47265c8.js +0 -4
  1176. package/dist/ionic/p-d7032956.system.js +0 -4
  1177. package/dist/ionic/p-d8c9d5ac.system.entry.js +0 -4
  1178. package/dist/ionic/p-daf1e8ec.system.entry.js +0 -4
  1179. package/dist/ionic/p-def7a8bd.system.entry.js +0 -4
  1180. package/dist/ionic/p-e00b72ce.js +0 -4
  1181. package/dist/ionic/p-e0a05506.js +0 -4
  1182. package/dist/ionic/p-e0c0218f.system.entry.js +0 -4
  1183. package/dist/ionic/p-e0c43e11.system.entry.js +0 -4
  1184. package/dist/ionic/p-e4683bfd.system.entry.js +0 -4
  1185. package/dist/ionic/p-e5708e5d.system.entry.js +0 -4
  1186. package/dist/ionic/p-e5c27d9f.system.entry.js +0 -4
  1187. package/dist/ionic/p-e5cf01f1.entry.js +0 -4
  1188. package/dist/ionic/p-e7309bfa.js +0 -4
  1189. package/dist/ionic/p-ed768b77.entry.js +0 -4
  1190. package/dist/ionic/p-eec4b772.entry.js +0 -4
  1191. package/dist/ionic/p-eeee3990.system.entry.js +0 -4
  1192. package/dist/ionic/p-efa0f3f5.entry.js +0 -4
  1193. package/dist/ionic/p-f02e9382.system.entry.js +0 -4
  1194. package/dist/ionic/p-f201b53a.system.js +0 -4
  1195. package/dist/ionic/p-f554845e.js +0 -4
  1196. package/dist/ionic/p-f6bb9be7.system.entry.js +0 -4
  1197. package/dist/ionic/p-f94b2f2f.system.entry.js +0 -4
  1198. package/dist/ionic/p-ff4a1ba0.system.entry.js +0 -4
  1199. /package/dist/collection/components/{input-password-toggle/input-password-toggle.css → refresher-content/refresher-content.css} +0 -0
@@ -1,4 +1,4 @@
1
1
  import{__awaiter,__generator}from"tslib";
2
2
  /*!
3
3
  * (C) Ionic http://ionicframework.com - MIT License
4
- */import{r as registerInstance,c as createEvent,h,e as Host,f as getElement}from"./index-527b9e34.js";import{g as getTimeGivenProgression}from"./cubic-bezier-fe2083dc.js";import{o as getPresentedOverlay,B as BACKDROP,n as focusFirstDescendant,q as focusLastDescendant,G as GESTURE}from"./overlays-7579a420.js";import{G as GESTURE_CONTROLLER}from"./gesture-controller-314a54f6.js";import{shouldUseCloseWatcher}from"./hardware-back-button-864101a3.js";import{p as isEndSide,i as inheritAriaAttributes,n as assert,j as clamp}from"./helpers-e48b0397.js";import{m as menuController}from"./index-c63afbe6.js";import{c as config,b as getIonMode,a as isPlatform}from"./ionic-global-ca86cf32.js";import{h as hostContext,c as createColorClasses}from"./theme-01f3f29c.js";import{u as menuOutline,v as menuSharp}from"./index-e2cf2ceb.js";import"./index-a5d50daf.js";import"./framework-delegate-c7d92b77.js";import"./index-738d7504.js";import"./animation-eab5a4ca.js";var menuIosCss=":host{--width:304px;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--background:var(--ion-background-color, #fff);left:0;right:0;top:0;bottom:0;display:none;position:absolute;contain:strict}:host(.show-menu){display:block}.menu-inner{-webkit-transform:translateX(-9999px);transform:translateX(-9999px);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:strict}:host(.menu-side-start) .menu-inner{--ion-safe-area-right:0px;top:0;bottom:0}:host(.menu-side-start) .menu-inner{inset-inline-start:0;inset-inline-end:auto}:host-context([dir=rtl]):host(.menu-side-start) .menu-inner,:host-context([dir=rtl]).menu-side-start .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}@supports selector(:dir(rtl)){:host(.menu-side-start:dir(rtl)) .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}}:host(.menu-side-end) .menu-inner{--ion-safe-area-left:0px;top:0;bottom:0}:host(.menu-side-end) .menu-inner{inset-inline-start:auto;inset-inline-end:0}:host-context([dir=rtl]):host(.menu-side-end) .menu-inner,:host-context([dir=rtl]).menu-side-end .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}@supports selector(:dir(rtl)){:host(.menu-side-end:dir(rtl)) .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}}ion-backdrop{display:none;opacity:0.01;z-index:-1}@media (max-width: 340px){.menu-inner{--width:264px}}:host(.menu-type-reveal){z-index:0}:host(.menu-type-reveal.show-menu) .menu-inner{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host(.menu-type-overlay){z-index:1000}:host(.menu-type-overlay) .show-backdrop{display:block;cursor:pointer}:host(.menu-pane-visible){-ms-flex:0 1 auto;flex:0 1 auto;width:var(--side-width, var(--width));min-width:var(--side-min-width, var(--min-width));max-width:var(--side-max-width, var(--max-width))}:host(.menu-pane-visible.split-pane-side){left:0;right:0;top:0;bottom:0;position:relative;-webkit-box-shadow:none;box-shadow:none;z-index:0}:host(.menu-pane-visible.split-pane-side.menu-enabled){display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0}:host(.menu-pane-visible.split-pane-side){-ms-flex-order:-1;order:-1}:host(.menu-pane-visible.split-pane-side[side=end]){-ms-flex-order:1;order:1}:host(.menu-pane-visible) .menu-inner{left:0;right:0;width:auto;-webkit-transform:none;transform:none;-webkit-box-shadow:none;box-shadow:none}:host(.menu-pane-visible) ion-backdrop{display:hidden !important}:host(.menu-pane-visible.split-pane-side){-webkit-border-start:0;border-inline-start:0;-webkit-border-end:var(--border);border-inline-end:var(--border);border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.menu-pane-visible.split-pane-side[side=end]){-webkit-border-start:var(--border);border-inline-start:var(--border);-webkit-border-end:0;border-inline-end:0;border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.menu-type-push){z-index:1000}:host(.menu-type-push) .show-backdrop{display:block}";var IonMenuIosStyle0=menuIosCss;var menuMdCss=":host{--width:304px;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--background:var(--ion-background-color, #fff);left:0;right:0;top:0;bottom:0;display:none;position:absolute;contain:strict}:host(.show-menu){display:block}.menu-inner{-webkit-transform:translateX(-9999px);transform:translateX(-9999px);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:strict}:host(.menu-side-start) .menu-inner{--ion-safe-area-right:0px;top:0;bottom:0}:host(.menu-side-start) .menu-inner{inset-inline-start:0;inset-inline-end:auto}:host-context([dir=rtl]):host(.menu-side-start) .menu-inner,:host-context([dir=rtl]).menu-side-start .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}@supports selector(:dir(rtl)){:host(.menu-side-start:dir(rtl)) .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}}:host(.menu-side-end) .menu-inner{--ion-safe-area-left:0px;top:0;bottom:0}:host(.menu-side-end) .menu-inner{inset-inline-start:auto;inset-inline-end:0}:host-context([dir=rtl]):host(.menu-side-end) .menu-inner,:host-context([dir=rtl]).menu-side-end .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}@supports selector(:dir(rtl)){:host(.menu-side-end:dir(rtl)) .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}}ion-backdrop{display:none;opacity:0.01;z-index:-1}@media (max-width: 340px){.menu-inner{--width:264px}}:host(.menu-type-reveal){z-index:0}:host(.menu-type-reveal.show-menu) .menu-inner{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host(.menu-type-overlay){z-index:1000}:host(.menu-type-overlay) .show-backdrop{display:block;cursor:pointer}:host(.menu-pane-visible){-ms-flex:0 1 auto;flex:0 1 auto;width:var(--side-width, var(--width));min-width:var(--side-min-width, var(--min-width));max-width:var(--side-max-width, var(--max-width))}:host(.menu-pane-visible.split-pane-side){left:0;right:0;top:0;bottom:0;position:relative;-webkit-box-shadow:none;box-shadow:none;z-index:0}:host(.menu-pane-visible.split-pane-side.menu-enabled){display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0}:host(.menu-pane-visible.split-pane-side){-ms-flex-order:-1;order:-1}:host(.menu-pane-visible.split-pane-side[side=end]){-ms-flex-order:1;order:1}:host(.menu-pane-visible) .menu-inner{left:0;right:0;width:auto;-webkit-transform:none;transform:none;-webkit-box-shadow:none;box-shadow:none}:host(.menu-pane-visible) ion-backdrop{display:hidden !important}:host(.menu-pane-visible.split-pane-side){-webkit-border-start:0;border-inline-start:0;-webkit-border-end:var(--border);border-inline-end:var(--border);border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.menu-pane-visible.split-pane-side[side=end]){-webkit-border-start:var(--border);border-inline-start:var(--border);-webkit-border-end:0;border-inline-end:0;border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.menu-type-overlay) .menu-inner{-webkit-box-shadow:4px 0px 16px rgba(0, 0, 0, 0.18);box-shadow:4px 0px 16px rgba(0, 0, 0, 0.18)}";var IonMenuMdStyle0=menuMdCss;var iosEasing="cubic-bezier(0.32,0.72,0,1)";var mdEasing="cubic-bezier(0.0,0.0,0.2,1)";var iosEasingReverse="cubic-bezier(1, 0, 0.68, 0.28)";var mdEasingReverse="cubic-bezier(0.4, 0, 0.6, 1)";var Menu=function(){function e(e){var t=this;registerInstance(this,e);this.ionWillOpen=createEvent(this,"ionWillOpen",7);this.ionWillClose=createEvent(this,"ionWillClose",7);this.ionDidOpen=createEvent(this,"ionDidOpen",7);this.ionDidClose=createEvent(this,"ionDidClose",7);this.ionMenuChange=createEvent(this,"ionMenuChange",7);this.lastOnEnd=0;this.blocker=GESTURE_CONTROLLER.createBlocker({disableScroll:true});this.didLoad=false;this.operationCancelled=false;this.isAnimating=false;this._isOpen=false;this.inheritedAttributes={};this.handleFocus=function(e){var n=getPresentedOverlay(document);if(n&&!n.contains(t.el)){return}t.trapKeyboardFocus(e,document)};this.isPaneVisible=false;this.isEndSide=false;this.contentId=undefined;this.menuId=undefined;this.type=undefined;this.disabled=false;this.side="start";this.swipeGesture=true;this.maxEdgeStart=50}e.prototype.typeChanged=function(e,t){var n=this.contentEl;if(n){if(t!==undefined){n.classList.remove("menu-content-".concat(t))}n.classList.add("menu-content-".concat(e));n.removeAttribute("style")}if(this.menuInnerEl){this.menuInnerEl.removeAttribute("style")}this.animation=undefined};e.prototype.disabledChanged=function(){this.updateState();this.ionMenuChange.emit({disabled:this.disabled,open:this._isOpen})};e.prototype.sideChanged=function(){this.isEndSide=isEndSide(this.side);this.animation=undefined};e.prototype.swipeGestureChanged=function(){this.updateState()};e.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;var n=this;return __generator(this,(function(i){switch(i.label){case 0:if(!(typeof customElements!=="undefined"&&customElements!=null))return[3,2];return[4,customElements.whenDefined("ion-menu")];case 1:i.sent();i.label=2;case 2:if(this.type===undefined){this.type=config.get("menuType","overlay")}e=this.contentId!==undefined?document.getElementById(this.contentId):null;if(e===null){console.error('Menu: must have a "content" element to listen for drag events on.');return[2]}if(this.el.contains(e)){console.error('Menu: "contentId" should refer to the main view\'s ion-content, not the ion-content inside of the ion-menu.')}this.contentEl=e;e.classList.add("menu-content");this.typeChanged(this.type,undefined);this.sideChanged();menuController._register(this);this.menuChanged();t=this;return[4,import("./index-39782642.js")];case 3:t.gesture=i.sent().createGesture({el:document,gestureName:"menu-swipe",gesturePriority:30,threshold:10,blurOnStart:true,canStart:function(e){return n.canStart(e)},onWillStart:function(){return n.onWillStart()},onStart:function(){return n.onStart()},onMove:function(e){return n.onMove(e)},onEnd:function(e){return n.onEnd(e)}});this.updateState();return[2]}}))}))};e.prototype.componentWillLoad=function(){this.inheritedAttributes=inheritAriaAttributes(this.el)};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:this.didLoad=true;e=this.el.closest("ion-split-pane");if(!(e!==null))return[3,2];t=this;return[4,e.isVisible()];case 1:t.isPaneVisible=n.sent();n.label=2;case 2:this.menuChanged();this.updateState();return[2]}}))}))};e.prototype.menuChanged=function(){if(this.didLoad){this.ionMenuChange.emit({disabled:this.disabled,open:this._isOpen})}};e.prototype.disconnectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.close(false)];case 1:e.sent();this.blocker.destroy();menuController._unregister(this);if(this.animation){this.animation.destroy()}if(this.gesture){this.gesture.destroy();this.gesture=undefined}this.animation=undefined;this.contentEl=undefined;return[2]}}))}))};e.prototype.onSplitPaneChanged=function(e){var t=this.el.closest("ion-split-pane");if(t!==null&&t===e.target){this.isPaneVisible=e.detail.visible;this.updateState()}};e.prototype.onBackdropClick=function(e){if(this._isOpen&&this.lastOnEnd<e.timeStamp-100){var t=e.composedPath?!e.composedPath().includes(this.menuInnerEl):false;if(t){e.preventDefault();e.stopPropagation();this.close(undefined,BACKDROP)}}};e.prototype.onKeydown=function(e){if(e.key==="Escape"){this.close(undefined,BACKDROP)}};e.prototype.isOpen=function(){return Promise.resolve(this._isOpen)};e.prototype.isActive=function(){return Promise.resolve(this._isActive())};e.prototype.open=function(e){if(e===void 0){e=true}return this.setOpen(true,e)};e.prototype.close=function(e,t){if(e===void 0){e=true}return this.setOpen(false,e,t)};e.prototype.toggle=function(e){if(e===void 0){e=true}return this.setOpen(!this._isOpen,e)};e.prototype.setOpen=function(e,t,n){if(t===void 0){t=true}return menuController._setOpen(this,e,t,n)};e.prototype.trapKeyboardFocus=function(e,t){var n=e.target;if(!n){return}if(this.el.contains(n)){this.lastFocus=n}else{var i=this.el;focusFirstDescendant(i);if(this.lastFocus===t.activeElement){focusLastDescendant(i)}}};e.prototype._setOpen=function(e){return __awaiter(this,arguments,void 0,(function(e,t,n){if(t===void 0){t=true}return __generator(this,(function(i){switch(i.label){case 0:if(!this._isActive()||this.isAnimating||e===this._isOpen){return[2,false]}this.beforeAnimation(e,n);return[4,this.loadAnimation()];case 1:i.sent();return[4,this.startAnimation(e,t)];case 2:i.sent();if(this.operationCancelled){this.operationCancelled=false;return[2,false]}this.afterAnimation(e,n);return[2,true]}}))}))};e.prototype.loadAnimation=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,i;return __generator(this,(function(r){switch(r.label){case 0:e=this.menuInnerEl.offsetWidth;t=isEndSide(this.side);if(e===this.width&&this.animation!==undefined&&t===this.isEndSide){return[2]}this.width=e;this.isEndSide=t;if(this.animation){this.animation.destroy();this.animation=undefined}i=this;return[4,menuController._createAnimation(this.type,this)];case 1:n=i.animation=r.sent();if(!config.getBoolean("animated",true)){n.duration(0)}n.fill("both");return[2]}}))}))};e.prototype.startAnimation=function(e,t){return __awaiter(this,void 0,void 0,(function(){var n,i,r,o,s;return __generator(this,(function(a){switch(a.label){case 0:n=!e;i=getIonMode(this);r=i==="ios"?iosEasing:mdEasing;o=i==="ios"?iosEasingReverse:mdEasingReverse;s=this.animation.direction(n?"reverse":"normal").easing(n?o:r);if(!t)return[3,2];return[4,s.play()];case 1:a.sent();return[3,3];case 2:s.play({sync:true});a.label=3;case 3:if(s.getDirection()==="reverse"){s.direction("normal")}return[2]}}))}))};e.prototype._isActive=function(){return!this.disabled&&!this.isPaneVisible};e.prototype.canSwipe=function(){return this.swipeGesture&&!this.isAnimating&&this._isActive()};e.prototype.canStart=function(e){var t=!!document.querySelector("ion-modal.show-modal");if(t||!this.canSwipe()){return false}if(this._isOpen){return true}else if(menuController._getOpenSync()){return false}return checkEdgeSide(window,e.currentX,this.isEndSide,this.maxEdgeStart)};e.prototype.onWillStart=function(){this.beforeAnimation(!this._isOpen,GESTURE);return this.loadAnimation()};e.prototype.onStart=function(){if(!this.isAnimating||!this.animation){assert(false,"isAnimating has to be true");return}this.animation.progressStart(true,this._isOpen?1:0)};e.prototype.onMove=function(e){if(!this.isAnimating||!this.animation){assert(false,"isAnimating has to be true");return}var t=computeDelta(e.deltaX,this._isOpen,this.isEndSide);var n=t/this.width;this.animation.progressStep(this._isOpen?1-n:n)};e.prototype.onEnd=function(e){var t=this;if(!this.isAnimating||!this.animation){assert(false,"isAnimating has to be true");return}var n=this._isOpen;var i=this.isEndSide;var r=computeDelta(e.deltaX,n,i);var o=this.width;var s=r/o;var a=e.velocityX;var d=o/2;var h=a>=0&&(a>.2||e.deltaX>d);var u=a<=0&&(a<-.2||e.deltaX<-d);var l=n?i?h:u:i?u:h;var c=!n&&l;if(n&&!l){c=true}this.lastOnEnd=e.currentTime;var f=l?.001:-.001;var m=s<0?.01:s;f+=getTimeGivenProgression([0,0],[.4,0],[.6,1],[1,1],clamp(0,m,.9999))[0]||0;var p=this._isOpen?!l:l;this.animation.easing("cubic-bezier(0.4, 0.0, 0.6, 1)").onFinish((function(){return t.afterAnimation(c,GESTURE)}),{oneTimeCallback:true}).progressEnd(p?1:0,this._isOpen?1-f:f,300)};e.prototype.beforeAnimation=function(e,t){assert(!this.isAnimating,"_before() should not be called while animating");if(isPlatform("android")){this.el.setAttribute("aria-hidden","true")}this.el.classList.add(SHOW_MENU);this.el.setAttribute("tabindex","0");if(this.backdropEl){this.backdropEl.classList.add(SHOW_BACKDROP)}if(this.contentEl){this.contentEl.classList.add(MENU_CONTENT_OPEN);this.contentEl.setAttribute("aria-hidden","true")}this.blocker.block();this.isAnimating=true;if(e){this.ionWillOpen.emit()}else{this.ionWillClose.emit({role:t})}};e.prototype.afterAnimation=function(e,t){var n;this._isOpen=e;this.isAnimating=false;if(!this._isOpen){this.blocker.unblock()}if(e){if(isPlatform("android")){this.el.removeAttribute("aria-hidden")}this.ionDidOpen.emit();var i=(n=document.activeElement)===null||n===void 0?void 0:n.closest("ion-menu");if(i!==this.el){this.el.focus()}document.addEventListener("focus",this.handleFocus,true)}else{this.el.removeAttribute("aria-hidden");this.el.classList.remove(SHOW_MENU);this.el.removeAttribute("tabindex");if(this.contentEl){this.contentEl.classList.remove(MENU_CONTENT_OPEN);this.contentEl.removeAttribute("aria-hidden")}if(this.backdropEl){this.backdropEl.classList.remove(SHOW_BACKDROP)}if(this.animation){this.animation.stop()}this.ionDidClose.emit({role:t});document.removeEventListener("focus",this.handleFocus,true)}};e.prototype.updateState=function(){var e=this._isActive();if(this.gesture){this.gesture.enable(e&&this.swipeGesture)}if(!e){if(this.isAnimating){this.operationCancelled=true}this.afterAnimation(false,GESTURE)}};e.prototype.render=function(){var e;var t=this;var n=this,i=n.type,r=n.disabled,o=n.el,s=n.isPaneVisible,a=n.inheritedAttributes,d=n.side;var u=getIonMode(this);return h(Host,{key:"342db8551d26604128b29b21d2d8c37593972ed9",onKeyDown:shouldUseCloseWatcher()?null:this.onKeydown,role:"navigation","aria-label":a["aria-label"]||"menu",class:(e={},e[u]=true,e["menu-type-".concat(i)]=true,e["menu-enabled"]=!r,e["menu-side-".concat(d)]=true,e["menu-pane-visible"]=s,e["split-pane-side"]=hostContext("ion-split-pane",o),e)},h("div",{key:"3c9bec2862b7fb9d88de66b1600be01f6735e3dd",class:"menu-inner",part:"container",ref:function(e){return t.menuInnerEl=e}},h("slot",{key:"76283b4b2a65c78646f92c3b273eea021eda499c"})),h("ion-backdrop",{key:"121c395bc4873542a1b6ae2c9e23f2e881e75d93",ref:function(e){return t.backdropEl=e},class:"menu-backdrop",tappable:false,stopPropagation:false,part:"backdrop"}))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{type:["typeChanged"],disabled:["disabledChanged"],side:["sideChanged"],swipeGesture:["swipeGestureChanged"]}},enumerable:false,configurable:true});return e}();var computeDelta=function(e,t,n){return Math.max(0,t!==n?-e:e)};var checkEdgeSide=function(e,t,n,i){if(n){return t>=e.innerWidth-i}else{return t<=i}};var SHOW_MENU="show-menu";var SHOW_BACKDROP="show-backdrop";var MENU_CONTENT_OPEN="menu-content-open";Menu.style={ios:IonMenuIosStyle0,md:IonMenuMdStyle0};var updateVisibility=function(e){return __awaiter(void 0,void 0,void 0,(function(){var t,n;return __generator(this,(function(i){switch(i.label){case 0:return[4,menuController.get(e)];case 1:t=i.sent();n=t;if(!n)return[3,3];return[4,t.isActive()];case 2:n=i.sent();i.label=3;case 3:return[2,!!n]}}))}))};var menuButtonIosCss=':host{--background:transparent;--color-focused:currentColor;--border-radius:initial;--padding-top:0;--padding-bottom:0;color:var(--color);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;z-index:1}ion-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;pointer-events:none}:host(.menu-button-hidden){display:none}:host(.menu-button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity, 0)}}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--background-focused:currentColor;--background-focused-opacity:.1;--border-radius:4px;--color:var(--ion-color-primary, #0054e9);--padding-start:5px;--padding-end:5px;min-height:32px;font-size:clamp(31px, 1.9375rem, 38.13px)}:host(.ion-activated){opacity:0.4}@media (any-hover: hover){:host(:hover){opacity:0.6}}';var IonMenuButtonIosStyle0=menuButtonIosCss;var menuButtonMdCss=':host{--background:transparent;--color-focused:currentColor;--border-radius:initial;--padding-top:0;--padding-bottom:0;color:var(--color);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;z-index:1}ion-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;pointer-events:none}:host(.menu-button-hidden){display:none}:host(.menu-button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity, 0)}}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--background-focused:currentColor;--background-focused-opacity:.12;--background-hover:currentColor;--background-hover-opacity:.04;--border-radius:50%;--color:initial;--padding-start:8px;--padding-end:8px;width:3rem;height:3rem;font-size:1.5rem}:host(.ion-color.ion-focused)::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}';var IonMenuButtonMdStyle0=menuButtonMdCss;var MenuButton=function(){function e(e){var t=this;registerInstance(this,e);this.inheritedAttributes={};this.onClick=function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){return[2,menuController.toggle(this.menu)]}))}))};this.visible=false;this.color=undefined;this.disabled=false;this.menu=undefined;this.autoHide=true;this.type="button"}e.prototype.componentWillLoad=function(){this.inheritedAttributes=inheritAriaAttributes(this.el)};e.prototype.componentDidLoad=function(){this.visibilityChanged()};e.prototype.visibilityChanged=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this;return[4,updateVisibility(this.menu)];case 1:e.visible=t.sent();return[2]}}))}))};e.prototype.render=function(){var e;var t=this,n=t.color,i=t.disabled,r=t.inheritedAttributes;var o=getIonMode(this);var s=config.get("menuIcon",o==="ios"?menuOutline:menuSharp);var a=this.autoHide&&!this.visible;var d={type:this.type};var u=r["aria-label"]||"menu";return h(Host,{key:"3cde3704f28eb275f4a5ff2985bbb68c1024e79c",onClick:this.onClick,"aria-disabled":i?"true":null,"aria-hidden":a?"true":null,class:createColorClasses(n,(e={},e[o]=true,e.button=true,e["menu-button-hidden"]=a,e["menu-button-disabled"]=i,e["in-toolbar"]=hostContext("ion-toolbar",this.el),e["in-toolbar-color"]=hostContext("ion-toolbar[color]",this.el),e["ion-activatable"]=true,e["ion-focusable"]=true,e))},h("button",Object.assign({key:"a02a3374288bd1759b6e352ada8eab0d45c6422f"},d,{disabled:i,class:"button-native",part:"native","aria-label":u}),h("span",{key:"ba699f2277a4e7b27ce5e42faeefc53d8805bb43",class:"button-inner"},h("slot",{key:"829fe6cbdeb173f50d1a670389d1565baa6273e4"},h("ion-icon",{key:"a9a9f7b8dcffc648a8429fe0adbe766869de72fd",part:"icon",icon:s,mode:o,lazy:false,"aria-hidden":"true"}))),o==="md"&&h("ion-ripple-effect",{key:"48deca9a771a249f2fc76eaa8b9741c8d66d8355",type:"unbounded"})))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();MenuButton.style={ios:IonMenuButtonIosStyle0,md:IonMenuButtonMdStyle0};var menuToggleCss=":host(.menu-toggle-hidden){display:none}";var IonMenuToggleStyle0=menuToggleCss;var MenuToggle=function(){function e(e){var t=this;registerInstance(this,e);this.onClick=function(){return menuController.toggle(t.menu)};this.visible=false;this.menu=undefined;this.autoHide=true}e.prototype.connectedCallback=function(){this.visibilityChanged()};e.prototype.visibilityChanged=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this;return[4,updateVisibility(this.menu)];case 1:e.visible=t.sent();return[2]}}))}))};e.prototype.render=function(){var e;var t=getIonMode(this);var n=this.autoHide&&!this.visible;return h(Host,{key:"88e88fa13ac7f10ba3acfe378bd11cda0c7e2749",onClick:this.onClick,"aria-hidden":n?"true":null,class:(e={},e[t]=true,e["menu-toggle-hidden"]=n,e)},h("slot",{key:"0a14c7b63eda64702d2fd1b4bc7db4809892842d"}))};return e}();MenuToggle.style=IonMenuToggleStyle0;export{Menu as ion_menu,MenuButton as ion_menu_button,MenuToggle as ion_menu_toggle};
4
+ */import{r as registerInstance,d as createEvent,h,f as Host,g as getElement}from"./index-4c3c5d46.js";import{g as getTimeGivenProgression}from"./cubic-bezier-fe2083dc.js";import{o as getPresentedOverlay,B as BACKDROP,n as focusFirstDescendant,q as focusLastDescendant,G as GESTURE}from"./overlays-d60b1d1e.js";import{G as GESTURE_CONTROLLER}from"./gesture-controller-314a54f6.js";import{b as getIonMode,a as isPlatform,c as getIonTheme,s as shouldUseCloseWatcher}from"./ionic-global-b30d2cc2.js";import{p as isEndSide,i as inheritAriaAttributes,n as assert,j as clamp}from"./helpers-ea1f7324.js";import{m as menuController}from"./index-036caa00.js";import{h as hostContext,c as createColorClasses}from"./theme-01f3f29c.js";import{c as config}from"./config-84eb9670.js";import{l as listSvg}from"./list-6524700c.js";import{u as menuOutline,v as menuSharp}from"./index-d997525d.js";import"./framework-delegate-9ad3e427.js";import"./focus-visible-6827442c.js";import"./animation-12d440f3.js";var ionicMenuMdCss=":host{--width:304px;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--background:var(--ion-background-color, #fff);right:0;left:0;top:0;bottom:0;display:none;position:absolute;contain:strict}:host(.show-menu){display:block}.menu-inner{-webkit-transform:translateX(-9999px);transform:translateX(-9999px);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:strict}:host(.menu-side-start) .menu-inner{--ion-safe-area-right:0px;top:0;bottom:0}:host(.menu-side-start) .menu-inner{inset-inline-start:0;inset-inline-end:auto}:host-context([dir=rtl]):host(.menu-side-start) .menu-inner,:host-context([dir=rtl]).menu-side-start .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}@supports selector(:dir(rtl)){:host(.menu-side-start:dir(rtl)) .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}}:host(.menu-side-end) .menu-inner{--ion-safe-area-left:0px;top:0;bottom:0}:host(.menu-side-end) .menu-inner{inset-inline-start:auto;inset-inline-end:0}:host-context([dir=rtl]):host(.menu-side-end) .menu-inner,:host-context([dir=rtl]).menu-side-end .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}@supports selector(:dir(rtl)){:host(.menu-side-end:dir(rtl)) .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}}ion-backdrop{display:none;opacity:0.01;z-index:-1}@media (max-width: 340px){.menu-inner{--width:264px}}:host(.menu-type-reveal){z-index:0}:host(.menu-type-reveal.show-menu) .menu-inner{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host(.menu-type-overlay){z-index:1000}:host(.menu-type-overlay) .show-backdrop{display:block;cursor:pointer}:host(.menu-pane-visible){-ms-flex:0 1 auto;flex:0 1 auto;width:var(--side-width, var(--width));min-width:var(--side-min-width, var(--min-width));max-width:var(--side-max-width, var(--max-width))}:host(.menu-pane-visible.split-pane-side){right:0;left:0;top:0;bottom:0;position:relative;-webkit-box-shadow:none;box-shadow:none;z-index:0}:host(.menu-pane-visible.split-pane-side.menu-enabled){display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0}:host(.menu-pane-visible.split-pane-side){-ms-flex-order:-1;order:-1}:host(.menu-pane-visible.split-pane-side[side=end]){-ms-flex-order:1;order:1}:host(.menu-pane-visible) .menu-inner{right:0;left:0;width:auto;-webkit-transform:none;transform:none;-webkit-box-shadow:none;box-shadow:none}:host(.menu-pane-visible) ion-backdrop{display:hidden !important}:host(.menu-pane-visible.split-pane-side){-webkit-border-start:0;border-inline-start:0;-webkit-border-end:var(--border);border-inline-end:var(--border);border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.menu-pane-visible.split-pane-side[side=end]){-webkit-border-start:var(--border);border-inline-start:var(--border);-webkit-border-end:0;border-inline-end:0;border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.menu-type-overlay) .menu-inner{-webkit-box-shadow:4px 0px 16px rgba(0, 0, 0, 0.18);box-shadow:4px 0px 16px rgba(0, 0, 0, 0.18)}";var IonMenuIonicStyle0=ionicMenuMdCss;var menuIosCss=":host{--width:304px;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--background:var(--ion-background-color, #fff);right:0;left:0;top:0;bottom:0;display:none;position:absolute;contain:strict}:host(.show-menu){display:block}.menu-inner{-webkit-transform:translateX(-9999px);transform:translateX(-9999px);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:strict}:host(.menu-side-start) .menu-inner{--ion-safe-area-right:0px;top:0;bottom:0}:host(.menu-side-start) .menu-inner{inset-inline-start:0;inset-inline-end:auto}:host-context([dir=rtl]):host(.menu-side-start) .menu-inner,:host-context([dir=rtl]).menu-side-start .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}@supports selector(:dir(rtl)){:host(.menu-side-start:dir(rtl)) .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}}:host(.menu-side-end) .menu-inner{--ion-safe-area-left:0px;top:0;bottom:0}:host(.menu-side-end) .menu-inner{inset-inline-start:auto;inset-inline-end:0}:host-context([dir=rtl]):host(.menu-side-end) .menu-inner,:host-context([dir=rtl]).menu-side-end .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}@supports selector(:dir(rtl)){:host(.menu-side-end:dir(rtl)) .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}}ion-backdrop{display:none;opacity:0.01;z-index:-1}@media (max-width: 340px){.menu-inner{--width:264px}}:host(.menu-type-reveal){z-index:0}:host(.menu-type-reveal.show-menu) .menu-inner{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host(.menu-type-overlay){z-index:1000}:host(.menu-type-overlay) .show-backdrop{display:block;cursor:pointer}:host(.menu-pane-visible){-ms-flex:0 1 auto;flex:0 1 auto;width:var(--side-width, var(--width));min-width:var(--side-min-width, var(--min-width));max-width:var(--side-max-width, var(--max-width))}:host(.menu-pane-visible.split-pane-side){right:0;left:0;top:0;bottom:0;position:relative;-webkit-box-shadow:none;box-shadow:none;z-index:0}:host(.menu-pane-visible.split-pane-side.menu-enabled){display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0}:host(.menu-pane-visible.split-pane-side){-ms-flex-order:-1;order:-1}:host(.menu-pane-visible.split-pane-side[side=end]){-ms-flex-order:1;order:1}:host(.menu-pane-visible) .menu-inner{right:0;left:0;width:auto;-webkit-transform:none;transform:none;-webkit-box-shadow:none;box-shadow:none}:host(.menu-pane-visible) ion-backdrop{display:hidden !important}:host(.menu-pane-visible.split-pane-side){-webkit-border-start:0;border-inline-start:0;-webkit-border-end:var(--border);border-inline-end:var(--border);border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.menu-pane-visible.split-pane-side[side=end]){-webkit-border-start:var(--border);border-inline-start:var(--border);-webkit-border-end:0;border-inline-end:0;border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.menu-type-push){z-index:1000}:host(.menu-type-push) .show-backdrop{display:block}";var IonMenuIosStyle0=menuIosCss;var menuMdCss=":host{--width:304px;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--background:var(--ion-background-color, #fff);right:0;left:0;top:0;bottom:0;display:none;position:absolute;contain:strict}:host(.show-menu){display:block}.menu-inner{-webkit-transform:translateX(-9999px);transform:translateX(-9999px);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:strict}:host(.menu-side-start) .menu-inner{--ion-safe-area-right:0px;top:0;bottom:0}:host(.menu-side-start) .menu-inner{inset-inline-start:0;inset-inline-end:auto}:host-context([dir=rtl]):host(.menu-side-start) .menu-inner,:host-context([dir=rtl]).menu-side-start .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}@supports selector(:dir(rtl)){:host(.menu-side-start:dir(rtl)) .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}}:host(.menu-side-end) .menu-inner{--ion-safe-area-left:0px;top:0;bottom:0}:host(.menu-side-end) .menu-inner{inset-inline-start:auto;inset-inline-end:0}:host-context([dir=rtl]):host(.menu-side-end) .menu-inner,:host-context([dir=rtl]).menu-side-end .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}@supports selector(:dir(rtl)){:host(.menu-side-end:dir(rtl)) .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}}ion-backdrop{display:none;opacity:0.01;z-index:-1}@media (max-width: 340px){.menu-inner{--width:264px}}:host(.menu-type-reveal){z-index:0}:host(.menu-type-reveal.show-menu) .menu-inner{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host(.menu-type-overlay){z-index:1000}:host(.menu-type-overlay) .show-backdrop{display:block;cursor:pointer}:host(.menu-pane-visible){-ms-flex:0 1 auto;flex:0 1 auto;width:var(--side-width, var(--width));min-width:var(--side-min-width, var(--min-width));max-width:var(--side-max-width, var(--max-width))}:host(.menu-pane-visible.split-pane-side){right:0;left:0;top:0;bottom:0;position:relative;-webkit-box-shadow:none;box-shadow:none;z-index:0}:host(.menu-pane-visible.split-pane-side.menu-enabled){display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0}:host(.menu-pane-visible.split-pane-side){-ms-flex-order:-1;order:-1}:host(.menu-pane-visible.split-pane-side[side=end]){-ms-flex-order:1;order:1}:host(.menu-pane-visible) .menu-inner{right:0;left:0;width:auto;-webkit-transform:none;transform:none;-webkit-box-shadow:none;box-shadow:none}:host(.menu-pane-visible) ion-backdrop{display:hidden !important}:host(.menu-pane-visible.split-pane-side){-webkit-border-start:0;border-inline-start:0;-webkit-border-end:var(--border);border-inline-end:var(--border);border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.menu-pane-visible.split-pane-side[side=end]){-webkit-border-start:var(--border);border-inline-start:var(--border);-webkit-border-end:0;border-inline-end:0;border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.menu-type-overlay) .menu-inner{-webkit-box-shadow:4px 0px 16px rgba(0, 0, 0, 0.18);box-shadow:4px 0px 16px rgba(0, 0, 0, 0.18)}";var IonMenuMdStyle0=menuMdCss;var iosEasing="cubic-bezier(0.32,0.72,0,1)";var mdEasing="cubic-bezier(0.0,0.0,0.2,1)";var iosEasingReverse="cubic-bezier(1, 0, 0.68, 0.28)";var mdEasingReverse="cubic-bezier(0.4, 0, 0.6, 1)";var Menu=function(){function e(e){var t=this;registerInstance(this,e);this.ionWillOpen=createEvent(this,"ionWillOpen",7);this.ionWillClose=createEvent(this,"ionWillClose",7);this.ionDidOpen=createEvent(this,"ionDidOpen",7);this.ionDidClose=createEvent(this,"ionDidClose",7);this.ionMenuChange=createEvent(this,"ionMenuChange",7);this.lastOnEnd=0;this.blocker=GESTURE_CONTROLLER.createBlocker({disableScroll:true});this.didLoad=false;this.operationCancelled=false;this.isAnimating=false;this._isOpen=false;this.inheritedAttributes={};this.handleFocus=function(e){var n=getPresentedOverlay(document);if(n&&!n.contains(t.el)){return}t.trapKeyboardFocus(e,document)};this.isPaneVisible=false;this.isEndSide=false;this.contentId=undefined;this.menuId=undefined;this.type=undefined;this.disabled=false;this.side="start";this.swipeGesture=true;this.maxEdgeStart=50}e.prototype.typeChanged=function(e,t){var n=this.contentEl;if(n){if(t!==undefined){n.classList.remove("menu-content-".concat(t))}n.classList.add("menu-content-".concat(e));n.removeAttribute("style")}if(this.menuInnerEl){this.menuInnerEl.removeAttribute("style")}this.animation=undefined};e.prototype.disabledChanged=function(){this.updateState();this.ionMenuChange.emit({disabled:this.disabled,open:this._isOpen})};e.prototype.sideChanged=function(){this.isEndSide=isEndSide(this.side);this.animation=undefined};e.prototype.swipeGestureChanged=function(){this.updateState()};e.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;var n=this;return __generator(this,(function(i){switch(i.label){case 0:if(!(typeof customElements!=="undefined"&&customElements!=null))return[3,2];return[4,customElements.whenDefined("ion-menu")];case 1:i.sent();i.label=2;case 2:if(this.type===undefined){this.type=config.get("menuType","overlay")}e=this.contentId!==undefined?document.getElementById(this.contentId):null;if(e===null){console.error('Menu: must have a "content" element to listen for drag events on.');return[2]}if(this.el.contains(e)){console.error('Menu: "contentId" should refer to the main view\'s ion-content, not the ion-content inside of the ion-menu.')}this.contentEl=e;e.classList.add("menu-content");this.typeChanged(this.type,undefined);this.sideChanged();menuController._register(this);this.menuChanged();t=this;return[4,import("./index-39782642.js")];case 3:t.gesture=i.sent().createGesture({el:document,gestureName:"menu-swipe",gesturePriority:30,threshold:10,blurOnStart:true,canStart:function(e){return n.canStart(e)},onWillStart:function(){return n.onWillStart()},onStart:function(){return n.onStart()},onMove:function(e){return n.onMove(e)},onEnd:function(e){return n.onEnd(e)}});this.updateState();return[2]}}))}))};e.prototype.componentWillLoad=function(){this.inheritedAttributes=inheritAriaAttributes(this.el)};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:this.didLoad=true;e=this.el.closest("ion-split-pane");if(!(e!==null))return[3,2];t=this;return[4,e.isVisible()];case 1:t.isPaneVisible=n.sent();n.label=2;case 2:this.menuChanged();this.updateState();return[2]}}))}))};e.prototype.menuChanged=function(){if(this.didLoad){this.ionMenuChange.emit({disabled:this.disabled,open:this._isOpen})}};e.prototype.disconnectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.close(false)];case 1:e.sent();this.blocker.destroy();menuController._unregister(this);if(this.animation){this.animation.destroy()}if(this.gesture){this.gesture.destroy();this.gesture=undefined}this.animation=undefined;this.contentEl=undefined;return[2]}}))}))};e.prototype.onSplitPaneChanged=function(e){var t=this.el.closest("ion-split-pane");if(t!==null&&t===e.target){this.isPaneVisible=e.detail.visible;this.updateState()}};e.prototype.onBackdropClick=function(e){if(this._isOpen&&this.lastOnEnd<e.timeStamp-100){var t=e.composedPath?!e.composedPath().includes(this.menuInnerEl):false;if(t){e.preventDefault();e.stopPropagation();this.close(undefined,BACKDROP)}}};e.prototype.onKeydown=function(e){if(e.key==="Escape"){this.close(undefined,BACKDROP)}};e.prototype.isOpen=function(){return Promise.resolve(this._isOpen)};e.prototype.isActive=function(){return Promise.resolve(this._isActive())};e.prototype.open=function(e){if(e===void 0){e=true}return this.setOpen(true,e)};e.prototype.close=function(e,t){if(e===void 0){e=true}return this.setOpen(false,e,t)};e.prototype.toggle=function(e){if(e===void 0){e=true}return this.setOpen(!this._isOpen,e)};e.prototype.setOpen=function(e,t,n){if(t===void 0){t=true}return menuController._setOpen(this,e,t,n)};e.prototype.trapKeyboardFocus=function(e,t){var n=e.target;if(!n){return}if(this.el.contains(n)){this.lastFocus=n}else{var i=this.el;focusFirstDescendant(i);if(this.lastFocus===t.activeElement){focusLastDescendant(i)}}};e.prototype._setOpen=function(e){return __awaiter(this,arguments,void 0,(function(e,t,n){if(t===void 0){t=true}return __generator(this,(function(i){switch(i.label){case 0:if(!this._isActive()||this.isAnimating||e===this._isOpen){return[2,false]}this.beforeAnimation(e,n);return[4,this.loadAnimation()];case 1:i.sent();return[4,this.startAnimation(e,t)];case 2:i.sent();if(this.operationCancelled){this.operationCancelled=false;return[2,false]}this.afterAnimation(e,n);return[2,true]}}))}))};e.prototype.loadAnimation=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,i;return __generator(this,(function(o){switch(o.label){case 0:e=this.menuInnerEl.offsetWidth;t=isEndSide(this.side);if(e===this.width&&this.animation!==undefined&&t===this.isEndSide){return[2]}this.width=e;this.isEndSide=t;if(this.animation){this.animation.destroy();this.animation=undefined}i=this;return[4,menuController._createAnimation(this.type,this)];case 1:n=i.animation=o.sent();if(!config.getBoolean("animated",true)){n.duration(0)}n.fill("both");return[2]}}))}))};e.prototype.startAnimation=function(e,t){return __awaiter(this,void 0,void 0,(function(){var n,i,o,r,a;return __generator(this,(function(s){switch(s.label){case 0:n=!e;i=getIonMode(this);o=i==="ios"?iosEasing:mdEasing;r=i==="ios"?iosEasingReverse:mdEasingReverse;a=this.animation.direction(n?"reverse":"normal").easing(n?r:o);if(!t)return[3,2];return[4,a.play()];case 1:s.sent();return[3,3];case 2:a.play({sync:true});s.label=3;case 3:if(a.getDirection()==="reverse"){a.direction("normal")}return[2]}}))}))};e.prototype._isActive=function(){return!this.disabled&&!this.isPaneVisible};e.prototype.canSwipe=function(){return this.swipeGesture&&!this.isAnimating&&this._isActive()};e.prototype.canStart=function(e){var t=!!document.querySelector("ion-modal.show-modal");if(t||!this.canSwipe()){return false}if(this._isOpen){return true}else if(menuController._getOpenSync()){return false}return checkEdgeSide(window,e.currentX,this.isEndSide,this.maxEdgeStart)};e.prototype.onWillStart=function(){this.beforeAnimation(!this._isOpen,GESTURE);return this.loadAnimation()};e.prototype.onStart=function(){if(!this.isAnimating||!this.animation){assert(false,"isAnimating has to be true");return}this.animation.progressStart(true,this._isOpen?1:0)};e.prototype.onMove=function(e){if(!this.isAnimating||!this.animation){assert(false,"isAnimating has to be true");return}var t=computeDelta(e.deltaX,this._isOpen,this.isEndSide);var n=t/this.width;this.animation.progressStep(this._isOpen?1-n:n)};e.prototype.onEnd=function(e){var t=this;if(!this.isAnimating||!this.animation){assert(false,"isAnimating has to be true");return}var n=this._isOpen;var i=this.isEndSide;var o=computeDelta(e.deltaX,n,i);var r=this.width;var a=o/r;var s=e.velocityX;var d=r/2;var h=s>=0&&(s>.2||e.deltaX>d);var u=s<=0&&(s<-.2||e.deltaX<-d);var l=n?i?h:u:i?u:h;var c=!n&&l;if(n&&!l){c=true}this.lastOnEnd=e.currentTime;var f=l?.001:-.001;var m=a<0?.01:a;f+=getTimeGivenProgression([0,0],[.4,0],[.6,1],[1,1],clamp(0,m,.9999))[0]||0;var p=this._isOpen?!l:l;this.animation.easing("cubic-bezier(0.4, 0.0, 0.6, 1)").onFinish((function(){return t.afterAnimation(c,GESTURE)}),{oneTimeCallback:true}).progressEnd(p?1:0,this._isOpen?1-f:f,300)};e.prototype.beforeAnimation=function(e,t){assert(!this.isAnimating,"_before() should not be called while animating");if(isPlatform("android")){this.el.setAttribute("aria-hidden","true")}this.el.classList.add(SHOW_MENU);this.el.setAttribute("tabindex","0");if(this.backdropEl){this.backdropEl.classList.add(SHOW_BACKDROP)}if(this.contentEl){this.contentEl.classList.add(MENU_CONTENT_OPEN);this.contentEl.setAttribute("aria-hidden","true")}this.blocker.block();this.isAnimating=true;if(e){this.ionWillOpen.emit()}else{this.ionWillClose.emit({role:t})}};e.prototype.afterAnimation=function(e,t){var n;this._isOpen=e;this.isAnimating=false;if(!this._isOpen){this.blocker.unblock()}if(e){if(isPlatform("android")){this.el.removeAttribute("aria-hidden")}this.ionDidOpen.emit();var i=(n=document.activeElement)===null||n===void 0?void 0:n.closest("ion-menu");if(i!==this.el){this.el.focus()}document.addEventListener("focus",this.handleFocus,true)}else{this.el.removeAttribute("aria-hidden");this.el.classList.remove(SHOW_MENU);this.el.removeAttribute("tabindex");if(this.contentEl){this.contentEl.classList.remove(MENU_CONTENT_OPEN);this.contentEl.removeAttribute("aria-hidden")}if(this.backdropEl){this.backdropEl.classList.remove(SHOW_BACKDROP)}if(this.animation){this.animation.stop()}this.ionDidClose.emit({role:t});document.removeEventListener("focus",this.handleFocus,true)}};e.prototype.updateState=function(){var e=this._isActive();if(this.gesture){this.gesture.enable(e&&this.swipeGesture)}if(!e){if(this.isAnimating){this.operationCancelled=true}this.afterAnimation(false,GESTURE)}};e.prototype.render=function(){var e;var t=this;var n=this,i=n.type,o=n.disabled,r=n.el,a=n.isPaneVisible,s=n.inheritedAttributes,d=n.side;var u=getIonTheme(this);return h(Host,{key:"5a368496eec74d3b27c3a40121ceafc7cdc470de",onKeyDown:shouldUseCloseWatcher()?null:this.onKeydown,role:"navigation","aria-label":s["aria-label"]||"menu",class:(e={},e[u]=true,e["menu-type-".concat(i)]=true,e["menu-enabled"]=!o,e["menu-side-".concat(d)]=true,e["menu-pane-visible"]=a,e["split-pane-side"]=hostContext("ion-split-pane",r),e)},h("div",{key:"873010981d4c338597b041cd9a65df24e030b261",class:"menu-inner",part:"container",ref:function(e){return t.menuInnerEl=e}},h("slot",{key:"14562442df4bd440212d0c62a527465603a44ef2"})),h("ion-backdrop",{key:"235058ee20ccc75f57dcebe0ffde359334ce3053",ref:function(e){return t.backdropEl=e},class:"menu-backdrop",tappable:false,stopPropagation:false,part:"backdrop"}))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{type:["typeChanged"],disabled:["disabledChanged"],side:["sideChanged"],swipeGesture:["swipeGestureChanged"]}},enumerable:false,configurable:true});return e}();var computeDelta=function(e,t,n){return Math.max(0,t!==n?-e:e)};var checkEdgeSide=function(e,t,n,i){if(n){return t>=e.innerWidth-i}else{return t<=i}};var SHOW_MENU="show-menu";var SHOW_BACKDROP="show-backdrop";var MENU_CONTENT_OPEN="menu-content-open";Menu.style={ionic:IonMenuIonicStyle0,ios:IonMenuIosStyle0,md:IonMenuMdStyle0};var updateVisibility=function(e){return __awaiter(void 0,void 0,void 0,(function(){var t,n;return __generator(this,(function(i){switch(i.label){case 0:return[4,menuController.get(e)];case 1:t=i.sent();n=t;if(!n)return[3,3];return[4,t.isActive()];case 2:n=i.sent();i.label=3;case 3:return[2,!!n]}}))}))};var menuButtonIonicCss=':host{--background:transparent;--color-focused:currentColor;--border-radius:initial;--padding-top:0;--padding-bottom:0;color:var(--color);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;white-space:inherit;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;z-index:1}ion-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;pointer-events:none}:host(.menu-button-hidden){display:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{right:0;left:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity, 0)}}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--background-focused:currentColor;--background-focused-opacity:0.12;--background-hover:currentColor;--background-hover-opacity:0.04;--border-radius:initial;--color:initial;--padding-start:0;--padding-end:0;position:relative;width:var(--ion-scale-1000, 40px);height:var(--ion-scale-1000, 40px);font-size:var(--ion-font-size-600, 1.5rem)}';var IonMenuButtonIonicStyle0=menuButtonIonicCss;var menuButtonIosCss=':host{--background:transparent;--color-focused:currentColor;--border-radius:initial;--padding-top:0;--padding-bottom:0;color:var(--color);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;white-space:inherit;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;z-index:1}ion-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;pointer-events:none}:host(.menu-button-hidden){display:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{right:0;left:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity, 0)}}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host(.menu-button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host{--background-focused:currentColor;--background-focused-opacity:0.1;--border-radius:4px;--color:var(--ion-color-primary, #0054e9);--padding-start:5px;--padding-end:5px;min-height:32px;font-size:clamp(31px, 1.9375rem, 38.13px)}:host(.ion-activated){opacity:0.4}@media (any-hover: hover){:host(:hover){opacity:0.6}}';var IonMenuButtonIosStyle0=menuButtonIosCss;var menuButtonMdCss=':host{--background:transparent;--color-focused:currentColor;--border-radius:initial;--padding-top:0;--padding-bottom:0;color:var(--color);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;white-space:inherit;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;z-index:1}ion-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;pointer-events:none}:host(.menu-button-hidden){display:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{right:0;left:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity, 0)}}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host(.menu-button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host{--background-focused:currentColor;--background-focused-opacity:0.12;--background-hover:currentColor;--background-hover-opacity:0.04;--border-radius:50%;--color:initial;--padding-start:8px;--padding-end:8px;width:3rem;height:3rem;font-size:1.5rem}:host(.ion-color.ion-focused)::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}';var IonMenuButtonMdStyle0=menuButtonMdCss;var MenuButton=function(){function e(e){var t=this;registerInstance(this,e);this.inheritedAttributes={};this.onClick=function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){return[2,menuController.toggle(this.menu)]}))}))};this.visible=false;this.color=undefined;this.disabled=false;this.menu=undefined;this.autoHide=true;this.type="button"}e.prototype.componentWillLoad=function(){this.inheritedAttributes=inheritAriaAttributes(this.el)};e.prototype.componentDidLoad=function(){this.visibilityChanged()};e.prototype.visibilityChanged=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this;return[4,updateVisibility(this.menu)];case 1:e.visible=t.sent();return[2]}}))}))};Object.defineProperty(e.prototype,"menuIcon",{get:function(){var e=getIonTheme(this);var t={ios:menuOutline,ionic:listSvg,md:menuSharp};var n=t[e]||t.md;return config.get("menuIcon",n)},enumerable:false,configurable:true});e.prototype.render=function(){var e;var t=this,n=t.color,i=t.disabled,o=t.inheritedAttributes,r=t.menuIcon;var a=getIonTheme(this);var s=this.autoHide&&!this.visible;var d={type:this.type};var u=o["aria-label"]||"menu";return h(Host,{key:"5aa52eed49193c710dfbec6a04db78c5480900dc",onClick:this.onClick,"aria-disabled":i?"true":null,"aria-hidden":s?"true":null,class:createColorClasses(n,(e={},e[a]=true,e.button=true,e["menu-button-hidden"]=s,e["menu-button-disabled"]=i,e["in-toolbar"]=hostContext("ion-toolbar",this.el),e["in-toolbar-color"]=hostContext("ion-toolbar[color]",this.el),e["ion-activatable"]=true,e["ion-focusable"]=true,e))},h("button",Object.assign({key:"2a95efb8f7b1672afe4e52dcededc03599e09312"},d,{disabled:i,class:"button-native",part:"native","aria-label":u}),h("span",{key:"09ee78a26bd7288f95c84820805f80ebfda912d4",class:"button-inner"},h("slot",{key:"ee3d3a191078f85264f5fe4f080463b9e5fdfe5f"},h("ion-icon",{key:"766459adce317a7c5a88182e133deae7082645f0",part:"icon",icon:r,lazy:false,"aria-hidden":"true"}))),a==="md"&&h("ion-ripple-effect",{key:"701984be7d9ba408a0789addc3d642cd5570380f",type:"unbounded"})))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();MenuButton.style={ionic:IonMenuButtonIonicStyle0,ios:IonMenuButtonIosStyle0,md:IonMenuButtonMdStyle0};var menuToggleCss=":host(.menu-toggle-hidden){display:none}";var IonMenuToggleStyle0=menuToggleCss;var MenuToggle=function(){function e(e){var t=this;registerInstance(this,e);this.onClick=function(){return menuController.toggle(t.menu)};this.visible=false;this.menu=undefined;this.autoHide=true}e.prototype.connectedCallback=function(){this.visibilityChanged()};e.prototype.visibilityChanged=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this;return[4,updateVisibility(this.menu)];case 1:e.visible=t.sent();return[2]}}))}))};e.prototype.render=function(){var e;var t=getIonTheme(this);var n=this.autoHide&&!this.visible;return h(Host,{key:"ced6ea34ce2d4811718c8501188fd93937ef22ab",onClick:this.onClick,"aria-hidden":n?"true":null,class:(e={},e[t]=true,e["menu-toggle-hidden"]=n,e)},h("slot",{key:"61d0dcf810c8ae492f773202aab52f0fc3cc206c"}))};return e}();MenuToggle.style=IonMenuToggleStyle0;export{Menu as ion_menu,MenuButton as ion_menu_button,MenuToggle as ion_menu_toggle};
@@ -1,4 +1,4 @@
1
1
  import{__awaiter,__generator,__spreadArray}from"tslib";
2
2
  /*!
3
3
  * (C) Ionic http://ionicframework.com - MIT License
4
- */import{r as registerInstance,c as createEvent,w as writeTask,h,e as Host,f as getElement}from"./index-527b9e34.js";import{f as findClosestIonContent,i as isIonContent,d as disableContentScrollY,r as resetContentScrollY,a as findIonContent,p as printIonContentErrorMsg}from"./index-933ca126.js";import{C as CoreDelegate,a as attachComponent,d as detachComponent}from"./framework-delegate-c7d92b77.js";import{g as getElementRoot,j as clamp,r as raf,h as inheritAttributes,k as hasLazyBuild}from"./helpers-e48b0397.js";import{c as createLockController}from"./lock-controller-316928be.js";import{p as printIonWarning}from"./index-738d7504.js";import{g as getCapacitor}from"./capacitor-59395cbd.js";import{G as GESTURE,O as OVERLAY_GESTURE_PRIORITY,F as FOCUS_TRAP_DISABLE_CLASS,e as createTriggerController,B as BACKDROP,j as prepareOverlay,k as setOverlayId,f as present,g as dismiss,h as eventMethod}from"./overlays-7579a420.js";import{g as getClassMap}from"./theme-01f3f29c.js";import{e as deepReady,w as waitForMount}from"./index-a313df53.js";import{b as getIonMode,c as config}from"./ionic-global-ca86cf32.js";import{KEYBOARD_DID_OPEN}from"./keyboard-52278bd7.js";import{c as createAnimation}from"./animation-eab5a4ca.js";import{g as getTimeGivenProgression}from"./cubic-bezier-fe2083dc.js";import{createGesture}from"./index-39782642.js";import{w as win}from"./index-a5d50daf.js";import"./hardware-back-button-864101a3.js";import"./gesture-controller-314a54f6.js";import"./keyboard-73175e24.js";var Style;(function(t){t["Dark"]="DARK";t["Light"]="LIGHT";t["Default"]="DEFAULT"})(Style||(Style={}));var StatusBar={getEngine:function(){var t=getCapacitor();if(t===null||t===void 0?void 0:t.isPluginAvailable("StatusBar")){return t.Plugins.StatusBar}return undefined},setStyle:function(t){var e=this.getEngine();if(!e){return}e.setStyle(t)},getStyle:function(){return __awaiter(this,void 0,void 0,(function(){var t,e;return __generator(this,(function(r){switch(r.label){case 0:t=this.getEngine();if(!t){return[2,Style.Default]}return[4,t.getInfo()];case 1:e=r.sent().style;return[2,e]}}))}))}};var getBackdropValueForSheet=function(t,e){if(e===1){return 0}var r=1/(1-e);var a=-(e*r);return t*r+a};var setCardStatusBarDark=function(){if(!win||win.innerWidth>=768){return}StatusBar.setStyle({style:Style.Dark})};var setCardStatusBarDefault=function(t){if(t===void 0){t=Style.Default}if(!win||win.innerWidth>=768){return}StatusBar.setStyle({style:t})};var handleCanDismiss=function(t,e){return __awaiter(void 0,void 0,void 0,(function(){var r;return __generator(this,(function(a){switch(a.label){case 0:if(typeof t.canDismiss!=="function"){return[2]}return[4,t.canDismiss(undefined,GESTURE)];case 1:r=a.sent();if(!r){return[2]}if(e.isRunning()){e.onFinish((function(){t.dismiss(undefined,"handler")}),{oneTimeCallback:true})}else{t.dismiss(undefined,"handler")}return[2]}}))}))};var calculateSpringStep=function(t){return.00255275*Math.pow(2.71828,-14.9619*t)-1.00255*Math.pow(2.71828,-.0380968*t)+1};var SwipeToCloseDefaults={MIN_PRESENTING_SCALE:.915};var createSwipeToCloseGesture=function(t,e,r,a){var i=.5;var n=t.offsetHeight;var o=false;var s=false;var d=null;var f=null;var l=.2;var c=true;var u=0;var h=function(){if(d&&isIonContent(d)){return d.scrollY}else{return true}};var p=function(t){var e=t.event.target;if(e===null||!e.closest){return true}d=findClosestIonContent(e);if(d){if(isIonContent(d)){var r=getElementRoot(d);f=r.querySelector(".inner-scroll")}else{f=d}var a=!!d.querySelector("ion-refresher");return!a&&f.scrollTop===0}var i=e.closest("ion-footer");if(i===null){return true}return false};var v=function(r){var a=r.deltaY;c=h();s=t.canDismiss!==undefined&&t.canDismiss!==true;if(a>0&&d){disableContentScrollY(d)}e.progressStart(true,o?1:0)};var m=function(t){var a=t.deltaY;if(a>0&&d){disableContentScrollY(d)}var o=t.deltaY/n;var f=o>=0&&s;var c=f?l:.9999;var h=f?calculateSpringStep(o/c):o;var p=clamp(1e-4,h,c);e.progressStep(p);if(p>=i&&u<i){setCardStatusBarDefault(r)}else if(p<i&&u>=i){setCardStatusBarDark()}u=p};var b=function(r){var f=r.velocityY;var u=r.deltaY/n;var h=u>=0&&s;var p=h?l:.9999;var v=h?calculateSpringStep(u/p):u;var m=clamp(1e-4,v,p);var b=(r.deltaY+f*1e3)/n;var w=!h&&b>=i;var x=w?-.001:.001;if(!w){e.easing("cubic-bezier(1, 0, 0.68, 0.28)");x+=getTimeGivenProgression([0,0],[1,0],[.68,.28],[1,1],m)[0]}else{e.easing("cubic-bezier(0.32, 0.72, 0, 1)");x+=getTimeGivenProgression([0,0],[.32,.72],[0,1],[1,1],m)[0]}var y=w?computeDuration(u*n,f):computeDuration((1-m)*n,f);o=w;g.enable(false);if(d){resetContentScrollY(d,c)}e.onFinish((function(){if(!w){g.enable(true)}})).progressEnd(w?1:0,x,y);if(h&&m>p/4){handleCanDismiss(t,e)}else if(w){a()}};var g=createGesture({el:t,gestureName:"modalSwipeToClose",gesturePriority:OVERLAY_GESTURE_PRIORITY,direction:"y",threshold:10,canStart:p,onStart:v,onMove:m,onEnd:b});return g};var computeDuration=function(t,e){return clamp(400,t/Math.abs(e*1.1),500)};var createSheetEnterAnimation=function(t){var e=t.currentBreakpoint,r=t.backdropBreakpoint,a=t.expandToScroll;var i=r===undefined||r<e;var n=i?"calc(var(--backdrop-opacity) * ".concat(e,")"):"0";var o=createAnimation("backdropAnimation").fromTo("opacity",0,n);if(i){o.beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"])}var s=createAnimation("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:"translateY(100%)"},{offset:1,opacity:1,transform:"translateY(".concat(100-e*100,"%)")}]);var d=!a?createAnimation("contentAnimation").keyframes([{offset:0,opacity:1,maxHeight:"".concat((1-e)*100,"%")},{offset:1,opacity:1,maxHeight:"".concat(e*100,"%")}]):undefined;return{wrapperAnimation:s,backdropAnimation:o,contentAnimation:d}};var createSheetLeaveAnimation=function(t){var e=t.currentBreakpoint,r=t.backdropBreakpoint;var a="calc(var(--backdrop-opacity) * ".concat(getBackdropValueForSheet(e,r),")");var i=[{offset:0,opacity:a},{offset:1,opacity:0}];var n=[{offset:0,opacity:a},{offset:r,opacity:0},{offset:1,opacity:0}];var o=createAnimation("backdropAnimation").keyframes(r!==0?n:i);var s=createAnimation("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:"translateY(".concat(100-e*100,"%)")},{offset:1,opacity:1,transform:"translateY(100%)"}]);return{wrapperAnimation:s,backdropAnimation:o}};var createEnterAnimation$1=function(){var t=createAnimation().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]);var e=createAnimation().fromTo("transform","translateY(100vh)","translateY(0vh)");return{backdropAnimation:t,wrapperAnimation:e,contentAnimation:undefined}};var iosEnterAnimation=function(t,e){var r=e.presentingEl,a=e.currentBreakpoint,i=e.expandToScroll;var n=getElementRoot(t);var o=a!==undefined?createSheetEnterAnimation(e):createEnterAnimation$1(),s=o.wrapperAnimation,d=o.backdropAnimation,f=o.contentAnimation;d.addElement(n.querySelector("ion-backdrop"));s.addElement(n.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});!i&&(f===null||f===void 0?void 0:f.addElement(t.querySelector(".ion-page")));var l=createAnimation("entering-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(500).addAnimation([s]).beforeAddWrite((function(){if(i){return}var e=t.querySelector("ion-footer");var r=t.shadowRoot.querySelector("ion-footer");if(e&&!r){var a=e.clientHeight;var n=e.cloneNode(true);t.shadowRoot.appendChild(n);e.style.setProperty("display","none");e.setAttribute("aria-hidden","true");var o=t.querySelector(".ion-page");o.style.setProperty("padding-bottom","".concat(a,"px"))}}));if(f){l.addAnimation(f)}if(r){var c=window.innerWidth<768;var u=r.tagName==="ION-MODAL"&&r.presentingElement!==undefined;var h=getElementRoot(r);var p=createAnimation().beforeStyles({transform:"translateY(0)","transform-origin":"top center",overflow:"hidden"});var v=document.body;if(c){var m=!CSS.supports("width","max(0px, 1px)")?"30px":"max(30px, var(--ion-safe-area-top))";var b=u?"-10px":m;var g=SwipeToCloseDefaults.MIN_PRESENTING_SCALE;var w="translateY(".concat(b,") scale(").concat(g,")");p.afterStyles({transform:w}).beforeAddWrite((function(){return v.style.setProperty("background-color","black")})).addElement(r).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"},{offset:1,filter:"contrast(0.85)",transform:w,borderRadius:"10px 10px 0 0"}]);l.addAnimation(p)}else{l.addAnimation(d);if(!u){s.fromTo("opacity","0","1")}else{var g=u?SwipeToCloseDefaults.MIN_PRESENTING_SCALE:1;var w="translateY(-10px) scale(".concat(g,")");p.afterStyles({transform:w}).addElement(h.querySelector(".modal-wrapper")).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0) scale(1)"},{offset:1,filter:"contrast(0.85)",transform:w}]);var x=createAnimation().afterStyles({transform:w}).addElement(h.querySelector(".modal-shadow")).keyframes([{offset:0,opacity:"1",transform:"translateY(0) scale(1)"},{offset:1,opacity:"0",transform:w}]);l.addAnimation([p,x])}}}else{l.addAnimation(d)}return l};var createLeaveAnimation$1=function(){var t=createAnimation().fromTo("opacity","var(--backdrop-opacity)",0);var e=createAnimation().fromTo("transform","translateY(0vh)","translateY(100vh)");return{backdropAnimation:t,wrapperAnimation:e}};var iosLeaveAnimation=function(t,e,r){if(r===void 0){r=500}var a=e.presentingEl,i=e.currentBreakpoint,n=e.expandToScroll;var o=getElementRoot(t);var s=i!==undefined?createSheetLeaveAnimation(e):createLeaveAnimation$1(),d=s.wrapperAnimation,f=s.backdropAnimation;f.addElement(o.querySelector("ion-backdrop"));d.addElement(o.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});var l=createAnimation("leaving-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(r).addAnimation(d).beforeAddWrite((function(){if(n){return}var e=t.querySelector("ion-footer");if(e){var r=t.shadowRoot.querySelector("ion-footer");e.style.removeProperty("display");e.removeAttribute("aria-hidden");r.style.setProperty("display","none");r.setAttribute("aria-hidden","true");var a=t.querySelector(".ion-page");a.style.removeProperty("padding-bottom")}}));if(a){var c=window.innerWidth<768;var u=a.tagName==="ION-MODAL"&&a.presentingElement!==undefined;var h=getElementRoot(a);var p=createAnimation().beforeClearStyles(["transform"]).afterClearStyles(["transform"]).onFinish((function(t){if(t!==1){return}a.style.setProperty("overflow","");var e=Array.from(v.querySelectorAll("ion-modal:not(.overlay-hidden)")).filter((function(t){return t.presentingElement!==undefined})).length;if(e<=1){v.style.setProperty("background-color","")}}));var v=document.body;if(c){var m=!CSS.supports("width","max(0px, 1px)")?"30px":"max(30px, var(--ion-safe-area-top))";var b=u?"-10px":m;var g=SwipeToCloseDefaults.MIN_PRESENTING_SCALE;var w="translateY(".concat(b,") scale(").concat(g,")");p.addElement(a).keyframes([{offset:0,filter:"contrast(0.85)",transform:w,borderRadius:"10px 10px 0 0"},{offset:1,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"}]);l.addAnimation(p)}else{l.addAnimation(f);if(!u){d.fromTo("opacity","1","0")}else{var g=u?SwipeToCloseDefaults.MIN_PRESENTING_SCALE:1;var w="translateY(-10px) scale(".concat(g,")");p.addElement(h.querySelector(".modal-wrapper")).afterStyles({transform:"translate3d(0, 0, 0)"}).keyframes([{offset:0,filter:"contrast(0.85)",transform:w},{offset:1,filter:"contrast(1)",transform:"translateY(0) scale(1)"}]);var x=createAnimation().addElement(h.querySelector(".modal-shadow")).afterStyles({transform:"translateY(0) scale(1)"}).keyframes([{offset:0,opacity:"0",transform:w},{offset:1,opacity:"1",transform:"translateY(0) scale(1)"}]);l.addAnimation([p,x])}}}else{l.addAnimation(f)}return l};var createEnterAnimation=function(){var t=createAnimation().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]);var e=createAnimation().keyframes([{offset:0,opacity:.01,transform:"translateY(40px)"},{offset:1,opacity:1,transform:"translateY(0px)"}]);return{backdropAnimation:t,wrapperAnimation:e,contentAnimation:undefined}};var mdEnterAnimation=function(t,e){var r=e.currentBreakpoint,a=e.expandToScroll;var i=getElementRoot(t);var n=r!==undefined?createSheetEnterAnimation(e):createEnterAnimation(),o=n.wrapperAnimation,s=n.backdropAnimation,d=n.contentAnimation;s.addElement(i.querySelector("ion-backdrop"));o.addElement(i.querySelector(".modal-wrapper"));a&&(d===null||d===void 0?void 0:d.addElement(t.querySelector(".ion-page")));var f=createAnimation().addElement(t).easing("cubic-bezier(0.36,0.66,0.04,1)").duration(280).addAnimation([s,o]).beforeAddWrite((function(){if(a){return}var e=t.querySelector("ion-footer");var r=t.shadowRoot.querySelector("ion-footer");if(e&&!r){var i=e.clientHeight;var n=e.cloneNode(true);t.shadowRoot.appendChild(n);e.style.setProperty("display","none");e.setAttribute("aria-hidden","true");var o=t.querySelector(".ion-page");o.style.setProperty("padding-bottom","".concat(i,"px"))}}));if(d){f.addAnimation(d)}return f};var createLeaveAnimation=function(){var t=createAnimation().fromTo("opacity","var(--backdrop-opacity)",0);var e=createAnimation().keyframes([{offset:0,opacity:.99,transform:"translateY(0px)"},{offset:1,opacity:0,transform:"translateY(40px)"}]);return{backdropAnimation:t,wrapperAnimation:e}};var mdLeaveAnimation=function(t,e){var r=e.currentBreakpoint,a=e.expandToScroll;var i=getElementRoot(t);var n=r!==undefined?createSheetLeaveAnimation(e):createLeaveAnimation(),o=n.wrapperAnimation,s=n.backdropAnimation;s.addElement(i.querySelector("ion-backdrop"));o.addElement(i.querySelector(".modal-wrapper"));var d=createAnimation().easing("cubic-bezier(0.47,0,0.745,0.715)").duration(200).addAnimation([s,o]).beforeAddWrite((function(){if(a){return}var e=t.querySelector("ion-footer");if(e){var r=t.shadowRoot.querySelector("ion-footer");e.style.removeProperty("display");e.removeAttribute("aria-hidden");r.style.setProperty("display","none");r.setAttribute("aria-hidden","true");var i=t.querySelector(".ion-page");i.style.removeProperty("padding-bottom")}}));return d};var createSheetGesture=function(t,e,r,a,i,n,o,s,d,f,l){if(o===void 0){o=[]}var c=[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1,opacity:.01}];var u=[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1-i,opacity:0},{offset:1,opacity:0}];var h={WRAPPER_KEYFRAMES:[{offset:0,transform:"translateY(0%)"},{offset:1,transform:"translateY(100%)"}],BACKDROP_KEYFRAMES:i!==0?u:c,CONTENT_KEYFRAMES:[{offset:0,maxHeight:"100%"},{offset:1,maxHeight:"0%"}]};var p=t.querySelector("ion-content");var v=r.clientHeight;var m=a;var b=0;var g=false;var w=null;var x=.95;var y=o[o.length-1];var k=o[0];var A=n.childAnimations.find((function(t){return t.id==="wrapperAnimation"}));var S=n.childAnimations.find((function(t){return t.id==="backdropAnimation"}));var E=n.childAnimations.find((function(t){return t.id==="contentAnimation"}));var _=function(){t.style.setProperty("pointer-events","auto");e.style.setProperty("pointer-events","auto");t.classList.remove(FOCUS_TRAP_DISABLE_CLASS)};var C=function(){t.style.setProperty("pointer-events","none");e.style.setProperty("pointer-events","none");t.classList.add(FOCUS_TRAP_DISABLE_CLASS)};var D=function(e){var a=t.querySelector("ion-footer");if(!a){return}var i=r.nextElementSibling;var n=e==="original"?i:a;var o=e==="original"?a:i;o.style.removeProperty("display");o.removeAttribute("aria-hidden");var s=t.querySelector(".ion-page");if(e==="original"){s.style.removeProperty("padding-bottom")}else{var d=o.clientHeight;s.style.setProperty("padding-bottom","".concat(d,"px"))}n.style.setProperty("display","none");n.setAttribute("aria-hidden","true")};if(A&&S){A.keyframes(__spreadArray([],h.WRAPPER_KEYFRAMES,true));S.keyframes(__spreadArray([],h.BACKDROP_KEYFRAMES,true));E===null||E===void 0?void 0:E.keyframes(__spreadArray([],h.CONTENT_KEYFRAMES,true));n.progressStart(true,1-m);var I=m>i;if(I){_()}else{C()}}if(p&&m!==y&&s){p.scrollY=false}var M=function(t){var e=findClosestIonContent(t.event.target);m=d();if(!s&&e){var r=isIonContent(e)?getElementRoot(e).querySelector(".inner-scroll"):e;return r.scrollTop===0}if(m===1&&e){var r=isIonContent(e)?getElementRoot(e).querySelector(".inner-scroll"):e;var a=!!e.querySelector("ion-refresher");return!a&&r.scrollTop===0}return true};var R=function(e){g=t.canDismiss!==undefined&&t.canDismiss!==true&&k===0;if(!s){var r=findClosestIonContent(e.event.target);w=r&&isIonContent(r)?getElementRoot(r).querySelector(".inner-scroll"):r}if(!s){D("original")}if(e.deltaY>0&&p){p.scrollY=false}raf((function(){t.focus()}));n.progressStart(true,1-m)};var Y=function(t){if(!s&&t.deltaY<=0&&w){return}if(t.deltaY>0&&p){p.scrollY=false}var e=1-m;var r=o.length>1?1-o[1]:undefined;var a=e+t.deltaY/v;var i=r!==undefined&&a>=r&&g;var d=i?x:.9999;var f=i&&r!==undefined?r+calculateSpringStep((a-r)/(d-r)):a;b=clamp(1e-4,f,d);n.progressStep(b)};var T=function(t){if(!s&&t.deltaY<=0&&w&&w.scrollTop>0){return}var e=t.velocityY;var r=(t.deltaY+e*350)/v;var a=m-r;var i=o.reduce((function(t,e){return Math.abs(e-a)<Math.abs(t-a)?e:t}));B({breakpoint:i,breakpointOffset:b,canDismiss:g,animated:true})};var B=function(e){var r=e.breakpoint,a=e.canDismiss,d=e.breakpointOffset,c=e.animated;var u=a&&r===0;var v=u?m:r;var b=v!==0;m=0;if(A&&S){A.keyframes([{offset:0,transform:"translateY(".concat(d*100,"%)")},{offset:1,transform:"translateY(".concat((1-v)*100,"%)")}]);S.keyframes([{offset:0,opacity:"calc(var(--backdrop-opacity) * ".concat(getBackdropValueForSheet(1-d,i),")")},{offset:1,opacity:"calc(var(--backdrop-opacity) * ".concat(getBackdropValueForSheet(v,i),")")}]);if(E){E.keyframes([{offset:0,maxHeight:"".concat((1-d)*100,"%")},{offset:1,maxHeight:"".concat(v*100,"%")}])}n.progressStep(0)}L.enable(false);if(!s&&b){D("cloned")}if(u){handleCanDismiss(t,n)}else if(!b){f()}if(p&&(v===o[o.length-1]||!s)){p.scrollY=true}return new Promise((function(t){n.onFinish((function(){if(b){if(A&&S){raf((function(){A.keyframes(__spreadArray([],h.WRAPPER_KEYFRAMES,true));S.keyframes(__spreadArray([],h.BACKDROP_KEYFRAMES,true));E===null||E===void 0?void 0:E.keyframes(__spreadArray([],h.CONTENT_KEYFRAMES,true));n.progressStart(true,1-v);m=v;l(m);var e=m>i;if(e){_()}else{C()}L.enable(true);t()}))}else{L.enable(true);t()}}else{t()}}),{oneTimeCallback:true}).progressEnd(1,0,c?500:0)}))};var L=createGesture({el:r,gestureName:"modalSheet",gesturePriority:40,direction:"y",threshold:10,canStart:M,onStart:R,onMove:Y,onEnd:T});return{gesture:L,moveSheetToBreakpoint:B}};var modalIosCss=':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be));cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host(.modal-sheet.modal-no-expand-scroll) ion-footer{position:absolute;bottom:0;width:var(--width)}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.4)}:host(.modal-card),:host(.modal-sheet){--border-radius:10px}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:10px}}.modal-wrapper{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}@media screen and (max-width: 767px){@supports (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - max(30px, var(--ion-safe-area-top)) - 10px)}}@supports not (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - 40px)}}:host(.modal-card) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}:host(.modal-card){--backdrop-opacity:0;--width:100%;-ms-flex-align:end;align-items:flex-end}:host(.modal-card) .modal-shadow{display:none}:host(.modal-card) ion-backdrop{pointer-events:none}}@media screen and (min-width: 768px){:host(.modal-card){--width:calc(100% - 120px);--height:calc(100% - (120px + var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));--max-width:720px;--max-height:1000px;--backdrop-opacity:0;--box-shadow:0px 0px 30px 10px rgba(0, 0, 0, 0.1);-webkit-transition:all 0.5s ease-in-out;transition:all 0.5s ease-in-out}:host(.modal-card) .modal-wrapper{-webkit-box-shadow:none;box-shadow:none}:host(.modal-card) .modal-shadow{-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}}:host(.modal-sheet) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}:host(.modal-sheet.modal-no-expand-scroll) ion-footer ion-toolbar:first-of-type{padding-top:6px}';var IonModalIosStyle0=modalIosCss;var modalMdCss=':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be));cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host(.modal-sheet.modal-no-expand-scroll) ion-footer{position:absolute;bottom:0;width:var(--width)}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:2px;--box-shadow:0 28px 48px rgba(0, 0, 0, 0.4)}}.modal-wrapper{-webkit-transform:translate3d(0, 40px, 0);transform:translate3d(0, 40px, 0);opacity:0.01}';var IonModalMdStyle0=modalMdCss;var Modal=function(){function t(t){var e=this;registerInstance(this,t);this.didPresent=createEvent(this,"ionModalDidPresent",7);this.willPresent=createEvent(this,"ionModalWillPresent",7);this.willDismiss=createEvent(this,"ionModalWillDismiss",7);this.didDismiss=createEvent(this,"ionModalDidDismiss",7);this.ionBreakpointDidChange=createEvent(this,"ionBreakpointDidChange",7);this.didPresentShorthand=createEvent(this,"didPresent",7);this.willPresentShorthand=createEvent(this,"willPresent",7);this.willDismissShorthand=createEvent(this,"willDismiss",7);this.didDismissShorthand=createEvent(this,"didDismiss",7);this.ionMount=createEvent(this,"ionMount",7);this.lockController=createLockController();this.triggerController=createTriggerController();this.coreDelegate=CoreDelegate();this.isSheetModal=false;this.inheritedAttributes={};this.inline=false;this.gestureAnimationDismissing=false;this.onHandleClick=function(){var t=e,r=t.sheetTransition,a=t.handleBehavior;if(a!=="cycle"||r!==undefined){return}e.moveToNextBreakpoint()};this.onBackdropTap=function(){var t=e.sheetTransition;if(t!==undefined){return}e.dismiss(undefined,BACKDROP)};this.onLifecycle=function(t){var r=e.usersElement;var a=LIFECYCLE_MAP[t.type];if(r&&a){var i=new CustomEvent(a,{bubbles:false,cancelable:false,detail:t.detail});r.dispatchEvent(i)}};this.presented=false;this.hasController=false;this.overlayIndex=undefined;this.delegate=undefined;this.keyboardClose=true;this.enterAnimation=undefined;this.leaveAnimation=undefined;this.breakpoints=undefined;this.expandToScroll=true;this.initialBreakpoint=undefined;this.backdropBreakpoint=0;this.handle=undefined;this.handleBehavior="none";this.component=undefined;this.componentProps=undefined;this.cssClass=undefined;this.backdropDismiss=true;this.showBackdrop=true;this.animated=true;this.presentingElement=undefined;this.htmlAttributes=undefined;this.isOpen=false;this.trigger=undefined;this.keepContentsMounted=false;this.focusTrap=true;this.canDismiss=true}t.prototype.onIsOpenChange=function(t,e){if(t===true&&e===false){this.present()}else if(t===false&&e===true){this.dismiss()}};t.prototype.triggerChanged=function(){var t=this,e=t.trigger,r=t.el,a=t.triggerController;if(e){a.addClickListener(r,e)}};t.prototype.breakpointsChanged=function(t){if(t!==undefined){this.sortedBreakpoints=t.sort((function(t,e){return t-e}))}};t.prototype.connectedCallback=function(){var t=this.el;prepareOverlay(t);this.triggerChanged()};t.prototype.disconnectedCallback=function(){this.triggerController.removeClickListener()};t.prototype.componentWillLoad=function(){var t=this;var e;var r=this,a=r.breakpoints,i=r.initialBreakpoint,n=r.el,o=r.htmlAttributes;var s=this.isSheetModal=a!==undefined&&i!==undefined;var d=["aria-label","role"];this.inheritedAttributes=inheritAttributes(n,d);if(o!==undefined){d.forEach((function(e){var r;var a=o[e];if(a){t.inheritedAttributes=Object.assign(Object.assign({},t.inheritedAttributes),(r={},r[e]=o[e],r));delete o[e]}}))}if(s){this.currentBreakpoint=this.initialBreakpoint}if(a!==undefined&&i!==undefined&&!a.includes(i)){printIonWarning("Your breakpoints array must include the initialBreakpoint value.")}if(!((e=this.htmlAttributes)===null||e===void 0?void 0:e.id)){setOverlayId(this.el)}};t.prototype.componentDidLoad=function(){var t=this;if(this.isOpen===true){raf((function(){return t.present()}))}this.breakpointsChanged(this.breakpoints);this.triggerChanged()};t.prototype.getDelegate=function(t){if(t===void 0){t=false}if(this.workingDelegate&&!t){return{delegate:this.workingDelegate,inline:this.inline}}var e=this.el.parentNode;var r=this.inline=e!==null&&!this.hasController;var a=this.workingDelegate=r?this.delegate||this.coreDelegate:this.delegate;return{inline:r,delegate:a}};t.prototype.checkCanDismiss=function(t,e){return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(a){r=this.canDismiss;if(typeof r==="function"){return[2,r(t,e)]}return[2,r]}))}))};t.prototype.present=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,r,a,i,n,o,s,d,f;var l=this;return __generator(this,(function(c){switch(c.label){case 0:return[4,this.lockController.lock()];case 1:t=c.sent();if(this.presented){t();return[2]}e=this,r=e.presentingElement,a=e.el;this.currentBreakpoint=this.initialBreakpoint;i=this.getDelegate(true),n=i.inline,o=i.delegate;this.ionMount.emit();s=this;return[4,attachComponent(o,a,this.component,["ion-page"],this.componentProps,n)];case 2:s.usersElement=c.sent();if(!hasLazyBuild(a))return[3,4];return[4,deepReady(this.usersElement)];case 3:c.sent();return[3,6];case 4:if(!!this.keepContentsMounted)return[3,6];return[4,waitForMount()];case 5:c.sent();c.label=6;case 6:writeTask((function(){return l.el.classList.add("show-modal")}));d=r!==undefined;if(!(d&&getIonMode(this)==="ios"))return[3,8];f=this;return[4,StatusBar.getStyle()];case 7:f.statusBarStyle=c.sent();setCardStatusBarDark();c.label=8;case 8:return[4,present(this,"modalEnter",iosEnterAnimation,mdEnterAnimation,{presentingEl:r,currentBreakpoint:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint,expandToScroll:this.expandToScroll})];case 9:c.sent();if(typeof window!=="undefined"){this.keyboardOpenCallback=function(){if(l.gesture){l.gesture.enable(false);raf((function(){if(l.gesture){l.gesture.enable(true)}}))}};window.addEventListener(KEYBOARD_DID_OPEN,this.keyboardOpenCallback)}if(this.isSheetModal){this.initSheetGesture()}else if(d){this.initSwipeToClose()}t();return[2]}}))}))};t.prototype.initSwipeToClose=function(){var t=this;var e;if(getIonMode(this)!=="ios"){return}var r=this.el;var a=this.leaveAnimation||config.get("modalLeave",iosLeaveAnimation);var i=this.animation=a(r,{presentingEl:this.presentingElement,expandToScroll:this.expandToScroll});var n=findIonContent(r);if(!n){printIonContentErrorMsg(r);return}var o=(e=this.statusBarStyle)!==null&&e!==void 0?e:Style.Default;this.gesture=createSwipeToCloseGesture(r,i,o,(function(){t.gestureAnimationDismissing=true;setCardStatusBarDefault(t.statusBarStyle);t.animation.onFinish((function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.dismiss(undefined,GESTURE)];case 1:t.sent();this.gestureAnimationDismissing=false;return[2]}}))}))}))}));this.gesture.enable(true)};t.prototype.initSheetGesture=function(){var t=this;var e=this,r=e.wrapperEl,a=e.initialBreakpoint,i=e.backdropBreakpoint;if(!r||a===undefined){return}var n=this.enterAnimation||config.get("modalEnter",iosEnterAnimation);var o=this.animation=n(this.el,{presentingEl:this.presentingElement,currentBreakpoint:a,backdropBreakpoint:i,expandToScroll:this.expandToScroll});o.progressStart(true,1);var s=createSheetGesture(this.el,this.backdropEl,r,a,i,o,this.sortedBreakpoints,this.expandToScroll,(function(){var e;return(e=t.currentBreakpoint)!==null&&e!==void 0?e:0}),(function(){return t.sheetOnDismiss()}),(function(e){if(t.currentBreakpoint!==e){t.currentBreakpoint=e;t.ionBreakpointDidChange.emit({breakpoint:e})}})),d=s.gesture,f=s.moveSheetToBreakpoint;this.gesture=d;this.moveSheetToBreakpoint=f;this.gesture.enable(true)};t.prototype.sheetOnDismiss=function(){var t=this;this.gestureAnimationDismissing=true;this.animation.onFinish((function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:this.currentBreakpoint=0;this.ionBreakpointDidChange.emit({breakpoint:this.currentBreakpoint});return[4,this.dismiss(undefined,GESTURE)];case 1:t.sent();this.gestureAnimationDismissing=false;return[2]}}))}))}))};t.prototype.dismiss=function(t,e){return __awaiter(this,void 0,void 0,(function(){var r,a,i,n,o,s,d;var f=this;return __generator(this,(function(l){switch(l.label){case 0:if(this.gestureAnimationDismissing&&e!==GESTURE){return[2,false]}return[4,this.lockController.lock()];case 1:a=l.sent();i=e!=="handler";if(!i)return[3,3];return[4,this.checkCanDismiss(t,e)];case 2:i=!l.sent();l.label=3;case 3:if(i){a();return[2,false]}n=this.presentingElement;o=n!==undefined;if(o&&getIonMode(this)==="ios"){setCardStatusBarDefault(this.statusBarStyle)}if(typeof window!=="undefined"&&this.keyboardOpenCallback){window.removeEventListener(KEYBOARD_DID_OPEN,this.keyboardOpenCallback);this.keyboardOpenCallback=undefined}return[4,dismiss(this,t,e,"modalLeave",iosLeaveAnimation,mdLeaveAnimation,{presentingEl:n,currentBreakpoint:(r=this.currentBreakpoint)!==null&&r!==void 0?r:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint,expandToScroll:this.expandToScroll})];case 4:s=l.sent();if(!s)return[3,6];d=this.getDelegate().delegate;return[4,detachComponent(d,this.usersElement)];case 5:l.sent();writeTask((function(){return f.el.classList.remove("show-modal")}));if(this.animation){this.animation.destroy()}if(this.gesture){this.gesture.destroy()}l.label=6;case 6:this.currentBreakpoint=undefined;this.animation=undefined;a();return[2,s]}}))}))};t.prototype.onDidDismiss=function(){return eventMethod(this.el,"ionModalDidDismiss")};t.prototype.onWillDismiss=function(){return eventMethod(this.el,"ionModalWillDismiss")};t.prototype.setCurrentBreakpoint=function(t){return __awaiter(this,void 0,void 0,(function(){var e,r,a,i,n,o;return __generator(this,(function(s){switch(s.label){case 0:if(!this.isSheetModal){printIonWarning("setCurrentBreakpoint is only supported on sheet modals.");return[2]}if(!this.breakpoints.includes(t)){printIonWarning("Attempted to set invalid breakpoint value ".concat(t,". Please double check that the breakpoint value is part of your defined breakpoints."));return[2]}e=this,r=e.currentBreakpoint,a=e.moveSheetToBreakpoint,i=e.canDismiss,n=e.breakpoints,o=e.animated;if(r===t){return[2]}if(!a)return[3,2];this.sheetTransition=a({breakpoint:t,breakpointOffset:1-r,canDismiss:i!==undefined&&i!==true&&n[0]===0,animated:o});return[4,this.sheetTransition];case 1:s.sent();this.sheetTransition=undefined;s.label=2;case 2:return[2]}}))}))};t.prototype.getCurrentBreakpoint=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.currentBreakpoint]}))}))};t.prototype.moveToNextBreakpoint=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,r,a,i,n,o;return __generator(this,(function(s){switch(s.label){case 0:t=this,e=t.breakpoints,r=t.currentBreakpoint;if(!e||r==null){return[2,false]}a=e.filter((function(t){return t!==0}));i=a.indexOf(r);n=(i+1)%a.length;o=a[n];return[4,this.setCurrentBreakpoint(o)];case 1:s.sent();return[2,true]}}))}))};t.prototype.render=function(){var t;var e=this;var r=this,a=r.handle,i=r.isSheetModal,n=r.presentingElement,o=r.htmlAttributes,s=r.handleBehavior,d=r.inheritedAttributes,f=r.focusTrap,l=r.expandToScroll;var c=a!==false&&i;var u=getIonMode(this);var p=n!==undefined&&u==="ios";var v=s==="cycle";return h(Host,Object.assign({key:"e661562f9e4126136cee337e4ab8ca69ac80faae","no-router":true,tabindex:"-1"},o,{style:{zIndex:"".concat(2e4+this.overlayIndex)},class:Object.assign((t={},t[u]=true,t["modal-default"]=!p&&!i,t["modal-card"]=p,t["modal-sheet"]=i,t["modal-no-expand-scroll"]=i&&!l,t["overlay-hidden"]=true,t[FOCUS_TRAP_DISABLE_CLASS]=f===false,t),getClassMap(this.cssClass)),onIonBackdropTap:this.onBackdropTap,onIonModalDidPresent:this.onLifecycle,onIonModalWillPresent:this.onLifecycle,onIonModalWillDismiss:this.onLifecycle,onIonModalDidDismiss:this.onLifecycle}),h("ion-backdrop",{key:"9221692e0e111f99e80239ca44faaaed9b288425",ref:function(t){return e.backdropEl=t},visible:this.showBackdrop,tappable:this.backdropDismiss,part:"backdrop"}),u==="ios"&&h("div",{key:"20def7088d31e5eb13c3f2404c514cd8b74cd966",class:"modal-shadow"}),h("div",Object.assign({key:"b11229330571d4ff7b9136dfdddcd7d759ada876",role:"dialog"},d,{"aria-modal":"true",class:"modal-wrapper ion-overlay-wrapper",part:"content",ref:function(t){return e.wrapperEl=t}}),c&&h("button",{key:"95b2a62477dfbc063a91910f0d37357388cfd914",class:"modal-handle",tabIndex:!v?-1:0,"aria-label":"Activate to adjust the size of the dialog overlaying the screen",onClick:v?this.onHandleClick:undefined,part:"handle"}),h("slot",{key:"fba17dfdbdffbfd8992f473f633d172c5124dc19"})))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}},enumerable:false,configurable:true});return t}();var LIFECYCLE_MAP={ionModalDidPresent:"ionViewDidEnter",ionModalWillPresent:"ionViewWillEnter",ionModalWillDismiss:"ionViewWillLeave",ionModalDidDismiss:"ionViewDidLeave"};Modal.style={ios:IonModalIosStyle0,md:IonModalMdStyle0};export{Modal as ion_modal};
4
+ */import{r as registerInstance,d as createEvent,w as writeTask,h,f as Host,g as getElement}from"./index-4c3c5d46.js";import{f as findClosestIonContent,i as isIonContent,d as disableContentScrollY,r as resetContentScrollY,a as findIonContent,p as printIonContentErrorMsg}from"./index-f36a3fa4.js";import{C as CoreDelegate,a as attachComponent,d as detachComponent}from"./framework-delegate-9ad3e427.js";import{g as getElementRoot,j as clamp,r as raf,h as inheritAttributes,k as hasLazyBuild}from"./helpers-ea1f7324.js";import{c as createLockController}from"./lock-controller-316928be.js";import{w as win,p as printIonWarning,b as getIonMode,c as getIonTheme}from"./ionic-global-b30d2cc2.js";import{g as getCapacitor}from"./capacitor-39edcb1f.js";import{G as GESTURE,O as OVERLAY_GESTURE_PRIORITY,F as FOCUS_TRAP_DISABLE_CLASS,e as createTriggerController,B as BACKDROP,j as prepareOverlay,k as setOverlayId,f as present,g as dismiss,h as eventMethod}from"./overlays-d60b1d1e.js";import{g as getClassMap}from"./theme-01f3f29c.js";import{e as deepReady,w as waitForMount}from"./index-eb1203fa.js";import{c as config}from"./config-84eb9670.js";import{KEYBOARD_DID_OPEN}from"./keyboard-0af19ead.js";import{c as createAnimation}from"./animation-12d440f3.js";import{g as getTimeGivenProgression}from"./cubic-bezier-fe2083dc.js";import{createGesture}from"./index-39782642.js";import"./focus-visible-6827442c.js";import"./gesture-controller-314a54f6.js";import"./keyboard-ceb6990d.js";var Style;(function(t){t["Dark"]="DARK";t["Light"]="LIGHT";t["Default"]="DEFAULT"})(Style||(Style={}));var StatusBar={getEngine:function(){var t=getCapacitor();if(t===null||t===void 0?void 0:t.isPluginAvailable("StatusBar")){return t.Plugins.StatusBar}return undefined},setStyle:function(t){var e=this.getEngine();if(!e){return}e.setStyle(t)},getStyle:function(){return __awaiter(this,void 0,void 0,(function(){var t,e;return __generator(this,(function(r){switch(r.label){case 0:t=this.getEngine();if(!t){return[2,Style.Default]}return[4,t.getInfo()];case 1:e=r.sent().style;return[2,e]}}))}))}};var getBackdropValueForSheet=function(t,e){if(e===1){return 0}var r=1/(1-e);var a=-(e*r);return t*r+a};var setCardStatusBarDark=function(){if(!win||win.innerWidth>=768){return}StatusBar.setStyle({style:Style.Dark})};var setCardStatusBarDefault=function(t){if(t===void 0){t=Style.Default}if(!win||win.innerWidth>=768){return}StatusBar.setStyle({style:t})};var handleCanDismiss=function(t,e){return __awaiter(void 0,void 0,void 0,(function(){var r;return __generator(this,(function(a){switch(a.label){case 0:if(typeof t.canDismiss!=="function"){return[2]}return[4,t.canDismiss(undefined,GESTURE)];case 1:r=a.sent();if(!r){return[2]}if(e.isRunning()){e.onFinish((function(){t.dismiss(undefined,"handler")}),{oneTimeCallback:true})}else{t.dismiss(undefined,"handler")}return[2]}}))}))};var calculateSpringStep=function(t){return.00255275*Math.pow(2.71828,-14.9619*t)-1.00255*Math.pow(2.71828,-.0380968*t)+1};var SwipeToCloseDefaults={MIN_PRESENTING_SCALE:.915};var createSwipeToCloseGesture=function(t,e,r,a){var i=.5;var n=t.offsetHeight;var o=false;var s=false;var d=null;var l=null;var f=.2;var c=true;var h=0;var u=function(){if(d&&isIonContent(d)){return d.scrollY}else{return true}};var p=function(t){var e=t.event.target;if(e===null||!e.closest){return true}d=findClosestIonContent(e);if(d){if(isIonContent(d)){var r=getElementRoot(d);l=r.querySelector(".inner-scroll")}else{l=d}var a=!!d.querySelector("ion-refresher");return!a&&l.scrollTop===0}var i=e.closest("ion-footer");if(i===null){return true}return false};var v=function(r){var a=r.deltaY;c=u();s=t.canDismiss!==undefined&&t.canDismiss!==true;if(a>0&&d){disableContentScrollY(d)}e.progressStart(true,o?1:0)};var m=function(t){var a=t.deltaY;if(a>0&&d){disableContentScrollY(d)}var o=t.deltaY/n;var l=o>=0&&s;var c=l?f:.9999;var u=l?calculateSpringStep(o/c):o;var p=clamp(1e-4,u,c);e.progressStep(p);if(p>=i&&h<i){setCardStatusBarDefault(r)}else if(p<i&&h>=i){setCardStatusBarDark()}h=p};var b=function(r){var l=r.velocityY;var h=r.deltaY/n;var u=h>=0&&s;var p=u?f:.9999;var v=u?calculateSpringStep(h/p):h;var m=clamp(1e-4,v,p);var b=(r.deltaY+l*1e3)/n;var w=!u&&b>=i;var x=w?-.001:.001;if(!w){e.easing("cubic-bezier(1, 0, 0.68, 0.28)");x+=getTimeGivenProgression([0,0],[1,0],[.68,.28],[1,1],m)[0]}else{e.easing("cubic-bezier(0.32, 0.72, 0, 1)");x+=getTimeGivenProgression([0,0],[.32,.72],[0,1],[1,1],m)[0]}var y=w?computeDuration(h*n,l):computeDuration((1-m)*n,l);o=w;g.enable(false);if(d){resetContentScrollY(d,c)}e.onFinish((function(){if(!w){g.enable(true)}})).progressEnd(w?1:0,x,y);if(u&&m>p/4){handleCanDismiss(t,e)}else if(w){a()}};var g=createGesture({el:t,gestureName:"modalSwipeToClose",gesturePriority:OVERLAY_GESTURE_PRIORITY,direction:"y",threshold:10,canStart:p,onStart:v,onMove:m,onEnd:b});return g};var computeDuration=function(t,e){return clamp(400,t/Math.abs(e*1.1),500)};var createSheetEnterAnimation=function(t){var e=t.currentBreakpoint,r=t.backdropBreakpoint,a=t.expandToScroll,i=t.staticBackdropOpacity;var n=r===undefined||r<e;var o="0";if(i){o="calc(var(--backdrop-opacity)"}else if(n){o="calc(var(--backdrop-opacity) * ".concat(e,")")}var s=createAnimation("backdropAnimation").fromTo("opacity",0,o);if(n){s.beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"])}var d=createAnimation("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:"translateY(100%)"},{offset:1,opacity:1,transform:"translateY(".concat(100-e*100,"%)")}]);var l=!a?createAnimation("contentAnimation").keyframes([{offset:0,opacity:1,maxHeight:"".concat((1-e)*100,"%")},{offset:1,opacity:1,maxHeight:"".concat(e*100,"%")}]):undefined;return{wrapperAnimation:d,backdropAnimation:s,contentAnimation:l}};var createSheetLeaveAnimation=function(t){var e=t.currentBreakpoint,r=t.backdropBreakpoint;var a="calc(var(--backdrop-opacity) * ".concat(getBackdropValueForSheet(e,r),")");var i=[{offset:0,opacity:a},{offset:1,opacity:0}];var n=[{offset:0,opacity:a},{offset:r,opacity:0},{offset:1,opacity:0}];var o=createAnimation("backdropAnimation").keyframes(r!==0?n:i);var s=createAnimation("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:"translateY(".concat(100-e*100,"%)")},{offset:1,opacity:1,transform:"translateY(100%)"}]);return{wrapperAnimation:s,backdropAnimation:o}};var createEnterAnimation$1=function(){var t=createAnimation().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]);var e=createAnimation().fromTo("transform","translateY(100vh)","translateY(0vh)");return{backdropAnimation:t,wrapperAnimation:e,contentAnimation:undefined}};var iosEnterAnimation=function(t,e){var r=e.presentingEl,a=e.currentBreakpoint,i=e.expandToScroll;var n=getElementRoot(t);var o=a!==undefined?createSheetEnterAnimation(e):createEnterAnimation$1(),s=o.wrapperAnimation,d=o.backdropAnimation,l=o.contentAnimation;d.addElement(n.querySelector("ion-backdrop"));s.addElement(n.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});!i&&(l===null||l===void 0?void 0:l.addElement(t.querySelector(".ion-page")));var f=createAnimation("entering-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(500).addAnimation([s]).beforeAddWrite((function(){if(i){return}var e=t.querySelector("ion-footer");var r=t.shadowRoot.querySelector("ion-footer");if(e&&!r){var a=e.clientHeight;var n=e.cloneNode(true);t.shadowRoot.appendChild(n);e.style.setProperty("display","none");e.setAttribute("aria-hidden","true");var o=t.querySelector(".ion-page");o.style.setProperty("padding-bottom","".concat(a,"px"))}}));if(l){f.addAnimation(l)}if(r){var c=window.innerWidth<768;var h=r.tagName==="ION-MODAL"&&r.presentingElement!==undefined;var u=getElementRoot(r);var p=createAnimation().beforeStyles({transform:"translateY(0)","transform-origin":"top center",overflow:"hidden"});var v=document.body;if(c){var m=!CSS.supports("width","max(0px, 1px)")?"30px":"max(30px, var(--ion-safe-area-top))";var b=h?"-10px":m;var g=SwipeToCloseDefaults.MIN_PRESENTING_SCALE;var w="translateY(".concat(b,") scale(").concat(g,")");p.afterStyles({transform:w}).beforeAddWrite((function(){return v.style.setProperty("background-color","black")})).addElement(r).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"},{offset:1,filter:"contrast(0.85)",transform:w,borderRadius:"10px 10px 0 0"}]);f.addAnimation(p)}else{f.addAnimation(d);if(!h){s.fromTo("opacity","0","1")}else{var g=h?SwipeToCloseDefaults.MIN_PRESENTING_SCALE:1;var w="translateY(-10px) scale(".concat(g,")");p.afterStyles({transform:w}).addElement(u.querySelector(".modal-wrapper")).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0) scale(1)"},{offset:1,filter:"contrast(0.85)",transform:w}]);var x=createAnimation().afterStyles({transform:w}).addElement(u.querySelector(".modal-shadow")).keyframes([{offset:0,opacity:"1",transform:"translateY(0) scale(1)"},{offset:1,opacity:"0",transform:w}]);f.addAnimation([p,x])}}}else{f.addAnimation(d)}return f};var createLeaveAnimation$1=function(){var t=createAnimation().fromTo("opacity","var(--backdrop-opacity)",0);var e=createAnimation().fromTo("transform","translateY(0vh)","translateY(100vh)");return{backdropAnimation:t,wrapperAnimation:e}};var iosLeaveAnimation=function(t,e,r){if(r===void 0){r=500}var a=e.presentingEl,i=e.currentBreakpoint,n=e.expandToScroll;var o=getElementRoot(t);var s=i!==undefined?createSheetLeaveAnimation(e):createLeaveAnimation$1(),d=s.wrapperAnimation,l=s.backdropAnimation;l.addElement(o.querySelector("ion-backdrop"));d.addElement(o.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});var f=createAnimation("leaving-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(r).addAnimation(d).beforeAddWrite((function(){if(n){return}var e=t.querySelector("ion-footer");if(e){var r=t.shadowRoot.querySelector("ion-footer");e.style.removeProperty("display");e.removeAttribute("aria-hidden");r.style.setProperty("display","none");r.setAttribute("aria-hidden","true");var a=t.querySelector(".ion-page");a.style.removeProperty("padding-bottom")}}));if(a){var c=window.innerWidth<768;var h=a.tagName==="ION-MODAL"&&a.presentingElement!==undefined;var u=getElementRoot(a);var p=createAnimation().beforeClearStyles(["transform"]).afterClearStyles(["transform"]).onFinish((function(t){if(t!==1){return}a.style.setProperty("overflow","");var e=Array.from(v.querySelectorAll("ion-modal:not(.overlay-hidden)")).filter((function(t){return t.presentingElement!==undefined})).length;if(e<=1){v.style.setProperty("background-color","")}}));var v=document.body;if(c){var m=!CSS.supports("width","max(0px, 1px)")?"30px":"max(30px, var(--ion-safe-area-top))";var b=h?"-10px":m;var g=SwipeToCloseDefaults.MIN_PRESENTING_SCALE;var w="translateY(".concat(b,") scale(").concat(g,")");p.addElement(a).keyframes([{offset:0,filter:"contrast(0.85)",transform:w,borderRadius:"10px 10px 0 0"},{offset:1,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"}]);f.addAnimation(p)}else{f.addAnimation(l);if(!h){d.fromTo("opacity","1","0")}else{var g=h?SwipeToCloseDefaults.MIN_PRESENTING_SCALE:1;var w="translateY(-10px) scale(".concat(g,")");p.addElement(u.querySelector(".modal-wrapper")).afterStyles({transform:"translate3d(0, 0, 0)"}).keyframes([{offset:0,filter:"contrast(0.85)",transform:w},{offset:1,filter:"contrast(1)",transform:"translateY(0) scale(1)"}]);var x=createAnimation().addElement(u.querySelector(".modal-shadow")).afterStyles({transform:"translateY(0) scale(1)"}).keyframes([{offset:0,opacity:"0",transform:w},{offset:1,opacity:"1",transform:"translateY(0) scale(1)"}]);f.addAnimation([p,x])}}}else{f.addAnimation(l)}return f};var createEnterAnimation=function(){var t=createAnimation().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]);var e=createAnimation().keyframes([{offset:0,opacity:.01,transform:"translateY(40px)"},{offset:1,opacity:1,transform:"translateY(0px)"}]);return{backdropAnimation:t,wrapperAnimation:e,contentAnimation:undefined}};var mdEnterAnimation=function(t,e){var r=e.currentBreakpoint,a=e.expandToScroll;var i=getElementRoot(t);var n=r!==undefined?createSheetEnterAnimation(e):createEnterAnimation(),o=n.wrapperAnimation,s=n.backdropAnimation,d=n.contentAnimation;s.addElement(i.querySelector("ion-backdrop"));o.addElement(i.querySelector(".modal-wrapper"));a&&(d===null||d===void 0?void 0:d.addElement(t.querySelector(".ion-page")));var l=createAnimation().addElement(t).easing("cubic-bezier(0.36,0.66,0.04,1)").duration(280).addAnimation([s,o]).beforeAddWrite((function(){if(a){return}var e=t.querySelector("ion-footer");var r=t.shadowRoot.querySelector("ion-footer");if(e&&!r){var i=e.clientHeight;var n=e.cloneNode(true);t.shadowRoot.appendChild(n);e.style.setProperty("display","none");e.setAttribute("aria-hidden","true");var o=t.querySelector(".ion-page");o.style.setProperty("padding-bottom","".concat(i,"px"))}}));if(d){l.addAnimation(d)}return l};var createLeaveAnimation=function(){var t=createAnimation().fromTo("opacity","var(--backdrop-opacity)",0);var e=createAnimation().keyframes([{offset:0,opacity:.99,transform:"translateY(0px)"},{offset:1,opacity:0,transform:"translateY(40px)"}]);return{backdropAnimation:t,wrapperAnimation:e}};var mdLeaveAnimation=function(t,e){var r=e.currentBreakpoint,a=e.expandToScroll;var i=getElementRoot(t);var n=r!==undefined?createSheetLeaveAnimation(e):createLeaveAnimation(),o=n.wrapperAnimation,s=n.backdropAnimation;s.addElement(i.querySelector("ion-backdrop"));o.addElement(i.querySelector(".modal-wrapper"));var d=createAnimation().easing("cubic-bezier(0.47,0,0.745,0.715)").duration(200).addAnimation([s,o]).beforeAddWrite((function(){if(a){return}var e=t.querySelector("ion-footer");if(e){var r=t.shadowRoot.querySelector("ion-footer");e.style.removeProperty("display");e.removeAttribute("aria-hidden");r.style.setProperty("display","none");r.setAttribute("aria-hidden","true");var i=t.querySelector(".ion-page");i.style.removeProperty("padding-bottom")}}));return d};var createSheetGesture=function(t,e,r,a,i,n,o,s,d,l,f,c){if(o===void 0){o=[]}var h=[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1,opacity:c?"var(--backdrop-opacity)":.01}];var u=[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1-i,opacity:c?"var(--backdrop-opacity)":0},{offset:1,opacity:c?"var(--backdrop-opacity)":0}];var p={WRAPPER_KEYFRAMES:[{offset:0,transform:"translateY(0%)"},{offset:1,transform:"translateY(100%)"}],BACKDROP_KEYFRAMES:i!==0?u:h,CONTENT_KEYFRAMES:[{offset:0,maxHeight:"100%"},{offset:1,maxHeight:"0%"}]};var v=t.querySelector("ion-content");var m=r.clientHeight;var b=a;var g=0;var w=false;var x=null;var y=.95;var k=o[o.length-1];var A=o[0];var S=n.childAnimations.find((function(t){return t.id==="wrapperAnimation"}));var E=n.childAnimations.find((function(t){return t.id==="backdropAnimation"}));var C=n.childAnimations.find((function(t){return t.id==="contentAnimation"}));var _=function(){t.style.setProperty("pointer-events","auto");e.style.setProperty("pointer-events","auto");t.classList.remove(FOCUS_TRAP_DISABLE_CLASS)};var I=function(){t.style.setProperty("pointer-events","none");e.style.setProperty("pointer-events","none");t.classList.add(FOCUS_TRAP_DISABLE_CLASS)};var D=function(e){var a=t.querySelector("ion-footer");if(!a){return}var i=r.nextElementSibling;var n=e==="original"?i:a;var o=e==="original"?a:i;o.style.removeProperty("display");o.removeAttribute("aria-hidden");var s=t.querySelector(".ion-page");if(e==="original"){s.style.removeProperty("padding-bottom")}else{var d=o.clientHeight;s.style.setProperty("padding-bottom","".concat(d,"px"))}n.style.setProperty("display","none");n.setAttribute("aria-hidden","true")};if(S&&E){S.keyframes(__spreadArray([],p.WRAPPER_KEYFRAMES,true));E.keyframes(__spreadArray([],p.BACKDROP_KEYFRAMES,true));C===null||C===void 0?void 0:C.keyframes(__spreadArray([],p.CONTENT_KEYFRAMES,true));n.progressStart(true,1-b);var M=b>i;if(M){_()}else{I()}}if(v&&b!==k&&s){v.scrollY=false}var T=function(t){var e=findClosestIonContent(t.event.target);b=d();if(!s&&e){var r=isIonContent(e)?getElementRoot(e).querySelector(".inner-scroll"):e;return r.scrollTop===0}if(b===1&&e){var r=isIonContent(e)?getElementRoot(e).querySelector(".inner-scroll"):e;var a=!!e.querySelector("ion-refresher");return!a&&r.scrollTop===0}return true};var R=function(e){w=t.canDismiss!==undefined&&t.canDismiss!==true&&A===0;if(!s){var r=findClosestIonContent(e.event.target);x=r&&isIonContent(r)?getElementRoot(r).querySelector(".inner-scroll"):r}if(!s){D("original")}if(e.deltaY>0&&v){v.scrollY=false}raf((function(){t.focus()}));n.progressStart(true,1-b)};var Y=function(t){if(!s&&t.deltaY<=0&&x){return}if(t.deltaY>0&&v){v.scrollY=false}var e=1-b;var r=o.length>1?1-o[1]:undefined;var a=e+t.deltaY/m;var i=r!==undefined&&a>=r&&w;var d=i?y:.9999;var l=i&&r!==undefined?r+calculateSpringStep((a-r)/(d-r)):a;g=clamp(1e-4,l,d);n.progressStep(g)};var B=function(t){if(!s&&t.deltaY<=0&&x&&x.scrollTop>0){return}var e=t.velocityY;var r=(t.deltaY+e*350)/m;var a=b-r;var i=o.reduce((function(t,e){return Math.abs(e-a)<Math.abs(t-a)?e:t}));O({breakpoint:i,breakpointOffset:g,canDismiss:w,animated:true})};var O=function(e){var r=e.breakpoint,a=e.canDismiss,d=e.breakpointOffset,h=e.animated;var u=a&&r===0;var m=u?b:r;var g=m!==0;b=0;if(S&&E){S.keyframes([{offset:0,transform:"translateY(".concat(d*100,"%)")},{offset:1,transform:"translateY(".concat((1-m)*100,"%)")}]);E.keyframes([{offset:0,opacity:c?"var(--backdrop-opacity)":"calc(var(--backdrop-opacity) * ".concat(getBackdropValueForSheet(1-d,i),")")},{offset:1,opacity:c?"var(--backdrop-opacity)":"calc(var(--backdrop-opacity) * ".concat(getBackdropValueForSheet(m,i),")")}]);if(C){C.keyframes([{offset:0,maxHeight:"".concat((1-d)*100,"%")},{offset:1,maxHeight:"".concat(m*100,"%")}])}n.progressStep(0)}L.enable(false);if(!s&&g){D("cloned")}if(u){handleCanDismiss(t,n)}else if(!g){l()}if(v&&(m===o[o.length-1]||!s)){v.scrollY=true}return new Promise((function(t){n.onFinish((function(){if(g){if(S&&E){raf((function(){S.keyframes(__spreadArray([],p.WRAPPER_KEYFRAMES,true));E.keyframes(__spreadArray([],p.BACKDROP_KEYFRAMES,true));C===null||C===void 0?void 0:C.keyframes(__spreadArray([],p.CONTENT_KEYFRAMES,true));n.progressStart(true,1-m);b=m;f(b);var e=b>i;if(e){_()}else{I()}L.enable(true);t()}))}else{L.enable(true);t()}}else{t()}}),{oneTimeCallback:true}).progressEnd(1,0,h?500:0)}))};var L=createGesture({el:r,gestureName:"modalSheet",gesturePriority:40,direction:"y",threshold:10,canStart:T,onStart:R,onMove:Y,onEnd:B});return{gesture:L,moveSheetToBreakpoint:O}};var modalIonicCss=':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-width:0;--border-style:none;--border-color:transparent;--box-shadow:none;right:0;left:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}.modal-handle{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host(.modal-sheet.modal-no-expand-scroll) ion-footer{position:absolute;bottom:0;width:var(--width)}:host{--background:var(--ion-primitives-base-white, #ffffff);--box-shadow:var(--ion-elevation-3, 0px 2px 7px 0px rgba(0, 0, 0, 0.05), 0px 6px 32px 0px rgba(0, 0, 0, 0.16));--backdrop-opacity:1;color:var(--ion-primitives-neutral-1200, #242424)}:host(.modal-round){--border-radius:var(--ion-border-radius-1000, 40px)}:host(.modal-soft){--border-radius:var(--ion-border-radius-400, 16px)}:host(.modal-rectangular){--border-radius:var(--ion-border-radius-0, 0px)}.modal-handle{right:0px;left:0px;top:var(--ion-space-300, 12px);border-radius:var(--ion-border-radius-100, 4px);width:var(--ion-scale-1100, 44px);height:var(--ion-scale-100, 4px);background-color:var(--ion-primitives-neutral-300, #e0e0e0)}:host(.modal-sheet) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}';var IonModalIonicStyle0=modalIonicCss;var modalIosCss=':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-width:0;--border-style:none;--border-color:transparent;--box-shadow:none;right:0;left:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}.modal-handle{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host(.modal-sheet.modal-no-expand-scroll) ion-footer{position:absolute;bottom:0;width:var(--width)}:host{--background:var(--ion-background-color, #fff);--border-radius:0;--backdrop-opacity:0;color:var(--ion-text-color, #000)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{right:0px;left:0px;top:5px;border-radius:8px;width:36px;height:5px;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be))}.modal-handle::before{width:36px;height:5px}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.4)}:host(.modal-card),:host(.modal-sheet){--border-radius:10px}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:10px}}.modal-wrapper{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}@media screen and (max-width: 767px){@supports (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - max(30px, var(--ion-safe-area-top)) - 10px)}}@supports not (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - 40px)}}:host(.modal-card) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}:host(.modal-card){--backdrop-opacity:0;--width:100%;-ms-flex-align:end;align-items:flex-end}:host(.modal-card) .modal-shadow{display:none}:host(.modal-card) ion-backdrop{pointer-events:none}}@media screen and (min-width: 768px){:host(.modal-card){--width:calc(100% - 120px);--height:calc(100% - (120px + var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));--max-width:720px;--max-height:1000px;--backdrop-opacity:0;--box-shadow:0px 0px 30px 10px rgba(0, 0, 0, 0.1);-webkit-transition:all 0.5s ease-in-out;transition:all 0.5s ease-in-out}:host(.modal-card) .modal-wrapper{-webkit-box-shadow:none;box-shadow:none}:host(.modal-card) .modal-shadow{-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}}:host(.modal-sheet) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}:host(.modal-sheet.modal-no-expand-scroll) ion-footer ion-toolbar:first-of-type{padding-top:6px}';var IonModalIosStyle0=modalIosCss;var modalMdCss=':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-width:0;--border-style:none;--border-color:transparent;--box-shadow:none;right:0;left:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}.modal-handle{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host(.modal-sheet.modal-no-expand-scroll) ion-footer{position:absolute;bottom:0;width:var(--width)}:host{--background:var(--ion-background-color, #fff);--border-radius:0;--backdrop-opacity:0;color:var(--ion-text-color, #000)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{right:0px;left:0px;top:5px;border-radius:8px;width:36px;height:5px;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be))}.modal-handle::before{width:36px;height:5px}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:2px;--box-shadow:0 28px 48px rgba(0, 0, 0, 0.4)}}.modal-wrapper{-webkit-transform:translate3d(0, 40px, 0);transform:translate3d(0, 40px, 0);opacity:0.01}';var IonModalMdStyle0=modalMdCss;var Modal=function(){function t(t){var e=this;registerInstance(this,t);this.didPresent=createEvent(this,"ionModalDidPresent",7);this.willPresent=createEvent(this,"ionModalWillPresent",7);this.willDismiss=createEvent(this,"ionModalWillDismiss",7);this.didDismiss=createEvent(this,"ionModalDidDismiss",7);this.ionBreakpointDidChange=createEvent(this,"ionBreakpointDidChange",7);this.didPresentShorthand=createEvent(this,"didPresent",7);this.willPresentShorthand=createEvent(this,"willPresent",7);this.willDismissShorthand=createEvent(this,"willDismiss",7);this.didDismissShorthand=createEvent(this,"didDismiss",7);this.ionMount=createEvent(this,"ionMount",7);this.lockController=createLockController();this.triggerController=createTriggerController();this.coreDelegate=CoreDelegate();this.isSheetModal=false;this.inheritedAttributes={};this.inline=false;this.gestureAnimationDismissing=false;this.onHandleClick=function(){var t=e,r=t.sheetTransition,a=t.handleBehavior;if(a!=="cycle"||r!==undefined){return}e.moveToNextBreakpoint()};this.onBackdropTap=function(){var t=e.sheetTransition;if(t!==undefined){return}e.dismiss(undefined,BACKDROP)};this.onLifecycle=function(t){var r=e.usersElement;var a=LIFECYCLE_MAP[t.type];if(r&&a){var i=new CustomEvent(a,{bubbles:false,cancelable:false,detail:t.detail});r.dispatchEvent(i)}};this.presented=false;this.hasController=false;this.overlayIndex=undefined;this.delegate=undefined;this.keyboardClose=true;this.enterAnimation=undefined;this.leaveAnimation=undefined;this.breakpoints=undefined;this.expandToScroll=true;this.initialBreakpoint=undefined;this.backdropBreakpoint=0;this.handle=undefined;this.handleBehavior="none";this.component=undefined;this.componentProps=undefined;this.cssClass=undefined;this.backdropDismiss=true;this.showBackdrop=true;this.animated=true;this.presentingElement=undefined;this.htmlAttributes=undefined;this.isOpen=false;this.trigger=undefined;this.keepContentsMounted=false;this.focusTrap=true;this.canDismiss=true;this.shape=undefined}t.prototype.onIsOpenChange=function(t,e){if(t===true&&e===false){this.present()}else if(t===false&&e===true){this.dismiss()}};t.prototype.triggerChanged=function(){var t=this,e=t.trigger,r=t.el,a=t.triggerController;if(e){a.addClickListener(r,e)}};t.prototype.breakpointsChanged=function(t){if(t!==undefined){this.sortedBreakpoints=t.sort((function(t,e){return t-e}))}};t.prototype.connectedCallback=function(){var t=this.el;prepareOverlay(t);this.triggerChanged()};t.prototype.disconnectedCallback=function(){this.triggerController.removeClickListener()};t.prototype.componentWillLoad=function(){var t=this;var e;var r=this,a=r.breakpoints,i=r.initialBreakpoint,n=r.el,o=r.htmlAttributes;var s=this.isSheetModal=a!==undefined&&i!==undefined;var d=["aria-label","role"];this.inheritedAttributes=inheritAttributes(n,d);if(o!==undefined){d.forEach((function(e){var r;var a=o[e];if(a){t.inheritedAttributes=Object.assign(Object.assign({},t.inheritedAttributes),(r={},r[e]=o[e],r));delete o[e]}}))}if(s){this.currentBreakpoint=this.initialBreakpoint}if(a!==undefined&&i!==undefined&&!a.includes(i)){printIonWarning("Your breakpoints array must include the initialBreakpoint value.")}if(!((e=this.htmlAttributes)===null||e===void 0?void 0:e.id)){setOverlayId(this.el)}};t.prototype.componentDidLoad=function(){var t=this;if(this.isOpen===true){raf((function(){return t.present()}))}this.breakpointsChanged(this.breakpoints);this.triggerChanged()};t.prototype.getDelegate=function(t){if(t===void 0){t=false}if(this.workingDelegate&&!t){return{delegate:this.workingDelegate,inline:this.inline}}var e=this.el.parentNode;var r=this.inline=e!==null&&!this.hasController;var a=this.workingDelegate=r?this.delegate||this.coreDelegate:this.delegate;return{inline:r,delegate:a}};t.prototype.checkCanDismiss=function(t,e){return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(a){r=this.canDismiss;if(typeof r==="function"){return[2,r(t,e)]}return[2,r]}))}))};t.prototype.present=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,r,a,i,n,o,s,d,l;var f=this;return __generator(this,(function(c){switch(c.label){case 0:return[4,this.lockController.lock()];case 1:t=c.sent();if(this.presented){t();return[2]}e=this,r=e.presentingElement,a=e.el;this.currentBreakpoint=this.initialBreakpoint;i=this.getDelegate(true),n=i.inline,o=i.delegate;this.ionMount.emit();s=this;return[4,attachComponent(o,a,this.component,["ion-page"],this.componentProps,n)];case 2:s.usersElement=c.sent();if(!hasLazyBuild(a))return[3,4];return[4,deepReady(this.usersElement)];case 3:c.sent();return[3,6];case 4:if(!!this.keepContentsMounted)return[3,6];return[4,waitForMount()];case 5:c.sent();c.label=6;case 6:writeTask((function(){return f.el.classList.add("show-modal")}));d=r!==undefined;if(!(d&&getIonMode(this)==="ios"))return[3,8];l=this;return[4,StatusBar.getStyle()];case 7:l.statusBarStyle=c.sent();setCardStatusBarDark();c.label=8;case 8:return[4,present(this,"modalEnter",iosEnterAnimation,mdEnterAnimation,{presentingEl:r,currentBreakpoint:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint,expandToScroll:this.expandToScroll,staticBackdropOpacity:getIonTheme(this)==="ionic"})];case 9:c.sent();if(typeof window!=="undefined"){this.keyboardOpenCallback=function(){if(f.gesture){f.gesture.enable(false);raf((function(){if(f.gesture){f.gesture.enable(true)}}))}};window.addEventListener(KEYBOARD_DID_OPEN,this.keyboardOpenCallback)}if(this.isSheetModal){this.initSheetGesture()}else if(d){this.initSwipeToClose()}t();return[2]}}))}))};t.prototype.initSwipeToClose=function(){var t=this;var e;if(getIonMode(this)!=="ios"){return}var r=this.el;var a=this.leaveAnimation||config.get("modalLeave",iosLeaveAnimation);var i=this.animation=a(r,{presentingEl:this.presentingElement,expandToScroll:this.expandToScroll});var n=findIonContent(r);if(!n){printIonContentErrorMsg(r);return}var o=(e=this.statusBarStyle)!==null&&e!==void 0?e:Style.Default;this.gesture=createSwipeToCloseGesture(r,i,o,(function(){t.gestureAnimationDismissing=true;setCardStatusBarDefault(t.statusBarStyle);t.animation.onFinish((function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.dismiss(undefined,GESTURE)];case 1:t.sent();this.gestureAnimationDismissing=false;return[2]}}))}))}))}));this.gesture.enable(true)};t.prototype.initSheetGesture=function(){var t=this;var e=this,r=e.wrapperEl,a=e.initialBreakpoint,i=e.backdropBreakpoint;if(!r||a===undefined){return}var n=this.enterAnimation||config.get("modalEnter",iosEnterAnimation);var o=this.animation=n(this.el,{presentingEl:this.presentingElement,currentBreakpoint:a,backdropBreakpoint:i,expandToScroll:this.expandToScroll,staticBackdropOpacity:getIonTheme(this)==="ionic"});o.progressStart(true,1);var s=createSheetGesture(this.el,this.backdropEl,r,a,i,o,this.sortedBreakpoints,this.expandToScroll,(function(){var e;return(e=t.currentBreakpoint)!==null&&e!==void 0?e:0}),(function(){return t.sheetOnDismiss()}),(function(e){if(t.currentBreakpoint!==e){t.currentBreakpoint=e;t.ionBreakpointDidChange.emit({breakpoint:e})}}),getIonTheme(this)==="ionic"),d=s.gesture,l=s.moveSheetToBreakpoint;this.gesture=d;this.moveSheetToBreakpoint=l;this.gesture.enable(true)};t.prototype.sheetOnDismiss=function(){var t=this;this.gestureAnimationDismissing=true;this.animation.onFinish((function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:this.currentBreakpoint=0;this.ionBreakpointDidChange.emit({breakpoint:this.currentBreakpoint});return[4,this.dismiss(undefined,GESTURE)];case 1:t.sent();this.gestureAnimationDismissing=false;return[2]}}))}))}))};t.prototype.dismiss=function(t,e){return __awaiter(this,void 0,void 0,(function(){var r,a,i,n,o,s,d;var l=this;return __generator(this,(function(f){switch(f.label){case 0:if(this.gestureAnimationDismissing&&e!==GESTURE){return[2,false]}return[4,this.lockController.lock()];case 1:a=f.sent();i=e!=="handler";if(!i)return[3,3];return[4,this.checkCanDismiss(t,e)];case 2:i=!f.sent();f.label=3;case 3:if(i){a();return[2,false]}n=this.presentingElement;o=n!==undefined;if(o&&getIonMode(this)==="ios"){setCardStatusBarDefault(this.statusBarStyle)}if(typeof window!=="undefined"&&this.keyboardOpenCallback){window.removeEventListener(KEYBOARD_DID_OPEN,this.keyboardOpenCallback);this.keyboardOpenCallback=undefined}return[4,dismiss(this,t,e,"modalLeave",iosLeaveAnimation,mdLeaveAnimation,{presentingEl:n,currentBreakpoint:(r=this.currentBreakpoint)!==null&&r!==void 0?r:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint,expandToScroll:this.expandToScroll})];case 4:s=f.sent();if(!s)return[3,6];d=this.getDelegate().delegate;return[4,detachComponent(d,this.usersElement)];case 5:f.sent();writeTask((function(){return l.el.classList.remove("show-modal")}));if(this.animation){this.animation.destroy()}if(this.gesture){this.gesture.destroy()}f.label=6;case 6:this.currentBreakpoint=undefined;this.animation=undefined;a();return[2,s]}}))}))};t.prototype.onDidDismiss=function(){return eventMethod(this.el,"ionModalDidDismiss")};t.prototype.onWillDismiss=function(){return eventMethod(this.el,"ionModalWillDismiss")};t.prototype.setCurrentBreakpoint=function(t){return __awaiter(this,void 0,void 0,(function(){var e,r,a,i,n,o;return __generator(this,(function(s){switch(s.label){case 0:if(!this.isSheetModal){printIonWarning("setCurrentBreakpoint is only supported on sheet modals.");return[2]}if(!this.breakpoints.includes(t)){printIonWarning("Attempted to set invalid breakpoint value ".concat(t,". Please double check that the breakpoint value is part of your defined breakpoints."));return[2]}e=this,r=e.currentBreakpoint,a=e.moveSheetToBreakpoint,i=e.canDismiss,n=e.breakpoints,o=e.animated;if(r===t){return[2]}if(!a)return[3,2];this.sheetTransition=a({breakpoint:t,breakpointOffset:1-r,canDismiss:i!==undefined&&i!==true&&n[0]===0,animated:o});return[4,this.sheetTransition];case 1:s.sent();this.sheetTransition=undefined;s.label=2;case 2:return[2]}}))}))};t.prototype.getCurrentBreakpoint=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.currentBreakpoint]}))}))};t.prototype.moveToNextBreakpoint=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,r,a,i,n,o;return __generator(this,(function(s){switch(s.label){case 0:t=this,e=t.breakpoints,r=t.currentBreakpoint;if(!e||r==null){return[2,false]}a=e.filter((function(t){return t!==0}));i=a.indexOf(r);n=(i+1)%a.length;o=a[n];return[4,this.setCurrentBreakpoint(o)];case 1:s.sent();return[2,true]}}))}))};t.prototype.getShape=function(){var t=getIonTheme(this);var e=this.shape;if(t!=="ionic"){return undefined}if(e===undefined){return"round"}return e};t.prototype.render=function(){var t;var e=this;var r=this,a=r.handle,i=r.isSheetModal,n=r.presentingElement,o=r.htmlAttributes,s=r.handleBehavior,d=r.inheritedAttributes,l=r.focusTrap,f=r.expandToScroll;var c=a!==false&&i;var u=getIonTheme(this);var p=n!==undefined&&u==="ios";var v=s==="cycle";var m=this.getShape();return h(Host,Object.assign({key:"9523c6210a952a3dbd5d6837e74c3adab7a4d58e","no-router":true,tabindex:"-1"},o,{style:{zIndex:"".concat(2e4+this.overlayIndex)},class:Object.assign((t={},t[u]=true,t["modal-default"]=!p&&!i,t["modal-card"]=p,t["modal-sheet"]=i,t["modal-".concat(m)]=m!==undefined,t["modal-no-expand-scroll"]=i&&!f,t["overlay-hidden"]=true,t[FOCUS_TRAP_DISABLE_CLASS]=l===false,t),getClassMap(this.cssClass)),onIonBackdropTap:this.onBackdropTap,onIonModalDidPresent:this.onLifecycle,onIonModalWillPresent:this.onLifecycle,onIonModalWillDismiss:this.onLifecycle,onIonModalDidDismiss:this.onLifecycle}),h("ion-backdrop",{key:"4230860b4b682f55bbf05849165e252e7ad849a0",ref:function(t){return e.backdropEl=t},visible:this.showBackdrop,tappable:this.backdropDismiss,part:"backdrop"}),u==="ios"&&h("div",{key:"e3df17bcfbdf4ba511bebd5b34763773c1d03fee",class:"modal-shadow"}),h("div",Object.assign({key:"6a8c4ad640463604ae367576dd23e75121c79b0d",role:"dialog"},d,{"aria-modal":"true",class:"modal-wrapper ion-overlay-wrapper",part:"content",ref:function(t){return e.wrapperEl=t}}),c&&h("button",{key:"8792a19bd65f600fed24fd74f35badb7f4e5d915",class:"modal-handle",tabIndex:!v?-1:0,"aria-label":"Activate to adjust the size of the dialog overlaying the screen",onClick:v?this.onHandleClick:undefined,part:"handle"}),h("slot",{key:"39645e31394e15b96f120507fb0097a4ebc4e1c0"})))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}},enumerable:false,configurable:true});return t}();var LIFECYCLE_MAP={ionModalDidPresent:"ionViewDidEnter",ionModalWillPresent:"ionViewWillEnter",ionModalWillDismiss:"ionViewWillLeave",ionModalDidDismiss:"ionViewDidLeave"};Modal.style={ionic:IonModalIonicStyle0,ios:IonModalIosStyle0,md:IonModalMdStyle0};export{Modal as ion_modal};
@@ -1,4 +1,4 @@
1
1
  import{__awaiter,__generator}from"tslib";
2
2
  /*!
3
3
  * (C) Ionic http://ionicframework.com - MIT License
4
- */import{r as registerInstance,c as createEvent,h,f as getElement,e as Host}from"./index-527b9e34.js";import{g as getTimeGivenProgression}from"./cubic-bezier-fe2083dc.js";import{n as assert,s as shallowEqualStringMap}from"./helpers-e48b0397.js";import{b as getIonMode,c as config}from"./ionic-global-ca86cf32.js";import{l as lifecycle,t as transition,s as setPageHidden,d as LIFECYCLE_WILL_UNLOAD,b as LIFECYCLE_WILL_LEAVE,c as LIFECYCLE_DID_LEAVE}from"./index-a313df53.js";import{a as attachComponent}from"./framework-delegate-c7d92b77.js";import"./index-738d7504.js";var VIEW_STATE_NEW=1;var VIEW_STATE_ATTACHED=2;var VIEW_STATE_DESTROYED=3;var ViewController=function(){function t(t,e){this.component=t;this.params=e;this.state=VIEW_STATE_NEW}t.prototype.init=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i;return __generator(this,(function(n){switch(n.label){case 0:this.state=VIEW_STATE_ATTACHED;if(!!this.element)return[3,2];e=this.component;i=this;return[4,attachComponent(this.delegate,t,e,["ion-page","ion-page-invisible"],this.params)];case 1:i.element=n.sent();n.label=2;case 2:return[2]}}))}))};t.prototype._destroy=function(){assert(this.state!==VIEW_STATE_DESTROYED,"view state must be ATTACHED");var t=this.element;if(t){if(this.delegate){this.delegate.removeViewFromDom(t.parentElement,t)}else{t.remove()}}this.nav=undefined;this.state=VIEW_STATE_DESTROYED};return t}();var matches=function(t,e,i){if(!t){return false}if(t.component!==e){return false}return shallowEqualStringMap(t.params,i)};var convertToView=function(t,e){if(!t){return null}if(t instanceof ViewController){return t}return new ViewController(t,e)};var convertToViews=function(t){return t.map((function(t){if(t instanceof ViewController){return t}if("component"in t){return convertToView(t.component,t.componentProps===null?undefined:t.componentProps)}return convertToView(t,undefined)})).filter((function(t){return t!==null}))};var navCss=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;z-index:0}";var IonNavStyle0=navCss;var Nav=function(){function t(t){registerInstance(this,t);this.ionNavWillLoad=createEvent(this,"ionNavWillLoad",7);this.ionNavWillChange=createEvent(this,"ionNavWillChange",3);this.ionNavDidChange=createEvent(this,"ionNavDidChange",3);this.transInstr=[];this.gestureOrAnimationInProgress=false;this.useRouter=false;this.isTransitioning=false;this.destroyed=false;this.views=[];this.didLoad=false;this.delegate=undefined;this.swipeGesture=undefined;this.animated=true;this.animation=undefined;this.rootParams=undefined;this.root=undefined}t.prototype.swipeGestureChanged=function(){if(this.gesture){this.gesture.enable(this.swipeGesture===true)}};t.prototype.rootChanged=function(){if(this.root===undefined){return}if(this.didLoad===false){return}if(!this.useRouter){if(this.root!==undefined){this.setRoot(this.root,this.rootParams)}}};t.prototype.componentWillLoad=function(){this.useRouter=document.querySelector("ion-router")!==null&&this.el.closest("[no-router]")===null;if(this.swipeGesture===undefined){var t=getIonMode(this);this.swipeGesture=config.getBoolean("swipeBackEnabled",t==="ios")}this.ionNavWillLoad.emit()};t.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:this.didLoad=true;this.rootChanged();t=this;return[4,import("./swipe-back-276cda49.js")];case 1:t.gesture=e.sent().createSwipeBackGesture(this.el,this.canStart.bind(this),this.onStart.bind(this),this.onMove.bind(this),this.onEnd.bind(this));this.swipeGestureChanged();return[2]}}))}))};t.prototype.connectedCallback=function(){this.destroyed=false};t.prototype.disconnectedCallback=function(){for(var t=0,e=this.views;t<e.length;t++){var i=e[t];lifecycle(i.element,LIFECYCLE_WILL_UNLOAD);i._destroy()}if(this.gesture){this.gesture.destroy();this.gesture=undefined}this.transInstr.length=0;this.views.length=0;this.destroyed=true};t.prototype.push=function(t,e,i,n){return this.insert(-1,t,e,i,n)};t.prototype.insert=function(t,e,i,n,r){return this.insertPages(t,[{component:e,componentProps:i}],n,r)};t.prototype.insertPages=function(t,e,i,n){return this.queueTrns({insertStart:t,insertViews:e,opts:i},n)};t.prototype.pop=function(t,e){return this.removeIndex(-1,1,t,e)};t.prototype.popTo=function(t,e,i){var n={removeStart:-1,removeCount:-1,opts:e};if(typeof t==="object"&&t.component){n.removeView=t;n.removeStart=1}else if(typeof t==="number"){n.removeStart=t+1}return this.queueTrns(n,i)};t.prototype.popToRoot=function(t,e){return this.removeIndex(1,-1,t,e)};t.prototype.removeIndex=function(t,e,i,n){if(e===void 0){e=1}return this.queueTrns({removeStart:t,removeCount:e,opts:i},n)};t.prototype.setRoot=function(t,e,i,n){return this.setPages([{component:t,componentProps:e}],i,n)};t.prototype.setPages=function(t,e,i){e!==null&&e!==void 0?e:e={};if(e.animated!==true){e.animated=false}return this.queueTrns({insertStart:0,insertViews:t,removeStart:0,removeCount:-1,opts:e},i)};t.prototype.setRouteId=function(t,e,i,n){var r=this;var s=this.getActiveSync();if(matches(s,t,e)){return Promise.resolve({changed:false,element:s.element})}var a;var o=new Promise((function(t){return a=t}));var u;var f={updateURL:false,viewIsReady:function(t){var e;var i=new Promise((function(t){return e=t}));a({changed:true,element:t,markVisible:function(){return __awaiter(r,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:e();return[4,u];case 1:t.sent();return[2]}}))}))}});return i}};if(i==="root"){u=this.setRoot(t,e,f)}else{var h=this.views.find((function(i){return matches(i,t,e)}));if(h){u=this.popTo(h,Object.assign(Object.assign({},f),{direction:"back",animationBuilder:n}))}else if(i==="forward"){u=this.push(t,e,Object.assign(Object.assign({},f),{animationBuilder:n}))}else if(i==="back"){u=this.setRoot(t,e,Object.assign(Object.assign({},f),{direction:"back",animated:true,animationBuilder:n}))}}return o};t.prototype.getRouteId=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=this.getActiveSync();if(t){return[2,{id:t.element.tagName,params:t.params,element:t.element}]}return[2,undefined]}))}))};t.prototype.getActive=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.getActiveSync()]}))}))};t.prototype.getByIndex=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.views[t]]}))}))};t.prototype.canGoBack=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.canGoBackSync(t)]}))}))};t.prototype.getPrevious=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.getPreviousSync(t)]}))}))};t.prototype.getLength=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Promise.resolve(this.views.length)]}))}))};t.prototype.getActiveSync=function(){return this.views[this.views.length-1]};t.prototype.canGoBackSync=function(t){if(t===void 0){t=this.getActiveSync()}return!!(t&&this.getPreviousSync(t))};t.prototype.getPreviousSync=function(t){if(t===void 0){t=this.getActiveSync()}if(!t){return undefined}var e=this.views;var i=e.indexOf(t);return i>0?e[i-1]:undefined};t.prototype.queueTrns=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,n,r,s,a;return __generator(this,(function(o){switch(o.label){case 0:if(this.isTransitioning&&((i=t.opts)===null||i===void 0?void 0:i.skipIfBusy)){return[2,false]}r=new Promise((function(e,i){t.resolve=e;t.reject=i}));t.done=e;if(!(t.opts&&t.opts.updateURL!==false&&this.useRouter))return[3,2];s=document.querySelector("ion-router");if(!s)return[3,2];return[4,s.canTransition()];case 1:a=o.sent();if(a===false){return[2,false]}if(typeof a==="string"){s.push(a,t.opts.direction||"back");return[2,false]}o.label=2;case 2:if(((n=t.insertViews)===null||n===void 0?void 0:n.length)===0){t.insertViews=undefined}this.transInstr.push(t);this.nextTrns();return[2,r]}}))}))};t.prototype.success=function(t,e){if(this.destroyed){this.fireError("nav controller was destroyed",e);return}if(e.done){e.done(t.hasCompleted,t.requiresTransition,t.enteringView,t.leavingView,t.direction)}e.resolve(t.hasCompleted);if(e.opts.updateURL!==false&&this.useRouter){var i=document.querySelector("ion-router");if(i){var n=t.direction==="back"?"back":"forward";i.navChanged(n)}}};t.prototype.failed=function(t,e){if(this.destroyed){this.fireError("nav controller was destroyed",e);return}this.transInstr.length=0;this.fireError(t,e)};t.prototype.fireError=function(t,e){if(e.done){e.done(false,false,t)}if(e.reject&&!this.destroyed){e.reject(t)}else{e.resolve(false)}};t.prototype.nextTrns=function(){if(this.isTransitioning){return false}var t=this.transInstr.shift();if(!t){return false}this.runTransition(t);return true};t.prototype.runTransition=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,n,r,s,a;return __generator(this,(function(o){switch(o.label){case 0:o.trys.push([0,6,,7]);this.ionNavWillChange.emit();this.isTransitioning=true;this.prepareTI(t);e=this.getActiveSync();i=this.getEnteringView(t,e);if(!e&&!i){throw new Error("no views in the stack to be removed")}if(!(i&&i.state===VIEW_STATE_NEW))return[3,2];return[4,i.init(this.el)];case 1:o.sent();o.label=2;case 2:this.postViewInit(i,e,t);n=(t.enteringRequiresTransition||t.leavingRequiresTransition)&&i!==e;if(n&&t.opts&&e){r=t.opts.direction==="back";if(r){t.opts.animationBuilder=t.opts.animationBuilder||(i===null||i===void 0?void 0:i.animationBuilder)}e.animationBuilder=t.opts.animationBuilder}s=void 0;if(!n)return[3,4];return[4,this.transition(i,e,t)];case 3:s=o.sent();return[3,5];case 4:s={hasCompleted:true,requiresTransition:false};o.label=5;case 5:this.success(s,t);this.ionNavDidChange.emit();return[3,7];case 6:a=o.sent();this.failed(a,t);return[3,7];case 7:this.isTransitioning=false;this.nextTrns();return[2]}}))}))};t.prototype.prepareTI=function(t){var e,i;var n;var r=this.views.length;(e=t.opts)!==null&&e!==void 0?e:t.opts={};(i=(n=t.opts).delegate)!==null&&i!==void 0?i:n.delegate=this.delegate;if(t.removeView!==undefined){assert(t.removeStart!==undefined,"removeView needs removeStart");assert(t.removeCount!==undefined,"removeView needs removeCount");var s=this.views.indexOf(t.removeView);if(s<0){throw new Error("removeView was not found")}t.removeStart+=s}if(t.removeStart!==undefined){if(t.removeStart<0){t.removeStart=r-1}if(t.removeCount<0){t.removeCount=r-t.removeStart}t.leavingRequiresTransition=t.removeCount>0&&t.removeStart+t.removeCount===r}if(t.insertViews){if(t.insertStart<0||t.insertStart>r){t.insertStart=r}t.enteringRequiresTransition=t.insertStart===r}var a=t.insertViews;if(!a){return}assert(a.length>0,"length can not be zero");var o=convertToViews(a);if(o.length===0){throw new Error("invalid views to insert")}for(var u=0,f=o;u<f.length;u++){var h=f[u];h.delegate=t.opts.delegate;var c=h.nav;if(c&&c!==this){throw new Error("inserted view was already inserted")}if(h.state===VIEW_STATE_DESTROYED){throw new Error("inserted view was already destroyed")}}t.insertViews=o};t.prototype.getEnteringView=function(t,e){var i=t.insertViews;if(i!==undefined){return i[i.length-1]}var n=t.removeStart;if(n!==undefined){var r=this.views;var s=n+t.removeCount;for(var a=r.length-1;a>=0;a--){var o=r[a];if((a<n||a>=s)&&o!==e){return o}}}return undefined};t.prototype.postViewInit=function(t,e,i){var n,r,s;assert(e||t,"Both leavingView and enteringView are null");assert(i.resolve,"resolve must be valid");assert(i.reject,"reject must be valid");var a=i.opts;var o=i.insertViews,u=i.removeStart,f=i.removeCount;var h;if(u!==undefined&&f!==undefined){assert(u>=0,"removeStart can not be negative");assert(f>=0,"removeCount can not be negative");h=[];for(var c=u;c<u+f;c++){var v=this.views[c];if(v!==undefined&&v!==t&&v!==e){h.push(v)}}(n=a.direction)!==null&&n!==void 0?n:a.direction="back"}var d=this.views.length+((r=o===null||o===void 0?void 0:o.length)!==null&&r!==void 0?r:0)-(f!==null&&f!==void 0?f:0);assert(d>=0,"final balance can not be negative");if(d===0){console.warn("You can't remove all the pages in the navigation stack. nav.pop() is probably called too many times.",this,this.el);throw new Error("navigation stack needs at least one root page")}if(o){var l=i.insertStart;for(var _=0,m=o;_<m.length;_++){var v=m[_];this.insertViewAt(v,l);l++}if(i.enteringRequiresTransition){(s=a.direction)!==null&&s!==void 0?s:a.direction="forward"}}if(h&&h.length>0){for(var E=0,w=h;E<w.length;E++){var v=w[E];lifecycle(v.element,LIFECYCLE_WILL_LEAVE);lifecycle(v.element,LIFECYCLE_DID_LEAVE);lifecycle(v.element,LIFECYCLE_WILL_UNLOAD)}for(var g=0,b=h;g<b.length;g++){var v=b[g];this.destroyView(v)}}};t.prototype.transition=function(t,e,i){return __awaiter(this,void 0,void 0,(function(){var n,r,s,a,o,u,f;var h=this;return __generator(this,(function(c){switch(c.label){case 0:n=i.opts;r=n.progressAnimation?function(t){if(t!==undefined&&!h.gestureOrAnimationInProgress){h.gestureOrAnimationInProgress=true;t.onFinish((function(){h.gestureOrAnimationInProgress=false}),{oneTimeCallback:true});t.progressEnd(0,0,0)}else{h.sbAni=t}}:undefined;s=getIonMode(this);a=t.element;o=e&&e.element;u=Object.assign(Object.assign({mode:s,showGoBack:this.canGoBackSync(t),baseEl:this.el,progressCallback:r,animated:this.animated&&config.getBoolean("animated",true),enteringEl:a,leavingEl:o},n),{animationBuilder:n.animationBuilder||this.animation||config.get("navAnimation")});return[4,transition(u)];case 1:f=c.sent().hasCompleted;return[2,this.transitionFinish(f,t,e,n)]}}))}))};t.prototype.transitionFinish=function(t,e,i,n){var r=t?e:i;if(r){this.unmountInactiveViews(r)}return{hasCompleted:t,requiresTransition:true,enteringView:e,leavingView:i,direction:n.direction}};t.prototype.insertViewAt=function(t,e){var i=this.views;var n=i.indexOf(t);if(n>-1){assert(t.nav===this,"view is not part of the nav");i.splice(n,1);i.splice(e,0,t)}else{assert(!t.nav,"nav is used");t.nav=this;i.splice(e,0,t)}};t.prototype.removeView=function(t){assert(t.state===VIEW_STATE_ATTACHED||t.state===VIEW_STATE_DESTROYED,"view state should be loaded or destroyed");var e=this.views;var i=e.indexOf(t);assert(i>-1,"view must be part of the stack");if(i>=0){e.splice(i,1)}};t.prototype.destroyView=function(t){t._destroy();this.removeView(t)};t.prototype.unmountInactiveViews=function(t){if(this.destroyed){return}var e=this.views;var i=e.indexOf(t);for(var n=e.length-1;n>=0;n--){var r=e[n];var s=r.element;if(s){if(n>i){lifecycle(s,LIFECYCLE_WILL_UNLOAD);this.destroyView(r)}else if(n<i){setPageHidden(s,true)}}}};t.prototype.canStart=function(){return!this.gestureOrAnimationInProgress&&!!this.swipeGesture&&!this.isTransitioning&&this.transInstr.length===0&&this.canGoBackSync()};t.prototype.onStart=function(){this.gestureOrAnimationInProgress=true;this.pop({direction:"back",progressAnimation:true})};t.prototype.onMove=function(t){if(this.sbAni){this.sbAni.progressStep(t)}};t.prototype.onEnd=function(t,e,i){var n=this;if(this.sbAni){this.sbAni.onFinish((function(){n.gestureOrAnimationInProgress=false}),{oneTimeCallback:true});var r=t?-.001:.001;if(!t){this.sbAni.easing("cubic-bezier(1, 0, 0.68, 0.28)");r+=getTimeGivenProgression([0,0],[1,0],[.68,.28],[1,1],e)[0]}else{r+=getTimeGivenProgression([0,0],[.32,.72],[0,1],[1,1],e)[0]}this.sbAni.progressEnd(t?1:0,r,i)}else{this.gestureOrAnimationInProgress=false}};t.prototype.render=function(){return h("slot",{key:"71e9b5d07fc90ca5534197a63a003a4154aabd59"})};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}},enumerable:false,configurable:true});return t}();Nav.style=IonNavStyle0;var navLink=function(t,e,i,n,r){var s=t.closest("ion-nav");if(s){if(e==="forward"){if(i!==undefined){return s.push(i,n,{skipIfBusy:true,animationBuilder:r})}}else if(e==="root"){if(i!==undefined){return s.setRoot(i,n,{skipIfBusy:true,animationBuilder:r})}}else if(e==="back"){return s.pop({skipIfBusy:true,animationBuilder:r})}}return Promise.resolve(false)};var NavLink=function(){function t(t){var e=this;registerInstance(this,t);this.onClick=function(){return navLink(e.el,e.routerDirection,e.component,e.componentProps,e.routerAnimation)};this.component=undefined;this.componentProps=undefined;this.routerDirection="forward";this.routerAnimation=undefined}t.prototype.render=function(){return h(Host,{key:"9ba170d1b10e08e8a6b5e6a30d363871d455a0a9",onClick:this.onClick})};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();export{Nav as ion_nav,NavLink as ion_nav_link};
4
+ */import{r as registerInstance,d as createEvent,h,g as getElement,f as Host}from"./index-4c3c5d46.js";import{g as getTimeGivenProgression}from"./cubic-bezier-fe2083dc.js";import{n as assert,s as shallowEqualStringMap}from"./helpers-ea1f7324.js";import{c as config}from"./config-84eb9670.js";import{l as lifecycle,t as transition,s as setPageHidden,d as LIFECYCLE_WILL_UNLOAD,b as LIFECYCLE_WILL_LEAVE,c as LIFECYCLE_DID_LEAVE}from"./index-eb1203fa.js";import{b as getIonMode,c as getIonTheme}from"./ionic-global-b30d2cc2.js";import{a as attachComponent}from"./framework-delegate-9ad3e427.js";import"./focus-visible-6827442c.js";var VIEW_STATE_NEW=1;var VIEW_STATE_ATTACHED=2;var VIEW_STATE_DESTROYED=3;var ViewController=function(){function t(t,e){this.component=t;this.params=e;this.state=VIEW_STATE_NEW}t.prototype.init=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i;return __generator(this,(function(n){switch(n.label){case 0:this.state=VIEW_STATE_ATTACHED;if(!!this.element)return[3,2];e=this.component;i=this;return[4,attachComponent(this.delegate,t,e,["ion-page","ion-page-invisible"],this.params)];case 1:i.element=n.sent();n.label=2;case 2:return[2]}}))}))};t.prototype._destroy=function(){assert(this.state!==VIEW_STATE_DESTROYED,"view state must be ATTACHED");var t=this.element;if(t){if(this.delegate){this.delegate.removeViewFromDom(t.parentElement,t)}else{t.remove()}}this.nav=undefined;this.state=VIEW_STATE_DESTROYED};return t}();var matches=function(t,e,i){if(!t){return false}if(t.component!==e){return false}return shallowEqualStringMap(t.params,i)};var convertToView=function(t,e){if(!t){return null}if(t instanceof ViewController){return t}return new ViewController(t,e)};var convertToViews=function(t){return t.map((function(t){if(t instanceof ViewController){return t}if("component"in t){return convertToView(t.component,t.componentProps===null?undefined:t.componentProps)}return convertToView(t,undefined)})).filter((function(t){return t!==null}))};var navCss=":host{right:0;left:0;top:0;bottom:0;position:absolute;contain:layout size style;z-index:0}";var IonNavStyle0=navCss;var Nav=function(){function t(t){registerInstance(this,t);this.ionNavWillLoad=createEvent(this,"ionNavWillLoad",7);this.ionNavWillChange=createEvent(this,"ionNavWillChange",3);this.ionNavDidChange=createEvent(this,"ionNavDidChange",3);this.transInstr=[];this.gestureOrAnimationInProgress=false;this.useRouter=false;this.isTransitioning=false;this.destroyed=false;this.views=[];this.didLoad=false;this.delegate=undefined;this.swipeGesture=undefined;this.animated=true;this.animation=undefined;this.rootParams=undefined;this.root=undefined}t.prototype.swipeGestureChanged=function(){if(this.gesture){this.gesture.enable(this.swipeGesture===true)}};t.prototype.rootChanged=function(){if(this.root===undefined){return}if(this.didLoad===false){return}if(!this.useRouter){if(this.root!==undefined){this.setRoot(this.root,this.rootParams)}}};t.prototype.componentWillLoad=function(){this.useRouter=document.querySelector("ion-router")!==null&&this.el.closest("[no-router]")===null;if(this.swipeGesture===undefined){var t=getIonMode(this);this.swipeGesture=config.getBoolean("swipeBackEnabled",t==="ios")}this.ionNavWillLoad.emit()};t.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:this.didLoad=true;this.rootChanged();t=this;return[4,import("./swipe-back-fff82194.js")];case 1:t.gesture=e.sent().createSwipeBackGesture(this.el,this.canStart.bind(this),this.onStart.bind(this),this.onMove.bind(this),this.onEnd.bind(this));this.swipeGestureChanged();return[2]}}))}))};t.prototype.connectedCallback=function(){this.destroyed=false};t.prototype.disconnectedCallback=function(){for(var t=0,e=this.views;t<e.length;t++){var i=e[t];lifecycle(i.element,LIFECYCLE_WILL_UNLOAD);i._destroy()}if(this.gesture){this.gesture.destroy();this.gesture=undefined}this.transInstr.length=0;this.views.length=0;this.destroyed=true};t.prototype.push=function(t,e,i,n){return this.insert(-1,t,e,i,n)};t.prototype.insert=function(t,e,i,n,r){return this.insertPages(t,[{component:e,componentProps:i}],n,r)};t.prototype.insertPages=function(t,e,i,n){return this.queueTrns({insertStart:t,insertViews:e,opts:i},n)};t.prototype.pop=function(t,e){return this.removeIndex(-1,1,t,e)};t.prototype.popTo=function(t,e,i){var n={removeStart:-1,removeCount:-1,opts:e};if(typeof t==="object"&&t.component){n.removeView=t;n.removeStart=1}else if(typeof t==="number"){n.removeStart=t+1}return this.queueTrns(n,i)};t.prototype.popToRoot=function(t,e){return this.removeIndex(1,-1,t,e)};t.prototype.removeIndex=function(t,e,i,n){if(e===void 0){e=1}return this.queueTrns({removeStart:t,removeCount:e,opts:i},n)};t.prototype.setRoot=function(t,e,i,n){return this.setPages([{component:t,componentProps:e}],i,n)};t.prototype.setPages=function(t,e,i){e!==null&&e!==void 0?e:e={};if(e.animated!==true){e.animated=false}return this.queueTrns({insertStart:0,insertViews:t,removeStart:0,removeCount:-1,opts:e},i)};t.prototype.setRouteId=function(t,e,i,n){var r=this;var s=this.getActiveSync();if(matches(s,t,e)){return Promise.resolve({changed:false,element:s.element})}var o;var a=new Promise((function(t){return o=t}));var u;var f={updateURL:false,viewIsReady:function(t){var e;var i=new Promise((function(t){return e=t}));o({changed:true,element:t,markVisible:function(){return __awaiter(r,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:e();return[4,u];case 1:t.sent();return[2]}}))}))}});return i}};if(i==="root"){u=this.setRoot(t,e,f)}else{var h=this.views.find((function(i){return matches(i,t,e)}));if(h){u=this.popTo(h,Object.assign(Object.assign({},f),{direction:"back",animationBuilder:n}))}else if(i==="forward"){u=this.push(t,e,Object.assign(Object.assign({},f),{animationBuilder:n}))}else if(i==="back"){u=this.setRoot(t,e,Object.assign(Object.assign({},f),{direction:"back",animated:true,animationBuilder:n}))}}return a};t.prototype.getRouteId=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=this.getActiveSync();if(t){return[2,{id:t.element.tagName,params:t.params,element:t.element}]}return[2,undefined]}))}))};t.prototype.getActive=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.getActiveSync()]}))}))};t.prototype.getByIndex=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.views[t]]}))}))};t.prototype.canGoBack=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.canGoBackSync(t)]}))}))};t.prototype.getPrevious=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.getPreviousSync(t)]}))}))};t.prototype.getLength=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Promise.resolve(this.views.length)]}))}))};t.prototype.getActiveSync=function(){return this.views[this.views.length-1]};t.prototype.canGoBackSync=function(t){if(t===void 0){t=this.getActiveSync()}return!!(t&&this.getPreviousSync(t))};t.prototype.getPreviousSync=function(t){if(t===void 0){t=this.getActiveSync()}if(!t){return undefined}var e=this.views;var i=e.indexOf(t);return i>0?e[i-1]:undefined};t.prototype.queueTrns=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,n,r,s,o;return __generator(this,(function(a){switch(a.label){case 0:if(this.isTransitioning&&((i=t.opts)===null||i===void 0?void 0:i.skipIfBusy)){return[2,false]}r=new Promise((function(e,i){t.resolve=e;t.reject=i}));t.done=e;if(!(t.opts&&t.opts.updateURL!==false&&this.useRouter))return[3,2];s=document.querySelector("ion-router");if(!s)return[3,2];return[4,s.canTransition()];case 1:o=a.sent();if(o===false){return[2,false]}if(typeof o==="string"){s.push(o,t.opts.direction||"back");return[2,false]}a.label=2;case 2:if(((n=t.insertViews)===null||n===void 0?void 0:n.length)===0){t.insertViews=undefined}this.transInstr.push(t);this.nextTrns();return[2,r]}}))}))};t.prototype.success=function(t,e){if(this.destroyed){this.fireError("nav controller was destroyed",e);return}if(e.done){e.done(t.hasCompleted,t.requiresTransition,t.enteringView,t.leavingView,t.direction)}e.resolve(t.hasCompleted);if(e.opts.updateURL!==false&&this.useRouter){var i=document.querySelector("ion-router");if(i){var n=t.direction==="back"?"back":"forward";i.navChanged(n)}}};t.prototype.failed=function(t,e){if(this.destroyed){this.fireError("nav controller was destroyed",e);return}this.transInstr.length=0;this.fireError(t,e)};t.prototype.fireError=function(t,e){if(e.done){e.done(false,false,t)}if(e.reject&&!this.destroyed){e.reject(t)}else{e.resolve(false)}};t.prototype.nextTrns=function(){if(this.isTransitioning){return false}var t=this.transInstr.shift();if(!t){return false}this.runTransition(t);return true};t.prototype.runTransition=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,n,r,s,o;return __generator(this,(function(a){switch(a.label){case 0:a.trys.push([0,6,,7]);this.ionNavWillChange.emit();this.isTransitioning=true;this.prepareTI(t);e=this.getActiveSync();i=this.getEnteringView(t,e);if(!e&&!i){throw new Error("no views in the stack to be removed")}if(!(i&&i.state===VIEW_STATE_NEW))return[3,2];return[4,i.init(this.el)];case 1:a.sent();a.label=2;case 2:this.postViewInit(i,e,t);n=(t.enteringRequiresTransition||t.leavingRequiresTransition)&&i!==e;if(n&&t.opts&&e){r=t.opts.direction==="back";if(r){t.opts.animationBuilder=t.opts.animationBuilder||(i===null||i===void 0?void 0:i.animationBuilder)}e.animationBuilder=t.opts.animationBuilder}s=void 0;if(!n)return[3,4];return[4,this.transition(i,e,t)];case 3:s=a.sent();return[3,5];case 4:s={hasCompleted:true,requiresTransition:false};a.label=5;case 5:this.success(s,t);this.ionNavDidChange.emit();return[3,7];case 6:o=a.sent();this.failed(o,t);return[3,7];case 7:this.isTransitioning=false;this.nextTrns();return[2]}}))}))};t.prototype.prepareTI=function(t){var e,i;var n;var r=this.views.length;(e=t.opts)!==null&&e!==void 0?e:t.opts={};(i=(n=t.opts).delegate)!==null&&i!==void 0?i:n.delegate=this.delegate;if(t.removeView!==undefined){assert(t.removeStart!==undefined,"removeView needs removeStart");assert(t.removeCount!==undefined,"removeView needs removeCount");var s=this.views.indexOf(t.removeView);if(s<0){throw new Error("removeView was not found")}t.removeStart+=s}if(t.removeStart!==undefined){if(t.removeStart<0){t.removeStart=r-1}if(t.removeCount<0){t.removeCount=r-t.removeStart}t.leavingRequiresTransition=t.removeCount>0&&t.removeStart+t.removeCount===r}if(t.insertViews){if(t.insertStart<0||t.insertStart>r){t.insertStart=r}t.enteringRequiresTransition=t.insertStart===r}var o=t.insertViews;if(!o){return}assert(o.length>0,"length can not be zero");var a=convertToViews(o);if(a.length===0){throw new Error("invalid views to insert")}for(var u=0,f=a;u<f.length;u++){var h=f[u];h.delegate=t.opts.delegate;var c=h.nav;if(c&&c!==this){throw new Error("inserted view was already inserted")}if(h.state===VIEW_STATE_DESTROYED){throw new Error("inserted view was already destroyed")}}t.insertViews=a};t.prototype.getEnteringView=function(t,e){var i=t.insertViews;if(i!==undefined){return i[i.length-1]}var n=t.removeStart;if(n!==undefined){var r=this.views;var s=n+t.removeCount;for(var o=r.length-1;o>=0;o--){var a=r[o];if((o<n||o>=s)&&a!==e){return a}}}return undefined};t.prototype.postViewInit=function(t,e,i){var n,r,s;assert(e||t,"Both leavingView and enteringView are null");assert(i.resolve,"resolve must be valid");assert(i.reject,"reject must be valid");var o=i.opts;var a=i.insertViews,u=i.removeStart,f=i.removeCount;var h;if(u!==undefined&&f!==undefined){assert(u>=0,"removeStart can not be negative");assert(f>=0,"removeCount can not be negative");h=[];for(var c=u;c<u+f;c++){var v=this.views[c];if(v!==undefined&&v!==t&&v!==e){h.push(v)}}(n=o.direction)!==null&&n!==void 0?n:o.direction="back"}var d=this.views.length+((r=a===null||a===void 0?void 0:a.length)!==null&&r!==void 0?r:0)-(f!==null&&f!==void 0?f:0);assert(d>=0,"final balance can not be negative");if(d===0){console.warn("You can't remove all the pages in the navigation stack. nav.pop() is probably called too many times.",this,this.el);throw new Error("navigation stack needs at least one root page")}if(a){var l=i.insertStart;for(var m=0,_=a;m<_.length;m++){var v=_[m];this.insertViewAt(v,l);l++}if(i.enteringRequiresTransition){(s=o.direction)!==null&&s!==void 0?s:o.direction="forward"}}if(h&&h.length>0){for(var E=0,w=h;E<w.length;E++){var v=w[E];lifecycle(v.element,LIFECYCLE_WILL_LEAVE);lifecycle(v.element,LIFECYCLE_DID_LEAVE);lifecycle(v.element,LIFECYCLE_WILL_UNLOAD)}for(var g=0,b=h;g<b.length;g++){var v=b[g];this.destroyView(v)}}};t.prototype.transition=function(t,e,i){return __awaiter(this,void 0,void 0,(function(){var n,r,s,o,a,u,f,h;var c=this;return __generator(this,(function(v){switch(v.label){case 0:n=i.opts;r=n.progressAnimation?function(t){if(t!==undefined&&!c.gestureOrAnimationInProgress){c.gestureOrAnimationInProgress=true;t.onFinish((function(){c.gestureOrAnimationInProgress=false}),{oneTimeCallback:true});t.progressEnd(0,0,0)}else{c.sbAni=t}}:undefined;s=getIonTheme(this);o=getIonMode(this,s);a=t.element;u=e&&e.element;f=Object.assign(Object.assign({mode:o,theme:s,showGoBack:this.canGoBackSync(t),baseEl:this.el,progressCallback:r,animated:this.animated&&config.getBoolean("animated",true),enteringEl:a,leavingEl:u},n),{animationBuilder:n.animationBuilder||this.animation||config.get("navAnimation")});return[4,transition(f)];case 1:h=v.sent().hasCompleted;return[2,this.transitionFinish(h,t,e,n)]}}))}))};t.prototype.transitionFinish=function(t,e,i,n){var r=t?e:i;if(r){this.unmountInactiveViews(r)}return{hasCompleted:t,requiresTransition:true,enteringView:e,leavingView:i,direction:n.direction}};t.prototype.insertViewAt=function(t,e){var i=this.views;var n=i.indexOf(t);if(n>-1){assert(t.nav===this,"view is not part of the nav");i.splice(n,1);i.splice(e,0,t)}else{assert(!t.nav,"nav is used");t.nav=this;i.splice(e,0,t)}};t.prototype.removeView=function(t){assert(t.state===VIEW_STATE_ATTACHED||t.state===VIEW_STATE_DESTROYED,"view state should be loaded or destroyed");var e=this.views;var i=e.indexOf(t);assert(i>-1,"view must be part of the stack");if(i>=0){e.splice(i,1)}};t.prototype.destroyView=function(t){t._destroy();this.removeView(t)};t.prototype.unmountInactiveViews=function(t){if(this.destroyed){return}var e=this.views;var i=e.indexOf(t);for(var n=e.length-1;n>=0;n--){var r=e[n];var s=r.element;if(s){if(n>i){lifecycle(s,LIFECYCLE_WILL_UNLOAD);this.destroyView(r)}else if(n<i){setPageHidden(s,true)}}}};t.prototype.canStart=function(){return!this.gestureOrAnimationInProgress&&!!this.swipeGesture&&!this.isTransitioning&&this.transInstr.length===0&&this.canGoBackSync()};t.prototype.onStart=function(){this.gestureOrAnimationInProgress=true;this.pop({direction:"back",progressAnimation:true})};t.prototype.onMove=function(t){if(this.sbAni){this.sbAni.progressStep(t)}};t.prototype.onEnd=function(t,e,i){var n=this;if(this.sbAni){this.sbAni.onFinish((function(){n.gestureOrAnimationInProgress=false}),{oneTimeCallback:true});var r=t?-.001:.001;if(!t){this.sbAni.easing("cubic-bezier(1, 0, 0.68, 0.28)");r+=getTimeGivenProgression([0,0],[1,0],[.68,.28],[1,1],e)[0]}else{r+=getTimeGivenProgression([0,0],[.32,.72],[0,1],[1,1],e)[0]}this.sbAni.progressEnd(t?1:0,r,i)}else{this.gestureOrAnimationInProgress=false}};t.prototype.render=function(){return h("slot",{key:"07e269fa670039e0005ea4d90ea57ffb4c5f24b0"})};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}},enumerable:false,configurable:true});return t}();Nav.style=IonNavStyle0;var navLink=function(t,e,i,n,r){var s=t.closest("ion-nav");if(s){if(e==="forward"){if(i!==undefined){return s.push(i,n,{skipIfBusy:true,animationBuilder:r})}}else if(e==="root"){if(i!==undefined){return s.setRoot(i,n,{skipIfBusy:true,animationBuilder:r})}}else if(e==="back"){return s.pop({skipIfBusy:true,animationBuilder:r})}}return Promise.resolve(false)};var NavLink=function(){function t(t){var e=this;registerInstance(this,t);this.onClick=function(){return navLink(e.el,e.routerDirection,e.component,e.componentProps,e.routerAnimation)};this.component=undefined;this.componentProps=undefined;this.routerDirection="forward";this.routerAnimation=undefined}t.prototype.render=function(){return h(Host,{key:"74d1929235cd2d4e2abe3ec13e236dcfd1020b6d",onClick:this.onClick})};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();export{Nav as ion_nav,NavLink as ion_nav_link};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{r as registerInstance,h,e as Host,f as getElement}from"./index-527b9e34.js";import{h as inheritAttributes}from"./helpers-e48b0397.js";import{c as createColorClasses}from"./theme-01f3f29c.js";import{b as getIonMode}from"./ionic-global-ca86cf32.js";var pickerColumnOptionIosCss="button{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden}:host(.option-disabled){opacity:0.4}:host(.option-disabled) button{cursor:default}";var IonPickerColumnOptionIosStyle0=pickerColumnOptionIosCss;var pickerColumnOptionMdCss="button{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden}:host(.option-disabled){opacity:0.4}:host(.option-disabled) button{cursor:default}:host(.option-active){color:var(--ion-color-base)}";var IonPickerColumnOptionMdStyle0=pickerColumnOptionMdCss;var PickerColumnOption=function(){function t(t){registerInstance(this,t);this.pickerColumn=null;this.ariaLabel=null;this.disabled=false;this.value=undefined;this.color="primary"}t.prototype.onAriaLabelChange=function(t){this.ariaLabel=t};t.prototype.componentWillLoad=function(){var t=inheritAttributes(this.el,["aria-label"]);this.ariaLabel=t["aria-label"]||null};t.prototype.connectedCallback=function(){this.pickerColumn=this.el.closest("ion-picker-column")};t.prototype.disconnectedCallback=function(){this.pickerColumn=null};t.prototype.componentDidLoad=function(){var t=this.pickerColumn;if(t!==null){t.scrollActiveItemIntoView()}};t.prototype.onClick=function(){var t=this.pickerColumn;if(t!==null){t.setValue(this.value)}};t.prototype.render=function(){var t;var i=this;var e=this,n=e.color,o=e.disabled,r=e.ariaLabel;var a=getIonMode(this);return h(Host,{key:"c1353e99c2aa19c0e3ddbe433557ed18e72e1c66",class:createColorClasses(n,(t={},t[a]=true,t["option-disabled"]=o,t))},h("button",{key:"b4ee62ecf7458a07a56e8aa494485766a87a3fcb",tabindex:"-1","aria-label":r,disabled:o,onClick:function(){return i.onClick()}},h("slot",{key:"9ab1e4700c27103b676670a4b3521c183c6ab83d"})))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{"aria-label":["onAriaLabelChange"]}},enumerable:false,configurable:true});return t}();PickerColumnOption.style={ios:IonPickerColumnOptionIosStyle0,md:IonPickerColumnOptionMdStyle0};export{PickerColumnOption as ion_picker_column_option};
4
+ import{r as registerInstance,h,f as Host,g as getElement}from"./index-4c3c5d46.js";import{h as inheritAttributes}from"./helpers-ea1f7324.js";import{c as createColorClasses}from"./theme-01f3f29c.js";import{c as getIonTheme}from"./ionic-global-b30d2cc2.js";import"./focus-visible-6827442c.js";import"./config-84eb9670.js";var ionicPickerColumnOptionMdCss="button{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden}:host(.option-disabled){opacity:0.4}:host(.option-disabled) button{cursor:default}:host(.option-active){color:var(--ion-color-base)}";var IonPickerColumnOptionIonicStyle0=ionicPickerColumnOptionMdCss;var pickerColumnOptionIosCss="button{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden}:host(.option-disabled){opacity:0.4}:host(.option-disabled) button{cursor:default}";var IonPickerColumnOptionIosStyle0=pickerColumnOptionIosCss;var pickerColumnOptionMdCss="button{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden}:host(.option-disabled){opacity:0.4}:host(.option-disabled) button{cursor:default}:host(.option-active){color:var(--ion-color-base)}";var IonPickerColumnOptionMdStyle0=pickerColumnOptionMdCss;var PickerColumnOption=function(){function i(i){registerInstance(this,i);this.pickerColumn=null;this.ariaLabel=null;this.disabled=false;this.value=undefined;this.color="primary"}i.prototype.onAriaLabelChange=function(i){this.ariaLabel=i};i.prototype.componentWillLoad=function(){var i=inheritAttributes(this.el,["aria-label"]);this.ariaLabel=i["aria-label"]||null};i.prototype.connectedCallback=function(){this.pickerColumn=this.el.closest("ion-picker-column")};i.prototype.disconnectedCallback=function(){this.pickerColumn=null};i.prototype.componentDidLoad=function(){var i=this.pickerColumn;if(i!==null){i.scrollActiveItemIntoView()}};i.prototype.onClick=function(){var i=this.pickerColumn;if(i!==null){i.setValue(this.value)}};i.prototype.render=function(){var i;var t=this;var o=this,n=o.color,e=o.disabled,r=o.ariaLabel;var a=getIonTheme(this);return h(Host,{key:"15115335aa79bd1f89f5a8585e4aa032681b14b3",class:createColorClasses(n,(i={},i[a]=true,i["option-disabled"]=e,i))},h("button",{key:"16b6a51dca36a6e5abac28c8b0b25bc009dfc091",tabindex:"-1","aria-label":r,disabled:e,onClick:function(){return t.onClick()}},h("slot",{key:"6a5bed3b65522b21be35cfd5554f9f7b699adcdf"})))};Object.defineProperty(i.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(i,"watchers",{get:function(){return{"aria-label":["onAriaLabelChange"]}},enumerable:false,configurable:true});return i}();PickerColumnOption.style={ionic:IonPickerColumnOptionIonicStyle0,ios:IonPickerColumnOptionIosStyle0,md:IonPickerColumnOptionMdStyle0};export{PickerColumnOption as ion_picker_column_option};
@@ -1,4 +1,4 @@
1
1
  import{__awaiter,__generator}from"tslib";
2
2
  /*!
3
3
  * (C) Ionic http://ionicframework.com - MIT License
4
- */import{r as registerInstance,c as createEvent,h,e as Host,f as getElement}from"./index-527b9e34.js";import{d as doc}from"./index-a5d50daf.js";import{r as raf,g as getElementRoot}from"./helpers-e48b0397.js";import{a as hapticSelectionStart,b as hapticSelectionChanged,h as hapticSelectionEnd}from"./haptic-ac164e4c.js";import{a as isPlatform,b as getIonMode}from"./ionic-global-ca86cf32.js";import{c as createColorClasses}from"./theme-01f3f29c.js";import"./capacitor-59395cbd.js";var pickerColumnCss=":host{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;max-width:100%;height:200px;font-size:22px;text-align:center}.assistive-focusable{left:0;right:0;top:0;bottom:0;position:absolute;z-index:1;pointer-events:none}.assistive-focusable:focus{outline:none}.picker-opts{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0px;padding-bottom:0px;min-width:26px;max-height:200px;outline:none;text-align:inherit;-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory;overflow-x:hidden;overflow-y:scroll;scrollbar-width:none}.picker-item-empty{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.picker-opts::-webkit-scrollbar{display:none}::slotted(ion-picker-column-option){display:block;scroll-snap-align:center}.picker-item-empty,:host(:not([disabled])) ::slotted(ion-picker-column-option.option-disabled){scroll-snap-align:none}::slotted([slot=prefix]),::slotted([slot=suffix]){max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}::slotted([slot=prefix]){-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0;padding-bottom:0;-ms-flex-pack:end;justify-content:end}::slotted([slot=suffix]){-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0;padding-bottom:0;-ms-flex-pack:start;justify-content:start}:host(.picker-column-disabled) .picker-opts{overflow-y:hidden}:host(.picker-column-disabled) ::slotted(ion-picker-column-option){cursor:default;opacity:0.4;pointer-events:none}@media (any-hover: hover){:host(:focus) .picker-opts{outline:none;background:rgba(var(--ion-color-base-rgb), 0.2)}}";var IonPickerColumnStyle0=pickerColumnCss;var PickerColumn=function(){function e(e){var i=this;registerInstance(this,e);this.ionChange=createEvent(this,"ionChange",7);this.isScrolling=false;this.isColumnVisible=false;this.canExitInputMode=true;this.updateValueTextOnScroll=false;this.centerPickerItemInView=function(e,t,n){if(t===void 0){t=true}if(n===void 0){n=true}var r=i,a=r.isColumnVisible,o=r.scrollEl;if(a&&o){var s=e.offsetTop-3*e.clientHeight+e.clientHeight/2;if(o.scrollTop!==s){i.canExitInputMode=n;i.updateValueTextOnScroll=false;o.scroll({top:s,left:0,behavior:t?"smooth":undefined})}}};this.setPickerItemActiveState=function(e,i){if(i){e.classList.add(PICKER_ITEM_ACTIVE_CLASS)}else{e.classList.remove(PICKER_ITEM_ACTIVE_CLASS)}};this.inputModeChange=function(e){if(!i.numericInput){return}var t=e.detail,n=t.useInputMode,r=t.inputModeColumn;var a=r===undefined||r===i.el;if(!n||!a){i.setInputModeActive(false);return}i.setInputModeActive(true)};this.setInputModeActive=function(e){if(i.isScrolling){i.scrollEndCallback=function(){i.isActive=e};return}i.isActive=e};this.initializeScrollListener=function(){var e=isPlatform("ios");var t=i,n=t.el,r=t.scrollEl;var a;var o=i.activeItem;var s=function(){raf((function(){var t;if(!r)return;if(a){clearTimeout(a);a=undefined}if(!i.isScrolling){e&&hapticSelectionStart();i.isScrolling=true}var s=r.getBoundingClientRect();var l=s.x+s.width/2;var f=s.y+s.height/2;var c=n.getRootNode();var d=c instanceof ShadowRoot;var u=d?c:doc;if(u===undefined){return}var p=u.elementsFromPoint(l,f);var h=p.find((function(e){return e.tagName==="ION-PICKER-COLUMN-OPTION"}));if(o!==undefined){i.setPickerItemActiveState(o,false)}if(h===undefined||h.disabled){return}if(h!==o){e&&hapticSelectionChanged();if(i.canExitInputMode){i.exitInputMode()}}o=h;i.setPickerItemActiveState(h,true);if(i.updateValueTextOnScroll){(t=i.assistiveFocusable)===null||t===void 0?void 0:t.setAttribute("aria-valuetext",i.getOptionValueText(h))}a=setTimeout((function(){i.isScrolling=false;i.updateValueTextOnScroll=true;e&&hapticSelectionEnd();var t=i.scrollEndCallback;if(t){t();i.scrollEndCallback=undefined}i.canExitInputMode=true;i.setValue(h.value)}),250)}))};raf((function(){if(!r)return;r.addEventListener("scroll",s);i.destroyScrollListener=function(){r.removeEventListener("scroll",s)}}))};this.exitInputMode=function(){var e=i.parentEl;if(e==null)return;e.exitInputMode();i.el.classList.remove("picker-column-active")};this.findNextOption=function(e){if(e===void 0){e=1}var t=i.activeItem;if(!t)return null;var n=t;var r=t.nextElementSibling;while(r!=null){if(e>0){e--}if(r.tagName==="ION-PICKER-COLUMN-OPTION"&&!r.disabled&&e===0){return r}n=r;r=r.nextElementSibling}return n};this.findPreviousOption=function(e){if(e===void 0){e=1}var t=i.activeItem;if(!t)return null;var n=t;var r=t.previousElementSibling;while(r!=null){if(e>0){e--}if(r.tagName==="ION-PICKER-COLUMN-OPTION"&&!r.disabled&&e===0){return r}n=r;r=r.previousElementSibling}return n};this.onKeyDown=function(e){var t=isPlatform("mobile");var n=null;switch(e.key){case"ArrowDown":n=t?i.findPreviousOption():i.findNextOption();break;case"ArrowUp":n=t?i.findNextOption():i.findPreviousOption();break;case"PageUp":n=t?i.findNextOption(5):i.findPreviousOption(5);break;case"PageDown":n=t?i.findPreviousOption(5):i.findNextOption(5);break;case"Home":n=i.el.querySelector("ion-picker-column-option:first-of-type");break;case"End":n=i.el.querySelector("ion-picker-column-option:last-of-type");break}if(n!==null){i.setValue(n.value);e.preventDefault()}};this.getOptionValueText=function(e){var i;return e?(i=e.getAttribute("aria-label"))!==null&&i!==void 0?i:e.innerText:""};this.renderAssistiveFocusable=function(){var e=i.activeItem;var t=i.getOptionValueText(e);return h("div",{ref:function(e){return i.assistiveFocusable=e},class:"assistive-focusable",role:"slider",tabindex:i.disabled?undefined:0,"aria-label":i.ariaLabel,"aria-valuemin":0,"aria-valuemax":0,"aria-valuenow":0,"aria-valuetext":t,"aria-orientation":"vertical",onKeyDown:function(e){return i.onKeyDown(e)}})};this.ariaLabel=null;this.isActive=false;this.disabled=false;this.value=undefined;this.color="primary";this.numericInput=false}e.prototype.ariaLabelChanged=function(e){this.ariaLabel=e};e.prototype.valueChange=function(){if(this.isColumnVisible){this.scrollActiveItemIntoView(true)}};e.prototype.componentWillLoad=function(){var e=this;var i=this.parentEl=this.el.closest("ion-picker");var t=function(i){var t=i[i.length-1];if(t.isIntersecting){var n=e,r=n.activeItem,a=n.el;e.isColumnVisible=true;var o=getElementRoot(a).querySelector(".".concat(PICKER_ITEM_ACTIVE_CLASS));if(o){e.setPickerItemActiveState(o,false)}e.scrollActiveItemIntoView();if(r){e.setPickerItemActiveState(r,true)}e.initializeScrollListener()}else{e.isColumnVisible=false;if(e.destroyScrollListener){e.destroyScrollListener();e.destroyScrollListener=undefined}}};new IntersectionObserver(t,{threshold:.001,root:this.parentEl}).observe(this.el);if(i!==null){i.addEventListener("ionInputModeChange",(function(i){return e.inputModeChange(i)}))}};e.prototype.componentDidRender=function(){var e=this,i=e.el,t=e.activeItem,n=e.isColumnVisible,r=e.value;if(n&&!t){var a=i.querySelector("ion-picker-column-option");if(a!==null&&a.value!==r){this.setValue(a.value)}}};e.prototype.scrollActiveItemIntoView=function(){return __awaiter(this,arguments,void 0,(function(e){var i;if(e===void 0){e=false}return __generator(this,(function(t){i=this.activeItem;if(i){this.centerPickerItemInView(i,e,false)}return[2]}))}))};e.prototype.setValue=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){if(this.disabled===true||this.value===e){return[2]}this.value=e;this.ionChange.emit({value:e});return[2]}))}))};e.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.assistiveFocusable){this.assistiveFocusable.focus()}return[2]}))}))};e.prototype.connectedCallback=function(){var e;this.ariaLabel=(e=this.el.getAttribute("aria-label"))!==null&&e!==void 0?e:"Select a value"};Object.defineProperty(e.prototype,"activeItem",{get:function(){var e=this;var i=this.value;var t=Array.from(this.el.querySelectorAll("ion-picker-column-option"));return t.find((function(t){if(!e.disabled&&t.disabled){return false}return t.value===i}))},enumerable:false,configurable:true});e.prototype.render=function(){var e;var i=this;var t=this,n=t.color,r=t.disabled,a=t.isActive,o=t.numericInput;var s=getIonMode(this);return h(Host,{key:"a221dc10f1eb7c41637a16d2c7167c16939822fd",class:createColorClasses(n,(e={},e[s]=true,e["picker-column-active"]=a,e["picker-column-numeric-input"]=o,e["picker-column-disabled"]=r,e))},this.renderAssistiveFocusable(),h("slot",{key:"81b0656f606856f3dc0a657bf167d81a5011405e",name:"prefix"}),h("div",{key:"71b9de67c04150255dd66592601c9d926db0c31c","aria-hidden":"true",class:"picker-opts",ref:function(e){i.scrollEl=e},tabIndex:-1},h("div",{key:"ebdc2f08c83db0cf17b4be29f28fcb00f529601e",class:"picker-item-empty","aria-hidden":"true"}," "),h("div",{key:"04ab56fcb8e6a7d6af00204c4560feb99ff34a56",class:"picker-item-empty","aria-hidden":"true"}," "),h("div",{key:"6cf8f538903faf0fe1e4130f3eaf7b4e2e17cb52",class:"picker-item-empty","aria-hidden":"true"}," "),h("slot",{key:"1cc392307b70c576be5b81b5226ceba735957f0f"}),h("div",{key:"23e3f28e2a99b9aa8b7c8f68ad9583e3ca63e9e2",class:"picker-item-empty","aria-hidden":"true"}," "),h("div",{key:"8a0563f09780c3116af0caebe4f40587ec1f041f",class:"picker-item-empty","aria-hidden":"true"}," "),h("div",{key:"13207e248fc0009f37e0c90a3ee2bac2f130b856",class:"picker-item-empty","aria-hidden":"true"}," ")),h("slot",{key:"55ecf2ab5f214f936c2468cbdb7952daf89416b8",name:"suffix"}))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{"aria-label":["ariaLabelChanged"],value:["valueChange"]}},enumerable:false,configurable:true});return e}();var PICKER_ITEM_ACTIVE_CLASS="option-active";PickerColumn.style=IonPickerColumnStyle0;export{PickerColumn as ion_picker_column};
4
+ */import{r as registerInstance,d as createEvent,h,f as Host,g as getElement}from"./index-4c3c5d46.js";import{a as isPlatform,c as getIonTheme,d as doc}from"./ionic-global-b30d2cc2.js";import{r as raf,g as getElementRoot}from"./helpers-ea1f7324.js";import{a as hapticSelectionStart,b as hapticSelectionChanged,h as hapticSelectionEnd}from"./haptic-946542b8.js";import{c as createColorClasses}from"./theme-01f3f29c.js";import"./config-84eb9670.js";import"./focus-visible-6827442c.js";import"./capacitor-39edcb1f.js";var pickerColumnCss=":host{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;max-width:100%;height:200px;font-size:22px;text-align:center}.assistive-focusable{right:0;left:0;top:0;bottom:0;position:absolute;z-index:1;pointer-events:none}.assistive-focusable:focus{outline:none}.picker-opts{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0px;padding-bottom:0px;min-width:26px;max-height:200px;outline:none;text-align:inherit;-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory;overflow-x:hidden;overflow-y:scroll;scrollbar-width:none}.picker-item-empty{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.picker-opts::-webkit-scrollbar{display:none}::slotted(ion-picker-column-option){display:block;scroll-snap-align:center}.picker-item-empty,:host(:not([disabled])) ::slotted(ion-picker-column-option.option-disabled){scroll-snap-align:none}::slotted([slot=prefix]),::slotted([slot=suffix]){max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}::slotted([slot=prefix]){-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0;padding-bottom:0;-ms-flex-pack:end;justify-content:end}::slotted([slot=suffix]){-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0;padding-bottom:0;-ms-flex-pack:start;justify-content:start}:host(.picker-column-disabled) .picker-opts{overflow-y:hidden}:host(.picker-column-disabled) ::slotted(ion-picker-column-option){cursor:default;opacity:0.4;pointer-events:none}@media (any-hover: hover){:host(:focus) .picker-opts{outline:none;background:rgba(var(--ion-color-base-rgb), 0.2)}}";var IonPickerColumnStyle0=pickerColumnCss;var PickerColumn=function(){function e(e){var i=this;registerInstance(this,e);this.ionChange=createEvent(this,"ionChange",7);this.isScrolling=false;this.isColumnVisible=false;this.canExitInputMode=true;this.updateValueTextOnScroll=false;this.centerPickerItemInView=function(e,t,n){if(t===void 0){t=true}if(n===void 0){n=true}var r=i,a=r.isColumnVisible,o=r.scrollEl;if(a&&o){var s=e.offsetTop-3*e.clientHeight+e.clientHeight/2;if(o.scrollTop!==s){i.canExitInputMode=n;i.updateValueTextOnScroll=false;o.scroll({top:s,left:0,behavior:t?"smooth":undefined})}}};this.setPickerItemActiveState=function(e,i){if(i){e.classList.add(PICKER_ITEM_ACTIVE_CLASS)}else{e.classList.remove(PICKER_ITEM_ACTIVE_CLASS)}};this.inputModeChange=function(e){if(!i.numericInput){return}var t=e.detail,n=t.useInputMode,r=t.inputModeColumn;var a=r===undefined||r===i.el;if(!n||!a){i.setInputModeActive(false);return}i.setInputModeActive(true)};this.setInputModeActive=function(e){if(i.isScrolling){i.scrollEndCallback=function(){i.isActive=e};return}i.isActive=e};this.initializeScrollListener=function(){var e=isPlatform("ios");var t=i,n=t.el,r=t.scrollEl;var a;var o=i.activeItem;var s=function(){raf((function(){var t;if(!r)return;if(a){clearTimeout(a);a=undefined}if(!i.isScrolling){e&&hapticSelectionStart();i.isScrolling=true}var s=r.getBoundingClientRect();var l=s.x+s.width/2;var c=s.y+s.height/2;var f=n.getRootNode();var d=f instanceof ShadowRoot;var u=d?f:doc;if(u===undefined){return}var p=u.elementsFromPoint(l,c);var h=p.find((function(e){return e.tagName==="ION-PICKER-COLUMN-OPTION"}));if(o!==undefined){i.setPickerItemActiveState(o,false)}if(h===undefined||h.disabled){return}if(h!==o){e&&hapticSelectionChanged();if(i.canExitInputMode){i.exitInputMode()}}o=h;i.setPickerItemActiveState(h,true);if(i.updateValueTextOnScroll){(t=i.assistiveFocusable)===null||t===void 0?void 0:t.setAttribute("aria-valuetext",i.getOptionValueText(h))}a=setTimeout((function(){i.isScrolling=false;i.updateValueTextOnScroll=true;e&&hapticSelectionEnd();var t=i.scrollEndCallback;if(t){t();i.scrollEndCallback=undefined}i.canExitInputMode=true;i.setValue(h.value)}),250)}))};raf((function(){if(!r)return;r.addEventListener("scroll",s);i.destroyScrollListener=function(){r.removeEventListener("scroll",s)}}))};this.exitInputMode=function(){var e=i.parentEl;if(e==null)return;e.exitInputMode();i.el.classList.remove("picker-column-active")};this.findNextOption=function(e){if(e===void 0){e=1}var t=i.activeItem;if(!t)return null;var n=t;var r=t.nextElementSibling;while(r!=null){if(e>0){e--}if(r.tagName==="ION-PICKER-COLUMN-OPTION"&&!r.disabled&&e===0){return r}n=r;r=r.nextElementSibling}return n};this.findPreviousOption=function(e){if(e===void 0){e=1}var t=i.activeItem;if(!t)return null;var n=t;var r=t.previousElementSibling;while(r!=null){if(e>0){e--}if(r.tagName==="ION-PICKER-COLUMN-OPTION"&&!r.disabled&&e===0){return r}n=r;r=r.previousElementSibling}return n};this.onKeyDown=function(e){var t=isPlatform("mobile");var n=null;switch(e.key){case"ArrowDown":n=t?i.findPreviousOption():i.findNextOption();break;case"ArrowUp":n=t?i.findNextOption():i.findPreviousOption();break;case"PageUp":n=t?i.findNextOption(5):i.findPreviousOption(5);break;case"PageDown":n=t?i.findPreviousOption(5):i.findNextOption(5);break;case"Home":n=i.el.querySelector("ion-picker-column-option:first-of-type");break;case"End":n=i.el.querySelector("ion-picker-column-option:last-of-type");break}if(n!==null){i.setValue(n.value);e.preventDefault()}};this.getOptionValueText=function(e){var i;return e?(i=e.getAttribute("aria-label"))!==null&&i!==void 0?i:e.innerText:""};this.renderAssistiveFocusable=function(){var e=i.activeItem;var t=i.getOptionValueText(e);return h("div",{ref:function(e){return i.assistiveFocusable=e},class:"assistive-focusable",role:"slider",tabindex:i.disabled?undefined:0,"aria-label":i.ariaLabel,"aria-valuemin":0,"aria-valuemax":0,"aria-valuenow":0,"aria-valuetext":t,"aria-orientation":"vertical",onKeyDown:function(e){return i.onKeyDown(e)}})};this.ariaLabel=null;this.isActive=false;this.disabled=false;this.value=undefined;this.color="primary";this.numericInput=false}e.prototype.ariaLabelChanged=function(e){this.ariaLabel=e};e.prototype.valueChange=function(){if(this.isColumnVisible){this.scrollActiveItemIntoView(true)}};e.prototype.componentWillLoad=function(){var e=this;var i=this.parentEl=this.el.closest("ion-picker");var t=function(i){var t=i[i.length-1];if(t.isIntersecting){var n=e,r=n.activeItem,a=n.el;e.isColumnVisible=true;var o=getElementRoot(a).querySelector(".".concat(PICKER_ITEM_ACTIVE_CLASS));if(o){e.setPickerItemActiveState(o,false)}e.scrollActiveItemIntoView();if(r){e.setPickerItemActiveState(r,true)}e.initializeScrollListener()}else{e.isColumnVisible=false;if(e.destroyScrollListener){e.destroyScrollListener();e.destroyScrollListener=undefined}}};new IntersectionObserver(t,{threshold:.001,root:this.parentEl}).observe(this.el);if(i!==null){i.addEventListener("ionInputModeChange",(function(i){return e.inputModeChange(i)}))}};e.prototype.componentDidRender=function(){var e=this,i=e.el,t=e.activeItem,n=e.isColumnVisible,r=e.value;if(n&&!t){var a=i.querySelector("ion-picker-column-option");if(a!==null&&a.value!==r){this.setValue(a.value)}}};e.prototype.scrollActiveItemIntoView=function(){return __awaiter(this,arguments,void 0,(function(e){var i;if(e===void 0){e=false}return __generator(this,(function(t){i=this.activeItem;if(i){this.centerPickerItemInView(i,e,false)}return[2]}))}))};e.prototype.setValue=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){if(this.disabled===true||this.value===e){return[2]}this.value=e;this.ionChange.emit({value:e});return[2]}))}))};e.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.assistiveFocusable){this.assistiveFocusable.focus()}return[2]}))}))};e.prototype.connectedCallback=function(){var e;this.ariaLabel=(e=this.el.getAttribute("aria-label"))!==null&&e!==void 0?e:"Select a value"};Object.defineProperty(e.prototype,"activeItem",{get:function(){var e=this;var i=this.value;var t=Array.from(this.el.querySelectorAll("ion-picker-column-option"));return t.find((function(t){if(!e.disabled&&t.disabled){return false}return t.value===i}))},enumerable:false,configurable:true});e.prototype.render=function(){var e;var i=this;var t=this,n=t.color,r=t.disabled,a=t.isActive,o=t.numericInput;var s=getIonTheme(this);return h(Host,{key:"92b4f85a522c700cf57921e6d6a11624278ebefd",class:createColorClasses(n,(e={},e[s]=true,e["picker-column-active"]=a,e["picker-column-numeric-input"]=o,e["picker-column-disabled"]=r,e))},this.renderAssistiveFocusable(),h("slot",{key:"5449cfde6e193873e19d8360098cdf5169e98ec1",name:"prefix"}),h("div",{key:"610d45a012460e67134829869d544ecce5637def","aria-hidden":"true",class:"picker-opts",ref:function(e){i.scrollEl=e},tabIndex:-1},h("div",{key:"60e40a5a079d45f3683f54ccdc85f6ea8e1a5bf1",class:"picker-item-empty","aria-hidden":"true"}," "),h("div",{key:"1ce3808e250dd85b19785d7254b91901e4ee1e9b",class:"picker-item-empty","aria-hidden":"true"}," "),h("div",{key:"8787748214aa707e39d5185452eab881192ae4c4",class:"picker-item-empty","aria-hidden":"true"}," "),h("slot",{key:"4b0d041f0406317733a92d89a358bc079404164f"}),h("div",{key:"8451e58c4fb53d0bbc609938a72a4c2c2c690d50",class:"picker-item-empty","aria-hidden":"true"}," "),h("div",{key:"59f373e32fddaf795f443fd824cae89b5a7c059d",class:"picker-item-empty","aria-hidden":"true"}," "),h("div",{key:"b94c272e21b624e3d36decef4ba538b9d9587906",class:"picker-item-empty","aria-hidden":"true"}," ")),h("slot",{key:"40a7e928d65bc907f58ed92ce9802739ff6df18e",name:"suffix"}))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{"aria-label":["ariaLabelChanged"],value:["valueChange"]}},enumerable:false,configurable:true});return e}();var PICKER_ITEM_ACTIVE_CLASS="option-active";PickerColumn.style=IonPickerColumnStyle0;export{PickerColumn as ion_picker_column};