@ionic/core 8.7.10-dev.11762798751.11b77c85 → 8.7.10-dev.11763413450.1212cecf
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.
- package/components/checkbox.js +63 -9
- package/components/ion-datetime.js +39 -4
- package/components/ion-input.js +7 -6
- package/components/ion-searchbar.js +6 -6
- package/components/ion-select.js +7 -6
- package/components/ion-textarea.js +2 -1
- package/components/ion-toggle.js +62 -12
- package/components/notch-controller.js +153 -0
- package/components/radio-group.js +60 -7
- package/components/validity.js +1 -150
- package/dist/cjs/{animation-D_c13yq_.js → animation-Bt3H9L1C.js} +1 -1
- package/dist/cjs/{app-globals--1qFsqEw.js → app-globals-Ciccnk9_.js} +1 -1
- package/dist/cjs/{button-active-CQiBOKCI.js → button-active-CMc8cD90.js} +1 -1
- package/dist/cjs/{config-DL8XJF0D.js → config-C5fsO43a.js} +1 -1
- package/dist/cjs/{data-DtEHxOpt.js → data-JwZKaIQB.js} +1 -1
- package/dist/cjs/{framework-delegate-DmSgIb_h.js → framework-delegate-DMJRBuDi.js} +1 -1
- package/dist/cjs/{hardware-back-button-C72O8m7E.js → hardware-back-button-VCK4V3mG.js} +1 -1
- package/dist/cjs/{helpers-xCoR213K.js → helpers-DrTqNghc.js} +1 -1
- package/dist/cjs/{index-WEBAL2Zz.js → index-094mMFB-.js} +4 -4
- package/dist/cjs/{index-DOeyHw27.js → index-C534ULug.js} +2 -2
- package/dist/cjs/{index-FugOCm8C.js → index-CO6eryBo.js} +2 -2
- package/dist/cjs/{index-qWlbeMTM.js → index-D6Wc6v08.js} +3 -41
- package/dist/cjs/{index-FdJ4-6Rg.js → index-DrMUZJj6.js} +5 -5
- package/dist/cjs/index.cjs.js +12 -12
- package/dist/cjs/{input-shims-CYpwizql.js → input-shims-CW0KUFTQ.js} +3 -3
- package/dist/cjs/{input.utils-DhlH-Ng5.js → input.utils-B_QROI2g.js} +2 -2
- package/dist/cjs/ion-accordion_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-action-sheet.cjs.entry.js +8 -8
- package/dist/cjs/ion-alert.cjs.entry.js +9 -9
- package/dist/cjs/ion-app_8.cjs.entry.js +12 -12
- package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-back-button.cjs.entry.js +3 -3
- package/dist/cjs/ion-backdrop.cjs.entry.js +2 -2
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-button_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-card_5.cjs.entry.js +3 -3
- package/dist/cjs/ion-checkbox.cjs.entry.js +63 -11
- package/dist/cjs/ion-chip.cjs.entry.js +2 -2
- package/dist/cjs/ion-col_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-datetime-button.cjs.entry.js +4 -4
- package/dist/cjs/ion-datetime_3.cjs.entry.js +47 -12
- package/dist/cjs/ion-fab_3.cjs.entry.js +3 -3
- package/dist/cjs/ion-img.cjs.entry.js +3 -3
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +5 -5
- package/dist/cjs/ion-input-otp.cjs.entry.js +3 -3
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +2 -2
- package/dist/cjs/ion-input.cjs.entry.js +11 -10
- package/dist/cjs/ion-item-option_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-item_8.cjs.entry.js +3 -3
- package/dist/cjs/ion-loading.cjs.entry.js +8 -8
- package/dist/cjs/ion-menu_3.cjs.entry.js +8 -8
- package/dist/cjs/ion-modal.cjs.entry.js +9 -9
- package/dist/cjs/ion-nav_2.cjs.entry.js +6 -6
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +3 -3
- package/dist/cjs/ion-picker-column.cjs.entry.js +3 -3
- package/dist/cjs/ion-picker.cjs.entry.js +2 -2
- package/dist/cjs/ion-popover.cjs.entry.js +8 -8
- package/dist/cjs/ion-progress-bar.cjs.entry.js +3 -3
- package/dist/cjs/ion-radio_2.cjs.entry.js +60 -9
- package/dist/cjs/ion-range.cjs.entry.js +4 -4
- package/dist/cjs/ion-refresher_2.cjs.entry.js +6 -6
- package/dist/cjs/ion-reorder_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +2 -2
- package/dist/cjs/ion-route_4.cjs.entry.js +3 -3
- package/dist/cjs/ion-searchbar.cjs.entry.js +8 -8
- package/dist/cjs/ion-segment-content.cjs.entry.js +1 -1
- package/dist/cjs/ion-segment-view.cjs.entry.js +1 -1
- package/dist/cjs/ion-segment_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-select-modal.cjs.entry.js +6 -6
- package/dist/cjs/ion-select_3.cjs.entry.js +13 -12
- package/dist/cjs/ion-spinner.cjs.entry.js +2 -2
- package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-tab_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-text.cjs.entry.js +2 -2
- package/dist/cjs/ion-textarea.cjs.entry.js +7 -6
- package/dist/cjs/ion-toast.cjs.entry.js +8 -8
- package/dist/cjs/ion-toggle.cjs.entry.js +61 -13
- package/dist/cjs/{ionic-global-CR8JSFWa.js → ionic-global-HMVqOFGO.js} +1 -1
- package/dist/cjs/ionic.cjs.js +5 -5
- package/dist/cjs/{ios.transition-MQamiuLS.js → ios.transition-BOt_uW73.js} +4 -4
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{md.transition-VK5nuqXu.js → md.transition-Dt968VXB.js} +4 -4
- package/dist/cjs/{validity-ilhIJL9Q.js → notch-controller-Bzqhjm4f.js} +1 -15
- package/dist/cjs/{overlays-DcMnmLe2.js → overlays-DxIZwUXI.js} +5 -5
- package/dist/cjs/{status-tap-C0NZlIwJ.js → status-tap-g0sWWkXk.js} +3 -3
- package/dist/cjs/{swipe-back-CdOHy9bk.js → swipe-back-BIayeNOD.js} +2 -2
- package/dist/cjs/validity-BpS37YFM.js +19 -0
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/checkbox/checkbox.js +67 -9
- package/dist/collection/components/datetime/datetime.ios.css +15 -0
- package/dist/collection/components/datetime/datetime.js +37 -2
- package/dist/collection/components/datetime/datetime.md.css +15 -0
- package/dist/collection/components/input/input.js +8 -8
- package/dist/collection/components/radio-group/radio-group.js +64 -7
- package/dist/collection/components/searchbar/searchbar.js +9 -9
- package/dist/collection/components/select/select.js +5 -5
- package/dist/collection/components/toggle/toggle.js +62 -12
- package/dist/docs.json +25 -15
- package/dist/esm/{animation-BMjqGaKJ.js → animation-Dt8bGnA-.js} +1 -1
- package/dist/esm/{app-globals-CXKe5CYv.js → app-globals-BDSf8fOA.js} +1 -1
- package/dist/esm/{button-active-DsHCf5yJ.js → button-active-L570Swow.js} +1 -1
- package/dist/esm/{config-FyGnL1d5.js → config-mCdtaoPe.js} +1 -1
- package/dist/esm/{data-VwBJONjN.js → data-DCORV9FH.js} +1 -1
- package/dist/esm/{framework-delegate-DA71As64.js → framework-delegate-BYawdMXj.js} +1 -1
- package/dist/esm/{hardware-back-button-gEuwgxq4.js → hardware-back-button-CPLxO-Ev.js} +1 -1
- package/dist/esm/{helpers-Br4puuoA.js → helpers-DEn3pfjm.js} +1 -1
- package/dist/esm/{index-nzxJGPo-.js → index-Bs3kT4bc.js} +2 -2
- package/dist/esm/{index-COOKa-0k.js → index-C8IsBmNU.js} +3 -41
- package/dist/esm/{index-DNUVD4sY.js → index-CvDIirVx.js} +5 -5
- package/dist/esm/{index-CZzUL5H7.js → index-ceb5RaMT.js} +2 -2
- package/dist/esm/{index-DKnepNGf.js → index-r2D9DEro.js} +4 -4
- package/dist/esm/index.js +12 -12
- package/dist/esm/{input-shims-G0QQ_JXi.js → input-shims-DyOpfTg6.js} +3 -3
- package/dist/esm/{input.utils-BRuJbV55.js → input.utils-DrvTa8gz.js} +2 -2
- package/dist/esm/ion-accordion_2.entry.js +3 -3
- package/dist/esm/ion-action-sheet.entry.js +8 -8
- package/dist/esm/ion-alert.entry.js +9 -9
- package/dist/esm/ion-app_8.entry.js +12 -12
- package/dist/esm/ion-avatar_3.entry.js +2 -2
- package/dist/esm/ion-back-button.entry.js +3 -3
- package/dist/esm/ion-backdrop.entry.js +2 -2
- package/dist/esm/ion-breadcrumb_2.entry.js +3 -3
- package/dist/esm/ion-button_2.entry.js +3 -3
- package/dist/esm/ion-card_5.entry.js +3 -3
- package/dist/esm/ion-checkbox.entry.js +63 -11
- package/dist/esm/ion-chip.entry.js +2 -2
- package/dist/esm/ion-col_3.entry.js +2 -2
- package/dist/esm/ion-datetime-button.entry.js +4 -4
- package/dist/esm/ion-datetime_3.entry.js +47 -12
- package/dist/esm/ion-fab_3.entry.js +3 -3
- package/dist/esm/ion-img.entry.js +3 -3
- package/dist/esm/ion-infinite-scroll_2.entry.js +5 -5
- package/dist/esm/ion-input-otp.entry.js +3 -3
- package/dist/esm/ion-input-password-toggle.entry.js +2 -2
- package/dist/esm/ion-input.entry.js +10 -9
- package/dist/esm/ion-item-option_3.entry.js +4 -4
- package/dist/esm/ion-item_8.entry.js +3 -3
- package/dist/esm/ion-loading.entry.js +8 -8
- package/dist/esm/ion-menu_3.entry.js +8 -8
- package/dist/esm/ion-modal.entry.js +9 -9
- package/dist/esm/ion-nav_2.entry.js +6 -6
- package/dist/esm/ion-picker-column-option.entry.js +3 -3
- package/dist/esm/ion-picker-column.entry.js +3 -3
- package/dist/esm/ion-picker.entry.js +2 -2
- package/dist/esm/ion-popover.entry.js +8 -8
- package/dist/esm/ion-progress-bar.entry.js +3 -3
- package/dist/esm/ion-radio_2.entry.js +60 -9
- package/dist/esm/ion-range.entry.js +4 -4
- package/dist/esm/ion-refresher_2.entry.js +6 -6
- package/dist/esm/ion-reorder_2.entry.js +4 -4
- package/dist/esm/ion-ripple-effect.entry.js +2 -2
- package/dist/esm/ion-route_4.entry.js +3 -3
- package/dist/esm/ion-searchbar.entry.js +8 -8
- package/dist/esm/ion-segment-content.entry.js +1 -1
- package/dist/esm/ion-segment-view.entry.js +1 -1
- package/dist/esm/ion-segment_2.entry.js +3 -3
- package/dist/esm/ion-select-modal.entry.js +6 -6
- package/dist/esm/ion-select_3.entry.js +12 -11
- package/dist/esm/ion-spinner.entry.js +2 -2
- package/dist/esm/ion-split-pane.entry.js +2 -2
- package/dist/esm/ion-tab-bar_2.entry.js +3 -3
- package/dist/esm/ion-tab_2.entry.js +3 -3
- package/dist/esm/ion-text.entry.js +2 -2
- package/dist/esm/ion-textarea.entry.js +6 -5
- package/dist/esm/ion-toast.entry.js +8 -8
- package/dist/esm/ion-toggle.entry.js +61 -13
- package/dist/esm/{ionic-global-ssiordoc.js → ionic-global-CDrldh-5.js} +1 -1
- package/dist/esm/ionic.js +6 -6
- package/dist/esm/{ios.transition-CdWk5te_.js → ios.transition-BDzw0_Hm.js} +4 -4
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{md.transition-CTwmjwnm.js → md.transition-BzDYi3qq.js} +4 -4
- package/dist/esm/{validity-CwxNVaqN.js → notch-controller-BwelN_JM.js} +2 -15
- package/dist/esm/{overlays-DNIbGUWk.js → overlays-BymNv-BL.js} +5 -5
- package/dist/esm/{status-tap-B6uPB7F5.js → status-tap-5DQ7Fc4V.js} +3 -3
- package/dist/esm/{swipe-back-INesdA_O.js → swipe-back-BKw2CAHc.js} +2 -2
- package/dist/esm/validity-DJztqcrH.js +17 -0
- package/dist/html.html-data.json +18 -2
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-2b9e100d.entry.js → p-020af078.entry.js} +1 -1
- package/dist/ionic/p-074839fc.entry.js +4 -0
- package/dist/ionic/{p-964e89ac.entry.js → p-0b80d700.entry.js} +1 -1
- package/dist/ionic/{p-894e8953.entry.js → p-0dfa5a37.entry.js} +1 -1
- package/dist/ionic/{p-3807749f.entry.js → p-11518b31.entry.js} +1 -1
- package/dist/ionic/{p-fcd74818.entry.js → p-15193d01.entry.js} +1 -1
- package/dist/ionic/{p-c49f0f68.entry.js → p-1647c46c.entry.js} +1 -1
- package/dist/ionic/{p-116a97cb.entry.js → p-2a939845.entry.js} +1 -1
- package/dist/ionic/{p-3c522786.entry.js → p-316c0420.entry.js} +1 -1
- package/dist/ionic/{p-860f309a.entry.js → p-31f7095f.entry.js} +1 -1
- package/dist/ionic/{p-adde497f.entry.js → p-370e4237.entry.js} +1 -1
- package/dist/ionic/{p-ef8c7682.entry.js → p-3a6caca9.entry.js} +1 -1
- package/dist/ionic/p-40c261a3.entry.js +4 -0
- package/dist/ionic/{p-06881392.entry.js → p-43ed1ef5.entry.js} +1 -1
- package/dist/ionic/{p-a66bbfa0.entry.js → p-46d74291.entry.js} +1 -1
- package/dist/ionic/{p-7047a7b7.entry.js → p-49d06882.entry.js} +1 -1
- package/dist/ionic/{p-d0f6b9a7.entry.js → p-4c85d268.entry.js} +1 -1
- package/dist/ionic/p-4e41ea20.entry.js +4 -0
- package/dist/ionic/{p-dfd6acb5.entry.js → p-510d86e1.entry.js} +1 -1
- package/dist/ionic/p-51a60e0f.entry.js +4 -0
- package/dist/ionic/{p-dfc6f4b1.entry.js → p-582824c5.entry.js} +1 -1
- package/dist/ionic/{p-259e4068.entry.js → p-6241ce47.entry.js} +1 -1
- package/dist/ionic/{p-4ede0a73.entry.js → p-639dd543.entry.js} +1 -1
- package/dist/ionic/{p-7a19f3d1.entry.js → p-6444c606.entry.js} +1 -1
- package/dist/ionic/{p-c7f3e813.entry.js → p-675b1a31.entry.js} +1 -1
- package/dist/ionic/{p-db44afdd.entry.js → p-6d070558.entry.js} +1 -1
- package/dist/ionic/{p-5dcbb52f.entry.js → p-7268efa5.entry.js} +1 -1
- package/dist/ionic/{p-c6b68ac0.entry.js → p-72c38b88.entry.js} +1 -1
- package/dist/ionic/p-7380261c.entry.js +4 -0
- package/dist/ionic/{p-a41048a1.entry.js → p-79bd78f9.entry.js} +1 -1
- package/dist/ionic/{p-295a2119.entry.js → p-7da39a4d.entry.js} +1 -1
- package/dist/ionic/{p-d24d55cb.entry.js → p-83be404e.entry.js} +1 -1
- package/dist/ionic/{p-70c66710.entry.js → p-86f53961.entry.js} +1 -1
- package/dist/ionic/{p-db648b6a.entry.js → p-94de5cfa.entry.js} +1 -1
- package/dist/ionic/{p-6fe93af5.entry.js → p-9575b654.entry.js} +1 -1
- package/dist/ionic/p-9810f7e6.entry.js +4 -0
- package/dist/ionic/{p-bef7bd83.entry.js → p-98fc09eb.entry.js} +1 -1
- package/dist/ionic/{p-BA44xiai.js → p-B0q1YL7N.js} +1 -1
- package/dist/ionic/p-BFvmZNyx.js +4 -0
- package/dist/ionic/p-BKc55Xev.js +4 -0
- package/dist/ionic/{p-baqdazzM.js → p-BOVrCkpJ.js} +1 -1
- package/dist/ionic/{p-CT3hZD31.js → p-BYEqWnSg.js} +1 -1
- package/dist/ionic/p-Bmgaetn_.js +4 -0
- package/dist/ionic/{p-CUek2VVk.js → p-C7hRNDhM.js} +1 -1
- package/dist/ionic/p-C8IsBmNU.js +5 -0
- package/dist/ionic/{p-CYTVJxfQ.js → p-CJxh_yLS.js} +1 -1
- package/dist/ionic/{p-C8VsQFea.js → p-CTfR9YZG.js} +1 -1
- package/dist/ionic/p-CwgG81ZD.js +4 -0
- package/dist/ionic/{p-UCpjvnQe.js → p-D-eFFUkA.js} +1 -1
- package/dist/ionic/{p-DddcVlzx.js → p-D0dMcSkw.js} +1 -1
- package/dist/ionic/{p-ynapDa0U.js → p-D87hU-Ly.js} +1 -1
- package/dist/ionic/{p-C9IcKRgw.js → p-DCv9sLH2.js} +1 -1
- package/dist/ionic/p-DDb5r57F.js +4 -0
- package/dist/ionic/p-DJztqcrH.js +4 -0
- package/dist/ionic/{p-yu2f42Nv.js → p-DNcfiJwE.js} +1 -1
- package/dist/ionic/{p-CETqdl8n.js → p-DUt5fQmA.js} +1 -1
- package/dist/ionic/p-DZRJwG4S.js +4 -0
- package/dist/ionic/{p-D8G3beZX.js → p-DbQ5QkTP.js} +1 -1
- package/dist/ionic/{p-BUluHF_z.js → p-Dc45iWE4.js} +1 -1
- package/dist/ionic/{p-Bzed_Vkc.js → p-QHYY4sjU.js} +1 -1
- package/dist/ionic/{p-3ca55cd6.entry.js → p-a127bee2.entry.js} +1 -1
- package/dist/ionic/{p-b3da5db0.entry.js → p-a80f1b04.entry.js} +1 -1
- package/dist/ionic/{p-948228a2.entry.js → p-ac4eb91d.entry.js} +1 -1
- package/dist/ionic/{p-7078b759.entry.js → p-b0a7585c.entry.js} +1 -1
- package/dist/ionic/{p-3549e539.entry.js → p-b57c6d3e.entry.js} +1 -1
- package/dist/ionic/p-c19f63d0.entry.js +4 -0
- package/dist/ionic/{p-e1547a17.entry.js → p-cc45bcbc.entry.js} +1 -1
- package/dist/ionic/{p-e1c3b35d.entry.js → p-d0a2a1ab.entry.js} +1 -1
- package/dist/ionic/{p-89c2d5ea.entry.js → p-d126e8d3.entry.js} +1 -1
- package/dist/ionic/p-d1f54e28.entry.js +4 -0
- package/dist/ionic/p-d3014190.entry.js +4 -0
- package/dist/ionic/{p-93d7685c.entry.js → p-da7d04cc.entry.js} +1 -1
- package/dist/ionic/p-dbbe606a.entry.js +4 -0
- package/dist/ionic/{p-0144ab54.entry.js → p-e16b69e1.entry.js} +1 -1
- package/dist/ionic/{p-d27a5c0b.entry.js → p-f8f22cc0.entry.js} +1 -1
- package/dist/types/components/checkbox/checkbox.d.ts +9 -1
- package/dist/types/components/datetime/datetime.d.ts +9 -0
- package/dist/types/components/header/header.utils.d.ts +1 -2
- package/dist/types/components/input/input.d.ts +1 -1
- package/dist/types/components/radio-group/radio-group.d.ts +9 -1
- package/dist/types/components/searchbar/searchbar.d.ts +1 -1
- package/dist/types/components/select/select.d.ts +2 -2
- package/dist/types/components/toggle/toggle.d.ts +7 -1
- package/dist/types/components.d.ts +8 -8
- package/dist/types/stencil-public-runtime.d.ts +9 -19
- package/dist/types/utils/forms/validity.d.ts +1 -1
- package/dist/types/utils/gesture/listener.d.ts +1 -2
- package/hydrate/index.js +408 -360
- package/hydrate/index.mjs +408 -360
- package/package.json +3 -3
- package/dist/ionic/p-0188f4a6.entry.js +0 -4
- package/dist/ionic/p-14e08559.entry.js +0 -4
- package/dist/ionic/p-22bcfae9.entry.js +0 -4
- package/dist/ionic/p-45c80fd7.entry.js +0 -4
- package/dist/ionic/p-49a21ffb.entry.js +0 -4
- package/dist/ionic/p-5cf136b5.entry.js +0 -4
- package/dist/ionic/p-5d600703.entry.js +0 -4
- package/dist/ionic/p-9fc9dfae.entry.js +0 -4
- package/dist/ionic/p-BS-HlVX0.js +0 -4
- package/dist/ionic/p-BWS2Niqo.js +0 -4
- package/dist/ionic/p-CCKqmAua.js +0 -4
- package/dist/ionic/p-COOKa-0k.js +0 -5
- package/dist/ionic/p-CSQuMCUi.js +0 -4
- package/dist/ionic/p-PfJ1h_Zm.js +0 -4
- package/dist/ionic/p-edcc6f4f.entry.js +0 -4
- package/dist/ionic/p-f53597ee.entry.js +0 -4
- package/dist/ionic/p-w2EzNm9e.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{c as t}from"./p-CCKqmAua.js";import{g as o}from"./p-CETqdl8n.js";import"./p-COOKa-0k.js";import"./p-ZjP4CjeZ.js";import"./p-C8VsQFea.js";const n=t=>document.querySelector(`${t}.ion-cloned-element`),a=t=>t.shadowRoot||t,s=t=>{const o="ION-TABS"===t.tagName?t:t.querySelector("ion-tabs"),n="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=o){const t=o.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=t?t.querySelector(n):null}return t.querySelector(n)},e=(t,o)=>{const n="ION-TABS"===t.tagName?t:t.querySelector("ion-tabs");let a=[];if(null!=n){const t=n.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=t&&(a=t.querySelectorAll("ion-buttons"))}else a=t.querySelectorAll("ion-buttons");for(const t of a){const n=t.closest("ion-header"),a=n&&!n.classList.contains("header-collapse-condense-inactive"),s=t.querySelector("ion-back-button"),e=t.classList.contains("buttons-collapse");if(null!==s&&("start"===t.slot||""===t.slot)&&(e&&a&&o||!e))return s}return null},r=(o,s,e,r,i,l,f,p,d)=>{var $,u;const m=s?`calc(100% - ${i.right+4}px)`:i.left-4+"px",b=s?"right":"left",y=s?"left":"right",X=s?"right":"left";let x=1,v=1,h=`scale(${v})`;const g="scale(1)";if(l&&f){const t=(null===($=l.textContent)||void 0===$?void 0:$.trim())===(null===(u=p.textContent)||void 0===u?void 0:u.trim());x=d.width/f.width,v=(d.height-c)/f.height,h=t?`scale(${x}, ${v})`:`scale(${v})`}const k=a(r).querySelector("ion-icon").getBoundingClientRect(),w=s?k.width/2-(k.right-i.right)+"px":i.left-k.width/2+"px",j=s?`-${window.innerWidth-i.right}px`:`${i.left}px`,T=`${d.top}px`,C=`${i.top}px`,A=e?[{offset:0,transform:`translate3d(${j}, ${C}, 0)`},{offset:1,transform:`translate3d(${w}, ${T}, 0)`}]:[{offset:0,transform:`translate3d(${w}, ${T}, 0)`},{offset:1,transform:`translate3d(${j}, ${C}, 0)`}],O=e?[{offset:0,opacity:1,transform:g},{offset:1,opacity:0,transform:h}]:[{offset:0,opacity:0,transform:h},{offset:1,opacity:1,transform:g}],q=e?[{offset:0,opacity:1,transform:"scale(1)"},{offset:.2,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:0,transform:"scale(0.6)"}]:[{offset:0,opacity:0,transform:"scale(0.6)"},{offset:.6,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:1,transform:"scale(1)"}],B=t(),I=t(),K=t(),N=n("ion-back-button"),S=a(N).querySelector(".button-text"),Z=a(N).querySelector("ion-icon");N.text=r.text,N.mode=r.mode,N.icon=r.icon,N.color=r.color,N.disabled=r.disabled,N.style.setProperty("display","block"),N.style.setProperty("position","fixed"),I.addElement(Z),B.addElement(S),K.addElement(N),K.beforeStyles({position:"absolute",top:"0px",[X]:"0px"}).beforeAddWrite((()=>{r.style.setProperty("display","none"),N.style.setProperty(b,m)})).afterAddWrite((()=>{r.style.setProperty("display",""),N.style.setProperty("display","none"),N.style.removeProperty(b)})).keyframes(A),B.beforeStyles({"transform-origin":`${b} top`}).keyframes(O),I.beforeStyles({"transform-origin":`${y} center`}).keyframes(q),o.addAnimation([B,I,K])},i=(o,a,s,e,r,i,l,f,p)=>{var d,$;const u=a?"right":"left",m=a?`calc(100% - ${r.right}px)`:`${r.left}px`,b=`${r.top}px`;let y=a?`-${window.innerWidth-l.right-8}px`:`${l.x+8}px`,X=.5;const x="scale(1)";let v=`scale(${X})`;if(f&&p){y=a?`-${window.innerWidth-p.right-8}px`:p.x-8+"px";const t=(null===(d=f.textContent)||void 0===d?void 0:d.trim())===(null===($=e.textContent)||void 0===$?void 0:$.trim());X=p.height/(i.height-c),v=t?`scale(${p.width/i.width}, ${X})`:`scale(${X})`}const h=l.top+l.height/2-r.height*X/2+"px",g=s?[{offset:0,opacity:0,transform:`translate3d(${y}, ${h}, 0) ${v}`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0px, ${b}, 0) ${x}`}]:[{offset:0,opacity:.99,transform:`translate3d(0px, ${b}, 0) ${x}`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${y}, ${h}, 0) ${v}`}],k=n("ion-title"),w=t();k.innerText=e.innerText,k.size=e.size,k.color=e.color,w.addElement(k),w.beforeStyles({"transform-origin":`${u} top`,height:`${r.height}px`,display:"",position:"relative",[u]:m}).beforeAddWrite((()=>{e.style.setProperty("opacity","0")})).afterAddWrite((()=>{e.style.setProperty("opacity",""),k.style.setProperty("display","none")})).keyframes(g),o.addAnimation(w)},l=(n,l)=>{var c;try{const f="cubic-bezier(0.32,0.72,0,1)",p="opacity",d="transform",$="0%",u=.8,m="rtl"===n.ownerDocument.dir,b=m?"-99.5%":"99.5%",y=m?"33%":"-33%",X=l.enteringEl,x=l.leavingEl,v="back"===l.direction,h=X.querySelector(":scope > ion-content"),g=X.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),k=X.querySelectorAll(":scope > ion-header > ion-toolbar"),w=t(),j=t();if(w.addElement(X).duration((null!==(c=l.duration)&&void 0!==c?c:0)||540).easing(l.easing||f).fill("both").beforeRemoveClass("ion-page-invisible"),x&&null!=n){const o=t();o.addElement(n),w.addAnimation(o)}if(h||0!==k.length||0!==g.length?(j.addElement(h),j.addElement(g)):j.addElement(X.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),w.addAnimation(j),v?j.beforeClearStyles([p]).fromTo("transform",`translateX(${y})`,`translateX(${$})`).fromTo(p,u,1):j.beforeClearStyles([p]).fromTo("transform",`translateX(${b})`,`translateX(${$})`),h){const o=a(h).querySelector(".transition-effect");if(o){const n=o.querySelector(".transition-cover"),a=o.querySelector(".transition-shadow"),s=t(),e=t(),r=t();s.addElement(o).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),e.addElement(n).beforeClearStyles([p]).fromTo(p,0,.1),r.addElement(a).beforeClearStyles([p]).fromTo(p,.03,.7),s.addAnimation([e,r]),j.addAnimation([s])}}const T=X.querySelector("ion-header.header-collapse-condense"),{forward:C,backward:A}=((t,o,n,l,c)=>{const f=e(l,n),p=s(c),d=s(l),$=e(c,n),u=null!==f&&null!==p&&!n,m=null!==d&&null!==$&&n;if(u){const s=p.getBoundingClientRect(),e=f.getBoundingClientRect(),l=a(f).querySelector(".button-text"),c=null==l?void 0:l.getBoundingClientRect(),d=a(p).querySelector(".toolbar-title").getBoundingClientRect();i(t,o,n,p,s,d,e,l,c),r(t,o,n,f,e,l,c,p,d)}else if(m){const s=d.getBoundingClientRect(),e=$.getBoundingClientRect(),l=a($).querySelector(".button-text"),c=null==l?void 0:l.getBoundingClientRect(),f=a(d).querySelector(".toolbar-title").getBoundingClientRect();i(t,o,n,d,s,f,e,l,c),r(t,o,n,$,e,l,c,d,f)}return{forward:u,backward:m}})(w,m,v,X,x);if(k.forEach((o=>{const n=t();n.addElement(o),w.addAnimation(n);const s=t();s.addElement(o.querySelector("ion-title"));const e=t(),r=Array.from(o.querySelectorAll("ion-buttons,[menuToggle]")),i=o.closest("ion-header"),l=null==i?void 0:i.classList.contains("header-collapse-condense-inactive");let c;c=r.filter(v?t=>{const o=t.classList.contains("buttons-collapse");return o&&!l||!o}:t=>!t.classList.contains("buttons-collapse")),e.addElement(c);const f=t();f.addElement(o.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const d=t();d.addElement(a(o).querySelector(".toolbar-background"));const u=t(),X=o.querySelector("ion-back-button");if(X&&u.addElement(X),n.addAnimation([s,e,f,d,u]),e.fromTo(p,.01,1),f.fromTo(p,.01,1),v)l||s.fromTo("transform",`translateX(${y})`,`translateX(${$})`).fromTo(p,.01,1),f.fromTo("transform",`translateX(${y})`,`translateX(${$})`),u.fromTo(p,.01,1);else if(T||s.fromTo("transform",`translateX(${b})`,`translateX(${$})`).fromTo(p,.01,1),f.fromTo("transform",`translateX(${b})`,`translateX(${$})`),d.beforeClearStyles([p,"transform"]),(null==i?void 0:i.translucent)?d.fromTo("transform",m?"translateX(-100%)":"translateX(100%)","translateX(0px)"):d.fromTo(p,.01,"var(--opacity)"),C||u.fromTo(p,.01,1),X&&!C){const o=t();o.addElement(a(X).querySelector(".button-text")).fromTo("transform",m?"translateX(-100px)":"translateX(100px)","translateX(0px)"),n.addAnimation(o)}})),x){const n=t(),s=x.querySelector(":scope > ion-content"),e=x.querySelectorAll(":scope > ion-header > ion-toolbar"),r=x.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(s||0!==e.length||0!==r.length?(n.addElement(s),n.addElement(r)):n.addElement(x.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),w.addAnimation(n),v){n.beforeClearStyles([p]).fromTo("transform",`translateX(${$})`,m?"translateX(-100%)":"translateX(100%)");const t=o(x);w.afterAddWrite((()=>{"normal"===w.getDirection()&&t.style.setProperty("display","none")}))}else n.fromTo("transform",`translateX(${$})`,`translateX(${y})`).fromTo(p,1,u);if(s){const o=a(s).querySelector(".transition-effect");if(o){const a=o.querySelector(".transition-cover"),s=o.querySelector(".transition-shadow"),e=t(),r=t(),i=t();e.addElement(o).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),r.addElement(a).beforeClearStyles([p]).fromTo(p,.1,0),i.addElement(s).beforeClearStyles([p]).fromTo(p,.7,.03),e.addAnimation([r,i]),n.addAnimation([e])}}e.forEach((o=>{const n=t();n.addElement(o);const s=t();s.addElement(o.querySelector("ion-title"));const e=t(),r=o.querySelectorAll("ion-buttons,[menuToggle]"),i=o.closest("ion-header"),l=null==i?void 0:i.classList.contains("header-collapse-condense-inactive"),c=Array.from(r).filter((t=>{const o=t.classList.contains("buttons-collapse");return o&&!l||!o}));e.addElement(c);const f=t(),u=o.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");u.length>0&&f.addElement(u);const b=t();b.addElement(a(o).querySelector(".toolbar-background"));const X=t(),x=o.querySelector("ion-back-button");if(x&&X.addElement(x),n.addAnimation([s,e,f,X,b]),w.addAnimation(n),X.fromTo(p,.99,0),e.fromTo(p,.99,0),f.fromTo(p,.99,0),v){if(l||s.fromTo("transform",`translateX(${$})`,m?"translateX(-100%)":"translateX(100%)").fromTo(p,.99,0),f.fromTo("transform",`translateX(${$})`,m?"translateX(-100%)":"translateX(100%)"),b.beforeClearStyles([p,"transform"]),(null==i?void 0:i.translucent)?b.fromTo("transform","translateX(0px)",m?"translateX(-100%)":"translateX(100%)"):b.fromTo(p,"var(--opacity)",0),x&&!A){const o=t();o.addElement(a(x).querySelector(".button-text")).fromTo("transform",`translateX(${$})`,`translateX(${(m?-124:124)+"px"})`),n.addAnimation(o)}}else l||s.fromTo("transform",`translateX(${$})`,`translateX(${y})`).fromTo(p,.99,0).afterClearStyles([d,p]),f.fromTo("transform",`translateX(${$})`,`translateX(${y})`).afterClearStyles([d,p]),X.afterClearStyles([p]),s.afterClearStyles([p]),e.afterClearStyles([p])}))}return w}catch(t){throw t}},c=10;export{l as iosTransitionAnimation,a as shadow}
|
|
4
|
+
import{c as t}from"./p-DDb5r57F.js";import{g as o}from"./p-DUt5fQmA.js";import"./p-C8IsBmNU.js";import"./p-ZjP4CjeZ.js";import"./p-CTfR9YZG.js";const n=t=>document.querySelector(`${t}.ion-cloned-element`),a=t=>t.shadowRoot||t,s=t=>{const o="ION-TABS"===t.tagName?t:t.querySelector("ion-tabs"),n="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=o){const t=o.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=t?t.querySelector(n):null}return t.querySelector(n)},e=(t,o)=>{const n="ION-TABS"===t.tagName?t:t.querySelector("ion-tabs");let a=[];if(null!=n){const t=n.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=t&&(a=t.querySelectorAll("ion-buttons"))}else a=t.querySelectorAll("ion-buttons");for(const t of a){const n=t.closest("ion-header"),a=n&&!n.classList.contains("header-collapse-condense-inactive"),s=t.querySelector("ion-back-button"),e=t.classList.contains("buttons-collapse");if(null!==s&&("start"===t.slot||""===t.slot)&&(e&&a&&o||!e))return s}return null},r=(o,s,e,r,i,l,f,p,d)=>{var $,u;const m=s?`calc(100% - ${i.right+4}px)`:i.left-4+"px",b=s?"right":"left",y=s?"left":"right",X=s?"right":"left";let x=1,v=1,h=`scale(${v})`;const g="scale(1)";if(l&&f){const t=(null===($=l.textContent)||void 0===$?void 0:$.trim())===(null===(u=p.textContent)||void 0===u?void 0:u.trim());x=d.width/f.width,v=(d.height-c)/f.height,h=t?`scale(${x}, ${v})`:`scale(${v})`}const w=a(r).querySelector("ion-icon").getBoundingClientRect(),k=s?w.width/2-(w.right-i.right)+"px":i.left-w.width/2+"px",j=s?`-${window.innerWidth-i.right}px`:`${i.left}px`,T=`${d.top}px`,A=`${i.top}px`,B=e?[{offset:0,transform:`translate3d(${j}, ${A}, 0)`},{offset:1,transform:`translate3d(${k}, ${T}, 0)`}]:[{offset:0,transform:`translate3d(${k}, ${T}, 0)`},{offset:1,transform:`translate3d(${j}, ${A}, 0)`}],C=e?[{offset:0,opacity:1,transform:g},{offset:1,opacity:0,transform:h}]:[{offset:0,opacity:0,transform:h},{offset:1,opacity:1,transform:g}],D=e?[{offset:0,opacity:1,transform:"scale(1)"},{offset:.2,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:0,transform:"scale(0.6)"}]:[{offset:0,opacity:0,transform:"scale(0.6)"},{offset:.6,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:1,transform:"scale(1)"}],I=t(),N=t(),Z=t(),O=n("ion-back-button"),S=a(O).querySelector(".button-text"),U=a(O).querySelector("ion-icon");O.text=r.text,O.mode=r.mode,O.icon=r.icon,O.color=r.color,O.disabled=r.disabled,O.style.setProperty("display","block"),O.style.setProperty("position","fixed"),N.addElement(U),I.addElement(S),Z.addElement(O),Z.beforeStyles({position:"absolute",top:"0px",[X]:"0px"}).beforeAddWrite((()=>{r.style.setProperty("display","none"),O.style.setProperty(b,m)})).afterAddWrite((()=>{r.style.setProperty("display",""),O.style.setProperty("display","none"),O.style.removeProperty(b)})).keyframes(B),I.beforeStyles({"transform-origin":`${b} top`}).keyframes(C),N.beforeStyles({"transform-origin":`${y} center`}).keyframes(D),o.addAnimation([I,N,Z])},i=(o,a,s,e,r,i,l,f,p)=>{var d,$;const u=a?"right":"left",m=a?`calc(100% - ${r.right}px)`:`${r.left}px`,b=`${r.top}px`;let y=a?`-${window.innerWidth-l.right-8}px`:`${l.x+8}px`,X=.5;const x="scale(1)";let v=`scale(${X})`;if(f&&p){y=a?`-${window.innerWidth-p.right-8}px`:p.x-8+"px";const t=(null===(d=f.textContent)||void 0===d?void 0:d.trim())===(null===($=e.textContent)||void 0===$?void 0:$.trim());X=p.height/(i.height-c),v=t?`scale(${p.width/i.width}, ${X})`:`scale(${X})`}const h=l.top+l.height/2-r.height*X/2+"px",g=s?[{offset:0,opacity:0,transform:`translate3d(${y}, ${h}, 0) ${v}`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0px, ${b}, 0) ${x}`}]:[{offset:0,opacity:.99,transform:`translate3d(0px, ${b}, 0) ${x}`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${y}, ${h}, 0) ${v}`}],w=n("ion-title"),k=t();w.innerText=e.innerText,w.size=e.size,w.color=e.color,k.addElement(w),k.beforeStyles({"transform-origin":`${u} top`,height:`${r.height}px`,display:"",position:"relative",[u]:m}).beforeAddWrite((()=>{e.style.setProperty("opacity","0")})).afterAddWrite((()=>{e.style.setProperty("opacity",""),w.style.setProperty("display","none")})).keyframes(g),o.addAnimation(k)},l=(n,l)=>{var c;try{const f="cubic-bezier(0.32,0.72,0,1)",p="opacity",d="transform",$="0%",u=.8,m="rtl"===n.ownerDocument.dir,b=m?"-99.5%":"99.5%",y=m?"33%":"-33%",X=l.enteringEl,x=l.leavingEl,v="back"===l.direction,h=X.querySelector(":scope > ion-content"),g=X.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),w=X.querySelectorAll(":scope > ion-header > ion-toolbar"),k=t(),j=t();if(k.addElement(X).duration((null!==(c=l.duration)&&void 0!==c?c:0)||540).easing(l.easing||f).fill("both").beforeRemoveClass("ion-page-invisible"),x&&null!=n){const o=t();o.addElement(n),k.addAnimation(o)}if(h||0!==w.length||0!==g.length?(j.addElement(h),j.addElement(g)):j.addElement(X.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),k.addAnimation(j),v?j.beforeClearStyles([p]).fromTo("transform",`translateX(${y})`,`translateX(${$})`).fromTo(p,u,1):j.beforeClearStyles([p]).fromTo("transform",`translateX(${b})`,`translateX(${$})`),h){const o=a(h).querySelector(".transition-effect");if(o){const n=o.querySelector(".transition-cover"),a=o.querySelector(".transition-shadow"),s=t(),e=t(),r=t();s.addElement(o).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),e.addElement(n).beforeClearStyles([p]).fromTo(p,0,.1),r.addElement(a).beforeClearStyles([p]).fromTo(p,.03,.7),s.addAnimation([e,r]),j.addAnimation([s])}}const T=X.querySelector("ion-header.header-collapse-condense"),{forward:A,backward:B}=((t,o,n,l,c)=>{const f=e(l,n),p=s(c),d=s(l),$=e(c,n),u=null!==f&&null!==p&&!n,m=null!==d&&null!==$&&n;if(u){const s=p.getBoundingClientRect(),e=f.getBoundingClientRect(),l=a(f).querySelector(".button-text"),c=null==l?void 0:l.getBoundingClientRect(),d=a(p).querySelector(".toolbar-title").getBoundingClientRect();i(t,o,n,p,s,d,e,l,c),r(t,o,n,f,e,l,c,p,d)}else if(m){const s=d.getBoundingClientRect(),e=$.getBoundingClientRect(),l=a($).querySelector(".button-text"),c=null==l?void 0:l.getBoundingClientRect(),f=a(d).querySelector(".toolbar-title").getBoundingClientRect();i(t,o,n,d,s,f,e,l,c),r(t,o,n,$,e,l,c,d,f)}return{forward:u,backward:m}})(k,m,v,X,x);if(w.forEach((o=>{const n=t();n.addElement(o),k.addAnimation(n);const s=t();s.addElement(o.querySelector("ion-title"));const e=t(),r=Array.from(o.querySelectorAll("ion-buttons,[menuToggle]")),i=o.closest("ion-header"),l=null==i?void 0:i.classList.contains("header-collapse-condense-inactive");let c;c=r.filter(v?t=>{const o=t.classList.contains("buttons-collapse");return o&&!l||!o}:t=>!t.classList.contains("buttons-collapse")),e.addElement(c);const f=t();f.addElement(o.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const d=t();d.addElement(a(o).querySelector(".toolbar-background"));const u=t(),X=o.querySelector("ion-back-button");if(X&&u.addElement(X),n.addAnimation([s,e,f,d,u]),e.fromTo(p,.01,1),f.fromTo(p,.01,1),v)l||s.fromTo("transform",`translateX(${y})`,`translateX(${$})`).fromTo(p,.01,1),f.fromTo("transform",`translateX(${y})`,`translateX(${$})`),u.fromTo(p,.01,1);else if(T||s.fromTo("transform",`translateX(${b})`,`translateX(${$})`).fromTo(p,.01,1),f.fromTo("transform",`translateX(${b})`,`translateX(${$})`),d.beforeClearStyles([p,"transform"]),(null==i?void 0:i.translucent)?d.fromTo("transform",m?"translateX(-100%)":"translateX(100%)","translateX(0px)"):d.fromTo(p,.01,"var(--opacity)"),A||u.fromTo(p,.01,1),X&&!A){const o=t();o.addElement(a(X).querySelector(".button-text")).fromTo("transform",m?"translateX(-100px)":"translateX(100px)","translateX(0px)"),n.addAnimation(o)}})),x){const n=t(),s=x.querySelector(":scope > ion-content"),e=x.querySelectorAll(":scope > ion-header > ion-toolbar"),r=x.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(s||0!==e.length||0!==r.length?(n.addElement(s),n.addElement(r)):n.addElement(x.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),k.addAnimation(n),v){n.beforeClearStyles([p]).fromTo("transform",`translateX(${$})`,m?"translateX(-100%)":"translateX(100%)");const t=o(x);k.afterAddWrite((()=>{"normal"===k.getDirection()&&t.style.setProperty("display","none")}))}else n.fromTo("transform",`translateX(${$})`,`translateX(${y})`).fromTo(p,1,u);if(s){const o=a(s).querySelector(".transition-effect");if(o){const a=o.querySelector(".transition-cover"),s=o.querySelector(".transition-shadow"),e=t(),r=t(),i=t();e.addElement(o).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),r.addElement(a).beforeClearStyles([p]).fromTo(p,.1,0),i.addElement(s).beforeClearStyles([p]).fromTo(p,.7,.03),e.addAnimation([r,i]),n.addAnimation([e])}}e.forEach((o=>{const n=t();n.addElement(o);const s=t();s.addElement(o.querySelector("ion-title"));const e=t(),r=o.querySelectorAll("ion-buttons,[menuToggle]"),i=o.closest("ion-header"),l=null==i?void 0:i.classList.contains("header-collapse-condense-inactive"),c=Array.from(r).filter((t=>{const o=t.classList.contains("buttons-collapse");return o&&!l||!o}));e.addElement(c);const f=t(),u=o.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");u.length>0&&f.addElement(u);const b=t();b.addElement(a(o).querySelector(".toolbar-background"));const X=t(),x=o.querySelector("ion-back-button");if(x&&X.addElement(x),n.addAnimation([s,e,f,X,b]),k.addAnimation(n),X.fromTo(p,.99,0),e.fromTo(p,.99,0),f.fromTo(p,.99,0),v){if(l||s.fromTo("transform",`translateX(${$})`,m?"translateX(-100%)":"translateX(100%)").fromTo(p,.99,0),f.fromTo("transform",`translateX(${$})`,m?"translateX(-100%)":"translateX(100%)"),b.beforeClearStyles([p,"transform"]),(null==i?void 0:i.translucent)?b.fromTo("transform","translateX(0px)",m?"translateX(-100%)":"translateX(100%)"):b.fromTo(p,"var(--opacity)",0),x&&!B){const o=t();o.addElement(a(x).querySelector(".button-text")).fromTo("transform",`translateX(${$})`,`translateX(${(m?-124:124)+"px"})`),n.addAnimation(o)}}else l||s.fromTo("transform",`translateX(${$})`,`translateX(${y})`).fromTo(p,.99,0).afterClearStyles([d,p]),f.fromTo("transform",`translateX(${$})`,`translateX(${y})`).afterClearStyles([d,p]),X.afterClearStyles([p]),s.afterClearStyles([p]),e.afterClearStyles([p])}))}return k}catch(t){throw t}},c=10;export{l as iosTransitionAnimation,a as shadow}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
+
*/
|
|
4
|
+
class t{constructor(){this.m=new Map}reset(t){this.m=new Map(Object.entries(t))}get(t,e){const n=this.m.get(t);return void 0!==n?n:e}getBoolean(t,e=!1){const n=this.m.get(t);return void 0===n?e:"string"==typeof n?"true"===n:!!n}getNumber(t,e){const n=parseFloat(this.m.get(t));return isNaN(n)?void 0!==e?e:NaN:n}set(t,e){this.m.set(t,e)}}const e=new t,n=t=>{try{const e=t.sessionStorage.getItem(r);return null!==e?JSON.parse(e):{}}catch(t){return{}}},o=(t,e)=>{try{t.sessionStorage.setItem(r,JSON.stringify(e))}catch(t){return}},s=t=>{const e={};return t.location.search.slice(1).split("&").map((t=>t.split("="))).map((([t,e])=>{try{return[decodeURIComponent(t),decodeURIComponent(e)]}catch(t){return["",""]}})).filter((([t])=>l(t,i))).map((([t,e])=>[t.slice(i.length),e])).forEach((([t,n])=>{e[t]=n})),e},l=(t,e)=>t.substr(0,e.length)===e,i="ionic:",r="ionic-persist-config";var c;!function(t){t.OFF="OFF",t.ERROR="ERROR",t.WARN="WARN"}(c||(c={}));const u=(t,...n)=>{const o=e.get("logLevel",c.WARN);if([c.WARN].includes(o))return console.warn("[Ionic Warning]: "+t,...n)},f=(t,...n)=>{const o=e.get("logLevel",c.ERROR);if([c.ERROR,c.WARN].includes(o))return console.error("[Ionic Error]: "+t,...n)},a=(t,...e)=>console.error(`<${t.tagName.toLowerCase()}> must be used inside ${e.join(" or ")}.`);var d=Object.defineProperty,h={isBrowser:!0},p=(t=>(t.Undefined="undefined",t.Null="null",t.String="string",t.Number="number",t.SpecialNumber="number",t.Boolean="boolean",t.BigInt="bigint",t))(p||{}),v=(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))(v||{}),b="type",$="value",m="serialized:",g=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},y=(t,e)=>{e&&(t.__stencil__getHostRef=()=>e,e.t=t)},w=(t,e)=>e in t,S=(t,e)=>(0,console.error)(t,e),j=new Map,O=new Map,N=[],x="s-id",E="sty-id",k="c-id",C="slot-fb{display:contents}slot-fb[hidden]{display:none}",R="http://www.w3.org/1999/xlink",I="undefined"!=typeof window?window:{},M=I.HTMLElement||class{},L={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)},A=t=>Promise.resolve(t),B=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),F=!!B&&(()=>!!I.document&&Object.getOwnPropertyDescriptor(I.document.adoptedStyleSheets,"length").writable)(),T=!1,U=[],P=[],W=(t,e)=>n=>{t.push(n),T||(T=!0,e&&4&L.o?V(D):L.raf(D))},_=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){S(t)}t.length=0},D=()=>{_(U),_(P),(T=U.length>0)&&L.raf(D)},V=t=>A().then(t),z=W(U,!1),q=W(P,!0),H=t=>{const e=new URL(t,L.l);return e.origin!==I.location.origin?e.href:e.pathname},J=t=>"object"==(t=typeof t)||"function"===t;function Y(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 G=class t{static fromLocalValue(e){const n=e[b],o=$ in e?e[$]: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(b))return!1;const e=t[b];return!!Object.values({...p,...v}).includes(e)&&("null"===e||"undefined"===e||t.hasOwnProperty($))}};((t,e)=>{for(var n in e)d(t,n,{get:e[n],enumerable:!0})})({},{err:()=>Q,map:()=>X,ok:()=>K,unwrap:()=>tt,unwrapErr:()=>et});var K=t=>({isOk:!0,isErr:!1,value:t}),Q=t=>({isOk:!1,isErr:!0,value:t});function X(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>K(t))):K(n)}if(t.isErr)return Q(t.value);throw"should never get here"}var Z,tt=t=>{if(t.isOk)return t.value;throw t.value},et=t=>{if(t.isErr)return t.value;throw t.value};function nt(t){const e=this.attachShadow({mode:"open",delegatesFocus:!!(16&t.o)});void 0===Z&&(Z=null),Z&&(F?e.adoptedStyleSheets.push(Z):e.adoptedStyleSheets=[...e.adoptedStyleSheets,Z])}var ot=t=>{const e=Lt(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&<(e,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!it(t,ut(t),!1).length)}));let n=0;for(n=0;n<e.length;n++){const t=e[n];1===t.nodeType&&Lt(t,"childNodes").length&&ot(t)}},st=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 lt(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||ut(o)===n)&&(l.push(o),void 0!==n))return l;l=[...l,...lt(o.childNodes,e,n)]}return l}var it=(t,e,n=!0)=>{const o=[];(n&&t["s-sr"]||!t["s-sr"])&&o.push(t);let s=t;for(;s=s.nextSibling;)ut(s)!==e||!n&&s["s-sr"]||o.push(s);return o},rt=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,ct=(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=Lt(l,n?"prepend":"appendChild");if(void 0!==o){s["s-oo"]=o;const t=Lt(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"]},ut=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function ft(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:st(s.childNodes)).forEach((t=>{o===ut(t)&&n.push(t)})),e?n.filter((t=>1===t.nodeType)):n}.bind(t);t.assignedElements=e(!0),t.assignedNodes=e(!1)}function at(t){t.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}function dt(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"]=ut(t)||"";return{slotNode:lt(Lt(e,"childNodes"),e.tagName,o)[0],slotName:o}}var ht=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}},pt=t=>{t.__appendChild=t.appendChild,t.appendChild=function(t){const{slotName:e,slotNode:n}=dt(t,this);if(n){ct(t,n);const o=it(n,e),s=o[o.length-1],l=Lt(s,"parentNode"),i=Lt(l,"insertBefore")(t,s.nextSibling);return at(n),ot(this),i}return this.__appendChild(t)}},vt=t=>{t.__removeChild=t.removeChild,t.removeChild=function(t){return t&&void 0!==t["s-sn"]&<(this.__childNodes||this.childNodes,this.tagName,t["s-sn"])&&t.isConnected?(t.remove(),void ot(this)):this.__removeChild(t)}},bt=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"]=ut(e))||"",o=lt(Lt(this,"childNodes"),this.tagName,n)[0];if(o){ct(e,o,!0);const t=it(o,n)[0],s=Lt(t,"parentNode"),l=Lt(s,"insertBefore")(e,Lt(t,"nextSibling"));return at(o),l}return 1===e.nodeType&&e.getAttribute("slot")&&(e.hidden=!0),t.__prepend(e)}))}},$t=t=>{t.__append=t.append,t.append=function(...t){t.forEach((t=>{"string"==typeof t&&(t=this.ownerDocument.createTextNode(t)),this.appendChild(t)}))}},mt=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)}},gt=t=>{t.insertAdjacentText=function(t,e){this.insertAdjacentHTML(t,e)}},yt=t=>{t.__insertBefore||(t.__insertBefore=t.insertBefore,t.insertBefore=function(t,e){const{slotName:n,slotNode:o}=dt(t,this),s=this.__childNodes?this.childNodes:st(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"]){ct(t,o);const n=Lt(e,"parentNode");Lt(n,"insertBefore")(t,e),at(o)}}})),l)return t}const l=null==e?void 0:e.__parentNode;return l&&!this.isSameNode(l)?this.appendChild(t):this.__insertBefore(t,e)})},wt=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}},St=t=>{Mt("textContent",t),Object.defineProperty(t,"textContent",{get:function(){let t="";return(this.__childNodes?this.childNodes:st(this.childNodes)).forEach((e=>t+=e.textContent||"")),t},set:function(t){(this.__childNodes?this.childNodes:st(this.childNodes)).forEach((t=>{t["s-ol"]&&t["s-ol"].remove(),t.remove()})),this.insertAdjacentHTML("beforeend",t)}})},jt=t=>{class e extends Array{item(t){return this[t]}}Mt("children",t),Object.defineProperty(t,"children",{get(){return this.childNodes.filter((t=>1===t.nodeType))}}),Object.defineProperty(t,"childElementCount",{get(){return this.children.length}}),Mt("firstChild",t),Object.defineProperty(t,"firstChild",{get(){return this.childNodes[0]}}),Mt("lastChild",t),Object.defineProperty(t,"lastChild",{get(){return this.childNodes[this.childNodes.length-1]}}),Mt("childNodes",t),Object.defineProperty(t,"childNodes",{get(){const t=new e;return t.push(...st(this.__childNodes)),t}})},Ot=t=>{t&&void 0===t.__nextSibling&&globalThis.Node&&(Nt(t),Et(t),Ct(t),t.nodeType===Node.ELEMENT_NODE&&(xt(t),kt(t)))},Nt=t=>{t&&!t.__nextSibling&&(Mt("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}}))},xt=t=>{t&&!t.__nextElementSibling&&(Mt("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}}))},Et=t=>{t&&!t.__previousSibling&&(Mt("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}}))},kt=t=>{t&&!t.__previousElementSibling&&(Mt("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}}))},Ct=t=>{t&&!t.__parentNode&&(Mt("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}}))},Rt=["children","nextElementSibling","previousElementSibling"],It=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function Mt(t,e){if(!globalThis.Node||!globalThis.Element)return;let n;Rt.includes(t)?n=Object.getOwnPropertyDescriptor(Element.prototype,t):It.includes(t)&&(n=Object.getOwnPropertyDescriptor(Node.prototype,t)),n||(n=Object.getOwnPropertyDescriptor(e,t)),n&&Object.defineProperty(e,"__"+t,n)}function Lt(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 At=new WeakMap,Bt=(t,e,n)=>{let o=O.get(t);B&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,O.set(t,o)},Ft=(t,e,n)=>{var o;const s=Tt(e,n),l=O.get(s);if(!I.document)return s;if(t=11===t.nodeType?t:I.document,l)if("string"==typeof l){let n,i=At.get(t=t.head||t);if(i||At.set(t,i=new Set),!i.has(s)){if(t.host&&(n=t.querySelector(`[${E}="${s}"]`)))n.innerHTML=l;else{n=I.document.createElement("style"),n.innerHTML=l;const s=null!=(o=L.i)?o:Y(I.document);if(null!=s&&n.setAttribute("nonce",s),!(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(B){const e=new CSSStyleSheet;e.replaceSync(l),F?t.adoptedStyleSheets.unshift(e):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+=C),i&&i.add(s)}}else t.adoptedStyleSheets.includes(l)||(F?t.adoptedStyleSheets.push(l):t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return s},Tt=(t,e)=>"sc-"+(e&&32&t.o?t.u+"-"+e:t.u),Ut=t=>t.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),Pt=(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&&!J(o))&&(o+=""),i&&r?c[c.length-1].h+=o:c.push(i?Wt(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,Dt);const f=Wt(t,null);return f.p=e,c.length>0&&(f.v=c),f.$=s,f.S=l,f},Wt=(t,e)=>({o:0,j:t,h:e,O:null,v:null,p:null,$:null,S:null}),_t={},Dt={forEach:(t,e)=>t.map(Vt).forEach(e),map:(t,e)=>t.map(Vt).map(e).map(zt)},Vt=t=>({vattrs:t.p,vchildren:t.v,vkey:t.$,vname:t.S,vtag:t.j,vtext:t.h}),zt=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),Pt(t.vtag,e,...t.vchildren||[])}const e=Wt(t.vtag,t.vtext);return e.p=t.vattrs,e.v=t.vchildren,e.$=t.vkey,e.S=t.vname,e},qt=(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(k),c&&(u=c.split("."),u[0]===i||"0"===u[0])){f=Jt({o:0,N:u[0],k:u[1],C:u[2],R:u[3],j:l.tagName.toLowerCase(),O:l,p:{class:l.className||""}}),e.push(f),l.removeAttribute(k),t.v||(t.v=[]),d&&u[0]===i&&(l["s-si"]=d,f.p.class+=" "+d);const s=f.O.getAttribute("s-sn");"string"==typeof s&&("slot-fb"===f.j&&(Yt(s,u[2],f,l,t,e,n,o,r),d&&l.classList.add(d)),f.O["s-sn"]=s,f.O.removeAttribute("s-sn")),void 0!==f.R&&(t.v[f.R]=f),t=f,o&&"0"===f.C&&(o[f.R]=f.O)}if(l.shadowRoot)for(a=l.shadowRoot.childNodes.length-1;a>=0;a--)qt(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--)qt(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=Jt({N:u[1],k:u[2],C:u[3],R:u[4]||"0",O:l,p:null,v:null,$:null,S:null,j:null,h:null}),"t"===c?(f.O=Kt(l,3),f.O&&3===f.O.nodeType&&(f.h=f.O.textContent,e.push(f),l.remove(),i===f.N&&(t.v||(t.v=[]),t.v[f.R]=f),o&&"0"===f.C&&(o[f.R]=f.O))):"c"===c?(f.O=Kt(l,8),f.O&&8===f.O.nodeType&&(e.push(f),l.remove())):f.N===i&&("s"===c?Yt(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.j){const e=Wt(null,l.textContent);e.O=l,e.R="0",t.v=[e]}else 3!==l.nodeType||l.wholeText.trim()||l["s-nr"]||l.remove();return t},Ht=(t,e)=>{if(1===t.nodeType){const n=t[x]||t.getAttribute(x);n&&e.set(n,t);let o=0;if(t.shadowRoot)for(;o<t.shadowRoot.childNodes.length;o++)Ht(t.shadowRoot.childNodes[o],e);const s=t.__childNodes||t.childNodes;for(o=0;o<s.length;o++)Ht(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])}},Jt=t=>({o:0,N:null,k:null,C:null,R:"0",O:null,p:null,v:null,$:null,S:null,j:null,h:null,...t});function Yt(t,e,n,o,s,l,i,r,c){o["s-sr"]=!0,n.S=t||null,n.j="slot";const u=(null==s?void 0:s.O)?s.O["s-id"]||s.O.getAttribute("s-id"):"";if(r&&I.document){const l=n.O=I.document.createElement(n.j);n.S&&n.O.setAttribute("name",t),s.O.shadowRoot&&u&&u!==n.N?Lt(s.O,"insertBefore")(l,Lt(s.O,"children")[0]):Lt(Lt(o,"parentNode"),"insertBefore")(l,o),Gt(c,e,t,o,n.N),o.remove(),"0"===n.C&&(r[n.R]=n.O)}else{const l=n.O,i=u&&u!==n.N&&s.O.shadowRoot;Gt(c,e,t,o,i?u:n.N),ft(o),i&&s.O.insertBefore(l,s.O.children[0])}l.push(n),i.push(n),s.v||(s.v=[]),s.v[n.R]=n}var Gt=(t,e,n,o,s)=>{var l,i;let r=o.nextSibling;if(t[e]=t[e]||[],r&&!(null==(l=r.nodeValue)?void 0:l.startsWith("s.")))do{!r||(r.getAttribute&&r.getAttribute("slot")||r["s-sn"])!==n&&(""!==n||r["s-sn"]||r.getAttribute&&r.getAttribute("slot")||8!==r.nodeType&&3!==r.nodeType)||(r["s-sn"]=n,t[e].push({slot:o,node:r,hostId:s})),r=null==r?void 0:r.nextSibling}while(r&&!(null==(i=r.nodeValue)?void 0:i.startsWith("s.")))},Kt=(t,e)=>{let n=t;do{n=n.nextSibling}while(n&&(n.nodeType!==e||!n.nodeValue));return n},Qt=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};Qt("::slotted"),Qt(":host"),Qt(":host-context");var Xt,Zt,te,ee=t=>N.push(t),ne=t=>{var e;return null==(e=g(t))?void 0:e.I},oe=(t,e)=>"string"==typeof t&&t.startsWith(m)?t=function(t){return"string"==typeof t&&t.startsWith(m)?G.fromLocalValue(JSON.parse(atob(t.slice(11)))):t}(t):null==t||J(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t,se=t=>{var e;return null==(e=g(t))?void 0:e.$hostElement$},le=(t,e,n)=>{const o=se(t);return{emit:t=>ie(o,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},ie=(t,e,n)=>{const o=L.ce(e,n);return t.dispatchEvent(o),o},re=(t,e,n,o,s,l,i)=>{if(n===o)return;let r=w(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,s=ue(n);let l=ue(o);if((t["s-si"]||t["s-sc"])&&i){const n=t["s-sc"]||t["s-si"];l.push(n),s.forEach((t=>{t.startsWith(n)&&l.push(t)})),l=[...new Set(l)].filter((t=>t)),e.add(...l)}else 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=J(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(R,e):t.removeAttribute(e)):(!r||4&l||s)&&!i&&1===t.nodeType&&(o=!0===o?"":o,u?t.setAttributeNS(R,e,o):t.setAttribute(e,o))}else if(e="-"===e[2]?e.slice(3):w(I,c)?c.slice(2):c[2]+e.slice(3),n||o){const s=e.endsWith(fe);e=e.replace(ae,""),n&&L.rel(t,e,n,s),o&&L.ael(t,e,o,s)}},ce=/\s/,ue=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(ce):[]),fe="Capture",ae=RegExp(fe+"$"),de=(t,e,n,o)=>{const s=11===e.O.nodeType&&e.O.host?e.O.host:e.O,l=t&&t.p||{},i=e.p||{};for(const t of he(Object.keys(l)))t in i||re(s,t,l[t],void 0,n,e.o,o);for(const t of he(Object.keys(i)))re(s,t,l[t],i[t],n,e.o,o)};function he(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var pe=!1,ve=!1,be=!1,$e=!1,me=(t,e,n)=>{var o;const s=e.v[n];let l,i,r,c=0;if(pe||(be=!0,"slot"===s.j&&(s.o|=s.v?2:1)),null!==s.h)l=s.O=I.document.createTextNode(s.h);else if(1&s.o)l=s.O=I.document.createTextNode(""),de(null,s,$e);else{if($e||($e="svg"===s.j),!I.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.O=I.document.createElementNS($e?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!pe&&2&s.o?"slot-fb":s.j),$e&&"foreignObject"===s.j&&($e=!1),de(null,s,$e),null!=Xt&&void 0!==Xt&&l["s-si"]!==Xt&&l.classList.add(l["s-si"]=Xt),s.v)for(c=0;c<s.v.length;++c)i=me(t,s,c),i&&l.appendChild(i);"svg"===s.j?$e=!1:"foreignObject"===l.tagName&&($e=!0)}return l["s-hn"]=te,3&s.o&&(l["s-sr"]=!0,l["s-cr"]=Zt,l["s-sn"]=s.S||"",l["s-rf"]=null==(o=s.p)?void 0:o.ref,ft(l),r=t&&t.v&&t.v[n],r&&r.j===s.j&&t.O&&ge(t.O),Re(Zt,l,e.O,null==t?void 0:t.O)),l},ge=t=>{L.o|=1;const e=t.closest(te.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"]&&(Ce(e,t,null!=n?n:null),t["s-sh"]=void 0,be=!0)}L.o&=-2},ye=(t,e)=>{L.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"]===te&&n.push(e)}for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==te&&o["s-ol"]&&(Ce(Oe(o).parentNode,o,Oe(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,be=!0),e&&ye(o,e)}L.o&=-2},we=(t,e,n,o,s,l)=>{let i,r=t["s-cr"]&&t["s-cr"].parentNode||t;for(r.shadowRoot&&r.tagName===te&&(r=r.shadowRoot);s<=l;++s)o[s]&&(i=me(null,n,s),i&&(o[s].O=i,Ce(r,i,Oe(e))))},Se=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.O;ke(e),t&&(ve=!0,t["s-ol"]?t["s-ol"].remove():ye(t,!0),t.remove())}}},je=(t,e,n=!1)=>t.j===e.j&&("slot"===t.j?t.S===e.S:n?(n&&!t.$&&e.$&&(t.$=e.$),!0):t.$===e.$),Oe=t=>t&&t["s-ol"]||t,Ne=(t,e,n=!1)=>{const o=e.O=t.O,s=t.v,l=e.v,i=e.j,r=e.h;let c;null===r?($e="svg"===i||"foreignObject"!==i&&$e,"slot"!==i||pe||t.S!==e.S&&(e.O["s-sn"]=e.S||"",ge(e.O.parentElement)),de(t,e,$e,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],b=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==b)b=o[--p];else if(je(d,v,s))Ne(d,v,s),d=e[++r],v=o[++c];else if(je(h,b,s))Ne(h,b,s),h=e[--a],b=o[--p];else if(je(d,b,s))"slot"!==d.j&&"slot"!==b.j||ye(d.O.parentNode,!1),Ne(d,b,s),Ce(t,d.O,h.O.nextSibling),d=e[++r],b=o[--p];else if(je(h,v,s))"slot"!==d.j&&"slot"!==b.j||ye(h.O.parentNode,!1),Ne(h,v,s),Ce(t,h.O,d.O),h=e[--a],v=o[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].$&&e[f].$===v.$){u=f;break}u>=0?(i=e[u],i.j!==v.j?l=me(e&&e[c],n,u):(Ne(i,v,s),e[u]=void 0,l=i.O),v=o[++c]):(l=me(e&&e[c],n,c),v=o[++c]),l&&Ce(Oe(d.O).parentNode,l,Oe(d.O))}r>a?we(t,null==o[p+1]?null:o[p+1].O,n,o,c,p):c>p&&Se(e,r,a)})(o,s,e,l,n):null!==l?(null!==t.h&&(o.textContent=""),we(o,null,e,l,0,l.length-1)):n||null===s?n&&null!==s&&null===l&&(e.v=s):Se(s,0,s.length-1),$e&&"svg"===i&&($e=!1)):(c=o["s-cr"])?c.parentNode.textContent=r:t.h!==r&&(o.data=r)},xe=[],Ee=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(rt(e,s)){let n=xe.find((t=>t.M===e));ve=!0,e["s-sn"]=e["s-sn"]||s,n?(n.M["s-sh"]=t["s-hn"],n.L=t):(e["s-sh"]=t["s-hn"],xe.push({L:t,M:e})),e["s-sr"]&&xe.map((t=>{rt(t.M,e["s-sn"])&&(n=xe.find((t=>t.M===e)),n&&!t.L&&(t.L=n.L))}))}else xe.some((t=>t.M===e))||xe.push({M:e})}1===t.nodeType&&Ee(t)}},ke=t=>{t.p&&t.p.ref&&t.p.ref(null),t.v&&t.v.map(ke)},Ce=(t,e,n)=>{if("string"==typeof e["s-sn"]&&e["s-sr"]&&e["s-cr"])Re(e["s-cr"],e,t,e.parentElement);else if("string"==typeof e["s-sn"]){11!==t.getRootNode().nodeType&&Ct(e),t.insertBefore(e,n);const{slotNode:o}=dt(e);return o&&at(o),e}return t.__insertBefore?t.__insertBefore(e,n):null==t?void 0:t.insertBefore(e,n)};function Re(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 Ie=(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()})))}},Me=(t,e)=>{if(t.o|=16,4&t.o)return void(t.o|=512);Ie(t,t.B);const n=()=>Le(t,e);if(!e)return q(n);queueMicrotask((()=>{n()}))},Le=(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.F&&(t.F.map((([t,e])=>_e(o,t,e,n))),t.F=void 0),t.T.length&&t.T.forEach((t=>t(n))),s=_e(o,"componentWillLoad",void 0,n)):s=_e(o,"componentWillUpdate",void 0,n),s=Ae(s,(()=>_e(o,"componentWillRender",void 0,n))),Ae(s,(()=>Fe(t,o,e)))},Ae=(t,e)=>Be(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),Be=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Fe=async(t,e,n)=>{var o;const s=t.$hostElement$,l=s["s-rc"];n&&(t=>{const e=t.U,n=t.$hostElement$,o=e.o,s=Ft(n.shadowRoot?n.shadowRoot:n.getRootNode(),e,t.I);10&o&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(t);Te(t,e,s,n),l&&(l.map((t=>t())),s["s-rc"]=void 0);{const e=null!=(o=s["s-p"])?o:[],n=()=>Ue(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},Te=(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.U,f=t.P||Wt(null,null),a=(t=>t&&t.j===_t)(e)?e:Pt(null,null,e);if(te=c.tagName,u.W&&(a.p=a.p||{},u.W.forEach((([t,e])=>{a.p[e]=c[t]}))),n&&a.p)for(const t of Object.keys(a.p))c.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(a.p[t]=c[t]);if(a.j=null,a.o|=4,t.P=a,a.O=f.O=c.shadowRoot||c,Xt=c["s-sc"],pe=!(!(1&u.o)||128&u.o),Zt=c["s-cr"],ve=!1,Ne(f,a,n),L.o|=1,be){Ee(a.O);for(const t of xe){const e=t.M;if(!e["s-ol"]&&I.document){const t=I.document.createTextNode("");t["s-nr"]=e,Ce(e.parentNode,e["s-ol"]=t,e)}}for(const t of xe){const e=t.M,r=t.L;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&&(Ce(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(ve&&ot(a.O),L.o&=-2,xe.length=0,2&u.o){const t=a.O.__childNodes||a.O.childNodes;for(const e of t)e["s-hn"]===te||e["s-sh"]||(n&&null==e["s-ih"]&&(e["s-ih"]=null!=(r=e.hidden)&&r),e.hidden=!0)}Zt=void 0})(t,e,o)}catch(e){S(e,t.$hostElement$)}return null},Ue=t=>{const e=t.$hostElement$,n=t.t,o=t.B;_e(n,"componentDidRender",void 0,e),64&t.o?_e(n,"componentDidUpdate",void 0,e):(t.o|=64,De(e),_e(n,"componentDidLoad",void 0,e),t._(e),o||We()),t.D(e),t.A&&(t.A(),t.A=void 0),512&t.o&&V((()=>Me(t,!1))),t.o&=-517},Pe=t=>{var e;{const n=g(t),o=null==(e=null==n?void 0:n.$hostElement$)?void 0:e.isConnected;return o&&2==(18&n.o)&&Me(n,!1),o}},We=()=>{var t;V((()=>ie(I,"appload",{detail:{namespace:"ionic"}}))),(null==(t=L.V)?void 0:t.size)&&L.V.clear()},_e=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){S(t,o)}},De=t=>t.classList.add("hydrated"),Ve=(t,e,n,o)=>{const s=g(t);if(!s)return;if(!s)throw Error(`Couldn't find host element for "${o.u}" 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.q.get(e),r=s.o,c=s.t;if(n=oe(n,o.H[e][0]),(!(8&r)||void 0===i)&&n!==i&&(!Number.isNaN(i)||!Number.isNaN(n))&&(s.q.set(e,n),c)){if(o.J&&128&r){const t=o.J[e];t&&t.map((t=>{try{c[t](n,i,e)}catch(t){S(t,l)}}))}if(2==(18&r)){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(n,i,e))return;Me(s,!1)}}},ze=(t,e,n)=>{var o,s;const l=t.prototype;{t.watchers&&!e.J&&(e.J=t.watchers),t.deserializers&&!e.Y&&(e.Y=t.deserializers),t.serializers&&!e.G&&(e.G=t.serializers);const i=Object.entries(null!=(o=e.H)?o:{});if(i.map((([t,[o]])=>{if(31&o||2&n&&32&o){const{get:s,set:i}=Object.getOwnPropertyDescriptor(l,t)||{};s&&(e.H[t][0]|=2048),i&&(e.H[t][0]|=4096),(1&n||!s)&&Object.defineProperty(l,t,{get(){{if(!(2048&e.H[t][0]))return((t,e)=>g(this).q.get(e))(0,t);const n=g(this),o=n?n.t:l;if(!o)return;return o[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(l,t,{set(s){const l=g(this);if(l){if(i)return void 0===(32&o?this[t]:l.$hostElement$[t])&&l.q.get(t)&&(s=l.q.get(t)),i.call(this,oe(s,o)),void Ve(this,t,s=32&o?this[t]:l.$hostElement$[t],e);{if(!(1&n&&4096&e.H[t][0]))return Ve(this,t,s,e),void(1&n&&!l.t&&l.T.push((()=>{4096&e.H[t][0]&&l.t[t]!==l.q.get(t)&&(l.t[t]=s)})));const i=()=>{const n=l.t[t];!l.q.get(t)&&n&&l.q.set(t,n),l.t[t]=oe(s,o),Ve(this,t,l.t[t],e)};l.t?i():l.T.push((()=>{i()}))}}}})}else 1&n&&64&o&&Object.defineProperty(l,t,{value(...e){var n;const o=g(this);return null==(n=null==o?void 0:o.K)?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){L.jmp((()=>{var i;const r=n.get(t),c=g(this);if(this.hasOwnProperty(r)&&(s=this[r],delete this[r]),l.hasOwnProperty(r)&&"number"==typeof this[r]&&this[r]==s)return;if(null==r){const n=null==c?void 0:c.o;if(c&&n&&!(8&n)&&128&n&&s!==o){const n=c.t,l=null==(i=e.J)?void 0:i[t];null==l||l.forEach((e=>{null!=n[e]&&n[e].call(n,s,o,t)}))}return}const u=Object.getOwnPropertyDescriptor(l,r);(s=(null!==s||"boolean"!=typeof this[r])&&s)==this[r]||u.get&&!u.set||(this[r]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.J)?s:{}),...i.filter((([t,e])=>31&e[0])).map((([t,o])=>{var s;const l=o[1]||t;return n.set(l,t),512&o[0]&&(null==(s=e.W)||s.push([t,l])),l}))]))}}return t},qe=(t,e)=>{_e(t,"connectedCallback",void 0,e)},He=t=>{if(!(1&L.o)){const e=g(t);if(!e)return;const n=e.U,o=()=>{};if(1&e.o)Qe(t,e,n.X),(null==e?void 0:e.t)?qe(e.t,t):(null==e?void 0:e.Z)&&e.Z.then((()=>qe(e.t,t)));else{let o;if(e.o|=1,o=t.getAttribute(x),o){if(1&n.o){const e=Ft(t.shadowRoot,n,t.getAttribute("s-mode"));t.classList.remove(e+"-h",e+"-s")}else if(2&n.o){const e=Tt(n,t.getAttribute("s-mode"));t["s-sc"]=e}((t,e,n,o)=>{var s,l;const i=t.shadowRoot,r=[],c=[],u=[],f=i?[]:null,a=Wt(e,null);let d;a.O=t;{const e=o.U;e&&10&e.o&&t["s-sc"]?(d=t["s-sc"],t.classList.add(d+"-h")):t["s-sc"]&&delete t["s-sc"]}!I.document||L.V&&L.V.size||Ht(I.document.body,L.V=new Map),t[x]=n,t.removeAttribute(x),o.P=qt(a,r,c,f,t,t,n,u);let h=0;const p=r.length;let v;for(;h<p;h++){v=r[h];const n=v.N+"."+v.k,o=L.V.get(n),l=v.O;if(i){if((null==(s=v.j)?void 0:(""+s).includes("-"))&&"slot-fb"!==v.j&&!v.O.shadowRoot){const e=g(v.O);if(e){const n=Tt(e.U,v.O.getAttribute("s-mode")),o=I.document.querySelector(`style[sty-id="${n}"]`);o&&t.shadowRoot.append(o.cloneNode(!0))}}}else l["s-hn"]=e.toUpperCase(),"slot"===v.j&&(l["s-cr"]=t["s-cr"]);"slot"===v.j&&(v.S=v.O["s-sn"]||v.O.name||null,v.v?(v.o|=2,v.O.childNodes.length||v.v.forEach((t=>{v.O.appendChild(t.O)}))):v.o|=1),o&&o.isConnected&&(o.parentElement.shadowRoot&&""===o["s-en"]&&o.parentNode.insertBefore(l,o.nextSibling),o.parentNode.removeChild(o),i||(l["s-oo"]=parseInt(v.k))),o&&!o["s-id"]&&L.V.delete(n)}const b=[],$=u.length;let m,y,w,S,j=0;for(;j<$;j++)if(m=u[j],m&&m.length)for(w=m.length,y=0;y<w;y++){if(S=m[y],b[S.hostId]||(b[S.hostId]=L.V.get(S.hostId)),!b[S.hostId])continue;const t=b[S.hostId];t.shadowRoot&&S.node.parentElement!==t&&t.appendChild(S.node),t.shadowRoot&&i||(S.slot["s-cr"]||(S.slot["s-cr"]=t["s-cr"],S.slot["s-cr"]=!S.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0]),ct(S.node,S.slot,!1,S.node["s-oo"]),(null==(l=S.node.parentElement)?void 0:l.shadowRoot)&&S.node.getAttribute&&S.node.getAttribute("slot")&&S.node.removeAttribute("slot"),Ot(S.node))}if(d&&c.length&&c.forEach((t=>{t.O.parentElement.classList.add(d+"-s")})),i){let e=0;const n=f.length;if(n){for(;e<n;e++){const t=f[e];t&&i.appendChild(t)}Array.from(t.childNodes).forEach((t=>{"string"!=typeof t["s-en"]&&"string"!=typeof t["s-sn"]&&(1===t.nodeType&&t.slot&&t.hidden?t.removeAttribute("hidden"):(8===t.nodeType&&!t.nodeValue||3===t.nodeType&&!t.wholeText.trim())&&t.parentNode.removeChild(t))}))}}o.$hostElement$=t})(t,n.u,o,e)}o||12&n.o&&Je(t);{let n=t;for(;n=n.parentNode||n.host;)if(1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){Ie(e,e.B=n);break}}n.H&&Object.entries(n.H).map((([e,[n]])=>{if(31&n&&e in t&&t[e]!==Object.prototype[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.tt){const s=((t,e)=>{const n=t.u.replace(/-/g,"_"),o=t.tt;if(!o)return;const s=j.get(o);return s?s[n]:import(`./${o}.entry.js`).then((t=>(j.set(o,t),t[n])),(t=>{S(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.u}#${e.I}" was not found`);o.isProxied||(n.J=o.watchers,n.G=o.serializers,n.Y=o.deserializers,ze(o,n,2),o.isProxied=!0);const l=()=>{};e.o|=8;try{new o(e)}catch(e){S(e,t)}e.o&=-9,e.o|=128,l(),qe(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.I=(t=>N.map((e=>e(t))).find((t=>!!t)))(t),e.I&&(s=o.style[e.I]));const l=Tt(n,e.I);if(!O.has(l)){const t=()=>{};Bt(l,s,!!(1&n.o)),t()}}}const s=e.B,l=()=>Me(e,!0);s&&s["s-rc"]?s["s-rc"].push(l):l()})(t,e,n)}o()}},Je=t=>{if(!I.document)return;const e=t["s-cr"]=I.document.createComment("");e["s-cn"]=!0,Ce(t,e,t.firstChild)},Ye=(t,e)=>{_e(t,"disconnectedCallback",void 0,e||t)},Ge=(t,e={})=>{var n;if(!I.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const o=[],s=e.exclude||[],l=I.customElements,i=I.document.head,r=i.querySelector("meta[charset]"),c=I.document.createElement("style"),u=[];let f,a=!0;Object.assign(L,e),L.l=new URL(e.resourcesUrl||"./",I.document.baseURI).href,L.o|=2,(()=>{if(!I.document)return;const t=I.document.querySelectorAll(`[${E}]`);let e=0;for(;e<t.length;e++)Bt(t[e].getAttribute(E),Ut(t[e].innerHTML),!0)})();let d=!1;if(t.map((t=>{t[1].map((e=>{var n,i,r;const c={o:e[0],u:e[1],H:e[2],X:e[3]};4&c.o&&(d=!0),c.H=e[2],c.X=e[3],c.W=[],c.J=null!=(n=e[4])?n:{},c.G=null!=(i=e[5])?i:{},c.Y=null!=(r=e[6])?r:{};const h=c.u,p=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,e)=>{const n={o:0,$hostElement$:t,U:e,q:new Map,et:new Map};n.K=new Promise((t=>n.D=t)),n.Z=new Promise((t=>n._=t)),t["s-p"]=[],t["s-rc"]=[],n.T=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,c),1&c.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.u}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else nt.call(t,c)}connectedCallback(){const t=g(this);t&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Qe(this,t,c.X)),f&&(clearTimeout(f),f=null),a?u.push(this):L.jmp((()=>He(this))))}disconnectedCallback(){L.jmp((()=>(async t=>{if(!(1&L.o)){const e=g(t);(null==e?void 0:e.nt)&&(e.nt.map((t=>t())),e.nt=void 0),(null==e?void 0:e.t)?Ye(e.t,t):(null==e?void 0:e.Z)&&e.Z.then((()=>Ye(e.t,t)))}At.has(t)&&At.delete(t),t.shadowRoot&&At.has(t.shadowRoot)&&At.delete(t.shadowRoot)})(this))),L.raf((()=>{var t;const e=g(this);if(!e)return;const n=u.findIndex((t=>t===this));n>-1&&u.splice(n,1),(null==(t=null==e?void 0:e.P)?void 0:t.O)instanceof Node&&!e.P.O.isConnected&&delete e.P.O}))}componentOnReady(){var t;return null==(t=g(this))?void 0:t.Z}};!(1&c.o)&&256&c.o&&(t=>{ht(t),pt(t),$t(t),bt(t),wt(t),mt(t),gt(t),yt(t),St(t),jt(t),vt(t)})(p.prototype),c.tt=t[0],s.includes(h)||l.get(h)||(o.push(h),l.define(h,ze(p,c,1)))}))})),o.length>0&&(d&&(c.textContent+=C),c.textContent+=o.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",c.innerHTML.length)){c.setAttribute("data-styles","");const t=null!=(n=L.i)?n:Y(I.document);null!=t&&c.setAttribute("nonce",t),i.insertBefore(c,r?r.nextSibling:i.firstChild)}a=!1,u.length?u.map((t=>t.connectedCallback())):L.jmp((()=>f=setTimeout(We,30)))},Ke=(t,e)=>e,Qe=(t,e,n)=>{n&&I.document&&n.map((([n,o,s])=>{const l=Ze(I.document,t,n),i=Xe(e,s),r=tn(n);L.ael(l,o,i,r),(e.nt=e.nt||[]).push((()=>L.rel(l,o,i,r)))}))},Xe=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.F=t.F||[]).push([e,n])}catch(e){S(e,t.$hostElement$)}},Ze=(t,e,n)=>4&n?t:8&n?I:16&n?t.body:e,tn=t=>({passive:!!(1&t),capture:!!(2&t)}),en=t=>L.i=t;export{h as B,Ke as F,M as H,c as L,z as a,Ge as b,le as c,_t as d,e,u as f,se as g,Pt as h,Pe as i,f as j,H as k,n as l,s as m,o as n,ne as o,A as p,ee as q,y as r,en as s,a as t,q as w}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{j as a}from"./p-
|
|
4
|
+
import{j as a}from"./p-C8IsBmNU.js";const i=(a,i=0)=>new Promise((e=>{r(a,i,e)})),r=(a,i=0,r)=>{let e,t;const n={passive:!0},o=()=>{e&&e()},s=i=>{void 0!==i&&a!==i.target||(o(),r(i))};return a&&(a.addEventListener("webkitTransitionEnd",s,n),a.addEventListener("transitionend",s,n),t=setTimeout(s,i+500),e=()=>{void 0!==t&&(clearTimeout(t),t=void 0),a.removeEventListener("webkitTransitionEnd",s,n),a.removeEventListener("transitionend",s,n)}),o},e=(a,i)=>{a.componentOnReady?a.componentOnReady().then((a=>i(a))):d((()=>i(a)))},t=a=>void 0!==a.componentOnReady,n=(a,i=[])=>{const r={};return i.forEach((i=>{a.hasAttribute(i)&&(null!==a.getAttribute(i)&&(r[i]=a.getAttribute(i)),a.removeAttribute(i))})),r},o=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],s=a=>n(a,o),l=(a,i,r,e)=>a.addEventListener(i,r,e),u=(a,i,r,e)=>a.removeEventListener(i,r,e),c=(a,i=a)=>a.shadowRoot||i,d=a=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(a):"function"==typeof requestAnimationFrame?requestAnimationFrame(a):setTimeout(a),m=a=>!!a.shadowRoot&&!!a.attachShadow,p=a=>{if(a.focus(),a.classList.contains("ion-focusable")){const i=a.closest("ion-app");i&&i.setFocus([a])}},f=(a,i,r,e,t)=>{{let a=i.querySelector("input.aux-input");a||(a=i.ownerDocument.createElement("input"),a.type="hidden",a.classList.add("aux-input"),i.appendChild(a)),a.disabled=t,a.name=r,a.value=e||""}},b=(a,i,r)=>Math.max(a,Math.min(i,r)),v=(i,r)=>{if(!i){const i="ASSERT: "+r;throw a(i),new Error(i)}},w=a=>{if(a){const i=a.changedTouches;if(i&&i.length>0){const a=i[0];return{x:a.clientX,y:a.clientY}}if(void 0!==a.pageX)return{x:a.pageX,y:a.pageY}}return{x:0,y:0}},x=a=>{const i="rtl"===document.dir;switch(a){case"start":return i;case"end":return!i;default:throw new Error(`"${a}" is not a valid value for [side]. Use "start" or "end" instead.`)}},y=(a,i)=>{const r=a._original||a;return{_original:a,emit:h(r.emit.bind(r),i)}},h=(a,i=0)=>{let r;return(...e)=>{clearTimeout(r),r=setTimeout(a,i,...e)}},_=(a,i)=>{if(null!=a||(a={}),null!=i||(i={}),a===i)return!0;const r=Object.keys(a);if(r.length!==Object.keys(i).length)return!1;for(const e of r){if(!(e in i))return!1;if(a[e]!==i[e])return!1}return!0},T=a=>"number"==typeof a&&!isNaN(a)&&isFinite(a);export{f as a,n as b,e as c,y as d,b as e,l as f,c as g,t as h,s as i,T as j,m as k,v as l,u as m,p as n,x as o,h as p,w as q,d as r,_ as s,i as t}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
+
*/
|
|
4
|
+
import{c as o}from"./p-CTfR9YZG.js";import{t as s}from"./p-C8IsBmNU.js";const t="ion-content",a=".ion-content-scroll-host",r=`${t}, ${a}`,e=o=>"ION-CONTENT"===o.tagName,i=async s=>e(s)?(await new Promise((t=>o(s,t))),s.getScrollElement()):s,n=o=>o.querySelector(a)||o.querySelector(r),m=o=>o.closest(r),f=(o,s)=>e(o)?o.scrollToTop(s):Promise.resolve(o.scrollTo({top:0,left:0,behavior:"smooth"})),c=(o,s,t,a)=>e(o)?o.scrollByPoint(s,t,a):Promise.resolve(o.scrollBy({top:t,left:s,behavior:a>0?"smooth":"auto"})),p=o=>s(o,t),h=o=>{if(e(o)){const s=o.scrollY;return o.scrollY=!1,s}return o.style.setProperty("overflow","hidden"),!0},l=(o,s)=>{e(o)?o.scrollY=s:o.style.removeProperty("overflow")};export{a as I,n as a,t as b,c,h as d,m as f,i as g,e as i,p,l as r,f as s}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{c as e}from"./p-
|
|
4
|
+
import{c as e}from"./p-CTfR9YZG.js";const o=async(o,t,i,n,r,s)=>{var a;if(o)return o.attachViewToDom(t,i,r,n);if(!(s||"string"==typeof i||i instanceof HTMLElement))throw new Error("framework delegate is missing");const c="string"==typeof i?null===(a=t.ownerDocument)||void 0===a?void 0:a.createElement(i):i;return n&&n.forEach((e=>c.classList.add(e))),r&&Object.assign(c,r),t.appendChild(c),await new Promise((o=>e(c,o))),c},t=(e,o)=>{if(o){if(e)return e.removeViewFromDom(o.parentElement,o);o.remove()}return Promise.resolve()},i=()=>{let o,t;return{attachViewToDom:async(i,n,r={},s=[])=>{var a,c;let l;if(o=i,n){const t="string"==typeof n?null===(a=o.ownerDocument)||void 0===a?void 0:a.createElement(n):n;s.forEach((e=>t.classList.add(e))),Object.assign(t,r),o.appendChild(t),l=t,await new Promise((o=>e(t,o)))}else if(o.children.length>0&&("ION-MODAL"===o.tagName||"ION-POPOVER"===o.tagName)&&!(l=o.children[0]).classList.contains("ion-delegate-host")){const e=null===(c=o.ownerDocument)||void 0===c?void 0:c.createElement("div");e.classList.add("ion-delegate-host"),s.forEach((o=>e.classList.add(o))),e.append(...o.children),o.appendChild(e),l=e}const m=document.querySelector("ion-app")||document.body;return t=document.createComment("ionic teleport"),o.parentNode.insertBefore(t,o),m.appendChild(o),null!=l?l:o},removeViewFromDom:()=>(o&&t&&(t.parentNode.insertBefore(o,t),t.remove()),Promise.resolve())}};export{i as C,o as a,t as d}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{f as e}from"./p-COOKa-0k.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(`[ion-datetime] - 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(`[ion-datetime] - 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}},U=(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}},g=e=>U(e,-1),E=e=>U(e,1),N=(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()},K=(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)=>L(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`)},L=(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:N(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,L as Q,oe as R,o as a,A as b,t as c,q as d,K as e,m as f,C as g,E as h,n as i,g 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}
|
|
4
|
+
import{f as e}from"./p-C8IsBmNU.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(`[ion-datetime] - 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(`[ion-datetime] - 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}},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}},A=(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}},N=e=>A(e,-1),g=e=>A(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}`},B=(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()},H=(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},R=(e,t)=>{const n=K(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)=>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,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,U(e)]:[C(e),o,r]}return[C(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: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(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:B(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,L as Q,oe as R,o as a,U as b,t as c,q as d,H as e,m as f,C as g,g as h,n as i,N 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{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-
|
|
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-CTfR9YZG.js";import{OVERLAY_BACK_BUTTON_PRIORITY as s,shouldUseCloseWatcher as r}from"./p-B0q1YL7N.js";import{e as d,j as l,f as c}from"./p-C8IsBmNU.js";import{b as u}from"./p-BFvmZNyx.js";import{C as m}from"./p-D-eFFUkA.js";import{B as p}from"./p-BTEOs1at.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=>D(n,o),dismiss:(o,e,t)=>P(document,o,e,n,t),getTop:async()=>E(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"),N=O("ion-toast"),B=n=>{"undefined"!=typeof document&&F(document);const o=y++;n.overlayIndex=o},I=n=>(n.hasAttribute("id")||(n.id="ion-overlay-"+ ++w),n.id),D=(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(),S=(n,e)=>{let t=n;const i=null==n?void 0:n.shadowRoot;i&&(t=i.querySelector(v)||n),t?o(t):e.focus()},F=n=>{0===y&&(y=1,n.addEventListener("focus",(o=>{((n,o)=>{const e=E(o,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover"),t=n.target;e&&t&&(e.classList.contains(X)||(e.shadowRoot?(()=>{if(e.contains(t))e.lastFocus=t;else if("ION-TOAST"===t.tagName)S(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)S(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=E(n);(null==e?void 0:e.backdropDismiss)&&o.detail.register(s,(()=>{e.dismiss(void 0,_)}))})),r()||n.addEventListener("keydown",(o=>{if("Escape"===o.key){const o=E(n);(null==o?void 0:o.backdropDismiss)&&o.dismiss(void 0,_)}})))},P=(n,o,e,t,i)=>{const a=E(n,t,i);return a?a.dismiss(o,e):Promise.reject("overlay does not exist")},Z=(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"))),E=(n,o,e)=>{const t=Z(n,o);return void 0===e?t[t.length-1]:t.find((n=>n.id===e))},G=(n=!1)=>{const o=q(document).querySelector("ion-router-outlet, #ion-view-container-root");o&&(n?o.setAttribute("aria-hidden","true"):o.removeAttribute("aria-hidden"))},L=async(n,o,e,t,i)=>{var a,s;if(n.presented)return;"ION-TOAST"!==n.el.tagName&&M(n.el);const r=n.el,l="ION-TOAST"!==r.tagName&&!1!==r.focusTrap&&!1!==r.showBackdrop;if(n.presented=!0,n.willPresent.emit(),l){const n=q(document).querySelector("ion-router-outlet, #ion-view-container-root");!!n&&n.contains(r)||G(!0),document.body.classList.add(p)}null===(a=n.willPresentShorthand)||void 0===a||a.emit();const c=u(n),m=n.enterAnimation?n.enterAnimation:d.get(o,"ios"===c?e:t);await U(n,m,n.el,i)&&(n.didPresent.emit(),null===(s=n.didPresentShorthand)||void 0===s||s.emit()),!n.keyboardClose||null!==document.activeElement&&n.el.contains(document.activeElement)||n.el.focus(),n.el.removeAttribute("aria-hidden"),n.el.removeAttribute("inert")},M=async n=>{let o=document.activeElement;if(!o)return;o.blur();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()},$=async(o,e,t,i,a,s,r)=>{var c,m;if(!o.presented)return!1;const v=(void 0!==n?Z(n):[]).filter((n=>"ION-TOAST"!==n.tagName&&!1!==n.focusTrap&&!1!==n.showBackdrop)),f=o.el;"ION-TOAST"!==f.tagName&&!1!==f.focusTrap&&!1!==f.showBackdrop&&1===v.length&&v[0].id===f.id&&(G(!1),document.body.classList.remove(p)),o.presented=!1;try{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=u(o),l=o.leaveAnimation?o.leaveAnimation:d.get(i,"ios"===n?a:s);t!==H&&await U(o,l,o.el,r),o.didDismiss.emit({data:e,role:t}),null===(m=o.didDismissShorthand)||void 0===m||m.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){l(`[${o.el.tagName.toLowerCase()}] - `,n)}return o.el.remove(),!0},q=n=>n.querySelector("ion-app")||n.body,U=async(n,o,e,t)=>{e.classList.remove("overlay-hidden");const i=o(n.el,t);n.animated&&d.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},V=(n,o)=>{let e;const t=new Promise((n=>e=n));return Y(n,o,(n=>{e(n.detail)})),t},Y=(n,o,e)=>{const a=t=>{i(n,o,a),e(t)};t(n,o,a)},z=n=>"cancel"===n||n===_,R=n=>n(),W=(n,o)=>{if("function"==typeof n)return d.get("_zoneGate",R)((()=>{try{return n(o)}catch(n){throw n}}))},_="backdrop",H="gesture",J=39,K=n=>{let o,e=!1;const t=m(),i=(i=!1)=>{if(o&&!i)return{delegate:o,inline:e};const{el:a,hasController:s,delegate:r}=n;return e=null!==a.parentNode&&!s,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):c(`[${e.tagName.toLowerCase()}] - 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}},X="ion-disable-focus-trap";export{_ as B,X as F,H as G,J as O,T as a,k as b,C as c,K as d,Q as e,L as f,$ as g,V as h,z as i,B as j,I as k,x as l,j as m,f as n,E as o,A as p,h as q,W as s,N as t}
|
|
@@ -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 as t}from"./p-
|
|
4
|
+
import{w as o}from"./p-ZjP4CjeZ.js";import{r as t}from"./p-CTfR9YZG.js";const r=(r,e,i)=>{let n;const s=()=>void 0!==e()&&void 0===r.label&&null!==i(),d=()=>{const t=e();if(void 0===t)return;if(!s())return void t.style.removeProperty("width");const c=i().scrollWidth;if(0===c&&null===t.offsetParent&&void 0!==o&&"IntersectionObserver"in o){if(void 0!==n)return;const o=n=new IntersectionObserver((t=>{1===t[0].intersectionRatio&&(d(),o.disconnect(),n=void 0)}),{threshold:.01,root:r});o.observe(t)}else t.style.setProperty("width",.75*c+"px")};return{calculateNotchWidth:()=>{s()&&t((()=>{d()}))},destroy:()=>{n&&(n.disconnect(),n=void 0)}}};export{r as c}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
+
*/
|
|
4
|
+
import{j as e}from"./p-C8IsBmNU.js";import{w as o}from"./p-ZjP4CjeZ.js";let t;const i=(e,o,i)=>{const n=o.startsWith("animation")?(r=e,void 0===t&&(t=void 0===r.style.animationName&&void 0!==r.style.webkitAnimationName?"-webkit-":""),t):"";var r;e.style.setProperty(n+o,i)},n=(e=[],o)=>{if(void 0!==o){const t=Array.isArray(o)?o:[o];return[...e,...t]}return e},r=t=>{let r,a,s,d,l,f,c,v,m,u,p,y=[],g=[],A=[],b=!1,C={},E=[],h=[],S={},j=0,k=!1,R=!1,w=!0,T=!1,D=!0,F=!1;const I=t,W=[],K=[],M=[],P=[],Z=[],x=[],B=[],N=[],U=[],q=[],z=[],G="function"==typeof AnimationEffect||void 0!==o&&"function"==typeof o.AnimationEffect,H="function"==typeof Element&&"function"==typeof Element.prototype.animate&&G,J=()=>z,L=(e,o)=>{const t=o.findIndex((o=>o.c===e));t>-1&&o.splice(t,1)},O=(e,o)=>(((null==o?void 0:o.oneTimeCallback)?K:W).push({c:e,o}),p),Q=()=>{H&&(z.forEach((e=>{e.cancel()})),z.length=0)},V=()=>{x.forEach((e=>{(null==e?void 0:e.parentNode)&&e.parentNode.removeChild(e)})),x.length=0},X=()=>void 0!==l?l:c?c.getFill():"both",Y=()=>void 0!==v?v:void 0!==f?f:c?c.getDirection():"normal",$=()=>k?"linear":void 0!==s?s:c?c.getEasing():"linear",_=()=>R?0:void 0!==m?m:void 0!==a?a:c?c.getDuration():0,ee=()=>void 0!==d?d:c?c.getIterations():1,oe=()=>void 0!==u?u:void 0!==r?r:c?c.getDelay():0,te=()=>{0!==j&&(j--,0===j&&((()=>{U.forEach((e=>e())),q.forEach((e=>e()));const e=w?1:0,o=E,t=h,n=S;P.forEach((e=>{const r=e.classList;o.forEach((e=>r.add(e))),t.forEach((e=>r.remove(e)));for(const o in n)n.hasOwnProperty(o)&&i(e,o,n[o])})),m=void 0,v=void 0,u=void 0,W.forEach((o=>o.c(e,p))),K.forEach((o=>o.c(e,p))),K.length=0,D=!0,w&&(T=!0),w=!0})(),c&&c.animationFinish()))},ie=()=>{(()=>{B.forEach((e=>e())),N.forEach((e=>e()));const e=g,o=A,t=C;P.forEach((n=>{const r=n.classList;e.forEach((e=>r.add(e))),o.forEach((e=>r.remove(e)));for(const e in t)t.hasOwnProperty(e)&&i(n,e,t[e])}))})(),y.length>0&&H&&(P.forEach((e=>{const o=e.animate(y,{id:I,delay:oe(),duration:_(),easing:$(),iterations:ee(),fill:X(),direction:Y()});o.pause(),z.push(o)})),z.length>0&&(z[0].onfinish=()=>{te()})),b=!0},ne=e=>{e=Math.min(Math.max(e,0),.9999),H&&z.forEach((o=>{o.currentTime=o.effect.getComputedTiming().delay+_()*e,o.pause()}))},re=e=>{z.forEach((e=>{e.effect.updateTiming({delay:oe(),duration:_(),easing:$(),iterations:ee(),fill:X(),direction:Y()})})),void 0!==e&&ne(e)},ae=(e=!1,o=!0,t)=>(e&&Z.forEach((i=>{i.update(e,o,t)})),H&&re(t),p),se=()=>{b&&(H?z.forEach((e=>{e.pause()})):P.forEach((e=>{i(e,"animation-play-state","paused")})),F=!0)},de=e=>new Promise((o=>{(null==e?void 0:e.sync)&&(R=!0,O((()=>R=!1),{oneTimeCallback:!0})),b||ie(),T&&(H&&(ne(0),re()),T=!1),D&&(j=Z.length+1,D=!1);const t=()=>{L(i,K),o()},i=()=>{L(t,M),o()};O(i,{oneTimeCallback:!0}),M.push({c:t,o:{oneTimeCallback:!0}}),Z.forEach((e=>{e.play()})),H?(z.forEach((e=>{e.play()})),0!==y.length&&0!==P.length||te()):te(),F=!1})),le=(e,o)=>{const t=y[0];return void 0===t||void 0!==t.offset&&0!==t.offset?y=[{offset:0,[e]:o},...y]:t[e]=o,p};return p={parentAnimation:c,elements:P,childAnimations:Z,id:I,animationFinish:te,from:le,to:(e,o)=>{const t=y[y.length-1];return void 0===t||void 0!==t.offset&&1!==t.offset?y=[...y,{offset:1,[e]:o}]:t[e]=o,p},fromTo:(e,o,t)=>le(e,o).to(e,t),parent:e=>(c=e,p),play:de,pause:()=>(Z.forEach((e=>{e.pause()})),se(),p),stop:()=>{Z.forEach((e=>{e.stop()})),b&&(Q(),b=!1),k=!1,R=!1,D=!0,v=void 0,m=void 0,u=void 0,j=0,T=!1,w=!0,F=!1,M.forEach((e=>e.c(0,p))),M.length=0},destroy:e=>(Z.forEach((o=>{o.destroy(e)})),(e=>{Q(),e&&V()})(e),P.length=0,Z.length=0,y.length=0,W.length=0,K.length=0,b=!1,D=!0,p),keyframes:e=>{const o=y!==e;return y=e,o&&(e=>{H&&J().forEach((o=>{const t=o.effect;if(t.setKeyframes)t.setKeyframes(e);else{const i=new KeyframeEffect(t.target,e,t.getTiming());o.effect=i}}))})(y),p},addAnimation:e=>{if(null!=e)if(Array.isArray(e))for(const o of e)o.parent(p),Z.push(o);else e.parent(p),Z.push(e);return p},addElement:o=>{if(null!=o)if(1===o.nodeType)P.push(o);else if(o.length>=0)for(let e=0;e<o.length;e++)P.push(o[e]);else e("createAnimation - Invalid addElement value.");return p},update:ae,fill:e=>(l=e,ae(!0),p),direction:e=>(f=e,ae(!0),p),iterations:e=>(d=e,ae(!0),p),duration:e=>(H||0!==e||(e=1),a=e,ae(!0),p),easing:e=>(s=e,ae(!0),p),delay:e=>(r=e,ae(!0),p),getWebAnimations:J,getKeyframes:()=>y,getFill:X,getDirection:Y,getDelay:oe,getIterations:ee,getEasing:$,getDuration:_,afterAddRead:e=>(U.push(e),p),afterAddWrite:e=>(q.push(e),p),afterClearStyles:(e=[])=>{for(const o of e)S[o]="";return p},afterStyles:(e={})=>(S=e,p),afterRemoveClass:e=>(h=n(h,e),p),afterAddClass:e=>(E=n(E,e),p),beforeAddRead:e=>(B.push(e),p),beforeAddWrite:e=>(N.push(e),p),beforeClearStyles:(e=[])=>{for(const o of e)C[o]="";return p},beforeStyles:(e={})=>(C=e,p),beforeRemoveClass:e=>(A=n(A,e),p),beforeAddClass:e=>(g=n(g,e),p),onFinish:O,isRunning:()=>0!==j&&!F,progressStart:(e=!1,o)=>(Z.forEach((t=>{t.progressStart(e,o)})),se(),k=e,b||ie(),ae(!1,!0,o),p),progressStep:e=>(Z.forEach((o=>{o.progressStep(e)})),ne(e),p),progressEnd:(e,o,t)=>(k=!1,Z.forEach((i=>{i.progressEnd(e,o,t)})),void 0!==t&&(m=t),T=!1,w=!0,0===e?(v="reverse"===Y()?"normal":"reverse","reverse"===v&&(w=!1),H?(ae(),ne(1-o)):(u=(1-o)*_()*-1,ae(!1,!1))):1===e&&(H?(ae(),ne(o)):(u=o*_()*-1,ae(!1,!1))),void 0===e||c||de(),p)}};export{r as c}
|
|
@@ -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-
|
|
4
|
+
import{d as t}from"./p-ZjP4CjeZ.js";import{MENU_BACK_BUTTON_PRIORITY as e}from"./p-B0q1YL7N.js";import{f as n}from"./p-C8IsBmNU.js";import{c as r}from"./p-CTfR9YZG.js";import{b as s}from"./p-BFvmZNyx.js";import{c as a}from"./p-DDb5r57F.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),m=c?.2:.25;return u.addElement(t.backdropEl).fromTo("opacity",.01,m),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})`),m=a().addElement(t.backdropEl).fromTo("opacity",.01,.32);return o("ios"===r).addAnimation([u,c,m])},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)},m=(()=>{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)},m=async()=>(await d(),f()),p=(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 p("reveal",c),p("push",u),p("overlay",i),null==t||t.addEventListener("ionBackButton",(t=>{const n=f();n&&t.detail.register(e,(()=>n.close()))})),{registerAnimation:p,get:o,getMenus:async()=>(await d(),a.map((t=>t.el))),getOpen:m,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 m()},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):m());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 m();e&&t.el!==e&&await e.setOpen(!1,!1)}return t._setOpen(e,n,r)}}})();export{m}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{e as n,f as e,w as i,B as a}from"./p-
|
|
4
|
+
import{e as n,f as e,w as i,B as a}from"./p-C8IsBmNU.js";import{r as o}from"./p-CTfR9YZG.js";const r="ionViewWillEnter",t="ionViewDidEnter",s="ionViewWillLeave",c="ionViewDidLeave",l="ionViewWillUnload",u=n=>{n.tabIndex=-1,n.focus()},d=n=>null!==n.offsetParent,f="ion-last-focus",w=e=>{if(n.get("focusManagerPriority",!1)){const n=document.activeElement;null!==n&&(null==e?void 0:e.contains(n))&&n.setAttribute(f,"true")}},p=i=>{const a=n.get("focusManagerPriority",!1);if(Array.isArray(a)&&!i.contains(document.activeElement)){const n=i.querySelector(`[${f}]`);if(n&&d(n))return void u(n);for(const n of a)switch(n){case"content":const a=i.querySelector('main, [role="main"]');if(a&&d(a))return void u(a);break;case"heading":const o=i.querySelector('h1, [role="heading"][aria-level="1"]');if(o&&d(o))return void u(o);break;case"banner":const r=i.querySelector('header, [role="banner"]');if(r&&d(r))return void u(r);break;default:e(`Unrecognized focus manager priority value ${n}`)}u(i)}},v=n=>new Promise(((e,a)=>{i((()=>{const i=B(n);m(n,i),b(n).then((i=>{i.animation&&i.animation.destroy(),g(n),e(i)}),(e=>{g(n),a(e)})).finally((()=>{W(i,!1)}))}))})),m=(n,e)=>{const i=n.enteringEl,a=n.leavingEl;w(a),U(i,a,n.direction),W(e,!0),n.showGoBack?i.classList.add("can-go-back"):i.classList.remove("can-go-back"),R(i,!1),i.style.setProperty("pointer-events","none"),a&&(R(a,!1),a.style.setProperty("pointer-events","none"))},b=async n=>{const e=await h(n);return e&&a.isBrowser?y(e,n):P(n)},g=n=>{const e=n.enteringEl,i=n.leavingEl;e.classList.remove("ion-page-invisible"),e.style.removeProperty("pointer-events"),void 0!==i&&(i.classList.remove("ion-page-invisible"),i.style.removeProperty("pointer-events")),p(e)},h=async n=>{if(n.leavingEl&&n.animated&&0!==n.duration)return n.animationBuilder?n.animationBuilder:"ios"===n.mode?(await import("./p-C7hRNDhM.js")).iosTransitionAnimation:(await import("./p-DZRJwG4S.js")).mdTransitionAnimation},y=async(n,e)=>{await k(e,!0);const i=n(e.baseEl,e);j(e.enteringEl,e.leavingEl);const a=await V(i,e);return e.progressCallback&&e.progressCallback(void 0),a&&D(e.enteringEl,e.leavingEl),{hasCompleted:a,animation:i}},P=async e=>{const i=e.enteringEl,a=e.leavingEl,o=n.get("focusManagerPriority",!1);return await k(e,o),j(i,a),D(i,a),{hasCompleted:!0}},k=async(n,e)=>{(void 0!==n.deepWait?n.deepWait:e)&&await Promise.all([L(n.enteringEl),L(n.leavingEl)]),await C(n.viewIsReady,n.enteringEl)},C=async(n,e)=>{n&&await n(e)},V=(n,e)=>{const i=e.progressCallback,a=new Promise((e=>{n.onFinish((n=>e(1===n)))}));return i?(n.progressStart(!0),i(n)):n.play(),a},j=(n,e)=>{M(e,s),M(n,r)},D=(n,e)=>{M(n,t),M(e,c)},M=(n,e)=>{if(n){const i=new CustomEvent(e,{bubbles:!1,cancelable:!1});n.dispatchEvent(i)}},E=()=>new Promise((n=>o((()=>o((()=>n())))))),L=async n=>{const e=n;if(e){if(null!=e.componentOnReady){if(null!=await e.componentOnReady())return}else if(null!=e.__registerHost){const n=new Promise((n=>o(n)));return void await n}await Promise.all(Array.from(e.children).map(L))}},R=(n,e)=>{e?(n.setAttribute("aria-hidden","true"),n.classList.add("ion-page-hidden")):(n.hidden=!1,n.removeAttribute("aria-hidden"),n.classList.remove("ion-page-hidden"))},U=(n,e,i)=>{void 0!==n&&(n.style.zIndex="back"===i?"99":"101"),void 0!==e&&(e.style.zIndex="100")},W=(n,e)=>{if(!n)return;const i="header-transitioning";e?n.classList.add(i):n.classList.remove(i)},A=n=>{if(n.classList.contains("ion-page"))return n;return n.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||n},B=n=>{if("ios"!==n.mode)return null;const e="back"===n.direction?n.leavingEl:n.enteringEl;return e?e.querySelector("ion-header"):null};export{r as L,t as a,s as b,c,l as d,L as e,A as g,M as l,R as s,v as t,E as w}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
+
*/
|
|
4
|
+
import{c as t}from"./p-DDb5r57F.js";import{g as o}from"./p-DUt5fQmA.js";import"./p-C8IsBmNU.js";import"./p-ZjP4CjeZ.js";import"./p-CTfR9YZG.js";const i=(i,r)=>{var s,a,n;const p="40px",e="back"===r.direction,c=r.leavingEl,l=o(r.enteringEl),b=l.querySelector("ion-toolbar"),m=t();if(m.addElement(l).fill("both").beforeRemoveClass("ion-page-invisible"),e?m.duration((null!==(s=r.duration)&&void 0!==s?s:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):m.duration((null!==(a=r.duration)&&void 0!==a?a:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform",`translateY(${p})`,"translateY(0px)").fromTo("opacity",.01,1),b){const o=t();o.addElement(b),m.addAnimation(o)}if(c&&e){m.duration((null!==(n=r.duration)&&void 0!==n?n:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const i=t();i.addElement(o(c)).onFinish((t=>{1===t&&i.elements.length>0&&i.elements[0].style.setProperty("display","none")})).fromTo("transform","translateY(0px)",`translateY(${p})`).fromTo("opacity",1,0),m.addAnimation(i)}return m};export{i as mdTransitionAnimation}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{j as t}from"./p-
|
|
4
|
+
import{j as t}from"./p-C8IsBmNU.js";const n=n=>{try{if(n instanceof c)return n.value;if(!r()||"string"!=typeof n||""===n)return n;if(n.includes("onload="))return"";const t=document.createDocumentFragment(),s=document.createElement("div");t.appendChild(s),s.innerHTML=n,i.forEach((n=>{const r=t.querySelectorAll(n);for(let n=r.length-1;n>=0;n--){const s=r[n];s.parentNode?s.parentNode.removeChild(s):t.removeChild(s);const i=e(s);for(let t=0;t<i.length;t++)o(i[t])}}));const a=e(t);for(let t=0;t<a.length;t++)o(a[t]);const d=document.createElement("div");d.appendChild(t);const l=d.querySelector("div");return null!==l?l.innerHTML:d.innerHTML}catch(n){return t("sanitizeDOMString",n),""}},o=t=>{if(t.nodeType&&1!==t.nodeType)return;if("undefined"!=typeof NamedNodeMap&&!(t.attributes instanceof NamedNodeMap))return void t.remove();for(let n=t.attributes.length-1;n>=0;n--){const o=t.attributes.item(n),e=o.name;if(!s.includes(e.toLowerCase())){t.removeAttribute(e);continue}const r=o.value,i=t[e];(null!=r&&r.toLowerCase().includes("javascript:")||null!=i&&i.toLowerCase().includes("javascript:"))&&t.removeAttribute(e)}const n=e(t);for(let t=0;t<n.length;t++)o(n[t])},e=t=>null!=t.children?t.children:t.childNodes,r=()=>{var t;const n=window,o=null===(t=null==n?void 0:n.Ionic)||void 0===t?void 0:t.config;return!o||(o.get?o.get("sanitizerEnabled",!0):!0===o.sanitizerEnabled||void 0===o.sanitizerEnabled)},s=["class","id","href","src","name","slot"],i=["script","style","iframe","meta","link","object","embed"];class c{constructor(t){this.value=t}}const a=t=>{const n=window,o=n.Ionic;if(!o||!o.config||"Object"===o.config.constructor.name)return n.Ionic=n.Ionic||{},n.Ionic.config=Object.assign(Object.assign({},n.Ionic.config),t),n.Ionic.config},d=()=>{var t;const n=window,o=null===(t=null==n?void 0:n.Ionic)||void 0===t?void 0:t.config;return o?o.mode?o.mode:o.get("mode"):"md"},l=!1;export{l as E,c as I,n as a,d as g,a as s}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{w as t}from"./p-
|
|
4
|
+
import{w as t}from"./p-C8IsBmNU.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}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{w as o,d as n}from"./p-ZjP4CjeZ.js";import{g as t,c as i,f as r}from"./p-
|
|
4
|
+
import{w as o,d as n}from"./p-ZjP4CjeZ.js";import{g as t,c as i,f as r}from"./p-CwgG81ZD.js";import{f as a,m as e,r as s,c as d}from"./p-CTfR9YZG.js";import{a as c,K as l}from"./p-D13Eaw-8.js";import"./p-C8IsBmNU.js";import"./p-CIGNaXM1.js";const u=new WeakMap,f=(o,n,t,i=0,r=!1)=>{u.has(o)!==t&&(t?w(o,n,i,r):p(o,n))},w=(o,n,t,i=!1)=>{const r=n.parentNode,a=n.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",n.style.transform=`translate3d(${e}px,${t}px,0) scale(0)`},p=(o,n)=>{const t=u.get(o);t&&(u.delete(o),t.remove()),o.style.pointerEvents="",n.style.transform=""},m="input, textarea, [no-blur], [contenteditable]",h="$ionPaddingTimer",y=(o,n,t)=>{const i=o[h];i&&clearTimeout(i),n>0?o.style.setProperty("--keyboard-offset",`${n}px`):o[h]=setTimeout((()=>{o.style.setProperty("--keyboard-offset","0px"),t&&t()}),120)},S=(o,n,t)=>{o.addEventListener("focusout",(()=>{n&&y(n,0,t)}),{once:!0})};let b=0;const D="data-ionic-skip-scroll-assist",v=o=>{var n;if(document.activeElement===o)return;const t=o.getAttribute("id"),i=o.closest(`label[for="${t}"]`),r=null===(n=document.activeElement)||void 0===n?void 0:n.closest(`label[for="${t}"]`);null!==i&&i===r||(o.setAttribute(D,"true"),o.focus())},M=async(o,n,r,a,e,d,c=!1,l=0,u=!0)=>{if(!r&&!a)return;const w=((o,n,t,i)=>{var r;return((o,n,t,i)=>{const r=o.top,a=o.bottom,e=n.top,s=e+15,d=Math.min(n.bottom,i-t)-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:t,inputSafeY:4-(r-s)}})((null!==(r=o.closest("ion-item,[ion-item]"))&&void 0!==r?r:o).getBoundingClientRect(),n.getBoundingClientRect(),t,i)})(o,r||a,e,l);if(r&&Math.abs(w.scrollAmount)<4)return v(n),void(d&&null!==r&&(y(r,b),S(n,r,(()=>b=0))));if(f(o,n,!0,w.inputSafeY,c),v(n),s((()=>o.click())),d&&r&&(b=w.scrollPadding,y(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,w.scrollAmount,w.scrollDuration),f(o,n,!1,w.inputSafeY),v(n),d&&S(n,r,(()=>b=0))},s=()=>{window.removeEventListener("ionKeyboardDidShow",s),window.addEventListener("ionKeyboardDidShow",e)};if(r){const o=await t(r);if(u&&w.scrollAmount>o.scrollHeight-o.clientHeight-o.scrollTop)return"password"===n.type?(w.scrollAmount+=50,window.addEventListener("ionKeyboardDidShow",s)):window.addEventListener("ionKeyboardDidShow",e),void(a=setTimeout(e,1e3))}e()}},K=async(t,i)=>{if(void 0===n)return;const s="ios"===i,u="android"===i,w=t.getNumber("keyboardHeight",290),p=t.getBoolean("scrollAssist",!0),h=t.getBoolean("hideCaretOnScroll",s),y=t.getBoolean("inputBlurring",!1),S=t.getBoolean("scrollPadding",!0),b=Array.from(n.querySelectorAll("ion-input, ion-textarea")),v=new WeakMap,K=new WeakMap,j=await l.getResizeMode(),x=async n=>{await new Promise((o=>d(n,o)));const t=n.shadowRoot||n,i=t.querySelector("input")||t.querySelector("textarea"),s=r(n),l=s?null:n.closest("ion-footer");if(i){if(s&&h&&!v.has(n)){const o=((o,n,t)=>{if(!t||!n)return()=>{};const i=t=>{var i;(i=n)===i.getRootNode().activeElement&&f(o,n,t)},r=()=>f(o,n,!1),s=()=>i(!0),d=()=>i(!1);return a(t,"ionScrollStart",s),a(t,"ionScrollEnd",d),n.addEventListener("blur",r),()=>{e(t,"ionScrollStart",s),e(t,"ionScrollEnd",d),n.removeEventListener("blur",r)}})(n,i,s);v.set(n,o)}if("date"!==i.type&&"datetime-local"!==i.type&&(s||l)&&p&&!K.has(n)){const t=((n,t,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,w=o=>{!1!==u?M(n,t,i,r,o.detail.keyboardHeight,l,d,f,!1):u=!0},p=()=>{u=!1,null==o||o.removeEventListener("ionKeyboardDidShow",w),n.removeEventListener("focusout",p)},m=async()=>{t.hasAttribute(D)?t.removeAttribute(D):(M(n,t,i,r,a,l,d,f),null==o||o.addEventListener("ionKeyboardDidShow",w),n.addEventListener("focusout",p))};return n.addEventListener("focusin",m),()=>{n.removeEventListener("focusin",m),null==o||o.removeEventListener("ionKeyboardDidShow",w),n.removeEventListener("focusout",p)}})(n,i,s,l,w,S,j,u);K.set(n,t)}}};y&&(()=>{let o=!0,n=!1;const t=document;a(t,"ionScrollStart",(()=>{n=!0})),t.addEventListener("focusin",(()=>{o=!0}),!0),t.addEventListener("touchend",(i=>{if(n)return void(n=!1);const r=t.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);n.addEventListener("ionInputDidLoad",(o=>{x(o.detail)})),n.addEventListener("ionInputDidUnload",(o=>{(o=>{if(h){const n=v.get(o);n&&n(),v.delete(o)}if(p){const n=K.get(o);n&&n(),K.delete(o)}})(o.detail)}))};export{K as startInputShims}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{r as t,j as i,h as s,d as e,g as
|
|
4
|
+
import{r as t,j as i,h as s,d as e,g as o,c as a}from"./p-C8IsBmNU.js";import{a as n}from"./p-D-eFFUkA.js";import"./p-CTfR9YZG.js";const h=class{constructor(i){t(this,i),this.loaded=!1,this.active=!1}async componentWillLoad(){this.active&&await this.setActive()}async setActive(){await this.prepareLazyLoaded(),this.active=!0}changeActive(t){t&&this.prepareLazyLoaded()}prepareLazyLoaded(){if(!this.loaded&&null!=this.component){this.loaded=!0;try{return n(this.delegate,this.el,this.component,["ion-page"])}catch(t){i("[ion-tab] - Exception in prepareLazyLoaded:",t)}}return Promise.resolve(void 0)}render(){const{tab:t,active:i,component:o}=this;return s(e,{key:"dbad8fe9f1566277d14647626308eaf1601ab01f",role:"tabpanel","aria-hidden":i?null:"true","aria-labelledby":`tab-button-${t}`,class:{"ion-page":void 0===o,"tab-hidden":!i}},s("slot",{key:"3be64f4e7161f6769aaf8e4dcb5293fcaa09af45"}))}get el(){return o(this)}static get watchers(){return{active:["changeActive"]}}};h.style=":host(.tab-hidden){display:none !important}";const r=class{constructor(i){t(this,i),this.ionNavWillLoad=a(this,"ionNavWillLoad",7),this.ionTabsWillChange=a(this,"ionTabsWillChange",3),this.ionTabsDidChange=a(this,"ionTabsDidChange",3),this.transitioning=!1,this.useRouter=!1,this.onTabClicked=t=>{const{href:i,tab:s}=t.detail;if(this.useRouter&&void 0!==i){const t=document.querySelector("ion-router");t&&t.push(i)}else this.select(s)}}async componentWillLoad(){if(this.useRouter||(this.useRouter=!(!this.el.querySelector("ion-router-outlet")&&!document.querySelector("ion-router")||this.el.closest("[no-router]"))),!this.useRouter){const t=this.tabs;t.length>0&&await this.select(t[0])}this.ionNavWillLoad.emit()}componentDidLoad(){this.updateTabBar()}componentDidUpdate(){this.updateTabBar()}updateTabBar(){const t=this.el.querySelector("ion-tab-bar");if(!t)return;const i=this.selectedTab?this.selectedTab.tab:void 0;void 0!==i&&t.selectedTab!==i&&(t.selectedTab=i)}async select(t){const i=c(this.tabs,t);return!!this.shouldSwitch(i)&&(await this.setActive(i),await this.notifyRouter(),this.tabSwitch(),!0)}async getTab(t){return c(this.tabs,t)}getSelected(){return Promise.resolve(this.selectedTab?this.selectedTab.tab:void 0)}async setRouteId(t){const i=c(this.tabs,t);return this.shouldSwitch(i)?(await this.setActive(i),{changed:!0,element:this.selectedTab,markVisible:()=>this.tabSwitch()}):{changed:!1,element:this.selectedTab}}async getRouteId(){var t;const i=null===(t=this.selectedTab)||void 0===t?void 0:t.tab;return void 0!==i?{id:i,element:this.selectedTab}:void 0}setActive(t){return this.transitioning?Promise.reject("transitioning already happening"):(this.transitioning=!0,this.leavingTab=this.selectedTab,this.selectedTab=t,this.ionTabsWillChange.emit({tab:t.tab}),t.active=!0,this.updateTabBar(),Promise.resolve())}tabSwitch(){const t=this.selectedTab,i=this.leavingTab;this.leavingTab=void 0,this.transitioning=!1,t&&i!==t&&(i&&(i.active=!1),this.ionTabsDidChange.emit({tab:t.tab}))}notifyRouter(){if(this.useRouter){const t=document.querySelector("ion-router");if(t)return t.navChanged("forward")}return Promise.resolve(!1)}shouldSwitch(t){return void 0!==t&&t!==this.selectedTab&&!this.transitioning}get tabs(){return Array.from(this.el.querySelectorAll("ion-tab"))}render(){return s(e,{key:"7b4b302f2942d8d131f6fc24e817989a8be08867",onIonTabButtonClick:this.onTabClicked},s("slot",{key:"2c51cf14c0f17a8ddf2d879858c984cdf8fd3147",name:"top"}),s("div",{key:"7e9d6055092d41bd9bc80ae15965f77e216feb84",class:"tabs-inner"},s("slot",{key:"c308a787e37ff7f6653531d70deca597a7602d26"})),s("slot",{key:"d5f5e693710c853570811602f859cf3e88272684",name:"bottom"}))}get el(){return o(this)}},c=(t,s)=>{const e="string"==typeof s?t.find((t=>t.tab===s)):s;return e||i(`[ion-tabs] - Tab with id: "${e}" does not exist`),e};r.style=":host{left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:100%;height:100%;contain:layout size style;z-index:0}.tabs-inner{position:relative;-ms-flex:1;flex:1;contain:layout size style}";export{h as ion_tab,r as ion_tabs}
|