@ionic/core 8.7.16-dev.11772209509.1a58a072 → 8.7.16-dev.11772223629.1348a9ab

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. package/components/helpers.js +1 -1
  2. package/components/ion-range.js +1 -1
  3. package/components/ion-router.js +1 -1
  4. package/components/ion-tab-button.js +1 -1
  5. package/components/radio-group.js +3 -10
  6. package/components/radio.js +3 -5
  7. package/dist/cjs/ion-radio_2.cjs.entry.js +5 -13
  8. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +1 -1
  9. package/dist/cjs/ionic.cjs.js +1 -1
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/collection/components/radio/radio.js +3 -5
  12. package/dist/collection/components/radio-group/radio-group.js +3 -29
  13. package/dist/collection/components/tab-button/tab-button.ionic.css +11 -0
  14. package/dist/docs.json +1 -1
  15. package/dist/esm/{animation-DbYykcy_.js → animation-C5cgFymd.js} +1 -1
  16. package/dist/esm/{app-globals-DtnohHH2.js → app-globals-BQa4bHAm.js} +1 -1
  17. package/dist/esm/{button-active-BKe7e5ef.js → button-active-DpavRUgB.js} +1 -1
  18. package/dist/esm/{capacitor-qm36vWUP.js → capacitor-Bc47Xxvc.js} +1 -1
  19. package/dist/esm/{framework-delegate-CDhyCpj8.js → framework-delegate-Dx6tn-_w.js} +1 -1
  20. package/dist/esm/{haptic-wOqvvi9L.js → haptic-Dti4RWuD.js} +1 -1
  21. package/dist/esm/{helpers-BHARC6A2.js → helpers-6l6yFg3S.js} +1 -1
  22. package/dist/esm/{index-B0EW3mJj.js → index-B6MWWbnL.js} +2 -2
  23. package/dist/esm/{index-XhpLYuYD.js → index-CXCvNx5X.js} +1 -1
  24. package/dist/esm/{index-BNk1Zva8.js → index-DO9elf_6.js} +3 -3
  25. package/dist/esm/{index-CvS984VQ.js → index-urxfV0GK.js} +3 -3
  26. package/dist/esm/index.js +9 -9
  27. package/dist/esm/{input-shims-CcQuqBcB.js → input-shims-CK_oprMl.js} +5 -5
  28. package/dist/esm/{input.utils-Bo0vl-12.js → input.utils-C3tJs_iL.js} +2 -2
  29. package/dist/esm/ion-accordion_2.entry.js +2 -2
  30. package/dist/esm/ion-action-sheet.entry.js +8 -8
  31. package/dist/esm/ion-alert.entry.js +8 -8
  32. package/dist/esm/ion-app_8.entry.js +9 -9
  33. package/dist/esm/ion-avatar_3.entry.js +1 -1
  34. package/dist/esm/ion-back-button.entry.js +2 -2
  35. package/dist/esm/ion-backdrop.entry.js +1 -1
  36. package/dist/esm/ion-breadcrumb_2.entry.js +2 -2
  37. package/dist/esm/ion-button_2.entry.js +2 -2
  38. package/dist/esm/ion-card_5.entry.js +2 -2
  39. package/dist/esm/ion-checkbox.entry.js +2 -2
  40. package/dist/esm/ion-chip.entry.js +1 -1
  41. package/dist/esm/ion-col_3.entry.js +1 -1
  42. package/dist/esm/ion-datetime-button.entry.js +2 -2
  43. package/dist/esm/ion-datetime_3.entry.js +7 -7
  44. package/dist/esm/ion-divider.entry.js +1 -1
  45. package/dist/esm/ion-fab_3.entry.js +2 -2
  46. package/dist/esm/ion-img.entry.js +2 -2
  47. package/dist/esm/ion-infinite-scroll_2.entry.js +3 -3
  48. package/dist/esm/ion-input-otp.entry.js +2 -2
  49. package/dist/esm/ion-input-password-toggle.entry.js +1 -1
  50. package/dist/esm/ion-input.entry.js +4 -4
  51. package/dist/esm/ion-item-option_3.entry.js +3 -3
  52. package/dist/esm/ion-item_8.entry.js +2 -2
  53. package/dist/esm/ion-loading.entry.js +5 -5
  54. package/dist/esm/ion-menu_3.entry.js +6 -6
  55. package/dist/esm/ion-modal.entry.js +10 -10
  56. package/dist/esm/ion-nav_2.entry.js +5 -5
  57. package/dist/esm/ion-picker-column-option.entry.js +2 -2
  58. package/dist/esm/ion-picker-column.entry.js +4 -4
  59. package/dist/esm/ion-picker.entry.js +1 -1
  60. package/dist/esm/ion-popover.entry.js +6 -6
  61. package/dist/esm/ion-progress-bar.entry.js +2 -2
  62. package/dist/esm/ion-radio_2.entry.js +7 -15
  63. package/dist/esm/ion-range.entry.js +3 -3
  64. package/dist/esm/ion-refresher_2.entry.js +6 -6
  65. package/dist/esm/ion-reorder_2.entry.js +5 -5
  66. package/dist/esm/ion-ripple-effect.entry.js +1 -1
  67. package/dist/esm/ion-route_4.entry.js +2 -2
  68. package/dist/esm/ion-searchbar.entry.js +2 -2
  69. package/dist/esm/ion-segment_2.entry.js +2 -2
  70. package/dist/esm/ion-select-modal.entry.js +4 -4
  71. package/dist/esm/ion-select_3.entry.js +5 -5
  72. package/dist/esm/ion-spinner.entry.js +1 -1
  73. package/dist/esm/ion-split-pane.entry.js +1 -1
  74. package/dist/esm/ion-tab-bar_2.entry.js +6 -6
  75. package/dist/esm/ion-tab_2.entry.js +2 -2
  76. package/dist/esm/ion-text.entry.js +1 -1
  77. package/dist/esm/ion-textarea.entry.js +4 -4
  78. package/dist/esm/ion-toast.entry.js +5 -5
  79. package/dist/esm/ion-toggle.entry.js +4 -4
  80. package/dist/esm/{ionic-global-BRD-I9S-.js → ionic-global-KnoA5TnE.js} +4 -4
  81. package/dist/esm/ionic.js +3 -3
  82. package/dist/esm/{ios.transition-D2qXrjsE.js → ios.transition-D-ZEPllL.js} +4 -4
  83. package/dist/esm/{keyboard-Cp5ZyWCx.js → keyboard-C7jpSDLg.js} +1 -1
  84. package/dist/esm/{keyboard-qGVmnRfo.js → keyboard-CrGPuspU.js} +3 -3
  85. package/dist/esm/{keyboard-controller-fRGJ9OUC.js → keyboard-controller-CFeM2qrY.js} +2 -2
  86. package/dist/esm/loader.js +3 -3
  87. package/dist/esm/{md.transition-BF4sv2ae.js → md.transition-DiPaaGY2.js} +4 -4
  88. package/dist/esm/{notch-controller-DO_z0oZ0.js → notch-controller-CEiB8plC.js} +2 -2
  89. package/dist/esm/{overlays-DYr_n9HA.js → overlays-BMHHx7Tm.js} +3 -3
  90. package/dist/esm/{status-tap-DjVz-_0_.js → status-tap-BAJGCN-1.js} +2 -2
  91. package/dist/esm/{swipe-back-CcgQpVOn.js → swipe-back-bZ7qcCmT.js} +1 -1
  92. package/dist/ionic/index.esm.js +1 -1
  93. package/dist/ionic/ionic.esm.js +1 -1
  94. package/dist/ionic/{p-34671c4e.entry.js → p-01dec443.entry.js} +1 -1
  95. package/dist/ionic/{p-a3a6c45a.entry.js → p-01e2ad58.entry.js} +1 -1
  96. package/dist/ionic/{p-6150db23.entry.js → p-04c2c873.entry.js} +1 -1
  97. package/dist/ionic/{p-9e1ad0fe.entry.js → p-09aab7d0.entry.js} +1 -1
  98. package/dist/ionic/{p-d4f80296.entry.js → p-0b51f337.entry.js} +1 -1
  99. package/dist/ionic/{p-7596d6d2.entry.js → p-131e3b2d.entry.js} +1 -1
  100. package/dist/ionic/{p-e711448e.entry.js → p-1454c314.entry.js} +1 -1
  101. package/dist/ionic/{p-c8ca6036.entry.js → p-14d44c66.entry.js} +1 -1
  102. package/dist/ionic/{p-53c6e6b0.entry.js → p-1af56d46.entry.js} +1 -1
  103. package/dist/ionic/{p-11444419.entry.js → p-25db2a16.entry.js} +1 -1
  104. package/dist/ionic/{p-ad982e82.entry.js → p-2ef8db38.entry.js} +1 -1
  105. package/dist/ionic/{p-47afecc9.entry.js → p-31706aa0.entry.js} +1 -1
  106. package/dist/ionic/{p-05b4aec3.entry.js → p-39f88b4f.entry.js} +1 -1
  107. package/dist/ionic/{p-3c1a0aae.entry.js → p-3b163efb.entry.js} +1 -1
  108. package/dist/ionic/{p-2da93fef.entry.js → p-3d69c783.entry.js} +1 -1
  109. package/dist/ionic/{p-971e16af.entry.js → p-3d7263e2.entry.js} +1 -1
  110. package/dist/ionic/{p-a261bde6.entry.js → p-3f93e610.entry.js} +1 -1
  111. package/dist/ionic/{p-D2YxjYpA.js → p-44OfGWEp.js} +1 -1
  112. package/dist/ionic/{p-a172ab2d.entry.js → p-45ffc1cb.entry.js} +1 -1
  113. package/dist/ionic/p-4d7a2141.entry.js +4 -0
  114. package/dist/ionic/{p-10c83a5a.entry.js → p-51ddc430.entry.js} +1 -1
  115. package/dist/ionic/{p-021fc7c6.entry.js → p-61e3cde1.entry.js} +1 -1
  116. package/dist/ionic/{p-f9d03999.entry.js → p-69bef533.entry.js} +1 -1
  117. package/dist/ionic/{p-abf3c0d1.entry.js → p-717fa143.entry.js} +1 -1
  118. package/dist/ionic/{p-2933b20c.entry.js → p-7482c8b3.entry.js} +1 -1
  119. package/dist/ionic/{p-00feb6a5.entry.js → p-74cab2da.entry.js} +1 -1
  120. package/dist/ionic/{p-61cbe01d.entry.js → p-7ab2b10c.entry.js} +1 -1
  121. package/dist/ionic/{p-35d7fd6a.entry.js → p-7dc9aa9a.entry.js} +1 -1
  122. package/dist/ionic/{p-fd2c0c35.entry.js → p-7f6069f4.entry.js} +1 -1
  123. package/dist/ionic/{p-7f268a7d.entry.js → p-8093e290.entry.js} +1 -1
  124. package/dist/ionic/{p-d088c975.entry.js → p-82ca1cae.entry.js} +1 -1
  125. package/dist/ionic/{p-6a292561.entry.js → p-83c3c072.entry.js} +1 -1
  126. package/dist/ionic/{p-39541a04.entry.js → p-8ddbeb52.entry.js} +1 -1
  127. package/dist/ionic/{p-64f91875.entry.js → p-9e58aa2a.entry.js} +1 -1
  128. package/dist/ionic/{p-e2f24d31.entry.js → p-9e985573.entry.js} +1 -1
  129. package/dist/ionic/{p-4f79ca52.entry.js → p-9f29b55e.entry.js} +1 -1
  130. package/dist/ionic/p-B0QqVGqF.js +4 -0
  131. package/dist/ionic/{p-DexM5y5J.js → p-BAmXMA83.js} +1 -1
  132. package/dist/ionic/p-BIyO17h7.js +4 -0
  133. package/dist/ionic/{p-BsNYHhUk.js → p-Br3trE7L.js} +1 -1
  134. package/dist/ionic/p-BunTRNUk.js +4 -0
  135. package/dist/ionic/p-CCy93Kdo.js +4 -0
  136. package/dist/ionic/{p-CBV1iEY0.js → p-CH4Ab9QE.js} +1 -1
  137. package/dist/ionic/{p-CavV7ueY.js → p-CYW7idR0.js} +1 -1
  138. package/dist/ionic/{p-B_jyktct.js → p-Ccfet-fb.js} +1 -1
  139. package/dist/ionic/p-CdcKo7Br.js +4 -0
  140. package/dist/ionic/{p-D9Z6SCU4.js → p-CsyYiC5f.js} +1 -1
  141. package/dist/ionic/{p-BM5GnYxc.js → p-CtS5hTli.js} +1 -1
  142. package/dist/ionic/{p-C6Zvvi79.js → p-CzuA64hv.js} +1 -1
  143. package/dist/ionic/{p-CPIWqnpm.js → p-DGDvjMxF.js} +1 -1
  144. package/dist/ionic/{p-CjZdAcXM.js → p-DKogfaNJ.js} +1 -1
  145. package/dist/ionic/p-DOsU-ODO.js +4 -0
  146. package/dist/ionic/p-DPrmF8Ki.js +4 -0
  147. package/dist/ionic/p-DYzvRXm5.js +4 -0
  148. package/dist/ionic/{p-N0uTBJRW.js → p-TL0QOgYo.js} +1 -1
  149. package/dist/ionic/{p--P4Ls41D.js → p-We-0jbXn.js} +1 -1
  150. package/dist/ionic/{p-7ce32a0a.entry.js → p-a339cde1.entry.js} +1 -1
  151. package/dist/ionic/{p-97e78aa0.entry.js → p-a59f21b3.entry.js} +1 -1
  152. package/dist/ionic/{p-0c52f065.entry.js → p-a5f4fe92.entry.js} +1 -1
  153. package/dist/ionic/{p-fe0ef645.entry.js → p-b4da10d5.entry.js} +1 -1
  154. package/dist/ionic/{p-80555b35.entry.js → p-bb04a3d7.entry.js} +1 -1
  155. package/dist/ionic/p-bc19095e.entry.js +4 -0
  156. package/dist/ionic/{p-ff6c4b2e.entry.js → p-bd0057bd.entry.js} +1 -1
  157. package/dist/ionic/{p-ba7b31cb.entry.js → p-bf763ab7.entry.js} +1 -1
  158. package/dist/ionic/{p-27e1497e.entry.js → p-c66416de.entry.js} +1 -1
  159. package/dist/ionic/{p-f373fa5d.entry.js → p-d103fef9.entry.js} +1 -1
  160. package/dist/ionic/p-d9c0d206.entry.js +4 -0
  161. package/dist/ionic/{p-34bdacc6.entry.js → p-dc7cf265.entry.js} +1 -1
  162. package/dist/ionic/{p-05881493.entry.js → p-e278c474.entry.js} +1 -1
  163. package/dist/ionic/{p-68b1307a.entry.js → p-e8344f8f.entry.js} +1 -1
  164. package/dist/ionic/{p-222ce699.entry.js → p-ec510664.entry.js} +1 -1
  165. package/dist/ionic/p-eyZt9Ndv.js +4 -0
  166. package/dist/ionic/{p-4843ec9f.entry.js → p-f0894af8.entry.js} +1 -1
  167. package/dist/ionic/{p-BtZ27kGG.js → p-hPTD29t1.js} +1 -1
  168. package/dist/types/components/radio-group/radio-group.d.ts +0 -4
  169. package/dist/types/components.d.ts +0 -1
  170. package/hydrate/index.js +6 -15
  171. package/hydrate/index.mjs +6 -15
  172. package/package.json +1 -1
  173. package/dist/ionic/p-BLszBuBT.js +0 -4
  174. package/dist/ionic/p-CVx8g72D.js +0 -4
  175. package/dist/ionic/p-CtYkbKMO.js +0 -4
  176. package/dist/ionic/p-CyerESA7.js +0 -4
  177. package/dist/ionic/p-DdxkR2un.js +0 -4
  178. package/dist/ionic/p-P3m2Br5C.js +0 -4
  179. package/dist/ionic/p-aDLF6c3N.js +0 -4
  180. package/dist/ionic/p-af06cb27.entry.js +0 -4
  181. package/dist/ionic/p-cdb63e5f.entry.js +0 -4
  182. package/dist/ionic/p-d8462fc4.entry.js +0 -4
  183. package/dist/ionic/p-jrCNWOue.js +0 -4
  184. package/dist/ionic/p-sRgtGHfn.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{i as o}from"./p-D9Z6SCU4.js";const s=o;export{s as g}
