@sparkle-learning/core 0.0.36 → 0.0.37

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 (245) hide show
  1. package/dist/cjs/PrivateRoute-4abc9d29.js +35 -0
  2. package/dist/cjs/{PrivateRoute-074c584e.js → auth.service-4b584cd7.js} +0 -30
  3. package/dist/cjs/dom-utils-b8befdd5.js +63 -0
  4. package/dist/cjs/header-mobile-collapse.cjs.entry.js +90 -0
  5. package/dist/cjs/index-70e63f5b.js +3071 -0
  6. package/dist/cjs/index.cjs.js +6 -5
  7. package/dist/cjs/injectHistory-7206bbb9.js +9 -0
  8. package/dist/cjs/ion-avatar.cjs.entry.js +25 -0
  9. package/dist/cjs/ion-button.cjs.entry.js +129 -0
  10. package/dist/cjs/ion-card_2.cjs.entry.js +91 -0
  11. package/dist/cjs/ion-checkbox_4.cjs.entry.js +360 -0
  12. package/dist/cjs/ion-col_3.cjs.entry.js +159 -0
  13. package/dist/cjs/ion-icon_13.cjs.entry.js +1505 -0
  14. package/dist/cjs/ion-input_2.cjs.entry.js +313 -0
  15. package/dist/cjs/ion-label_2.cjs.entry.js +126 -0
  16. package/dist/cjs/ion-spinner.cjs.entry.js +64 -0
  17. package/dist/cjs/loader.cjs.js +1 -1
  18. package/dist/cjs/match-path-84c9f7ca.js +511 -0
  19. package/dist/cjs/sparkle-card_3.cjs.entry.js +91 -0
  20. package/dist/cjs/sparkle-core.cjs.js +1 -1
  21. package/dist/cjs/sparkle-course-root.cjs.entry.js +146 -0
  22. package/dist/cjs/sparkle-dropdown.cjs.entry.js +61 -0
  23. package/dist/cjs/{header-mobile-collapse_61.cjs.entry.js → sparkle-export-lessons_6.cjs.entry.js} +8864 -17750
  24. package/dist/cjs/sparkle-facilitator-header_19.cjs.entry.js +2130 -0
  25. package/dist/cjs/sparkle-feedback.cjs.entry.js +2 -1
  26. package/dist/cjs/sparkle-goal-progress.cjs.entry.js +19 -0
  27. package/dist/cjs/sparkle-gww-item.cjs.entry.js +74 -0
  28. package/dist/cjs/sparkle-menu-toggle_3.cjs.entry.js +236 -0
  29. package/dist/cjs/sparkle-validation-error.cjs.entry.js +21 -0
  30. package/dist/cjs/stencil-router-redirect.cjs.entry.js +32 -0
  31. package/dist/cjs/student.service-d48f1c99.js +61 -0
  32. package/dist/cjs/user.store-8a049c4e.js +21 -0
  33. package/dist/collection/components/sparkle-quiz/sparkle-quiz/sparkle-quiz.js +2 -1
  34. package/dist/esm/PrivateRoute-7b526801.js +33 -0
  35. package/dist/esm/{animation-12377cb3.js → animation-e0716b39.js} +1 -1
  36. package/dist/esm/{PrivateRoute-c5441f35.js → auth.service-9fb86455.js} +4 -33
  37. package/dist/esm/{auth.store-dba2c2da.js → auth.store-633e8414.js} +1 -1
  38. package/dist/esm/dom-utils-109a7d75.js +55 -0
  39. package/dist/esm/{facilitator.service-b0292f7f.js → facilitator.service-8fd435bf.js} +2 -2
  40. package/dist/esm/{feed.service-8fbe4ce3.js → feed.service-ace049e5.js} +3 -3
  41. package/dist/esm/{framework-delegate-3e634a5c.js → framework-delegate-e4f8013b.js} +1 -1
  42. package/dist/esm/header-mobile-collapse.entry.js +86 -0
  43. package/dist/esm/{helpers-bf0e23d6.js → helpers-03073fe4.js} +1 -1
  44. package/dist/esm/{httpService-7b75b095.js → httpService-61864992.js} +2 -2
  45. package/dist/esm/{icons-9b62a1ec.js → icons-90b957ab.js} +1 -1
  46. package/dist/esm/{index-5e8971ae.js → index-37004831.js} +1 -1
  47. package/dist/esm/{index-45fec1e7.js → index-a2d2941d.js} +1 -1
  48. package/dist/esm/{index-2b84cad2.js → index-b4b4e503.js} +3 -3
  49. package/dist/esm/{index-cded2d87.js → index-dedabca0.js} +2 -2
  50. package/dist/esm/index-f9b9ba5d.js +3067 -0
  51. package/dist/esm/{index.es-e0c0f891.js → index.es-283fbd2e.js} +1 -1
  52. package/dist/esm/index.js +6 -5
  53. package/dist/esm/injectHistory-968f626d.js +7 -0
  54. package/dist/esm/{input-shims-671d8d9f.js → input-shims-cc3720a0.js} +2 -2
  55. package/dist/esm/ion-accordion.entry.js +1 -1
  56. package/dist/esm/ion-action-sheet_4.entry.js +5 -5
  57. package/dist/esm/ion-app.entry.js +3 -3
  58. package/dist/esm/ion-avatar.entry.js +21 -0
  59. package/dist/esm/ion-back-button.entry.js +1 -1
  60. package/dist/esm/ion-breadcrumb.entry.js +1 -1
  61. package/dist/esm/ion-button.entry.js +125 -0
  62. package/dist/esm/ion-card_2.entry.js +86 -0
  63. package/dist/esm/ion-checkbox_4.entry.js +353 -0
  64. package/dist/esm/ion-col_3.entry.js +153 -0
  65. package/dist/esm/ion-content_2.entry.js +2 -2
  66. package/dist/esm/ion-datetime-button.entry.js +1 -1
  67. package/dist/esm/ion-datetime.entry.js +1 -1
  68. package/dist/esm/ion-fab-button.entry.js +1 -1
  69. package/dist/esm/ion-footer.entry.js +2 -2
  70. package/dist/esm/ion-icon_13.entry.js +1489 -0
  71. package/dist/esm/ion-img.entry.js +1 -1
  72. package/dist/esm/ion-infinite-scroll.entry.js +2 -2
  73. package/dist/esm/ion-input_2.entry.js +308 -0
  74. package/dist/esm/ion-item-options.entry.js +1 -1
  75. package/dist/esm/ion-item-sliding.entry.js +2 -2
  76. package/dist/esm/ion-label_2.entry.js +121 -0
  77. package/dist/esm/ion-loading.entry.js +3 -3
  78. package/dist/esm/ion-menu-button.entry.js +4 -4
  79. package/dist/esm/ion-menu-toggle.entry.js +4 -4
  80. package/dist/esm/ion-menu.entry.js +4 -4
  81. package/dist/esm/ion-modal.entry.js +6 -6
  82. package/dist/esm/ion-nav.entry.js +4 -4
  83. package/dist/esm/ion-picker-column-internal_2.entry.js +1 -1
  84. package/dist/esm/ion-picker-column.entry.js +1 -1
  85. package/dist/esm/ion-picker.entry.js +3 -3
  86. package/dist/esm/ion-progress-bar.entry.js +1 -1
  87. package/dist/esm/ion-refresher.entry.js +3 -3
  88. package/dist/esm/ion-reorder-group.entry.js +2 -2
  89. package/dist/esm/ion-router-outlet.entry.js +4 -4
  90. package/dist/esm/ion-router.entry.js +1 -1
  91. package/dist/esm/ion-searchbar.entry.js +1 -1
  92. package/dist/esm/ion-segment-button.entry.js +1 -1
  93. package/dist/esm/ion-segment.entry.js +1 -1
  94. package/dist/esm/ion-select_2.entry.js +2 -2
  95. package/dist/esm/ion-slides.entry.js +1 -1
  96. package/dist/esm/ion-spinner.entry.js +60 -0
  97. package/dist/esm/ion-tab.entry.js +2 -2
  98. package/dist/esm/ion-textarea.entry.js +1 -1
  99. package/dist/esm/ion-toast.entry.js +3 -3
  100. package/dist/esm/ion-toggle.entry.js +1 -1
  101. package/dist/esm/ion-virtual-scroll.entry.js +1 -1
  102. package/dist/esm/{ios.transition-131d64fe.js → ios.transition-3a6179bb.js} +3 -3
  103. package/dist/esm/loader.js +1 -1
  104. package/dist/esm/match-path-36fdf5c7.js +499 -0
  105. package/dist/esm/{md.transition-f6126011.js → md.transition-cff16bf3.js} +3 -3
  106. package/dist/esm/{menu-toggle-util-bace8ae6.js → menu-toggle-util-59241733.js} +1 -1
  107. package/dist/esm/{overlays-3b4dca92.js → overlays-bdd9344a.js} +2 -2
  108. package/dist/esm/{purify-85bfcc69.js → purify-7085b248.js} +1 -1
  109. package/dist/esm/sparkle-animation-player.entry.js +1 -1
  110. package/dist/esm/sparkle-card_3.entry.js +85 -0
  111. package/dist/esm/sparkle-code.entry.js +1 -1
  112. package/dist/esm/sparkle-core.js +1 -1
  113. package/dist/esm/sparkle-course-root.entry.js +142 -0
  114. package/dist/esm/sparkle-dropdown.entry.js +57 -0
  115. package/dist/esm/{header-mobile-collapse_61.entry.js → sparkle-export-lessons_6.entry.js} +8859 -17690
  116. package/dist/esm/sparkle-facilitator-header_19.entry.js +2108 -0
  117. package/dist/esm/sparkle-facilitator-notes-form.entry.js +5 -5
  118. package/dist/esm/sparkle-feed-post.entry.js +1 -1
  119. package/dist/esm/sparkle-feedback.entry.js +6 -5
  120. package/dist/esm/sparkle-goal-form.entry.js +6 -6
  121. package/dist/esm/sparkle-goal-progress.entry.js +15 -0
  122. package/dist/esm/sparkle-gww-item.entry.js +70 -0
  123. package/dist/esm/sparkle-menu-collapsible.entry.js +1 -1
  124. package/dist/esm/sparkle-menu-toggle_3.entry.js +230 -0
  125. package/dist/esm/sparkle-validation-error.entry.js +17 -0
  126. package/dist/esm/{status-tap-dde52787.js → status-tap-463d0f87.js} +2 -2
  127. package/dist/esm/stencil-router-redirect.entry.js +28 -0
  128. package/dist/esm/{student.service-0746418b.js → student.service-e6eb1f99.js} +3 -19
  129. package/dist/esm/{swipe-back-7847a0c1.js → swipe-back-f8765ac9.js} +1 -1
  130. package/dist/esm/user.store-b8645067.js +19 -0
  131. package/dist/esm/{util-6ef753e9.js → util-a831d09d.js} +1 -1
  132. package/dist/sparkle-core/index.esm.js +1 -1
  133. package/dist/sparkle-core/{p-2c1ca854.entry.js → p-014b5707.entry.js} +1 -1
  134. package/dist/sparkle-core/p-03585916.js +1 -0
  135. package/dist/sparkle-core/{p-cabfbf22.entry.js → p-0bb0cf41.entry.js} +1 -1
  136. package/dist/sparkle-core/{p-30b810d1.entry.js → p-0c0f8acd.entry.js} +1 -1
  137. package/dist/sparkle-core/{p-de4deb61.entry.js → p-0ea2518d.entry.js} +1 -1
  138. package/dist/sparkle-core/p-1019ebc3.js +1 -0
  139. package/dist/sparkle-core/p-1728ead7.js +1 -0
  140. package/dist/sparkle-core/{p-d68092b7.js → p-17eb4633.js} +1 -1
  141. package/dist/sparkle-core/{p-e686d8b5.entry.js → p-1f0b3ff9.entry.js} +1 -1
  142. package/dist/sparkle-core/{p-a102341e.entry.js → p-25e556cc.entry.js} +1 -1
  143. package/dist/sparkle-core/{p-0c3f3ea6.entry.js → p-285ab4ed.entry.js} +1 -1
  144. package/dist/sparkle-core/{p-c60b29bd.entry.js → p-2d4a5ddf.entry.js} +2 -2
  145. package/dist/sparkle-core/{p-641bfc92.entry.js → p-2e035338.entry.js} +1 -1
  146. package/dist/sparkle-core/{p-2ff67662.js → p-2e2b813c.js} +2 -2
  147. package/dist/sparkle-core/{p-6ffd2420.entry.js → p-2f10208d.entry.js} +1 -1
  148. package/dist/sparkle-core/{p-b5f3e1bf.entry.js → p-2fba9a3a.entry.js} +1 -1
  149. package/dist/sparkle-core/{p-b3f375fb.entry.js → p-317037de.entry.js} +1 -1
  150. package/dist/sparkle-core/p-32762a44.entry.js +1 -0
  151. package/dist/sparkle-core/{p-2f569553.js → p-340754ed.js} +1 -1
  152. package/dist/sparkle-core/p-3bc68dd0.js +1 -0
  153. package/dist/sparkle-core/p-3c133235.entry.js +1 -0
  154. package/dist/sparkle-core/{p-48f72e63.js → p-3f85e1ca.js} +2 -2
  155. package/dist/sparkle-core/{p-2033cd86.js → p-405f7c58.js} +2 -2
  156. package/dist/sparkle-core/{p-9ebf0537.entry.js → p-4320dac0.entry.js} +1 -1
  157. package/dist/sparkle-core/{p-e863bf1d.entry.js → p-44f813b7.entry.js} +1 -1
  158. package/dist/sparkle-core/p-46869031.entry.js +1 -0
  159. package/dist/sparkle-core/p-4a5f2b2b.js +1 -0
  160. package/dist/sparkle-core/{p-894ff7e6.entry.js → p-4ae75caa.entry.js} +1 -1
  161. package/dist/sparkle-core/{p-935e7cfc.js → p-4bd4dab2.js} +1 -1
  162. package/dist/sparkle-core/{p-00d10dc9.js → p-539bf742.js} +2 -2
  163. package/dist/sparkle-core/p-53bcbd1d.js +1 -0
  164. package/dist/sparkle-core/p-54ada5e3.entry.js +1 -0
  165. package/dist/sparkle-core/{p-9289cdbc.entry.js → p-5519d283.entry.js} +1 -1
  166. package/dist/sparkle-core/p-554da5b8.entry.js +1 -0
  167. package/dist/sparkle-core/{p-e8073714.js → p-56a2e8a2.js} +1 -1
  168. package/dist/sparkle-core/p-5da2d95a.entry.js +1 -0
  169. package/dist/sparkle-core/{p-b0603d19.js → p-5fc26938.js} +1 -1
  170. package/dist/sparkle-core/{p-ebd4354b.entry.js → p-63f69cdc.entry.js} +1 -1
  171. package/dist/sparkle-core/{p-11356b03.entry.js → p-64e814b9.entry.js} +1 -1
  172. package/dist/sparkle-core/{p-ce4b22f7.entry.js → p-66a85393.entry.js} +1 -1
  173. package/dist/sparkle-core/p-6b05a1d3.entry.js +1 -0
  174. package/dist/sparkle-core/p-6c894fa2.entry.js +1 -0
  175. package/dist/sparkle-core/p-6ea246fe.js +4 -0
  176. package/dist/sparkle-core/p-6ed0236e.entry.js +1 -0
  177. package/dist/sparkle-core/{p-54dd894f.entry.js → p-6f0545b3.entry.js} +1 -1
  178. package/dist/sparkle-core/{p-0f1c5899.entry.js → p-727e1c28.entry.js} +1 -1
  179. package/dist/sparkle-core/{p-b96f3c84.entry.js → p-82ad4e7c.entry.js} +2 -2
  180. package/dist/sparkle-core/p-91accfc1.js +1 -0
  181. package/dist/sparkle-core/{p-af3cc111.entry.js → p-93e74f1b.entry.js} +1 -1
  182. package/dist/sparkle-core/{p-86ed13f0.js → p-a019ad0c.js} +1 -1
  183. package/dist/sparkle-core/p-a5c5da9a.entry.js +1 -0
  184. package/dist/sparkle-core/{p-1d4c7c11.js → p-a85598ad.js} +1 -1
  185. package/dist/sparkle-core/p-a8a77bec.entry.js +1 -0
  186. package/dist/sparkle-core/{p-bd80ff43.js → p-ad102371.js} +1 -1
  187. package/dist/sparkle-core/{p-377b04c2.entry.js → p-b236d258.entry.js} +1 -1
  188. package/dist/sparkle-core/{p-9abbd715.entry.js → p-b4b01fa2.entry.js} +1 -1
  189. package/dist/sparkle-core/{p-6faa194c.entry.js → p-b4bc8b02.entry.js} +1 -1
  190. package/dist/sparkle-core/{p-0fa3fd63.entry.js → p-b5ec8fb0.entry.js} +1 -1
  191. package/dist/sparkle-core/{p-fb757951.entry.js → p-b83444c7.entry.js} +1 -1
  192. package/dist/sparkle-core/{p-05c032dd.js → p-b9933822.js} +1 -1
  193. package/dist/sparkle-core/{p-0afa3a4d.entry.js → p-b9b1d4da.entry.js} +1 -1
  194. package/dist/sparkle-core/{p-3de0e00c.js → p-be28346b.js} +1 -1
  195. package/dist/sparkle-core/{p-0ad5c123.entry.js → p-c278db5f.entry.js} +1 -1
  196. package/dist/sparkle-core/{p-fb0ca75e.entry.js → p-c2bbaf55.entry.js} +1 -1
  197. package/dist/sparkle-core/p-c4af184b.entry.js +1 -0
  198. package/dist/sparkle-core/p-c71cbbf7.entry.js +1 -0
  199. package/dist/sparkle-core/p-c8c73fa7.js +4 -0
  200. package/dist/sparkle-core/{p-1e125ca5.entry.js → p-c8fe45df.entry.js} +1 -1
  201. package/dist/sparkle-core/{p-600cf6a3.js → p-c9cd4ff1.js} +1 -1
  202. package/dist/sparkle-core/{p-5cad23f1.js → p-ca4c8a10.js} +1 -1
  203. package/dist/sparkle-core/{p-1e4f65ee.entry.js → p-cab3da3c.entry.js} +1 -1
  204. package/dist/sparkle-core/p-cd832fbf.entry.js +1 -0
  205. package/dist/sparkle-core/{p-564e64fc.entry.js → p-ce94efdb.entry.js} +1 -1
  206. package/dist/sparkle-core/p-d0ac5f17.js +1 -0
  207. package/dist/sparkle-core/p-d1fcbfc2.js +4 -0
  208. package/dist/sparkle-core/p-d432d3ac.entry.js +1 -0
  209. package/dist/sparkle-core/{p-fbccd30c.js → p-d81a0680.js} +1 -1
  210. package/dist/sparkle-core/p-d969f7d0.entry.js +348 -0
  211. package/dist/sparkle-core/{p-0664370b.entry.js → p-dabc80c4.entry.js} +1 -1
  212. package/dist/sparkle-core/{p-58e4bbe5.entry.js → p-db8387eb.entry.js} +1 -1
  213. package/dist/sparkle-core/p-dca90a55.entry.js +4 -0
  214. package/dist/sparkle-core/p-dd2e7f84.js +4 -0
  215. package/dist/sparkle-core/p-e0429a19.entry.js +1 -0
  216. package/dist/sparkle-core/{p-24cb9a33.entry.js → p-e65c72cc.entry.js} +1 -1
  217. package/dist/sparkle-core/p-e7066c64.entry.js +1 -0
  218. package/dist/sparkle-core/{p-9d894ed4.js → p-e7568d4b.js} +1 -1
  219. package/dist/sparkle-core/p-eb40a191.entry.js +1 -0
  220. package/dist/sparkle-core/p-ecdea569.entry.js +1 -0
  221. package/dist/sparkle-core/{p-74864276.entry.js → p-ed9f48c4.entry.js} +1 -1
  222. package/dist/sparkle-core/p-ef6c2352.entry.js +1 -0
  223. package/dist/sparkle-core/{p-be64105c.entry.js → p-f0cf4a8f.entry.js} +1 -1
  224. package/dist/sparkle-core/{p-c0533c23.entry.js → p-f4b0b6a4.entry.js} +1 -1
  225. package/dist/sparkle-core/{p-ef4edc48.entry.js → p-fc965b88.entry.js} +1 -1
  226. package/dist/sparkle-core/{p-590266d6.entry.js → p-fd430a82.entry.js} +1 -1
  227. package/dist/sparkle-core/{p-39712c56.entry.js → p-fde382f0.entry.js} +1 -1
  228. package/dist/sparkle-core/sparkle-core.esm.js +1 -1
  229. package/package.json +1 -1
  230. package/dist/cjs/sparkle-quiz-feedback_5.cjs.entry.js +0 -117
  231. package/dist/cjs/sparkle-quiz.cjs.entry.js +0 -119
  232. package/dist/cjs/student.service-2e58f237.js +0 -78
  233. package/dist/esm/sparkle-quiz-feedback_5.entry.js +0 -109
  234. package/dist/esm/sparkle-quiz.entry.js +0 -115
  235. package/dist/sparkle-core/p-077c732b.js +0 -4
  236. package/dist/sparkle-core/p-12dd96d7.js +0 -4
  237. package/dist/sparkle-core/p-23aca7ca.js +0 -4
  238. package/dist/sparkle-core/p-3a965828.entry.js +0 -1
  239. package/dist/sparkle-core/p-462bffba.js +0 -1
  240. package/dist/sparkle-core/p-5efc6566.js +0 -1
  241. package/dist/sparkle-core/p-73721c84.js +0 -4
  242. package/dist/sparkle-core/p-80d6b0e6.entry.js +0 -1
  243. package/dist/sparkle-core/p-8492a765.entry.js +0 -1
  244. package/dist/sparkle-core/p-c3cadfc6.entry.js +0 -1
  245. package/dist/sparkle-core/p-eaf76d1d.entry.js +0 -352
