@ionic/core 8.5.4-dev.11744209290.123af9eb → 8.5.4-dev.11744646756.1244bf71

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 (236) hide show
  1. package/components/data.js +29 -4
  2. package/components/ion-datetime.js +70 -28
  3. package/components/ion-toggle.js +11 -4
  4. package/dist/cjs/{app-globals-Di9ZJzjm.js → app-globals-CSpnImi2.js} +1 -1
  5. package/dist/cjs/{button-active-BlMN9Iyq.js → button-active-BzpKQ5zN.js} +1 -1
  6. package/dist/cjs/{data-DlPf8ZXm.js → data-BQSLLJwc.js} +30 -5
  7. package/dist/cjs/{hardware-back-button-lTgcqUpk.js → hardware-back-button-B0yu2YGK.js} +2 -2
  8. package/dist/cjs/{index-BE9YH63j.js → index-04WNNW0S.js} +5 -5
  9. package/dist/cjs/{index-CquwaYOd.js → index-3N0K8CTt.js} +1 -1
  10. package/dist/cjs/{index-CXThGkw7.js → index-BjVGGb_k.js} +3 -3
  11. package/dist/cjs/{index-rYFHa7ZR.js → index-D7kGM2E_.js} +1 -1
  12. package/dist/cjs/{index-BVfbh2cJ.js → index-qOuhvt-6.js} +18 -1
  13. package/dist/cjs/index.cjs.js +9 -9
  14. package/dist/cjs/{input-shims-DA_nJulF.js → input-shims-B23RZ_yw.js} +4 -4
  15. package/dist/cjs/{input.utils-UHOCoNWM.js → input.utils-BvrpMdKU.js} +1 -1
  16. package/dist/cjs/ion-accordion_2.cjs.entry.js +3 -3
  17. package/dist/cjs/ion-action-sheet.cjs.entry.js +6 -6
  18. package/dist/cjs/ion-alert.cjs.entry.js +6 -6
  19. package/dist/cjs/ion-app_8.cjs.entry.js +9 -9
  20. package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -2
  21. package/dist/cjs/ion-back-button.cjs.entry.js +2 -2
  22. package/dist/cjs/ion-backdrop.cjs.entry.js +2 -2
  23. package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +2 -2
  24. package/dist/cjs/ion-button_2.cjs.entry.js +3 -3
  25. package/dist/cjs/ion-card_5.cjs.entry.js +2 -2
  26. package/dist/cjs/ion-checkbox.cjs.entry.js +2 -2
  27. package/dist/cjs/ion-chip.cjs.entry.js +2 -2
  28. package/dist/cjs/ion-col_3.cjs.entry.js +2 -2
  29. package/dist/cjs/ion-datetime-button.cjs.entry.js +4 -4
  30. package/dist/cjs/ion-datetime_3.cjs.entry.js +75 -34
  31. package/dist/cjs/ion-fab_3.cjs.entry.js +2 -2
  32. package/dist/cjs/ion-img.cjs.entry.js +2 -2
  33. package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +4 -4
  34. package/dist/cjs/ion-input-password-toggle.cjs.entry.js +3 -3
  35. package/dist/cjs/ion-input.cjs.entry.js +4 -4
  36. package/dist/cjs/ion-item-option_3.cjs.entry.js +4 -4
  37. package/dist/cjs/ion-item_8.cjs.entry.js +2 -2
  38. package/dist/cjs/ion-loading.cjs.entry.js +5 -5
  39. package/dist/cjs/ion-menu_3.cjs.entry.js +6 -6
  40. package/dist/cjs/ion-modal.cjs.entry.js +7 -7
  41. package/dist/cjs/ion-nav_2.cjs.entry.js +4 -4
  42. package/dist/cjs/ion-picker-column-option.cjs.entry.js +2 -2
  43. package/dist/cjs/ion-picker-column.cjs.entry.js +2 -2
  44. package/dist/cjs/ion-picker.cjs.entry.js +1 -1
  45. package/dist/cjs/ion-popover.cjs.entry.js +6 -6
  46. package/dist/cjs/ion-progress-bar.cjs.entry.js +2 -2
  47. package/dist/cjs/ion-radio_2.cjs.entry.js +2 -2
  48. package/dist/cjs/ion-range.cjs.entry.js +4 -4
  49. package/dist/cjs/ion-refresher_2.cjs.entry.js +4 -4
  50. package/dist/cjs/ion-reorder_2.cjs.entry.js +4 -4
  51. package/dist/cjs/ion-ripple-effect.cjs.entry.js +2 -2
  52. package/dist/cjs/ion-route_4.cjs.entry.js +2 -2
  53. package/dist/cjs/ion-searchbar.cjs.entry.js +2 -2
  54. package/dist/cjs/ion-segment-content.cjs.entry.js +1 -1
  55. package/dist/cjs/ion-segment-view.cjs.entry.js +1 -1
  56. package/dist/cjs/ion-segment_2.cjs.entry.js +2 -2
  57. package/dist/cjs/ion-select-modal.cjs.entry.js +5 -5
  58. package/dist/cjs/ion-select_3.cjs.entry.js +5 -5
  59. package/dist/cjs/ion-spinner.cjs.entry.js +2 -2
  60. package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
  61. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +2 -2
  62. package/dist/cjs/ion-tab_2.cjs.entry.js +1 -1
  63. package/dist/cjs/ion-text.cjs.entry.js +2 -2
  64. package/dist/cjs/ion-textarea.cjs.entry.js +4 -4
  65. package/dist/cjs/ion-toast.cjs.entry.js +5 -5
  66. package/dist/cjs/ion-toggle.cjs.entry.js +12 -5
  67. package/dist/cjs/{ionic-global-AdqEvgj6.js → ionic-global-D0fKFhpt.js} +1 -1
  68. package/dist/cjs/ionic.cjs.js +5 -5
  69. package/dist/cjs/{ios.transition-B8HcmmPx.js → ios.transition-Cyrk-CkT.js} +4 -4
  70. package/dist/cjs/loader.cjs.js +4 -4
  71. package/dist/cjs/{md.transition-54O0AjJC.js → md.transition-Bh2J94f4.js} +4 -4
  72. package/dist/cjs/{overlays-CSyZW4m0.js → overlays-hvRku41m.js} +3 -3
  73. package/dist/cjs/{status-tap-B1Kcv7yf.js → status-tap-EJ9Sb5hb.js} +4 -4
  74. package/dist/collection/collection-manifest.json +1 -1
  75. package/dist/collection/components/datetime/datetime.ios.css +7 -2
  76. package/dist/collection/components/datetime/datetime.js +87 -26
  77. package/dist/collection/components/datetime/datetime.md.css +9 -3
  78. package/dist/collection/components/datetime/utils/data.js +29 -4
  79. package/dist/collection/components/toggle/toggle.js +11 -3
  80. package/dist/docs.json +26 -2
  81. package/dist/esm/{app-globals-CispSZgz.js → app-globals-C0a0o4Av.js} +1 -1
  82. package/dist/esm/{button-active-D92yWoWC.js → button-active-BQqkZ_sm.js} +1 -1
  83. package/dist/esm/{data-Dq3-TN9Z.js → data-omKWOMer.js} +30 -5
  84. package/dist/esm/{hardware-back-button-CRemSDoj.js → hardware-back-button-RMajLSrZ.js} +2 -2
  85. package/dist/esm/{index-DYJvRcE0.js → index-BKfOgUuW.js} +5 -5
  86. package/dist/esm/{index-DZLiflRE.js → index-C7r3mIlB.js} +3 -3
  87. package/dist/esm/{index-DWiwgv23.js → index-CDohRbVJ.js} +1 -1
  88. package/dist/esm/{index-PfJyigSK.js → index-DR2njD_q.js} +1 -1
  89. package/dist/esm/{index-C5UXyyFe.js → index-EP3pwcdb.js} +18 -1
  90. package/dist/esm/index.js +9 -9
  91. package/dist/esm/{input-shims-BL_oixbH.js → input-shims-Clcc9pEO.js} +4 -4
  92. package/dist/esm/{input.utils-Bd73EHpQ.js → input.utils-BeGXuyDm.js} +1 -1
  93. package/dist/esm/ion-accordion_2.entry.js +3 -3
  94. package/dist/esm/ion-action-sheet.entry.js +6 -6
  95. package/dist/esm/ion-alert.entry.js +6 -6
  96. package/dist/esm/ion-app_8.entry.js +9 -9
  97. package/dist/esm/ion-avatar_3.entry.js +2 -2
  98. package/dist/esm/ion-back-button.entry.js +2 -2
  99. package/dist/esm/ion-backdrop.entry.js +2 -2
  100. package/dist/esm/ion-breadcrumb_2.entry.js +2 -2
  101. package/dist/esm/ion-button_2.entry.js +3 -3
  102. package/dist/esm/ion-card_5.entry.js +2 -2
  103. package/dist/esm/ion-checkbox.entry.js +2 -2
  104. package/dist/esm/ion-chip.entry.js +2 -2
  105. package/dist/esm/ion-col_3.entry.js +2 -2
  106. package/dist/esm/ion-datetime-button.entry.js +4 -4
  107. package/dist/esm/ion-datetime_3.entry.js +75 -34
  108. package/dist/esm/ion-fab_3.entry.js +2 -2
  109. package/dist/esm/ion-img.entry.js +2 -2
  110. package/dist/esm/ion-infinite-scroll_2.entry.js +4 -4
  111. package/dist/esm/ion-input-password-toggle.entry.js +3 -3
  112. package/dist/esm/ion-input.entry.js +4 -4
  113. package/dist/esm/ion-item-option_3.entry.js +4 -4
  114. package/dist/esm/ion-item_8.entry.js +2 -2
  115. package/dist/esm/ion-loading.entry.js +5 -5
  116. package/dist/esm/ion-menu_3.entry.js +6 -6
  117. package/dist/esm/ion-modal.entry.js +7 -7
  118. package/dist/esm/ion-nav_2.entry.js +4 -4
  119. package/dist/esm/ion-picker-column-option.entry.js +2 -2
  120. package/dist/esm/ion-picker-column.entry.js +2 -2
  121. package/dist/esm/ion-picker.entry.js +1 -1
  122. package/dist/esm/ion-popover.entry.js +6 -6
  123. package/dist/esm/ion-progress-bar.entry.js +2 -2
  124. package/dist/esm/ion-radio_2.entry.js +2 -2
  125. package/dist/esm/ion-range.entry.js +4 -4
  126. package/dist/esm/ion-refresher_2.entry.js +4 -4
  127. package/dist/esm/ion-reorder_2.entry.js +4 -4
  128. package/dist/esm/ion-ripple-effect.entry.js +2 -2
  129. package/dist/esm/ion-route_4.entry.js +2 -2
  130. package/dist/esm/ion-searchbar.entry.js +2 -2
  131. package/dist/esm/ion-segment-content.entry.js +1 -1
  132. package/dist/esm/ion-segment-view.entry.js +1 -1
  133. package/dist/esm/ion-segment_2.entry.js +2 -2
  134. package/dist/esm/ion-select-modal.entry.js +5 -5
  135. package/dist/esm/ion-select_3.entry.js +5 -5
  136. package/dist/esm/ion-spinner.entry.js +2 -2
  137. package/dist/esm/ion-split-pane.entry.js +2 -2
  138. package/dist/esm/ion-tab-bar_2.entry.js +2 -2
  139. package/dist/esm/ion-tab_2.entry.js +1 -1
  140. package/dist/esm/ion-text.entry.js +2 -2
  141. package/dist/esm/ion-textarea.entry.js +4 -4
  142. package/dist/esm/ion-toast.entry.js +5 -5
  143. package/dist/esm/ion-toggle.entry.js +12 -5
  144. package/dist/esm/{ionic-global-GkM1xiqt.js → ionic-global-CrB2BPUW.js} +1 -1
  145. package/dist/esm/ionic.js +6 -6
  146. package/dist/esm/{ios.transition-BcTzvx5_.js → ios.transition-BObaMu_w.js} +4 -4
  147. package/dist/esm/loader.js +5 -5
  148. package/dist/esm/{md.transition-DYGWIgPE.js → md.transition-BYk9oj5T.js} +4 -4
  149. package/dist/esm/{overlays-BuSzwtlC.js → overlays-DUDTB6a2.js} +3 -3
  150. package/dist/esm/{status-tap-BPk7Ddsi.js → status-tap-Az5SFsVV.js} +4 -4
  151. package/dist/html.html-data.json +4 -0
  152. package/dist/ionic/index.esm.js +1 -1
  153. package/dist/ionic/ionic.esm.js +1 -1
  154. package/dist/ionic/{p-49b72347.entry.js → p-006975c7.entry.js} +1 -1
  155. package/dist/ionic/{p-e01503b2.entry.js → p-00acbe36.entry.js} +1 -1
  156. package/dist/ionic/p-03abd858.entry.js +4 -0
  157. package/dist/ionic/{p-6a8928b1.entry.js → p-141822bc.entry.js} +1 -1
  158. package/dist/ionic/p-17e8ff6b.entry.js +4 -0
  159. package/dist/ionic/{p-879a7b00.entry.js → p-189c7fe9.entry.js} +1 -1
  160. package/dist/ionic/{p-72d7dd7c.entry.js → p-18b4709f.entry.js} +1 -1
  161. package/dist/ionic/{p-171d5d3e.entry.js → p-1bea6291.entry.js} +1 -1
  162. package/dist/ionic/{p-9ca05f27.entry.js → p-1f3d9d38.entry.js} +1 -1
  163. package/dist/ionic/{p-9d8be89a.entry.js → p-20b45b04.entry.js} +1 -1
  164. package/dist/ionic/{p-7deacfed.entry.js → p-2959ef70.entry.js} +1 -1
  165. package/dist/ionic/{p-ccbc5737.entry.js → p-2b9a91c2.entry.js} +1 -1
  166. package/dist/ionic/{p-a8506291.entry.js → p-2c58164d.entry.js} +1 -1
  167. package/dist/ionic/{p-6d4f1c6e.entry.js → p-2d142503.entry.js} +1 -1
  168. package/dist/ionic/{p-930ec949.entry.js → p-3129a2c6.entry.js} +1 -1
  169. package/dist/ionic/{p-3628b1f7.entry.js → p-3a5bc7b1.entry.js} +1 -1
  170. package/dist/ionic/{p-b3485dee.entry.js → p-40e55257.entry.js} +1 -1
  171. package/dist/ionic/{p-841761ee.entry.js → p-45f3c7d9.entry.js} +1 -1
  172. package/dist/ionic/{p-6f5d9223.entry.js → p-46f82b82.entry.js} +1 -1
  173. package/dist/ionic/p-47ccb59d.entry.js +4 -0
  174. package/dist/ionic/{p-9d7d6758.entry.js → p-4bd5bd61.entry.js} +1 -1
  175. package/dist/ionic/{p-414f60f0.entry.js → p-52043361.entry.js} +1 -1
  176. package/dist/ionic/{p-8ca2b22c.entry.js → p-527660e0.entry.js} +1 -1
  177. package/dist/ionic/{p-2a2ab89d.entry.js → p-601f0d27.entry.js} +1 -1
  178. package/dist/ionic/{p-ddc1c497.entry.js → p-644759cb.entry.js} +1 -1
  179. package/dist/ionic/{p-c0634ff3.entry.js → p-657e9085.entry.js} +1 -1
  180. package/dist/ionic/{p-10f11601.entry.js → p-67178c9b.entry.js} +1 -1
  181. package/dist/ionic/{p-a1581941.entry.js → p-67b4c53d.entry.js} +1 -1
  182. package/dist/ionic/p-6cab60b7.entry.js +4 -0
  183. package/dist/ionic/{p-92aed080.entry.js → p-6ceef433.entry.js} +1 -1
  184. package/dist/ionic/{p-85d22d84.entry.js → p-6d8983d1.entry.js} +1 -1
  185. package/dist/ionic/{p-10e11b67.entry.js → p-79851759.entry.js} +1 -1
  186. package/dist/ionic/{p-d3ee5846.entry.js → p-7cdee842.entry.js} +1 -1
  187. package/dist/ionic/{p-52eca165.entry.js → p-7d026411.entry.js} +1 -1
  188. package/dist/ionic/{p-a3ec5708.entry.js → p-7d4b2506.entry.js} +1 -1
  189. package/dist/ionic/{p-fc3eb210.entry.js → p-8b6eb546.entry.js} +1 -1
  190. package/dist/ionic/{p-d7a76cd0.entry.js → p-8fc1959d.entry.js} +1 -1
  191. package/dist/ionic/{p-261e3a47.entry.js → p-9092b7fb.entry.js} +1 -1
  192. package/dist/ionic/{p-b8a159eb.entry.js → p-9cac4dc7.entry.js} +1 -1
  193. package/dist/ionic/{p-06d06c2f.entry.js → p-9fe56809.entry.js} +1 -1
  194. package/dist/ionic/{p-CeCT60rb.js → p-C-oNjncL.js} +1 -1
  195. package/dist/ionic/{p-B1sP_kPm.js → p-C-xl6pej.js} +1 -1
  196. package/dist/ionic/p-C5Aon1Kb.js +4 -0
  197. package/dist/ionic/{p-CdKu7oC9.js → p-Cg19OPuo.js} +1 -1
  198. package/dist/ionic/{p-CdWpy93z.js → p-CwbsDRzJ.js} +1 -1
  199. package/dist/ionic/p-D0SqsSaH.js +4 -0
  200. package/dist/ionic/p-DCi8BSH3.js +4 -0
  201. package/dist/ionic/{p-BTEIaRld.js → p-DGw3g412.js} +1 -1
  202. package/dist/ionic/{p-lw61HGQ-.js → p-DSMkBmnY.js} +1 -1
  203. package/dist/ionic/{p-B3UoCFcu.js → p-D_2UPtUV.js} +1 -1
  204. package/dist/ionic/{p-CiN6q3Lh.js → p-DonNC93r.js} +1 -1
  205. package/dist/ionic/p-EP3pwcdb.js +5 -0
  206. package/dist/ionic/{p-XWSYNdC9.js → p-HRylM0tf.js} +1 -1
  207. package/dist/ionic/{p-C3eOXAUO.js → p-RyPJq84W.js} +1 -1
  208. package/dist/ionic/{p-B8iLKNde.js → p-Uz6zKimy.js} +1 -1
  209. package/dist/ionic/{p-210385cd.entry.js → p-a5570370.entry.js} +1 -1
  210. package/dist/ionic/{p-2469206a.entry.js → p-a5ee3eb8.entry.js} +1 -1
  211. package/dist/ionic/{p-a951373a.entry.js → p-a92657fc.entry.js} +1 -1
  212. package/dist/ionic/{p-d6a3361a.entry.js → p-a9997b1b.entry.js} +1 -1
  213. package/dist/ionic/{p-d85dfc51.entry.js → p-b1f3c158.entry.js} +1 -1
  214. package/dist/ionic/{p-a1767652.entry.js → p-be19e061.entry.js} +1 -1
  215. package/dist/ionic/{p-49419ffd.entry.js → p-c5157026.entry.js} +1 -1
  216. package/dist/ionic/{p-bb3cf0f1.entry.js → p-c6e0f544.entry.js} +1 -1
  217. package/dist/ionic/{p-2f416d26.entry.js → p-e116bb40.entry.js} +1 -1
  218. package/dist/ionic/{p-75959e43.entry.js → p-e8526b09.entry.js} +1 -1
  219. package/dist/ionic/{p-dcf2e017.entry.js → p-f1f6326a.entry.js} +1 -1
  220. package/dist/ionic/{p-B61pJgh5.js → p-uzIBoXdl.js} +1 -1
  221. package/dist/types/components/datetime/datetime-interface.d.ts +1 -0
  222. package/dist/types/components/datetime/datetime.d.ts +6 -0
  223. package/dist/types/components/datetime/utils/data.d.ts +3 -1
  224. package/dist/types/components/datetime/utils/manipulation.d.ts +1 -0
  225. package/dist/types/components.d.ts +8 -0
  226. package/hydrate/index.js +143 -39
  227. package/hydrate/index.mjs +143 -39
  228. package/package.json +2 -2
  229. package/dist/ionic/p-3bd766ca.entry.js +0 -4
  230. package/dist/ionic/p-76878c5f.entry.js +0 -4
  231. package/dist/ionic/p-8e57bbf1.entry.js +0 -4
  232. package/dist/ionic/p-BwAZiDRk.js +0 -4
  233. package/dist/ionic/p-C5UXyyFe.js +0 -5
  234. package/dist/ionic/p-DYo1kLGy.js +0 -4
  235. package/dist/ionic/p-f9c55d46.entry.js +0 -4
  236. package/dist/ionic/p-zEz12j4K.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{a as e}from"./p-CeCT60rb.js";const t=(e,t)=>e.month===t.month&&e.day===t.day&&e.year===t.year,n=(e,t)=>!!(e.year<t.year||e.year===t.year&&e.month<t.month||e.year===t.year&&e.month===t.month&&null!==e.day&&e.day<t.day),o=(e,t)=>!!(e.year>t.year||e.year===t.year&&e.month>t.month||e.year===t.year&&e.month===t.month&&null!==e.day&&e.day>t.day),r=(t,r,a)=>{const i=Array.isArray(t)?t:[t];for(const d of i)if(void 0!==r&&n(d,r)||void 0!==a&&o(d,a)){e(`The value provided to ion-datetime is out of bounds.\n\nMin: ${JSON.stringify(r)}\nMax: ${JSON.stringify(a)}\nValue: ${JSON.stringify(t)}`);break}},a=(e,t)=>{if(void 0!==t)return t;const n=new Intl.DateTimeFormat(e,{hour:"numeric"}),o=n.resolvedOptions();if(void 0!==o.hourCycle)return o.hourCycle;const r=new Date("5/18/2021 00:00"),a=n.formatToParts(r).find((e=>"hour"===e.type));if(!a)throw new Error("Hour value not found from DateTimeFormat");switch(a.value){case"0":return"h11";case"12":return"h12";case"00":return"h23";case"24":return"h24";default:throw new Error(`Invalid hour cycle "${t}"`)}},i=e=>"h23"===e||"h24"===e,d=(e,t)=>4===e||6===e||9===e||11===e?30:2===e?(e=>e%4==0&&e%100!=0||e%400==0)(t)?29:28:31,u=(e,t={month:"numeric",year:"numeric"})=>"month"===new Intl.DateTimeFormat(e,t).formatToParts(new Date)[0].type,l=e=>"dayPeriod"===new Intl.DateTimeFormat(e,{hour:"numeric"}).formatToParts(new Date)[0].type,s=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,c=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,v=e=>{if(void 0===e)return;let t,n=e;return"string"==typeof e&&(n=e.replace(/\[|\]|\s/g,"").split(",")),t=Array.isArray(n)?n.map((e=>parseInt(e,10))).filter(isFinite):[n],t},m=e=>({month:parseInt(e.getAttribute("data-month"),10),day:parseInt(e.getAttribute("data-day"),10),year:parseInt(e.getAttribute("data-year"),10),dayOfWeek:parseInt(e.getAttribute("data-day-of-week"),10)});function y(t){if(Array.isArray(t)){const e=[];for(const n of t){const t=y(n);if(!t)return;e.push(t)}return e}let n=null;if(null!=t&&""!==t&&(n=c.exec(t),n?(n.unshift(void 0,void 0),n[2]=n[3]=void 0):n=s.exec(t)),null!==n){for(let e=1;e<8;e++)n[e]=void 0!==n[e]?parseInt(n[e],10):void 0;return{year:n[1],month:n[2],day:n[3],hour:n[4],minute:n[5],ampm:n[4]<12?"am":"pm"}}e(`Unable to parse date string: ${t}. Please provide a valid ISO 8601 datetime string.`)}const h=(e,t,r)=>t&&n(e,t)?t:r&&o(e,r)?r:e,f=e=>e>=12?"pm":"am",w=(e,t)=>{const n=y(e);if(void 0===n)return;const{month:o,day:r,year:a,hour:i,minute:u}=n,l=null!=a?a:t.year,s=null!=o?o:12;return{month:s,day:null!=r?r:d(s,l),year:l,hour:null!=i?i:23,minute:null!=u?u:59}},O=(e,t)=>{const n=y(e);if(void 0===n)return;const{month:o,day:r,year:a,hour:i,minute:d}=n;return{month:null!=o?o:1,day:null!=r?r:1,year:null!=a?a:t.year,hour:null!=i?i:0,minute:null!=d?d:0}},$=e=>("0"+(void 0!==e?Math.abs(e):"0")).slice(-2);function p(e){if(Array.isArray(e))return e.map((e=>p(e)));let t="";var n;return void 0!==e.year?(t=("000"+(void 0!==(n=e.year)?Math.abs(n):"0")).slice(-4),void 0!==e.month&&(t+="-"+$(e.month),void 0!==e.day&&(t+="-"+$(e.day),void 0!==e.hour&&(t+=`T${$(e.hour)}:${$(e.minute)}:00`)))):void 0!==e.hour&&(t=$(e.hour)+":"+$(e.minute)),t}const b=(e,t)=>void 0===t?e:"am"===t?12===e?0:e:12===e?12:e+12,I=e=>{const{dayOfWeek:t}=e;if(null==t)throw new Error("No day of week provided");return C(e,t)},j=e=>{const{dayOfWeek:t}=e;if(null==t)throw new Error("No day of week provided");return M(e,6-t)},T=e=>M(e,1),D=e=>C(e,1),k=e=>C(e,7),x=e=>M(e,7),C=(e,t)=>{const{month:n,day:o,year:r}=e;if(null===o)throw new Error("No day provided");const a={month:n,day:o,year:r};if(a.day=o-t,a.day<1&&(a.month-=1),a.month<1&&(a.month=12,a.year-=1),a.day<1){const e=d(a.month,a.year);a.day=e+a.day}return a},M=(e,t)=>{const{month:n,day:o,year:r}=e;if(null===o)throw new Error("No day provided");const a={month:n,day:o,year:r},i=d(n,r);return a.day=o+t,a.day>i&&(a.day-=i,a.month+=1),a.month>12&&(a.month=1,a.year+=1),a},Z=e=>{const t=1===e.month?12:e.month-1,n=1===e.month?e.year-1:e.year,o=d(t,n);return{month:t,year:n,day:o<e.day?o:e.day}},U=e=>{const t=12===e.month?1:e.month+1,n=12===e.month?e.year+1:e.year,o=d(t,n);return{month:t,year:n,day:o<e.day?o:e.day}},g=(e,t)=>{const n=e.month,o=e.year+t,r=d(n,o);return{month:n,year:o,day:r<e.day?r:e.day}},E=e=>g(e,-1),N=e=>g(e,1),P=(e,t,n)=>t?e:b(e,n),A=(e,t)=>{const{ampm:n,hour:o}=e;let r=o;return"am"===n&&"pm"===t?r=b(r,"pm"):"pm"===n&&"am"===t&&(r=Math.abs(r-12)),r},G=(e,n,o)=>{const{month:r,day:a,year:i}=e,u=h(Object.assign({},e),n,o),l=d(r,i);return null!==a&&l<a&&(u.day=l),void 0!==n&&t(u,n)&&void 0!==u.hour&&void 0!==n.hour&&(u.hour<n.hour?(u.hour=n.hour,u.minute=n.minute):u.hour===n.hour&&void 0!==u.minute&&void 0!==n.minute&&u.minute<n.minute&&(u.minute=n.minute)),void 0!==o&&t(e,o)&&void 0!==u.hour&&void 0!==o.hour&&(u.hour>o.hour?(u.hour=o.hour,u.minute=o.minute):u.hour===o.hour&&void 0!==u.minute&&void 0!==o.minute&&u.minute>o.minute&&(u.minute=o.minute)),u},V=({refParts:e,monthValues:r,dayValues:a,yearValues:i,hourValues:d,minuteValues:u,minParts:l,maxParts:s})=>{const{hour:c,minute:v,day:m,month:y,year:h}=e,w=Object.assign(Object.assign({},e),{dayOfWeek:void 0});if(void 0!==i){const e=i.filter((e=>!(void 0!==l&&e<l.year||void 0!==s&&e>s.year)));w.year=W(h,e)}if(void 0!==r){const e=r.filter((e=>!(void 0!==l&&w.year===l.year&&e<l.month||void 0!==s&&w.year===s.year&&e>s.month)));w.month=W(y,e)}if(null!==m&&void 0!==a){const e=a.filter((e=>!(void 0!==l&&n(Object.assign(Object.assign({},w),{day:e}),l)||void 0!==s&&o(Object.assign(Object.assign({},w),{day:e}),s))));w.day=W(m,e)}if(void 0!==c&&void 0!==d){const e=d.filter((e=>!(void 0!==(null==l?void 0:l.hour)&&t(w,l)&&e<l.hour||void 0!==(null==s?void 0:s.hour)&&t(w,s)&&e>s.hour)));w.hour=W(c,e),w.ampm=f(w.hour)}if(void 0!==v&&void 0!==u){const e=u.filter((e=>!(void 0!==(null==l?void 0:l.minute)&&t(w,l)&&w.hour===l.hour&&e<l.minute||void 0!==(null==s?void 0:s.minute)&&t(w,s)&&w.hour===s.hour&&e>s.minute)));w.minute=W(v,e)}return w},W=(e,t)=>{let n=t[0],o=Math.abs(n-e);for(let r=1;r<t.length;r++){const a=t[r],i=Math.abs(a-e);i<o&&(n=a,o=i)}return n},F=e=>Object.assign(Object.assign({},e),{timeZone:"UTC",timeZoneName:void 0}),J=(e,t,n,o={hour:"numeric",minute:"numeric"})=>{const r={hour:t.hour,minute:t.minute};return void 0===r.hour||void 0===r.minute?"Invalid Time":new Intl.DateTimeFormat(e,Object.assign(Object.assign({},F(o)),{hourCycle:n})).format(new Date(p(Object.assign({year:2023,day:1,month:1},r))+"Z"))},S=e=>{const t=e.toString();return t.length>1?t:`0${t}`},H=(e,t)=>{if(0===e)switch(t){case"h11":return"0";case"h12":return"12";case"h23":return"00";case"h24":return"24";default:throw new Error(`Invalid hour cycle "${t}"`)}return i(t)?S(e):e.toString()},R=(e,t,n)=>{if(null===n.day)return null;const o=K(n),r=new Intl.DateTimeFormat(e,{weekday:"long",month:"long",day:"numeric",timeZone:"UTC"}).format(o);return t?`Today, ${r}`:r},q=(e,t)=>{const n=K(t);return new Intl.DateTimeFormat(e,{month:"long",year:"numeric",timeZone:"UTC"}).format(n)},z=(e,t)=>Q(e,t,{day:"numeric"}).find((e=>"day"===e.type)).value,B=(e,t)=>L(e,t,{year:"numeric"}),K=e=>{var t,n,o;return new Date(`${null!==(t=e.month)&&void 0!==t?t:1}/${null!==(n=e.day)&&void 0!==n?n:1}/${null!==(o=e.year)&&void 0!==o?o:2023}${void 0!==e.hour&&void 0!==e.minute?` ${e.hour}:${e.minute}`:""} GMT+0000`)},L=(e,t,n)=>{const o=K(t);return X(e,F(n)).format(o)},Q=(e,t,n)=>{const o=K(t);return X(e,n).formatToParts(o)},X=(e,t)=>new Intl.DateTimeFormat(e,Object.assign(Object.assign({},t),{timeZone:"UTC"})),Y=e=>{if("RelativeTimeFormat"in Intl){const t=new Intl.RelativeTimeFormat(e,{numeric:"auto"}).format(0,"day");return t.charAt(0).toUpperCase()+t.slice(1)}return"Today"},_=e=>{const t=e.getTimezoneOffset();return e.setMinutes(e.getMinutes()-t),e},ee=_(new Date("2022T01:00")),te=_(new Date("2022T13:00")),ne=(e,t)=>{const n="am"===t?ee:te,o=new Intl.DateTimeFormat(e,{hour:"numeric",timeZone:"UTC"}).formatToParts(n).find((e=>"dayPeriod"===e.type));return o?o.value:(e=>void 0===e?"":e.toUpperCase())(t)},oe=e=>Array.isArray(e)?e.join(","):e,re=()=>_(new Date).toISOString(),ae=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59],ie=[0,1,2,3,4,5,6,7,8,9,10,11],de=[0,1,2,3,4,5,6,7,8,9,10,11],ue=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],le=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,0],se=(e,t,n=0)=>{const o=new Intl.DateTimeFormat(e,{weekday:"ios"===t?"short":"narrow"}),r=new Date("11/01/2020"),a=[];for(let e=n;e<n+7;e++){const t=new Date(r);t.setDate(t.getDate()+e),a.push(o.format(t))}return a},ce=(e,t,n)=>{const o=d(e,t),r=new Date(`${e}/1/${t}`).getDay(),a=r>=n?r-(n+1):6-(n-r);let i=[];for(let e=1;e<=o;e++)i.push({day:e,dayOfWeek:(a+e)%7});for(let e=0;e<=a;e++)i=[{day:null,dayOfWeek:null},...i];return i},ve=(e,r,d="h12",u,l,s,c)=>{const v=a(e,d),m=i(v);let y=(e=>{switch(e){case"h11":return ie;case"h12":return de;case"h23":return ue;case"h24":return le;default:throw new Error(`Invalid hour cycle "${e}"`)}})(v),h=ae,f=!0,w=!0;if(s&&(y=y.filter((e=>s.includes(e)))),c&&(h=h.filter((e=>c.includes(e)))),u)if(t(r,u)){if(void 0!==u.hour&&(y=y.filter((e=>(m?e:"pm"===r.ampm?(e+12)%24:e)>=u.hour)),f=u.hour<13),void 0!==u.minute){let e=!1;void 0!==u.hour&&void 0!==r.hour&&r.hour>u.hour&&(e=!0),h=h.filter((t=>!!e||t>=u.minute))}}else n(r,u)&&(y=[],h=[],f=w=!1);return l&&(t(r,l)?(void 0!==l.hour&&(y=y.filter((e=>(m?e:"pm"===r.ampm?(e+12)%24:e)<=l.hour)),w=l.hour>=12),void 0!==l.minute&&r.hour===l.hour&&(h=h.filter((e=>e<=l.minute)))):o(r,l)&&(y=[],h=[],f=w=!1)),{hours:y,minutes:h,am:f,pm:w}},me=(e,t)=>{const o={month:e.month,year:e.year,day:e.day};if(void 0!==t&&(e.month!==t.month||e.year!==t.year)){const r={month:t.month,year:t.year,day:t.day};return n(r,o)?[r,o,U(e)]:[Z(e),o,r]}return[Z(e),o,U(e)]},ye=(e,t,n,o,r,a={month:"long"})=>{const{year:i}=t,d=[];if(void 0!==r){let t=r;void 0!==(null==o?void 0:o.month)&&(t=t.filter((e=>e<=o.month))),void 0!==(null==n?void 0:n.month)&&(t=t.filter((e=>e>=n.month))),t.forEach((t=>{const n=new Date(`${t}/1/${i} GMT+0000`),o=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(n);d.push({text:o,value:t})}))}else{const t=o&&o.year===i?o.month:12;for(let o=n&&n.year===i?n.month:1;o<=t;o++){const t=new Date(`${o}/1/${i} GMT+0000`),n=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(t);d.push({text:n,value:o})}}return d},he=(e,t,n,o,r,a={day:"numeric"})=>{const{month:i,year:u}=t,l=[],s=d(i,u),c=null!=(null==o?void 0:o.day)&&o.year===u&&o.month===i?o.day:s,v=null!=(null==n?void 0:n.day)&&n.year===u&&n.month===i?n.day:1;if(void 0!==r){let t=r;t=t.filter((e=>e>=v&&e<=c)),t.forEach((t=>{const n=new Date(`${i}/${t}/${u} GMT+0000`),o=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(n);l.push({text:o,value:t})}))}else for(let t=v;t<=c;t++){const n=new Date(`${i}/${t}/${u} GMT+0000`),o=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(n);l.push({text:o,value:t})}return l},fe=(e,t,n,o,r)=>{var a,i;let d=[];if(void 0!==r)d=r,void 0!==(null==o?void 0:o.year)&&(d=d.filter((e=>e<=o.year))),void 0!==(null==n?void 0:n.year)&&(d=d.filter((e=>e>=n.year)));else{const{year:e}=t,r=null!==(a=null==o?void 0:o.year)&&void 0!==a?a:e;for(let t=null!==(i=null==n?void 0:n.year)&&void 0!==i?i:e-100;t<=r;t++)d.push(t)}return d.map((n=>({text:B(e,{year:n,month:t.month,day:t.day}),value:n})))},we=(e,t)=>e.month===t.month&&e.year===t.year?[e]:[e,...we(U(e),t)],Oe=(e,n,o,r,a,i)=>{let d=[],u=[],l=we(o,r);return i&&(l=l.filter((({month:e})=>i.includes(e)))),l.forEach((i=>{const l={month:i.month,day:null,year:i.year},s=he(e,l,o,r,a,{month:"short",day:"numeric",weekday:"short"}),c=[],v=[];s.forEach((o=>{const r=t(Object.assign(Object.assign({},l),{day:o.value}),n);v.push({text:r?Y(e):o.text,value:`${l.year}-${l.month}-${o.value}`}),c.push({month:l.month,year:l.year,day:o.value})})),u=[...u,...c],d=[...d,...v]})),{parts:u,items:d}},$e=(e,t,n,o,r,d,u)=>{const l=a(e,n),s=i(l),{hours:c,minutes:v,am:m,pm:y}=ve(e,t,l,o,r,d,u),h=c.map((e=>({text:H(e,l),value:P(e,s,t.ampm)}))),f=v.map((e=>({text:S(e),value:e}))),w=[];return m&&!s&&w.push({text:ne(e,"am"),value:"am"}),y&&!s&&w.push({text:ne(e,"pm"),value:"pm"}),{minutesData:f,hoursData:h,dayPeriodData:w}};export{V as A,me as B,d as C,Oe as D,ye as E,he as F,fe as G,u as H,$e as I,l as J,A as K,se as L,q as M,ce as N,a as O,J as P,L as Q,oe as R,o as a,U as b,t as c,z as d,R as e,m as f,Z as g,N as h,n as i,E as j,j as k,I as l,D as m,T as n,k as o,x as p,O as q,w as r,y as s,f as t,h as u,G as v,r as w,v as x,p as y,re as z}