4
+ import{i as s}from"./p-CsyYiC5f.js";const o=s;export{o as g}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{b as n,d as o,O as e,s as t}from"./p-D9Z6SCU4.js";import{o as i,c as a,f as r,m as d,g as s}from"./p-BtZ27kGG.js";import{e as l,j as c,f as u}from"./p-gD7P82jx.js";import{C as v}from"./p--P4Ls41D.js";import{B as f}from"./p-BTEOs1at.js";const p='[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-textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',m=(n,o)=>{const e=n.querySelector(p);b(e,null!=o?o:n)},h=(n,o)=>{const e=Array.from(n.querySelectorAll(p));b(e.length>0?e[e.length-1]:null,null!=o?o:n)},b=(n,o)=>{let e=n;const t=null==n?void 0:n.shadowRoot;if(t){const o=t.querySelector(p);e=o&&"function"==typeof n.setFocus?n:o||n}if(e){const n=e.closest("ion-radio-group");n?n.setFocus():i(e)}else o.focus()};let y=0,w=0;const g=new WeakMap,O=n=>{var o;return!1!==n.showBackdrop&&!((null!==(o=n.backdropBreakpoint)&&void 0!==o?o:0)>0)},k=n=>({create:o=>N(n,o),dismiss:(o,e,t)=>E(document,o,e,n,t),getTop:async()=>M(document,n)}),x=k("ion-alert"),T=k("ion-action-sheet"),j=k("ion-loading"),A=k("ion-modal"),S=k("ion-picker-legacy"),D=k("ion-popover"),C=k("ion-toast"),I=n=>{"undefined"!=typeof document&&G(document);const o=y++;n.overlayIndex=o},B=n=>(n.hasAttribute("id")||(n.id="ion-overlay-"+ ++w),n.id),N=(n,o)=>"undefined"!=typeof window&&void 0!==window.customElements?window.customElements.whenDefined(n).then((()=>{const e=document.createElement(n);return e.classList.add("overlay-hidden"),Object.assign(e,Object.assign(Object.assign({},o),{hasController:!0})),Z(document).appendChild(e),new Promise((n=>a(e,n)))})):Promise.resolve(),P=(n,o)=>{let e=n;const t=null==n?void 0:n.shadowRoot;t&&(e=t.querySelector(p)||n),e?i(e):o.focus()},G=n=>{0===y&&(y=1,n.addEventListener("focus",(o=>{((n,o)=>{const e=M(o,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover"),t=n.target;e&&t&&(e.classList.contains(nn)||(e.shadowRoot?(()=>{if(e.contains(t))e.lastFocus=t;else if("ION-TOAST"===t.tagName)P(e.lastFocus,e);else{const n=e.lastFocus;m(e),n===o.activeElement&&h(e),e.lastFocus=o.activeElement}})():(()=>{if(e===t)e.lastFocus=void 0;else if("ION-TOAST"===t.tagName)P(e.lastFocus,e);else{const n=s(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;m(i,e),n===o.activeElement&&h(i,e),e.lastFocus=o.activeElement}}})()))})(o,n)}),!0),n.addEventListener("keydown",(o=>{var e,t,a;if("Tab"!==o.key&&"Alt+Tab"!==o.key)return;const r=M(n,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover");if(!r||r.classList.contains(nn))return;const d=n.activeElement;if(d===r)return o.preventDefault(),void m(r);if(!d||!(r.contains(d)||d.getRootNode()instanceof ShadowRoot&&r.contains(d.getRootNode().host)||null!==(t=null===(e=r.shadowRoot)||void 0===e?void 0:e.contains(d))&&void 0!==t&&t))return;const s=[...r.querySelectorAll(p),...(null===(a=r.shadowRoot)||void 0===a?void 0:a.querySelectorAll(p))||[]];if(0===s.length)return void o.preventDefault();const l=d?s.findIndex((n=>{var o;if(n===d)return!0;if(null===(o=n.shadowRoot)||void 0===o?void 0:o.contains(d))return!0;const e=d.getRootNode();return e instanceof ShadowRoot&&e.host===n})):-1;o.preventDefault();const c=n=>{const o=n.shadowRoot;if(o){const e=o.querySelector(p);if(e&&"function"!=typeof n.setFocus)return void i(e)}i(n)};o.shiftKey?l<=0?h(r):c(s[l-1]):l<0||l>=s.length-1?m(r):c(s[l+1])}),!0),n.addEventListener("ionBackButton",(o=>{const t=M(n);(null==t?void 0:t.backdropDismiss)&&o.detail.register(e,(()=>{t.dismiss(void 0,J)}))})),t()||n.addEventListener("keydown",(o=>{if("Escape"===o.key){const o=M(n);(null==o?void 0:o.backdropDismiss)&&o.dismiss(void 0,J)}})))},E=(n,o,e,t,i)=>{const a=M(n,t,i);return a?a.dismiss(o,e):Promise.reject("overlay does not exist")},L=(n,o)=>((n,o)=>(void 0===o&&(o="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover,ion-toast"),Array.from(n.querySelectorAll(o)).filter((n=>n.overlayIndex>0))))(n,o).filter((n=>!n.classList.contains("overlay-hidden"))),M=(n,o,e)=>{const t=L(n,o);return(void 0===e?t:t.filter((n=>n.id===e))).slice(-1)[0]},R=(n=!1)=>{const o=Z(document).querySelector("ion-router-outlet, #ion-view-container-root");o&&(n?o.setAttribute("aria-hidden","true"):o.removeAttribute("aria-hidden"))},$=async(o,e,t,i,a)=>{var r,d;if(o.presented)return;"ION-TOAST"!==o.el.tagName&&F(o.el);const s=o.el,c="ION-TOAST"!==s.tagName&&!1!==s.focusTrap&&O(s);if(o.presented=!0,o.willPresent.emit(),c){const n=Z(document).querySelector("ion-router-outlet, #ion-view-container-root");!!n&&n.contains(s)||R(!0),document.body.classList.add(f)}null===(r=o.willPresentShorthand)||void 0===r||r.emit();const u=n(o),v=o.enterAnimation?o.enterAnimation:l.get(e,"ios"===u?t:i);await q(o,v,o.el,a)&&(o.didPresent.emit(),null===(d=o.didPresentShorthand)||void 0===d||d.emit()),!o.keyboardClose||null!==document.activeElement&&o.el.contains(document.activeElement)||o.el.focus(),o.el.removeAttribute("aria-hidden"),o.el.removeAttribute("inert")},F=async n=>{let o=document.activeElement;if(!o)return;o.blur();const e=null==o?void 0:o.shadowRoot;e&&(o=e.querySelector(p)||o),await n.onDidDismiss(),null!==document.activeElement&&document.activeElement!==document.body||o.focus()},V=async(e,t,i,a,r,d,s)=>{var u,v;if(!e.presented)return!1;const p=(void 0!==o?L(o):[]).filter((n=>"ION-TOAST"!==n.tagName&&!1!==n.focusTrap&&O(n))),m=e.el;"ION-TOAST"!==m.tagName&&!1!==m.focusTrap&&O(m)&&1===p.length&&p[0].id===m.id&&(R(!1),document.body.classList.remove(f)),e.presented=!1;try{e.el.style.setProperty("pointer-events","none"),e.willDismiss.emit({data:t,role:i}),null===(u=e.willDismissShorthand)||void 0===u||u.emit({data:t,role:i});const o=n(e),c=e.leaveAnimation?e.leaveAnimation:l.get(a,"ios"===o?r:d);i!==K&&await q(e,c,e.el,s),e.didDismiss.emit({data:t,role:i}),null===(v=e.didDismissShorthand)||void 0===v||v.emit({data:t,role:i}),(g.get(e)||[]).forEach((n=>n.destroy())),g.delete(e),e.el.classList.add("overlay-hidden"),e.el.style.removeProperty("pointer-events"),void 0!==e.el.lastFocus&&(e.el.lastFocus=void 0)}catch(n){c(`[${e.el.tagName.toLowerCase()}] - `,n)}return e.el.remove(),!0},Z=n=>{const o=l.get("appRootSelector","ion-app");return n.querySelector(o)||n.body},q=async(n,o,e,t)=>{e.classList.remove("overlay-hidden");const i=o(n.el,t);n.animated&&l.getBoolean("animated",!0)||i.duration(0),n.keyboardClose&&i.beforeAddWrite((()=>{const n=e.ownerDocument.activeElement;(null==n?void 0:n.matches("input,ion-input, ion-textarea"))&&n.blur()}));const a=g.get(n)||[];return g.set(n,[...a,i]),await i.play(),!0},z=(n,o)=>{let e;const t=new Promise((n=>e=n));return U(n,o,(n=>{e(n.detail)})),t},U=(n,o,e)=>{const t=i=>{d(n,o,t),e(i)};r(n,o,t)},W=n=>"cancel"===n||n===J,_=n=>n(),H=(n,o)=>{if("function"==typeof n)return l.get("_zoneGate",_)((()=>{try{return n(o)}catch(n){throw n}}))},J="backdrop",K="gesture",Q=39,X=n=>{let o,e=!1;const t=v(),i=(i=!1)=>{if(o&&!i)return{delegate:o,inline:e};const{el:a,hasController:r,delegate:d}=n;return e=null!==a.parentNode&&!r,o=e?d||t:d,{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)}}},Y=()=>{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):u(`[${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}},nn="ion-disable-focus-trap";export{J as B,nn as F,K as G,Q as O,x as a,T as b,D as c,X as d,Y as e,$ as f,V as g,z as h,W as i,I as j,B as k,j as l,A as m,m as n,M as o,S as p,h as q,H as s,C as t}
4
+ import{b as n,d as o,O as e,s as t}from"./p-CsyYiC5f.js";import{n as i,c as a,f as r,m as d,g as s}from"./p-hPTD29t1.js";import{e as l,j as c,f as u}from"./p-gD7P82jx.js";import{C as v}from"./p-We-0jbXn.js";import{B as f}from"./p-BTEOs1at.js";const p='[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-textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',m=(n,o)=>{const e=n.querySelector(p);b(e,null!=o?o:n)},h=(n,o)=>{const e=Array.from(n.querySelectorAll(p));b(e.length>0?e[e.length-1]:null,null!=o?o:n)},b=(n,o)=>{let e=n;const t=null==n?void 0:n.shadowRoot;if(t){const o=t.querySelector(p);e=o&&"function"==typeof n.setFocus?n:o||n}if(e){const n=e.closest("ion-radio-group");n?n.setFocus():i(e)}else o.focus()};let y=0,w=0;const g=new WeakMap,O=n=>{var o;return!1!==n.showBackdrop&&!((null!==(o=n.backdropBreakpoint)&&void 0!==o?o:0)>0)},T=n=>({create:o=>P(n,o),dismiss:(o,e,t)=>M(document,o,e,n,t),getTop:async()=>$(document,n)}),x=T("ion-alert"),k=T("ion-action-sheet"),j=T("ion-loading"),A=T("ion-modal"),S=T("ion-picker-legacy"),C=T("ion-popover"),D=T("ion-toast"),I=n=>{"undefined"!=typeof document&&E(document);const o=y++;n.overlayIndex=o},N=n=>(n.hasAttribute("id")||(n.id="ion-overlay-"+ ++w),n.id),P=(n,o)=>"undefined"!=typeof window&&void 0!==window.customElements?window.customElements.whenDefined(n).then((()=>{const e=document.createElement(n);return e.classList.add("overlay-hidden"),Object.assign(e,Object.assign(Object.assign({},o),{hasController:!0})),W(document).appendChild(e),new Promise((n=>a(e,n)))})):Promise.resolve(),B=(n,o)=>{let e=n;const t=null==n?void 0:n.shadowRoot;t&&(e=t.querySelector(p)||n),e?i(e):o.focus()},E=n=>{0===y&&(y=1,n.addEventListener("focus",(o=>{((n,o)=>{const e=$(o,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover"),t=n.target;e&&t&&(e.classList.contains(nn)||(e.shadowRoot?(()=>{if(e.contains(t))e.lastFocus=t;else if("ION-TOAST"===t.tagName)B(e.lastFocus,e);else{const n=e.lastFocus;m(e),n===o.activeElement&&h(e),e.lastFocus=o.activeElement}})():(()=>{if(e===t)e.lastFocus=void 0;else if("ION-TOAST"===t.tagName)B(e.lastFocus,e);else{const n=s(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;m(i,e),n===o.activeElement&&h(i,e),e.lastFocus=o.activeElement}}})()))})(o,n)}),!0),n.addEventListener("keydown",(o=>{var e,t,a;if("Tab"!==o.key&&"Alt+Tab"!==o.key)return;const r=$(n,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover");if(!r||r.classList.contains(nn))return;const d=n.activeElement;if(d===r)return o.preventDefault(),void m(r);if(!d||!(r.contains(d)||d.getRootNode()instanceof ShadowRoot&&r.contains(d.getRootNode().host)||null!==(t=null===(e=r.shadowRoot)||void 0===e?void 0:e.contains(d))&&void 0!==t&&t))return;const s=[...r.querySelectorAll(p),...(null===(a=r.shadowRoot)||void 0===a?void 0:a.querySelectorAll(p))||[]];if(0===s.length)return void o.preventDefault();const l=d?s.findIndex((n=>{var o;if(n===d)return!0;if(null===(o=n.shadowRoot)||void 0===o?void 0:o.contains(d))return!0;const e=d.getRootNode();return e instanceof ShadowRoot&&e.host===n})):-1;o.preventDefault();const c=n=>{const o=n.shadowRoot;if(o){const e=o.querySelector(p);if(e&&"function"!=typeof n.setFocus)return void i(e)}i(n)};o.shiftKey?l<=0?h(r):c(s[l-1]):l<0||l>=s.length-1?m(r):c(s[l+1])}),!0),n.addEventListener("ionBackButton",(o=>{const t=$(n);(null==t?void 0:t.backdropDismiss)&&o.detail.register(e,(()=>{t.dismiss(void 0,J)}))})),t()||n.addEventListener("keydown",(o=>{if("Escape"===o.key){const o=$(n);(null==o?void 0:o.backdropDismiss)&&o.dismiss(void 0,J)}})))},M=(n,o,e,t,i)=>{const a=$(n,t,i);return a?a.dismiss(o,e):Promise.reject("overlay does not exist")},R=(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"))),$=(n,o,e)=>{const t=R(n,o);return(void 0===e?t:t.filter((n=>n.id===e))).slice(-1)[0]},F=(n=!1)=>{const o=W(document).querySelector("ion-router-outlet, #ion-view-container-root");o&&(n?o.setAttribute("aria-hidden","true"):o.removeAttribute("aria-hidden"))},G=async(o,e,t,i,a)=>{var r,d;if(o.presented)return;"ION-TOAST"!==o.el.tagName&&L(o.el);const s=o.el,c="ION-TOAST"!==s.tagName&&!1!==s.focusTrap&&O(s);if(o.presented=!0,o.willPresent.emit(),c){const n=W(document).querySelector("ion-router-outlet, #ion-view-container-root");!!n&&n.contains(s)||F(!0),document.body.classList.add(f)}null===(r=o.willPresentShorthand)||void 0===r||r.emit();const u=n(o),v=o.enterAnimation?o.enterAnimation:l.get(e,"ios"===u?t:i);await q(o,v,o.el,a)&&(o.didPresent.emit(),null===(d=o.didPresentShorthand)||void 0===d||d.emit()),!o.keyboardClose||null!==document.activeElement&&o.el.contains(document.activeElement)||o.el.focus(),o.el.removeAttribute("aria-hidden"),o.el.removeAttribute("inert")},L=async n=>{let o=document.activeElement;if(!o)return;o.blur();const e=null==o?void 0:o.shadowRoot;e&&(o=e.querySelector(p)||o),await n.onDidDismiss(),null!==document.activeElement&&document.activeElement!==document.body||o.focus()},V=async(e,t,i,a,r,d,s)=>{var u,v;if(!e.presented)return!1;const p=(void 0!==o?R(o):[]).filter((n=>"ION-TOAST"!==n.tagName&&!1!==n.focusTrap&&O(n))),m=e.el;"ION-TOAST"!==m.tagName&&!1!==m.focusTrap&&O(m)&&1===p.length&&p[0].id===m.id&&(F(!1),document.body.classList.remove(f)),e.presented=!1;try{e.el.style.setProperty("pointer-events","none"),e.willDismiss.emit({data:t,role:i}),null===(u=e.willDismissShorthand)||void 0===u||u.emit({data:t,role:i});const o=n(e),c=e.leaveAnimation?e.leaveAnimation:l.get(a,"ios"===o?r:d);i!==K&&await q(e,c,e.el,s),e.didDismiss.emit({data:t,role:i}),null===(v=e.didDismissShorthand)||void 0===v||v.emit({data:t,role:i}),(g.get(e)||[]).forEach((n=>n.destroy())),g.delete(e),e.el.classList.add("overlay-hidden"),e.el.style.removeProperty("pointer-events"),void 0!==e.el.lastFocus&&(e.el.lastFocus=void 0)}catch(n){c(`[${e.el.tagName.toLowerCase()}] - `,n)}return e.el.remove(),!0},W=n=>{const o=l.get("appRootSelector","ion-app");return n.querySelector(o)||n.body},q=async(n,o,e,t)=>{e.classList.remove("overlay-hidden");const i=o(n.el,t);n.animated&&l.getBoolean("animated",!0)||i.duration(0),n.keyboardClose&&i.beforeAddWrite((()=>{const n=e.ownerDocument.activeElement;(null==n?void 0:n.matches("input,ion-input, ion-textarea"))&&n.blur()}));const a=g.get(n)||[];return g.set(n,[...a,i]),await i.play(),!0},z=(n,o)=>{let e;const t=new Promise((n=>e=n));return X(n,o,(n=>{e(n.detail)})),t},X=(n,o,e)=>{const t=i=>{d(n,o,t),e(i)};r(n,o,t)},Y=n=>"cancel"===n||n===J,_=n=>n(),H=(n,o)=>{if("function"==typeof n)return l.get("_zoneGate",_)((()=>{try{return n(o)}catch(n){throw n}}))},J="backdrop",K="gesture",Q=39,U=n=>{let o,e=!1;const t=v(),i=(i=!1)=>{if(o&&!i)return{delegate:o,inline:e};const{el:a,hasController:r,delegate:d}=n;return e=null!==a.parentNode&&!r,o=e?d||t:d,{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)}}},Z=()=>{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):u(`[${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}},nn="ion-disable-focus-trap";export{J as B,nn as F,K as G,Q as O,x as a,k as b,C as c,U as d,Z as e,G as f,V as g,z as h,Y as i,I as j,N as k,j as l,A as m,m as n,$ as o,S as p,h as q,H as s,D as t}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * (C) Ionic http://ionicframework.com - MIT License
3
+ */
4
+ import{c as t}from"./p-DYzvRXm5.js";import{g as i}from"./p-CzuA64hv.js";import"./p-gD7P82jx.js";import"./p-CsyYiC5f.js";import"./p-hPTD29t1.js";import"./p-vXpMhGrs.js";const o=(o,r)=>{var s,p,a;const n="40px",e="back"===r.direction,c=r.leavingEl,l=i(r.enteringEl),m=l.querySelector("ion-toolbar"),b=t();if(b.addElement(l).fill("both").beforeRemoveClass("ion-page-invisible"),e?b.duration((null!==(s=r.duration)&&void 0!==s?s:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):b.duration((null!==(p=r.duration)&&void 0!==p?p:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform",`translateY(${n})`,"translateY(0px)").fromTo("opacity",.01,1),m){const i=t();i.addElement(m),b.addAnimation(i)}if(c&&e){b.duration((null!==(a=r.duration)&&void 0!==a?a:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const o=t();o.addElement(i(c)).onFinish((t=>{1===t&&o.elements.length>0&&o.elements[0].style.setProperty("display","none")})).fromTo("transform","translateY(0px)",`translateY(${n})`).fromTo("opacity",1,0),b.addAnimation(o)}return b};export{o as mdTransitionAnimation}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * (C) Ionic http://ionicframework.com - MIT License
3
+ */
4
+ import{d as t}from"./p-CsyYiC5f.js";import{q as i}from"./p-hPTD29t1.js";import"./p-gD7P82jx.js";import"./p-vXpMhGrs.js";const o=o=>{if(void 0===t)return;let f,p,u,l=0;const d=o.getBoolean("animated",!0)&&o.getBoolean("rippleEffect",!0),v=new WeakMap,m=()=>{u&&clearTimeout(u),u=void 0,f&&(h(!1),f=void 0)},T=(t,o)=>{if(t&&t===f)return;u&&clearTimeout(u),u=void 0;const{x:e,y:n}=i(o);if(f){if(v.has(f))throw new Error("internal error");f.classList.contains(a)||j(f,e,n),h(!0)}if(t){const i=v.get(t);i&&(clearTimeout(i),v.delete(t)),t.classList.remove(a);const o=()=>{j(t,e,n),u=void 0};r(t)?o():u=setTimeout(o,s)}f=t},j=(t,i,o)=>{if(l=Date.now(),t.classList.add(a),!d)return;const e=n(t);null!==e&&(w(),p=e.addRipple(i,o))},w=()=>{void 0!==p&&(p.then((t=>t())),p=void 0)},h=t=>{w();const i=f;if(!i)return;const o=c-Date.now()+l;if(t&&o>0&&!r(i)){const t=setTimeout((()=>{i.classList.remove(a),v.delete(i)}),c);v.set(i,t)}else i.classList.remove(a)};t.addEventListener("ionGestureCaptured",m),t.addEventListener("pointerdown",(t=>{f||2===t.button||T(e(t),t)}),!0),t.addEventListener("pointerup",(t=>{T(void 0,t)}),!0),t.addEventListener("pointercancel",m,!0)},e=t=>{if(void 0===t.composedPath)return t.target.closest(".ion-activatable");{const i=t.composedPath();for(let t=0;t<i.length-2;t++){const o=i[t];if(!(o instanceof ShadowRoot)&&o.classList.contains("ion-activatable"))return o}}},r=t=>t.classList.contains("ion-activatable-instant"),n=t=>{if(t.shadowRoot){const i=t.shadowRoot.querySelector("ion-ripple-effect");if(i)return i}return t.querySelector("ion-ripple-effect")},a="ion-activated",s=100,c=150;export{o as startTapClick}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * (C) Ionic http://ionicframework.com - MIT License
3
+ */
4
+ import{j as e}from"./p-gD7P82jx.js";import{w as o}from"./p-CsyYiC5f.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={},k=0,R=!1,j=!1,w=!0,D=!1,T=!0,F=!1;const W=t,x=[],I=[],K=[],M=[],P=[],Y=[],q=[],z=[],B=[],G=[],H=[],J="function"==typeof AnimationEffect||void 0!==o&&"function"==typeof o.AnimationEffect,L="function"==typeof Element&&"function"==typeof Element.prototype.animate&&J,N=()=>H,O=(e,o)=>{const t=o.findIndex((o=>o.c===e));t>-1&&o.splice(t,1)},Q=(e,o)=>(((null==o?void 0:o.oneTimeCallback)?I:x).push({c:e,o}),p),U=()=>{L&&(H.forEach((e=>{e.cancel()})),H.length=0)},V=()=>{Y.forEach((e=>{(null==e?void 0:e.parentNode)&&e.parentNode.removeChild(e)})),Y.length=0},X=()=>void 0!==l?l:c?c.getFill():"both",Z=()=>void 0!==v?v:void 0!==f?f:c?c.getDirection():"normal",$=()=>R?"linear":void 0!==s?s:c?c.getEasing():"linear",_=()=>j?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!==k&&(k--,0===k&&((()=>{B.forEach((e=>e())),G.forEach((e=>e()));const e=w?1:0,o=E,t=h,n=S;M.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,x.forEach((o=>o.c(e,p))),I.forEach((o=>o.c(e,p))),I.length=0,T=!0,w&&(D=!0),w=!0})(),c&&c.animationFinish()))},ie=()=>{(()=>{q.forEach((e=>e())),z.forEach((e=>e()));const e=g,o=A,t=C;M.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&&L&&(M.forEach((e=>{const o=e.animate(y,{id:W,delay:oe(),duration:_(),easing:$(),iterations:ee(),fill:X(),direction:Z()});o.pause(),H.push(o)})),H.length>0&&(H[0].onfinish=()=>{te()})),b=!0},ne=e=>{e=Math.min(Math.max(e,0),.9999),L&&H.forEach((o=>{o.currentTime=o.effect.getComputedTiming().delay+_()*e,o.pause()}))},re=e=>{H.forEach((e=>{e.effect.updateTiming({delay:oe(),duration:_(),easing:$(),iterations:ee(),fill:X(),direction:Z()})})),void 0!==e&&ne(e)},ae=(e=!1,o=!0,t)=>(e&&P.forEach((i=>{i.update(e,o,t)})),L&&re(t),p),se=()=>{b&&(L?H.forEach((e=>{e.pause()})):M.forEach((e=>{i(e,"animation-play-state","paused")})),F=!0)},de=e=>new Promise((o=>{(null==e?void 0:e.sync)&&(j=!0,Q((()=>j=!1),{oneTimeCallback:!0})),b||ie(),D&&(L&&(ne(0),re()),D=!1),T&&(k=P.length+1,T=!1);const t=()=>{O(i,I),o()},i=()=>{O(t,K),o()};Q(i,{oneTimeCallback:!0}),K.push({c:t,o:{oneTimeCallback:!0}}),P.forEach((e=>{e.play()})),L?(H.forEach((e=>{e.play()})),0!==y.length&&0!==M.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:M,childAnimations:P,id:W,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:()=>(P.forEach((e=>{e.pause()})),se(),p),stop:()=>{P.forEach((e=>{e.stop()})),b&&(U(),b=!1),R=!1,j=!1,T=!0,v=void 0,m=void 0,u=void 0,k=0,D=!1,w=!0,F=!1,K.forEach((e=>e.c(0,p))),K.length=0},destroy:e=>(P.forEach((o=>{o.destroy(e)})),(e=>{U(),e&&V()})(e),M.length=0,P.length=0,y.length=0,x.length=0,I.length=0,b=!1,T=!0,p),keyframes:e=>{const o=y!==e;return y=e,o&&(e=>{L&&N().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),P.push(o);else e.parent(p),P.push(e);return p},addElement:o=>{if(null!=o)if(1===o.nodeType)M.push(o);else if(o.length>=0)for(let e=0;e<o.length;e++)M.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=>(L||0!==e||(e=1),a=e,ae(!0),p),easing:e=>(s=e,ae(!0),p),delay:e=>(r=e,ae(!0),p),getWebAnimations:N,getKeyframes:()=>y,getFill:X,getDirection:Z,getDelay:oe,getIterations:ee,getEasing:$,getDuration:_,afterAddRead:e=>(B.push(e),p),afterAddWrite:e=>(G.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=>(q.push(e),p),beforeAddWrite:e=>(z.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:Q,isRunning:()=>0!==k&&!F,progressStart:(e=!1,o)=>(P.forEach((t=>{t.progressStart(e,o)})),se(),R=e,b||ie(),ae(!1,!0,o),p),progressStep:e=>(P.forEach((o=>{o.progressStep(e)})),ne(e),p),progressEnd:(e,o,t)=>(R=!1,P.forEach((i=>{i.progressEnd(e,o,t)})),void 0!==t&&(m=t),D=!1,w=!0,0===e?(v="reverse"===Z()?"normal":"reverse","reverse"===v&&(w=!1),L?(ae(),ne(1-o)):(u=(1-o)*_()*-1,ae(!1,!1))):1===e&&(L?(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{c as t}from"./p-CtYkbKMO.js";import{g as o}from"./p-C6Zvvi79.js";import"./p-gD7P82jx.js";import"./p-D9Z6SCU4.js";import"./p-BtZ27kGG.js";import"./p-vXpMhGrs.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`,A=`${i.top}px`,B=e?[{offset:0,transform:`translate3d(${j}, ${A}, 0)`},{offset:1,transform:`translate3d(${w}, ${T}, 0)`}]:[{offset:0,transform:`translate3d(${w}, ${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}],G=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)"}],O=t(),S=t(),Z=t(),D=n("ion-back-button"),I=a(D).querySelector(".button-text"),M=a(D).querySelector("ion-icon");D.text=r.text,D.mode=r.mode,D.theme=r.theme,D.icon=r.icon,D.color=r.color,D.disabled=r.disabled,D.style.setProperty("display","block"),D.style.setProperty("position","fixed"),S.addElement(M),O.addElement(I),Z.addElement(D),Z.beforeStyles({position:"absolute",top:"0px",[X]:"0px"}).beforeAddWrite((()=>{r.style.setProperty("display","none"),D.style.setProperty(b,m)})).afterAddWrite((()=>{r.style.setProperty("display",""),D.style.setProperty("display","none"),D.style.removeProperty(b)})).keyframes(B),O.beforeStyles({"transform-origin":`${b} top`}).keyframes(C),S.beforeStyles({"transform-origin":`${y} center`}).keyframes(G),o.addAnimation([O,S,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}`}],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: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}})(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)"),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")),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&&!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 w}catch(t){throw t}},c=10;export{l as iosTransitionAnimation,a as shadow}
4
+ import{c as t}from"./p-DYzvRXm5.js";import{g as o}from"./p-CzuA64hv.js";import"./p-gD7P82jx.js";import"./p-CsyYiC5f.js";import"./p-hPTD29t1.js";import"./p-vXpMhGrs.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`,z=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)"}],B=t(),I=t(),N=t(),O=n("ion-back-button"),P=a(O).querySelector(".button-text"),S=a(O).querySelector("ion-icon");O.text=r.text,O.mode=r.mode,O.theme=r.theme,O.icon=r.icon,O.color=r.color,O.disabled=r.disabled,O.style.setProperty("display","block"),O.style.setProperty("position","fixed"),I.addElement(S),B.addElement(P),N.addElement(O),N.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(z),B.beforeStyles({"transform-origin":`${b} top`}).keyframes(C),I.beforeStyles({"transform-origin":`${y} center`}).keyframes(D),o.addAnimation([B,I,N])},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:z}=((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&&!z){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}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{e}from"./p-gD7P82jx.js";import{c as o}from"./p-BtZ27kGG.js";const t=async(e,t,r,i,n,s)=>{var a;if(e)return e.attachViewToDom(t,r,n,i);if(!(s||"string"==typeof r||r instanceof HTMLElement))throw new Error("framework delegate is missing");const m="string"==typeof r?null===(a=t.ownerDocument)||void 0===a?void 0:a.createElement(r):r;return i&&i.forEach((e=>m.classList.add(e))),n&&Object.assign(m,n),t.appendChild(m),await new Promise((e=>o(m,e))),m},r=(e,o)=>{if(o){if(e)return e.removeViewFromDom(o.parentElement,o);o.remove()}return Promise.resolve()},i=()=>{let t,r;return{attachViewToDom:async(i,n,s={},a=[])=>{var m,c;let l;if(t=i,n){const e="string"==typeof n?null===(m=t.ownerDocument)||void 0===m?void 0:m.createElement(n):n;a.forEach((o=>e.classList.add(o))),Object.assign(e,s),t.appendChild(e),l=e,await new Promise((t=>o(e,t)))}else if(t.children.length>0&&("ION-MODAL"===t.tagName||"ION-POPOVER"===t.tagName)&&!(l=t.children[0]).classList.contains("ion-delegate-host")){const e=null===(c=t.ownerDocument)||void 0===c?void 0:c.createElement("div");e.classList.add("ion-delegate-host"),a.forEach((o=>e.classList.add(o))),e.append(...t.children),t.appendChild(e),l=e}const d=e.get("appRootSelector","ion-app"),f=document.querySelector(d)||document.body;return r=document.createComment("ionic teleport"),t.parentNode.insertBefore(r,t),f.appendChild(t),null!=l?l:t},removeViewFromDom:()=>(t&&r&&(r.parentNode.insertBefore(t,r),r.remove()),Promise.resolve())}};export{i as C,t as a,r as d}
4
+ import{e}from"./p-gD7P82jx.js";import{c as o}from"./p-hPTD29t1.js";const t=async(e,t,r,i,n,s)=>{var a;if(e)return e.attachViewToDom(t,r,n,i);if(!(s||"string"==typeof r||r instanceof HTMLElement))throw new Error("framework delegate is missing");const m="string"==typeof r?null===(a=t.ownerDocument)||void 0===a?void 0:a.createElement(r):r;return i&&i.forEach((e=>m.classList.add(e))),n&&Object.assign(m,n),t.appendChild(m),await new Promise((e=>o(m,e))),m},r=(e,o)=>{if(o){if(e)return e.removeViewFromDom(o.parentElement,o);o.remove()}return Promise.resolve()},i=()=>{let t,r;return{attachViewToDom:async(i,n,s={},a=[])=>{var m,c;let l;if(t=i,n){const e="string"==typeof n?null===(m=t.ownerDocument)||void 0===m?void 0:m.createElement(n):n;a.forEach((o=>e.classList.add(o))),Object.assign(e,s),t.appendChild(e),l=e,await new Promise((t=>o(e,t)))}else if(t.children.length>0&&("ION-MODAL"===t.tagName||"ION-POPOVER"===t.tagName)&&!(l=t.children[0]).classList.contains("ion-delegate-host")){const e=null===(c=t.ownerDocument)||void 0===c?void 0:c.createElement("div");e.classList.add("ion-delegate-host"),a.forEach((o=>e.classList.add(o))),e.append(...t.children),t.appendChild(e),l=e}const d=e.get("appRootSelector","ion-app"),f=document.querySelector(d)||document.body;return r=document.createComment("ionic teleport"),t.parentNode.insertBefore(r,t),f.appendChild(t),null!=l?l:t},removeViewFromDom:()=>(t&&r&&(r.parentNode.insertBefore(t,r),r.remove()),Promise.resolve())}};export{i as C,t as a,r as d}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{r as t,e as s,h as e,d as i,g as r,c as o}from"./p-gD7P82jx.js";import{l as n}from"./p-Dhi5xtNS.js";import{j as h,k as a}from"./p-COG0_eom.js";import{c}from"./p-D9Z6SCU4.js";import{f as d,g as l}from"./p-CavV7ueY.js";import{r as p}from"./p-BtZ27kGG.js";import{b as m,a as f,h as b}from"./p-D2YxjYpA.js";import"./p-vXpMhGrs.js";import"./p-CVx8g72D.js";const u=class{constructor(s){t(this,s)}onClick(t){const s=this.el.closest("ion-reorder-group");t.preventDefault(),s&&s.disabled||t.stopImmediatePropagation()}get reorderHandleIcon(){const t=c(this),e={ios:a,ionic:n,md:h};return s.get("reorderHandleIcon",e[t]||e.md)}render(){const{reorderHandleIcon:t}=this,s=c(this);return e(i,{key:"ba59a095c200b70c6d847dc7362d52b315dc853a",class:{[s]:!0}},e("slot",{key:"79be263f78cc21c9c4f91326e557e65849ab1e51"},e("ion-icon",{key:"6e5c47c8bbd33f5cd405a5fd531831cb87c8e57e",icon:t,lazy:!1,class:"reorder-icon",part:"icon","aria-hidden":"true"})))}get el(){return r(this)}};u.style={ionic:":host([slot]){display:none;line-height:0;z-index:100}.reorder-icon{display:block}::slotted(ion-icon){font-size:dynamic-font(16px)}.reorder-icon{font-size:1.9375rem;opacity:0.3}",ios:":host([slot]){display:none;line-height:0;z-index:100}.reorder-icon{display:block}::slotted(ion-icon){font-size:dynamic-font(16px)}.reorder-icon{font-size:2.125rem;opacity:0.4}",md:":host([slot]){display:none;line-height:0;z-index:100}.reorder-icon{display:block}::slotted(ion-icon){font-size:dynamic-font(16px)}.reorder-icon{font-size:1.9375rem;opacity:0.3}"};const g=class{constructor(s){t(this,s),this.ionItemReorder=o(this,"ionItemReorder",7),this.ionReorderStart=o(this,"ionReorderStart",7),this.ionReorderMove=o(this,"ionReorderMove",7),this.ionReorderEnd=o(this,"ionReorderEnd",7),this.lastToIndex=-1,this.cachedHeights=[],this.scrollElTop=0,this.scrollElBottom=0,this.scrollElInitial=0,this.containerTop=0,this.containerBottom=0,this.state=0,this.disabled=!0}disabledChanged(){this.gesture&&this.gesture.enable(!this.disabled)}async connectedCallback(){const t=d(this.el);t&&(this.scrollEl=await l(t)),this.gesture=(await import("./p-Cl0B-RWe.js")).createGesture({el:this.el,gestureName:"reorder",gesturePriority:110,threshold:0,direction:"y",passive:!1,canStart:t=>this.canStart(t),onStart:t=>this.onStart(t),onMove:t=>this.onMove(t),onEnd:()=>this.onEnd()}),this.disabledChanged()}disconnectedCallback(){this.onEnd(),this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}complete(t){return Promise.resolve(this.completeReorder(t))}canStart(t){if(this.selectedItemEl||0!==this.state)return!1;const s=t.event.target.closest("ion-reorder");if(!s)return!1;const e=y(s,this.el);return!!e&&(t.data=e,!0)}onStart(t){t.event.preventDefault();const s=this.selectedItemEl=t.data,e=this.cachedHeights;e.length=0;const i=this.el,r=i.__children||i.children;if(!r||0===r.length)return;let o=0;for(let t=0;t<r.length;t++){const s=r[t];o+=s.offsetHeight,e.push(o),s.$ionIndex=t}const n=i.getBoundingClientRect();if(this.containerTop=n.top,this.containerBottom=n.bottom,this.scrollEl){const t=this.scrollEl.getBoundingClientRect();this.scrollElInitial=this.scrollEl.scrollTop,this.scrollElTop=t.top+x,this.scrollElBottom=t.bottom-x}else this.scrollElInitial=0,this.scrollElTop=0,this.scrollElBottom=0;this.lastToIndex=k(s),this.selectedItemHeight=s.offsetHeight,this.state=1,s.classList.add(w),m(),this.ionReorderStart.emit()}onMove(t){const s=this.selectedItemEl;if(!s)return;const e=this.autoscroll(t.currentY),i=this.containerTop-e,r=Math.max(i,Math.min(t.currentY,this.containerBottom-e)),o=e+r-t.startY,n=this.lastToIndex,h=this.itemIndexForTop(r-i);if(h!==this.lastToIndex){const t=k(s);this.lastToIndex=h,f(),this.reorderMove(t,h)}s.style.transform=`translateY(${o}px)`,this.ionReorderMove.emit({from:n,to:h})}onEnd(){const t=this.selectedItemEl;if(this.state=2,!t)return void(this.state=0);const s=this.lastToIndex,e=k(t);s===e?this.completeReorder():this.ionItemReorder.emit({from:e,to:s,complete:this.completeReorder.bind(this)}),b(),this.ionReorderEnd.emit({from:e,to:s,complete:this.completeReorder.bind(this)})}completeReorder(t){const s=this.selectedItemEl;if(s&&2===this.state){const e=this.el.__children||this.el.children,i=e.length,r=this.lastToIndex,o=k(s);p((()=>{r===o||void 0!==t&&!0!==t||this.el.insertBefore(s,o<r?e[r+1]:e[r]);for(let t=0;t<i;t++)e[t].style.transform=""})),Array.isArray(t)&&(t=j(t,o,r)),s.style.transition="",s.classList.remove(w),this.selectedItemEl=void 0,this.state=0}return t}itemIndexForTop(t){const s=this.cachedHeights;for(let e=0;e<s.length;e++)if(s[e]>t)return e;return s.length-1}reorderMove(t,s){const e=this.selectedItemHeight,i=this.el.__children||this.el.children;for(let r=0;r<i.length;r++){let o="";r>t&&r<=s?o=`translateY(${-e}px)`:r<t&&r>=s&&(o=`translateY(${e}px)`),i[r].style.transform=o}}autoscroll(t){if(!this.scrollEl)return 0;let s=0;return t<this.scrollElTop?s=-10:t>this.scrollElBottom&&(s=v),0!==s&&this.scrollEl.scrollBy(0,s),this.scrollEl.scrollTop-this.scrollElInitial}render(){const t=c(this);return e(i,{key:"df12858536c409c76552fe79b88827b3c4a5d9c5",class:{[t]:!0,"reorder-enabled":!this.disabled,"reorder-list-active":0!==this.state}})}get el(){return r(this)}static get watchers(){return{disabled:["disabledChanged"]}}},k=t=>t.$ionIndex,y=(t,s)=>{let e;for(;t;){if(e=t.parentElement,e===s)return t;t=e}},x=60,v=10,w="reorder-selected",j=(t,s,e)=>{const i=t[s];return t.splice(s,1),t.splice(e,0,i),t.slice()};g.style=".reorder-list-active>*{display:block;-webkit-transition:-webkit-transform 300ms;transition:-webkit-transform 300ms;transition:transform 300ms;transition:transform 300ms, -webkit-transform 300ms;will-change:transform}.reorder-enabled{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.reorder-enabled ion-reorder{display:block;cursor:-webkit-grab;cursor:grab;pointer-events:all;-ms-touch-action:none;touch-action:none}.reorder-selected,.reorder-selected ion-reorder{cursor:-webkit-grabbing;cursor:grabbing}.reorder-selected{position:relative;-webkit-transition:none !important;transition:none !important;-webkit-box-shadow:0 0 10px rgba(0, 0, 0, 0.4);box-shadow:0 0 10px rgba(0, 0, 0, 0.4);opacity:0.8;z-index:100}.reorder-visible ion-reorder .reorder-icon{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}";export{u as ion_reorder,g as ion_reorder_group}
4
+ import{r as t,e as s,h as i,d as e,g as r,c as o}from"./p-gD7P82jx.js";import{l as n}from"./p-Dhi5xtNS.js";import{j as h,k as a}from"./p-COG0_eom.js";import{c}from"./p-CsyYiC5f.js";import{f as d,g as l}from"./p-CYW7idR0.js";import{r as p}from"./p-hPTD29t1.js";import{b as m,a as f,h as b}from"./p-44OfGWEp.js";import"./p-vXpMhGrs.js";import"./p-BIyO17h7.js";const u=class{constructor(s){t(this,s)}onClick(t){const s=this.el.closest("ion-reorder-group");t.preventDefault(),s&&s.disabled||t.stopImmediatePropagation()}get reorderHandleIcon(){const t=c(this),i={ios:a,ionic:n,md:h};return s.get("reorderHandleIcon",i[t]||i.md)}render(){const{reorderHandleIcon:t}=this,s=c(this);return i(e,{key:"ba59a095c200b70c6d847dc7362d52b315dc853a",class:{[s]:!0}},i("slot",{key:"79be263f78cc21c9c4f91326e557e65849ab1e51"},i("ion-icon",{key:"6e5c47c8bbd33f5cd405a5fd531831cb87c8e57e",icon:t,lazy:!1,class:"reorder-icon",part:"icon","aria-hidden":"true"})))}get el(){return r(this)}};u.style={ionic:":host([slot]){display:none;line-height:0;z-index:100}.reorder-icon{display:block}::slotted(ion-icon){font-size:dynamic-font(16px)}.reorder-icon{font-size:1.9375rem;opacity:0.3}",ios:":host([slot]){display:none;line-height:0;z-index:100}.reorder-icon{display:block}::slotted(ion-icon){font-size:dynamic-font(16px)}.reorder-icon{font-size:2.125rem;opacity:0.4}",md:":host([slot]){display:none;line-height:0;z-index:100}.reorder-icon{display:block}::slotted(ion-icon){font-size:dynamic-font(16px)}.reorder-icon{font-size:1.9375rem;opacity:0.3}"};const y=class{constructor(s){t(this,s),this.ionItemReorder=o(this,"ionItemReorder",7),this.ionReorderStart=o(this,"ionReorderStart",7),this.ionReorderMove=o(this,"ionReorderMove",7),this.ionReorderEnd=o(this,"ionReorderEnd",7),this.lastToIndex=-1,this.cachedHeights=[],this.scrollElTop=0,this.scrollElBottom=0,this.scrollElInitial=0,this.containerTop=0,this.containerBottom=0,this.state=0,this.disabled=!0}disabledChanged(){this.gesture&&this.gesture.enable(!this.disabled)}async connectedCallback(){const t=d(this.el);t&&(this.scrollEl=await l(t)),this.gesture=(await import("./p-Cl0B-RWe.js")).createGesture({el:this.el,gestureName:"reorder",gesturePriority:110,threshold:0,direction:"y",passive:!1,canStart:t=>this.canStart(t),onStart:t=>this.onStart(t),onMove:t=>this.onMove(t),onEnd:()=>this.onEnd()}),this.disabledChanged()}disconnectedCallback(){this.onEnd(),this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}complete(t){return Promise.resolve(this.completeReorder(t))}canStart(t){if(this.selectedItemEl||0!==this.state)return!1;const s=t.event.target.closest("ion-reorder");if(!s)return!1;const i=k(s,this.el);return!!i&&(t.data=i,!0)}onStart(t){t.event.preventDefault();const s=this.selectedItemEl=t.data,i=this.cachedHeights;i.length=0;const e=this.el,r=e.__children||e.children;if(!r||0===r.length)return;let o=0;for(let t=0;t<r.length;t++){const s=r[t];o+=s.offsetHeight,i.push(o),s.$ionIndex=t}const n=e.getBoundingClientRect();if(this.containerTop=n.top,this.containerBottom=n.bottom,this.scrollEl){const t=this.scrollEl.getBoundingClientRect();this.scrollElInitial=this.scrollEl.scrollTop,this.scrollElTop=t.top+x,this.scrollElBottom=t.bottom-x}else this.scrollElInitial=0,this.scrollElTop=0,this.scrollElBottom=0;this.lastToIndex=g(s),this.selectedItemHeight=s.offsetHeight,this.state=1,s.classList.add(v),m(),this.ionReorderStart.emit()}onMove(t){const s=this.selectedItemEl;if(!s)return;const i=this.autoscroll(t.currentY),e=this.containerTop-i,r=Math.max(e,Math.min(t.currentY,this.containerBottom-i)),o=i+r-t.startY,n=this.lastToIndex,h=this.itemIndexForTop(r-e);if(h!==this.lastToIndex){const t=g(s);this.lastToIndex=h,f(),this.reorderMove(t,h)}s.style.transform=`translateY(${o}px)`,this.ionReorderMove.emit({from:n,to:h})}onEnd(){const t=this.selectedItemEl;if(this.state=2,!t)return void(this.state=0);const s=this.lastToIndex,i=g(t);s===i?this.completeReorder():this.ionItemReorder.emit({from:i,to:s,complete:this.completeReorder.bind(this)}),b(),this.ionReorderEnd.emit({from:i,to:s,complete:this.completeReorder.bind(this)})}completeReorder(t){const s=this.selectedItemEl;if(s&&2===this.state){const i=this.el.__children||this.el.children,e=i.length,r=this.lastToIndex,o=g(s);p((()=>{r===o||void 0!==t&&!0!==t||this.el.insertBefore(s,o<r?i[r+1]:i[r]);for(let t=0;t<e;t++)i[t].style.transform=""})),Array.isArray(t)&&(t=j(t,o,r)),s.style.transition="",s.classList.remove(v),this.selectedItemEl=void 0,this.state=0}return t}itemIndexForTop(t){const s=this.cachedHeights;for(let i=0;i<s.length;i++)if(s[i]>t)return i;return s.length-1}reorderMove(t,s){const i=this.selectedItemHeight,e=this.el.__children||this.el.children;for(let r=0;r<e.length;r++){let o="";r>t&&r<=s?o=`translateY(${-i}px)`:r<t&&r>=s&&(o=`translateY(${i}px)`),e[r].style.transform=o}}autoscroll(t){if(!this.scrollEl)return 0;let s=0;return t<this.scrollElTop?s=-10:t>this.scrollElBottom&&(s=w),0!==s&&this.scrollEl.scrollBy(0,s),this.scrollEl.scrollTop-this.scrollElInitial}render(){const t=c(this);return i(e,{key:"df12858536c409c76552fe79b88827b3c4a5d9c5",class:{[t]:!0,"reorder-enabled":!this.disabled,"reorder-list-active":0!==this.state}})}get el(){return r(this)}static get watchers(){return{disabled:["disabledChanged"]}}},g=t=>t.$ionIndex,k=(t,s)=>{let i;for(;t;){if(i=t.parentElement,i===s)return t;t=i}},x=60,w=10,v="reorder-selected",j=(t,s,i)=>{const e=t[s];return t.splice(s,1),t.splice(i,0,e),t.slice()};y.style=".reorder-list-active>*{display:block;-webkit-transition:-webkit-transform 300ms;transition:-webkit-transform 300ms;transition:transform 300ms;transition:transform 300ms, -webkit-transform 300ms;will-change:transform}.reorder-enabled{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.reorder-enabled ion-reorder{display:block;cursor:-webkit-grab;cursor:grab;pointer-events:all;-ms-touch-action:none;touch-action:none}.reorder-selected,.reorder-selected ion-reorder{cursor:-webkit-grabbing;cursor:grabbing}.reorder-selected{position:relative;-webkit-transition:none !important;transition:none !important;-webkit-box-shadow:0 0 10px rgba(0, 0, 0, 0.4);box-shadow:0 0 10px rgba(0, 0, 0, 0.4);opacity:0.8;z-index:100}.reorder-visible ion-reorder .reorder-icon{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}";export{u as ion_reorder,y as ion_reorder_group}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{r as t,c as i,e as s,f as e,h as n,g as o,d as r}from"./p-gD7P82jx.js";import{g as a}from"./p-hHmYLOfE.js";import{s as h,l as c}from"./p-BtZ27kGG.js";import{l as d,t as l,s as u,d as v,b as m,c as f}from"./p-C6Zvvi79.js";import{b as p,c as w}from"./p-D9Z6SCU4.js";import{a as b}from"./p--P4Ls41D.js";import"./p-vXpMhGrs.js";class g{constructor(t,i){this.component=t,this.params=i,this.state=1}async init(t){if(this.state=2,!this.element){const i=this.component;this.element=await b(this.delegate,t,i,["ion-page","ion-page-invisible"],this.params)}}_destroy(){c(3!==this.state,"view state must be ATTACHED");const t=this.element;t&&(this.delegate?this.delegate.removeViewFromDom(t.parentElement,t):t.remove()),this.nav=void 0,this.state=3}}const y=(t,i,s)=>!!t&&t.component===i&&h(t.params,s),k=(t,i)=>t?t instanceof g?t:new g(t,i):null,C=class{constructor(s){t(this,s),this.ionNavWillLoad=i(this,"ionNavWillLoad",7),this.ionNavWillChange=i(this,"ionNavWillChange",3),this.ionNavDidChange=i(this,"ionNavDidChange",3),this.transInstr=[],this.gestureOrAnimationInProgress=!1,this.useRouter=!1,this.isTransitioning=!1,this.destroyed=!1,this.views=[],this.didLoad=!1,this.animated=!0}swipeGestureChanged(){this.gesture&&this.gesture.enable(!0===this.swipeGesture)}rootChanged(){void 0!==this.root&&!1!==this.didLoad&&(this.useRouter||void 0!==this.root&&this.setRoot(this.root,this.rootParams))}componentWillLoad(){if(this.useRouter=null!==document.querySelector("ion-router")&&null===this.el.closest("[no-router]"),void 0===this.swipeGesture){const t=p(this);this.swipeGesture=s.getBoolean("swipeBackEnabled","ios"===t)}this.ionNavWillLoad.emit()}async componentDidLoad(){this.didLoad=!0,this.rootChanged(),this.gesture=(await import("./p-BM5GnYxc.js")).createSwipeBackGesture(this.el,this.canStart.bind(this),this.onStart.bind(this),this.onMove.bind(this),this.onEnd.bind(this)),this.swipeGestureChanged()}connectedCallback(){this.destroyed=!1}disconnectedCallback(){for(const t of this.views)d(t.element,v),t._destroy();this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.transInstr.length=0,this.views.length=0,this.destroyed=!0}push(t,i,s,e){return this.insert(-1,t,i,s,e)}insert(t,i,s,e,n){return this.insertPages(t,[{component:i,componentProps:s}],e,n)}insertPages(t,i,s,e){return this.queueTrns({insertStart:t,insertViews:i,opts:s},e)}pop(t,i){return this.removeIndex(-1,1,t,i)}popTo(t,i,s){const e={removeStart:-1,removeCount:-1,opts:i};return"object"==typeof t&&t.component?(e.removeView=t,e.removeStart=1):"number"==typeof t&&(e.removeStart=t+1),this.queueTrns(e,s)}popToRoot(t,i){return this.removeIndex(1,-1,t,i)}removeIndex(t,i=1,s,e){return this.queueTrns({removeStart:t,removeCount:i,opts:s},e)}setRoot(t,i,s,e){return this.setPages([{component:t,componentProps:i}],s,e)}setPages(t,i,s){return null!=i||(i={}),!0!==i.animated&&(i.animated=!1),this.queueTrns({insertStart:0,insertViews:t,removeStart:0,removeCount:-1,opts:i},s)}setRouteId(t,i,s,e){const n=this.getActiveSync();if(y(n,t,i))return Promise.resolve({changed:!1,element:n.element});let o;const r=new Promise((t=>o=t));let a;const h={updateURL:!1,viewIsReady:t=>{let i;const s=new Promise((t=>i=t));return o({changed:!0,element:t,markVisible:async()=>{i(),await a}}),s}};if("root"===s)a=this.setRoot(t,i,h);else{const n=this.views.find((s=>y(s,t,i)));n?a=this.popTo(n,Object.assign(Object.assign({},h),{direction:"back",animationBuilder:e})):"forward"===s?a=this.push(t,i,Object.assign(Object.assign({},h),{animationBuilder:e})):"back"===s&&(a=this.setRoot(t,i,Object.assign(Object.assign({},h),{direction:"back",animated:!0,animationBuilder:e})))}return r}async getRouteId(){const t=this.getActiveSync();if(t)return{id:t.element.tagName,params:t.params,element:t.element}}async getActive(){return this.getActiveSync()}async getByIndex(t){return this.views[t]}async canGoBack(t){return this.canGoBackSync(t)}async getPrevious(t){return this.getPreviousSync(t)}async getLength(){return Promise.resolve(this.views.length)}getActiveSync(){return this.views[this.views.length-1]}canGoBackSync(t=this.getActiveSync()){return!(!t||!this.getPreviousSync(t))}getPreviousSync(t=this.getActiveSync()){if(!t)return;const i=this.views,s=i.indexOf(t);return s>0?i[s-1]:void 0}async queueTrns(t,i){var s,e;if(this.isTransitioning&&(null===(s=t.opts)||void 0===s?void 0:s.skipIfBusy))return!1;const n=new Promise(((i,s)=>{t.resolve=i,t.reject=s}));if(t.done=i,t.opts&&!1!==t.opts.updateURL&&this.useRouter){const i=document.querySelector("ion-router");if(i){const s=await i.canTransition();if(!1===s)return!1;if("string"==typeof s)return i.push(s,t.opts.direction||"back"),!1}}return 0===(null===(e=t.insertViews)||void 0===e?void 0:e.length)&&(t.insertViews=void 0),this.transInstr.push(t),this.nextTrns(),n}success(t,i){if(this.destroyed)this.fireError("nav controller was destroyed",i);else if(i.done&&i.done(t.hasCompleted,t.requiresTransition,t.enteringView,t.leavingView,t.direction),i.resolve(t.hasCompleted),!1!==i.opts.updateURL&&this.useRouter){const i=document.querySelector("ion-router");i&&i.navChanged("back"===t.direction?"back":"forward")}}failed(t,i){this.destroyed?this.fireError("nav controller was destroyed",i):(this.transInstr.length=0,this.fireError(t,i))}fireError(t,i){i.done&&i.done(!1,!1,t),i.reject&&!this.destroyed?i.reject(t):i.resolve(!1)}nextTrns(){if(this.isTransitioning)return!1;const t=this.transInstr.shift();return!!t&&(this.runTransition(t),!0)}async runTransition(t){try{this.ionNavWillChange.emit(),this.isTransitioning=!0,this.prepareTI(t);const i=this.getActiveSync(),s=this.getEnteringView(t,i);if(!i&&!s)throw new Error("no views in the stack to be removed");s&&1===s.state&&await s.init(this.el),this.postViewInit(s,i,t);const e=(t.enteringRequiresTransition||t.leavingRequiresTransition)&&s!==i;let n;e&&t.opts&&i&&("back"===t.opts.direction&&(t.opts.animationBuilder=t.opts.animationBuilder||(null==s?void 0:s.animationBuilder)),i.animationBuilder=t.opts.animationBuilder),n=e?await this.transition(s,i,t):{hasCompleted:!0,requiresTransition:!1},this.success(n,t),this.ionNavDidChange.emit()}catch(i){this.failed(i,t)}this.isTransitioning=!1,this.nextTrns()}prepareTI(t){var i,s,e;const n=this.views.length;if(null!==(i=t.opts)&&void 0!==i||(t.opts={}),null!==(s=(e=t.opts).delegate)&&void 0!==s||(e.delegate=this.delegate),void 0!==t.removeView){c(void 0!==t.removeStart,"removeView needs removeStart"),c(void 0!==t.removeCount,"removeView needs removeCount");const i=this.views.indexOf(t.removeView);if(i<0)throw new Error("removeView was not found");t.removeStart+=i}void 0!==t.removeStart&&(t.removeStart<0&&(t.removeStart=n-1),t.removeCount<0&&(t.removeCount=n-t.removeStart),t.leavingRequiresTransition=t.removeCount>0&&t.removeStart+t.removeCount===n),t.insertViews&&((t.insertStart<0||t.insertStart>n)&&(t.insertStart=n),t.enteringRequiresTransition=t.insertStart===n);const o=t.insertViews;if(!o)return;c(o.length>0,"length can not be zero");const r=o.map((t=>t instanceof g?t:"component"in t?k(t.component,null===t.componentProps?void 0:t.componentProps):k(t,void 0))).filter((t=>null!==t));if(0===r.length)throw new Error("invalid views to insert");for(const i of r){i.delegate=t.opts.delegate;const s=i.nav;if(s&&s!==this)throw new Error("inserted view was already inserted");if(3===i.state)throw new Error("inserted view was already destroyed")}t.insertViews=r}getEnteringView(t,i){const s=t.insertViews;if(void 0!==s)return s[s.length-1];const e=t.removeStart;if(void 0!==e){const s=this.views,n=e+t.removeCount;for(let t=s.length-1;t>=0;t--){const o=s[t];if((t<e||t>=n)&&o!==i)return o}}}postViewInit(t,i,s){var n,o,r;c(i||t,"Both leavingView and enteringView are null"),c(s.resolve,"resolve must be valid"),c(s.reject,"reject must be valid");const a=s.opts,{insertViews:h,removeStart:l,removeCount:u}=s;let p;if(void 0!==l&&void 0!==u){c(l>=0,"removeStart can not be negative"),c(u>=0,"removeCount can not be negative"),p=[];for(let s=l;s<l+u;s++){const e=this.views[s];void 0!==e&&e!==t&&e!==i&&p.push(e)}null!==(n=a.direction)&&void 0!==n||(a.direction="back")}const w=this.views.length+(null!==(o=null==h?void 0:h.length)&&void 0!==o?o:0)-(null!=u?u:0);if(c(w>=0,"final balance can not be negative"),0===w)throw e("[ion-nav] - You can't remove all the pages in the navigation stack. nav.pop() is probably called too many times.",this,this.el),new Error("navigation stack needs at least one root page");if(h){let t=s.insertStart;for(const i of h)this.insertViewAt(i,t),t++;s.enteringRequiresTransition&&(null!==(r=a.direction)&&void 0!==r||(a.direction="forward"))}if(p&&p.length>0){for(const t of p)d(t.element,m),d(t.element,f),d(t.element,v);for(const t of p)this.destroyView(t)}}async transition(t,i,e){const n=e.opts,o=n.progressAnimation?t=>{void 0===t||this.gestureOrAnimationInProgress?this.sbAni=t:(this.gestureOrAnimationInProgress=!0,t.onFinish((()=>{this.gestureOrAnimationInProgress=!1}),{oneTimeCallback:!0}),t.progressEnd(0,0,0))}:void 0,r=w(this),a=p(this,r),h=t.element,c=i&&i.element,d=Object.assign(Object.assign({mode:a,theme:r,showGoBack:this.canGoBackSync(t),baseEl:this.el,progressCallback:o,animated:this.animated&&s.getBoolean("animated",!0),enteringEl:h,leavingEl:c},n),{animationBuilder:n.animationBuilder||this.animation||s.get("navAnimation")}),{hasCompleted:u}=await l(d);return this.transitionFinish(u,t,i,n)}transitionFinish(t,i,s,e){const n=t?i:s;return n&&this.unmountInactiveViews(n),{hasCompleted:t,requiresTransition:!0,enteringView:i,leavingView:s,direction:e.direction}}insertViewAt(t,i){const s=this.views,e=s.indexOf(t);e>-1?(c(t.nav===this,"view is not part of the nav"),s.splice(e,1),s.splice(i,0,t)):(c(!t.nav,"nav is used"),t.nav=this,s.splice(i,0,t))}removeView(t){c(2===t.state||3===t.state,"view state should be loaded or destroyed");const i=this.views,s=i.indexOf(t);c(s>-1,"view must be part of the stack"),s>=0&&i.splice(s,1)}destroyView(t){t._destroy(),this.removeView(t)}unmountInactiveViews(t){if(this.destroyed)return;const i=this.views,s=i.indexOf(t);for(let t=i.length-1;t>=0;t--){const e=i[t],n=e.element;n&&(t>s?(d(n,v),this.destroyView(e)):t<s&&u(n,!0))}}canStart(){return!this.gestureOrAnimationInProgress&&!!this.swipeGesture&&!this.isTransitioning&&0===this.transInstr.length&&this.canGoBackSync()}onStart(){this.gestureOrAnimationInProgress=!0,this.pop({direction:"back",progressAnimation:!0})}onMove(t){this.sbAni&&this.sbAni.progressStep(t)}onEnd(t,i,s){if(this.sbAni){this.sbAni.onFinish((()=>{this.gestureOrAnimationInProgress=!1}),{oneTimeCallback:!0});let e=t?-.001:.001;t?e+=a([0,0],[.32,.72],[0,1],[1,1],i)[0]:(this.sbAni.easing("cubic-bezier(1, 0, 0.68, 0.28)"),e+=a([0,0],[1,0],[.68,.28],[1,1],i)[0]),this.sbAni.progressEnd(t?1:0,e,s)}else this.gestureOrAnimationInProgress=!1}render(){return n("slot",{key:"d6dd0b1e0ba59381a139f4a49de3eb8351fa87a4"})}get el(){return o(this)}static get watchers(){return{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}}};C.style=":host{right:0;left:0;top:0;bottom:0;position:absolute;contain:layout size style;z-index:0}";const j=class{constructor(i){t(this,i),this.routerDirection="forward",this.onClick=()=>((t,i,s,e,n)=>{const o=this.el.closest("ion-nav");if(o)if("forward"===i){if(void 0!==s)return o.push(s,e,{skipIfBusy:!0,animationBuilder:n})}else if("root"===i){if(void 0!==s)return o.setRoot(s,e,{skipIfBusy:!0,animationBuilder:n})}else if("back"===i)return o.pop({skipIfBusy:!0,animationBuilder:n});return Promise.resolve(!1)})(0,this.routerDirection,this.component,this.componentProps,this.routerAnimation)}render(){return n(r,{key:"61246716bdf9556db90e07680bc1a289f9658d5c",onClick:this.onClick})}get el(){return o(this)}};export{C as ion_nav,j as ion_nav_link}
4
+ import{r as t,c as i,e as s,f as e,h as n,g as o,d as r}from"./p-gD7P82jx.js";import{g as a}from"./p-hHmYLOfE.js";import{s as h,l as c}from"./p-hPTD29t1.js";import{l as d,t as l,s as u,d as v,b as m,c as f}from"./p-CzuA64hv.js";import{b as p,c as w}from"./p-CsyYiC5f.js";import{a as b}from"./p-We-0jbXn.js";import"./p-vXpMhGrs.js";class g{constructor(t,i){this.component=t,this.params=i,this.state=1}async init(t){if(this.state=2,!this.element){const i=this.component;this.element=await b(this.delegate,t,i,["ion-page","ion-page-invisible"],this.params)}}_destroy(){c(3!==this.state,"view state must be ATTACHED");const t=this.element;t&&(this.delegate?this.delegate.removeViewFromDom(t.parentElement,t):t.remove()),this.nav=void 0,this.state=3}}const y=(t,i,s)=>!!t&&t.component===i&&h(t.params,s),k=(t,i)=>t?t instanceof g?t:new g(t,i):null,C=class{constructor(s){t(this,s),this.ionNavWillLoad=i(this,"ionNavWillLoad",7),this.ionNavWillChange=i(this,"ionNavWillChange",3),this.ionNavDidChange=i(this,"ionNavDidChange",3),this.transInstr=[],this.gestureOrAnimationInProgress=!1,this.useRouter=!1,this.isTransitioning=!1,this.destroyed=!1,this.views=[],this.didLoad=!1,this.animated=!0}swipeGestureChanged(){this.gesture&&this.gesture.enable(!0===this.swipeGesture)}rootChanged(){void 0!==this.root&&!1!==this.didLoad&&(this.useRouter||void 0!==this.root&&this.setRoot(this.root,this.rootParams))}componentWillLoad(){if(this.useRouter=null!==document.querySelector("ion-router")&&null===this.el.closest("[no-router]"),void 0===this.swipeGesture){const t=p(this);this.swipeGesture=s.getBoolean("swipeBackEnabled","ios"===t)}this.ionNavWillLoad.emit()}async componentDidLoad(){this.didLoad=!0,this.rootChanged(),this.gesture=(await import("./p-CtS5hTli.js")).createSwipeBackGesture(this.el,this.canStart.bind(this),this.onStart.bind(this),this.onMove.bind(this),this.onEnd.bind(this)),this.swipeGestureChanged()}connectedCallback(){this.destroyed=!1}disconnectedCallback(){for(const t of this.views)d(t.element,v),t._destroy();this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.transInstr.length=0,this.views.length=0,this.destroyed=!0}push(t,i,s,e){return this.insert(-1,t,i,s,e)}insert(t,i,s,e,n){return this.insertPages(t,[{component:i,componentProps:s}],e,n)}insertPages(t,i,s,e){return this.queueTrns({insertStart:t,insertViews:i,opts:s},e)}pop(t,i){return this.removeIndex(-1,1,t,i)}popTo(t,i,s){const e={removeStart:-1,removeCount:-1,opts:i};return"object"==typeof t&&t.component?(e.removeView=t,e.removeStart=1):"number"==typeof t&&(e.removeStart=t+1),this.queueTrns(e,s)}popToRoot(t,i){return this.removeIndex(1,-1,t,i)}removeIndex(t,i=1,s,e){return this.queueTrns({removeStart:t,removeCount:i,opts:s},e)}setRoot(t,i,s,e){return this.setPages([{component:t,componentProps:i}],s,e)}setPages(t,i,s){return null!=i||(i={}),!0!==i.animated&&(i.animated=!1),this.queueTrns({insertStart:0,insertViews:t,removeStart:0,removeCount:-1,opts:i},s)}setRouteId(t,i,s,e){const n=this.getActiveSync();if(y(n,t,i))return Promise.resolve({changed:!1,element:n.element});let o;const r=new Promise((t=>o=t));let a;const h={updateURL:!1,viewIsReady:t=>{let i;const s=new Promise((t=>i=t));return o({changed:!0,element:t,markVisible:async()=>{i(),await a}}),s}};if("root"===s)a=this.setRoot(t,i,h);else{const n=this.views.find((s=>y(s,t,i)));n?a=this.popTo(n,Object.assign(Object.assign({},h),{direction:"back",animationBuilder:e})):"forward"===s?a=this.push(t,i,Object.assign(Object.assign({},h),{animationBuilder:e})):"back"===s&&(a=this.setRoot(t,i,Object.assign(Object.assign({},h),{direction:"back",animated:!0,animationBuilder:e})))}return r}async getRouteId(){const t=this.getActiveSync();if(t)return{id:t.element.tagName,params:t.params,element:t.element}}async getActive(){return this.getActiveSync()}async getByIndex(t){return this.views[t]}async canGoBack(t){return this.canGoBackSync(t)}async getPrevious(t){return this.getPreviousSync(t)}async getLength(){return Promise.resolve(this.views.length)}getActiveSync(){return this.views[this.views.length-1]}canGoBackSync(t=this.getActiveSync()){return!(!t||!this.getPreviousSync(t))}getPreviousSync(t=this.getActiveSync()){if(!t)return;const i=this.views,s=i.indexOf(t);return s>0?i[s-1]:void 0}async queueTrns(t,i){var s,e;if(this.isTransitioning&&(null===(s=t.opts)||void 0===s?void 0:s.skipIfBusy))return!1;const n=new Promise(((i,s)=>{t.resolve=i,t.reject=s}));if(t.done=i,t.opts&&!1!==t.opts.updateURL&&this.useRouter){const i=document.querySelector("ion-router");if(i){const s=await i.canTransition();if(!1===s)return!1;if("string"==typeof s)return i.push(s,t.opts.direction||"back"),!1}}return 0===(null===(e=t.insertViews)||void 0===e?void 0:e.length)&&(t.insertViews=void 0),this.transInstr.push(t),this.nextTrns(),n}success(t,i){if(this.destroyed)this.fireError("nav controller was destroyed",i);else if(i.done&&i.done(t.hasCompleted,t.requiresTransition,t.enteringView,t.leavingView,t.direction),i.resolve(t.hasCompleted),!1!==i.opts.updateURL&&this.useRouter){const i=document.querySelector("ion-router");i&&i.navChanged("back"===t.direction?"back":"forward")}}failed(t,i){this.destroyed?this.fireError("nav controller was destroyed",i):(this.transInstr.length=0,this.fireError(t,i))}fireError(t,i){i.done&&i.done(!1,!1,t),i.reject&&!this.destroyed?i.reject(t):i.resolve(!1)}nextTrns(){if(this.isTransitioning)return!1;const t=this.transInstr.shift();return!!t&&(this.runTransition(t),!0)}async runTransition(t){try{this.ionNavWillChange.emit(),this.isTransitioning=!0,this.prepareTI(t);const i=this.getActiveSync(),s=this.getEnteringView(t,i);if(!i&&!s)throw new Error("no views in the stack to be removed");s&&1===s.state&&await s.init(this.el),this.postViewInit(s,i,t);const e=(t.enteringRequiresTransition||t.leavingRequiresTransition)&&s!==i;let n;e&&t.opts&&i&&("back"===t.opts.direction&&(t.opts.animationBuilder=t.opts.animationBuilder||(null==s?void 0:s.animationBuilder)),i.animationBuilder=t.opts.animationBuilder),n=e?await this.transition(s,i,t):{hasCompleted:!0,requiresTransition:!1},this.success(n,t),this.ionNavDidChange.emit()}catch(i){this.failed(i,t)}this.isTransitioning=!1,this.nextTrns()}prepareTI(t){var i,s,e;const n=this.views.length;if(null!==(i=t.opts)&&void 0!==i||(t.opts={}),null!==(s=(e=t.opts).delegate)&&void 0!==s||(e.delegate=this.delegate),void 0!==t.removeView){c(void 0!==t.removeStart,"removeView needs removeStart"),c(void 0!==t.removeCount,"removeView needs removeCount");const i=this.views.indexOf(t.removeView);if(i<0)throw new Error("removeView was not found");t.removeStart+=i}void 0!==t.removeStart&&(t.removeStart<0&&(t.removeStart=n-1),t.removeCount<0&&(t.removeCount=n-t.removeStart),t.leavingRequiresTransition=t.removeCount>0&&t.removeStart+t.removeCount===n),t.insertViews&&((t.insertStart<0||t.insertStart>n)&&(t.insertStart=n),t.enteringRequiresTransition=t.insertStart===n);const o=t.insertViews;if(!o)return;c(o.length>0,"length can not be zero");const r=o.map((t=>t instanceof g?t:"component"in t?k(t.component,null===t.componentProps?void 0:t.componentProps):k(t,void 0))).filter((t=>null!==t));if(0===r.length)throw new Error("invalid views to insert");for(const i of r){i.delegate=t.opts.delegate;const s=i.nav;if(s&&s!==this)throw new Error("inserted view was already inserted");if(3===i.state)throw new Error("inserted view was already destroyed")}t.insertViews=r}getEnteringView(t,i){const s=t.insertViews;if(void 0!==s)return s[s.length-1];const e=t.removeStart;if(void 0!==e){const s=this.views,n=e+t.removeCount;for(let t=s.length-1;t>=0;t--){const o=s[t];if((t<e||t>=n)&&o!==i)return o}}}postViewInit(t,i,s){var n,o,r;c(i||t,"Both leavingView and enteringView are null"),c(s.resolve,"resolve must be valid"),c(s.reject,"reject must be valid");const a=s.opts,{insertViews:h,removeStart:l,removeCount:u}=s;let p;if(void 0!==l&&void 0!==u){c(l>=0,"removeStart can not be negative"),c(u>=0,"removeCount can not be negative"),p=[];for(let s=l;s<l+u;s++){const e=this.views[s];void 0!==e&&e!==t&&e!==i&&p.push(e)}null!==(n=a.direction)&&void 0!==n||(a.direction="back")}const w=this.views.length+(null!==(o=null==h?void 0:h.length)&&void 0!==o?o:0)-(null!=u?u:0);if(c(w>=0,"final balance can not be negative"),0===w)throw e("[ion-nav] - You can't remove all the pages in the navigation stack. nav.pop() is probably called too many times.",this,this.el),new Error("navigation stack needs at least one root page");if(h){let t=s.insertStart;for(const i of h)this.insertViewAt(i,t),t++;s.enteringRequiresTransition&&(null!==(r=a.direction)&&void 0!==r||(a.direction="forward"))}if(p&&p.length>0){for(const t of p)d(t.element,m),d(t.element,f),d(t.element,v);for(const t of p)this.destroyView(t)}}async transition(t,i,e){const n=e.opts,o=n.progressAnimation?t=>{void 0===t||this.gestureOrAnimationInProgress?this.sbAni=t:(this.gestureOrAnimationInProgress=!0,t.onFinish((()=>{this.gestureOrAnimationInProgress=!1}),{oneTimeCallback:!0}),t.progressEnd(0,0,0))}:void 0,r=w(this),a=p(this,r),h=t.element,c=i&&i.element,d=Object.assign(Object.assign({mode:a,theme:r,showGoBack:this.canGoBackSync(t),baseEl:this.el,progressCallback:o,animated:this.animated&&s.getBoolean("animated",!0),enteringEl:h,leavingEl:c},n),{animationBuilder:n.animationBuilder||this.animation||s.get("navAnimation")}),{hasCompleted:u}=await l(d);return this.transitionFinish(u,t,i,n)}transitionFinish(t,i,s,e){const n=t?i:s;return n&&this.unmountInactiveViews(n),{hasCompleted:t,requiresTransition:!0,enteringView:i,leavingView:s,direction:e.direction}}insertViewAt(t,i){const s=this.views,e=s.indexOf(t);e>-1?(c(t.nav===this,"view is not part of the nav"),s.splice(e,1),s.splice(i,0,t)):(c(!t.nav,"nav is used"),t.nav=this,s.splice(i,0,t))}removeView(t){c(2===t.state||3===t.state,"view state should be loaded or destroyed");const i=this.views,s=i.indexOf(t);c(s>-1,"view must be part of the stack"),s>=0&&i.splice(s,1)}destroyView(t){t._destroy(),this.removeView(t)}unmountInactiveViews(t){if(this.destroyed)return;const i=this.views,s=i.indexOf(t);for(let t=i.length-1;t>=0;t--){const e=i[t],n=e.element;n&&(t>s?(d(n,v),this.destroyView(e)):t<s&&u(n,!0))}}canStart(){return!this.gestureOrAnimationInProgress&&!!this.swipeGesture&&!this.isTransitioning&&0===this.transInstr.length&&this.canGoBackSync()}onStart(){this.gestureOrAnimationInProgress=!0,this.pop({direction:"back",progressAnimation:!0})}onMove(t){this.sbAni&&this.sbAni.progressStep(t)}onEnd(t,i,s){if(this.sbAni){this.sbAni.onFinish((()=>{this.gestureOrAnimationInProgress=!1}),{oneTimeCallback:!0});let e=t?-.001:.001;t?e+=a([0,0],[.32,.72],[0,1],[1,1],i)[0]:(this.sbAni.easing("cubic-bezier(1, 0, 0.68, 0.28)"),e+=a([0,0],[1,0],[.68,.28],[1,1],i)[0]),this.sbAni.progressEnd(t?1:0,e,s)}else this.gestureOrAnimationInProgress=!1}render(){return n("slot",{key:"d6dd0b1e0ba59381a139f4a49de3eb8351fa87a4"})}get el(){return o(this)}static get watchers(){return{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}}};C.style=":host{right:0;left:0;top:0;bottom:0;position:absolute;contain:layout size style;z-index:0}";const j=class{constructor(i){t(this,i),this.routerDirection="forward",this.onClick=()=>((t,i,s,e,n)=>{const o=this.el.closest("ion-nav");if(o)if("forward"===i){if(void 0!==s)return o.push(s,e,{skipIfBusy:!0,animationBuilder:n})}else if("root"===i){if(void 0!==s)return o.setRoot(s,e,{skipIfBusy:!0,animationBuilder:n})}else if("back"===i)return o.pop({skipIfBusy:!0,animationBuilder:n});return Promise.resolve(!1)})(0,this.routerDirection,this.component,this.componentProps,this.routerAnimation)}render(){return n(r,{key:"61246716bdf9556db90e07680bc1a289f9658d5c",onClick:this.onClick})}get el(){return o(this)}};export{C as ion_nav,j as ion_nav_link}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{r as t,c as o,j as n,f as e,g as r,h as i,d as s}from"./p-gD7P82jx.js";import{c as a,n as c}from"./p-BtZ27kGG.js";import{o as h,c as u}from"./p-DaJxRxSQ.js";import{c as l}from"./p-D9Z6SCU4.js";import"./p-vXpMhGrs.js";const f=class{constructor(n){t(this,n),this.ionRouteDataChanged=o(this,"ionRouteDataChanged",7),this.url=""}onUpdate(t){this.ionRouteDataChanged.emit(t)}onComponentProps(t,o){if(t===o)return;const n=t?Object.keys(t):[],e=o?Object.keys(o):[];if(n.length===e.length){for(const e of n)if(t[e]!==o[e])return void this.onUpdate(t)}else this.onUpdate(t)}connectedCallback(){this.ionRouteDataChanged.emit()}static get watchers(){return{url:["onUpdate"],component:["onUpdate"],componentProps:["onComponentProps"]}}},d=class{constructor(n){t(this,n),this.ionRouteRedirectChanged=o(this,"ionRouteRedirectChanged",7)}propDidChange(){this.ionRouteRedirectChanged.emit()}connectedCallback(){this.ionRouteRedirectChanged.emit()}static get watchers(){return{from:["propDidChange"],to:["propDidChange"]}}},p="root",w="forward",m=t=>"/"+t.filter((t=>t.length>0)).join("/"),g=t=>{let o,n=[""];if(null!=t){const e=t.indexOf("?");e>-1&&(o=t.substring(e+1),t=t.substring(0,e)),n=t.split("/").map((t=>t.trim())).filter((t=>t.length>0)),0===n.length&&(n=[""])}return{segments:n,queryString:o}},b=async(t,o,e,r,i=!1,s)=>{try{const n=y(t);if(r>=o.length||!n)return i;await new Promise((t=>a(n,t)));const c=o[r],h=await n.setRouteId(c.id,c.params,e,s);return h.changed&&(e=p,i=!0),i=await b(h.element,o,e,r+1,i,s),h.markVisible&&await h.markVisible(),i}catch(t){return n("[ion-router] - Exception in writeNavState:",t),!1}},v=":not([no-router]) ion-nav, :not([no-router]) ion-tabs, :not([no-router]) ion-router-outlet",y=t=>{if(!t)return;if(t.matches(v))return t;const o=t.querySelector(v);return null!=o?o:void 0},R=(t,o)=>o.find((o=>((t,o)=>{const{from:n,to:e}=o;if(void 0===e)return!1;if(n.length>t.length)return!1;for(let o=0;o<n.length;o++){const e=n[o];if("*"===e)return!0;if(e!==t[o])return!1}return n.length===t.length})(t,o))),C=(t,o)=>{const n=Math.min(t.length,o.length);let e=0;for(let r=0;r<n;r++){const n=t[r],i=o[r];if(n.id.toLowerCase()!==i.id)break;if(n.params){const t=Object.keys(n.params);if(t.length===i.segments.length){const o=t.map((t=>`:${t}`));for(let t=0;t<o.length&&o[t].toLowerCase()===i.segments[t];t++)e++}}e++}return e},j=(t,o)=>{const n=new x(t);let e,r=!1;for(let t=0;t<o.length;t++){const i=o[t].segments;if(""===i[0])r=!0;else{for(const o of i){const r=n.next();if(":"===o[0]){if(""===r)return null;e=e||[],(e[t]||(e[t]={}))[o.slice(1)]=r}else if(r!==o)return null}r=!1}}return r&&r!==(""===n.next())?null:e?o.map(((t,o)=>({id:t.id,segments:t.segments,params:k(t.params,e[o]),beforeEnter:t.beforeEnter,beforeLeave:t.beforeLeave}))):o},k=(t,o)=>t||o?Object.assign(Object.assign({},t),o):void 0,D=(t,o)=>{let n=null,e=0;for(const r of o){const o=j(t,r);if(null!==o){const t=S(o);t>e&&(e=t,n=o)}}return n},S=t=>{let o=1,n=1;for(const e of t)for(const t of e.segments)":"===t[0]?o+=Math.pow(1,n):""!==t&&(o+=Math.pow(2,n)),n++;return o};class x{constructor(t){this.segments=t.slice()}next(){return this.segments.length>0?this.segments.shift():""}}const E=(t,o)=>o in t?t[o]:t.hasAttribute(o)?t.getAttribute(o):null,O=t=>Array.from(t.children).filter((t=>"ION-ROUTE-REDIRECT"===t.tagName)).map((t=>{const o=E(t,"to");return{from:g(E(t,"from")).segments,to:null==o?void 0:g(o)}})),P=t=>$(U(t)),U=t=>Array.from(t.children).filter((t=>"ION-ROUTE"===t.tagName&&t.component)).map((t=>{const o=E(t,"component");return{segments:g(E(t,"url")).segments,id:o.toLowerCase(),params:t.componentProps,beforeLeave:t.beforeLeave,beforeEnter:t.beforeEnter,children:U(t)}})),$=t=>{const o=[];for(const n of t)L([],o,n);return o},L=(t,o,n)=>{if(t=[...t,{id:n.id,segments:n.segments,params:n.params,beforeLeave:n.beforeLeave,beforeEnter:n.beforeEnter}],0!==n.children.length)for(const e of n.children)L(t,o,e);else o.push(t)},N=class{constructor(n){t(this,n),this.ionRouteWillChange=o(this,"ionRouteWillChange",7),this.ionRouteDidChange=o(this,"ionRouteDidChange",7),this.previousPath=null,this.busy=!1,this.state=0,this.lastState=0,this.root="/",this.useHash=!0}async componentWillLoad(){await(y(document.body)?Promise.resolve():new Promise((t=>{window.addEventListener("ionNavWillLoad",(()=>t()),{once:!0})})));const t=await this.runGuards(this.getSegments());if(!0!==t){if("object"==typeof t){const{redirect:o}=t,n=g(o);this.setSegments(n.segments,p,n.queryString),await this.writeNavStateRoot(n.segments,p)}}else await this.onRoutesChanged()}componentDidLoad(){window.addEventListener("ionRouteRedirectChanged",c(this.onRedirectChanged.bind(this),10)),window.addEventListener("ionRouteDataChanged",c(this.onRoutesChanged.bind(this),100))}async onPopState(){const t=this.historyDirection();let o=this.getSegments();const n=await this.runGuards(o);if(!0!==n){if("object"!=typeof n)return!1;o=g(n.redirect).segments}return this.writeNavStateRoot(o,t)}onBackButton(t){t.detail.register(0,(t=>{this.back(),t()}))}async canTransition(){const t=await this.runGuards();return!0===t||"object"==typeof t&&t.redirect}async push(t,o="forward",n){var e;if(t.startsWith(".")){const o=null!==(e=this.previousPath)&&void 0!==e?e:"/",n=new URL(t,`https://host/${o}`);t=n.pathname+n.search}let r=g(t);const i=await this.runGuards(r.segments);if(!0!==i){if("object"!=typeof i)return!1;r=g(i.redirect)}return this.setSegments(r.segments,o,r.queryString),this.writeNavStateRoot(r.segments,o,n)}back(){return window.history.back(),Promise.resolve(this.waitPromise)}async printDebug(){(t=>{console.group(`[ion-core] ROUTES[${t.length}]`);for(const o of t){const t=[];o.forEach((o=>t.push(...o.segments)));const n=o.map((t=>t.id));console.debug(`%c ${m(t)}`,"font-weight: bold; padding-left: 20px","=>\t",`(${n.join(", ")})`)}console.groupEnd()})(P(this.el)),(t=>{console.group(`[ion-core] REDIRECTS[${t.length}]`);for(const o of t)o.to&&console.debug("FROM: ",`$c ${m(o.from)}`,"font-weight: bold"," TO: ",`$c ${m(o.to.segments)}`,"font-weight: bold");console.groupEnd()})(O(this.el))}async navChanged(t){if(this.busy)return e("[ion-router] - Router is busy, navChanged was cancelled."),!1;const{ids:o,outlet:n}=await(async()=>{const t=[];let o,n=window.document.body;for(;o=y(n);){const e=await o.getRouteId();if(!e)break;n=e.element,e.element=void 0,t.push(e)}return{ids:t,outlet:o}})(),r=((t,o)=>{let n=null,e=0;for(const r of o){const o=C(t,r);o>e&&(n=r,e=o)}return n?n.map(((o,n)=>{var e;return{id:o.id,segments:o.segments,params:k(o.params,null===(e=t[n])||void 0===e?void 0:e.params)}})):null})(o,P(this.el));if(!r)return e("[ion-router] - No matching URL for",o.map((t=>t.id))),!1;const i=(t=>{const o=[];for(const n of t)for(const t of n.segments)if(":"===t[0]){const e=n.params&&n.params[t.slice(1)];if(!e)return null;o.push(e)}else""!==t&&o.push(t);return o})(r);return i?(this.setSegments(i,t),await this.safeWriteNavState(n,r,p,i,null,o.length),!0):(e("[ion-router] - Router could not match path because some required param is missing."),!1)}onRedirectChanged(){const t=this.getSegments();t&&R(t,O(this.el))&&this.writeNavStateRoot(t,p)}onRoutesChanged(){return this.writeNavStateRoot(this.getSegments(),p)}historyDirection(){var t;const o=window;null===o.history.state&&(this.state++,o.history.replaceState(this.state,o.document.title,null===(t=o.document.location)||void 0===t?void 0:t.href));const n=o.history.state,e=this.lastState;return this.lastState=n,n>e||n>=e&&e>0?w:n<e?"back":p}async writeNavStateRoot(t,o,e){if(!t)return n("[ion-router] - URL is not part of the routing set."),!1;const r=O(this.el),i=R(t,r);let s=null;if(i){const{segments:n,queryString:e}=i.to;this.setSegments(n,o,e),s=i.from,t=n}const a=P(this.el),c=D(t,a);return c?this.safeWriteNavState(document.body,c,o,t,s,0,e):(n("[ion-router] - The path does not match any route."),!1)}async safeWriteNavState(t,o,e,r,i,s=0,a){const c=await this.lock();let h=!1;try{h=await this.writeNavState(t,o,e,r,i,s,a)}catch(t){n("[ion-router] - Exception in safeWriteNavState:",t)}return c(),h}async lock(){const t=this.waitPromise;let o;return this.waitPromise=new Promise((t=>o=t)),void 0!==t&&await t,o}async runGuards(t=this.getSegments(),o){if(void 0===o&&(o=g(this.previousPath).segments),!t||!o)return!0;const n=P(this.el),e=D(o,n),r=e&&e[e.length-1].beforeLeave,i=!r||await r();if(!1===i||"object"==typeof i)return i;const s=D(t,n),a=s&&s[s.length-1].beforeEnter;return!a||a()}async writeNavState(t,o,n,r,i,s=0,a){if(this.busy)return e("[ion-router] - Router is busy, transition was cancelled."),!1;this.busy=!0;const c=this.routeChangeEvent(r,i);c&&this.ionRouteWillChange.emit(c);const h=await b(t,o,n,s,!1,a);return this.busy=!1,c&&this.ionRouteDidChange.emit(c),h}setSegments(t,o,n){this.state++,((t,o,n,e,r,i,s)=>{const a=((t,o,n)=>{let e=m(t);return o&&(e="#"+e),void 0!==n&&(e+="?"+n),e})([...g(o).segments,...e],n,s);r===w?t.pushState(i,"",a):t.replaceState(i,"",a)})(window.history,this.root,this.useHash,t,o,this.state,n)}getSegments(){return((t,o,n)=>{const e=g(this.root).segments,r=n?t.hash.slice(1):t.pathname;return((t,o)=>{if(t.length>o.length)return null;if(t.length<=1&&""===t[0])return o;for(let n=0;n<t.length;n++)if(t[n]!==o[n])return null;return o.length===t.length?[""]:o.slice(t.length)})(e,g(r).segments)})(window.location,0,this.useHash)}routeChangeEvent(t,o){const n=this.previousPath,e=m(t);return this.previousPath=e,e===n?null:{from:n,redirectedFrom:o?m(o):null,to:e}}get el(){return r(this)}},T=class{constructor(o){t(this,o),this.routerDirection="forward",this.onClick=t=>{h(this.href,t,this.routerDirection,this.routerAnimation)}}render(){const t=l(this),o={href:this.href,rel:this.rel,target:this.target};return i(s,{key:"518b86cf40eb95e03f75a20ff44fff804ac8ec4d",onClick:this.onClick,class:u(this.color,{[t]:!0,"ion-activatable":!0})},i("a",Object.assign({key:"dbf3cc12752b4fa2d3873723a8ea5a30b053d261"},o),i("slot",{key:"9614e46a8d35201937f1f9a39b88f71b78efa7a0"})))}};T.style=":host{--background:transparent;--color:var(--ion-color-primary, #0054e9);background:var(--background);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}a{color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;white-space:inherit}";export{f as ion_route,d as ion_route_redirect,N as ion_router,T as ion_router_link}
4
+ import{r as t,c as o,j as n,f as e,g as r,h as i,d as s}from"./p-gD7P82jx.js";import{c as a,p as c}from"./p-hPTD29t1.js";import{o as h,c as u}from"./p-DaJxRxSQ.js";import{c as l}from"./p-CsyYiC5f.js";import"./p-vXpMhGrs.js";const f=class{constructor(n){t(this,n),this.ionRouteDataChanged=o(this,"ionRouteDataChanged",7),this.url=""}onUpdate(t){this.ionRouteDataChanged.emit(t)}onComponentProps(t,o){if(t===o)return;const n=t?Object.keys(t):[],e=o?Object.keys(o):[];if(n.length===e.length){for(const e of n)if(t[e]!==o[e])return void this.onUpdate(t)}else this.onUpdate(t)}connectedCallback(){this.ionRouteDataChanged.emit()}static get watchers(){return{url:["onUpdate"],component:["onUpdate"],componentProps:["onComponentProps"]}}},d=class{constructor(n){t(this,n),this.ionRouteRedirectChanged=o(this,"ionRouteRedirectChanged",7)}propDidChange(){this.ionRouteRedirectChanged.emit()}connectedCallback(){this.ionRouteRedirectChanged.emit()}static get watchers(){return{from:["propDidChange"],to:["propDidChange"]}}},p="root",w="forward",m=t=>"/"+t.filter((t=>t.length>0)).join("/"),g=t=>{let o,n=[""];if(null!=t){const e=t.indexOf("?");e>-1&&(o=t.substring(e+1),t=t.substring(0,e)),n=t.split("/").map((t=>t.trim())).filter((t=>t.length>0)),0===n.length&&(n=[""])}return{segments:n,queryString:o}},b=async(t,o,e,r,i=!1,s)=>{try{const n=y(t);if(r>=o.length||!n)return i;await new Promise((t=>a(n,t)));const c=o[r],h=await n.setRouteId(c.id,c.params,e,s);return h.changed&&(e=p,i=!0),i=await b(h.element,o,e,r+1,i,s),h.markVisible&&await h.markVisible(),i}catch(t){return n("[ion-router] - Exception in writeNavState:",t),!1}},v=":not([no-router]) ion-nav, :not([no-router]) ion-tabs, :not([no-router]) ion-router-outlet",y=t=>{if(!t)return;if(t.matches(v))return t;const o=t.querySelector(v);return null!=o?o:void 0},R=(t,o)=>o.find((o=>((t,o)=>{const{from:n,to:e}=o;if(void 0===e)return!1;if(n.length>t.length)return!1;for(let o=0;o<n.length;o++){const e=n[o];if("*"===e)return!0;if(e!==t[o])return!1}return n.length===t.length})(t,o))),C=(t,o)=>{const n=Math.min(t.length,o.length);let e=0;for(let r=0;r<n;r++){const n=t[r],i=o[r];if(n.id.toLowerCase()!==i.id)break;if(n.params){const t=Object.keys(n.params);if(t.length===i.segments.length){const o=t.map((t=>`:${t}`));for(let t=0;t<o.length&&o[t].toLowerCase()===i.segments[t];t++)e++}}e++}return e},j=(t,o)=>{const n=new E(t);let e,r=!1;for(let t=0;t<o.length;t++){const i=o[t].segments;if(""===i[0])r=!0;else{for(const o of i){const r=n.next();if(":"===o[0]){if(""===r)return null;e=e||[],(e[t]||(e[t]={}))[o.slice(1)]=r}else if(r!==o)return null}r=!1}}return r&&r!==(""===n.next())?null:e?o.map(((t,o)=>({id:t.id,segments:t.segments,params:k(t.params,e[o]),beforeEnter:t.beforeEnter,beforeLeave:t.beforeLeave}))):o},k=(t,o)=>t||o?Object.assign(Object.assign({},t),o):void 0,D=(t,o)=>{let n=null,e=0;for(const r of o){const o=j(t,r);if(null!==o){const t=x(o);t>e&&(e=t,n=o)}}return n},x=t=>{let o=1,n=1;for(const e of t)for(const t of e.segments)":"===t[0]?o+=Math.pow(1,n):""!==t&&(o+=Math.pow(2,n)),n++;return o};class E{constructor(t){this.segments=t.slice()}next(){return this.segments.length>0?this.segments.shift():""}}const O=(t,o)=>o in t?t[o]:t.hasAttribute(o)?t.getAttribute(o):null,S=t=>Array.from(t.children).filter((t=>"ION-ROUTE-REDIRECT"===t.tagName)).map((t=>{const o=O(t,"to");return{from:g(O(t,"from")).segments,to:null==o?void 0:g(o)}})),P=t=>L($(t)),$=t=>Array.from(t.children).filter((t=>"ION-ROUTE"===t.tagName&&t.component)).map((t=>{const o=O(t,"component");return{segments:g(O(t,"url")).segments,id:o.toLowerCase(),params:t.componentProps,beforeLeave:t.beforeLeave,beforeEnter:t.beforeEnter,children:$(t)}})),L=t=>{const o=[];for(const n of t)N([],o,n);return o},N=(t,o,n)=>{if(t=[...t,{id:n.id,segments:n.segments,params:n.params,beforeLeave:n.beforeLeave,beforeEnter:n.beforeEnter}],0!==n.children.length)for(const e of n.children)N(t,o,e);else o.push(t)},T=class{constructor(n){t(this,n),this.ionRouteWillChange=o(this,"ionRouteWillChange",7),this.ionRouteDidChange=o(this,"ionRouteDidChange",7),this.previousPath=null,this.busy=!1,this.state=0,this.lastState=0,this.root="/",this.useHash=!0}async componentWillLoad(){await(y(document.body)?Promise.resolve():new Promise((t=>{window.addEventListener("ionNavWillLoad",(()=>t()),{once:!0})})));const t=await this.runGuards(this.getSegments());if(!0!==t){if("object"==typeof t){const{redirect:o}=t,n=g(o);this.setSegments(n.segments,p,n.queryString),await this.writeNavStateRoot(n.segments,p)}}else await this.onRoutesChanged()}componentDidLoad(){window.addEventListener("ionRouteRedirectChanged",c(this.onRedirectChanged.bind(this),10)),window.addEventListener("ionRouteDataChanged",c(this.onRoutesChanged.bind(this),100))}async onPopState(){const t=this.historyDirection();let o=this.getSegments();const n=await this.runGuards(o);if(!0!==n){if("object"!=typeof n)return!1;o=g(n.redirect).segments}return this.writeNavStateRoot(o,t)}onBackButton(t){t.detail.register(0,(t=>{this.back(),t()}))}async canTransition(){const t=await this.runGuards();return!0===t||"object"==typeof t&&t.redirect}async push(t,o="forward",n){var e;if(t.startsWith(".")){const o=null!==(e=this.previousPath)&&void 0!==e?e:"/",n=new URL(t,`https://host/${o}`);t=n.pathname+n.search}let r=g(t);const i=await this.runGuards(r.segments);if(!0!==i){if("object"!=typeof i)return!1;r=g(i.redirect)}return this.setSegments(r.segments,o,r.queryString),this.writeNavStateRoot(r.segments,o,n)}back(){return window.history.back(),Promise.resolve(this.waitPromise)}async printDebug(){(t=>{console.group(`[ion-core] ROUTES[${t.length}]`);for(const o of t){const t=[];o.forEach((o=>t.push(...o.segments)));const n=o.map((t=>t.id));console.debug(`%c ${m(t)}`,"font-weight: bold; padding-left: 20px","=>\t",`(${n.join(", ")})`)}console.groupEnd()})(P(this.el)),(t=>{console.group(`[ion-core] REDIRECTS[${t.length}]`);for(const o of t)o.to&&console.debug("FROM: ",`$c ${m(o.from)}`,"font-weight: bold"," TO: ",`$c ${m(o.to.segments)}`,"font-weight: bold");console.groupEnd()})(S(this.el))}async navChanged(t){if(this.busy)return e("[ion-router] - Router is busy, navChanged was cancelled."),!1;const{ids:o,outlet:n}=await(async()=>{const t=[];let o,n=window.document.body;for(;o=y(n);){const e=await o.getRouteId();if(!e)break;n=e.element,e.element=void 0,t.push(e)}return{ids:t,outlet:o}})(),r=((t,o)=>{let n=null,e=0;for(const r of o){const o=C(t,r);o>e&&(n=r,e=o)}return n?n.map(((o,n)=>{var e;return{id:o.id,segments:o.segments,params:k(o.params,null===(e=t[n])||void 0===e?void 0:e.params)}})):null})(o,P(this.el));if(!r)return e("[ion-router] - No matching URL for",o.map((t=>t.id))),!1;const i=(t=>{const o=[];for(const n of t)for(const t of n.segments)if(":"===t[0]){const e=n.params&&n.params[t.slice(1)];if(!e)return null;o.push(e)}else""!==t&&o.push(t);return o})(r);return i?(this.setSegments(i,t),await this.safeWriteNavState(n,r,p,i,null,o.length),!0):(e("[ion-router] - Router could not match path because some required param is missing."),!1)}onRedirectChanged(){const t=this.getSegments();t&&R(t,S(this.el))&&this.writeNavStateRoot(t,p)}onRoutesChanged(){return this.writeNavStateRoot(this.getSegments(),p)}historyDirection(){var t;const o=window;null===o.history.state&&(this.state++,o.history.replaceState(this.state,o.document.title,null===(t=o.document.location)||void 0===t?void 0:t.href));const n=o.history.state,e=this.lastState;return this.lastState=n,n>e||n>=e&&e>0?w:n<e?"back":p}async writeNavStateRoot(t,o,e){if(!t)return n("[ion-router] - URL is not part of the routing set."),!1;const r=S(this.el),i=R(t,r);let s=null;if(i){const{segments:n,queryString:e}=i.to;this.setSegments(n,o,e),s=i.from,t=n}const a=P(this.el),c=D(t,a);return c?this.safeWriteNavState(document.body,c,o,t,s,0,e):(n("[ion-router] - The path does not match any route."),!1)}async safeWriteNavState(t,o,e,r,i,s=0,a){const c=await this.lock();let h=!1;try{h=await this.writeNavState(t,o,e,r,i,s,a)}catch(t){n("[ion-router] - Exception in safeWriteNavState:",t)}return c(),h}async lock(){const t=this.waitPromise;let o;return this.waitPromise=new Promise((t=>o=t)),void 0!==t&&await t,o}async runGuards(t=this.getSegments(),o){if(void 0===o&&(o=g(this.previousPath).segments),!t||!o)return!0;const n=P(this.el),e=D(o,n),r=e&&e[e.length-1].beforeLeave,i=!r||await r();if(!1===i||"object"==typeof i)return i;const s=D(t,n),a=s&&s[s.length-1].beforeEnter;return!a||a()}async writeNavState(t,o,n,r,i,s=0,a){if(this.busy)return e("[ion-router] - Router is busy, transition was cancelled."),!1;this.busy=!0;const c=this.routeChangeEvent(r,i);c&&this.ionRouteWillChange.emit(c);const h=await b(t,o,n,s,!1,a);return this.busy=!1,c&&this.ionRouteDidChange.emit(c),h}setSegments(t,o,n){this.state++,((t,o,n,e,r,i,s)=>{const a=((t,o,n)=>{let e=m(t);return o&&(e="#"+e),void 0!==n&&(e+="?"+n),e})([...g(o).segments,...e],n,s);r===w?t.pushState(i,"",a):t.replaceState(i,"",a)})(window.history,this.root,this.useHash,t,o,this.state,n)}getSegments(){return((t,o,n)=>{const e=g(this.root).segments,r=n?t.hash.slice(1):t.pathname;return((t,o)=>{if(t.length>o.length)return null;if(t.length<=1&&""===t[0])return o;for(let n=0;n<t.length;n++)if(t[n]!==o[n])return null;return o.length===t.length?[""]:o.slice(t.length)})(e,g(r).segments)})(window.location,0,this.useHash)}routeChangeEvent(t,o){const n=this.previousPath,e=m(t);return this.previousPath=e,e===n?null:{from:n,redirectedFrom:o?m(o):null,to:e}}get el(){return r(this)}},U=class{constructor(o){t(this,o),this.routerDirection="forward",this.onClick=t=>{h(this.href,t,this.routerDirection,this.routerAnimation)}}render(){const t=l(this),o={href:this.href,rel:this.rel,target:this.target};return i(s,{key:"518b86cf40eb95e03f75a20ff44fff804ac8ec4d",onClick:this.onClick,class:u(this.color,{[t]:!0,"ion-activatable":!0})},i("a",Object.assign({key:"dbf3cc12752b4fa2d3873723a8ea5a30b053d261"},o),i("slot",{key:"9614e46a8d35201937f1f9a39b88f71b78efa7a0"})))}};U.style=":host{--background:transparent;--color:var(--ion-color-primary, #0054e9);background:var(--background);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}a{color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;white-space:inherit}";export{f as ion_route,d as ion_route_redirect,T as ion_router,U as ion_router_link}