@@ -1 +1 @@
1
- import{r as t,f as o,h as n,H as e,e as i}from"./p-ee1e0eb4.js";import{g as r}from"./p-871106e0.js";import{a,r as s}from"./p-d68092b7.js";import{h as c}from"./p-0e4de1d0.js";let d=0;const l=class{constructor(n){t(this,n),this.segmentEl=null,this.checked=!1,this.disabled=!1,this.layout="icon-top",this.type="button",this.value="ion-sb-"+d++,this.updateStyle=()=>{o(this)},this.updateState=()=>{this.segmentEl&&(this.checked=this.segmentEl.value===this.value)}}connectedCallback(){const t=this.segmentEl=this.el.closest("ion-segment");t&&(this.updateState(),a(t,"ionSelect",this.updateState),a(t,"ionStyle",this.updateStyle))}disconnectedCallback(){const t=this.segmentEl;t&&(s(t,"ionSelect",this.updateState),s(t,"ionStyle",this.updateStyle),this.segmentEl=null)}get hasLabel(){return!!this.el.querySelector("ion-label")}get hasIcon(){return!!this.el.querySelector("ion-icon")}get tabIndex(){return this.checked&&!this.disabled?0:-1}render(){const{checked:t,type:o,disabled:i,hasIcon:a,hasLabel:s,layout:d,segmentEl:l,tabIndex:g}=this,b=r(this);return n(e,{role:"tab","aria-selected":t?"true":"false","aria-disabled":i?"true":null,tabIndex:g,class:{[b]:!0,"in-toolbar":c("ion-toolbar",this.el),"in-toolbar-color":c("ion-toolbar[color]",this.el),"in-segment":c("ion-segment",this.el),"in-segment-color":void 0!==(null==l?void 0:l.color),"segment-button-has-label":s,"segment-button-has-icon":a,"segment-button-has-label-only":s&&!a,"segment-button-has-icon-only":a&&!s,"segment-button-disabled":i,"segment-button-checked":t,[`segment-button-layout-${d}`]:!0,"ion-activatable":!0,"ion-activatable-instant":!0,"ion-focusable":!0}},n("button",{type:o,tabIndex:-1,class:"button-native",part:"native",disabled:i},n("span",{class:"button-inner"},n("slot",null)),"md"===b&&n("ion-ripple-effect",null)),n("div",{part:"indicator",class:{"segment-button-indicator":!0,"segment-button-indicator-animated":!0}},n("div",{part:"indicator-background",class:"segment-button-indicator-background"})))}get el(){return i(this)}};l.style={ios:':host{--color:initial;--color-hover:var(--color);--color-checked:var(--color);--color-disabled:var(--color);--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;border-radius:var(--border-radius);display:flex;position:relative;flex:1 1 auto;flex-direction:column;height:auto;background:var(--background);color:var(--color);text-decoration:none;text-overflow:ellipsis;white-space:nowrap;font-kerning:none;cursor:pointer}.button-native{border-radius:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;margin-left:var(--margin-start);margin-right:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);transform:translate3d(0, 0, 0);display:flex;position:relative;flex-direction:inherit;flex-grow:1;align-items:center;justify-content:center;width:100%;min-width:inherit;max-width:inherit;height:auto;min-height:inherit;max-height:inherit;transition:var(--transition);border:none;outline:none;background:transparent;contain:content;pointer-events:none;overflow:hidden;z-index:2}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.button-native{margin-left:unset;margin-right:unset;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end)}}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:flex;position:relative;flex-flow:inherit;align-items:center;justify-content:center;width:100%;height:100%;z-index:1}:host(.segment-button-checked){background:var(--background-checked);color:var(--color-checked)}:host(.segment-button-disabled){cursor:default;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(:focus){outline:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.segment-button-checked:hover) .button-native{color:var(--color-checked)}}::slotted(ion-icon){flex-shrink:0;order:-1;pointer-events:none}::slotted(ion-label){display:block;align-self:center;line-height:22px;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box;pointer-events:none}:host(.segment-button-layout-icon-top) .button-native{flex-direction:column}:host(.segment-button-layout-icon-start) .button-native{flex-direction:row}:host(.segment-button-layout-icon-end) .button-native{flex-direction:row-reverse}:host(.segment-button-layout-icon-bottom) .button-native{flex-direction:column-reverse}:host(.segment-button-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.segment-button-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color, var(--color-checked))}.segment-button-indicator{transform-origin:left;position:absolute;opacity:0;box-sizing:border-box;will-change:transform, opacity;pointer-events:none}.segment-button-indicator-background{width:100%;height:var(--indicator-height);transform:var(--indicator-transform);box-shadow:var(--indicator-box-shadow);pointer-events:none}.segment-button-indicator-animated{transition:var(--indicator-transition)}:host(.segment-button-checked) .segment-button-indicator{opacity:1}@media (prefers-reduced-motion: reduce){.segment-button-indicator-background{transform:none}.segment-button-indicator-animated{transition:none}}:host{--background:none;--background-checked:none;--background-hover:none;--background-hover-opacity:0;--background-focused:none;--background-focused-opacity:0;--border-radius:7px;--border-width:1px;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.12);--border-style:solid;--indicator-box-shadow:0 0 5px rgba(0, 0, 0, 0.16);--indicator-color:var(--ion-color-step-350, var(--ion-background-color, #fff));--indicator-height:100%;--indicator-transition:transform 260ms cubic-bezier(0.4, 0, 0.2, 1);--indicator-transform:none;--transition:100ms all linear;--padding-top:0;--padding-end:13px;--padding-bottom:0;--padding-start:13px;margin-top:2px;margin-bottom:2px;position:relative;flex-basis:0;flex-direction:row;min-width:70px;min-height:28px;transform:translate3d(0, 0, 0);font-size:13px;font-weight:450;line-height:37px}:host::before{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:5px;transition:160ms opacity ease-in-out;transition-delay:100ms;border-left:var(--border-width) var(--border-style) var(--border-color);content:"";opacity:1;will-change:opacity}:host(:first-of-type)::before{border-left-color:transparent}:host(.segment-button-disabled){opacity:0.3}::slotted(ion-icon){font-size:24px}:host(.segment-button-layout-icon-start) ::slotted(ion-label){margin-left:2px;margin-right:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.segment-button-layout-icon-start) ::slotted(ion-label){margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:0;margin-inline-end:0}}:host(.segment-button-layout-icon-end) ::slotted(ion-label){margin-left:0;margin-right:2px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.segment-button-layout-icon-end) ::slotted(ion-label){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:2px;margin-inline-end:2px}}.segment-button-indicator{padding-left:2px;padding-right:2px;left:0;right:0;top:0;bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.segment-button-indicator{padding-left:unset;padding-right:unset;-webkit-padding-start:2px;padding-inline-start:2px;-webkit-padding-end:2px;padding-inline-end:2px}}.segment-button-indicator-background{border-radius:var(--border-radius);background:var(--indicator-color)}.segment-button-indicator-background{transition:var(--indicator-transition)}:host(.segment-button-checked)::before,:host(.segment-button-after-checked)::before{opacity:0}:host(.segment-button-checked){z-index:-1}:host(.segment-button-activated){--indicator-transform:scale(0.95)}:host(.ion-focused) .button-native{opacity:0.7}@media (any-hover: hover){:host(:hover) .button-native{opacity:0.5}:host(.segment-button-checked:hover) .button-native{opacity:1}}:host(.in-segment-color){background:none;color:var(--ion-text-color, #000)}:host(.in-segment-color) .segment-button-indicator-background{background:var(--ion-color-step-350, var(--ion-background-color, #fff))}@media (any-hover: hover){:host(.in-segment-color:hover) .button-native,:host(.in-segment-color.segment-button-checked:hover) .button-native{color:var(--ion-text-color, #000)}}:host(.in-toolbar:not(.in-segment-color)){--background-checked:var(--ion-toolbar-segment-background-checked, none);--color:var(--ion-toolbar-segment-color, var(--ion-toolbar-color), initial);--color-checked:var(--ion-toolbar-segment-color-checked, var(--ion-toolbar-color), initial);--indicator-color:var(--ion-toolbar-segment-indicator-color, var(--ion-color-step-350, var(--ion-background-color, #fff)))}:host(.in-toolbar-color) .segment-button-indicator-background{background:#fff}:host(.in-toolbar-color:not(.in-segment-color)) .button-native{color:var(--ion-color-contrast)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color)) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.in-toolbar-color:not(.in-segment-color):hover) .button-native{color:var(--ion-color-contrast)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color):hover) .button-native{color:var(--ion-color-base)}}',md:':host{--color:initial;--color-hover:var(--color);--color-checked:var(--color);--color-disabled:var(--color);--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;border-radius:var(--border-radius);display:flex;position:relative;flex:1 1 auto;flex-direction:column;height:auto;background:var(--background);color:var(--color);text-decoration:none;text-overflow:ellipsis;white-space:nowrap;font-kerning:none;cursor:pointer}.button-native{border-radius:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;margin-left:var(--margin-start);margin-right:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);transform:translate3d(0, 0, 0);display:flex;position:relative;flex-direction:inherit;flex-grow:1;align-items:center;justify-content:center;width:100%;min-width:inherit;max-width:inherit;height:auto;min-height:inherit;max-height:inherit;transition:var(--transition);border:none;outline:none;background:transparent;contain:content;pointer-events:none;overflow:hidden;z-index:2}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.button-native{margin-left:unset;margin-right:unset;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end)}}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:flex;position:relative;flex-flow:inherit;align-items:center;justify-content:center;width:100%;height:100%;z-index:1}:host(.segment-button-checked){background:var(--background-checked);color:var(--color-checked)}:host(.segment-button-disabled){cursor:default;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(:focus){outline:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.segment-button-checked:hover) .button-native{color:var(--color-checked)}}::slotted(ion-icon){flex-shrink:0;order:-1;pointer-events:none}::slotted(ion-label){display:block;align-self:center;line-height:22px;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box;pointer-events:none}:host(.segment-button-layout-icon-top) .button-native{flex-direction:column}:host(.segment-button-layout-icon-start) .button-native{flex-direction:row}:host(.segment-button-layout-icon-end) .button-native{flex-direction:row-reverse}:host(.segment-button-layout-icon-bottom) .button-native{flex-direction:column-reverse}:host(.segment-button-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.segment-button-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color, var(--color-checked))}.segment-button-indicator{transform-origin:left;position:absolute;opacity:0;box-sizing:border-box;will-change:transform, opacity;pointer-events:none}.segment-button-indicator-background{width:100%;height:var(--indicator-height);transform:var(--indicator-transform);box-shadow:var(--indicator-box-shadow);pointer-events:none}.segment-button-indicator-animated{transition:var(--indicator-transition)}:host(.segment-button-checked) .segment-button-indicator{opacity:1}@media (prefers-reduced-motion: reduce){.segment-button-indicator-background{transform:none}.segment-button-indicator-animated{transition:none}}:host{--background:none;--background-checked:none;--background-hover:var(--color-checked);--background-focused:var(--color-checked);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04;--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6);--color-checked:var(--ion-color-primary, #3880ff);--indicator-box-shadow:none;--indicator-color:var(--color-checked);--indicator-height:2px;--indicator-transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1);--indicator-transform:none;--padding-top:0;--padding-end:16px;--padding-bottom:0;--padding-start:16px;--transition:color 0.15s linear 0s, opacity 0.15s linear 0s;min-width:90px;max-width:360px;min-height:48px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);font-size:14px;font-weight:500;letter-spacing:0.06em;line-height:40px;text-transform:uppercase}:host(.segment-button-disabled){opacity:0.3}:host(.in-segment-color){background:none;color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6)}:host(.in-segment-color) ion-ripple-effect{color:var(--ion-color-base)}:host(.in-segment-color) .segment-button-indicator-background{background:var(--ion-color-base)}:host(.in-segment-color.segment-button-checked) .button-native{color:var(--ion-color-base)}:host(.in-segment-color.ion-focused) .button-native::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.in-segment-color:hover) .button-native{color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6)}:host(.in-segment-color:hover) .button-native::after{background:var(--ion-color-base)}:host(.in-segment-color.segment-button-checked:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-segment-color)){--background:var(--ion-toolbar-segment-background, none);--background-checked:var(--ion-toolbar-segment-background-checked, none);--color:var(--ion-toolbar-segment-color, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6));--color-checked:var(--ion-toolbar-segment-color-checked, var(--ion-color-primary, #3880ff));--indicator-color:var(--ion-toolbar-segment-color-checked, var(--color-checked))}:host(.in-toolbar-color:not(.in-segment-color)) .button-native{color:rgba(var(--ion-color-contrast-rgb), 0.6)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color)) .button-native{color:var(--ion-color-contrast)}@media (any-hover: hover){:host(.in-toolbar-color:not(.in-segment-color)) .button-native::after{background:var(--ion-color-contrast)}}::slotted(ion-icon){margin-top:12px;margin-bottom:12px;font-size:24px}::slotted(ion-label){margin-top:12px;margin-bottom:12px}:host(.segment-button-layout-icon-top) ::slotted(ion-label),:host(.segment-button-layout-icon-bottom) ::slotted(ion-icon){margin-top:0}:host(.segment-button-layout-icon-top) ::slotted(ion-icon),:host(.segment-button-layout-icon-bottom) ::slotted(ion-label){margin-bottom:0}:host(.segment-button-layout-icon-start) ::slotted(ion-label){margin-left:8px;margin-right:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.segment-button-layout-icon-start) ::slotted(ion-label){margin-left:unset;margin-right:unset;-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:0;margin-inline-end:0}}:host(.segment-button-layout-icon-end) ::slotted(ion-label){margin-left:0;margin-right:8px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.segment-button-layout-icon-end) ::slotted(ion-label){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px}}:host(.segment-button-has-icon-only) ::slotted(ion-icon){margin-top:12px;margin-bottom:12px}:host(.segment-button-has-label-only) ::slotted(ion-label){margin-top:12px;margin-bottom:12px}.segment-button-indicator{left:0;right:0;bottom:0}.segment-button-indicator-background{background:var(--indicator-color)}:host(.in-toolbar:not(.in-segment-color)) .segment-button-indicator-background{background:var(--ion-toolbar-segment-indicator-color, var(--indicator-color))}:host(.in-toolbar-color:not(.in-segment-color)) .segment-button-indicator-background{background:var(--ion-color-contrast)}'};export{l as ion_segment_button}
1
+ import{r as t,f as o,h as n,H as e,e as i}from"./p-ee1e0eb4.js";import{g as r}from"./p-871106e0.js";import{a,r as s}from"./p-17eb4633.js";import{h as c}from"./p-0e4de1d0.js";let d=0;const l=class{constructor(n){t(this,n),this.segmentEl=null,this.checked=!1,this.disabled=!1,this.layout="icon-top",this.type="button",this.value="ion-sb-"+d++,this.updateStyle=()=>{o(this)},this.updateState=()=>{this.segmentEl&&(this.checked=this.segmentEl.value===this.value)}}connectedCallback(){const t=this.segmentEl=this.el.closest("ion-segment");t&&(this.updateState(),a(t,"ionSelect",this.updateState),a(t,"ionStyle",this.updateStyle))}disconnectedCallback(){const t=this.segmentEl;t&&(s(t,"ionSelect",this.updateState),s(t,"ionStyle",this.updateStyle),this.segmentEl=null)}get hasLabel(){return!!this.el.querySelector("ion-label")}get hasIcon(){return!!this.el.querySelector("ion-icon")}get tabIndex(){return this.checked&&!this.disabled?0:-1}render(){const{checked:t,type:o,disabled:i,hasIcon:a,hasLabel:s,layout:d,segmentEl:l,tabIndex:g}=this,b=r(this);return n(e,{role:"tab","aria-selected":t?"true":"false","aria-disabled":i?"true":null,tabIndex:g,class:{[b]:!0,"in-toolbar":c("ion-toolbar",this.el),"in-toolbar-color":c("ion-toolbar[color]",this.el),"in-segment":c("ion-segment",this.el),"in-segment-color":void 0!==(null==l?void 0:l.color),"segment-button-has-label":s,"segment-button-has-icon":a,"segment-button-has-label-only":s&&!a,"segment-button-has-icon-only":a&&!s,"segment-button-disabled":i,"segment-button-checked":t,[`segment-button-layout-${d}`]:!0,"ion-activatable":!0,"ion-activatable-instant":!0,"ion-focusable":!0}},n("button",{type:o,tabIndex:-1,class:"button-native",part:"native",disabled:i},n("span",{class:"button-inner"},n("slot",null)),"md"===b&&n("ion-ripple-effect",null)),n("div",{part:"indicator",class:{"segment-button-indicator":!0,"segment-button-indicator-animated":!0}},n("div",{part:"indicator-background",class:"segment-button-indicator-background"})))}get el(){return i(this)}};l.style={ios:':host{--color:initial;--color-hover:var(--color);--color-checked:var(--color);--color-disabled:var(--color);--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;border-radius:var(--border-radius);display:flex;position:relative;flex:1 1 auto;flex-direction:column;height:auto;background:var(--background);color:var(--color);text-decoration:none;text-overflow:ellipsis;white-space:nowrap;font-kerning:none;cursor:pointer}.button-native{border-radius:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;margin-left:var(--margin-start);margin-right:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);transform:translate3d(0, 0, 0);display:flex;position:relative;flex-direction:inherit;flex-grow:1;align-items:center;justify-content:center;width:100%;min-width:inherit;max-width:inherit;height:auto;min-height:inherit;max-height:inherit;transition:var(--transition);border:none;outline:none;background:transparent;contain:content;pointer-events:none;overflow:hidden;z-index:2}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.button-native{margin-left:unset;margin-right:unset;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end)}}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:flex;position:relative;flex-flow:inherit;align-items:center;justify-content:center;width:100%;height:100%;z-index:1}:host(.segment-button-checked){background:var(--background-checked);color:var(--color-checked)}:host(.segment-button-disabled){cursor:default;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(:focus){outline:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.segment-button-checked:hover) .button-native{color:var(--color-checked)}}::slotted(ion-icon){flex-shrink:0;order:-1;pointer-events:none}::slotted(ion-label){display:block;align-self:center;line-height:22px;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box;pointer-events:none}:host(.segment-button-layout-icon-top) .button-native{flex-direction:column}:host(.segment-button-layout-icon-start) .button-native{flex-direction:row}:host(.segment-button-layout-icon-end) .button-native{flex-direction:row-reverse}:host(.segment-button-layout-icon-bottom) .button-native{flex-direction:column-reverse}:host(.segment-button-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.segment-button-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color, var(--color-checked))}.segment-button-indicator{transform-origin:left;position:absolute;opacity:0;box-sizing:border-box;will-change:transform, opacity;pointer-events:none}.segment-button-indicator-background{width:100%;height:var(--indicator-height);transform:var(--indicator-transform);box-shadow:var(--indicator-box-shadow);pointer-events:none}.segment-button-indicator-animated{transition:var(--indicator-transition)}:host(.segment-button-checked) .segment-button-indicator{opacity:1}@media (prefers-reduced-motion: reduce){.segment-button-indicator-background{transform:none}.segment-button-indicator-animated{transition:none}}:host{--background:none;--background-checked:none;--background-hover:none;--background-hover-opacity:0;--background-focused:none;--background-focused-opacity:0;--border-radius:7px;--border-width:1px;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.12);--border-style:solid;--indicator-box-shadow:0 0 5px rgba(0, 0, 0, 0.16);--indicator-color:var(--ion-color-step-350, var(--ion-background-color, #fff));--indicator-height:100%;--indicator-transition:transform 260ms cubic-bezier(0.4, 0, 0.2, 1);--indicator-transform:none;--transition:100ms all linear;--padding-top:0;--padding-end:13px;--padding-bottom:0;--padding-start:13px;margin-top:2px;margin-bottom:2px;position:relative;flex-basis:0;flex-direction:row;min-width:70px;min-height:28px;transform:translate3d(0, 0, 0);font-size:13px;font-weight:450;line-height:37px}:host::before{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:5px;transition:160ms opacity ease-in-out;transition-delay:100ms;border-left:var(--border-width) var(--border-style) var(--border-color);content:"";opacity:1;will-change:opacity}:host(:first-of-type)::before{border-left-color:transparent}:host(.segment-button-disabled){opacity:0.3}::slotted(ion-icon){font-size:24px}:host(.segment-button-layout-icon-start) ::slotted(ion-label){margin-left:2px;margin-right:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.segment-button-layout-icon-start) ::slotted(ion-label){margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:0;margin-inline-end:0}}:host(.segment-button-layout-icon-end) ::slotted(ion-label){margin-left:0;margin-right:2px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.segment-button-layout-icon-end) ::slotted(ion-label){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:2px;margin-inline-end:2px}}.segment-button-indicator{padding-left:2px;padding-right:2px;left:0;right:0;top:0;bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.segment-button-indicator{padding-left:unset;padding-right:unset;-webkit-padding-start:2px;padding-inline-start:2px;-webkit-padding-end:2px;padding-inline-end:2px}}.segment-button-indicator-background{border-radius:var(--border-radius);background:var(--indicator-color)}.segment-button-indicator-background{transition:var(--indicator-transition)}:host(.segment-button-checked)::before,:host(.segment-button-after-checked)::before{opacity:0}:host(.segment-button-checked){z-index:-1}:host(.segment-button-activated){--indicator-transform:scale(0.95)}:host(.ion-focused) .button-native{opacity:0.7}@media (any-hover: hover){:host(:hover) .button-native{opacity:0.5}:host(.segment-button-checked:hover) .button-native{opacity:1}}:host(.in-segment-color){background:none;color:var(--ion-text-color, #000)}:host(.in-segment-color) .segment-button-indicator-background{background:var(--ion-color-step-350, var(--ion-background-color, #fff))}@media (any-hover: hover){:host(.in-segment-color:hover) .button-native,:host(.in-segment-color.segment-button-checked:hover) .button-native{color:var(--ion-text-color, #000)}}:host(.in-toolbar:not(.in-segment-color)){--background-checked:var(--ion-toolbar-segment-background-checked, none);--color:var(--ion-toolbar-segment-color, var(--ion-toolbar-color), initial);--color-checked:var(--ion-toolbar-segment-color-checked, var(--ion-toolbar-color), initial);--indicator-color:var(--ion-toolbar-segment-indicator-color, var(--ion-color-step-350, var(--ion-background-color, #fff)))}:host(.in-toolbar-color) .segment-button-indicator-background{background:#fff}:host(.in-toolbar-color:not(.in-segment-color)) .button-native{color:var(--ion-color-contrast)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color)) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.in-toolbar-color:not(.in-segment-color):hover) .button-native{color:var(--ion-color-contrast)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color):hover) .button-native{color:var(--ion-color-base)}}',md:':host{--color:initial;--color-hover:var(--color);--color-checked:var(--color);--color-disabled:var(--color);--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;border-radius:var(--border-radius);display:flex;position:relative;flex:1 1 auto;flex-direction:column;height:auto;background:var(--background);color:var(--color);text-decoration:none;text-overflow:ellipsis;white-space:nowrap;font-kerning:none;cursor:pointer}.button-native{border-radius:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;margin-left:var(--margin-start);margin-right:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);transform:translate3d(0, 0, 0);display:flex;position:relative;flex-direction:inherit;flex-grow:1;align-items:center;justify-content:center;width:100%;min-width:inherit;max-width:inherit;height:auto;min-height:inherit;max-height:inherit;transition:var(--transition);border:none;outline:none;background:transparent;contain:content;pointer-events:none;overflow:hidden;z-index:2}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.button-native{margin-left:unset;margin-right:unset;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end)}}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:flex;position:relative;flex-flow:inherit;align-items:center;justify-content:center;width:100%;height:100%;z-index:1}:host(.segment-button-checked){background:var(--background-checked);color:var(--color-checked)}:host(.segment-button-disabled){cursor:default;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(:focus){outline:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.segment-button-checked:hover) .button-native{color:var(--color-checked)}}::slotted(ion-icon){flex-shrink:0;order:-1;pointer-events:none}::slotted(ion-label){display:block;align-self:center;line-height:22px;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box;pointer-events:none}:host(.segment-button-layout-icon-top) .button-native{flex-direction:column}:host(.segment-button-layout-icon-start) .button-native{flex-direction:row}:host(.segment-button-layout-icon-end) .button-native{flex-direction:row-reverse}:host(.segment-button-layout-icon-bottom) .button-native{flex-direction:column-reverse}:host(.segment-button-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.segment-button-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color, var(--color-checked))}.segment-button-indicator{transform-origin:left;position:absolute;opacity:0;box-sizing:border-box;will-change:transform, opacity;pointer-events:none}.segment-button-indicator-background{width:100%;height:var(--indicator-height);transform:var(--indicator-transform);box-shadow:var(--indicator-box-shadow);pointer-events:none}.segment-button-indicator-animated{transition:var(--indicator-transition)}:host(.segment-button-checked) .segment-button-indicator{opacity:1}@media (prefers-reduced-motion: reduce){.segment-button-indicator-background{transform:none}.segment-button-indicator-animated{transition:none}}:host{--background:none;--background-checked:none;--background-hover:var(--color-checked);--background-focused:var(--color-checked);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04;--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6);--color-checked:var(--ion-color-primary, #3880ff);--indicator-box-shadow:none;--indicator-color:var(--color-checked);--indicator-height:2px;--indicator-transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1);--indicator-transform:none;--padding-top:0;--padding-end:16px;--padding-bottom:0;--padding-start:16px;--transition:color 0.15s linear 0s, opacity 0.15s linear 0s;min-width:90px;max-width:360px;min-height:48px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);font-size:14px;font-weight:500;letter-spacing:0.06em;line-height:40px;text-transform:uppercase}:host(.segment-button-disabled){opacity:0.3}:host(.in-segment-color){background:none;color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6)}:host(.in-segment-color) ion-ripple-effect{color:var(--ion-color-base)}:host(.in-segment-color) .segment-button-indicator-background{background:var(--ion-color-base)}:host(.in-segment-color.segment-button-checked) .button-native{color:var(--ion-color-base)}:host(.in-segment-color.ion-focused) .button-native::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.in-segment-color:hover) .button-native{color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6)}:host(.in-segment-color:hover) .button-native::after{background:var(--ion-color-base)}:host(.in-segment-color.segment-button-checked:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-segment-color)){--background:var(--ion-toolbar-segment-background, none);--background-checked:var(--ion-toolbar-segment-background-checked, none);--color:var(--ion-toolbar-segment-color, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6));--color-checked:var(--ion-toolbar-segment-color-checked, var(--ion-color-primary, #3880ff));--indicator-color:var(--ion-toolbar-segment-color-checked, var(--color-checked))}:host(.in-toolbar-color:not(.in-segment-color)) .button-native{color:rgba(var(--ion-color-contrast-rgb), 0.6)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color)) .button-native{color:var(--ion-color-contrast)}@media (any-hover: hover){:host(.in-toolbar-color:not(.in-segment-color)) .button-native::after{background:var(--ion-color-contrast)}}::slotted(ion-icon){margin-top:12px;margin-bottom:12px;font-size:24px}::slotted(ion-label){margin-top:12px;margin-bottom:12px}:host(.segment-button-layout-icon-top) ::slotted(ion-label),:host(.segment-button-layout-icon-bottom) ::slotted(ion-icon){margin-top:0}:host(.segment-button-layout-icon-top) ::slotted(ion-icon),:host(.segment-button-layout-icon-bottom) ::slotted(ion-label){margin-bottom:0}:host(.segment-button-layout-icon-start) ::slotted(ion-label){margin-left:8px;margin-right:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.segment-button-layout-icon-start) ::slotted(ion-label){margin-left:unset;margin-right:unset;-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:0;margin-inline-end:0}}:host(.segment-button-layout-icon-end) ::slotted(ion-label){margin-left:0;margin-right:8px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.segment-button-layout-icon-end) ::slotted(ion-label){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px}}:host(.segment-button-has-icon-only) ::slotted(ion-icon){margin-top:12px;margin-bottom:12px}:host(.segment-button-has-label-only) ::slotted(ion-label){margin-top:12px;margin-bottom:12px}.segment-button-indicator{left:0;right:0;bottom:0}.segment-button-indicator-background{background:var(--indicator-color)}:host(.in-toolbar:not(.in-segment-color)) .segment-button-indicator-background{background:var(--ion-toolbar-segment-indicator-color, var(--indicator-color))}:host(.in-toolbar-color:not(.in-segment-color)) .segment-button-indicator-background{background:var(--ion-color-contrast)}'};export{l as ion_segment_button}
@@ -1 +1 @@
1
- import{r as t,i,h as e,H as s,e as n}from"./p-ee1e0eb4.js";import{g as r}from"./p-871106e0.js";import{m as o}from"./p-d68092b7.js";import{b as p,c as h,a}from"./p-604a7987.js";const c=class{constructor(e){t(this,e),this.ionPickerColChange=i(this,"ionPickerColChange",7),this.optHeight=0,this.rotateFactor=0,this.scaleFactor=1,this.velocity=0,this.y=0,this.noAnimate=!0}colChanged(){this.refresh()}async connectedCallback(){let t=0,i=.81;"ios"===r(this)&&(t=-.46,i=1),this.rotateFactor=t,this.scaleFactor=i,this.gesture=(await import("./p-e9431eeb.js")).createGesture({el:this.el,gestureName:"picker-swipe",gesturePriority:100,threshold:0,passive:!1,onStart:t=>this.onStart(t),onMove:t=>this.onMove(t),onEnd:t=>this.onEnd(t)}),this.gesture.enable(),this.tmrId=setTimeout((()=>{this.noAnimate=!1,this.refresh(!0)}),250)}componentDidLoad(){const t=this.optsEl;t&&(this.optHeight=t.firstElementChild?t.firstElementChild.clientHeight:0),this.refresh()}disconnectedCallback(){cancelAnimationFrame(this.rafId),clearTimeout(this.tmrId),this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}emitColChange(){this.ionPickerColChange.emit(this.col)}setSelected(t,i){const e=t>-1?-t*this.optHeight:0;this.velocity=0,cancelAnimationFrame(this.rafId),this.update(e,i,!0),this.emitColChange()}update(t,i,e){if(!this.optsEl)return;let s=0,n=0;const{col:r,rotateFactor:o}=this,h=r.selectedIndex=this.indexForY(-t),a=0===i?"":i+"ms",c=`scale(${this.scaleFactor})`,d=this.optsEl.children;for(let e=0;e<d.length;e++){const p=d[e],f=r.options[e],g=e*this.optHeight+t;let x="";if(0!==o){const t=g*o;Math.abs(t)<=90?(s=0,n=90,x=`rotateX(${t}deg) `):s=-9999}else n=0,s=g;const k=h===e;x+=`translate3d(0px,${s}px,${n}px) `,1===this.scaleFactor||k||(x+=c),this.noAnimate?(f.duration=0,p.style.transitionDuration=""):i!==f.duration&&(f.duration=i,p.style.transitionDuration=a),x!==f.transform&&(f.transform=x),p.style.transform=x,k!==f.selected&&(f.selected=k,k?p.classList.add(l):p.classList.remove(l))}this.col.prevSelected=h,e&&(this.y=t),this.lastIndex!==h&&(p(),this.lastIndex=h)}decelerate(){if(0!==this.velocity){this.velocity*=d,this.velocity=this.velocity>0?Math.max(this.velocity,1):Math.min(this.velocity,-1);let t=this.y+this.velocity;t>this.minY?(t=this.minY,this.velocity=0):t<this.maxY&&(t=this.maxY,this.velocity=0),this.update(t,0,!0),Math.round(t)%this.optHeight!=0||Math.abs(this.velocity)>1?this.rafId=requestAnimationFrame((()=>this.decelerate())):(this.velocity=0,this.emitColChange(),h())}else if(this.y%this.optHeight!=0){const t=Math.abs(this.y%this.optHeight);this.velocity=t>this.optHeight/2?1:-1,this.decelerate()}}indexForY(t){return Math.min(Math.max(Math.abs(Math.round(t/this.optHeight)),0),this.col.options.length-1)}onStart(t){t.event.cancelable&&t.event.preventDefault(),t.event.stopPropagation(),a(),cancelAnimationFrame(this.rafId);const i=this.col.options;let e=i.length-1,s=0;for(let t=0;t<i.length;t++)i[t].disabled||(e=Math.min(e,t),s=Math.max(s,t));this.minY=-e*this.optHeight,this.maxY=-s*this.optHeight}onMove(t){t.event.cancelable&&t.event.preventDefault(),t.event.stopPropagation();let i=this.y+t.deltaY;i>this.minY?(i=Math.pow(i,.8),this.bounceFrom=i):i<this.maxY?(i+=Math.pow(this.maxY-i,.9),this.bounceFrom=i):this.bounceFrom=0,this.update(i,0,!1)}onEnd(t){if(this.bounceFrom>0)return this.update(this.minY,100,!0),void this.emitColChange();if(this.bounceFrom<0)return this.update(this.maxY,100,!0),void this.emitColChange();if(this.velocity=o(-f,23*t.velocityY,f),0===this.velocity&&0===t.deltaY){const i=t.event.target.closest(".picker-opt");(null==i?void 0:i.hasAttribute("opt-index"))&&this.setSelected(parseInt(i.getAttribute("opt-index"),10),g)}else{if(this.y+=t.deltaY,Math.abs(t.velocityY)<.05){const i=t.deltaY>0,e=Math.abs(this.y)%this.optHeight/this.optHeight;i&&e>.5?this.velocity=-1*Math.abs(this.velocity):!i&&e<=.5&&(this.velocity=Math.abs(this.velocity))}this.decelerate()}}refresh(t){let i=this.col.options.length-1,e=0;const s=this.col.options;for(let t=0;t<s.length;t++)s[t].disabled||(i=Math.min(i,t),e=Math.max(e,t));if(0!==this.velocity)return;const n=o(i,this.col.selectedIndex||0,e);if(this.col.prevSelected!==n||t){const t=n*this.optHeight*-1;this.velocity=0,this.update(t,g,!0)}}render(){const t=this.col,i=r(this);return e(s,{class:{[i]:!0,"picker-col":!0,"picker-opts-left":"left"===this.col.align,"picker-opts-right":"right"===this.col.align},style:{"max-width":this.col.columnWidth}},t.prefix&&e("div",{class:"picker-prefix",style:{width:t.prefixWidth}},t.prefix),e("div",{class:"picker-opts",style:{maxWidth:t.optionsWidth},ref:t=>this.optsEl=t},t.options.map(((t,i)=>e("button",{type:"button",class:{"picker-opt":!0,"picker-opt-disabled":!!t.disabled},"opt-index":i},t.text)))),t.suffix&&e("div",{class:"picker-suffix",style:{width:t.suffixWidth}},t.suffix))}get el(){return n(this)}static get watchers(){return{col:["colChanged"]}}},l="picker-opt-selected",d=.97,f=90,g=150;c.style={ios:".picker-col{display:flex;position:relative;flex:1;justify-content:center;height:100%;box-sizing:content-box;contain:content}.picker-opts{position:relative;flex:1;max-width:100%}.picker-opt{left:0;top:0;display:block;position:absolute;width:100%;border:0;text-align:center;text-overflow:ellipsis;white-space:nowrap;contain:strict;overflow:hidden;will-change:transform}[dir=rtl] .picker-opt,:host-context([dir=rtl]) .picker-opt{left:unset;right:unset;right:0}.picker-opt.picker-opt-disabled{pointer-events:none}.picker-opt-disabled{opacity:0}.picker-opts-left{justify-content:flex-start}.picker-opts-right{justify-content:flex-end}.picker-opt:active,.picker-opt:focus{outline:none}.picker-prefix{position:relative;flex:1;text-align:end;white-space:nowrap}.picker-suffix{position:relative;flex:1;text-align:start;white-space:nowrap}.picker-col{padding-left:4px;padding-right:4px;padding-top:0;padding-bottom:0;transform-style:preserve-3d}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.picker-col{padding-left:unset;padding-right:unset;-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px}}.picker-prefix,.picker-suffix,.picker-opts{top:77px;transform-style:preserve-3d;color:inherit;font-size:20px;line-height:42px;pointer-events:none}.picker-opt{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;transform-origin:center center;height:46px;transform-style:preserve-3d;transition-timing-function:ease-out;background:transparent;color:inherit;font-size:20px;line-height:42px;backface-visibility:hidden;pointer-events:auto}[dir=rtl] .picker-opt,:host-context([dir=rtl]) .picker-opt{transform-origin:calc(100% - center) center}",md:".picker-col{display:flex;position:relative;flex:1;justify-content:center;height:100%;box-sizing:content-box;contain:content}.picker-opts{position:relative;flex:1;max-width:100%}.picker-opt{left:0;top:0;display:block;position:absolute;width:100%;border:0;text-align:center;text-overflow:ellipsis;white-space:nowrap;contain:strict;overflow:hidden;will-change:transform}[dir=rtl] .picker-opt,:host-context([dir=rtl]) .picker-opt{left:unset;right:unset;right:0}.picker-opt.picker-opt-disabled{pointer-events:none}.picker-opt-disabled{opacity:0}.picker-opts-left{justify-content:flex-start}.picker-opts-right{justify-content:flex-end}.picker-opt:active,.picker-opt:focus{outline:none}.picker-prefix{position:relative;flex:1;text-align:end;white-space:nowrap}.picker-suffix{position:relative;flex:1;text-align:start;white-space:nowrap}.picker-col{padding-left:8px;padding-right:8px;padding-top:0;padding-bottom:0;transform-style:preserve-3d}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.picker-col{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}.picker-prefix,.picker-suffix,.picker-opts{top:77px;transform-style:preserve-3d;color:inherit;font-size:22px;line-height:42px;pointer-events:none}.picker-opt{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;height:43px;transition-timing-function:ease-out;background:transparent;color:inherit;font-size:22px;line-height:42px;backface-visibility:hidden;pointer-events:auto}.picker-prefix,.picker-suffix,.picker-opt.picker-opt-selected{color:var(--ion-color-primary, #3880ff)}"};export{c as ion_picker_column}
1
+ import{r as t,i,h as e,H as s,e as n}from"./p-ee1e0eb4.js";import{g as r}from"./p-871106e0.js";import{d as o}from"./p-17eb4633.js";import{b as p,c as h,a}from"./p-604a7987.js";const c=class{constructor(e){t(this,e),this.ionPickerColChange=i(this,"ionPickerColChange",7),this.optHeight=0,this.rotateFactor=0,this.scaleFactor=1,this.velocity=0,this.y=0,this.noAnimate=!0}colChanged(){this.refresh()}async connectedCallback(){let t=0,i=.81;"ios"===r(this)&&(t=-.46,i=1),this.rotateFactor=t,this.scaleFactor=i,this.gesture=(await import("./p-e9431eeb.js")).createGesture({el:this.el,gestureName:"picker-swipe",gesturePriority:100,threshold:0,passive:!1,onStart:t=>this.onStart(t),onMove:t=>this.onMove(t),onEnd:t=>this.onEnd(t)}),this.gesture.enable(),this.tmrId=setTimeout((()=>{this.noAnimate=!1,this.refresh(!0)}),250)}componentDidLoad(){const t=this.optsEl;t&&(this.optHeight=t.firstElementChild?t.firstElementChild.clientHeight:0),this.refresh()}disconnectedCallback(){cancelAnimationFrame(this.rafId),clearTimeout(this.tmrId),this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}emitColChange(){this.ionPickerColChange.emit(this.col)}setSelected(t,i){const e=t>-1?-t*this.optHeight:0;this.velocity=0,cancelAnimationFrame(this.rafId),this.update(e,i,!0),this.emitColChange()}update(t,i,e){if(!this.optsEl)return;let s=0,n=0;const{col:r,rotateFactor:o}=this,h=r.selectedIndex=this.indexForY(-t),a=0===i?"":i+"ms",c=`scale(${this.scaleFactor})`,d=this.optsEl.children;for(let e=0;e<d.length;e++){const p=d[e],f=r.options[e],g=e*this.optHeight+t;let x="";if(0!==o){const t=g*o;Math.abs(t)<=90?(s=0,n=90,x=`rotateX(${t}deg) `):s=-9999}else n=0,s=g;const k=h===e;x+=`translate3d(0px,${s}px,${n}px) `,1===this.scaleFactor||k||(x+=c),this.noAnimate?(f.duration=0,p.style.transitionDuration=""):i!==f.duration&&(f.duration=i,p.style.transitionDuration=a),x!==f.transform&&(f.transform=x),p.style.transform=x,k!==f.selected&&(f.selected=k,k?p.classList.add(l):p.classList.remove(l))}this.col.prevSelected=h,e&&(this.y=t),this.lastIndex!==h&&(p(),this.lastIndex=h)}decelerate(){if(0!==this.velocity){this.velocity*=d,this.velocity=this.velocity>0?Math.max(this.velocity,1):Math.min(this.velocity,-1);let t=this.y+this.velocity;t>this.minY?(t=this.minY,this.velocity=0):t<this.maxY&&(t=this.maxY,this.velocity=0),this.update(t,0,!0),Math.round(t)%this.optHeight!=0||Math.abs(this.velocity)>1?this.rafId=requestAnimationFrame((()=>this.decelerate())):(this.velocity=0,this.emitColChange(),h())}else if(this.y%this.optHeight!=0){const t=Math.abs(this.y%this.optHeight);this.velocity=t>this.optHeight/2?1:-1,this.decelerate()}}indexForY(t){return Math.min(Math.max(Math.abs(Math.round(t/this.optHeight)),0),this.col.options.length-1)}onStart(t){t.event.cancelable&&t.event.preventDefault(),t.event.stopPropagation(),a(),cancelAnimationFrame(this.rafId);const i=this.col.options;let e=i.length-1,s=0;for(let t=0;t<i.length;t++)i[t].disabled||(e=Math.min(e,t),s=Math.max(s,t));this.minY=-e*this.optHeight,this.maxY=-s*this.optHeight}onMove(t){t.event.cancelable&&t.event.preventDefault(),t.event.stopPropagation();let i=this.y+t.deltaY;i>this.minY?(i=Math.pow(i,.8),this.bounceFrom=i):i<this.maxY?(i+=Math.pow(this.maxY-i,.9),this.bounceFrom=i):this.bounceFrom=0,this.update(i,0,!1)}onEnd(t){if(this.bounceFrom>0)return this.update(this.minY,100,!0),void this.emitColChange();if(this.bounceFrom<0)return this.update(this.maxY,100,!0),void this.emitColChange();if(this.velocity=o(-f,23*t.velocityY,f),0===this.velocity&&0===t.deltaY){const i=t.event.target.closest(".picker-opt");(null==i?void 0:i.hasAttribute("opt-index"))&&this.setSelected(parseInt(i.getAttribute("opt-index"),10),g)}else{if(this.y+=t.deltaY,Math.abs(t.velocityY)<.05){const i=t.deltaY>0,e=Math.abs(this.y)%this.optHeight/this.optHeight;i&&e>.5?this.velocity=-1*Math.abs(this.velocity):!i&&e<=.5&&(this.velocity=Math.abs(this.velocity))}this.decelerate()}}refresh(t){let i=this.col.options.length-1,e=0;const s=this.col.options;for(let t=0;t<s.length;t++)s[t].disabled||(i=Math.min(i,t),e=Math.max(e,t));if(0!==this.velocity)return;const n=o(i,this.col.selectedIndex||0,e);if(this.col.prevSelected!==n||t){const t=n*this.optHeight*-1;this.velocity=0,this.update(t,g,!0)}}render(){const t=this.col,i=r(this);return e(s,{class:{[i]:!0,"picker-col":!0,"picker-opts-left":"left"===this.col.align,"picker-opts-right":"right"===this.col.align},style:{"max-width":this.col.columnWidth}},t.prefix&&e("div",{class:"picker-prefix",style:{width:t.prefixWidth}},t.prefix),e("div",{class:"picker-opts",style:{maxWidth:t.optionsWidth},ref:t=>this.optsEl=t},t.options.map(((t,i)=>e("button",{type:"button",class:{"picker-opt":!0,"picker-opt-disabled":!!t.disabled},"opt-index":i},t.text)))),t.suffix&&e("div",{class:"picker-suffix",style:{width:t.suffixWidth}},t.suffix))}get el(){return n(this)}static get watchers(){return{col:["colChanged"]}}},l="picker-opt-selected",d=.97,f=90,g=150;c.style={ios:".picker-col{display:flex;position:relative;flex:1;justify-content:center;height:100%;box-sizing:content-box;contain:content}.picker-opts{position:relative;flex:1;max-width:100%}.picker-opt{left:0;top:0;display:block;position:absolute;width:100%;border:0;text-align:center;text-overflow:ellipsis;white-space:nowrap;contain:strict;overflow:hidden;will-change:transform}[dir=rtl] .picker-opt,:host-context([dir=rtl]) .picker-opt{left:unset;right:unset;right:0}.picker-opt.picker-opt-disabled{pointer-events:none}.picker-opt-disabled{opacity:0}.picker-opts-left{justify-content:flex-start}.picker-opts-right{justify-content:flex-end}.picker-opt:active,.picker-opt:focus{outline:none}.picker-prefix{position:relative;flex:1;text-align:end;white-space:nowrap}.picker-suffix{position:relative;flex:1;text-align:start;white-space:nowrap}.picker-col{padding-left:4px;padding-right:4px;padding-top:0;padding-bottom:0;transform-style:preserve-3d}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.picker-col{padding-left:unset;padding-right:unset;-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px}}.picker-prefix,.picker-suffix,.picker-opts{top:77px;transform-style:preserve-3d;color:inherit;font-size:20px;line-height:42px;pointer-events:none}.picker-opt{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;transform-origin:center center;height:46px;transform-style:preserve-3d;transition-timing-function:ease-out;background:transparent;color:inherit;font-size:20px;line-height:42px;backface-visibility:hidden;pointer-events:auto}[dir=rtl] .picker-opt,:host-context([dir=rtl]) .picker-opt{transform-origin:calc(100% - center) center}",md:".picker-col{display:flex;position:relative;flex:1;justify-content:center;height:100%;box-sizing:content-box;contain:content}.picker-opts{position:relative;flex:1;max-width:100%}.picker-opt{left:0;top:0;display:block;position:absolute;width:100%;border:0;text-align:center;text-overflow:ellipsis;white-space:nowrap;contain:strict;overflow:hidden;will-change:transform}[dir=rtl] .picker-opt,:host-context([dir=rtl]) .picker-opt{left:unset;right:unset;right:0}.picker-opt.picker-opt-disabled{pointer-events:none}.picker-opt-disabled{opacity:0}.picker-opts-left{justify-content:flex-start}.picker-opts-right{justify-content:flex-end}.picker-opt:active,.picker-opt:focus{outline:none}.picker-prefix{position:relative;flex:1;text-align:end;white-space:nowrap}.picker-suffix{position:relative;flex:1;text-align:start;white-space:nowrap}.picker-col{padding-left:8px;padding-right:8px;padding-top:0;padding-bottom:0;transform-style:preserve-3d}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.picker-col{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}.picker-prefix,.picker-suffix,.picker-opts{top:77px;transform-style:preserve-3d;color:inherit;font-size:22px;line-height:42px;pointer-events:none}.picker-opt{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;height:43px;transition-timing-function:ease-out;background:transparent;color:inherit;font-size:22px;line-height:42px;backface-visibility:hidden;pointer-events:auto}.picker-prefix,.picker-suffix,.picker-opt.picker-opt-selected{color:var(--ion-color-primary, #3880ff)}"};export{c as ion_picker_column}
@@ -0,0 +1 @@
1
+ import{r as i,i as t,h as r,H as o,e}from"./p-ee1e0eb4.js";import{g as n}from"./p-871106e0.js";import{h as a,j as s,a as d,r as l}from"./p-17eb4633.js";import{c,h}from"./p-0e4de1d0.js";const b=class{constructor(r){i(this,r),this.ionChange=t(this,"ionChange",7),this.ionFocus=t(this,"ionFocus",7),this.ionBlur=t(this,"ionBlur",7),this.ionStyle=t(this,"ionStyle",7),this.inputId="ion-cb-"+p++,this.name=this.inputId,this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.value="on",this.onClick=i=>{i.preventDefault(),this.setFocus(),this.checked=!this.checked,this.indeterminate=!1},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()}}componentWillLoad(){this.emitStyle()}checkedChanged(i){this.ionChange.emit({checked:i,value:this.value}),this.emitStyle()}disabledChanged(){this.emitStyle()}emitStyle(){this.ionStyle.emit({"checkbox-checked":this.checked,"interactive-disabled":this.disabled})}setFocus(){this.focusEl&&this.focusEl.focus()}render(){const{color:i,checked:t,disabled:e,el:d,indeterminate:l,inputId:b,name:p,value:g}=this,m=n(this),{label:u,labelId:k,labelText:x}=a(d,b);s(!0,d,p,t?g:"",e);let f=r("path",l?{d:"M6 12L18 12",part:"mark"}:{d:"M5.9,12.5l3.8,3.8l8.8-8.8",part:"mark"});return"md"===m&&(f=r("path",l?{d:"M2 12H22",part:"mark"}:{d:"M1.73,12.91 8.1,19.28 22.79,4.59",part:"mark"})),r(o,{onClick:this.onClick,"aria-labelledby":u?k:null,"aria-checked":`${t}`,"aria-hidden":e?"true":null,role:"checkbox",class:c(i,{[m]:!0,"in-item":h("ion-item",d),"checkbox-checked":t,"checkbox-disabled":e,"checkbox-indeterminate":l,interactive:!0})},r("svg",{class:"checkbox-icon",viewBox:"0 0 24 24",part:"container"},f),r("label",{htmlFor:b},x),r("input",{type:"checkbox","aria-checked":`${t}`,disabled:e,id:b,onFocus:()=>this.onFocus(),onBlur:()=>this.onBlur(),ref:i=>this.focusEl=i}))}get el(){return e(this)}static get watchers(){return{checked:["checkedChanged"],disabled:["disabledChanged"]}}};let p=0;b.style={ios:":host{--background-checked:var(--ion-color-primary, #3880ff);--border-color-checked:var(--ion-color-primary, #3880ff);--checkmark-color:var(--ion-color-primary-contrast, #fff);--checkmark-width:1;--transition:none;display:inline-block;position:relative;user-select:none;z-index:2}:host(.ion-color){--background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;appearance:none;outline:none;display:flex;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.checkbox-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);box-sizing:border-box}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:50%;--border-width:1px;--border-style:solid;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.23);--background:var(--ion-item-background, var(--ion-background-color, #fff));--size:26px;width:var(--size);height:var(--size)}:host(.checkbox-disabled){opacity:0.3}:host(.in-item){margin-left:0;margin-right:8px;margin-top:10px;margin-bottom:9px;display:block;position:static}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px}}:host(.in-item[slot=start]){margin-left:2px;margin-right:20px;margin-top:8px;margin-bottom:8px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:20px;margin-inline-end:20px}}",md:":host{--background-checked:var(--ion-color-primary, #3880ff);--border-color-checked:var(--ion-color-primary, #3880ff);--checkmark-color:var(--ion-color-primary-contrast, #fff);--checkmark-width:1;--transition:none;display:inline-block;position:relative;user-select:none;z-index:2}:host(.ion-color){--background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;appearance:none;outline:none;display:flex;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.checkbox-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);box-sizing:border-box}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:calc(var(--size) * .125);--border-width:2px;--border-style:solid;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.51);--checkmark-width:3;--background:var(--ion-item-background, var(--ion-background-color, #fff));--transition:background 180ms cubic-bezier(0.4, 0, 0.2, 1);--size:18px;width:var(--size);height:var(--size)}.checkbox-icon path{stroke-dasharray:30;stroke-dashoffset:30}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{stroke-dashoffset:0;transition:stroke-dashoffset 90ms linear 90ms}:host(.checkbox-disabled){opacity:0.3}:host(.in-item){margin-left:0;margin-right:0;margin-top:18px;margin-bottom:18px;display:block;position:static}:host(.in-item[slot=start]){margin-left:4px;margin-right:36px;margin-top:18px;margin-bottom:18px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:36px;margin-inline-end:36px}}"};const g=class{constructor(t){i(this,t)}render(){const{lines:i}=this,t=n(this);return r(o,{class:c(this.color,{[t]:!0,[`list-header-lines-${i}`]:void 0!==i})},r("div",{class:"list-header-inner"},r("slot",null)))}};g.style={ios:":host{--border-style:solid;--border-width:0;--inner-border-width:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:flex;align-items:center;justify-content:space-between;width:100%;min-height:40px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);color:var(--color);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.list-header-inner{display:flex;position:relative;flex:1;flex-direction:inherit;align-items:inherit;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);overflow:inherit;box-sizing:border-box}::slotted(ion-label){flex:1 1 auto}:host(.list-header-lines-inset),:host(.list-header-lines-none){--border-width:0}:host(.list-header-lines-full),:host(.list-header-lines-none){--inner-border-width:0}:host{--background:transparent;--color:var(--ion-color-step-850, #262626);--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));padding-left:calc(var(--ion-safe-area-left, 0px) + 20px);position:relative;align-items:flex-end;font-size:22px;font-weight:700;letter-spacing:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;-webkit-padding-start:calc(var(--ion-safe-area-left, 0px) + 20px);padding-inline-start:calc(var(--ion-safe-area-left, 0px) + 20px)}}::slotted(ion-button),::slotted(ion-label){margin-top:29px;margin-bottom:6px}::slotted(ion-button){margin-left:3px;margin-right:3px;height:1.4em}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-button){margin-left:unset;margin-right:unset;-webkit-margin-start:3px;margin-inline-start:3px;-webkit-margin-end:3px;margin-inline-end:3px}}:host(.list-header-lines-full){--border-width:0 0 0.55px 0}:host(.list-header-lines-inset){--inner-border-width:0 0 0.55px 0}",md:":host{--border-style:solid;--border-width:0;--inner-border-width:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:flex;align-items:center;justify-content:space-between;width:100%;min-height:40px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);color:var(--color);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.list-header-inner{display:flex;position:relative;flex:1;flex-direction:inherit;align-items:inherit;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);overflow:inherit;box-sizing:border-box}::slotted(ion-label){flex:1 1 auto}:host(.list-header-lines-inset),:host(.list-header-lines-none){--border-width:0}:host(.list-header-lines-full),:host(.list-header-lines-none){--inner-border-width:0}:host{--background:transparent;--color:var(--ion-text-color, #000);--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));padding-left:calc(var(--ion-safe-area-left, 0) + 16px);min-height:45px;font-size:14px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;-webkit-padding-start:calc(var(--ion-safe-area-left, 0) + 16px);padding-inline-start:calc(var(--ion-safe-area-left, 0) + 16px)}}:host(.list-header-lines-full){--border-width:0 0 1px 0}:host(.list-header-lines-inset){--inner-border-width:0 0 1px 0}"};const m=class{constructor(r){i(this,r),this.ionStyle=t(this,"ionStyle",7),this.ionFocus=t(this,"ionFocus",7),this.ionBlur=t(this,"ionBlur",7),this.inputId="ion-rb-"+u++,this.radioGroup=null,this.checked=!1,this.buttonTabindex=-1,this.name=this.inputId,this.disabled=!1,this.updateState=()=>{this.radioGroup&&(this.checked=this.radioGroup.value===this.value)},this.onClick=()=>{this.checked=this.nativeInput.checked},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()}}async setFocus(i){i.stopPropagation(),i.preventDefault(),this.el.focus()}async setButtonTabindex(i){this.buttonTabindex=i}connectedCallback(){void 0===this.value&&(this.value=this.inputId);const i=this.radioGroup=this.el.closest("ion-radio-group");i&&(this.updateState(),d(i,"ionChange",this.updateState))}disconnectedCallback(){const i=this.radioGroup;i&&(l(i,"ionChange",this.updateState),this.radioGroup=null)}componentWillLoad(){this.emitStyle()}emitStyle(){this.ionStyle.emit({"radio-checked":this.checked,"interactive-disabled":this.disabled})}render(){const{inputId:i,disabled:t,checked:e,color:s,el:d,buttonTabindex:l}=this,b=n(this),{label:p,labelId:g,labelText:m}=a(d,i);return r(o,{"aria-checked":`${e}`,"aria-hidden":t?"true":null,"aria-labelledby":p?g:null,role:"radio",tabindex:l,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick,class:c(s,{[b]:!0,"in-item":h("ion-item",d),interactive:!0,"radio-checked":e,"radio-disabled":t})},r("div",{class:"radio-icon",part:"container"},r("div",{class:"radio-inner",part:"mark"}),r("div",{class:"radio-ripple"})),r("label",{htmlFor:i},m),r("input",{type:"radio",checked:e,disabled:t,tabindex:"-1",id:i,ref:i=>this.nativeInput=i}))}get el(){return e(this)}static get watchers(){return{color:["emitStyle"],checked:["emitStyle"],disabled:["emitStyle"]}}};let u=0;m.style={ios:':host{--inner-border-radius:50%;display:inline-block;position:relative;box-sizing:border-box;user-select:none;z-index:2}:host(.radio-disabled){pointer-events:none}.radio-icon{display:flex;align-items:center;justify-content:center;width:100%;height:100%;contain:layout size style}.radio-icon,.radio-inner{box-sizing:border-box}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;appearance:none;outline:none;display:flex;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host(:focus){outline:none}:host{--color-checked:var(--ion-color-primary, #3880ff);width:15px;height:24px}:host(.ion-color.radio-checked) .radio-inner{border-color:var(--ion-color-base)}.item-radio.item-ios ion-label{margin-left:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.item-radio.item-ios ion-label{margin-left:unset;-webkit-margin-start:0;margin-inline-start:0}}.radio-inner{width:33%;height:50%}:host(.radio-checked) .radio-inner{transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--color-checked)}:host(.radio-disabled){opacity:0.3}:host(.ion-focused) .radio-icon::after{border-radius:var(--inner-border-radius);left:-9px;top:-8px;display:block;position:absolute;width:36px;height:36px;background:var(--ion-color-primary-tint, #4c8dff);content:"";opacity:0.2}:host-context([dir=rtl]):host(.ion-focused) .radio-icon::after,:host-context([dir=rtl]).ion-focused .radio-icon::after{left:unset;right:unset;right:-9px}:host(.in-item){margin-left:10px;margin-right:11px;margin-top:8px;margin-bottom:8px;display:block;position:static}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item){margin-left:unset;margin-right:unset;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:11px;margin-inline-end:11px}}:host(.in-item[slot=start]){margin-left:3px;margin-right:21px;margin-top:8px;margin-bottom:8px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:3px;margin-inline-start:3px;-webkit-margin-end:21px;margin-inline-end:21px}}',md:':host{--inner-border-radius:50%;display:inline-block;position:relative;box-sizing:border-box;user-select:none;z-index:2}:host(.radio-disabled){pointer-events:none}.radio-icon{display:flex;align-items:center;justify-content:center;width:100%;height:100%;contain:layout size style}.radio-icon,.radio-inner{box-sizing:border-box}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;appearance:none;outline:none;display:flex;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host(:focus){outline:none}:host{--color:var(--ion-color-step-400, #999999);--color-checked:var(--ion-color-primary, #3880ff);--border-width:2px;--border-style:solid;--border-radius:50%;width:20px;height:20px}:host(.ion-color) .radio-inner{background:var(--ion-color-base)}:host(.ion-color.radio-checked) .radio-icon{border-color:var(--ion-color-base)}.radio-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:var(--border-radius);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--color)}.radio-inner{border-radius:var(--inner-border-radius);width:calc(50% + var(--border-width));height:calc(50% + var(--border-width));transform:scale3d(0, 0, 0);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1);background:var(--color-checked)}:host(.radio-checked) .radio-icon{border-color:var(--color-checked)}:host(.radio-checked) .radio-inner{transform:scale3d(1, 1, 1)}:host(.radio-disabled){opacity:0.3}:host(.ion-focused) .radio-icon::after{border-radius:var(--inner-border-radius);left:-12px;top:-12px;display:block;position:absolute;width:36px;height:36px;background:var(--ion-color-primary-tint, #4c8dff);content:"";opacity:0.2}:host-context([dir=rtl]):host(.ion-focused) .radio-icon::after,:host-context([dir=rtl]).ion-focused .radio-icon::after{left:unset;right:unset;right:-12px}:host(.in-item){margin-left:0;margin-right:0;margin-top:9px;margin-bottom:9px;display:block;position:static}:host(.in-item[slot=start]){margin-left:4px;margin-right:36px;margin-top:11px;margin-bottom:10px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:36px;margin-inline-end:36px}}'};const k=class{constructor(r){i(this,r),this.ionChange=t(this,"ionChange",7),this.inputId="ion-rg-"+x++,this.labelId=`${this.inputId}-lbl`,this.allowEmptySelection=!1,this.name=this.inputId,this.setRadioTabindex=i=>{const t=this.getRadios(),r=t.find((i=>!i.disabled)),o=t.find((t=>t.value===i&&!t.disabled));if(!r&&!o)return;const e=o||r;for(const i of t)i.setButtonTabindex(i===e?0:-1)},this.onClick=i=>{i.preventDefault();const t=i.target&&i.target.closest("ion-radio");if(t){const i=t.value;i!==this.value?this.value=i:this.allowEmptySelection&&(this.value=void 0)}}}valueChanged(i){this.setRadioTabindex(i),this.ionChange.emit({value:i})}componentDidLoad(){this.setRadioTabindex(this.value)}async connectedCallback(){const i=this.el.querySelector("ion-list-header")||this.el.querySelector("ion-item-divider");if(i){const t=this.label=i.querySelector("ion-label");t&&(this.labelId=t.id=this.name+"-lbl")}}getRadios(){return Array.from(this.el.querySelectorAll("ion-radio"))}onKeydown(i){const t=!!this.el.closest("ion-select-popover");if(i.target&&!this.el.contains(i.target))return;const r=this.getRadios().filter((i=>!i.disabled));if(i.target&&r.includes(i.target)){const o=r.findIndex((t=>t===i.target)),e=r[o];let n;["ArrowDown","ArrowRight"].includes(i.code)&&(n=o===r.length-1?r[0]:r[o+1]),["ArrowUp","ArrowLeft"].includes(i.code)&&(n=0===o?r[r.length-1]:r[o-1]),n&&r.includes(n)&&(n.setFocus(i),t||(this.value=n.value)),["Space"].includes(i.code)&&(this.value=this.allowEmptySelection&&void 0!==this.value?void 0:e.value,i.preventDefault())}}render(){const{label:i,labelId:t}=this,e=n(this);return r(o,{role:"radiogroup","aria-labelledby":i?t:null,onClick:this.onClick,class:e})}get el(){return e(this)}static get watchers(){return{value:["valueChanged"]}}};let x=0;export{b as ion_checkbox,g as ion_list_header,m as ion_radio,k as ion_radio_group}
@@ -1 +1 @@
1
- import{d as t,f as e}from"./p-ee1e0eb4.js";var r=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}},n=Object.prototype.toString;function o(t){return Array.isArray(t)}function i(t){return void 0===t}function u(t){return"[object ArrayBuffer]"===n.call(t)}function a(t){return null!==t&&"object"==typeof t}function f(t){if("[object Object]"!==n.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function c(t){return"[object Function]"===n.call(t)}function p(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}var y={isArray:o,isArrayBuffer:u,isBuffer:function(t){return null!==t&&!i(t)&&null!==t.constructor&&!i(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"[object FormData]"===n.call(t)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&u(t.buffer)},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:a,isPlainObject:f,isUndefined:i,isDate:function(t){return"[object Date]"===n.call(t)},isFile:function(t){return"[object File]"===n.call(t)},isBlob:function(t){return"[object Blob]"===n.call(t)},isFunction:c,isStream:function(t){return a(t)&&c(t.pipe)},isURLSearchParams:function(t){return"[object URLSearchParams]"===n.call(t)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:p,merge:function t(){var e={};function r(r,n){e[n]=f(e[n])&&f(r)?t(e[n],r):f(r)?t({},r):o(r)?r.slice():r}for(var n=0,i=arguments.length;n<i;n++)p(arguments[n],r);return e},extend:function(t,e,n){return p(e,(function(e,o){t[o]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}};function s(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var l=function(t,e,r){if(!e)return t;var n;if(r)n=r(e);else if(y.isURLSearchParams(e))n=e.toString();else{var o=[];y.forEach(e,(function(t,e){null!=t&&(y.isArray(t)?e+="[]":t=[t],y.forEach(t,(function(t){y.isDate(t)?t=t.toISOString():y.isObject(t)&&(t=JSON.stringify(t)),o.push(s(e)+"="+s(t))})))})),n=o.join("&")}if(n){var i=t.indexOf("#");-1!==i&&(t=t.slice(0,i)),t+=(-1===t.indexOf("?")?"?":"&")+n}return t};function d(){this.handlers=[]}d.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},d.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},d.prototype.forEach=function(t){y.forEach(this.handlers,(function(e){null!==e&&t(e)}))};var b=d,v=function(t,e){y.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))},m=function(t,e,r,n,o){return t.config=e,r&&(t.code=r),t.request=n,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},h={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},g=function(t,e,r,n,o){var i=new Error(t);return m(i,e,r,n,o)},j=y.isStandardBrowserEnv()?{write:function(t,e,r,n,o,i){var u=[];u.push(t+"="+encodeURIComponent(e)),y.isNumber(r)&&u.push("expires="+new Date(r).toGMTString()),y.isString(n)&&u.push("path="+n),y.isString(o)&&u.push("domain="+o),!0===i&&u.push("secure"),document.cookie=u.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},S=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],A=y.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=n(window.location.href),function(e){var r=y.isString(e)?n(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0};function w(t){this.message=t}w.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},w.prototype.__CANCEL__=!0;var O=w,P={"Content-Type":"application/x-www-form-urlencoded"};function E(t,e){!y.isUndefined(t)&&y.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var R,F={transitional:h,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(R=function(t){return new Promise((function(e,r){var n,o=t.data,i=t.headers,u=t.responseType;function a(){t.cancelToken&&t.cancelToken.unsubscribe(n),t.signal&&t.signal.removeEventListener("abort",n)}y.isFormData(o)&&delete i["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var c=t.auth.username||"",p=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.Authorization="Basic "+btoa(c+":"+p)}var s,d,b=(d=t.url,(s=t.baseURL)&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(d)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(s,d):d);function v(){if(f){var n,o,i,c,p,s="getAllResponseHeaders"in f?(n=f.getAllResponseHeaders(),p={},n?(y.forEach(n.split("\n"),(function(t){if(c=t.indexOf(":"),o=y.trim(t.substr(0,c)).toLowerCase(),i=y.trim(t.substr(c+1)),o){if(p[o]&&S.indexOf(o)>=0)return;p[o]="set-cookie"===o?(p[o]?p[o]:[]).concat([i]):p[o]?p[o]+", "+i:i}})),p):p):null;!function(t,e,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(g("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}((function(t){e(t),a()}),(function(t){r(t),a()}),{data:u&&"text"!==u&&"json"!==u?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:s,config:t,request:f}),f=null}}if(f.open(t.method.toUpperCase(),l(b,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,"onloadend"in f?f.onloadend=v:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(v)},f.onabort=function(){f&&(r(g("Request aborted",t,"ECONNABORTED",f)),f=null)},f.onerror=function(){r(g("Network Error",t,null,f)),f=null},f.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(g(e,t,(t.transitional||h).clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",f)),f=null},y.isStandardBrowserEnv()){var m=(t.withCredentials||A(b))&&t.xsrfCookieName?j.read(t.xsrfCookieName):void 0;m&&(i[t.xsrfHeaderName]=m)}"setRequestHeader"in f&&y.forEach(i,(function(t,e){void 0===o&&"content-type"===e.toLowerCase()?delete i[e]:f.setRequestHeader(e,t)})),y.isUndefined(t.withCredentials)||(f.withCredentials=!!t.withCredentials),u&&"json"!==u&&(f.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(n=function(t){f&&(r(!t||t&&t.type?new O("canceled"):t),f.abort(),f=null)},t.cancelToken&&t.cancelToken.subscribe(n),t.signal&&(t.signal.aborted?n():t.signal.addEventListener("abort",n))),o||(o=null),f.send(o)}))}),R),transformRequest:[function(t,e){return v(e,"Accept"),v(e,"Content-Type"),y.isFormData(t)||y.isArrayBuffer(t)||y.isBuffer(t)||y.isStream(t)||y.isFile(t)||y.isBlob(t)?t:y.isArrayBufferView(t)?t.buffer:y.isURLSearchParams(t)?(E(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):y.isObject(t)||e&&"application/json"===e["Content-Type"]?(E(e,"application/json"),function(t){if(y.isString(t))try{return(0,JSON.parse)(t),y.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||F.transitional,r=!(e&&e.silentJSONParsing)&&"json"===this.responseType;if(r||e&&e.forcedJSONParsing&&y.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(r){if("SyntaxError"===t.name)throw m(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};y.forEach(["delete","get","head"],(function(t){F.headers[t]={}})),y.forEach(["post","put","patch"],(function(t){F.headers[t]=y.merge(P)}));var x=F,I=function(t,e,r){var n=this||x;return y.forEach(r,(function(r){t=r.call(n,t,e)})),t},M=function(t){return!(!t||!t.__CANCEL__)};function U(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new O("canceled")}var k=function(t){return U(t),t.headers=t.headers||{},t.data=I.call(t,t.data,t.headers,t.transformRequest),t.headers=y.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),y.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||x.adapter)(t).then((function(e){return U(t),e.data=I.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return M(e)||(U(t),e&&e.response&&(e.response.data=I.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))},N=function(t,e){e=e||{};var r={};function n(t,e){return y.isPlainObject(t)&&y.isPlainObject(e)?y.merge(t,e):y.isPlainObject(e)?y.merge({},e):y.isArray(e)?e.slice():e}function o(r){return y.isUndefined(e[r])?y.isUndefined(t[r])?void 0:n(void 0,t[r]):n(t[r],e[r])}function i(t){if(!y.isUndefined(e[t]))return n(void 0,e[t])}function u(r){return y.isUndefined(e[r])?y.isUndefined(t[r])?void 0:n(void 0,t[r]):n(void 0,e[r])}function a(r){return r in e?n(t[r],e[r]):r in t?n(void 0,t[r]):void 0}var f={url:i,method:i,data:i,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:a};return y.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=f[t]||o,n=e(t);y.isUndefined(n)&&e!==a||(r[t]=n)})),r},B={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){B[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var T={};B.transitional=function(t,e,r){function n(t,e){return"[Axios v0.26.1] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,o,i){if(!1===t)throw new Error(n(o," has been removed"+(e?" in "+e:"")));return e&&!T[o]&&(T[o]=!0,console.warn(n(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,i)}};var C={assertOptions:function(t,e,r){if("object"!=typeof t)throw new TypeError("options must be an object");for(var n=Object.keys(t),o=n.length;o-- >0;){var i=n[o],u=e[i];if(u){var a=t[i],f=void 0===a||u(a,i,t);if(!0!==f)throw new TypeError("option "+i+" must be "+f)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:B},W=C.validators;function D(t){this.defaults=t,this.interceptors={request:new b,response:new b}}D.prototype.request=function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},(e=N(this.defaults,e)).method=e.method?e.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var r=e.transitional;void 0!==r&&C.assertOptions(r,{silentJSONParsing:W.transitional(W.boolean),forcedJSONParsing:W.transitional(W.boolean),clarifyTimeoutError:W.transitional(W.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(o=o&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,u=[];if(this.interceptors.response.forEach((function(t){u.push(t.fulfilled,t.rejected)})),!o){var a=[k,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(u),i=Promise.resolve(e);a.length;)i=i.then(a.shift(),a.shift());return i}for(var f=e;n.length;){var c=n.shift(),p=n.shift();try{f=c(f)}catch(t){p(t);break}}try{i=k(f)}catch(t){return Promise.reject(t)}for(;u.length;)i=i.then(u.shift(),u.shift());return i},D.prototype.getUri=function(t){return t=N(this.defaults,t),l(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},y.forEach(["delete","get","head","options"],(function(t){D.prototype[t]=function(e,r){return this.request(N(r||{},{method:t,url:e,data:(r||{}).data}))}})),y.forEach(["post","put","patch"],(function(t){D.prototype[t]=function(e,r,n){return this.request(N(n||{},{method:t,url:e,data:r}))}}));var _=D;function $(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;this.promise.then((function(t){if(r._listeners){var e,n=r._listeners.length;for(e=0;e<n;e++)r._listeners[e](t);r._listeners=null}})),this.promise.then=function(t){var e,n=new Promise((function(t){r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t((function(t){r.reason||(r.reason=new O(t),e(r.reason))}))}$.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},$.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},$.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},$.source=function(){var t;return{token:new $((function(e){t=e})),cancel:t}};var q=$,G=function t(e){var n=new _(e),o=r(_.prototype.request,n);return y.extend(o,_.prototype,n),y.extend(o,n),o.create=function(r){return t(N(e,r))},o}(x);G.Axios=_,G.Cancel=O,G.CancelToken=q,G.isCancel=M,G.VERSION="0.26.1",G.all=function(t){return Promise.all(t)},G.spread=function(t){return function(e){return t.apply(null,e)}},G.isAxiosError=function(t){return y.isObject(t)&&!0===t.isAxiosError};var J=G;J.default=G;var L="undefined"!=typeof Symbol&&Symbol,z="Function.prototype.bind called on incompatible ",H=Array.prototype.slice,V=Object.prototype.toString,X=Function.prototype.bind||function(t){var e=this;if("function"!=typeof e||"[object Function]"!==V.call(e))throw new TypeError(z+e);for(var r,n=H.call(arguments,1),o=function(){if(this instanceof r){var o=e.apply(this,n.concat(H.call(arguments)));return Object(o)===o?o:this}return e.apply(t,n.concat(H.call(arguments)))},i=Math.max(0,e.length-n.length),u=[],a=0;a<i;a++)u.push("$"+a);if(r=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(o),e.prototype){var f=function(){};f.prototype=e.prototype,r.prototype=new f,f.prototype=null}return r},K=X.call(Function.call,Object.prototype.hasOwnProperty),Q=SyntaxError,Y=Function,Z=TypeError,tt=function(t){try{return Y('"use strict"; return ('+t+").constructor;")()}catch(t){}},et=Object.getOwnPropertyDescriptor,rt=function(){throw new Z},nt=et?function(){try{return rt}catch(t){try{return et(arguments,"callee").get}catch(t){return rt}}}():rt,ot="function"==typeof L&&"function"==typeof Symbol&&"symbol"==typeof L("foo")&&"symbol"==typeof Symbol("bar")&&function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}(),it=Object.getPrototypeOf||function(t){return t.__proto__},ut={},at="undefined"==typeof Uint8Array?void 0:it(Uint8Array),ft={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":ot?it([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":ut,"%AsyncGenerator%":ut,"%AsyncGeneratorFunction%":ut,"%AsyncIteratorPrototype%":ut,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":Y,"%GeneratorFunction%":ut,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ot?it(it([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&ot?it((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&ot?it((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ot?it(""[Symbol.iterator]()):void 0,"%Symbol%":ot?Symbol:void 0,"%SyntaxError%":Q,"%ThrowTypeError%":nt,"%TypedArray%":at,"%TypeError%":Z,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},ct=function t(e){var r;if("%AsyncFunction%"===e)r=tt("async function () {}");else if("%GeneratorFunction%"===e)r=tt("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=tt("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&(r=it(o.prototype))}return ft[e]=r,r},pt={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},yt=X.call(Function.call,Array.prototype.concat),st=X.call(Function.apply,Array.prototype.splice),lt=X.call(Function.call,String.prototype.replace),dt=X.call(Function.call,String.prototype.slice),bt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,vt=/\\(\\)?/g,mt=function(t){var e=dt(t,0,1),r=dt(t,-1);if("%"===e&&"%"!==r)throw new Q("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new Q("invalid intrinsic syntax, expected opening `%`");var n=[];return lt(t,bt,(function(t,e,r,o){n[n.length]=r?lt(o,vt,"$1"):e||t})),n},ht=function(t,e){var r,n=t;if(K(pt,n)&&(n="%"+(r=pt[n])[0]+"%"),K(ft,n)){var o=ft[n];if(o===ut&&(o=ct(n)),void 0===o&&!e)throw new Z("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new Q("intrinsic "+t+" does not exist!")},gt=function(t,e){if("string"!=typeof t||0===t.length)throw new Z("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new Z('"allowMissing" argument must be a boolean');var r=mt(t),n=r.length>0?r[0]:"",o=ht("%"+n+"%",e),i=o.name,u=o.value,a=!1,f=o.alias;f&&(n=f[0],st(r,yt([0,1],f)));for(var c=1,p=!0;c<r.length;c+=1){var y=r[c],s=dt(y,0,1),l=dt(y,-1);if(('"'===s||"'"===s||"`"===s||'"'===l||"'"===l||"`"===l)&&s!==l)throw new Q("property names with quotes must have matching quotes");if("constructor"!==y&&p||(a=!0),K(ft,i="%"+(n+="."+y)+"%"))u=ft[i];else if(null!=u){if(!(y in u)){if(!e)throw new Z("base intrinsic for "+t+" exists, but the property is not available.");return}if(et&&c+1>=r.length){var d=et(u,y);u=(p=!!d)&&"get"in d&&!("originalValue"in d.get)?d.get:u[y]}else p=K(u,y),u=u[y];p&&!a&&(ft[i]=u)}}return u},jt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function St(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function At(t,e,r){return t(r={path:e,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}function wt(t){if(t.__esModule)return t;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(t).forEach((function(r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})})),e}var Ot=At((function(t){var e=gt("%Function.prototype.apply%"),r=gt("%Function.prototype.call%"),n=gt("%Reflect.apply%",!0)||X.call(r,e),o=gt("%Object.getOwnPropertyDescriptor%",!0),i=gt("%Object.defineProperty%",!0),u=gt("%Math.max%");if(i)try{i({},"a",{value:1})}catch(t){i=null}t.exports=function(t){var e=n(X,r,arguments);if(o&&i){var a=o(e,"length");a.configurable&&i(e,"length",{value:1+u(0,t.length-(arguments.length-1))})}return e};var a=function(){return n(X,e,arguments)};i?i(t.exports,"apply",{value:a}):t.exports.apply=a})),Pt=Ot(gt("String.prototype.indexOf")),Et=function(t,e){var r=gt(t,!!e);return"function"==typeof r&&Pt(t,".prototype.")>-1?Ot(r):r};const Rt=wt(Object.freeze({__proto__:null,default:{}}));var Ft="function"==typeof Map&&Map.prototype,xt=Object.getOwnPropertyDescriptor&&Ft?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,It=Ft&&xt&&"function"==typeof xt.get?xt.get:null,Mt=Ft&&Map.prototype.forEach,Ut="function"==typeof Set&&Set.prototype,kt=Object.getOwnPropertyDescriptor&&Ut?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Nt=Ut&&kt&&"function"==typeof kt.get?kt.get:null,Bt=Ut&&Set.prototype.forEach,Tt="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Ct="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Wt="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Dt=Boolean.prototype.valueOf,_t=Object.prototype.toString,$t=Function.prototype.toString,qt=String.prototype.match,Gt=String.prototype.slice,Jt=String.prototype.replace,Lt=String.prototype.toUpperCase,zt=String.prototype.toLowerCase,Ht=RegExp.prototype.test,Vt=Array.prototype.concat,Xt=Array.prototype.join,Kt=Array.prototype.slice,Qt=Math.floor,Yt="function"==typeof BigInt?BigInt.prototype.valueOf:null,Zt=Object.getOwnPropertySymbols,te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,ee="function"==typeof Symbol&&"object"==typeof Symbol.iterator,re="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol,1)?Symbol.toStringTag:null,ne=Object.prototype.propertyIsEnumerable,oe=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function ie(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||Ht.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-Qt(-t):Qt(t);if(n!==t){var o=String(n),i=Gt.call(e,o.length+1);return Jt.call(o,r,"$&_")+"."+Jt.call(Jt.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Jt.call(e,r,"$&_")}var ue=Rt.custom,ae=ue&&se(ue)?ue:null,fe=function t(e,r,n,o){var i=r||{};if(de(i,"quoteStyle")&&"single"!==i.quoteStyle&&"double"!==i.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(de(i,"maxStringLength")&&("number"==typeof i.maxStringLength?i.maxStringLength<0&&i.maxStringLength!==1/0:null!==i.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!de(i,"customInspect")||i.customInspect;if("boolean"!=typeof u&&"symbol"!==u)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(de(i,"indent")&&null!==i.indent&&"\t"!==i.indent&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(de(i,"numericSeparator")&&"boolean"!=typeof i.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return me(e,i);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var f=String(e);return a?ie(e,f):f}if("bigint"==typeof e){var c=String(e)+"n";return a?ie(e,c):c}var p=void 0===i.depth?5:i.depth;if(void 0===n&&(n=0),n>=p&&p>0&&"object"==typeof e)return ye(e)?"[Array]":"[Object]";var y,s=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=Xt.call(Array(t.indent+1)," ")}return{base:r,prev:Xt.call(Array(e+1),r)}}(i,n);if(void 0===o)o=[];else if(ve(o,e)>=0)return"[Circular]";function l(e,r,u){if(r&&(o=Kt.call(o)).push(r),u){var a={depth:i.depth};return de(i,"quoteStyle")&&(a.quoteStyle=i.quoteStyle),t(e,a,n+1,o)}return t(e,i,n+1,o)}if("function"==typeof e){var d=function(t){if(t.name)return t.name;var e=qt.call($t.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),b=we(e,l);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(b.length>0?" { "+Xt.call(b,", ")+" }":"")}if(se(e)){var v=ee?Jt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):te.call(e);return"object"!=typeof e||ee?v:ge(v)}if((y=e)&&"object"==typeof y&&("undefined"!=typeof HTMLElement&&y instanceof HTMLElement||"string"==typeof y.nodeName&&"function"==typeof y.getAttribute)){for(var m="<"+zt.call(String(e.nodeName)),h=e.attributes||[],g=0;g<h.length;g++)m+=" "+h[g].name+"="+ce(pe(h[g].value),"double",i);return m+=">",e.childNodes&&e.childNodes.length&&(m+="..."),m+"</"+zt.call(String(e.nodeName))+">"}if(ye(e)){if(0===e.length)return"[]";var j=we(e,l);return s&&!function(t){for(var e=0;e<t.length;e++)if(ve(t[e],"\n")>=0)return!1;return!0}(j)?"["+Ae(j,s)+"]":"[ "+Xt.call(j,", ")+" ]"}if(function(t){return!("[object Error]"!==be(t)||re&&"object"==typeof t&&re in t)}(e)){var S=we(e,l);return"cause"in e&&!ne.call(e,"cause")?"{ ["+String(e)+"] "+Xt.call(Vt.call("[cause]: "+l(e.cause),S),", ")+" }":0===S.length?"["+String(e)+"]":"{ ["+String(e)+"] "+Xt.call(S,", ")+" }"}if("object"==typeof e&&u){if(ae&&"function"==typeof e[ae])return e[ae]();if("symbol"!==u&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!It||!t||"object"!=typeof t)return!1;try{It.call(t);try{Nt.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var A=[];return Mt.call(e,(function(t,r){A.push(l(r,e,!0)+" => "+l(t,e))})),Se("Map",It.call(e),A,s)}if(function(t){if(!Nt||!t||"object"!=typeof t)return!1;try{Nt.call(t);try{It.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var w=[];return Bt.call(e,(function(t){w.push(l(t,e))})),Se("Set",Nt.call(e),w,s)}if(function(t){if(!Tt||!t||"object"!=typeof t)return!1;try{Tt.call(t,Tt);try{Ct.call(t,Ct)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return je("WeakMap");if(function(t){if(!Ct||!t||"object"!=typeof t)return!1;try{Ct.call(t,Ct);try{Tt.call(t,Tt)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return je("WeakSet");if(function(t){if(!Wt||!t||"object"!=typeof t)return!1;try{return Wt.call(t),!0}catch(t){}return!1}(e))return je("WeakRef");if(function(t){return!("[object Number]"!==be(t)||re&&"object"==typeof t&&re in t)}(e))return ge(l(Number(e)));if(function(t){if(!t||"object"!=typeof t||!Yt)return!1;try{return Yt.call(t),!0}catch(t){}return!1}(e))return ge(l(Yt.call(e)));if(function(t){return!("[object Boolean]"!==be(t)||re&&"object"==typeof t&&re in t)}(e))return ge(Dt.call(e));if(function(t){return!("[object String]"!==be(t)||re&&"object"==typeof t&&re in t)}(e))return ge(l(String(e)));if(!function(t){return!("[object Date]"!==be(t)||re&&"object"==typeof t&&re in t)}(e)&&!function(t){return!("[object RegExp]"!==be(t)||re&&"object"==typeof t&&re in t)}(e)){var O=we(e,l),P=oe?oe(e)===Object.prototype:e instanceof Object||e.constructor===Object,E=e instanceof Object?"":"null prototype",R=!P&&re&&Object(e)===e&&re in e?Gt.call(be(e),8,-1):E?"Object":"",F=(P||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(R||E?"["+Xt.call(Vt.call([],R||[],E||[]),": ")+"] ":"");return 0===O.length?F+"{}":s?F+"{"+Ae(O,s)+"}":F+"{ "+Xt.call(O,", ")+" }"}return String(e)};function ce(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function pe(t){return Jt.call(String(t),/"/g,"&quot;")}function ye(t){return!("[object Array]"!==be(t)||re&&"object"==typeof t&&re in t)}function se(t){if(ee)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!te)return!1;try{return te.call(t),!0}catch(t){}return!1}var le=Object.prototype.hasOwnProperty||function(t){return t in this};function de(t,e){return le.call(t,e)}function be(t){return _t.call(t)}function ve(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function me(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return me(Gt.call(t,0,e.maxStringLength),e)+n}return ce(Jt.call(Jt.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,he),"single",e)}function he(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+Lt.call(e.toString(16))}function ge(t){return"Object("+t+")"}function je(t){return t+" { ? }"}function Se(t,e,r,n){return t+" ("+e+") {"+(n?Ae(r,n):Xt.call(r,", "))+"}"}function Ae(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+Xt.call(t,","+r)+"\n"+e.prev}function we(t,e){var r=ye(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=de(t,o)?e(t[o],t):""}var i,u="function"==typeof Zt?Zt(t):[];if(ee){i={};for(var a=0;a<u.length;a++)i["$"+u[a]]=u[a]}for(var f in t)de(t,f)&&(r&&String(Number(f))===f&&f<t.length||ee&&i["$"+f]instanceof Symbol||(Ht.call(/[^\w$]/,f)?n.push(e(f,t)+": "+e(t[f],t)):n.push(f+": "+e(t[f],t))));if("function"==typeof Zt)for(var c=0;c<u.length;c++)ne.call(t,u[c])&&n.push("["+e(u[c])+"]: "+e(t[u[c]],t));return n}var Oe=gt("%TypeError%"),Pe=gt("%WeakMap%",!0),Ee=gt("%Map%",!0),Re=Et("WeakMap.prototype.get",!0),Fe=Et("WeakMap.prototype.set",!0),xe=Et("WeakMap.prototype.has",!0),Ie=Et("Map.prototype.get",!0),Me=Et("Map.prototype.set",!0),Ue=Et("Map.prototype.has",!0),ke=function(t,e){for(var r,n=t;null!==(r=n.next);n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r},Ne=function(){var t,e,r,n={assert:function(t){if(!n.has(t))throw new Oe("Side channel does not contain "+fe(t))},get:function(n){if(Pe&&n&&("object"==typeof n||"function"==typeof n)){if(t)return Re(t,n)}else if(Ee){if(e)return Ie(e,n)}else if(r)return function(t,e){var r=ke(t,e);return r&&r.value}(r,n)},has:function(n){if(Pe&&n&&("object"==typeof n||"function"==typeof n)){if(t)return xe(t,n)}else if(Ee){if(e)return Ue(e,n)}else if(r)return function(t,e){return!!ke(t,e)}(r,n);return!1},set:function(n,o){Pe&&n&&("object"==typeof n||"function"==typeof n)?(t||(t=new Pe),Fe(t,n,o)):Ee?(e||(e=new Ee),Me(e,n,o)):(r||(r={key:{},next:null}),function(t,e,r){var n=ke(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}}(r,n,o))}};return n},Be=String.prototype.replace,Te=/%20/g,Ce={default:"RFC3986",formatters:{RFC1738:function(t){return Be.call(t,Te,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:"RFC3986"},We=Object.prototype.hasOwnProperty,De=Array.isArray,_e=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),$e=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r},qe={arrayToObject:$e,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var o=e[n],i=o.obj[o.prop],u=Object.keys(i),a=0;a<u.length;++a){var f=u[a],c=i[f];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(e.push({obj:i,prop:f}),r.push(c))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(De(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);e.obj[e.prop]=n}}}(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(t){return n}},encode:function(t,e,r,n,o){if(0===t.length)return t;var i=t;if("symbol"==typeof t?i=Symbol.prototype.toString.call(t):"string"!=typeof t&&(i=String(t)),"iso-8859-1"===r)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var u="",a=0;a<i.length;++a){var f=i.charCodeAt(a);45===f||46===f||95===f||126===f||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||o===Ce.RFC1738&&(40===f||41===f)?u+=i.charAt(a):f<128?u+=_e[f]:f<2048?u+=_e[192|f>>6]+_e[128|63&f]:f<55296||f>=57344?u+=_e[224|f>>12]+_e[128|f>>6&63]+_e[128|63&f]:(f=65536+((1023&f)<<10|1023&i.charCodeAt(a+=1)),u+=_e[240|f>>18]+_e[128|f>>12&63]+_e[128|f>>6&63]+_e[128|63&f])}return u},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(De(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(e(t[n]));return r}return e(t)},merge:function t(e,r,n){if(!r)return e;if("object"!=typeof r){if(De(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(n&&(n.plainObjects||n.allowPrototypes)||!We.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var o=e;return De(e)&&!De(r)&&(o=$e(e,n)),De(e)&&De(r)?(r.forEach((function(r,o){if(We.call(e,o)){var i=e[o];i&&"object"==typeof i&&r&&"object"==typeof r?e[o]=t(i,r,n):e.push(r)}else e[o]=r})),e):Object.keys(r).reduce((function(e,o){var i=r[o];return e[o]=We.call(e,o)?t(e[o],i,n):i,e}),o)}};const Ge=t=>!("isConnected"in t)||t.isConnected,Je=(()=>{let t;return(...e)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let e of t.keys())t.set(e,t.get(e).filter(Ge))})(...e)}),2e3)}})(),Le=(r,n)=>{const o=((t,e=((t,e)=>t!==e))=>{let r=new Map(Object.entries(null!=t?t:{}));const n={dispose:[],get:[],set:[],reset:[]},o=()=>{r=new Map(Object.entries(null!=t?t:{})),n.reset.forEach((t=>t()))},i=t=>(n.get.forEach((e=>e(t))),r.get(t)),u=(t,o)=>{const i=r.get(t);e(o,i,t)&&(r.set(t,o),n.set.forEach((e=>e(t,o,i))))},a="undefined"==typeof Proxy?{}:new Proxy(t,{get:(t,e)=>i(e),ownKeys:()=>Array.from(r.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,e)=>r.has(e),set:(t,e,r)=>(u(e,r),!0)}),f=(t,e)=>(n[t].push(e),()=>{((t,e)=>{const r=t.indexOf(e);r>=0&&(t[r]=t[t.length-1],t.length--)})(n[t],e)});return{state:a,get:i,set:u,on:f,onChange:(e,r)=>{const n=f("set",((t,n)=>{t===e&&r(n)})),o=f("reset",(()=>r(t[e])));return()=>{n(),o()}},use:(...t)=>{const e=t.reduce(((t,e)=>(e.set&&t.push(f("set",e.set)),e.get&&t.push(f("get",e.get)),e.reset&&t.push(f("reset",e.reset)),e.dispose&&t.push(f("dispose",e.dispose)),t)),[]);return()=>e.forEach((t=>t()))},dispose:()=>{n.dispose.forEach((t=>t())),o()},reset:o,forceUpdate:t=>{const e=r.get(t);n.set.forEach((r=>r(t,e,e)))}}})(r,n);return o.use((()=>{if("function"!=typeof t)return{};const r=new Map;return{dispose:()=>r.clear(),get:e=>{const n=t();n&&((t,e,r)=>{const n=t.get(e);n?n.includes(r)||n.push(r):t.set(e,[r])})(r,e,n)},set:t=>{const n=r.get(t);n&&r.set(t,n.filter(e)),Je(r)},reset:()=>{r.forEach((t=>t.forEach(e))),Je(r)}}})()),o},{state:ze,onChange:He,reset:Ve}=Le({toc:void 0}),Xe={state:ze,onChange:He,reset:Ve},{state:Ke,onChange:Qe,reset:Ye}=Le({authUser:null,bearer:"Bearer ",isAuthenticated:!1,loading:!1});Qe("authUser",(t=>{Ke.bearer=`Bearer ${t?t.JWToken:""}`,Ke.isAuthenticated=t&&!!t.Id}));const Ze={state:Ke,onChange:Qe,reset:Ye};export{Ze as A,Xe as T,J as a,jt as b,At as c,Le as d,Ce as f,St as g,Ne as s,qe as u}
1
+ import{d as t,f as e}from"./p-ee1e0eb4.js";var r=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}},n=Object.prototype.toString;function o(t){return Array.isArray(t)}function i(t){return void 0===t}function u(t){return"[object ArrayBuffer]"===n.call(t)}function a(t){return null!==t&&"object"==typeof t}function f(t){if("[object Object]"!==n.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function c(t){return"[object Function]"===n.call(t)}function p(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}var y={isArray:o,isArrayBuffer:u,isBuffer:function(t){return null!==t&&!i(t)&&null!==t.constructor&&!i(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"[object FormData]"===n.call(t)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&u(t.buffer)},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:a,isPlainObject:f,isUndefined:i,isDate:function(t){return"[object Date]"===n.call(t)},isFile:function(t){return"[object File]"===n.call(t)},isBlob:function(t){return"[object Blob]"===n.call(t)},isFunction:c,isStream:function(t){return a(t)&&c(t.pipe)},isURLSearchParams:function(t){return"[object URLSearchParams]"===n.call(t)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:p,merge:function t(){var e={};function r(r,n){e[n]=f(e[n])&&f(r)?t(e[n],r):f(r)?t({},r):o(r)?r.slice():r}for(var n=0,i=arguments.length;n<i;n++)p(arguments[n],r);return e},extend:function(t,e,n){return p(e,(function(e,o){t[o]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}};function s(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var l=function(t,e,r){if(!e)return t;var n;if(r)n=r(e);else if(y.isURLSearchParams(e))n=e.toString();else{var o=[];y.forEach(e,(function(t,e){null!=t&&(y.isArray(t)?e+="[]":t=[t],y.forEach(t,(function(t){y.isDate(t)?t=t.toISOString():y.isObject(t)&&(t=JSON.stringify(t)),o.push(s(e)+"="+s(t))})))})),n=o.join("&")}if(n){var i=t.indexOf("#");-1!==i&&(t=t.slice(0,i)),t+=(-1===t.indexOf("?")?"?":"&")+n}return t};function d(){this.handlers=[]}d.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},d.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},d.prototype.forEach=function(t){y.forEach(this.handlers,(function(e){null!==e&&t(e)}))};var b=d,v=function(t,e){y.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))},m=function(t,e,r,n,o){return t.config=e,r&&(t.code=r),t.request=n,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},h={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},g=function(t,e,r,n,o){var i=new Error(t);return m(i,e,r,n,o)},j=y.isStandardBrowserEnv()?{write:function(t,e,r,n,o,i){var u=[];u.push(t+"="+encodeURIComponent(e)),y.isNumber(r)&&u.push("expires="+new Date(r).toGMTString()),y.isString(n)&&u.push("path="+n),y.isString(o)&&u.push("domain="+o),!0===i&&u.push("secure"),document.cookie=u.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},S=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],A=y.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=n(window.location.href),function(e){var r=y.isString(e)?n(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0};function w(t){this.message=t}w.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},w.prototype.__CANCEL__=!0;var O=w,P={"Content-Type":"application/x-www-form-urlencoded"};function E(t,e){!y.isUndefined(t)&&y.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var R,F={transitional:h,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(R=function(t){return new Promise((function(e,r){var n,o=t.data,i=t.headers,u=t.responseType;function a(){t.cancelToken&&t.cancelToken.unsubscribe(n),t.signal&&t.signal.removeEventListener("abort",n)}y.isFormData(o)&&delete i["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var c=t.auth.username||"",p=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.Authorization="Basic "+btoa(c+":"+p)}var s,d,b=(d=t.url,(s=t.baseURL)&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(d)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(s,d):d);function v(){if(f){var n,o,i,c,p,s="getAllResponseHeaders"in f?(n=f.getAllResponseHeaders(),p={},n?(y.forEach(n.split("\n"),(function(t){if(c=t.indexOf(":"),o=y.trim(t.substr(0,c)).toLowerCase(),i=y.trim(t.substr(c+1)),o){if(p[o]&&S.indexOf(o)>=0)return;p[o]="set-cookie"===o?(p[o]?p[o]:[]).concat([i]):p[o]?p[o]+", "+i:i}})),p):p):null;!function(t,e,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(g("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}((function(t){e(t),a()}),(function(t){r(t),a()}),{data:u&&"text"!==u&&"json"!==u?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:s,config:t,request:f}),f=null}}if(f.open(t.method.toUpperCase(),l(b,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,"onloadend"in f?f.onloadend=v:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(v)},f.onabort=function(){f&&(r(g("Request aborted",t,"ECONNABORTED",f)),f=null)},f.onerror=function(){r(g("Network Error",t,null,f)),f=null},f.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(g(e,t,(t.transitional||h).clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",f)),f=null},y.isStandardBrowserEnv()){var m=(t.withCredentials||A(b))&&t.xsrfCookieName?j.read(t.xsrfCookieName):void 0;m&&(i[t.xsrfHeaderName]=m)}"setRequestHeader"in f&&y.forEach(i,(function(t,e){void 0===o&&"content-type"===e.toLowerCase()?delete i[e]:f.setRequestHeader(e,t)})),y.isUndefined(t.withCredentials)||(f.withCredentials=!!t.withCredentials),u&&"json"!==u&&(f.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(n=function(t){f&&(r(!t||t&&t.type?new O("canceled"):t),f.abort(),f=null)},t.cancelToken&&t.cancelToken.subscribe(n),t.signal&&(t.signal.aborted?n():t.signal.addEventListener("abort",n))),o||(o=null),f.send(o)}))}),R),transformRequest:[function(t,e){return v(e,"Accept"),v(e,"Content-Type"),y.isFormData(t)||y.isArrayBuffer(t)||y.isBuffer(t)||y.isStream(t)||y.isFile(t)||y.isBlob(t)?t:y.isArrayBufferView(t)?t.buffer:y.isURLSearchParams(t)?(E(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):y.isObject(t)||e&&"application/json"===e["Content-Type"]?(E(e,"application/json"),function(t){if(y.isString(t))try{return(0,JSON.parse)(t),y.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||F.transitional,r=!(e&&e.silentJSONParsing)&&"json"===this.responseType;if(r||e&&e.forcedJSONParsing&&y.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(r){if("SyntaxError"===t.name)throw m(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};y.forEach(["delete","get","head"],(function(t){F.headers[t]={}})),y.forEach(["post","put","patch"],(function(t){F.headers[t]=y.merge(P)}));var x=F,I=function(t,e,r){var n=this||x;return y.forEach(r,(function(r){t=r.call(n,t,e)})),t},M=function(t){return!(!t||!t.__CANCEL__)};function U(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new O("canceled")}var k=function(t){return U(t),t.headers=t.headers||{},t.data=I.call(t,t.data,t.headers,t.transformRequest),t.headers=y.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),y.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||x.adapter)(t).then((function(e){return U(t),e.data=I.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return M(e)||(U(t),e&&e.response&&(e.response.data=I.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))},N=function(t,e){e=e||{};var r={};function n(t,e){return y.isPlainObject(t)&&y.isPlainObject(e)?y.merge(t,e):y.isPlainObject(e)?y.merge({},e):y.isArray(e)?e.slice():e}function o(r){return y.isUndefined(e[r])?y.isUndefined(t[r])?void 0:n(void 0,t[r]):n(t[r],e[r])}function i(t){if(!y.isUndefined(e[t]))return n(void 0,e[t])}function u(r){return y.isUndefined(e[r])?y.isUndefined(t[r])?void 0:n(void 0,t[r]):n(void 0,e[r])}function a(r){return r in e?n(t[r],e[r]):r in t?n(void 0,t[r]):void 0}var f={url:i,method:i,data:i,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:a};return y.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=f[t]||o,n=e(t);y.isUndefined(n)&&e!==a||(r[t]=n)})),r},B={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){B[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var T={};B.transitional=function(t,e,r){function n(t,e){return"[Axios v0.26.1] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,o,i){if(!1===t)throw new Error(n(o," has been removed"+(e?" in "+e:"")));return e&&!T[o]&&(T[o]=!0,console.warn(n(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,i)}};var C={assertOptions:function(t,e,r){if("object"!=typeof t)throw new TypeError("options must be an object");for(var n=Object.keys(t),o=n.length;o-- >0;){var i=n[o],u=e[i];if(u){var a=t[i],f=void 0===a||u(a,i,t);if(!0!==f)throw new TypeError("option "+i+" must be "+f)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:B},W=C.validators;function D(t){this.defaults=t,this.interceptors={request:new b,response:new b}}D.prototype.request=function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},(e=N(this.defaults,e)).method=e.method?e.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var r=e.transitional;void 0!==r&&C.assertOptions(r,{silentJSONParsing:W.transitional(W.boolean),forcedJSONParsing:W.transitional(W.boolean),clarifyTimeoutError:W.transitional(W.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(o=o&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,u=[];if(this.interceptors.response.forEach((function(t){u.push(t.fulfilled,t.rejected)})),!o){var a=[k,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(u),i=Promise.resolve(e);a.length;)i=i.then(a.shift(),a.shift());return i}for(var f=e;n.length;){var c=n.shift(),p=n.shift();try{f=c(f)}catch(t){p(t);break}}try{i=k(f)}catch(t){return Promise.reject(t)}for(;u.length;)i=i.then(u.shift(),u.shift());return i},D.prototype.getUri=function(t){return t=N(this.defaults,t),l(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},y.forEach(["delete","get","head","options"],(function(t){D.prototype[t]=function(e,r){return this.request(N(r||{},{method:t,url:e,data:(r||{}).data}))}})),y.forEach(["post","put","patch"],(function(t){D.prototype[t]=function(e,r,n){return this.request(N(n||{},{method:t,url:e,data:r}))}}));var _=D;function $(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;this.promise.then((function(t){if(r._listeners){var e,n=r._listeners.length;for(e=0;e<n;e++)r._listeners[e](t);r._listeners=null}})),this.promise.then=function(t){var e,n=new Promise((function(t){r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t((function(t){r.reason||(r.reason=new O(t),e(r.reason))}))}$.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},$.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},$.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},$.source=function(){var t;return{token:new $((function(e){t=e})),cancel:t}};var q=$,G=function t(e){var n=new _(e),o=r(_.prototype.request,n);return y.extend(o,_.prototype,n),y.extend(o,n),o.create=function(r){return t(N(e,r))},o}(x);G.Axios=_,G.Cancel=O,G.CancelToken=q,G.isCancel=M,G.VERSION="0.26.1",G.all=function(t){return Promise.all(t)},G.spread=function(t){return function(e){return t.apply(null,e)}},G.isAxiosError=function(t){return y.isObject(t)&&!0===t.isAxiosError};var J=G;J.default=G;var L="undefined"!=typeof Symbol&&Symbol,z="Function.prototype.bind called on incompatible ",H=Array.prototype.slice,V=Object.prototype.toString,X=Function.prototype.bind||function(t){var e=this;if("function"!=typeof e||"[object Function]"!==V.call(e))throw new TypeError(z+e);for(var r,n=H.call(arguments,1),o=function(){if(this instanceof r){var o=e.apply(this,n.concat(H.call(arguments)));return Object(o)===o?o:this}return e.apply(t,n.concat(H.call(arguments)))},i=Math.max(0,e.length-n.length),u=[],a=0;a<i;a++)u.push("$"+a);if(r=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(o),e.prototype){var f=function(){};f.prototype=e.prototype,r.prototype=new f,f.prototype=null}return r},K=X.call(Function.call,Object.prototype.hasOwnProperty),Q=SyntaxError,Y=Function,Z=TypeError,tt=function(t){try{return Y('"use strict"; return ('+t+").constructor;")()}catch(t){}},et=Object.getOwnPropertyDescriptor,rt=function(){throw new Z},nt=et?function(){try{return rt}catch(t){try{return et(arguments,"callee").get}catch(t){return rt}}}():rt,ot="function"==typeof L&&"function"==typeof Symbol&&"symbol"==typeof L("foo")&&"symbol"==typeof Symbol("bar")&&function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}(),it=Object.getPrototypeOf||function(t){return t.__proto__},ut={},at="undefined"==typeof Uint8Array?void 0:it(Uint8Array),ft={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":ot?it([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":ut,"%AsyncGenerator%":ut,"%AsyncGeneratorFunction%":ut,"%AsyncIteratorPrototype%":ut,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":Y,"%GeneratorFunction%":ut,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ot?it(it([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&ot?it((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&ot?it((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ot?it(""[Symbol.iterator]()):void 0,"%Symbol%":ot?Symbol:void 0,"%SyntaxError%":Q,"%ThrowTypeError%":nt,"%TypedArray%":at,"%TypeError%":Z,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},ct=function t(e){var r;if("%AsyncFunction%"===e)r=tt("async function () {}");else if("%GeneratorFunction%"===e)r=tt("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=tt("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&(r=it(o.prototype))}return ft[e]=r,r},pt={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},yt=X.call(Function.call,Array.prototype.concat),st=X.call(Function.apply,Array.prototype.splice),lt=X.call(Function.call,String.prototype.replace),dt=X.call(Function.call,String.prototype.slice),bt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,vt=/\\(\\)?/g,mt=function(t){var e=dt(t,0,1),r=dt(t,-1);if("%"===e&&"%"!==r)throw new Q("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new Q("invalid intrinsic syntax, expected opening `%`");var n=[];return lt(t,bt,(function(t,e,r,o){n[n.length]=r?lt(o,vt,"$1"):e||t})),n},ht=function(t,e){var r,n=t;if(K(pt,n)&&(n="%"+(r=pt[n])[0]+"%"),K(ft,n)){var o=ft[n];if(o===ut&&(o=ct(n)),void 0===o&&!e)throw new Z("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new Q("intrinsic "+t+" does not exist!")},gt=function(t,e){if("string"!=typeof t||0===t.length)throw new Z("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new Z('"allowMissing" argument must be a boolean');var r=mt(t),n=r.length>0?r[0]:"",o=ht("%"+n+"%",e),i=o.name,u=o.value,a=!1,f=o.alias;f&&(n=f[0],st(r,yt([0,1],f)));for(var c=1,p=!0;c<r.length;c+=1){var y=r[c],s=dt(y,0,1),l=dt(y,-1);if(('"'===s||"'"===s||"`"===s||'"'===l||"'"===l||"`"===l)&&s!==l)throw new Q("property names with quotes must have matching quotes");if("constructor"!==y&&p||(a=!0),K(ft,i="%"+(n+="."+y)+"%"))u=ft[i];else if(null!=u){if(!(y in u)){if(!e)throw new Z("base intrinsic for "+t+" exists, but the property is not available.");return}if(et&&c+1>=r.length){var d=et(u,y);u=(p=!!d)&&"get"in d&&!("originalValue"in d.get)?d.get:u[y]}else p=K(u,y),u=u[y];p&&!a&&(ft[i]=u)}}return u},jt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function St(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function At(t,e,r){return t(r={path:e,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}function wt(t){if(t.__esModule)return t;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(t).forEach((function(r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})})),e}var Ot=At((function(t){var e=gt("%Function.prototype.apply%"),r=gt("%Function.prototype.call%"),n=gt("%Reflect.apply%",!0)||X.call(r,e),o=gt("%Object.getOwnPropertyDescriptor%",!0),i=gt("%Object.defineProperty%",!0),u=gt("%Math.max%");if(i)try{i({},"a",{value:1})}catch(t){i=null}t.exports=function(t){var e=n(X,r,arguments);if(o&&i){var a=o(e,"length");a.configurable&&i(e,"length",{value:1+u(0,t.length-(arguments.length-1))})}return e};var a=function(){return n(X,e,arguments)};i?i(t.exports,"apply",{value:a}):t.exports.apply=a})),Pt=Ot(gt("String.prototype.indexOf")),Et=function(t,e){var r=gt(t,!!e);return"function"==typeof r&&Pt(t,".prototype.")>-1?Ot(r):r};const Rt=wt(Object.freeze({__proto__:null,default:{}}));var Ft="function"==typeof Map&&Map.prototype,xt=Object.getOwnPropertyDescriptor&&Ft?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,It=Ft&&xt&&"function"==typeof xt.get?xt.get:null,Mt=Ft&&Map.prototype.forEach,Ut="function"==typeof Set&&Set.prototype,kt=Object.getOwnPropertyDescriptor&&Ut?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Nt=Ut&&kt&&"function"==typeof kt.get?kt.get:null,Bt=Ut&&Set.prototype.forEach,Tt="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Ct="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Wt="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Dt=Boolean.prototype.valueOf,_t=Object.prototype.toString,$t=Function.prototype.toString,qt=String.prototype.match,Gt=String.prototype.slice,Jt=String.prototype.replace,Lt=String.prototype.toUpperCase,zt=String.prototype.toLowerCase,Ht=RegExp.prototype.test,Vt=Array.prototype.concat,Xt=Array.prototype.join,Kt=Array.prototype.slice,Qt=Math.floor,Yt="function"==typeof BigInt?BigInt.prototype.valueOf:null,Zt=Object.getOwnPropertySymbols,te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,ee="function"==typeof Symbol&&"object"==typeof Symbol.iterator,re="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol,1)?Symbol.toStringTag:null,ne=Object.prototype.propertyIsEnumerable,oe=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function ie(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||Ht.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-Qt(-t):Qt(t);if(n!==t){var o=String(n),i=Gt.call(e,o.length+1);return Jt.call(o,r,"$&_")+"."+Jt.call(Jt.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Jt.call(e,r,"$&_")}var ue=Rt.custom,ae=ue&&se(ue)?ue:null,fe=function t(e,r,n,o){var i=r||{};if(de(i,"quoteStyle")&&"single"!==i.quoteStyle&&"double"!==i.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(de(i,"maxStringLength")&&("number"==typeof i.maxStringLength?i.maxStringLength<0&&i.maxStringLength!==1/0:null!==i.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!de(i,"customInspect")||i.customInspect;if("boolean"!=typeof u&&"symbol"!==u)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(de(i,"indent")&&null!==i.indent&&"\t"!==i.indent&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(de(i,"numericSeparator")&&"boolean"!=typeof i.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return me(e,i);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var f=String(e);return a?ie(e,f):f}if("bigint"==typeof e){var c=String(e)+"n";return a?ie(e,c):c}var p=void 0===i.depth?5:i.depth;if(void 0===n&&(n=0),n>=p&&p>0&&"object"==typeof e)return ye(e)?"[Array]":"[Object]";var y,s=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=Xt.call(Array(t.indent+1)," ")}return{base:r,prev:Xt.call(Array(e+1),r)}}(i,n);if(void 0===o)o=[];else if(ve(o,e)>=0)return"[Circular]";function l(e,r,u){if(r&&(o=Kt.call(o)).push(r),u){var a={depth:i.depth};return de(i,"quoteStyle")&&(a.quoteStyle=i.quoteStyle),t(e,a,n+1,o)}return t(e,i,n+1,o)}if("function"==typeof e){var d=function(t){if(t.name)return t.name;var e=qt.call($t.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),b=we(e,l);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(b.length>0?" { "+Xt.call(b,", ")+" }":"")}if(se(e)){var v=ee?Jt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):te.call(e);return"object"!=typeof e||ee?v:ge(v)}if((y=e)&&"object"==typeof y&&("undefined"!=typeof HTMLElement&&y instanceof HTMLElement||"string"==typeof y.nodeName&&"function"==typeof y.getAttribute)){for(var m="<"+zt.call(String(e.nodeName)),h=e.attributes||[],g=0;g<h.length;g++)m+=" "+h[g].name+"="+ce(pe(h[g].value),"double",i);return m+=">",e.childNodes&&e.childNodes.length&&(m+="..."),m+"</"+zt.call(String(e.nodeName))+">"}if(ye(e)){if(0===e.length)return"[]";var j=we(e,l);return s&&!function(t){for(var e=0;e<t.length;e++)if(ve(t[e],"\n")>=0)return!1;return!0}(j)?"["+Ae(j,s)+"]":"[ "+Xt.call(j,", ")+" ]"}if(function(t){return!("[object Error]"!==be(t)||re&&"object"==typeof t&&re in t)}(e)){var S=we(e,l);return"cause"in e&&!ne.call(e,"cause")?"{ ["+String(e)+"] "+Xt.call(Vt.call("[cause]: "+l(e.cause),S),", ")+" }":0===S.length?"["+String(e)+"]":"{ ["+String(e)+"] "+Xt.call(S,", ")+" }"}if("object"==typeof e&&u){if(ae&&"function"==typeof e[ae])return e[ae]();if("symbol"!==u&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!It||!t||"object"!=typeof t)return!1;try{It.call(t);try{Nt.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var A=[];return Mt.call(e,(function(t,r){A.push(l(r,e,!0)+" => "+l(t,e))})),Se("Map",It.call(e),A,s)}if(function(t){if(!Nt||!t||"object"!=typeof t)return!1;try{Nt.call(t);try{It.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var w=[];return Bt.call(e,(function(t){w.push(l(t,e))})),Se("Set",Nt.call(e),w,s)}if(function(t){if(!Tt||!t||"object"!=typeof t)return!1;try{Tt.call(t,Tt);try{Ct.call(t,Ct)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return je("WeakMap");if(function(t){if(!Ct||!t||"object"!=typeof t)return!1;try{Ct.call(t,Ct);try{Tt.call(t,Tt)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return je("WeakSet");if(function(t){if(!Wt||!t||"object"!=typeof t)return!1;try{return Wt.call(t),!0}catch(t){}return!1}(e))return je("WeakRef");if(function(t){return!("[object Number]"!==be(t)||re&&"object"==typeof t&&re in t)}(e))return ge(l(Number(e)));if(function(t){if(!t||"object"!=typeof t||!Yt)return!1;try{return Yt.call(t),!0}catch(t){}return!1}(e))return ge(l(Yt.call(e)));if(function(t){return!("[object Boolean]"!==be(t)||re&&"object"==typeof t&&re in t)}(e))return ge(Dt.call(e));if(function(t){return!("[object String]"!==be(t)||re&&"object"==typeof t&&re in t)}(e))return ge(l(String(e)));if(!function(t){return!("[object Date]"!==be(t)||re&&"object"==typeof t&&re in t)}(e)&&!function(t){return!("[object RegExp]"!==be(t)||re&&"object"==typeof t&&re in t)}(e)){var O=we(e,l),P=oe?oe(e)===Object.prototype:e instanceof Object||e.constructor===Object,E=e instanceof Object?"":"null prototype",R=!P&&re&&Object(e)===e&&re in e?Gt.call(be(e),8,-1):E?"Object":"",F=(P||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(R||E?"["+Xt.call(Vt.call([],R||[],E||[]),": ")+"] ":"");return 0===O.length?F+"{}":s?F+"{"+Ae(O,s)+"}":F+"{ "+Xt.call(O,", ")+" }"}return String(e)};function ce(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function pe(t){return Jt.call(String(t),/"/g,"&quot;")}function ye(t){return!("[object Array]"!==be(t)||re&&"object"==typeof t&&re in t)}function se(t){if(ee)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!te)return!1;try{return te.call(t),!0}catch(t){}return!1}var le=Object.prototype.hasOwnProperty||function(t){return t in this};function de(t,e){return le.call(t,e)}function be(t){return _t.call(t)}function ve(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function me(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return me(Gt.call(t,0,e.maxStringLength),e)+n}return ce(Jt.call(Jt.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,he),"single",e)}function he(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+Lt.call(e.toString(16))}function ge(t){return"Object("+t+")"}function je(t){return t+" { ? }"}function Se(t,e,r,n){return t+" ("+e+") {"+(n?Ae(r,n):Xt.call(r,", "))+"}"}function Ae(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+Xt.call(t,","+r)+"\n"+e.prev}function we(t,e){var r=ye(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=de(t,o)?e(t[o],t):""}var i,u="function"==typeof Zt?Zt(t):[];if(ee){i={};for(var a=0;a<u.length;a++)i["$"+u[a]]=u[a]}for(var f in t)de(t,f)&&(r&&String(Number(f))===f&&f<t.length||ee&&i["$"+f]instanceof Symbol||(Ht.call(/[^\w$]/,f)?n.push(e(f,t)+": "+e(t[f],t)):n.push(f+": "+e(t[f],t))));if("function"==typeof Zt)for(var c=0;c<u.length;c++)ne.call(t,u[c])&&n.push("["+e(u[c])+"]: "+e(t[u[c]],t));return n}var Oe=gt("%TypeError%"),Pe=gt("%WeakMap%",!0),Ee=gt("%Map%",!0),Re=Et("WeakMap.prototype.get",!0),Fe=Et("WeakMap.prototype.set",!0),xe=Et("WeakMap.prototype.has",!0),Ie=Et("Map.prototype.get",!0),Me=Et("Map.prototype.set",!0),Ue=Et("Map.prototype.has",!0),ke=function(t,e){for(var r,n=t;null!==(r=n.next);n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r},Ne=function(){var t,e,r,n={assert:function(t){if(!n.has(t))throw new Oe("Side channel does not contain "+fe(t))},get:function(n){if(Pe&&n&&("object"==typeof n||"function"==typeof n)){if(t)return Re(t,n)}else if(Ee){if(e)return Ie(e,n)}else if(r)return function(t,e){var r=ke(t,e);return r&&r.value}(r,n)},has:function(n){if(Pe&&n&&("object"==typeof n||"function"==typeof n)){if(t)return xe(t,n)}else if(Ee){if(e)return Ue(e,n)}else if(r)return function(t,e){return!!ke(t,e)}(r,n);return!1},set:function(n,o){Pe&&n&&("object"==typeof n||"function"==typeof n)?(t||(t=new Pe),Fe(t,n,o)):Ee?(e||(e=new Ee),Me(e,n,o)):(r||(r={key:{},next:null}),function(t,e,r){var n=ke(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}}(r,n,o))}};return n},Be=String.prototype.replace,Te=/%20/g,Ce={default:"RFC3986",formatters:{RFC1738:function(t){return Be.call(t,Te,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:"RFC3986"},We=Object.prototype.hasOwnProperty,De=Array.isArray,_e=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),$e=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r},qe={arrayToObject:$e,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var o=e[n],i=o.obj[o.prop],u=Object.keys(i),a=0;a<u.length;++a){var f=u[a],c=i[f];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(e.push({obj:i,prop:f}),r.push(c))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(De(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);e.obj[e.prop]=n}}}(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(t){return n}},encode:function(t,e,r,n,o){if(0===t.length)return t;var i=t;if("symbol"==typeof t?i=Symbol.prototype.toString.call(t):"string"!=typeof t&&(i=String(t)),"iso-8859-1"===r)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var u="",a=0;a<i.length;++a){var f=i.charCodeAt(a);45===f||46===f||95===f||126===f||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||o===Ce.RFC1738&&(40===f||41===f)?u+=i.charAt(a):f<128?u+=_e[f]:f<2048?u+=_e[192|f>>6]+_e[128|63&f]:f<55296||f>=57344?u+=_e[224|f>>12]+_e[128|f>>6&63]+_e[128|63&f]:(f=65536+((1023&f)<<10|1023&i.charCodeAt(a+=1)),u+=_e[240|f>>18]+_e[128|f>>12&63]+_e[128|f>>6&63]+_e[128|63&f])}return u},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(De(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(e(t[n]));return r}return e(t)},merge:function t(e,r,n){if(!r)return e;if("object"!=typeof r){if(De(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(n&&(n.plainObjects||n.allowPrototypes)||!We.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var o=e;return De(e)&&!De(r)&&(o=$e(e,n)),De(e)&&De(r)?(r.forEach((function(r,o){if(We.call(e,o)){var i=e[o];i&&"object"==typeof i&&r&&"object"==typeof r?e[o]=t(i,r,n):e.push(r)}else e[o]=r})),e):Object.keys(r).reduce((function(e,o){var i=r[o];return e[o]=We.call(e,o)?t(e[o],i,n):i,e}),o)}};const Ge=t=>!("isConnected"in t)||t.isConnected,Je=(()=>{let t;return(...e)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let e of t.keys())t.set(e,t.get(e).filter(Ge))})(...e)}),2e3)}})(),Le=(r,n)=>{const o=((t,e=((t,e)=>t!==e))=>{let r=new Map(Object.entries(null!=t?t:{}));const n={dispose:[],get:[],set:[],reset:[]},o=()=>{r=new Map(Object.entries(null!=t?t:{})),n.reset.forEach((t=>t()))},i=t=>(n.get.forEach((e=>e(t))),r.get(t)),u=(t,o)=>{const i=r.get(t);e(o,i,t)&&(r.set(t,o),n.set.forEach((e=>e(t,o,i))))},a="undefined"==typeof Proxy?{}:new Proxy(t,{get:(t,e)=>i(e),ownKeys:()=>Array.from(r.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,e)=>r.has(e),set:(t,e,r)=>(u(e,r),!0)}),f=(t,e)=>(n[t].push(e),()=>{((t,e)=>{const r=t.indexOf(e);r>=0&&(t[r]=t[t.length-1],t.length--)})(n[t],e)});return{state:a,get:i,set:u,on:f,onChange:(e,r)=>{const n=f("set",((t,n)=>{t===e&&r(n)})),o=f("reset",(()=>r(t[e])));return()=>{n(),o()}},use:(...t)=>{const e=t.reduce(((t,e)=>(e.set&&t.push(f("set",e.set)),e.get&&t.push(f("get",e.get)),e.reset&&t.push(f("reset",e.reset)),e.dispose&&t.push(f("dispose",e.dispose)),t)),[]);return()=>e.forEach((t=>t()))},dispose:()=>{n.dispose.forEach((t=>t())),o()},reset:o,forceUpdate:t=>{const e=r.get(t);n.set.forEach((r=>r(t,e,e)))}}})(r,n);return o.use((()=>{if("function"!=typeof t)return{};const r=new Map;return{dispose:()=>r.clear(),get:e=>{const n=t();n&&((t,e,r)=>{const n=t.get(e);n?n.includes(r)||n.push(r):t.set(e,[r])})(r,e,n)},set:t=>{const n=r.get(t);n&&r.set(t,n.filter(e)),Je(r)},reset:()=>{r.forEach((t=>t.forEach(e))),Je(r)}}})()),o},{state:ze,onChange:He,reset:Ve}=Le({toc:void 0}),Xe={state:ze,onChange:He,reset:Ve},{state:Ke,onChange:Qe,reset:Ye}=Le({authUser:null,bearer:"Bearer ",isAuthenticated:!1,loading:!1});Qe("authUser",(t=>{Ke.bearer=`Bearer ${t?t.JWToken:""}`,Ke.isAuthenticated=t&&!!t.Id}));const Ze={state:Ke,onChange:Qe,reset:Ye};export{Ze as A,Xe as T,J as a,At as b,Le as c,jt as d,Ce as f,St as g,Ne as s,qe as u}
@@ -0,0 +1 @@
1
+ import{A as o}from"./p-99ee9919.js";function i(i){o.injectProps(i,["history","location"])}export{i}