4
+ import{a as e}from"./p-C-oNjncL.js";const t=(e,t)=>e.month===t.month&&e.day===t.day&&e.year===t.year,n=(e,t)=>!!(e.year<t.year||e.year===t.year&&e.month<t.month||e.year===t.year&&e.month===t.month&&null!==e.day&&e.day<t.day),o=(e,t)=>!!(e.year>t.year||e.year===t.year&&e.month>t.month||e.year===t.year&&e.month===t.month&&null!==e.day&&e.day>t.day),r=(t,r,a)=>{const i=Array.isArray(t)?t:[t];for(const d of i)if(void 0!==r&&n(d,r)||void 0!==a&&o(d,a)){e(`The value provided to ion-datetime is out of bounds.\n\nMin: ${JSON.stringify(r)}\nMax: ${JSON.stringify(a)}\nValue: ${JSON.stringify(t)}`);break}},a=(e,t)=>{if(void 0!==t)return t;const n=new Intl.DateTimeFormat(e,{hour:"numeric"}),o=n.resolvedOptions();if(void 0!==o.hourCycle)return o.hourCycle;const r=new Date("5/18/2021 00:00"),a=n.formatToParts(r).find((e=>"hour"===e.type));if(!a)throw new Error("Hour value not found from DateTimeFormat");switch(a.value){case"0":return"h11";case"12":return"h12";case"00":return"h23";case"24":return"h24";default:throw new Error(`Invalid hour cycle "${t}"`)}},i=e=>"h23"===e||"h24"===e,d=(e,t)=>4===e||6===e||9===e||11===e?30:2===e?(e=>e%4==0&&e%100!=0||e%400==0)(t)?29:28:31,u=(e,t={month:"numeric",year:"numeric"})=>"month"===new Intl.DateTimeFormat(e,t).formatToParts(new Date)[0].type,l=e=>"dayPeriod"===new Intl.DateTimeFormat(e,{hour:"numeric"}).formatToParts(new Date)[0].type,s=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,c=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,v=e=>{if(void 0===e)return;let t,n=e;return"string"==typeof e&&(n=e.replace(/\[|\]|\s/g,"").split(",")),t=Array.isArray(n)?n.map((e=>parseInt(e,10))).filter(isFinite):[n],t},m=e=>({month:parseInt(e.getAttribute("data-month"),10),day:parseInt(e.getAttribute("data-day"),10),year:parseInt(e.getAttribute("data-year"),10),dayOfWeek:parseInt(e.getAttribute("data-day-of-week"),10)});function y(t){if(Array.isArray(t)){const e=[];for(const n of t){const t=y(n);if(!t)return;e.push(t)}return e}let n=null;if(null!=t&&""!==t&&(n=c.exec(t),n?(n.unshift(void 0,void 0),n[2]=n[3]=void 0):n=s.exec(t)),null!==n){for(let e=1;e<8;e++)n[e]=void 0!==n[e]?parseInt(n[e],10):void 0;return{year:n[1],month:n[2],day:n[3],hour:n[4],minute:n[5],ampm:n[4]<12?"am":"pm"}}e(`Unable to parse date string: ${t}. Please provide a valid ISO 8601 datetime string.`)}const h=(e,t,r)=>t&&n(e,t)?t:r&&o(e,r)?r:e,f=e=>e>=12?"pm":"am",w=(e,t)=>{const n=y(e);if(void 0===n)return;const{month:o,day:r,year:a,hour:i,minute:u}=n,l=null!=a?a:t.year,s=null!=o?o:12;return{month:s,day:null!=r?r:d(s,l),year:l,hour:null!=i?i:23,minute:null!=u?u:59}},O=(e,t)=>{const n=y(e);if(void 0===n)return;const{month:o,day:r,year:a,hour:i,minute:d}=n;return{month:null!=o?o:1,day:null!=r?r:1,year:null!=a?a:t.year,hour:null!=i?i:0,minute:null!=d?d:0}},$=e=>("0"+(void 0!==e?Math.abs(e):"0")).slice(-2);function p(e){if(Array.isArray(e))return e.map((e=>p(e)));let t="";var n;return void 0!==e.year?(t=("000"+(void 0!==(n=e.year)?Math.abs(n):"0")).slice(-4),void 0!==e.month&&(t+="-"+$(e.month),void 0!==e.day&&(t+="-"+$(e.day),void 0!==e.hour&&(t+=`T${$(e.hour)}:${$(e.minute)}:00`)))):void 0!==e.hour&&(t=$(e.hour)+":"+$(e.minute)),t}const j=(e,t)=>void 0===t?e:"am"===t?12===e?0:e:12===e?12:e+12,b=e=>{const{dayOfWeek:t}=e;if(null==t)throw new Error("No day of week provided");return M(e,t)},I=e=>{const{dayOfWeek:t}=e;if(null==t)throw new Error("No day of week provided");return Z(e,6-t)},D=e=>Z(e,1),T=e=>M(e,1),k=e=>M(e,7),x=e=>Z(e,7),M=(e,t)=>{const{month:n,day:o,year:r}=e;if(null===o)throw new Error("No day provided");const a={month:n,day:o,year:r};if(a.day=o-t,a.day<1&&(a.month-=1),a.month<1&&(a.month=12,a.year-=1),a.day<1){const e=d(a.month,a.year);a.day=e+a.day}return a},Z=(e,t)=>{const{month:n,day:o,year:r}=e;if(null===o)throw new Error("No day provided");const a={month:n,day:o,year:r},i=d(n,r);return a.day=o+t,a.day>i&&(a.day-=i,a.month+=1),a.month>12&&(a.month=1,a.year+=1),a},C=e=>{const t=1===e.month?12:e.month-1,n=1===e.month?e.year-1:e.year,o=d(t,n);return{month:t,year:n,day:o<e.day?o:e.day}},A=e=>{const t=12===e.month?1:e.month+1,n=12===e.month?e.year+1:e.year,o=d(t,n);return{month:t,year:n,day:o<e.day?o:e.day}},N=(e,t)=>{const n=e.month,o=e.year+t,r=d(n,o);return{month:n,year:o,day:r<e.day?r:e.day}},U=e=>N(e,-1),g=e=>N(e,1),E=(e,t,n)=>t?e:j(e,n),P=(e,t)=>{const{ampm:n,hour:o}=e;let r=o;return"am"===n&&"pm"===t?r=j(r,"pm"):"pm"===n&&"am"===t&&(r=Math.abs(r-12)),r},W=(e,n,o)=>{const{month:r,day:a,year:i}=e,u=h(Object.assign({},e),n,o),l=d(r,i);return null!==a&&l<a&&(u.day=l),void 0!==n&&t(u,n)&&void 0!==u.hour&&void 0!==n.hour&&(u.hour<n.hour?(u.hour=n.hour,u.minute=n.minute):u.hour===n.hour&&void 0!==u.minute&&void 0!==n.minute&&u.minute<n.minute&&(u.minute=n.minute)),void 0!==o&&t(e,o)&&void 0!==u.hour&&void 0!==o.hour&&(u.hour>o.hour?(u.hour=o.hour,u.minute=o.minute):u.hour===o.hour&&void 0!==u.minute&&void 0!==o.minute&&u.minute>o.minute&&(u.minute=o.minute)),u},G=({refParts:e,monthValues:r,dayValues:a,yearValues:i,hourValues:d,minuteValues:u,minParts:l,maxParts:s})=>{const{hour:c,minute:v,day:m,month:y,year:h}=e,w=Object.assign(Object.assign({},e),{dayOfWeek:void 0});if(void 0!==i){const e=i.filter((e=>!(void 0!==l&&e<l.year||void 0!==s&&e>s.year)));w.year=V(h,e)}if(void 0!==r){const e=r.filter((e=>!(void 0!==l&&w.year===l.year&&e<l.month||void 0!==s&&w.year===s.year&&e>s.month)));w.month=V(y,e)}if(null!==m&&void 0!==a){const e=a.filter((e=>!(void 0!==l&&n(Object.assign(Object.assign({},w),{day:e}),l)||void 0!==s&&o(Object.assign(Object.assign({},w),{day:e}),s))));w.day=V(m,e)}if(void 0!==c&&void 0!==d){const e=d.filter((e=>!(void 0!==(null==l?void 0:l.hour)&&t(w,l)&&e<l.hour||void 0!==(null==s?void 0:s.hour)&&t(w,s)&&e>s.hour)));w.hour=V(c,e),w.ampm=f(w.hour)}if(void 0!==v&&void 0!==u){const e=u.filter((e=>!(void 0!==(null==l?void 0:l.minute)&&t(w,l)&&w.hour===l.hour&&e<l.minute||void 0!==(null==s?void 0:s.minute)&&t(w,s)&&w.hour===s.hour&&e>s.minute)));w.minute=V(v,e)}return w},V=(e,t)=>{let n=t[0],o=Math.abs(n-e);for(let r=1;r<t.length;r++){const a=t[r],i=Math.abs(a-e);i<o&&(n=a,o=i)}return n},F=e=>Object.assign(Object.assign({},e),{timeZone:"UTC",timeZoneName:void 0}),J=(e,t,n,o={hour:"numeric",minute:"numeric"})=>{const r={hour:t.hour,minute:t.minute};return void 0===r.hour||void 0===r.minute?"Invalid Time":new Intl.DateTimeFormat(e,Object.assign(Object.assign({},F(o)),{hourCycle:n})).format(new Date(p(Object.assign({year:2023,day:1,month:1},r))+"Z"))},S=e=>{const t=e.toString();return t.length>1?t:`0${t}`},H=(e,t)=>{if(0===e)switch(t){case"h11":return"0";case"h12":return"12";case"h23":return"00";case"h24":return"24";default:throw new Error(`Invalid hour cycle "${t}"`)}return i(t)?S(e):e.toString()},L=(e,t,n)=>{if(null===n.day)return null;const o=B(n),r=new Intl.DateTimeFormat(e,{weekday:"long",month:"long",day:"numeric",timeZone:"UTC"}).format(o);return t?`Today, ${r}`:r},R=(e,t)=>{const n=B(t);return new Intl.DateTimeFormat(e,{month:"long",year:"numeric",timeZone:"UTC"}).format(n)},q=(e,t)=>Q(e,t,{day:"numeric"}).find((e=>"day"===e.type)).value,z=(e,t)=>K(e,t,{year:"numeric"}),B=e=>{var t,n,o;return new Date(`${null!==(t=e.month)&&void 0!==t?t:1}/${null!==(n=e.day)&&void 0!==n?n:1}/${null!==(o=e.year)&&void 0!==o?o:2023}${void 0!==e.hour&&void 0!==e.minute?` ${e.hour}:${e.minute}`:""} GMT+0000`)},K=(e,t,n)=>{const o=B(t);return X(e,F(n)).format(o)},Q=(e,t,n)=>{const o=B(t);return X(e,n).formatToParts(o)},X=(e,t)=>new Intl.DateTimeFormat(e,Object.assign(Object.assign({},t),{timeZone:"UTC"})),Y=e=>{if("RelativeTimeFormat"in Intl){const t=new Intl.RelativeTimeFormat(e,{numeric:"auto"}).format(0,"day");return t.charAt(0).toUpperCase()+t.slice(1)}return"Today"},_=e=>{const t=e.getTimezoneOffset();return e.setMinutes(e.getMinutes()-t),e},ee=_(new Date("2022T01:00")),te=_(new Date("2022T13:00")),ne=(e,t)=>{const n="am"===t?ee:te,o=new Intl.DateTimeFormat(e,{hour:"numeric",timeZone:"UTC"}).formatToParts(n).find((e=>"dayPeriod"===e.type));return o?o.value:(e=>void 0===e?"":e.toUpperCase())(t)},oe=e=>Array.isArray(e)?e.join(","):e,re=()=>_(new Date).toISOString(),ae=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59],ie=[0,1,2,3,4,5,6,7,8,9,10,11],de=[0,1,2,3,4,5,6,7,8,9,10,11],ue=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],le=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,0],se=(e,t,n=0)=>{const o=new Intl.DateTimeFormat(e,{weekday:"ios"===t?"short":"narrow"}),r=new Date("11/01/2020"),a=[];for(let e=n;e<n+7;e++){const t=new Date(r);t.setDate(t.getDate()+e),a.push(o.format(t))}return a},ce=(e,t,n,o=!1)=>{const r=d(e,t);let a;a=1===e?d(12,t-1):d(e-1,t);const i=new Date(`${e}/1/${t}`).getDay(),u=i>=n?i-(n+1):6-(n-i);let l=[];for(let e=1;e<=r;e++)l.push({day:e,dayOfWeek:(u+e)%7,isAdjacentDay:!1});if(o){for(let e=0;e<=u;e++)l=[{day:a-e,dayOfWeek:(a-e)%7,isAdjacentDay:!0},...l];const e=41-(r+u);for(let t=0;t<e;t++)l.push({day:t+1,dayOfWeek:(r+u+t)%7,isAdjacentDay:!0})}else for(let e=0;e<=u;e++)l=[{day:null,dayOfWeek:null,isAdjacentDay:!1},...l];return l},ve=(e,r,d="h12",u,l,s,c)=>{const v=a(e,d),m=i(v);let y=(e=>{switch(e){case"h11":return ie;case"h12":return de;case"h23":return ue;case"h24":return le;default:throw new Error(`Invalid hour cycle "${e}"`)}})(v),h=ae,f=!0,w=!0;if(s&&(y=y.filter((e=>s.includes(e)))),c&&(h=h.filter((e=>c.includes(e)))),u)if(t(r,u)){if(void 0!==u.hour&&(y=y.filter((e=>(m?e:"pm"===r.ampm?(e+12)%24:e)>=u.hour)),f=u.hour<13),void 0!==u.minute){let e=!1;void 0!==u.hour&&void 0!==r.hour&&r.hour>u.hour&&(e=!0),h=h.filter((t=>!!e||t>=u.minute))}}else n(r,u)&&(y=[],h=[],f=w=!1);return l&&(t(r,l)?(void 0!==l.hour&&(y=y.filter((e=>(m?e:"pm"===r.ampm?(e+12)%24:e)<=l.hour)),w=l.hour>=12),void 0!==l.minute&&r.hour===l.hour&&(h=h.filter((e=>e<=l.minute)))):o(r,l)&&(y=[],h=[],f=w=!1)),{hours:y,minutes:h,am:f,pm:w}},me=(e,t)=>{const o={month:e.month,year:e.year,day:e.day};if(void 0!==t&&(e.month!==t.month||e.year!==t.year)){const r={month:t.month,year:t.year,day:t.day};return n(r,o)?[r,o,A(e)]:[C(e),o,r]}return[C(e),o,A(e)]},ye=(e,t,n,o,r,a={month:"long"})=>{const{year:i}=t,d=[];if(void 0!==r){let t=r;void 0!==(null==o?void 0:o.month)&&(t=t.filter((e=>e<=o.month))),void 0!==(null==n?void 0:n.month)&&(t=t.filter((e=>e>=n.month))),t.forEach((t=>{const n=new Date(`${t}/1/${i} GMT+0000`),o=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(n);d.push({text:o,value:t})}))}else{const t=o&&o.year===i?o.month:12;for(let o=n&&n.year===i?n.month:1;o<=t;o++){const t=new Date(`${o}/1/${i} GMT+0000`),n=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(t);d.push({text:n,value:o})}}return d},he=(e,t,n,o,r,a={day:"numeric"})=>{const{month:i,year:u}=t,l=[],s=d(i,u),c=null!=(null==o?void 0:o.day)&&o.year===u&&o.month===i?o.day:s,v=null!=(null==n?void 0:n.day)&&n.year===u&&n.month===i?n.day:1;if(void 0!==r){let t=r;t=t.filter((e=>e>=v&&e<=c)),t.forEach((t=>{const n=new Date(`${i}/${t}/${u} GMT+0000`),o=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(n);l.push({text:o,value:t})}))}else for(let t=v;t<=c;t++){const n=new Date(`${i}/${t}/${u} GMT+0000`),o=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(n);l.push({text:o,value:t})}return l},fe=(e,t,n,o,r)=>{var a,i;let d=[];if(void 0!==r)d=r,void 0!==(null==o?void 0:o.year)&&(d=d.filter((e=>e<=o.year))),void 0!==(null==n?void 0:n.year)&&(d=d.filter((e=>e>=n.year)));else{const{year:e}=t,r=null!==(a=null==o?void 0:o.year)&&void 0!==a?a:e;for(let t=null!==(i=null==n?void 0:n.year)&&void 0!==i?i:e-100;t<=r;t++)d.push(t)}return d.map((n=>({text:z(e,{year:n,month:t.month,day:t.day}),value:n})))},we=(e,t)=>e.month===t.month&&e.year===t.year?[e]:[e,...we(A(e),t)],Oe=(e,n,o,r,a,i)=>{let d=[],u=[],l=we(o,r);return i&&(l=l.filter((({month:e})=>i.includes(e)))),l.forEach((i=>{const l={month:i.month,day:null,year:i.year},s=he(e,l,o,r,a,{month:"short",day:"numeric",weekday:"short"}),c=[],v=[];s.forEach((o=>{const r=t(Object.assign(Object.assign({},l),{day:o.value}),n);v.push({text:r?Y(e):o.text,value:`${l.year}-${l.month}-${o.value}`}),c.push({month:l.month,year:l.year,day:o.value})})),u=[...u,...c],d=[...d,...v]})),{parts:u,items:d}},$e=(e,t,n,o,r,d,u)=>{const l=a(e,n),s=i(l),{hours:c,minutes:v,am:m,pm:y}=ve(e,t,l,o,r,d,u),h=c.map((e=>({text:H(e,l),value:E(e,s,t.ampm)}))),f=v.map((e=>({text:S(e),value:e}))),w=[];return m&&!s&&w.push({text:ne(e,"am"),value:"am"}),y&&!s&&w.push({text:ne(e,"pm"),value:"pm"}),{minutesData:f,hoursData:h,dayPeriodData:w}};export{G as A,me as B,d as C,Oe as D,ye as E,he as F,fe as G,u as H,$e as I,l as J,P as K,se as L,R as M,ce as N,a as O,J as P,K as Q,oe as R,o as a,A as b,t as c,q as d,L as e,m as f,C as g,g as h,n as i,U as j,I as k,b as l,T as m,D as n,k as o,x as p,O as q,w as r,y as s,f as t,h as u,W as v,r as w,v as x,p as y,re as z}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{i as o}from"./p-XWSYNdC9.js";const s=o;export{s as g}
4
+ import{i as o}from"./p-HRylM0tf.js";const s=o;export{s as g}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * (C) Ionic http://ionicframework.com - MIT License
3
+ */
4
+ import{a as o,w as s}from"./p-EP3pwcdb.js";import{f as t,s as p}from"./p-C-xl6pej.js";import{c as r}from"./p-Di6ciXLG.js";import"./p-C-oNjncL.js";import"./p-HRylM0tf.js";const i=()=>{const i=window;i.addEventListener("statusTap",(()=>{o((()=>{const o=document.elementFromPoint(i.innerWidth/2,i.innerHeight/2);if(!o)return;const a=t(o);a&&new Promise((o=>r(a,o))).then((()=>{s((async()=>{a.style.setProperty("--overflow","hidden"),await p(a,300),a.style.removeProperty("--overflow")}))}))}))}))};export{i as startStatusTap}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * (C) Ionic http://ionicframework.com - MIT License
3
+ */
4
+ import{c as n}from"./p-HRylM0tf.js";import{w as i,B as e}from"./p-EP3pwcdb.js";import{a}from"./p-C-oNjncL.js";import{r as o}from"./p-Di6ciXLG.js";const r="ionViewWillEnter",t="ionViewDidEnter",s="ionViewWillLeave",c="ionViewDidLeave",l="ionViewWillUnload",d=n=>{n.tabIndex=-1,n.focus()},u=n=>null!==n.offsetParent,p="ion-last-focus",f=i=>{if(n.get("focusManagerPriority",!1)){const n=document.activeElement;null!==n&&(null==i?void 0:i.contains(n))&&n.setAttribute(p,"true")}},w=i=>{const e=n.get("focusManagerPriority",!1);if(Array.isArray(e)&&!i.contains(document.activeElement)){const n=i.querySelector(`[${p}]`);if(n&&u(n))return void d(n);for(const n of e)switch(n){case"content":const e=i.querySelector('main, [role="main"]');if(e&&u(e))return void d(e);break;case"heading":const o=i.querySelector('h1, [role="heading"][aria-level="1"]');if(o&&u(o))return void d(o);break;case"banner":const r=i.querySelector('header, [role="banner"]');if(r&&u(r))return void d(r);break;default:a(`Unrecognized focus manager priority value ${n}`)}d(i)}},m=n=>new Promise(((e,a)=>{i((()=>{v(n),b(n).then((i=>{i.animation&&i.animation.destroy(),g(n),e(i)}),(i=>{g(n),a(i)}))}))})),v=n=>{const i=n.enteringEl,e=n.leavingEl;f(e),W(i,e,n.direction),n.showGoBack?i.classList.add("can-go-back"):i.classList.remove("can-go-back"),D(i,!1),i.style.setProperty("pointer-events","none"),e&&(D(e,!1),e.style.setProperty("pointer-events","none"))},b=async n=>{const i=await y(n);return i&&e.isBrowser?h(i,n):P(n)},g=n=>{const i=n.enteringEl,e=n.leavingEl;i.classList.remove("ion-page-invisible"),i.style.removeProperty("pointer-events"),void 0!==e&&(e.classList.remove("ion-page-invisible"),e.style.removeProperty("pointer-events")),w(i)},y=async n=>{if(n.leavingEl&&n.animated&&0!==n.duration)return n.animationBuilder?n.animationBuilder:"ios"===n.mode?(await import("./p-uzIBoXdl.js")).iosTransitionAnimation:(await import("./p-C5Aon1Kb.js")).mdTransitionAnimation},h=async(n,i)=>{await j(i,!0);const e=n(i.baseEl,i);L(i.enteringEl,i.leavingEl);const a=await C(e,i);return i.progressCallback&&i.progressCallback(void 0),a&&V(i.enteringEl,i.leavingEl),{hasCompleted:a,animation:e}},P=async i=>{const e=i.enteringEl,a=i.leavingEl,o=n.get("focusManagerPriority",!1);return await j(i,o),L(e,a),V(e,a),{hasCompleted:!0}},j=async(n,i)=>{(void 0!==n.deepWait?n.deepWait:i)&&await Promise.all([A(n.enteringEl),A(n.leavingEl)]),await k(n.viewIsReady,n.enteringEl)},k=async(n,i)=>{n&&await n(i)},C=(n,i)=>{const e=i.progressCallback,a=new Promise((i=>{n.onFinish((n=>i(1===n)))}));return e?(n.progressStart(!0),e(n)):n.play(),a},L=(n,i)=>{E(i,s),E(n,r)},V=(n,i)=>{E(n,t),E(i,c)},E=(n,i)=>{if(n){const e=new CustomEvent(i,{bubbles:!1,cancelable:!1});n.dispatchEvent(e)}},M=()=>new Promise((n=>o((()=>o((()=>n())))))),A=async n=>{const i=n;if(i){if(null!=i.componentOnReady){if(null!=await i.componentOnReady())return}else if(null!=i.__registerHost){const n=new Promise((n=>o(n)));return void await n}await Promise.all(Array.from(i.children).map(A))}},D=(n,i)=>{i?(n.setAttribute("aria-hidden","true"),n.classList.add("ion-page-hidden")):(n.hidden=!1,n.removeAttribute("aria-hidden"),n.classList.remove("ion-page-hidden"))},W=(n,i,e)=>{void 0!==n&&(n.style.zIndex="back"===e?"99":"101"),void 0!==i&&(i.style.zIndex="100")},z=n=>{if(n.classList.contains("ion-page"))return n;return n.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||n};export{r as L,t as a,s as b,c,l as d,A as e,z as g,E as l,D as s,m as t,M as w}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{w as t}from"./p-ZjP4CjeZ.js";import{c as e}from"./p-XWSYNdC9.js";import"./p-C5UXyyFe.js";const o=()=>e.get("experimentalCloseWatcher",!1)&&void 0!==t&&"CloseWatcher"in t,n=()=>{document.addEventListener("backbutton",(()=>{}))},i=()=>{const e=document;let n=!1;const i=()=>{if(n)return;let t=0,o=[];const i=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(e,n){o.push({priority:e,handler:n,id:t++})}}});e.dispatchEvent(i);const r=()=>{if(o.length>0){let t={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};o.forEach((e=>{e.priority>=t.priority&&(t=e)})),n=!0,o=o.filter((e=>e.id!==t.id)),(async t=>{try{if(null==t?void 0:t.handler){const e=t.handler(r);null!=e&&await e}}catch(t){console.error(t)}})(t).then((()=>n=!1))}};r()};if(o()){let e;const o=()=>{null==e||e.destroy(),e=new t.CloseWatcher,e.onclose=()=>{i(),o()}};o()}else e.addEventListener("backbutton",i)},r=100,s=99;export{s as MENU_BACK_BUTTON_PRIORITY,r as OVERLAY_BACK_BUTTON_PRIORITY,n as blockHardwareBackButton,o as shouldUseCloseWatcher,i as startHardwareBackButton}
4
+ import{w as t}from"./p-ZjP4CjeZ.js";import{c as e}from"./p-HRylM0tf.js";import"./p-EP3pwcdb.js";const o=()=>e.get("experimentalCloseWatcher",!1)&&void 0!==t&&"CloseWatcher"in t,n=()=>{document.addEventListener("backbutton",(()=>{}))},i=()=>{const e=document;let n=!1;const i=()=>{if(n)return;let t=0,o=[];const i=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(e,n){o.push({priority:e,handler:n,id:t++})}}});e.dispatchEvent(i);const r=()=>{if(o.length>0){let t={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};o.forEach((e=>{e.priority>=t.priority&&(t=e)})),n=!0,o=o.filter((e=>e.id!==t.id)),(async t=>{try{if(null==t?void 0:t.handler){const e=t.handler(r);null!=e&&await e}}catch(t){console.error(t)}})(t).then((()=>n=!1))}};r()};if(o()){let e;const o=()=>{null==e||e.destroy(),e=new t.CloseWatcher,e.onclose=()=>{i(),o()}};o()}else e.addEventListener("backbutton",i)},r=100,c=99;export{c as MENU_BACK_BUTTON_PRIORITY,r as OVERLAY_BACK_BUTTON_PRIORITY,n as blockHardwareBackButton,o as shouldUseCloseWatcher,i as startHardwareBackButton}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{w as o}from"./p-ZjP4CjeZ.js";import{r}from"./p-Di6ciXLG.js";import{p as t}from"./p-CeCT60rb.js";const e=(t,e,i)=>{let n,s;if(void 0!==o&&"MutationObserver"in o){const o=Array.isArray(e)?e:[e];n=new MutationObserver((t=>{for(const e of t)for(const t of e.addedNodes)if(t.nodeType===Node.ELEMENT_NODE&&o.includes(t.slot))return i(),void r((()=>c(t)))})),n.observe(t,{childList:!0,subtree:!0})}const c=o=>{var r;s&&(s.disconnect(),s=void 0),s=new MutationObserver((o=>{i();for(const r of o)for(const o of r.removedNodes)o.nodeType===Node.ELEMENT_NODE&&o.slot===e&&d()})),s.observe(null!==(r=o.parentElement)&&void 0!==r?r:o,{subtree:!0,childList:!0})},d=()=>{s&&(s.disconnect(),s=void 0)};return{destroy:()=>{n&&(n.disconnect(),n=void 0),d()}}},i=(o,r,e)=>{const i=null==o?0:o.toString().length,s=n(i,r);if(void 0===e)return s;try{return e(i,r)}catch(o){return t("Exception in provided `counterFormatter`.",o),s}},n=(o,r)=>`${o} / ${r}`;export{e as c,i as g}
4
+ import{w as o}from"./p-ZjP4CjeZ.js";import{r}from"./p-Di6ciXLG.js";import{p as t}from"./p-C-oNjncL.js";const e=(t,e,i)=>{let n,s;if(void 0!==o&&"MutationObserver"in o){const o=Array.isArray(e)?e:[e];n=new MutationObserver((t=>{for(const e of t)for(const t of e.addedNodes)if(t.nodeType===Node.ELEMENT_NODE&&o.includes(t.slot))return i(),void r((()=>c(t)))})),n.observe(t,{childList:!0,subtree:!0})}const c=o=>{var r;s&&(s.disconnect(),s=void 0),s=new MutationObserver((o=>{i();for(const r of o)for(const o of r.removedNodes)o.nodeType===Node.ELEMENT_NODE&&o.slot===e&&d()})),s.observe(null!==(r=o.parentElement)&&void 0!==r?r:o,{subtree:!0,childList:!0})},d=()=>{s&&(s.disconnect(),s=void 0)};return{destroy:()=>{n&&(n.disconnect(),n=void 0),d()}}},i=(o,r,e)=>{const i=null==o?0:o.toString().length,s=n(i,r);if(void 0===e)return s;try{return e(i,r)}catch(o){return t("Exception in provided `counterFormatter`.",o),s}},n=(o,r)=>`${o} / ${r}`;export{e as c,i as g}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{d as n}from"./p-ZjP4CjeZ.js";import{n as o,c as e,f as t,m as i,g as a}from"./p-Di6ciXLG.js";import{OVERLAY_BACK_BUTTON_PRIORITY as d,shouldUseCloseWatcher as r}from"./p-BTEIaRld.js";import{b as s,c as l,a as c}from"./p-XWSYNdC9.js";import{C as u}from"./p-mxKP5hf-.js";import{B as m}from"./p-BTEOs1at.js";import{a as p}from"./p-CeCT60rb.js";const v='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), ion-checkbox:not([tabindex^="-"]):not([hidden]):not([disabled]), ion-radio:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',f=(n,o)=>{const e=n.querySelector(v);b(e,null!=o?o:n)},h=(n,o)=>{const e=Array.from(n.querySelectorAll(v));b(e.length>0?e[e.length-1]:null,null!=o?o:n)},b=(n,e)=>{let t=n;const i=null==n?void 0:n.shadowRoot;if(i&&(t=i.querySelector(v)||n),t){const n=t.closest("ion-radio-group");n?n.setFocus():o(t)}else e.focus()};let y=0,w=0;const g=new WeakMap,O=n=>({create:o=>B(n,o),dismiss:(o,e,t)=>E(document,o,e,n,t),getTop:async()=>L(document,n)}),T=O("ion-alert"),k=O("ion-action-sheet"),x=O("ion-loading"),j=O("ion-modal"),A=O("ion-picker-legacy"),C=O("ion-popover"),I=O("ion-toast"),N=n=>{"undefined"!=typeof document&&P(document);const o=y++;n.overlayIndex=o},S=n=>(n.hasAttribute("id")||(n.id="ion-overlay-"+ ++w),n.id),B=(n,o)=>"undefined"!=typeof window&&void 0!==window.customElements?window.customElements.whenDefined(n).then((()=>{const t=document.createElement(n);return t.classList.add("overlay-hidden"),Object.assign(t,Object.assign(Object.assign({},o),{hasController:!0})),X(document).appendChild(t),new Promise((n=>e(t,n)))})):Promise.resolve(),D=(n,e)=>{let t=n;const i=null==n?void 0:n.shadowRoot;i&&(t=i.querySelector(v)||n),t?o(t):e.focus()},P=n=>{0===y&&(y=1,n.addEventListener("focus",(o=>{((n,o)=>{const e=L(o,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover"),t=n.target;e&&t&&(e.classList.contains(en)||(e.shadowRoot?(()=>{if(e.contains(t))e.lastFocus=t;else if("ION-TOAST"===t.tagName)D(e.lastFocus,e);else{const n=e.lastFocus;f(e),n===o.activeElement&&h(e),e.lastFocus=o.activeElement}})():(()=>{if(e===t)e.lastFocus=void 0;else if("ION-TOAST"===t.tagName)D(e.lastFocus,e);else{const n=a(e);if(!n.contains(t))return;const i=n.querySelector(".ion-overlay-wrapper");if(!i)return;if(i.contains(t)||t===n.querySelector("ion-backdrop"))e.lastFocus=t;else{const n=e.lastFocus;f(i,e),n===o.activeElement&&h(i,e),e.lastFocus=o.activeElement}}})()))})(o,n)}),!0),n.addEventListener("ionBackButton",(o=>{const e=L(n);(null==e?void 0:e.backdropDismiss)&&o.detail.register(d,(()=>{e.dismiss(void 0,$)}))})),r()||n.addEventListener("keydown",(o=>{if("Escape"===o.key){const o=L(n);(null==o?void 0:o.backdropDismiss)&&o.dismiss(void 0,$)}})))},E=(n,o,e,t,i)=>{const a=L(n,t,i);return a?a.dismiss(o,e):Promise.reject("overlay does not exist")},G=(n,o)=>((n,o)=>(void 0===o&&(o="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover,ion-toast"),Array.from(n.querySelectorAll(o)).filter((n=>n.overlayIndex>0))))(n,o).filter((n=>!n.classList.contains("overlay-hidden"))),L=(n,o,e)=>{const t=G(n,o);return void 0===e?t[t.length-1]:t.find((n=>n.id===e))},M=(n=!1)=>{const o=X(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");o&&(n?o.setAttribute("aria-hidden","true"):o.removeAttribute("aria-hidden"))},F=async(n,o,e,t,i)=>{var a,d;if(n.presented)return;"ION-TOAST"!==n.el.tagName&&(M(!0),document.body.classList.add(m)),nn(n.el),U(n.el),n.presented=!0,n.willPresent.emit(),null===(a=n.willPresentShorthand)||void 0===a||a.emit();const r=s(n),c=n.enterAnimation?n.enterAnimation:l.get(o,"ios"===r?e:t);await Z(n,c,n.el,i)&&(n.didPresent.emit(),null===(d=n.didPresentShorthand)||void 0===d||d.emit()),"ION-TOAST"!==n.el.tagName&&V(n.el),!n.keyboardClose||null!==document.activeElement&&n.el.contains(document.activeElement)||n.el.focus(),n.el.removeAttribute("aria-hidden")},V=async n=>{let o=document.activeElement;if(!o)return;const e=null==o?void 0:o.shadowRoot;e&&(o=e.querySelector(v)||o),await n.onDidDismiss(),null!==document.activeElement&&document.activeElement!==document.body||o.focus()},W=async(o,e,t,i,a,d,r)=>{var c,u;if(!o.presented)return!1;const p=(void 0!==n?G(n):[]).filter((n=>"ION-TOAST"!==n.tagName));1===p.length&&p[0].id===o.el.id&&(M(!1),document.body.classList.remove(m)),o.presented=!1;try{U(o.el),o.el.style.setProperty("pointer-events","none"),o.willDismiss.emit({data:e,role:t}),null===(c=o.willDismissShorthand)||void 0===c||c.emit({data:e,role:t});const n=s(o),m=o.leaveAnimation?o.leaveAnimation:l.get(i,"ios"===n?a:d);t!==_&&await Z(o,m,o.el,r),o.didDismiss.emit({data:e,role:t}),null===(u=o.didDismissShorthand)||void 0===u||u.emit({data:e,role:t}),(g.get(o)||[]).forEach((n=>n.destroy())),g.delete(o),o.el.classList.add("overlay-hidden"),o.el.style.removeProperty("pointer-events"),void 0!==o.el.lastFocus&&(o.el.lastFocus=void 0)}catch(n){console.error(n)}return o.el.remove(),on(),!0},X=n=>n.querySelector("ion-app")||n.body,Z=async(n,o,e,t)=>{e.classList.remove("overlay-hidden");const i=o(n.el,t);n.animated&&l.getBoolean("animated",!0)||i.duration(0),n.keyboardClose&&i.beforeAddWrite((()=>{const n=e.ownerDocument.activeElement;(null==n?void 0:n.matches("input,ion-input, ion-textarea"))&&n.blur()}));const a=g.get(n)||[];return g.set(n,[...a,i]),await i.play(),!0},q=(n,o)=>{let e;const t=new Promise((n=>e=n));return z(n,o,(n=>{e(n.detail)})),t},z=(n,o,e)=>{const a=t=>{i(n,o,a),e(t)};t(n,o,a)},K=n=>"cancel"===n||n===$,R=n=>n(),Y=(n,o)=>{if("function"==typeof n)return l.get("_zoneGate",R)((()=>{try{return n(o)}catch(n){throw n}}))},$="backdrop",_="gesture",H=39,J=n=>{let o,e=!1;const t=u(),i=(i=!1)=>{if(o&&!i)return{delegate:o,inline:e};const{el:a,hasController:d,delegate:r}=n;return e=null!==a.parentNode&&!d,o=e?r||t:r,{inline:e,delegate:o}};return{attachViewToDom:async o=>{const{delegate:e}=i(!0);if(e)return await e.attachViewToDom(n.el,o);const{hasController:t}=n;if(t&&void 0!==o)throw new Error("framework delegate is missing");return null},removeViewFromDom:()=>{const{delegate:o}=i();o&&void 0!==n.el&&o.removeViewFromDom(n.el.parentElement,n.el)}}},Q=()=>{let n;const o=()=>{n&&(n(),n=void 0)};return{addClickListener:(e,t)=>{o();const i=void 0!==t?document.getElementById(t):null;i?n=((n,o)=>{const e=()=>{o.present()};return n.addEventListener("click",e),()=>{n.removeEventListener("click",e)}})(i,e):p(`A trigger element with the ID "${t}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,e)},removeClickListener:o}},U=o=>{void 0!==n&&c("android")&&o.setAttribute("aria-hidden","true")},nn=o=>{var e;if(void 0===n)return;const t=G(n);for(let n=t.length-1;n>=0;n--){const i=t[n],a=null!==(e=t[n+1])&&void 0!==e?e:o;(a.hasAttribute("aria-hidden")||"ION-TOAST"!==a.tagName)&&i.setAttribute("aria-hidden","true")}},on=()=>{if(void 0===n)return;const o=G(n);for(let n=o.length-1;n>=0;n--){const e=o[n];if(e.removeAttribute("aria-hidden"),"ION-TOAST"!==e.tagName)break}},en="ion-disable-focus-trap";export{$ as B,en as F,_ as G,H as O,T as a,k as b,C as c,J as d,Q as e,F as f,W as g,q as h,K as i,N as j,S as k,x as l,j as m,f as n,L as o,A as p,h as q,Y as s,I as t}
4
+ import{d as n}from"./p-ZjP4CjeZ.js";import{n as o,c as e,f as t,m as i,g as a}from"./p-Di6ciXLG.js";import{OVERLAY_BACK_BUTTON_PRIORITY as d,shouldUseCloseWatcher as r}from"./p-DGw3g412.js";import{b as s,c as l,a as c}from"./p-HRylM0tf.js";import{C as u}from"./p-mxKP5hf-.js";import{B as m}from"./p-BTEOs1at.js";import{a as p}from"./p-C-oNjncL.js";const v='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), ion-checkbox:not([tabindex^="-"]):not([hidden]):not([disabled]), ion-radio:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',f=(n,o)=>{const e=n.querySelector(v);b(e,null!=o?o:n)},h=(n,o)=>{const e=Array.from(n.querySelectorAll(v));b(e.length>0?e[e.length-1]:null,null!=o?o:n)},b=(n,e)=>{let t=n;const i=null==n?void 0:n.shadowRoot;if(i&&(t=i.querySelector(v)||n),t){const n=t.closest("ion-radio-group");n?n.setFocus():o(t)}else e.focus()};let y=0,w=0;const g=new WeakMap,O=n=>({create:o=>S(n,o),dismiss:(o,e,t)=>G(document,o,e,n,t),getTop:async()=>M(document,n)}),T=O("ion-alert"),k=O("ion-action-sheet"),x=O("ion-loading"),j=O("ion-modal"),A=O("ion-picker-legacy"),C=O("ion-popover"),I=O("ion-toast"),N=n=>{"undefined"!=typeof document&&B(document);const o=y++;n.overlayIndex=o},D=n=>(n.hasAttribute("id")||(n.id="ion-overlay-"+ ++w),n.id),S=(n,o)=>"undefined"!=typeof window&&void 0!==window.customElements?window.customElements.whenDefined(n).then((()=>{const t=document.createElement(n);return t.classList.add("overlay-hidden"),Object.assign(t,Object.assign(Object.assign({},o),{hasController:!0})),q(document).appendChild(t),new Promise((n=>e(t,n)))})):Promise.resolve(),P=(n,e)=>{let t=n;const i=null==n?void 0:n.shadowRoot;i&&(t=i.querySelector(v)||n),t?o(t):e.focus()},B=n=>{0===y&&(y=1,n.addEventListener("focus",(o=>{((n,o)=>{const e=M(o,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover"),t=n.target;e&&t&&(e.classList.contains(en)||(e.shadowRoot?(()=>{if(e.contains(t))e.lastFocus=t;else if("ION-TOAST"===t.tagName)P(e.lastFocus,e);else{const n=e.lastFocus;f(e),n===o.activeElement&&h(e),e.lastFocus=o.activeElement}})():(()=>{if(e===t)e.lastFocus=void 0;else if("ION-TOAST"===t.tagName)P(e.lastFocus,e);else{const n=a(e);if(!n.contains(t))return;const i=n.querySelector(".ion-overlay-wrapper");if(!i)return;if(i.contains(t)||t===n.querySelector("ion-backdrop"))e.lastFocus=t;else{const n=e.lastFocus;f(i,e),n===o.activeElement&&h(i,e),e.lastFocus=o.activeElement}}})()))})(o,n)}),!0),n.addEventListener("ionBackButton",(o=>{const e=M(n);(null==e?void 0:e.backdropDismiss)&&o.detail.register(d,(()=>{e.dismiss(void 0,$)}))})),r()||n.addEventListener("keydown",(o=>{if("Escape"===o.key){const o=M(n);(null==o?void 0:o.backdropDismiss)&&o.dismiss(void 0,$)}})))},G=(n,o,e,t,i)=>{const a=M(n,t,i);return a?a.dismiss(o,e):Promise.reject("overlay does not exist")},L=(n,o)=>((n,o)=>(void 0===o&&(o="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover,ion-toast"),Array.from(n.querySelectorAll(o)).filter((n=>n.overlayIndex>0))))(n,o).filter((n=>!n.classList.contains("overlay-hidden"))),M=(n,o,e)=>{const t=L(n,o);return void 0===e?t[t.length-1]:t.find((n=>n.id===e))},E=(n=!1)=>{const o=q(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");o&&(n?o.setAttribute("aria-hidden","true"):o.removeAttribute("aria-hidden"))},F=async(n,o,e,t,i)=>{var a,d;if(n.presented)return;"ION-TOAST"!==n.el.tagName&&(E(!0),document.body.classList.add(m)),nn(n.el),Y(n.el),n.presented=!0,n.willPresent.emit(),null===(a=n.willPresentShorthand)||void 0===a||a.emit();const r=s(n),c=n.enterAnimation?n.enterAnimation:l.get(o,"ios"===r?e:t);await z(n,c,n.el,i)&&(n.didPresent.emit(),null===(d=n.didPresentShorthand)||void 0===d||d.emit()),"ION-TOAST"!==n.el.tagName&&V(n.el),!n.keyboardClose||null!==document.activeElement&&n.el.contains(document.activeElement)||n.el.focus(),n.el.removeAttribute("aria-hidden")},V=async n=>{let o=document.activeElement;if(!o)return;const e=null==o?void 0:o.shadowRoot;e&&(o=e.querySelector(v)||o),await n.onDidDismiss(),null!==document.activeElement&&document.activeElement!==document.body||o.focus()},Z=async(o,e,t,i,a,d,r)=>{var c,u;if(!o.presented)return!1;const p=(void 0!==n?L(n):[]).filter((n=>"ION-TOAST"!==n.tagName));1===p.length&&p[0].id===o.el.id&&(E(!1),document.body.classList.remove(m)),o.presented=!1;try{Y(o.el),o.el.style.setProperty("pointer-events","none"),o.willDismiss.emit({data:e,role:t}),null===(c=o.willDismissShorthand)||void 0===c||c.emit({data:e,role:t});const n=s(o),m=o.leaveAnimation?o.leaveAnimation:l.get(i,"ios"===n?a:d);t!==_&&await z(o,m,o.el,r),o.didDismiss.emit({data:e,role:t}),null===(u=o.didDismissShorthand)||void 0===u||u.emit({data:e,role:t}),(g.get(o)||[]).forEach((n=>n.destroy())),g.delete(o),o.el.classList.add("overlay-hidden"),o.el.style.removeProperty("pointer-events"),void 0!==o.el.lastFocus&&(o.el.lastFocus=void 0)}catch(n){console.error(n)}return o.el.remove(),on(),!0},q=n=>n.querySelector("ion-app")||n.body,z=async(n,o,e,t)=>{e.classList.remove("overlay-hidden");const i=o(n.el,t);n.animated&&l.getBoolean("animated",!0)||i.duration(0),n.keyboardClose&&i.beforeAddWrite((()=>{const n=e.ownerDocument.activeElement;(null==n?void 0:n.matches("input,ion-input, ion-textarea"))&&n.blur()}));const a=g.get(n)||[];return g.set(n,[...a,i]),await i.play(),!0},H=(n,o)=>{let e;const t=new Promise((n=>e=n));return K(n,o,(n=>{e(n.detail)})),t},K=(n,o,e)=>{const a=t=>{i(n,o,a),e(t)};t(n,o,a)},R=n=>"cancel"===n||n===$,W=n=>n(),X=(n,o)=>{if("function"==typeof n)return l.get("_zoneGate",W)((()=>{try{return n(o)}catch(n){throw n}}))},$="backdrop",_="gesture",J=39,Q=n=>{let o,e=!1;const t=u(),i=(i=!1)=>{if(o&&!i)return{delegate:o,inline:e};const{el:a,hasController:d,delegate:r}=n;return e=null!==a.parentNode&&!d,o=e?r||t:r,{inline:e,delegate:o}};return{attachViewToDom:async o=>{const{delegate:e}=i(!0);if(e)return await e.attachViewToDom(n.el,o);const{hasController:t}=n;if(t&&void 0!==o)throw new Error("framework delegate is missing");return null},removeViewFromDom:()=>{const{delegate:o}=i();o&&void 0!==n.el&&o.removeViewFromDom(n.el.parentElement,n.el)}}},U=()=>{let n;const o=()=>{n&&(n(),n=void 0)};return{addClickListener:(e,t)=>{o();const i=void 0!==t?document.getElementById(t):null;i?n=((n,o)=>{const e=()=>{o.present()};return n.addEventListener("click",e),()=>{n.removeEventListener("click",e)}})(i,e):p(`A trigger element with the ID "${t}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,e)},removeClickListener:o}},Y=o=>{void 0!==n&&c("android")&&o.setAttribute("aria-hidden","true")},nn=o=>{var e;if(void 0===n)return;const t=L(n);for(let n=t.length-1;n>=0;n--){const i=t[n],a=null!==(e=t[n+1])&&void 0!==e?e:o;(a.hasAttribute("aria-hidden")||"ION-TOAST"!==a.tagName)&&i.setAttribute("aria-hidden","true")}},on=()=>{if(void 0===n)return;const o=L(n);for(let n=o.length-1;n>=0;n--){const e=o[n];if(e.removeAttribute("aria-hidden"),"ION-TOAST"!==e.tagName)break}},en="ion-disable-focus-trap";export{$ as B,en as F,_ as G,J as O,T as a,k as b,C as c,Q as d,U as e,F as f,Z as g,H as h,R as i,N as j,D as k,x as l,j as m,f as n,M as o,A as p,h as q,X as s,I as t}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{w as o,d as t}from"./p-ZjP4CjeZ.js";import{g as n,c as i,f as r}from"./p-B1sP_kPm.js";import{f as a,m as e,r as s,c as d}from"./p-Di6ciXLG.js";import{a as c,K as l}from"./p-D13Eaw-8.js";import"./p-CeCT60rb.js";import"./p-XWSYNdC9.js";import"./p-C5UXyyFe.js";import"./p-CIGNaXM1.js";const u=new WeakMap,f=(o,t,n,i=0,r=!1)=>{u.has(o)!==n&&(n?p(o,t,i,r):w(o,t))},p=(o,t,n,i=!1)=>{const r=t.parentNode,a=t.cloneNode(!1);a.classList.add("cloned-input"),a.tabIndex=-1,i&&(a.disabled=!0),r.appendChild(a),u.set(o,a);const e="rtl"===o.ownerDocument.dir?9999:-9999;o.style.pointerEvents="none",t.style.transform=`translate3d(${e}px,${n}px,0) scale(0)`},w=(o,t)=>{const n=u.get(o);n&&(u.delete(o),n.remove()),o.style.pointerEvents="",t.style.transform=""},m="input, textarea, [no-blur], [contenteditable]",y="$ionPaddingTimer",S=(o,t,n)=>{const i=o[y];i&&clearTimeout(i),t>0?o.style.setProperty("--keyboard-offset",`${t}px`):o[y]=setTimeout((()=>{o.style.setProperty("--keyboard-offset","0px"),n&&n()}),120)},h=(o,t,n)=>{o.addEventListener("focusout",(()=>{t&&S(t,0,n)}),{once:!0})};let b=0;const D="data-ionic-skip-scroll-assist",M=o=>{document.activeElement!==o&&(o.setAttribute(D,"true"),o.focus())},j=async(o,t,r,a,e,d,c=!1,l=0,u=!0)=>{if(!r&&!a)return;const p=((o,t,n,i)=>{var r;return((o,t,n,i)=>{const r=o.top,a=o.bottom,e=t.top,s=e+15,d=Math.min(t.bottom,i-n)-50-a,c=s-r,l=Math.round(d<0?-d:c>0?-c:0),u=Math.min(l,r-e),f=Math.abs(u);return{scrollAmount:u,scrollDuration:Math.min(400,Math.max(150,f/.3)),scrollPadding:n,inputSafeY:4-(r-s)}})((null!==(r=o.closest("ion-item,[ion-item]"))&&void 0!==r?r:o).getBoundingClientRect(),t.getBoundingClientRect(),n,i)})(o,r||a,e,l);if(r&&Math.abs(p.scrollAmount)<4)return M(t),void(d&&null!==r&&(S(r,b),h(t,r,(()=>b=0))));if(f(o,t,!0,p.inputSafeY,c),M(t),s((()=>o.click())),d&&r&&(b=p.scrollPadding,S(r,b)),"undefined"!=typeof window){let a;const e=async()=>{void 0!==a&&clearTimeout(a),window.removeEventListener("ionKeyboardDidShow",s),window.removeEventListener("ionKeyboardDidShow",e),r&&await i(r,0,p.scrollAmount,p.scrollDuration),f(o,t,!1,p.inputSafeY),M(t),d&&h(t,r,(()=>b=0))},s=()=>{window.removeEventListener("ionKeyboardDidShow",s),window.addEventListener("ionKeyboardDidShow",e)};if(r){const o=await n(r);if(u&&p.scrollAmount>o.scrollHeight-o.clientHeight-o.scrollTop)return"password"===t.type?(p.scrollAmount+=50,window.addEventListener("ionKeyboardDidShow",s)):window.addEventListener("ionKeyboardDidShow",e),void(a=setTimeout(e,1e3))}e()}},v=async(n,i)=>{if(void 0===t)return;const s="ios"===i,u="android"===i,p=n.getNumber("keyboardHeight",290),w=n.getBoolean("scrollAssist",!0),y=n.getBoolean("hideCaretOnScroll",s),S=n.getBoolean("inputBlurring",!1),h=n.getBoolean("scrollPadding",!0),b=Array.from(t.querySelectorAll("ion-input, ion-textarea")),M=new WeakMap,v=new WeakMap,K=await l.getResizeMode(),k=async t=>{await new Promise((o=>d(t,o)));const n=t.shadowRoot||t,i=n.querySelector("input")||n.querySelector("textarea"),s=r(t),l=s?null:t.closest("ion-footer");if(i){if(s&&y&&!M.has(t)){const o=((o,t,n)=>{if(!n||!t)return()=>{};const i=n=>{var i;(i=t)===i.getRootNode().activeElement&&f(o,t,n)},r=()=>f(o,t,!1),s=()=>i(!0),d=()=>i(!1);return a(n,"ionScrollStart",s),a(n,"ionScrollEnd",d),t.addEventListener("blur",r),()=>{e(n,"ionScrollStart",s),e(n,"ionScrollEnd",d),t.removeEventListener("blur",r)}})(t,i,s);M.set(t,o)}if("date"!==i.type&&"datetime-local"!==i.type&&(s||l)&&w&&!v.has(t)){const n=((t,n,i,r,a,e,s,d=!1)=>{const l=e&&(void 0===s||s.mode===c.None);let u=!1;const f=void 0!==o?o.innerHeight:0,p=o=>{!1!==u?j(t,n,i,r,o.detail.keyboardHeight,l,d,f,!1):u=!0},w=()=>{u=!1,null==o||o.removeEventListener("ionKeyboardDidShow",p),t.removeEventListener("focusout",w)},m=async()=>{n.hasAttribute(D)?n.removeAttribute(D):(j(t,n,i,r,a,l,d,f),null==o||o.addEventListener("ionKeyboardDidShow",p),t.addEventListener("focusout",w))};return t.addEventListener("focusin",m),()=>{t.removeEventListener("focusin",m),null==o||o.removeEventListener("ionKeyboardDidShow",p),t.removeEventListener("focusout",w)}})(t,i,s,l,p,h,K,u);v.set(t,n)}}};S&&(()=>{let o=!0,t=!1;const n=document;a(n,"ionScrollStart",(()=>{t=!0})),n.addEventListener("focusin",(()=>{o=!0}),!0),n.addEventListener("touchend",(i=>{if(t)return void(t=!1);const r=n.activeElement;if(!r)return;if(r.matches(m))return;const a=i.target;a!==r&&(a.matches(m)||a.closest(m)||(o=!1,setTimeout((()=>{o||r.blur()}),50)))}),!1)})();for(const o of b)k(o);t.addEventListener("ionInputDidLoad",(o=>{k(o.detail)})),t.addEventListener("ionInputDidUnload",(o=>{(o=>{if(y){const t=M.get(o);t&&t(),M.delete(o)}if(w){const t=v.get(o);t&&t(),v.delete(o)}})(o.detail)}))};export{v as startInputShims}
4
+ import{w as o,d as t}from"./p-ZjP4CjeZ.js";import{g as n,c as i,f as r}from"./p-C-xl6pej.js";import{f as a,m as e,r as s,c as d}from"./p-Di6ciXLG.js";import{a as c,K as l}from"./p-D13Eaw-8.js";import"./p-C-oNjncL.js";import"./p-HRylM0tf.js";import"./p-EP3pwcdb.js";import"./p-CIGNaXM1.js";const u=new WeakMap,f=(o,t,n,i=0,r=!1)=>{u.has(o)!==n&&(n?p(o,t,i,r):w(o,t))},p=(o,t,n,i=!1)=>{const r=t.parentNode,a=t.cloneNode(!1);a.classList.add("cloned-input"),a.tabIndex=-1,i&&(a.disabled=!0),r.appendChild(a),u.set(o,a);const e="rtl"===o.ownerDocument.dir?9999:-9999;o.style.pointerEvents="none",t.style.transform=`translate3d(${e}px,${n}px,0) scale(0)`},w=(o,t)=>{const n=u.get(o);n&&(u.delete(o),n.remove()),o.style.pointerEvents="",t.style.transform=""},m="input, textarea, [no-blur], [contenteditable]",y="$ionPaddingTimer",h=(o,t,n)=>{const i=o[y];i&&clearTimeout(i),t>0?o.style.setProperty("--keyboard-offset",`${t}px`):o[y]=setTimeout((()=>{o.style.setProperty("--keyboard-offset","0px"),n&&n()}),120)},S=(o,t,n)=>{o.addEventListener("focusout",(()=>{t&&h(t,0,n)}),{once:!0})};let b=0;const D="data-ionic-skip-scroll-assist",j=o=>{document.activeElement!==o&&(o.setAttribute(D,"true"),o.focus())},M=async(o,t,r,a,e,d,c=!1,l=0,u=!0)=>{if(!r&&!a)return;const p=((o,t,n,i)=>{var r;return((o,t,n,i)=>{const r=o.top,a=o.bottom,e=t.top,s=e+15,d=Math.min(t.bottom,i-n)-50-a,c=s-r,l=Math.round(d<0?-d:c>0?-c:0),u=Math.min(l,r-e),f=Math.abs(u);return{scrollAmount:u,scrollDuration:Math.min(400,Math.max(150,f/.3)),scrollPadding:n,inputSafeY:4-(r-s)}})((null!==(r=o.closest("ion-item,[ion-item]"))&&void 0!==r?r:o).getBoundingClientRect(),t.getBoundingClientRect(),n,i)})(o,r||a,e,l);if(r&&Math.abs(p.scrollAmount)<4)return j(t),void(d&&null!==r&&(h(r,b),S(t,r,(()=>b=0))));if(f(o,t,!0,p.inputSafeY,c),j(t),s((()=>o.click())),d&&r&&(b=p.scrollPadding,h(r,b)),"undefined"!=typeof window){let a;const e=async()=>{void 0!==a&&clearTimeout(a),window.removeEventListener("ionKeyboardDidShow",s),window.removeEventListener("ionKeyboardDidShow",e),r&&await i(r,0,p.scrollAmount,p.scrollDuration),f(o,t,!1,p.inputSafeY),j(t),d&&S(t,r,(()=>b=0))},s=()=>{window.removeEventListener("ionKeyboardDidShow",s),window.addEventListener("ionKeyboardDidShow",e)};if(r){const o=await n(r);if(u&&p.scrollAmount>o.scrollHeight-o.clientHeight-o.scrollTop)return"password"===t.type?(p.scrollAmount+=50,window.addEventListener("ionKeyboardDidShow",s)):window.addEventListener("ionKeyboardDidShow",e),void(a=setTimeout(e,1e3))}e()}},v=async(n,i)=>{if(void 0===t)return;const s="ios"===i,u="android"===i,p=n.getNumber("keyboardHeight",290),w=n.getBoolean("scrollAssist",!0),y=n.getBoolean("hideCaretOnScroll",s),h=n.getBoolean("inputBlurring",!1),S=n.getBoolean("scrollPadding",!0),b=Array.from(t.querySelectorAll("ion-input, ion-textarea")),j=new WeakMap,v=new WeakMap,K=await l.getResizeMode(),x=async t=>{await new Promise((o=>d(t,o)));const n=t.shadowRoot||t,i=n.querySelector("input")||n.querySelector("textarea"),s=r(t),l=s?null:t.closest("ion-footer");if(i){if(s&&y&&!j.has(t)){const o=((o,t,n)=>{if(!n||!t)return()=>{};const i=n=>{var i;(i=t)===i.getRootNode().activeElement&&f(o,t,n)},r=()=>f(o,t,!1),s=()=>i(!0),d=()=>i(!1);return a(n,"ionScrollStart",s),a(n,"ionScrollEnd",d),t.addEventListener("blur",r),()=>{e(n,"ionScrollStart",s),e(n,"ionScrollEnd",d),t.removeEventListener("blur",r)}})(t,i,s);j.set(t,o)}if("date"!==i.type&&"datetime-local"!==i.type&&(s||l)&&w&&!v.has(t)){const n=((t,n,i,r,a,e,s,d=!1)=>{const l=e&&(void 0===s||s.mode===c.None);let u=!1;const f=void 0!==o?o.innerHeight:0,p=o=>{!1!==u?M(t,n,i,r,o.detail.keyboardHeight,l,d,f,!1):u=!0},w=()=>{u=!1,null==o||o.removeEventListener("ionKeyboardDidShow",p),t.removeEventListener("focusout",w)},m=async()=>{n.hasAttribute(D)?n.removeAttribute(D):(M(t,n,i,r,a,l,d,f),null==o||o.addEventListener("ionKeyboardDidShow",p),t.addEventListener("focusout",w))};return t.addEventListener("focusin",m),()=>{t.removeEventListener("focusin",m),null==o||o.removeEventListener("ionKeyboardDidShow",p),t.removeEventListener("focusout",w)}})(t,i,s,l,p,S,K,u);v.set(t,n)}}};h&&(()=>{let o=!0,t=!1;const n=document;a(n,"ionScrollStart",(()=>{t=!0})),n.addEventListener("focusin",(()=>{o=!0}),!0),n.addEventListener("touchend",(i=>{if(t)return void(t=!1);const r=n.activeElement;if(!r)return;if(r.matches(m))return;const a=i.target;a!==r&&(a.matches(m)||a.closest(m)||(o=!1,setTimeout((()=>{o||r.blur()}),50)))}),!1)})();for(const o of b)x(o);t.addEventListener("ionInputDidLoad",(o=>{x(o.detail)})),t.addEventListener("ionInputDidUnload",(o=>{(o=>{if(y){const t=j.get(o);t&&t(),j.delete(o)}if(w){const t=v.get(o);t&&t(),v.delete(o)}})(o.detail)}))};export{v as startInputShims}
@@ -0,0 +1,5 @@
1
+ /*!
2
+ * (C) Ionic http://ionicframework.com - MIT License
3
+ */
4
+ var t=Object.defineProperty,e={isBrowser:!0},n=(t=>(t.Undefined="undefined",t.Null="null",t.String="string",t.Number="number",t.SpecialNumber="number",t.Boolean="boolean",t.BigInt="bigint",t))(n||{}),o=(t=>(t.Array="array",t.Date="date",t.Map="map",t.Object="object",t.RegularExpression="regexp",t.Set="set",t.Channel="channel",t.Symbol="symbol",t))(o||{}),s="type",l="value",i="serialized:",r=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},c=(t,e)=>{t.__stencil__getHostRef=()=>e,e.t=t},u=(t,e)=>e in t,f=(t,e)=>(0,console.error)(t,e),a=new Map,d=new Map,h=[],p="s-id",v="sty-id",$="c-id",b="slot-fb{display:contents}slot-fb[hidden]{display:none}",m="http://www.w3.org/1999/xlink",g="undefined"!=typeof window?window:{},y=g.HTMLElement||class{},w={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},S=t=>Promise.resolve(t),j=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),O=!1,N=[],x=[],E=(t,e)=>n=>{t.push(n),O||(O=!0,e&&4&w.o?I(C):w.raf(C))},k=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){f(t)}t.length=0},C=()=>{k(N),k(x),(O=N.length>0)&&w.raf(C)},I=t=>S().then(t),M=E(N,!1),R=E(x,!0),A=t=>{const e=new URL(t,w.l);return e.origin!==g.location.origin?e.href:e.pathname},L=t=>"object"==(t=typeof t)||"function"===t;function T(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}var B=class t{static fromLocalValue(e){const n=e[s],o=l in e?e[l]:void 0;switch(n){case"string":case"boolean":return o;case"bigint":return BigInt(o);case"undefined":return;case"null":return null;case"number":return"NaN"===o?NaN:"-0"===o?-0:"Infinity"===o?1/0:"-Infinity"===o?-1/0:o;case"array":return o.map((e=>t.fromLocalValue(e)));case"date":return new Date(o);case"map":const e=new Map;for(const[n,s]of o){const o="object"==typeof n&&null!==n?t.fromLocalValue(n):n,l=t.fromLocalValue(s);e.set(o,l)}return e;case"object":const s={};for(const[e,n]of o)s[e]=t.fromLocalValue(n);return s;case"regexp":const{pattern:l,flags:i}=o;return RegExp(l,i);case"set":const r=new Set;for(const e of o)r.add(t.fromLocalValue(e));return r;case"symbol":return Symbol(o);default:throw Error("Unsupported type: "+n)}}static fromLocalValueArray(e){return e.map((e=>t.fromLocalValue(e)))}static isLocalValueObject(t){if("object"!=typeof t||null===t)return!1;if(!t.hasOwnProperty(s))return!1;const e=t[s];return!!Object.values({...n,...o}).includes(e)&&("null"===e||"undefined"===e||t.hasOwnProperty(l))}};((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>F,map:()=>U,ok:()=>P,unwrap:()=>_,unwrapErr:()=>D});var P=t=>({isOk:!0,isErr:!1,value:t}),F=t=>({isOk:!1,isErr:!0,value:t});function U(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>P(t))):P(n)}if(t.isErr)return F(t.value);throw"should never get here"}var _=t=>{if(t.isOk)return t.value;throw t.value},D=t=>{if(t.isErr)return t.value;throw t.value},W=t=>{const e=mt(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&z(e,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!H(t,q(t),!1).length)}));let n=0;for(n=0;n<e.length;n++){const t=e[n];1===t.nodeType&&mt(t,"childNodes").length&&W(t)}},V=t=>{const e=[];for(let n=0;n<t.length;n++){const o=t[n]["s-nr"]||void 0;o&&o.isConnected&&e.push(o)}return e};function z(t,e,n){let o,s=0,l=[];for(;s<t.length;s++){if(o=t[s],o["s-sr"]&&(!e||o["s-hn"]===e)&&(void 0===n||q(o)===n)&&(l.push(o),void 0!==n))return l;l=[...l,...z(o.childNodes,e,n)]}return l}var H=(t,e,n=!0)=>{const o=[];(n&&t["s-sr"]||!t["s-sr"])&&o.push(t);let s=t;for(;s=s.nextSibling;)q(s)!==e||!n&&s["s-sr"]||o.push(s);return o},J=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,Y=(t,e,n,o)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const s=document.createTextNode("");if(s["s-nr"]=t,!e["s-cr"]||!e["s-cr"].parentNode)return;const l=e["s-cr"].parentNode,i=mt(l,n?"prepend":"appendChild");if(void 0!==o){s["s-oo"]=o;const t=mt(l,"childNodes"),e=[s];t.forEach((t=>{t["s-nr"]&&e.push(t)})),e.sort(((t,e)=>!t["s-oo"]||t["s-oo"]<(e["s-oo"]||0)?-1:!e["s-oo"]||e["s-oo"]<t["s-oo"]?1:0)),e.forEach((t=>i.call(l,t)))}else i.call(l,s);t["s-ol"]=s,t["s-sh"]=e["s-hn"]},q=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function G(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const e=e=>function(t){const n=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots. \n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const s=this["s-cr"].parentElement;return(s.__childNodes?s.childNodes:V(s.childNodes)).forEach((t=>{o===q(t)&&n.push(t)})),e?n.filter((t=>1===t.nodeType)):n}.bind(t);t.assignedElements=e(!0),t.assignedNodes=e(!1)}function K(t){t.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}function Q(t,e){var n;if(!(e=e||(null==(n=t["s-ol"])?void 0:n.parentElement)))return{slotNode:null,slotName:""};const o=t["s-sn"]=q(t)||"";return{slotNode:z(mt(e,"childNodes"),e.tagName,o)[0],slotName:o}}var X=t=>{const e=t.cloneNode;t.cloneNode=function(t){const n=this.shadowRoot&&true,o=e.call(this,!!n&&t);if(!n&&t){let t,e,n=0;const s=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-scs"],l=this.__childNodes||this.childNodes;for(;n<l.length;n++)t=l[n]["s-nr"],e=s.every((t=>!l[n][t])),t&&(o.__appendChild?o.__appendChild(t.cloneNode(!0)):o.appendChild(t.cloneNode(!0))),e&&o.appendChild(l[n].cloneNode(!0))}return o}},Z=t=>{t.__appendChild=t.appendChild,t.appendChild=function(t){const{slotName:e,slotNode:n}=Q(t,this);if(n){Y(t,n);const o=H(n,e),s=o[o.length-1],l=mt(s,"parentNode"),i=mt(l,"insertBefore")(t,s.nextSibling);return K(n),W(this),i}return this.__appendChild(t)}},tt=t=>{t.__removeChild=t.removeChild,t.removeChild=function(t){return t&&void 0!==t["s-sn"]&&z(this.__childNodes||this.childNodes,this.tagName,t["s-sn"])&&t.isConnected?(t.remove(),void W(this)):this.__removeChild(t)}},et=t=>{t.__prepend=t.prepend,t.prepend=function(...e){e.forEach((e=>{"string"==typeof e&&(e=this.ownerDocument.createTextNode(e));const n=(e["s-sn"]=q(e))||"",o=z(mt(this,"childNodes"),this.tagName,n)[0];if(o){Y(e,o,!0);const t=H(o,n)[0],s=mt(t,"parentNode"),l=mt(s,"insertBefore")(e,mt(t,"nextSibling"));return K(o),l}return 1===e.nodeType&&e.getAttribute("slot")&&(e.hidden=!0),t.__prepend(e)}))}},nt=t=>{t.__append=t.append,t.append=function(...t){t.forEach((t=>{"string"==typeof t&&(t=this.ownerDocument.createTextNode(t)),this.appendChild(t)}))}},ot=t=>{const e=t.insertAdjacentHTML;t.insertAdjacentHTML=function(t,n){if("afterbegin"!==t&&"beforeend"!==t)return e.call(this,t,n);const o=this.ownerDocument.createElement("_");let s;if(o.innerHTML=n,"afterbegin"===t)for(;s=o.firstChild;)this.prepend(s);else if("beforeend"===t)for(;s=o.firstChild;)this.append(s)}},st=t=>{t.insertAdjacentText=function(t,e){this.insertAdjacentHTML(t,e)}},lt=t=>{t.__insertBefore||(t.__insertBefore=t.insertBefore,t.insertBefore=function(t,e){const{slotName:n,slotNode:o}=Q(t,this),s=this.__childNodes?this.childNodes:V(this.childNodes);if(o){let l=!1;if(s.forEach((s=>{if(s!==e&&null!==e);else{if(l=!0,null===e||n!==e["s-sn"])return void this.appendChild(t);if(n===e["s-sn"]){Y(t,o);const n=mt(e,"parentNode");mt(n,"insertBefore")(t,e),K(o)}}})),l)return t}const l=null==e?void 0:e.__parentNode;return l&&!this.isSameNode(l)?this.appendChild(t):this.__insertBefore(t,e)})},it=t=>{const e=t.insertAdjacentElement;t.insertAdjacentElement=function(t,n){return"afterbegin"!==t&&"beforeend"!==t?e.call(this,t,n):"afterbegin"===t?(this.prepend(n),n):"beforeend"===t?(this.append(n),n):n}},rt=t=>{bt("textContent",t),Object.defineProperty(t,"textContent",{get:function(){let t="";return(this.__childNodes?this.childNodes:V(this.childNodes)).forEach((e=>t+=e.textContent||"")),t},set:function(t){(this.__childNodes?this.childNodes:V(this.childNodes)).forEach((t=>{t["s-ol"]&&t["s-ol"].remove(),t.remove()})),this.insertAdjacentHTML("beforeend",t)}})},ct=t=>{class e extends Array{item(t){return this[t]}}bt("children",t),Object.defineProperty(t,"children",{get(){return this.childNodes.filter((t=>1===t.nodeType))}}),Object.defineProperty(t,"childElementCount",{get(){return this.children.length}}),bt("firstChild",t),Object.defineProperty(t,"firstChild",{get(){return this.childNodes[0]}}),bt("lastChild",t),Object.defineProperty(t,"lastChild",{get(){return this.childNodes[this.childNodes.length-1]}}),bt("childNodes",t),Object.defineProperty(t,"childNodes",{get(){const t=new e;return t.push(...V(this.__childNodes)),t}})},ut=t=>{t&&void 0===t.__nextSibling&&globalThis.Node&&(ft(t),dt(t),pt(t),t.nodeType===Node.ELEMENT_NODE&&(at(t),ht(t)))},ft=t=>{t&&!t.__nextSibling&&(bt("nextSibling",t),Object.defineProperty(t,"nextSibling",{get:function(){var t;const e=null==(t=this["s-ol"])?void 0:t.parentNode.childNodes,n=null==e?void 0:e.indexOf(this);return e&&n>-1?e[n+1]:this.__nextSibling}}))},at=t=>{t&&!t.__nextElementSibling&&(bt("nextElementSibling",t),Object.defineProperty(t,"nextElementSibling",{get:function(){var t;const e=null==(t=this["s-ol"])?void 0:t.parentNode.children,n=null==e?void 0:e.indexOf(this);return e&&n>-1?e[n+1]:this.__nextElementSibling}}))},dt=t=>{t&&!t.__previousSibling&&(bt("previousSibling",t),Object.defineProperty(t,"previousSibling",{get:function(){var t;const e=null==(t=this["s-ol"])?void 0:t.parentNode.childNodes,n=null==e?void 0:e.indexOf(this);return e&&n>-1?e[n-1]:this.__previousSibling}}))},ht=t=>{t&&!t.__previousElementSibling&&(bt("previousElementSibling",t),Object.defineProperty(t,"previousElementSibling",{get:function(){var t;const e=null==(t=this["s-ol"])?void 0:t.parentNode.children,n=null==e?void 0:e.indexOf(this);return e&&n>-1?e[n-1]:this.__previousElementSibling}}))},pt=t=>{t&&!t.__parentNode&&(bt("parentNode",t),Object.defineProperty(t,"parentNode",{get:function(){var t;return(null==(t=this["s-ol"])?void 0:t.parentNode)||this.__parentNode},set:function(t){this.__parentNode=t}}))},vt=["children","nextElementSibling","previousElementSibling"],$t=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function bt(t,e){let n;vt.includes(t)?n=Object.getOwnPropertyDescriptor(Element.prototype,t):$t.includes(t)&&(n=Object.getOwnPropertyDescriptor(Node.prototype,t)),n||(n=Object.getOwnPropertyDescriptor(e,t)),n&&Object.defineProperty(e,"__"+t,n)}function mt(t,e){if("__"+e in t){const n=t["__"+e];return"function"!=typeof n?n:n.bind(t)}return"function"!=typeof t[e]?t[e]:t[e].bind(t)}var gt=(t,e,...n)=>{let o=null,s=null,l=null,i=!1,r=!1;const c=[],u=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!L(o))&&(o+=""),i&&r?c[c.length-1].i+=o:c.push(i?yt(null,o):o),r=i)};if(u(n),e){e.key&&(s=e.key),e.name&&(l=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,St);const f=yt(t,null);return f.u=e,c.length>0&&(f.h=c),f.p=s,f.v=l,f},yt=(t,e)=>({o:0,$:t,i:e,m:null,h:null,u:null,p:null,v:null}),wt={},St={forEach:(t,e)=>t.map(jt).forEach(e),map:(t,e)=>t.map(jt).map(e).map(Ot)},jt=t=>({vattrs:t.u,vchildren:t.h,vkey:t.p,vname:t.v,vtag:t.$,vtext:t.i}),Ot=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),gt(t.vtag,e,...t.vchildren||[])}const e=yt(t.vtag,t.vtext);return e.u=t.vattrs,e.h=t.vchildren,e.p=t.vkey,e.v=t.vname,e},Nt=(t,e,n,o,s,l,i,r=[])=>{let c,u,f,a;const d=s["s-sc"];if(1===l.nodeType){if(c=l.getAttribute($),c&&(u=c.split("."),u[0]===i||"0"===u[0])){f=Et({o:0,S:u[0],j:u[1],O:u[2],N:u[3],$:l.tagName.toLowerCase(),m:l,u:{class:l.className||""}}),e.push(f),l.removeAttribute($),t.h||(t.h=[]),d&&(l["s-si"]=d,f.u.class+=" "+d);const s=f.m.getAttribute("s-sn");"string"==typeof s&&("slot-fb"===f.$&&(kt(s,u[2],f,l,t,e,n,o,r),d&&l.classList.add(d)),f.m["s-sn"]=s,f.m.removeAttribute("s-sn")),void 0!==f.N&&(t.h[f.N]=f),t=f,o&&"0"===f.O&&(o[f.N]=f.m)}if(l.shadowRoot)for(a=l.shadowRoot.childNodes.length-1;a>=0;a--)Nt(t,e,n,o,s,l.shadowRoot.childNodes[a],i,r);const h=l.__childNodes||l.childNodes;for(a=h.length-1;a>=0;a--)Nt(t,e,n,o,s,h[a],i,r)}else if(8===l.nodeType)u=l.nodeValue.split("."),(u[1]===i||"0"===u[1])&&(c=u[0],f=Et({S:u[1],j:u[2],O:u[3],N:u[4]||"0",m:l,u:null,h:null,p:null,v:null,$:null,i:null}),"t"===c?(f.m=It(l,3),f.m&&3===f.m.nodeType&&(f.i=f.m.textContent,e.push(f),l.remove(),i===f.S&&(t.h||(t.h=[]),t.h[f.N]=f),o&&"0"===f.O&&(o[f.N]=f.m))):"c"===c?(f.m=It(l,8),f.m&&8===f.m.nodeType&&(e.push(f),l.remove())):f.S===i&&("s"===c?kt(l["s-sn"]=u[5]||"",u[2],f,l,t,e,n,o,r):"r"===c&&(o?l.remove():(s["s-cr"]=l,l["s-cn"]=!0))));else if(t&&"style"===t.$){const e=yt(null,l.textContent);e.m=l,e.N="0",t.h=[e]}else 3!==l.nodeType||l.wholeText.trim()||l.remove();return t},xt=(t,e)=>{if(1===t.nodeType){const n=t[p]||t.getAttribute(p);n&&e.set(n,t);let o=0;if(t.shadowRoot)for(;o<t.shadowRoot.childNodes.length;o++)xt(t.shadowRoot.childNodes[o],e);const s=t.__childNodes||t.childNodes;for(o=0;o<s.length;o++)xt(s[o],e)}else if(8===t.nodeType){const n=t.nodeValue.split(".");"o"===n[0]&&(e.set(n[1]+"."+n[2],t),t.nodeValue="",t["s-en"]=n[3])}},Et=t=>({o:0,S:null,j:null,O:null,N:"0",m:null,u:null,h:null,p:null,v:null,$:null,i:null,...t});function kt(t,e,n,o,s,l,i,r,c){o["s-sr"]=!0,n.v=t||null,n.$="slot";const u=(null==s?void 0:s.m)?s.m["s-id"]||s.m.getAttribute("s-id"):"";if(r&&g.document){const l=n.m=g.document.createElement(n.$);n.v&&n.m.setAttribute("name",t),u&&u!==n.S?s.m.insertBefore(l,s.m.children[0]):o.parentNode.insertBefore(n.m,o),Ct(c,e,t,o,n.S),o.remove(),"0"===n.O&&(r[n.N]=n.m)}else{const i=n.m,r=u&&u!==n.S&&s.m.shadowRoot;Ct(c,e,t,o,r?u:n.S),G(o),r&&s.m.insertBefore(i,s.m.children[0]),l.push(n)}i.push(n),s.h||(s.h=[]),s.h[n.N]=n}var Ct=(t,e,n,o,s)=>{let l=o.nextSibling;for(t[e]=t[e]||[];l&&((l.getAttribute&&l.getAttribute("slot")||l["s-sn"])===n||""===n&&!l["s-sn"]&&(8===l.nodeType&&1!==l.nodeValue.indexOf(".")||3===l.nodeType));)l["s-sn"]=n,t[e].push({slot:o,node:l,hostId:s}),l=l.nextSibling},It=(t,e)=>{let n=t;do{n=n.nextSibling}while(n&&(n.nodeType!==e||!n.nodeValue));return n},Mt=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};Mt("::slotted"),Mt(":host"),Mt(":host-context");var Rt,At,Lt,Tt=t=>h.push(t),Bt=t=>r(t).k,Pt=(t,e)=>{if("string"==typeof t&&(t.startsWith("{")&&t.endsWith("}")||t.startsWith("[")&&t.endsWith("]")))try{return JSON.parse(t)}catch(t){}return"string"==typeof t&&t.startsWith(i)?t=function(t){return"string"==typeof t&&t.startsWith(i)?B.fromLocalValue(JSON.parse(atob(t.slice(11)))):t}(t):null==t||L(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t},Ft=t=>r(t).$hostElement$,Ut=(t,e,n)=>{const o=Ft(t);return{emit:t=>_t(o,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},_t=(t,e,n)=>{const o=w.ce(e,n);return t.dispatchEvent(o),o},Dt=new WeakMap,Wt=(t,e,n)=>{let o=d.get(t);j&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,d.set(t,o)},Vt=(t,e,n)=>{var o;const s=zt(e,n),l=d.get(s);if(!g.document)return s;if(t=11===t.nodeType?t:g.document,l)if("string"==typeof l){let n,i=Dt.get(t=t.head||t);if(i||Dt.set(t,i=new Set),!i.has(s)){if(t.host&&(n=t.querySelector(`[${v}="${s}"]`)))n.innerHTML=l;else{n=document.querySelector(`[${v}="${s}"]`)||g.document.createElement("style"),n.innerHTML=l;const i=null!=(o=w.C)?o:T(g.document);if(null!=i&&n.setAttribute("nonce",i),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),o=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(n,(null==o?void 0:o.parentNode)===t?o:null)}else if("host"in t)if(j){const e=new CSSStyleSheet;e.replaceSync(l),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(n)}else t.append(n);1&e.o&&t.insertBefore(n,null)}4&e.o&&(n.innerHTML+=b),i&&i.add(s)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return s},zt=(t,e)=>"sc-"+(e&&32&t.o?t.I+"-"+e:t.I),Ht=t=>t.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),Jt=(t,e,n,o,s,l,i)=>{if(n===o)return;let r=u(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,s=qt(n);let l=qt(o);t["s-si"]&&i?(l.push(t["s-si"]),s.forEach((e=>{e.startsWith(t["s-si"])&&l.push(e)})),l=[...new Set(l)],e.add(...l)):(e.remove(...s.filter((t=>t&&!l.includes(t)))),e.add(...l.filter((t=>t&&!s.includes(t)))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("key"===e);else if("ref"===e)o&&o(t);else if(r||"o"!==e[0]||"n"!==e[1]){const i=L(o);if((r||i&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const s=null==o?"":o;"list"===e?r=!1:null!=n&&t[e]==s||("function"==typeof t.__lookupSetter__(e)?t[e]=s:t.setAttribute(e,s))}}catch(t){}let u=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(e=c,u=!0),null==o||!1===o?!1===o&&""!==t.getAttribute(e)||(u?t.removeAttributeNS(m,e):t.removeAttribute(e)):(!r||4&l||s)&&!i&&1===t.nodeType&&(o=!0===o?"":o,u?t.setAttributeNS(m,e,o):t.setAttribute(e,o))}else if(e="-"===e[2]?e.slice(3):u(g,c)?c.slice(2):c[2]+e.slice(3),n||o){const s=e.endsWith(Gt);e=e.replace(Kt,""),n&&w.rel(t,e,n,s),o&&w.ael(t,e,o,s)}},Yt=/\s/,qt=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(Yt):[]),Gt="Capture",Kt=RegExp(Gt+"$"),Qt=(t,e,n,o)=>{const s=11===e.m.nodeType&&e.m.host?e.m.host:e.m,l=t&&t.u||{},i=e.u||{};for(const t of Xt(Object.keys(l)))t in i||Jt(s,t,l[t],void 0,n,e.o,o);for(const t of Xt(Object.keys(i)))Jt(s,t,l[t],i[t],n,e.o,o)};function Xt(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var Zt=!1,te=!1,ee=!1,ne=!1,oe=(t,e,n)=>{var o;const s=e.h[n];let l,i,r,c=0;if(Zt||(ee=!0,"slot"===s.$&&(s.o|=s.h?2:1)),null!==s.i)l=s.m=g.document.createTextNode(s.i);else if(1&s.o)l=s.m=g.document.createTextNode(""),Qt(null,s,ne);else{if(ne||(ne="svg"===s.$),!g.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(l=s.m=g.document.createElementNS(ne?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!Zt&&2&s.o?"slot-fb":s.$),ne&&"foreignObject"===s.$&&(ne=!1),Qt(null,s,ne),null!=Rt&&void 0!==Rt&&l["s-si"]!==Rt&&l.classList.add(l["s-si"]=Rt),s.h)for(c=0;c<s.h.length;++c)i=oe(t,s,c),i&&l.appendChild(i);"svg"===s.$?ne=!1:"foreignObject"===l.tagName&&(ne=!0)}return l["s-hn"]=Lt,3&s.o&&(l["s-sr"]=!0,l["s-cr"]=At,l["s-sn"]=s.v||"",l["s-rf"]=null==(o=s.u)?void 0:o.ref,G(l),r=t&&t.h&&t.h[n],r&&r.$===s.$&&t.m&&se(t.m),ve(At,l,e.m,null==t?void 0:t.m)),l},se=t=>{w.o|=1;const e=t.closest(Lt.toLowerCase());if(null!=e){const n=Array.from(e.__childNodes||e.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of n?o.reverse():o)null!=t["s-sh"]&&(pe(e,t,null!=n?n:null),t["s-sh"]=void 0,ee=!0)}w.o&=-2},le=(t,e)=>{w.o|=1;const n=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let e=t;for(;e=e.nextSibling;)e&&e["s-sn"]===t["s-sn"]&&e["s-sh"]===Lt&&n.push(e)}for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==Lt&&o["s-ol"]&&(pe(ue(o).parentNode,o,ue(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,ee=!0),e&&le(o,e)}w.o&=-2},ie=(t,e,n,o,s,l)=>{let i,r=t["s-cr"]&&t["s-cr"].parentNode||t;for(r.shadowRoot&&r.tagName===Lt&&(r=r.shadowRoot);s<=l;++s)o[s]&&(i=oe(null,n,s),i&&(o[s].m=i,pe(r,i,ue(e))))},re=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.m;he(e),t&&(te=!0,t["s-ol"]?t["s-ol"].remove():le(t,!0),t.remove())}}},ce=(t,e,n=!1)=>t.$===e.$&&("slot"===t.$?t.v===e.v:n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),ue=t=>t&&t["s-ol"]||t,fe=(t,e,n=!1)=>{const o=e.m=t.m,s=t.h,l=e.h,i=e.$,r=e.i;let c;null===r?(ne="svg"===i||"foreignObject"!==i&&ne,"slot"!==i||Zt||t.v!==e.v&&(e.m["s-sn"]=e.v||"",se(e.m.parentElement)),Qt(t,e,ne,n),null!==s&&null!==l?((t,e,n,o,s=!1)=>{let l,i,r=0,c=0,u=0,f=0,a=e.length-1,d=e[0],h=e[a],p=o.length-1,v=o[0],$=o[p];for(;r<=a&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--a];else if(null==v)v=o[++c];else if(null==$)$=o[--p];else if(ce(d,v,s))fe(d,v,s),d=e[++r],v=o[++c];else if(ce(h,$,s))fe(h,$,s),h=e[--a],$=o[--p];else if(ce(d,$,s))"slot"!==d.$&&"slot"!==$.$||le(d.m.parentNode,!1),fe(d,$,s),pe(t,d.m,h.m.nextSibling),d=e[++r],$=o[--p];else if(ce(h,v,s))"slot"!==d.$&&"slot"!==$.$||le(h.m.parentNode,!1),fe(h,v,s),pe(t,h.m,d.m),h=e[--a],v=o[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].p&&e[f].p===v.p){u=f;break}u>=0?(i=e[u],i.$!==v.$?l=oe(e&&e[c],n,u):(fe(i,v,s),e[u]=void 0,l=i.m),v=o[++c]):(l=oe(e&&e[c],n,c),v=o[++c]),l&&pe(ue(d.m).parentNode,l,ue(d.m))}r>a?ie(t,null==o[p+1]?null:o[p+1].m,n,o,c,p):c>p&&re(e,r,a)})(o,s,e,l,n):null!==l?(null!==t.i&&(o.textContent=""),ie(o,null,e,l,0,l.length-1)):!n&&null!==s&&re(s,0,s.length-1),ne&&"svg"===i&&(ne=!1)):(c=o["s-cr"])?c.parentNode.textContent=r:t.i!==r&&(o.data=r)},ae=[],de=t=>{let e,n,o;const s=t.__childNodes||t.childNodes;for(const t of s){if(t["s-sr"]&&(e=t["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;const s=t["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!(e["s-cn"]||e["s-nr"]||e["s-hn"]===t["s-hn"]||e["s-sh"]&&e["s-sh"]===t["s-hn"]))if(J(e,s)){let n=ae.find((t=>t.M===e));te=!0,e["s-sn"]=e["s-sn"]||s,n?(n.M["s-sh"]=t["s-hn"],n.R=t):(e["s-sh"]=t["s-hn"],ae.push({R:t,M:e})),e["s-sr"]&&ae.map((t=>{J(t.M,e["s-sn"])&&(n=ae.find((t=>t.M===e)),n&&!t.R&&(t.R=n.R))}))}else ae.some((t=>t.M===e))||ae.push({M:e})}1===t.nodeType&&de(t)}},he=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map(he)},pe=(t,e,n)=>{if("string"==typeof e["s-sn"]&&e["s-sr"]&&e["s-cr"])ve(e["s-cr"],e,t,e.parentElement);else if("string"==typeof e["s-sn"]){11!==t.getRootNode().nodeType&&pt(e),t.insertBefore(e,n);const{slotNode:o}=Q(e);return o&&K(o),e}return t.__insertBefore?t.__insertBefore(e,n):null==t?void 0:t.insertBefore(e,n)};function ve(t,e,n,o){var s,l;let i;if(t&&"string"==typeof e["s-sn"]&&e["s-sr"]&&t.parentNode&&t.parentNode["s-sc"]&&(i=e["s-si"]||t.parentNode["s-sc"])){const t=e["s-sn"],r=e["s-hn"];if(null==(s=n.classList)||s.add(i+"-s"),o&&(null==(l=o.classList)?void 0:l.contains(i+"-s"))){let e=(o.__childNodes||o.childNodes)[0],n=!1;for(;e;){if(e["s-sn"]!==t&&e["s-hn"]===r&&e["s-sr"]){n=!0;break}e=e.nextSibling}n||o.classList.remove(i+"-s")}}}var $e=(t,e)=>{if(e&&!t.A&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.A=()=>{e["s-p"].splice(n-1,1),o()})))}},be=(t,e)=>{if(t.o|=16,!(4&t.o))return $e(t,t.L),R((()=>me(t,e)));t.o|=512},me=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let s;return e?(t.o|=256,t.T&&(t.T.map((([t,e])=>xe(o,t,e,n))),t.T=void 0),s=xe(o,"componentWillLoad",void 0,n)):s=xe(o,"componentWillUpdate",void 0,n),s=ge(s,(()=>xe(o,"componentWillRender",void 0,n))),ge(s,(()=>we(t,o,e)))},ge=(t,e)=>ye(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),ye=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,we=async(t,e,n)=>{var o;const s=t.$hostElement$,l=s["s-rc"];n&&(t=>{const e=t.B,n=t.$hostElement$,o=e.o,s=Vt(n.shadowRoot?n.shadowRoot:n.getRootNode(),e,t.k);10&o&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(t);Se(t,e,s,n),l&&(l.map((t=>t())),s["s-rc"]=void 0);{const e=null!=(o=s["s-p"])?o:[],n=()=>je(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},Se=(t,e,n,o)=>{try{e=e.render&&e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{var o,s,l,i,r;const c=t.$hostElement$,u=t.B,f=t.P||yt(null,null),a=(t=>t&&t.$===wt)(e)?e:gt(null,null,e);if(Lt=c.tagName,u.F&&(a.u=a.u||{},u.F.map((([t,e])=>a.u[e]=c[t]))),n&&a.u)for(const t of Object.keys(a.u))c.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(a.u[t]=c[t]);if(a.$=null,a.o|=4,t.P=a,a.m=f.m=c.shadowRoot||c,Rt=c["s-sc"],Zt=!(!(1&u.o)||128&u.o),At=c["s-cr"],te=!1,fe(f,a,n),w.o|=1,ee){de(a.m);for(const t of ae){const e=t.M;if(!e["s-ol"]&&g.document){const t=g.document.createTextNode("");t["s-nr"]=e,pe(e.parentNode,e["s-ol"]=t,e)}}for(const t of ae){const e=t.M,r=t.R;if(r){const t=r.parentNode;let n=r.nextSibling;if(n&&1===n.nodeType){let l=null==(o=e["s-ol"])?void 0:o.previousSibling;for(;l;){let o=null!=(s=l["s-nr"])?s:null;if(o&&o["s-sn"]===e["s-sn"]&&t===(o.__parentNode||o.parentNode)){for(o=o.nextSibling;o===e||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){n=o;break}}l=l.previousSibling}}(!n&&t!==(e.__parentNode||e.parentNode)||(e.__nextSibling||e.nextSibling)!==n)&&e!==n&&(pe(t,e,n),1===e.nodeType&&"SLOT-FB"!==e.tagName&&(e.hidden=null!=(l=e["s-ih"])&&l)),e&&"function"==typeof r["s-rf"]&&r["s-rf"](r)}else 1===e.nodeType&&(n&&(e["s-ih"]=null!=(i=e.hidden)&&i),e.hidden=!0)}}if(te&&W(a.m),w.o&=-2,ae.length=0,2&u.o){const t=a.m.__childNodes||a.m.childNodes;for(const e of t)e["s-hn"]===Lt||e["s-sh"]||(n&&null==e["s-ih"]&&(e["s-ih"]=null!=(r=e.hidden)&&r),e.hidden=!0)}At=void 0})(t,e,o)}catch(e){f(e,t.$hostElement$)}return null},je=t=>{const e=t.$hostElement$,n=t.t,o=t.L;xe(n,"componentDidRender",void 0,e),64&t.o?xe(n,"componentDidUpdate",void 0,e):(t.o|=64,Ee(e),xe(n,"componentDidLoad",void 0,e),t.U(e),o||Ne()),t._(e),t.A&&(t.A(),t.A=void 0),512&t.o&&I((()=>be(t,!1))),t.o&=-517},Oe=t=>{{const e=r(t),n=e.$hostElement$.isConnected;return n&&2==(18&e.o)&&be(e,!1),n}},Ne=()=>{I((()=>_t(g,"appload",{detail:{namespace:"ionic"}})))},xe=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){f(t,o)}},Ee=t=>t.classList.add("hydrated"),ke=(t,e,n,o)=>{const s=r(t);if(!s)throw Error(`Couldn't find host element for "${o.I}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const l=s.$hostElement$,i=s.D.get(e),c=s.o,u=s.t;if(n=Pt(n,o.W[e][0]),(!(8&c)||void 0===i)&&n!==i&&(!Number.isNaN(i)||!Number.isNaN(n))&&(s.D.set(e,n),u)){if(o.V&&128&c){const t=o.V[e];t&&t.map((t=>{try{u[t](n,i,e)}catch(t){f(t,l)}}))}if(2==(18&c)){if(u.componentShouldUpdate&&!1===u.componentShouldUpdate(n,i,e))return;be(s,!1)}}},Ce=(t,e,n)=>{var o,s;const l=t.prototype;if(e.W||e.V||t.watchers){t.watchers&&!e.V&&(e.V=t.watchers);const i=Object.entries(null!=(o=e.W)?o:{});if(i.map((([t,[o]])=>{if(31&o||2&n&&32&o){const{get:s,set:i}=Object.getOwnPropertyDescriptor(l,t)||{};s&&(e.W[t][0]|=2048),i&&(e.W[t][0]|=4096),(1&n||!s)&&Object.defineProperty(l,t,{get(){{if(!(2048&e.W[t][0]))return((t,e)=>r(this).D.get(e))(0,t);const n=r(this),o=n?n.t:l;if(!o)return;return o[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(l,t,{set(s){const l=r(this);if(i){const n=32&o?this[t]:l.$hostElement$[t];return void 0===n&&l.D.get(t)?s=l.D.get(t):!l.D.get(t)&&n&&l.D.set(t,n),i.call(this,Pt(s,o)),void ke(this,t,s=32&o?this[t]:l.$hostElement$[t],e)}{if(!(1&n&&4096&e.W[t][0]))return ke(this,t,s,e),void(1&n&&!l.t&&l.H.then((()=>{4096&e.W[t][0]&&l.t[t]!==l.D.get(t)&&(l.t[t]=s)})));const i=()=>{const n=l.t[t];!l.D.get(t)&&n&&l.D.set(t,n),l.t[t]=Pt(s,o),ke(this,t,l.t[t],e)};l.t?i():l.H.then((()=>i()))}}})}else 1&n&&64&o&&Object.defineProperty(l,t,{value(...e){var n;const o=r(this);return null==(n=null==o?void 0:o.J)?void 0:n.then((()=>{var n;return null==(n=o.t)?void 0:n[t](...e)}))}})})),1&n){const n=new Map;l.attributeChangedCallback=function(t,o,s){w.jmp((()=>{var i;const c=n.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(l.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const n=r(this),l=null==n?void 0:n.o;if(l&&!(8&l)&&128&l&&s!==o){const l=n.t,r=null==(i=e.V)?void 0:i[t];null==r||r.forEach((e=>{null!=l[e]&&l[e].call(l,s,o,t)}))}return}}const u=Object.getOwnPropertyDescriptor(l,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.V)?s:{}),...i.filter((([t,e])=>15&e[0])).map((([t,o])=>{var s;const l=o[1]||t;return n.set(l,t),512&o[0]&&(null==(s=e.F)||s.push([t,l])),l}))]))}}return t},Ie=(t,e)=>{xe(t,"connectedCallback",void 0,e)},Me=t=>{if(!(1&w.o)){const e=r(t),n=e.B,o=()=>{};if(1&e.o)Te(t,e,n.Y),(null==e?void 0:e.t)?Ie(e.t,t):(null==e?void 0:e.H)&&e.H.then((()=>Ie(e.t,t)));else{let o;if(e.o|=1,o=t.getAttribute(p),o){if(1&n.o){const e=Vt(t.shadowRoot,n,t.getAttribute("s-mode"));t.classList.remove(e+"-h",e+"-s")}else if(2&n.o){const e=zt(n,t.getAttribute("s-mode"));t["s-sc"]=e}((t,e,n,o)=>{var s;const l=t.shadowRoot,i=[],r=[],c=[],u=l?[]:null,f=yt(e,null);let a;f.m=t,Object.entries((null==(s=o.B)?void 0:s.W)||{}).forEach((([e,[n,s]])=>{var l;if(!(31&n))return;const i=t.getAttribute(s||e);if(null!==i){const t=Pt(i,n);null==(l=null==o?void 0:o.D)||l.set(e,t)}}));{const e=o.B;e&&10&e.o&&t["s-sc"]?(a=t["s-sc"],t.classList.add(a+"-h")):t["s-sc"]&&delete t["s-sc"]}!g.document||w.q&&w.q.size||xt(g.document.body,w.q=new Map),t[p]=n,t.removeAttribute(p),o.P=Nt(f,i,r,u,t,t,n,c);let d=0;const h=i.length;let v;for(;d<h;d++){v=i[d];const n=v.S+"."+v.j,o=w.q.get(n),s=v.m;l||(s["s-hn"]=e.toUpperCase(),"slot"===v.$&&(s["s-cr"]=t["s-cr"])),"slot"===v.$&&(v.v=v.m["s-sn"]||v.m.name||null,v.h?(v.o|=2,v.m.childNodes.length||v.h.forEach((t=>{v.m.appendChild(t.m)}))):v.o|=1),o&&o.isConnected&&(l&&""===o["s-en"]&&o.parentNode.insertBefore(s,o.nextSibling),o.parentNode.removeChild(o),l||(s["s-oo"]=parseInt(v.j))),w.q.delete(n)}const $=[],b=c.length;let m,y,S,j,O=0;for(;O<b;O++)if(m=c[O],m&&m.length)for(S=m.length,y=0;y<S;y++){if(j=m[y],$[j.hostId]||($[j.hostId]=w.q.get(j.hostId)),!$[j.hostId])continue;const t=$[j.hostId];t.shadowRoot&&l||(j.slot["s-cr"]=t["s-cr"],j.slot["s-cr"]=!j.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0],Y(j.node,j.slot,!1,j.node["s-oo"]),ut(j.node)),t.shadowRoot&&j.node.parentElement!==t&&t.appendChild(j.node)}if(a&&r.length&&r.forEach((t=>{t.m.parentElement.classList.add(a+"-s")})),l&&!l.childNodes.length){let e=0;const n=u.length;if(n){for(;e<n;e++)l.appendChild(u[e]);Array.from(t.childNodes).forEach((t=>{"string"!=typeof t["s-sn"]&&(1===t.nodeType&&t.slot&&t.hidden?t.removeAttribute("hidden"):(8===t.nodeType||3===t.nodeType&&!t.wholeText.trim())&&t.parentNode.removeChild(t))}))}}w.q.delete(t["s-id"]),o.$hostElement$=t})(t,n.I,o,e)}o||12&n.o&&Re(t);{let n=t;for(;n=n.parentNode||n.host;)if(1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){$e(e,e.L=n);break}}n.W&&Object.entries(n.W).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.G){const s=((t,e)=>{const n=t.I.replace(/-/g,"_"),o=t.G;if(!o)return;const s=a.get(o);return s?s[n]:import(`./${o}.entry.js`).then((t=>(a.set(o,t),t[n])),(t=>{f(t,e.$hostElement$)}))
5
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(s&&"then"in s){const t=()=>{};o=await s,t()}else o=s;if(!o)throw Error(`Constructor for "${n.I}#${e.k}" was not found`);o.isProxied||(n.V=o.watchers,Ce(o,n,2),o.isProxied=!0);const l=()=>{};e.o|=8;try{new o(e)}catch(e){f(e,t)}e.o&=-9,e.o|=128,l(),Ie(e.t,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let s;"string"==typeof o.style?s=o.style:"string"!=typeof o.style&&(e.k=(t=>h.map((e=>e(t))).find((t=>!!t)))(t),e.k&&(s=o.style[e.k]));const l=zt(n,e.k);if(!d.has(l)){const t=()=>{};Wt(l,s,!!(1&n.o)),t()}}}const s=e.L,l=()=>be(e,!0);s&&s["s-rc"]?s["s-rc"].push(l):l()})(t,e,n)}o()}},Re=t=>{if(!g.document)return;const e=t["s-cr"]=g.document.createComment("");e["s-cn"]=!0,pe(t,e,t.firstChild)},Ae=(t,e)=>{xe(t,"disconnectedCallback",void 0,e||t)},Le=(t,e={})=>{var n;if(!g.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const o=[],s=e.exclude||[],l=g.customElements,i=g.document.head,c=i.querySelector("meta[charset]"),u=g.document.createElement("style"),f=[];let a,d=!0;Object.assign(w,e),w.l=new URL(e.resourcesUrl||"./",g.document.baseURI).href,w.o|=2,(()=>{if(!g.document)return;const t=g.document.querySelectorAll(`[${v}]`);let e=0;for(;e<t.length;e++)Wt(t[e].getAttribute(v),Ht(t[e].innerHTML),!0)})();let h=!1;if(t.map((t=>{t[1].map((e=>{var n;const i={o:e[0],I:e[1],W:e[2],Y:e[3]};4&i.o&&(h=!0),i.W=e[2],i.Y=e[3],i.F=[],i.V=null!=(n=e[4])?n:{};const c=i.I,u=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,e)=>{const n={o:0,$hostElement$:t,B:e,D:new Map};n.J=new Promise((t=>n._=t)),n.H=new Promise((t=>n.U=t)),t["s-p"]=[],t["s-rc"]=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,i),1&i.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${i.I}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open",delegatesFocus:!!(16&i.o)})}connectedCallback(){const t=r(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Te(this,t,i.Y)),a&&(clearTimeout(a),a=null),d?f.push(this):w.jmp((()=>Me(this)))}disconnectedCallback(){w.jmp((()=>(async t=>{if(!(1&w.o)){const e=r(t);e.K&&(e.K.map((t=>t())),e.K=void 0),(null==e?void 0:e.t)?Ae(e.t,t):(null==e?void 0:e.H)&&e.H.then((()=>Ae(e.t,t)))}Dt.has(t)&&Dt.delete(t),t.shadowRoot&&Dt.has(t.shadowRoot)&&Dt.delete(t.shadowRoot)})(this))),w.raf((()=>{var t;const e=r(this),n=f.findIndex((t=>t===this));n>-1&&f.splice(n,1),(null==(t=null==e?void 0:e.P)?void 0:t.m)instanceof Node&&!e.P.m.isConnected&&delete e.P.m}))}componentOnReady(){return r(this).H}};2&i.o&&(t=>{X(t),Z(t),nt(t),et(t),it(t),ot(t),st(t),lt(t),rt(t),ct(t),tt(t)})(u.prototype),i.G=t[0],s.includes(c)||l.get(c)||(o.push(c),l.define(c,Ce(u,i,1)))}))})),o.length>0&&(h&&(u.textContent+=b),u.textContent+=o.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",u.innerHTML.length)){u.setAttribute("data-styles","");const t=null!=(n=w.C)?n:T(g.document);null!=t&&u.setAttribute("nonce",t),i.insertBefore(u,c?c.nextSibling:i.firstChild)}d=!1,f.length?f.map((t=>t.connectedCallback())):w.jmp((()=>a=setTimeout(Ne,30)))},Te=(t,e,n)=>{n&&g.document&&n.map((([n,o,s])=>{const l=Pe(g.document,t,n),i=Be(e,s),r=Fe(n);w.ael(l,o,i,r),(e.K=e.K||[]).push((()=>w.rel(l,o,i,r)))}))},Be=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.T=t.T||[]).push([e,n])}catch(e){f(e,t.$hostElement$)}},Pe=(t,e,n)=>4&n?t:8&n?g:16&n?t.body:e,Fe=t=>({passive:!!(1&t),capture:!!(2&t)}),Ue=t=>w.C=t;export{e as B,y as H,M as a,Le as b,Ut as c,wt as d,A as e,Oe as f,Ft as g,gt as h,Bt as i,Tt as j,S as p,c as r,Ue as s,R as w}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{i as t,j as o}from"./p-C5UXyyFe.js";class e{constructor(){this.m=new Map}reset(t){this.m=new Map(Object.entries(t))}get(t,o){const e=this.m.get(t);return void 0!==e?e:o}getBoolean(t,o=!1){const e=this.m.get(t);return void 0===e?o:"string"==typeof e?"true"===e:!!e}getNumber(t,o){const e=parseFloat(this.m.get(t));return isNaN(e)?void 0!==o?o:NaN:e}set(t,o){this.m.set(t,o)}}const n=new e,i="ionic:",r="ionic-persist-config",s=t=>c(t),d=(t,o)=>("string"==typeof t&&(o=t,t=void 0),s(t).includes(o)),c=(t=window)=>{if(void 0===t)return[];t.Ionic=t.Ionic||{};let o=t.Ionic.platforms;return null==o&&(o=t.Ionic.platforms=a(t),o.forEach((o=>t.document.documentElement.classList.add(`plt-${o}`)))),o},a=t=>{const o=n.get("platform");return Object.keys(w).filter((e=>{const n=null==o?void 0:o[e];return"function"==typeof n?n(t):w[e](t)}))},u=t=>!!b(t,/iPad/i)||!(!b(t,/Macintosh/i)||!p(t)),l=t=>b(t,/android|sink/i),p=t=>f(t,"(any-pointer:coarse)"),m=t=>v(t)||h(t),v=t=>!!(t.cordova||t.phonegap||t.PhoneGap),h=t=>{const o=t.Capacitor;return!!((null==o?void 0:o.isNative)||(null==o?void 0:o.isNativePlatform)&&o.isNativePlatform())},b=(t,o)=>o.test(t.navigator.userAgent),f=(t,o)=>{var e;return null===(e=t.matchMedia)||void 0===e?void 0:e.call(t,o).matches},w={ipad:u,iphone:t=>b(t,/iPhone/i),ios:t=>b(t,/iPhone|iPod/i)||u(t),android:l,phablet:t=>{const o=t.innerWidth,e=t.innerHeight,n=Math.min(o,e),i=Math.max(o,e);return n>390&&n<520&&i>620&&i<800},tablet:t=>{const o=t.innerWidth,e=t.innerHeight,n=Math.min(o,e),i=Math.max(o,e);return u(t)||(t=>l(t)&&!b(t,/mobile/i))(t)||n>460&&n<820&&i>780&&i<1400},cordova:v,capacitor:h,electron:t=>b(t,/electron/i),pwa:t=>{var o;return!(!(null===(o=t.matchMedia)||void 0===o?void 0:o.call(t,"(display-mode: standalone)").matches)&&!t.navigator.standalone)},mobile:p,mobileweb:t=>p(t)&&!m(t),desktop:t=>!p(t),hybrid:m};let y;const g=o=>o&&t(o)||y,O=(t={})=>{if("undefined"==typeof window)return;const e=window.document,s=window,a=s.Ionic=s.Ionic||{},u=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(t=>{try{const o=t.sessionStorage.getItem(r);return null!==o?JSON.parse(o):{}}catch(t){return{}}})(s)),{persistConfig:!1}),a.config),(t=>{const o={};return t.location.search.slice(1).split("&").map((t=>t.split("="))).map((([t,o])=>{try{return[decodeURIComponent(t),decodeURIComponent(o)]}catch(t){return["",""]}})).filter((([t])=>{return t.substr(0,(o=i).length)===o;var o})).map((([t,o])=>[t.slice(6),o])).forEach((([t,e])=>{o[t]=e})),o})(s)),t);n.reset(u),n.getBoolean("persistConfig")&&((t,o)=>{try{t.sessionStorage.setItem(r,JSON.stringify(o))}catch(t){return}})(s,u),c(s),a.config=n,a.mode=y=n.get("mode",e.documentElement.getAttribute("mode")||(d(s,"ios")?"ios":"md")),n.set("mode",y),e.documentElement.setAttribute("mode",y),e.documentElement.classList.add(y),n.getBoolean("_testing")&&n.set("animated",!1);const l=t=>{var o;return null===(o=t.tagName)||void 0===o?void 0:o.startsWith("ION-")},p=t=>["ios","md"].includes(t);o((t=>{for(;t;){const o=t.mode||t.getAttribute("mode");if(o){if(p(o))return o;l(t)&&console.warn('Invalid ionic mode: "'+o+'", expected: "ios" or "md"')}t=t.parentElement}return y}))};export{d as a,g as b,n as c,s as g,O as i}
4
+ import{i as t,j as o}from"./p-EP3pwcdb.js";class e{constructor(){this.m=new Map}reset(t){this.m=new Map(Object.entries(t))}get(t,o){const e=this.m.get(t);return void 0!==e?e:o}getBoolean(t,o=!1){const e=this.m.get(t);return void 0===e?o:"string"==typeof e?"true"===e:!!e}getNumber(t,o){const e=parseFloat(this.m.get(t));return isNaN(e)?void 0!==o?o:NaN:e}set(t,o){this.m.set(t,o)}}const n=new e,i="ionic:",r="ionic-persist-config",s=t=>c(t),d=(t,o)=>("string"==typeof t&&(o=t,t=void 0),s(t).includes(o)),c=(t=window)=>{if(void 0===t)return[];t.Ionic=t.Ionic||{};let o=t.Ionic.platforms;return null==o&&(o=t.Ionic.platforms=a(t),o.forEach((o=>t.document.documentElement.classList.add(`plt-${o}`)))),o},a=t=>{const o=n.get("platform");return Object.keys(w).filter((e=>{const n=null==o?void 0:o[e];return"function"==typeof n?n(t):w[e](t)}))},u=t=>!!b(t,/iPad/i)||!(!b(t,/Macintosh/i)||!p(t)),l=t=>b(t,/android|sink/i),p=t=>f(t,"(any-pointer:coarse)"),m=t=>v(t)||h(t),v=t=>!!(t.cordova||t.phonegap||t.PhoneGap),h=t=>{const o=t.Capacitor;return!!((null==o?void 0:o.isNative)||(null==o?void 0:o.isNativePlatform)&&o.isNativePlatform())},b=(t,o)=>o.test(t.navigator.userAgent),f=(t,o)=>{var e;return null===(e=t.matchMedia)||void 0===e?void 0:e.call(t,o).matches},w={ipad:u,iphone:t=>b(t,/iPhone/i),ios:t=>b(t,/iPhone|iPod/i)||u(t),android:l,phablet:t=>{const o=t.innerWidth,e=t.innerHeight,n=Math.min(o,e),i=Math.max(o,e);return n>390&&n<520&&i>620&&i<800},tablet:t=>{const o=t.innerWidth,e=t.innerHeight,n=Math.min(o,e),i=Math.max(o,e);return u(t)||(t=>l(t)&&!b(t,/mobile/i))(t)||n>460&&n<820&&i>780&&i<1400},cordova:v,capacitor:h,electron:t=>b(t,/electron/i),pwa:t=>{var o;return!(!(null===(o=t.matchMedia)||void 0===o?void 0:o.call(t,"(display-mode: standalone)").matches)&&!t.navigator.standalone)},mobile:p,mobileweb:t=>p(t)&&!m(t),desktop:t=>!p(t),hybrid:m};let g;const y=o=>o&&t(o)||g,O=(t={})=>{if("undefined"==typeof window)return;const e=window.document,s=window,a=s.Ionic=s.Ionic||{},u=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(t=>{try{const o=t.sessionStorage.getItem(r);return null!==o?JSON.parse(o):{}}catch(t){return{}}})(s)),{persistConfig:!1}),a.config),(t=>{const o={};return t.location.search.slice(1).split("&").map((t=>t.split("="))).map((([t,o])=>{try{return[decodeURIComponent(t),decodeURIComponent(o)]}catch(t){return["",""]}})).filter((([t])=>{return t.substr(0,(o=i).length)===o;var o})).map((([t,o])=>[t.slice(6),o])).forEach((([t,e])=>{o[t]=e})),o})(s)),t);n.reset(u),n.getBoolean("persistConfig")&&((t,o)=>{try{t.sessionStorage.setItem(r,JSON.stringify(o))}catch(t){return}})(s,u),c(s),a.config=n,a.mode=g=n.get("mode",e.documentElement.getAttribute("mode")||(d(s,"ios")?"ios":"md")),n.set("mode",g),e.documentElement.setAttribute("mode",g),e.documentElement.classList.add(g),n.getBoolean("_testing")&&n.set("animated",!1);const l=t=>{var o;return null===(o=t.tagName)||void 0===o?void 0:o.startsWith("ION-")},p=t=>["ios","md"].includes(t);o((t=>{for(;t;){const o=t.mode||t.getAttribute("mode");if(o){if(p(o))return o;l(t)&&console.warn('Invalid ionic mode: "'+o+'", expected: "ios" or "md"')}t=t.parentElement}return g}))};export{d as a,y as b,n as c,s as g,O as i}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{d as t}from"./p-ZjP4CjeZ.js";import{MENU_BACK_BUTTON_PRIORITY as e}from"./p-BTEIaRld.js";import{a as n}from"./p-CeCT60rb.js";import{c as r}from"./p-Di6ciXLG.js";import{b as s}from"./p-XWSYNdC9.js";import{c as a}from"./p-yluxF5qo.js";const o=t=>a().duration(t?400:300),i=t=>{let e,n;const r=t.width+8,i=a(),u=a();t.isEndSide?(e=r+"px",n="0px"):(e=-r+"px",n="0px"),i.addElement(t.menuInnerEl).fromTo("transform",`translateX(${e})`,`translateX(${n})`);const c="ios"===s(t),p=c?.2:.25;return u.addElement(t.backdropEl).fromTo("opacity",.01,p),o(c).addAnimation([i,u])},u=t=>{let e,n;const r=s(t),i=t.width;t.isEndSide?(e=-i+"px",n=i+"px"):(e=i+"px",n=-i+"px");const u=a().addElement(t.menuInnerEl).fromTo("transform",`translateX(${n})`,"translateX(0px)"),c=a().addElement(t.contentEl).fromTo("transform","translateX(0px)",`translateX(${e})`),p=a().addElement(t.backdropEl).fromTo("opacity",.01,.32);return o("ios"===r).addAnimation([u,c,p])},c=t=>{const e=s(t),n=t.width*(t.isEndSide?-1:1)+"px",r=a().addElement(t.contentEl).fromTo("transform","translateX(0px)",`translateX(${n})`);return o("ios"===e).addAnimation(r)},p=(()=>{const s=new Map,a=[],o=async(t,e=!1)=>{if(await w(),"start"===t||"end"===t){const r=a.filter((e=>e.side===t&&!e.disabled));if(r.length>=1)return r.length>1&&e&&n(`menuController queried for a menu on the "${t}" side, but ${r.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,r.map((t=>t.el))),r[0].el;const s=a.filter((e=>e.side===t));if(s.length>=1)return s.length>1&&e&&n(`menuController queried for a menu on the "${t}" side, but ${s.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,s.map((t=>t.el))),s[0].el}else if(null!=t)return d((e=>e.menuId===t));return d((t=>!t.disabled))||(a.length>0?a[0].el:void 0)},p=async()=>(await w(),f()),m=(t,e)=>{s.set(t,e)},f=()=>d((t=>t._isOpen)),l=()=>a.some((t=>t.isAnimating)),d=t=>{const e=a.find(t);if(void 0!==e)return e.el},w=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map((t=>new Promise((e=>r(t,e))))));return m("reveal",c),m("push",u),m("overlay",i),null==t||t.addEventListener("ionBackButton",(t=>{const n=f();n&&t.detail.register(e,(()=>n.close()))})),{registerAnimation:m,get:o,getMenus:async()=>(await w(),a.map((t=>t.el))),getOpen:p,isEnabled:async t=>{const e=await o(t);return!!e&&!e.disabled},swipeGesture:async(t,e)=>{const n=await o(e);return n&&(n.swipeGesture=t),n},isAnimating:async()=>(await w(),l()),isOpen:async t=>{if(null!=t){const e=await o(t);return void 0!==e&&e.isOpen()}return void 0!==await p()},enable:async(t,e)=>{const n=await o(e);return n&&(n.disabled=!t),n},toggle:async t=>{const e=await o(t,!0);return!!e&&e.toggle()},close:async t=>{const e=await(void 0!==t?o(t,!0):p());return void 0!==e&&e.close()},open:async t=>{const e=await o(t,!0);return!!e&&e.open()},_getOpenSync:f,_createAnimation:(t,e)=>{const n=s.get(t);if(!n)throw new Error("animation not registered");return n(e)},_register:t=>{a.indexOf(t)<0&&a.push(t)},_unregister:t=>{const e=a.indexOf(t);e>-1&&a.splice(e,1)},_setOpen:async(t,e,n,r)=>{if(l())return!1;if(e){const e=await p();e&&t.el!==e&&await e.setOpen(!1,!1)}return t._setOpen(e,n,r)}}})();export{p as m}
4
+ import{d as t}from"./p-ZjP4CjeZ.js";import{MENU_BACK_BUTTON_PRIORITY as e}from"./p-DGw3g412.js";import{a as n}from"./p-C-oNjncL.js";import{c as r}from"./p-Di6ciXLG.js";import{b as s}from"./p-HRylM0tf.js";import{c as a}from"./p-yluxF5qo.js";const o=t=>a().duration(t?400:300),i=t=>{let e,n;const r=t.width+8,i=a(),u=a();t.isEndSide?(e=r+"px",n="0px"):(e=-r+"px",n="0px"),i.addElement(t.menuInnerEl).fromTo("transform",`translateX(${e})`,`translateX(${n})`);const c="ios"===s(t),p=c?.2:.25;return u.addElement(t.backdropEl).fromTo("opacity",.01,p),o(c).addAnimation([i,u])},u=t=>{let e,n;const r=s(t),i=t.width;t.isEndSide?(e=-i+"px",n=i+"px"):(e=i+"px",n=-i+"px");const u=a().addElement(t.menuInnerEl).fromTo("transform",`translateX(${n})`,"translateX(0px)"),c=a().addElement(t.contentEl).fromTo("transform","translateX(0px)",`translateX(${e})`),p=a().addElement(t.backdropEl).fromTo("opacity",.01,.32);return o("ios"===r).addAnimation([u,c,p])},c=t=>{const e=s(t),n=t.width*(t.isEndSide?-1:1)+"px",r=a().addElement(t.contentEl).fromTo("transform","translateX(0px)",`translateX(${n})`);return o("ios"===e).addAnimation(r)},p=(()=>{const s=new Map,a=[],o=async(t,e=!1)=>{if(await d(),"start"===t||"end"===t){const r=a.filter((e=>e.side===t&&!e.disabled));if(r.length>=1)return r.length>1&&e&&n(`menuController queried for a menu on the "${t}" side, but ${r.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,r.map((t=>t.el))),r[0].el;const s=a.filter((e=>e.side===t));if(s.length>=1)return s.length>1&&e&&n(`menuController queried for a menu on the "${t}" side, but ${s.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,s.map((t=>t.el))),s[0].el}else if(null!=t)return w((e=>e.menuId===t));return w((t=>!t.disabled))||(a.length>0?a[0].el:void 0)},p=async()=>(await d(),f()),m=(t,e)=>{s.set(t,e)},f=()=>w((t=>t._isOpen)),l=()=>a.some((t=>t.isAnimating)),w=t=>{const e=a.find(t);if(void 0!==e)return e.el},d=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map((t=>new Promise((e=>r(t,e))))));return m("reveal",c),m("push",u),m("overlay",i),null==t||t.addEventListener("ionBackButton",(t=>{const n=f();n&&t.detail.register(e,(()=>n.close()))})),{registerAnimation:m,get:o,getMenus:async()=>(await d(),a.map((t=>t.el))),getOpen:p,isEnabled:async t=>{const e=await o(t);return!!e&&!e.disabled},swipeGesture:async(t,e)=>{const n=await o(e);return n&&(n.swipeGesture=t),n},isAnimating:async()=>(await d(),l()),isOpen:async t=>{if(null!=t){const e=await o(t);return void 0!==e&&e.isOpen()}return void 0!==await p()},enable:async(t,e)=>{const n=await o(e);return n&&(n.disabled=!t),n},toggle:async t=>{const e=await o(t,!0);return!!e&&e.toggle()},close:async t=>{const e=await(void 0!==t?o(t,!0):p());return void 0!==e&&e.close()},open:async t=>{const e=await o(t,!0);return!!e&&e.open()},_getOpenSync:f,_createAnimation:(t,e)=>{const n=s.get(t);if(!n)throw new Error("animation not registered");return n(e)},_register:t=>{a.indexOf(t)<0&&a.push(t)},_unregister:t=>{const e=a.indexOf(t);e>-1&&a.splice(e,1)},_setOpen:async(t,e,n,r)=>{if(l())return!1;if(e){const e=await p();e&&t.el!==e&&await e.setOpen(!1,!1)}return t._setOpen(e,n,r)}}})();export{p as m}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{w as t}from"./p-C5UXyyFe.js";import{h as o,a as e,b as n}from"./p-CKvCXMs9.js";import{createGesture as r}from"./p-Cl0B-RWe.js";const s=(s,a)=>{let i,c;const d=(t,o,e)=>{if("undefined"==typeof document)return;const n=document.elementFromPoint(t,o);n&&a(n)&&!n.disabled?n!==i&&(p(),m(n,e)):p()},m=(o,e)=>{i=o,c||(c=i);const n=i;t((()=>n.classList.add("ion-activated"))),e()},p=(o=!1)=>{if(!i)return;const e=i;t((()=>e.classList.remove("ion-activated"))),o&&c!==i&&i.click(),i=void 0};return r({el:s,gestureName:"buttonActiveDrag",threshold:0,onStart:t=>d(t.currentX,t.currentY,n),onMove:t=>d(t.currentX,t.currentY,e),onEnd:()=>{p(!0),o(),c=void 0}})};export{s as c}
4
+ import{w as t}from"./p-EP3pwcdb.js";import{h as o,a as e,b as n}from"./p-CKvCXMs9.js";import{createGesture as r}from"./p-Cl0B-RWe.js";const s=(s,a)=>{let i,c;const d=(t,o,e)=>{if("undefined"==typeof document)return;const n=document.elementFromPoint(t,o);n&&a(n)&&!n.disabled?n!==i&&(p(),m(n,e)):p()},m=(o,e)=>{i=o,c||(c=i);const n=i;t((()=>n.classList.add("ion-activated"))),e()},p=(o=!1)=>{if(!i)return;const e=i;t((()=>e.classList.remove("ion-activated"))),o&&c!==i&&i.click(),i=void 0};return r({el:s,gestureName:"buttonActiveDrag",threshold:0,onStart:t=>d(t.currentX,t.currentY,n),onMove:t=>d(t.currentX,t.currentY,e),onEnd:()=>{p(!0),o(),c=void 0}})};export{s as c}